@ones-editor/editor 0.0.7-beta.32 → 0.0.7-beta.34

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.
@@ -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;
@@ -1 +1,2 @@
1
1
  export { editorCopyBlock, addMetaToDoc, injectDocToHtmlFragment } from './clipboard/copy';
2
+ export { copyResourcesFromDoc } from './clipboard/resources/copy-resources';
@@ -6,3 +6,4 @@ export * from './container';
6
6
  export * from './block';
7
7
  export * from './to-plain-text';
8
8
  export * from './range';
9
+ export * from './box';
@@ -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;