@editorjs/editorjs
Advanced tools
Comparing version 2.28.0-rc.0 to 2.28.0-rc.1
{ | ||
"name": "@editorjs/editorjs", | ||
"version": "2.28.0-rc.0", | ||
"version": "2.28.0-rc.1", | ||
"description": "Editor.js — Native JS, based on API and Open Source", | ||
@@ -5,0 +5,0 @@ "main": "dist/editorjs.umd.js", |
@@ -133,2 +133,13 @@ import {OutputData} from '../data-formats/output-data'; | ||
update(id: string, data: BlockToolData): void; | ||
/** | ||
* Converts block to another type. Both blocks should provide the conversionConfig. | ||
* | ||
* @param id - id of the existed block to convert. Should provide 'conversionConfig.export' method | ||
* @param newType - new block type. Should provide 'conversionConfig.import' method | ||
* @param dataOverrides - optional data overrides for the new block | ||
* | ||
* @throws Error if conversion is not possible | ||
*/ | ||
convert(id: string, newType: string, dataOverrides?: BlockToolData): void; | ||
} |
@@ -15,3 +15,3 @@ import type { BlockToolData } from '../tools'; | ||
*/ | ||
import: ((data: string) => string) | string; | ||
import?: ((data: string) => string) | string; | ||
@@ -26,3 +26,3 @@ /** | ||
*/ | ||
export: ((data: BlockToolData) => string) | string; | ||
export?: ((data: BlockToolData) => string) | string; | ||
} |
Sorry, the diff of this file is not supported yet
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
642861
12276