@editorjs/editorjs
Advanced tools
Comparing version 2.23.0-rc.0 to 2.23.0-rc.1
/*! | ||
* CodeX.Tooltips | ||
* | ||
* @version 1.0.2 | ||
* @version 1.0.3 | ||
* | ||
@@ -20,3 +20,3 @@ * @licence MIT | ||
* | ||
* @version 2.23.0-rc.0 | ||
* @version 2.23.0-rc.1 | ||
* | ||
@@ -23,0 +23,0 @@ * @licence Apache-2.0 |
{ | ||
"name": "@editorjs/editorjs", | ||
"version": "2.23.0-rc.0", | ||
"version": "2.23.0-rc.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,4 @@ "_tools:yarn": "git submodule foreach yarn", | ||
"@cypress/webpack-preprocessor": "^5.6.0", | ||
"@editorjs/header": "^2.6.1", | ||
"@editorjs/simple-image": "^1.4.1", | ||
"@types/node": "^14.14.35", | ||
@@ -98,5 +101,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" | ||
} | ||
} |
@@ -254,2 +254,2 @@ <a href="https://editorjs.io/"><p align="center"><img src="https://capella.pics/79ce946a-d636-41cd-aa96-d3bc5ecfde03.jpg"></p></a> | ||
| -- | -- | -- | -- | | ||
| [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,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
464273
51
1437
49
Updatedcodex-tooltip@^1.0.4