@editorjs/editorjs
Advanced tools
Comparing version 2.23.0 to 2.23.1
/*! | ||
* CodeX.Tooltips | ||
* | ||
* @version 1.0.2 | ||
* @version 1.0.3 | ||
* | ||
@@ -20,3 +20,3 @@ * @licence MIT | ||
* | ||
* @version 2.23.0 | ||
* @version 2.23.1 | ||
* | ||
@@ -23,0 +23,0 @@ * @licence Apache-2.0 |
{ | ||
"name": "@editorjs/editorjs", | ||
"version": "2.23.0", | ||
"version": "2.23.1", | ||
"description": "Editor.js β Native JS, based on API and Open Source", | ||
@@ -25,4 +25,5 @@ "main": "dist/editor.js", | ||
"svg": "svg-sprite-generate -d src/assets/ -o dist/sprite.svg", | ||
"ci:pull_paragraph": "git submodule update --init ./src/tools/paragraph", | ||
"pull_tools": "git submodule update --init --recursive", | ||
"_tools:checkout": "git submodule foreach git checkout master", | ||
"_tools:checkout": "git submodule foreach 'git checkout master || git checkout main'", | ||
"_tools:pull": "git submodule foreach git pull", | ||
@@ -53,2 +54,5 @@ "_tools:yarn": "git submodule foreach yarn", | ||
"@cypress/webpack-preprocessor": "^5.6.0", | ||
"@editorjs/code": "^2.7.0", | ||
"@editorjs/header": "^2.6.1", | ||
"@editorjs/simple-image": "^1.4.1", | ||
"@types/node": "^14.14.35", | ||
@@ -98,5 +102,5 @@ "@types/webpack": "^4.41.12", | ||
"codex-notifier": "^1.1.2", | ||
"codex-tooltip": "^1.0.2", | ||
"codex-tooltip": "^1.0.4", | ||
"nanoid": "^3.1.22" | ||
} | ||
} |
@@ -11,6 +11,35 @@ <a href="https://editorjs.io/"><p align="center"><img src="https://capella.pics/79ce946a-d636-41cd-aa96-d3bc5ecfde03.jpg"></p></a> | ||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari-ios/safari-ios_48x48.png" alt="iOS Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>iOS Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | | ||
| | | | | | | | ||
| --------- | --------- | --------- | --------- | --------- | --------- | | ||
| Edge 12+ | Firefox 18+ | Chrome 49+ | Safari 10+ | Safari 10+ | Opera 36+ | ||
| <img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="16px" height="16px" /> Edge 12+ | <img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="16px" height="16px" /> Firefox 18+ | <img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="16px" height="16px" /> Chrome 49+ | <img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="16px" height="16px" /> Safari 10+ | <img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari-ios/safari-ios_48x48.png" alt="iOS Safari" width="16px" height="16px" /> iOS Safari 10+ | <img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="16px" height="16px" /> Opera 36+ | ||
## Roadmap | ||
<img align="right" width="342" src="https://user-images.githubusercontent.com/3684889/152149321-3f9c585d-7d87-4dad-ab14-def0d526e71c.png" hspace="50"> | ||
- Collaborative editing | ||
- [ ] Implement Inline Tools JSON format `In progress` [#1801](https://github.com/codex-team/editor.js/pull/1801) | ||
- [ ] Implement Operations creation and transformations | ||
- [ ] Implement Tools API changes | ||
- [ ] Implement Server and communication | ||
- [ ] Update basic tools to fit the new API | ||
- Unified Toolbox | ||
- [x] Block Tunes moved left [#1815](https://github.com/codex-team/editor.js/pull/1815) | ||
- [ ] Toolbox become vertical `In progress` | ||
- [ ] Ability to display several Toolbox buttons by the single Tool | ||
- [ ] Conversion Toolbar uses Unified Toolbox | ||
- [ ] Block Tunes become vertical | ||
- [ ] Conversion Toolbar added to the Block Tunes | ||
- Ecosystem improvements | ||
<a href="https://opencollective.com/editorjs/donate" target="_blank"> | ||
<img width="459" alt="image" src="https://user-images.githubusercontent.com/3684889/152159639-f5e89362-19a1-4c71-a089-422e875fab7d.png"> | ||
</a> | ||
## | ||
## If you like a project πππ | ||
@@ -31,3 +60,2 @@ | ||
### Backers | ||
@@ -256,2 +284,2 @@ | ||
| -- | -- | -- | -- | | ||
| [codex.so](https://codex.so) | [codex.so/join](https://codex.so/join) |[@codex_team](http://twitter.com/codex_team) | [@codex_team](http://instagram.com/codex_team) | | ||
| [codex.so](https://codex.so) | [codex.so/join](https://codex.so/join) |[@codex_team](http://twitter.com/codex_team) | [@codex_team](http://instagram.com/codex_team/) | |
@@ -70,2 +70,8 @@ import {BlockToolData, ToolConfig} from '../tools'; | ||
validate(data: BlockToolData): Promise<boolean>; | ||
/** | ||
* Allows to say Editor that Block was changed. Used to manually trigger Editor's 'onChange' callback | ||
* Can be useful for block changes invisible for editor core. | ||
*/ | ||
dispatchChange(): void; | ||
} |
@@ -70,2 +70,7 @@ import {OutputData} from '../data-formats/output-data'; | ||
/** | ||
* Returns the index of Block by id; | ||
*/ | ||
getBlockIndex(blockId: string): number; | ||
/** | ||
* Mark Block as stretched | ||
@@ -93,3 +98,3 @@ * @param {number} index - Block to mark | ||
/** | ||
* Insert new Block | ||
* Insert new Block and return inserted Block API | ||
* | ||
@@ -101,2 +106,3 @@ * @param {string} type β Tool name | ||
* @param {boolean?} needToFocus - flag to focus inserted Block | ||
* @param {boolean?} replace - should the existed Block on that index be replaced or not | ||
*/ | ||
@@ -109,3 +115,4 @@ insert( | ||
needToFocus?: boolean, | ||
): void; | ||
replace?: boolean, | ||
): BlockAPI; | ||
@@ -112,0 +119,0 @@ |
@@ -16,1 +16,2 @@ export * from './blocks'; | ||
export * from './i18n'; | ||
export * from './ui'; |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* Subscribe to event dispatched on passed element | ||
* Subscribe to event dispatched on passed element. Returns listener id. | ||
* | ||
@@ -14,3 +14,3 @@ * @param {Element} element | ||
*/ | ||
on(element: Element, eventType: string, handler: (event?: Event) => void, useCapture?: boolean): void; | ||
on(element: Element, eventType: string, handler: (event?: Event) => void, useCapture?: boolean): string; | ||
@@ -26,2 +26,10 @@ /** | ||
off(element: Element, eventType: string, handler: (event?: Event) => void, useCapture?: boolean): void; | ||
/** | ||
* Unsubscribe from event dispatched by the listener id | ||
* | ||
* @param id - id of the listener to remove | ||
*/ | ||
offById(id: string): void; | ||
} |
@@ -30,2 +30,3 @@ /** | ||
I18n, | ||
Ui, | ||
} from './api'; | ||
@@ -96,2 +97,3 @@ | ||
readOnly: ReadOnly; | ||
ui: Ui; | ||
} | ||
@@ -98,0 +100,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
465044
51
1437
283
50
Updatedcodex-tooltip@^1.0.4