@ones-editor/editor 0.0.7-beta.33 → 0.0.7-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@ones-editor/core/package.json +2 -1
- package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +1 -0
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/index.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/versions/src/deleted-box/types.d.ts +0 -1
- package/@ones-editor/versions/src/history-render/index.d.ts +1 -0
- package/dist/index.js +853 -464
- package/package.json +2 -1
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"@types/lodash.intersection": "^4.4.0",
|
|
12
12
|
"@types/lodash.isequal": "^4.5.5",
|
|
13
13
|
"@types/lodash.merge": "^4.6.7",
|
|
14
|
-
"@types/string-template": "^1.0.0"
|
|
14
|
+
"@types/string-template": "^1.0.0",
|
|
15
|
+
"@types/lodash-es": "4.17.7"
|
|
15
16
|
},
|
|
16
17
|
"types": "src/index.d.ts"
|
|
17
18
|
}
|
|
@@ -5,6 +5,7 @@ export declare class EditorBlockRenderers implements OnesEditorBlockRenderers {
|
|
|
5
5
|
private renders;
|
|
6
6
|
constructor(editor: OnesEditor);
|
|
7
7
|
registerRender(render: OnesEditorBlockRenderer): void;
|
|
8
|
+
renderBox(path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
|
|
8
9
|
renderText(path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
|
|
9
10
|
renderBlock(editor: OnesEditor, path: BlockPath, blockData: DocBlock): OnesEditorBlockRenderResult;
|
|
10
11
|
updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
|
|
@@ -334,11 +334,13 @@ export interface OnesEditorBlockRenderResult {
|
|
|
334
334
|
attributes?: Record<string, string>;
|
|
335
335
|
}
|
|
336
336
|
export interface OnesEditorBlockRenderer {
|
|
337
|
+
renderBox?: (editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
337
338
|
renderText?: (editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
338
339
|
renderBlock?: (editor: OnesEditor, path: BlockPath, blockData: DocBlock) => OnesEditorBlockRenderResult;
|
|
339
340
|
updateBlock?: (editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock) => void;
|
|
340
341
|
}
|
|
341
342
|
export interface OnesEditorBlockRenderers {
|
|
343
|
+
renderBox: (path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
342
344
|
renderText: (path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
343
345
|
renderBlock: (editor: OnesEditor, path: BlockPath, blockData: DocBlock) => OnesEditorBlockRenderResult;
|
|
344
346
|
updateBlock: (editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock) => void;
|