@editorjs/editorjs
Advanced tools
Comparing version 2.19.2-rc.1 to 2.19.2-rc.2
@@ -20,3 +20,3 @@ /*! | ||
* | ||
* @version 2.19.2-rc.1 | ||
* @version 2.19.2-rc.2 | ||
* | ||
@@ -23,0 +23,0 @@ * @licence Apache-2.0 |
{ | ||
"name": "@editorjs/editorjs", | ||
"version": "2.19.2-rc.1", | ||
"version": "2.19.2-rc.2", | ||
"description": "Editor.js — Native JS, based on API and Open Source", | ||
@@ -5,0 +5,0 @@ "main": "dist/editor.js", |
@@ -0,1 +1,7 @@ | ||
/** | ||
* Sanitizer config of each HTML element | ||
* @see {@link https://github.com/guardian/html-janitor#options} | ||
*/ | ||
type TagConfig = boolean | { [attr: string]: boolean | string }; | ||
export interface SanitizerConfig { | ||
@@ -34,3 +40,3 @@ /** | ||
*/ | ||
[key: string]: boolean|{[attr: string]: boolean|string}|((el?: Element) => any); | ||
[key: string]: TagConfig | ((el: Element) => TagConfig); | ||
} |
@@ -5,12 +5,15 @@ import {BlockToolData} from '../tools'; | ||
* Output of one Tool | ||
* | ||
* @template Type - the string literal describing a tool type | ||
* @template Data - the structure describing a data object supported by the tool | ||
*/ | ||
export interface OutputBlockData { | ||
export interface OutputBlockData<Type extends string = string, Data extends object = any> { | ||
/** | ||
* Too type | ||
* Tool type | ||
*/ | ||
type: string; | ||
type: Type; | ||
/** | ||
* Saved Block data | ||
*/ | ||
data: BlockToolData; | ||
data: BlockToolData<Data>; | ||
} | ||
@@ -17,0 +20,0 @@ |
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
1276
440385