@editorjs/editorjs
Advanced tools
Comparing version 2.20.2 to 2.21.0
@@ -20,3 +20,3 @@ /*! | ||
* | ||
* @version 2.20.2 | ||
* @version 2.21.0 | ||
* | ||
@@ -23,0 +23,0 @@ * @licence Apache-2.0 |
@@ -391,2 +391,26 @@ @babel/polyfill | ||
nanoid | ||
MIT | ||
The MIT License (MIT) | ||
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
regenerator-runtime | ||
@@ -393,0 +417,0 @@ MIT |
{ | ||
"name": "@editorjs/editorjs", | ||
"version": "2.20.2", | ||
"version": "2.21.0", | ||
"description": "Editor.js — Native JS, based on API and Open Source", | ||
@@ -27,3 +27,3 @@ "main": "dist/editor.js", | ||
"checkout_tools": "git submodule foreach git pull origin master", | ||
"test:e2e": "cypress run" | ||
"test:e2e": "yarn build && cypress run" | ||
}, | ||
@@ -91,4 +91,5 @@ "author": "CodeX", | ||
"codex-notifier": "^1.1.2", | ||
"codex-tooltip": "^1.0.2" | ||
"codex-tooltip": "^1.0.2", | ||
"nanoid": "^3.1.22" | ||
} | ||
} |
@@ -9,2 +9,7 @@ import {BlockToolData, ToolConfig} from '../tools'; | ||
/** | ||
* Block unique identifier | ||
*/ | ||
readonly id: string; | ||
/** | ||
* Tool name | ||
@@ -11,0 +16,0 @@ */ |
@@ -58,2 +58,8 @@ import {OutputData} from '../data-formats/output-data'; | ||
/** | ||
* Returns Block API object by passed Block id | ||
* @param id - id of the block | ||
*/ | ||
getById(id: string): BlockAPI | null; | ||
/** | ||
* Returns current Block index | ||
@@ -60,0 +66,0 @@ * @returns {number} |
@@ -7,2 +7,3 @@ import {BlockToolData} from '../tools'; | ||
export interface SavedData { | ||
id: string; | ||
tool: string; | ||
@@ -17,2 +18,3 @@ data: BlockToolData; | ||
export interface ValidatedData { | ||
id?: string; | ||
tool?: string; | ||
@@ -19,0 +21,0 @@ data?: BlockToolData; |
import {BlockToolData} from '../tools'; | ||
import {BlockTuneData} from "../block-tunes/block-tune-data"; | ||
import {BlockTuneData} from '../block-tunes/block-tune-data'; | ||
@@ -12,2 +12,6 @@ /** | ||
/** | ||
* Unique Id of the block | ||
*/ | ||
id?: string; | ||
/** | ||
* Tool type | ||
@@ -22,3 +26,3 @@ */ | ||
/** | ||
* Block Tunes data | ||
* Block Tunes data | ||
*/ | ||
@@ -25,0 +29,0 @@ tunes?: {[name: string]: BlockTuneData}; |
Sorry, the diff of this file is too big to display
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
452448
1344
3
+ Addednanoid@^3.1.22
+ Addednanoid@3.3.7(transitive)