@ones-editor/editor 0.0.7-beta.18 → 0.0.7-beta.19
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/src/core/block-renderers/standard-block-render.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/common/block-dom.d.ts +2 -1
- package/@ones-editor/core/src/core/doc/doc.d.ts +2 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +111 -111
- package/package.json +1 -1
|
@@ -7,4 +7,5 @@ export declare class StandardBlockRenderer implements OnesEditorBlockRenderer {
|
|
|
7
7
|
renderText(editor: OnesEditor, path: BlockPath, attributes: AttributeMap): OnesEditorBlockRenderResult;
|
|
8
8
|
renderBlock(editor: OnesEditor, path: BlockPath, blockData: DocBlock): OnesEditorBlockRenderResult;
|
|
9
9
|
updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
|
|
10
|
+
generateCSSCustomProperties(attributes: AttributeMap): OnesEditorBlockRenderResult;
|
|
10
11
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import AttributeMap from 'quill-delta/dist/AttributeMap';
|
|
1
2
|
import { DocBlock, DocBox } from '../../doc';
|
|
2
3
|
import { BlockBackgroundElement, BlockContentElement, BlockElement, BlockPath, BlockToolsElement, BoxContentElement, BoxElement, ContainerElement, InsertionContentElement, InsertionElement, OnesEditor } from '../../types';
|
|
3
4
|
export declare function isBlock(node: Node): node is BlockElement;
|
|
@@ -23,7 +24,7 @@ export declare function getBoxId(box: BoxElement): string;
|
|
|
23
24
|
export declare function getParentBox(node: Node): BoxElement | null;
|
|
24
25
|
export declare function createBoxContentElement(boxElement: BoxElement): BoxContentElement;
|
|
25
26
|
export declare function getBoxContent(box: BoxElement): BoxContentElement;
|
|
26
|
-
export declare function createInsertionElement(type: string, id: string): InsertionElement;
|
|
27
|
+
export declare function createInsertionElement(type: string, id: string, attributes?: AttributeMap): InsertionElement;
|
|
27
28
|
export declare function findInsertionById(editor: OnesEditor, id: string): InsertionElement | null;
|
|
28
29
|
export declare function createInsertionContentElement(insertionElement: InsertionElement): InsertionContentElement;
|
|
29
30
|
export declare function getInsertionContent(insertion: InsertionElement): InsertionContentElement;
|
|
@@ -46,7 +46,8 @@ export interface DocBox {
|
|
|
46
46
|
export interface DocInsertion {
|
|
47
47
|
id: string;
|
|
48
48
|
type: string;
|
|
49
|
-
[index: string]: string | boolean | number;
|
|
49
|
+
[index: string]: string | boolean | number | AttributeMap | undefined;
|
|
50
|
+
attributes?: AttributeMap;
|
|
50
51
|
}
|
|
51
52
|
export interface DocComment {
|
|
52
53
|
id: string;
|