roosterjs-content-model-types 9.45.2 → 9.47.0
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/lib/context/ContentModelHandler.d.ts +2 -2
- package/lib/context/ContentModelHandler.js.map +1 -1
- package/lib/context/DarkColorHandler.d.ts +2 -1
- package/lib/context/DarkColorHandler.js.map +1 -1
- package/lib/context/ModelToDomContext.d.ts +11 -0
- package/lib/context/ModelToDomContext.js.map +1 -1
- package/lib/enum/TableOperation.d.ts +13 -1
- package/lib/enum/TableOperation.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js.map +1 -1
- package/lib-amd/context/ContentModelHandler.d.ts +2 -2
- package/lib-amd/context/ContentModelHandler.js.map +1 -1
- package/lib-amd/context/DarkColorHandler.d.ts +2 -1
- package/lib-amd/context/DarkColorHandler.js.map +1 -1
- package/lib-amd/context/ModelToDomContext.d.ts +11 -0
- package/lib-amd/context/ModelToDomContext.js.map +1 -1
- package/lib-amd/enum/TableOperation.d.ts +13 -1
- package/lib-amd/enum/TableOperation.js.map +1 -1
- package/lib-amd/index.d.ts +2 -2
- package/lib-amd/index.js.map +1 -1
- package/lib-mjs/context/ContentModelHandler.d.ts +2 -2
- package/lib-mjs/context/ContentModelHandler.js.map +1 -1
- package/lib-mjs/context/DarkColorHandler.d.ts +2 -1
- package/lib-mjs/context/DarkColorHandler.js.map +1 -1
- package/lib-mjs/context/ModelToDomContext.d.ts +11 -0
- package/lib-mjs/context/ModelToDomContext.js.map +1 -1
- package/lib-mjs/enum/TableOperation.d.ts +13 -1
- package/lib-mjs/enum/TableOperation.js.map +1 -1
- package/lib-mjs/index.d.ts +2 -2
- package/lib-mjs/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock'
|
|
|
2
2
|
import type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';
|
|
3
3
|
import type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';
|
|
4
4
|
import type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';
|
|
5
|
-
import type { ModelToDomContext } from './ModelToDomContext';
|
|
5
|
+
import type { ModelToDomContext, ModelToDomSegmentContext } from './ModelToDomContext';
|
|
6
6
|
/**
|
|
7
7
|
* Type of Content Model to DOM handler
|
|
8
8
|
* @param doc Target HTML Document object
|
|
@@ -31,4 +31,4 @@ export declare type ContentModelBlockHandler<T extends ContentModelBlock | Conte
|
|
|
31
31
|
* - For segments with decorators: decorator elements will also be included
|
|
32
32
|
* - For inline entity segment, the delimiter SPANs will also be included
|
|
33
33
|
*/
|
|
34
|
-
export declare type ContentModelSegmentHandler<T extends ContentModelSegment> = (doc: Document, parent: Node, model: T, context:
|
|
34
|
+
export declare type ContentModelSegmentHandler<T extends ContentModelSegment> = (doc: Document, parent: Node, model: T, context: ModelToDomSegmentContext, segmentNodes: Node[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';\nimport type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';\nimport type { ModelToDomContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context:
|
|
1
|
+
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';\nimport type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';\nimport type { ModelToDomContext, ModelToDomSegmentContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomSegmentContext,\n segmentNodes: Node[]\n) => void;\n"]}
|
|
@@ -18,8 +18,9 @@ export interface Colors {
|
|
|
18
18
|
* @param baseLValue Base value of light used for dark value calculation
|
|
19
19
|
* @param colorType @optional Type of color, can be text, background, or border
|
|
20
20
|
* @param element @optional Source HTML element of the color
|
|
21
|
+
* @param comparingColor @optional When generating dark color for background color, we can provide text color as comparingColor to make sure the generated dark border color has enough contrast with text color in dark mode
|
|
21
22
|
*/
|
|
22
|
-
export declare type ColorTransformFunction = (lightColor: string, baseLValue?: number, colorType?: 'text' | 'background' | 'border', element?: HTMLElement) => string;
|
|
23
|
+
export declare type ColorTransformFunction = (lightColor: string, baseLValue?: number, colorType?: 'text' | 'background' | 'border', element?: HTMLElement, comparingColor?: string) => string;
|
|
23
24
|
/**
|
|
24
25
|
* A handler object for dark color, used for variable-based dark color solution
|
|
25
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkColorHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DarkColorHandler.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a combination of color key, light color and dark color, parsed from existing color value\n */\nexport interface Colors {\n /**\n * Light mode color value\n */\n lightModeColor: string;\n\n /**\n * Dark mode color value, if found, otherwise undefined\n */\n darkModeColor: string;\n}\n\n/**\n * A util function type to transform light mode color to dark mode color\n * Default value is to return the original light color\n * @param lightColor Source color string in light mode\n * @param baseLValue Base value of light used for dark value calculation\n * @param colorType @optional Type of color, can be text, background, or border\n * @param element @optional Source HTML element of the color\n */\nexport type ColorTransformFunction = (\n lightColor: string,\n baseLValue?: number,\n colorType?: 'text' | 'background' | 'border',\n element?: HTMLElement\n) => string;\n\n/**\n * A handler object for dark color, used for variable-based dark color solution\n */\nexport interface DarkColorHandler {\n /**\n * Map of known colors\n */\n readonly knownColors: Record<string, Colors>;\n\n /**\n * Update all known colors to root container.\n * @param isDarkMode Whether container is in dark mode. When in dark mode, we add CSS color variables for all known colors.\n * When in light mode, we will remove all those CSS color variables\n */\n updateKnownColor(isDarkMode: boolean): void;\n\n /**\n * Register a known color, and update it to root container via CSS color variable when in dark mode\n * @param isDarkMode Whether container is in dark mode.\n * @param key The key of color, normally it is the name of color variable\n * @param colorPair A pair value of light color and dark color\n */\n updateKnownColor(isDarkMode: boolean, key: string, colorPair: Colors): void;\n\n /**\n * Reset known color record, clean up registered color variables.\n */\n reset(): void;\n\n /**\n * A util function to transform light mode color to dark mode color\n */\n getDarkColor: ColorTransformFunction;\n\n /**\n * Generate color key for dark mode color.\n */\n generateColorKey: ColorTransformFunction;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DarkColorHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DarkColorHandler.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a combination of color key, light color and dark color, parsed from existing color value\n */\nexport interface Colors {\n /**\n * Light mode color value\n */\n lightModeColor: string;\n\n /**\n * Dark mode color value, if found, otherwise undefined\n */\n darkModeColor: string;\n}\n\n/**\n * A util function type to transform light mode color to dark mode color\n * Default value is to return the original light color\n * @param lightColor Source color string in light mode\n * @param baseLValue Base value of light used for dark value calculation\n * @param colorType @optional Type of color, can be text, background, or border\n * @param element @optional Source HTML element of the color\n * @param comparingColor @optional When generating dark color for background color, we can provide text color as comparingColor to make sure the generated dark border color has enough contrast with text color in dark mode\n */\nexport type ColorTransformFunction = (\n lightColor: string,\n baseLValue?: number,\n colorType?: 'text' | 'background' | 'border',\n element?: HTMLElement,\n comparingColor?: string\n) => string;\n\n/**\n * A handler object for dark color, used for variable-based dark color solution\n */\nexport interface DarkColorHandler {\n /**\n * Map of known colors\n */\n readonly knownColors: Record<string, Colors>;\n\n /**\n * Update all known colors to root container.\n * @param isDarkMode Whether container is in dark mode. When in dark mode, we add CSS color variables for all known colors.\n * When in light mode, we will remove all those CSS color variables\n */\n updateKnownColor(isDarkMode: boolean): void;\n\n /**\n * Register a known color, and update it to root container via CSS color variable when in dark mode\n * @param isDarkMode Whether container is in dark mode.\n * @param key The key of color, normally it is the name of color variable\n * @param colorPair A pair value of light color and dark color\n */\n updateKnownColor(isDarkMode: boolean, key: string, colorPair: Colors): void;\n\n /**\n * Reset known color record, clean up registered color variables.\n */\n reset(): void;\n\n /**\n * A util function to transform light mode color to dark mode color\n */\n getDarkColor: ColorTransformFunction;\n\n /**\n * Generate color key for dark mode color.\n */\n generateColorKey: ColorTransformFunction;\n}\n"]}
|
|
@@ -8,3 +8,14 @@ import type { ModelToDomSettings } from './ModelToDomSettings';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface ModelToDomContext extends EditorContext, ModelToDomSelectionContext, ModelToDomFormatContext, ModelToDomSettings, RewriteFromModelContext {
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Extended context used by segment and text handlers to carry per-paragraph segment state
|
|
13
|
+
*/
|
|
14
|
+
export interface ModelToDomSegmentContext extends ModelToDomContext {
|
|
15
|
+
/**
|
|
16
|
+
* Whether the current segment is the last segment in the paragraph,
|
|
17
|
+
* or there are no more Text segments after it (excluding SelectionMarkers).
|
|
18
|
+
* When true, trailing spaces should be converted to &nbsp;.
|
|
19
|
+
*/
|
|
20
|
+
noFollowingTextSegmentOrLast?: boolean;
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { RewriteFromModelContext } from './RewriteFromModel';\nimport type { EditorContext } from './EditorContext';\nimport type { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport type { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings,\n RewriteFromModelContext {}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { RewriteFromModelContext } from './RewriteFromModel';\nimport type { EditorContext } from './EditorContext';\nimport type { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport type { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings,\n RewriteFromModelContext {}\n\n/**\n * Extended context used by segment and text handlers to carry per-paragraph segment state\n */\nexport interface ModelToDomSegmentContext extends ModelToDomContext {\n /**\n * Whether the current segment is the last segment in the paragraph,\n * or there are no more Text segments after it (excluding SelectionMarkers).\n * When true, trailing spaces should be converted to &nbsp;.\n */\n noFollowingTextSegmentOrLast?: boolean;\n}\n"]}
|
|
@@ -130,7 +130,19 @@ export declare type TableCellVerticalAlignOperation =
|
|
|
130
130
|
* Align current table cell at the bottom
|
|
131
131
|
*/
|
|
132
132
|
| 'alignCellBottom';
|
|
133
|
+
/**
|
|
134
|
+
* Operations used by editTable() API to shift table cell content up or left
|
|
135
|
+
*/
|
|
136
|
+
export declare type TableCellShiftOperation =
|
|
137
|
+
/**
|
|
138
|
+
* Move the table cell content to the cell on the left
|
|
139
|
+
*/
|
|
140
|
+
'shiftCellsLeft'
|
|
141
|
+
/**
|
|
142
|
+
* Move the table cell content to the cell above
|
|
143
|
+
*/
|
|
144
|
+
| 'shiftCellsUp';
|
|
133
145
|
/**
|
|
134
146
|
* Operations used by editTable() API
|
|
135
147
|
*/
|
|
136
|
-
export declare type TableOperation = TableVerticalInsertOperation | TableHorizontalInsertOperation | TableDeleteOperation | TableVerticalMergeOperation | TableHorizontalMergeOperation | TableCellMergeOperation | TableSplitOperation | TableAlignOperation | TableCellHorizontalAlignOperation | TableCellVerticalAlignOperation;
|
|
148
|
+
export declare type TableOperation = TableVerticalInsertOperation | TableHorizontalInsertOperation | TableDeleteOperation | TableVerticalMergeOperation | TableHorizontalMergeOperation | TableCellMergeOperation | TableSplitOperation | TableAlignOperation | TableCellHorizontalAlignOperation | TableCellVerticalAlignOperation | TableCellShiftOperation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableOperation.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/enum/TableOperation.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Operations used by editTable() API for insert table cell vertically\n */\nexport type TableVerticalInsertOperation =\n /**\n * Insert a row above current row\n */\n | 'insertAbove'\n\n /**\n * Insert a row below current row\n */\n | 'insertBelow';\n\n/**\n * Operations used by editTable() API for insert table cell horizontally\n */\nexport type TableHorizontalInsertOperation =\n /**\n * Insert a column on the left of current column\n */\n | 'insertLeft'\n\n /**\n * Insert a column on the right of current column\n */\n | 'insertRight';\n\n/**\n * Operations used by editTable() API for delete table cells\n */\nexport type TableDeleteOperation =\n /**\n * Delete the whole table\n */\n | 'deleteTable'\n\n /**\n * Delete current column\n */\n | 'deleteColumn'\n\n /**\n * Delete current row\n */\n | 'deleteRow';\n\n/**\n * Operations used by editTable() API for merge table cells vertically\n */\nexport type TableVerticalMergeOperation =\n /**\n * Merge current row with the row above\n */\n | 'mergeAbove'\n\n /**\n * Merge current row with the row below\n */\n | 'mergeBelow';\n\n/**\n * Operations used by editTable() API for merge table cells horizontally\n */\nexport type TableHorizontalMergeOperation =\n /**\n * Merge current column with the column on the left\n */\n | 'mergeLeft'\n\n /**\n * Merge current column with the column on the right\n */\n | 'mergeRight';\n\n/**\n * Operations used by editTable() API for merge selected table cells\n */\nexport type TableCellMergeOperation =\n /**\n * Merge all selected cells\n */\n 'mergeCells';\n\n/**\n * Operations used by editTable() API for split table cells\n */\nexport type TableSplitOperation =\n /**\n * Split current table cell horizontally\n */\n | 'splitHorizontally'\n\n /**\n * Split current table cell vertically\n */\n | 'splitVertically';\n\n/**\n * Operations used by editTable() API for align table\n */\nexport type TableAlignOperation =\n /**\n * Align current table at the center\n */\n | 'alignCenter'\n\n /**\n * Align current table at the left\n */\n | 'alignLeft'\n\n /**\n * Align current table at the right\n */\n | 'alignRight';\n\n/**\n * Operations used by editTable() API for align table cell horizontally\n */\nexport type TableCellHorizontalAlignOperation =\n /**\n * Align current content table cell at the left\n */\n | 'alignCellLeft'\n\n /**\n * Align current content table cell at the center\n */\n | 'alignCellCenter'\n\n /**\n * Align current content table cell at the right\n */\n | 'alignCellRight';\n\n/**\n * Operations used by editTable() API for align table cell vertically\n */\nexport type TableCellVerticalAlignOperation =\n /**\n * Align current content table cell at the top\n */\n | 'alignCellTop'\n\n /**\n * Align current table cell at the middle\n */\n | 'alignCellMiddle'\n\n /**\n * Align current table cell at the bottom\n */\n | 'alignCellBottom';\n\n/**\n * Operations used by editTable() API\n */\nexport type TableOperation =\n | TableVerticalInsertOperation\n | TableHorizontalInsertOperation\n | TableDeleteOperation\n | TableVerticalMergeOperation\n | TableHorizontalMergeOperation\n | TableCellMergeOperation\n | TableSplitOperation\n | TableAlignOperation\n | TableCellHorizontalAlignOperation\n | TableCellVerticalAlignOperation;\n"]}
|
|
1
|
+
{"version":3,"file":"TableOperation.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/enum/TableOperation.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Operations used by editTable() API for insert table cell vertically\n */\nexport type TableVerticalInsertOperation =\n /**\n * Insert a row above current row\n */\n | 'insertAbove'\n\n /**\n * Insert a row below current row\n */\n | 'insertBelow';\n\n/**\n * Operations used by editTable() API for insert table cell horizontally\n */\nexport type TableHorizontalInsertOperation =\n /**\n * Insert a column on the left of current column\n */\n | 'insertLeft'\n\n /**\n * Insert a column on the right of current column\n */\n | 'insertRight';\n\n/**\n * Operations used by editTable() API for delete table cells\n */\nexport type TableDeleteOperation =\n /**\n * Delete the whole table\n */\n | 'deleteTable'\n\n /**\n * Delete current column\n */\n | 'deleteColumn'\n\n /**\n * Delete current row\n */\n | 'deleteRow';\n\n/**\n * Operations used by editTable() API for merge table cells vertically\n */\nexport type TableVerticalMergeOperation =\n /**\n * Merge current row with the row above\n */\n | 'mergeAbove'\n\n /**\n * Merge current row with the row below\n */\n | 'mergeBelow';\n\n/**\n * Operations used by editTable() API for merge table cells horizontally\n */\nexport type TableHorizontalMergeOperation =\n /**\n * Merge current column with the column on the left\n */\n | 'mergeLeft'\n\n /**\n * Merge current column with the column on the right\n */\n | 'mergeRight';\n\n/**\n * Operations used by editTable() API for merge selected table cells\n */\nexport type TableCellMergeOperation =\n /**\n * Merge all selected cells\n */\n 'mergeCells';\n\n/**\n * Operations used by editTable() API for split table cells\n */\nexport type TableSplitOperation =\n /**\n * Split current table cell horizontally\n */\n | 'splitHorizontally'\n\n /**\n * Split current table cell vertically\n */\n | 'splitVertically';\n\n/**\n * Operations used by editTable() API for align table\n */\nexport type TableAlignOperation =\n /**\n * Align current table at the center\n */\n | 'alignCenter'\n\n /**\n * Align current table at the left\n */\n | 'alignLeft'\n\n /**\n * Align current table at the right\n */\n | 'alignRight';\n\n/**\n * Operations used by editTable() API for align table cell horizontally\n */\nexport type TableCellHorizontalAlignOperation =\n /**\n * Align current content table cell at the left\n */\n | 'alignCellLeft'\n\n /**\n * Align current content table cell at the center\n */\n | 'alignCellCenter'\n\n /**\n * Align current content table cell at the right\n */\n | 'alignCellRight';\n\n/**\n * Operations used by editTable() API for align table cell vertically\n */\nexport type TableCellVerticalAlignOperation =\n /**\n * Align current content table cell at the top\n */\n | 'alignCellTop'\n\n /**\n * Align current table cell at the middle\n */\n | 'alignCellMiddle'\n\n /**\n * Align current table cell at the bottom\n */\n | 'alignCellBottom';\n\n/**\n * Operations used by editTable() API to shift table cell content up or left\n */\nexport type TableCellShiftOperation =\n /**\n * Move the table cell content to the cell on the left\n */\n | 'shiftCellsLeft'\n\n /**\n * Move the table cell content to the cell above\n */\n | 'shiftCellsUp';\n\n/**\n * Operations used by editTable() API\n */\nexport type TableOperation =\n | TableVerticalInsertOperation\n | TableHorizontalInsertOperation\n | TableDeleteOperation\n | TableVerticalMergeOperation\n | TableHorizontalMergeOperation\n | TableCellMergeOperation\n | TableSplitOperation\n | TableAlignOperation\n | TableCellHorizontalAlignOperation\n | TableCellVerticalAlignOperation\n | TableCellShiftOperation;\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroup
|
|
|
62
62
|
export { ContentModelBlockType } from './contentModel/block/BlockType';
|
|
63
63
|
export { ContentModelSegmentType } from './contentModel/segment/SegmentType';
|
|
64
64
|
export { EntityLifecycleOperation, EntityOperation, EntityRemovalOperation, EntityFormatOperation, } from './enum/EntityOperation';
|
|
65
|
-
export { TableOperation, TableVerticalInsertOperation, TableHorizontalInsertOperation, TableDeleteOperation, TableVerticalMergeOperation, TableHorizontalMergeOperation, TableCellMergeOperation, TableSplitOperation, TableAlignOperation, TableCellHorizontalAlignOperation, TableCellVerticalAlignOperation, } from './enum/TableOperation';
|
|
65
|
+
export { TableOperation, TableVerticalInsertOperation, TableHorizontalInsertOperation, TableDeleteOperation, TableVerticalMergeOperation, TableHorizontalMergeOperation, TableCellMergeOperation, TableSplitOperation, TableAlignOperation, TableCellHorizontalAlignOperation, TableCellVerticalAlignOperation, TableCellShiftOperation, } from './enum/TableOperation';
|
|
66
66
|
export { PasteType } from './enum/PasteType';
|
|
67
67
|
export { BorderOperations } from './enum/BorderOperations';
|
|
68
68
|
export { DeleteResult } from './enum/DeleteResult';
|
|
@@ -109,7 +109,7 @@ export { ElementProcessor } from './context/ElementProcessor';
|
|
|
109
109
|
export { DomToModelSelectionContext } from './context/DomToModelSelectionContext';
|
|
110
110
|
export { EditorContext } from './context/EditorContext';
|
|
111
111
|
export { DomToModelFormatContext, DomToModelDecoratorContext, DomToModelListFormat, } from './context/DomToModelFormatContext';
|
|
112
|
-
export { ModelToDomContext } from './context/ModelToDomContext';
|
|
112
|
+
export { ModelToDomContext, ModelToDomSegmentContext } from './context/ModelToDomContext';
|
|
113
113
|
export { ModelToDomBlockAndSegmentNode, ModelToDomRegularSelection, ModelToDomSelectionContext, } from './context/ModelToDomSelectionContext';
|
|
114
114
|
export { ModelToDomListStackItem, ModelToDomListContext, ModelToDomFormatContext, } from './context/ModelToDomFormatContext';
|
|
115
115
|
export { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/roosterjs-content-model-types/lib/index.ts"],"names":[],"mappings":"","sourcesContent":["export { ContentModelSegmentFormat } from './contentModel/format/ContentModelSegmentFormat';\nexport {\n ContentModelWithFormat,\n ReadonlyContentModelWithFormat,\n} from './contentModel/format/ContentModelWithFormat';\nexport { ContentModelTableFormat } from './contentModel/format/ContentModelTableFormat';\nexport {\n ContentModelWithDataset,\n ReadonlyContentModelWithDataset,\n ShallowMutableContentModelWithDataset,\n} from './contentModel/format/ContentModelWithDataset';\nexport { ContentModelBlockFormat } from './contentModel/format/ContentModelBlockFormat';\nexport { ContentModelTableCellFormat } from './contentModel/format/ContentModelTableCellFormat';\nexport { ContentModelListItemFormat } from './contentModel/format/ContentModelListItemFormat';\nexport { ContentModelListItemLevelFormat } from './contentModel/format/ContentModelListItemLevelFormat';\nexport { ContentModelHyperLinkFormat } from './contentModel/format/ContentModelHyperLinkFormat';\nexport { ContentModelCodeFormat } from './contentModel/format/ContentModelCodeFormat';\nexport { ContentModelFormatContainerFormat } from './contentModel/format/ContentModelFormatContainerFormat';\nexport { ContentModelDividerFormat } from './contentModel/format/ContentModelDividerFormat';\nexport { ContentModelFormatBase } from './contentModel/format/ContentModelFormatBase';\nexport { ContentModelFormatMap } from './contentModel/format/ContentModelFormatMap';\nexport { ContentModelImageFormat } from './contentModel/format/ContentModelImageFormat';\nexport { ContentModelEntityFormat } from './contentModel/format/ContentModelEntityFormat';\nexport { FormatHandlerTypeMap, FormatKey } from './contentModel/format/FormatHandlerTypeMap';\n\nexport { AriaFormat } from './contentModel/format/formatParts/AriaFormat';\nexport { BackgroundColorFormat } from './contentModel/format/formatParts/BackgroundColorFormat';\nexport { BoldFormat } from './contentModel/format/formatParts/BoldFormat';\nexport { FontFamilyFormat } from './contentModel/format/formatParts/FontFamilyFormat';\nexport { FontSizeFormat } from './contentModel/format/formatParts/FontSizeFormat';\nexport { ItalicFormat } from './contentModel/format/formatParts/ItalicFormat';\nexport { LetterSpacingFormat } from './contentModel/format/formatParts/LetterSpacingFormat';\nexport { LineHeightFormat } from './contentModel/format/formatParts/LineHeightFormat';\nexport { StrikeFormat } from './contentModel/format/formatParts/StrikeFormat';\nexport { SuperOrSubScriptFormat } from './contentModel/format/formatParts/SuperOrSubScriptFormat';\nexport { TextColorFormat } from './contentModel/format/formatParts/TextColorFormat';\nexport { UnderlineFormat } from './contentModel/format/formatParts/UnderlineFormat';\nexport { BorderBoxFormat } from './contentModel/format/formatParts/BorderBoxFormat';\nexport { VerticalAlignFormat } from './contentModel/format/formatParts/VerticalAlignFormat';\nexport { WordBreakFormat } from './contentModel/format/formatParts/WordBreakFormat';\nexport { BorderFormat } from './contentModel/format/formatParts/BorderFormat';\nexport { DirectionFormat } from './contentModel/format/formatParts/DirectionFormat';\nexport { HtmlAlignFormat } from './contentModel/format/formatParts/HtmlAlignFormat';\nexport { MarginFormat } from './contentModel/format/formatParts/MarginFormat';\nexport { PaddingFormat } from './contentModel/format/formatParts/PaddingFormat';\nexport { TextAlignFormat } from './contentModel/format/formatParts/TextAlignFormat';\nexport { TextIndentFormat } from './contentModel/format/formatParts/TextIndentFormat';\nexport { WhiteSpaceFormat } from './contentModel/format/formatParts/WhiteSpaceFormat';\nexport { DisplayFormat } from './contentModel/format/formatParts/DisplayFormat';\nexport { IdFormat } from './contentModel/format/formatParts/IdFormat';\nexport { SpacingFormat } from './contentModel/format/formatParts/SpacingFormat';\nexport { TableLayoutFormat } from './contentModel/format/formatParts/TableLayoutFormat';\nexport { LinkFormat } from './contentModel/format/formatParts/LinkFormat';\nexport { SizeFormat } from './contentModel/format/formatParts/SizeFormat';\nexport { BoxShadowFormat } from './contentModel/format/formatParts/BoxShadowFormat';\nexport { ListThreadFormat } from './contentModel/format/formatParts/ListThreadFormat';\nexport { ListStyleFormat } from './contentModel/format/formatParts/ListStyleFormat';\nexport { FloatFormat } from './contentModel/format/formatParts/FloatFormat';\nexport { EntityInfoFormat } from './contentModel/format/formatParts/EntityInfoFormat';\nexport { UndeletableFormat } from './contentModel/format/formatParts/UndeletableFormat';\nexport { ImageStateFormat } from './contentModel/format/formatParts/ImageStateFormat';\nexport { RoleFormat } from './contentModel/format/formatParts/RoleFormat';\nexport { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';\n\nexport { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';\nexport { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';\nexport { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';\nexport {\n ImageResizeMetadataFormat,\n ImageCropMetadataFormat,\n ImageMetadataFormat,\n ImageRotateMetadataFormat,\n ImageFlipMetadataFormat,\n} from './contentModel/format/metadata/ImageMetadataFormat';\nexport { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';\n\nexport { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroupType';\nexport { ContentModelBlockType } from './contentModel/block/BlockType';\nexport { ContentModelSegmentType } from './contentModel/segment/SegmentType';\n\nexport {\n EntityLifecycleOperation,\n EntityOperation,\n EntityRemovalOperation,\n EntityFormatOperation,\n} from './enum/EntityOperation';\nexport {\n TableOperation,\n TableVerticalInsertOperation,\n TableHorizontalInsertOperation,\n TableDeleteOperation,\n TableVerticalMergeOperation,\n TableHorizontalMergeOperation,\n TableCellMergeOperation,\n TableSplitOperation,\n TableAlignOperation,\n TableCellHorizontalAlignOperation,\n TableCellVerticalAlignOperation,\n} from './enum/TableOperation';\nexport { PasteType } from './enum/PasteType';\nexport { BorderOperations } from './enum/BorderOperations';\nexport { DeleteResult } from './enum/DeleteResult';\nexport { InsertEntityPosition } from './enum/InsertEntityPosition';\nexport { ExportContentMode } from './enum/ExportContentMode';\n\nexport {\n ContentModelBlock,\n ReadonlyContentModelBlock,\n ShallowMutableContentModelBlock,\n} from './contentModel/block/ContentModelBlock';\nexport {\n ContentModelParagraph,\n ContentModelParagraphCommon,\n ReadonlyContentModelParagraph,\n ShallowMutableContentModelParagraph,\n} from './contentModel/block/ContentModelParagraph';\nexport {\n ContentModelTable,\n ReadonlyContentModelTable,\n ShallowMutableContentModelTable,\n} from './contentModel/block/ContentModelTable';\nexport {\n ContentModelDivider,\n ContentModelDividerCommon,\n ReadonlyContentModelDivider,\n} from './contentModel/block/ContentModelDivider';\nexport {\n ContentModelBlockBase,\n ContentModelBlockBaseCommon,\n ReadonlyContentModelBlockBase,\n ShallowMutableContentModelBlockBase,\n} from './contentModel/block/ContentModelBlockBase';\nexport { ContentModelBlockWithCache } from './contentModel/common/ContentModelBlockWithCache';\nexport {\n ContentModelTableRow,\n ContentModelTableRowCommon,\n ReadonlyContentModelTableRow,\n ShallowMutableContentModelTableRow,\n} from './contentModel/block/ContentModelTableRow';\n\nexport { ContentModelEntity } from './contentModel/entity/ContentModelEntity';\n\nexport {\n ContentModelDocument,\n ContentModelDocumentCommon,\n ReadonlyContentModelDocument,\n ShallowMutableContentModelDocument,\n} from './contentModel/blockGroup/ContentModelDocument';\nexport {\n ContentModelBlockGroupBase,\n ContentModelBlockGroupBaseCommon,\n ReadonlyContentModelBlockGroupBase,\n ShallowMutableContentModelBlockGroupBase,\n} from './contentModel/blockGroup/ContentModelBlockGroupBase';\nexport {\n ContentModelFormatContainer,\n ContentModelFormatContainerCommon,\n ReadonlyContentModelFormatContainer,\n ShallowMutableContentModelFormatContainer,\n} from './contentModel/blockGroup/ContentModelFormatContainer';\nexport {\n ContentModelGeneralBlock,\n ContentModelGeneralBlockCommon,\n ReadonlyContentModelGeneralBlock,\n ShallowMutableContentModelGeneralBlock,\n} from './contentModel/blockGroup/ContentModelGeneralBlock';\nexport {\n ContentModelListItem,\n ReadonlyContentModelListItem,\n ShallowMutableContentModelListItem,\n} from './contentModel/blockGroup/ContentModelListItem';\nexport {\n ContentModelTableCell,\n ContentModelTableCellCommon,\n ReadonlyContentModelTableCell,\n ShallowMutableContentModelTableCell,\n} from './contentModel/blockGroup/ContentModelTableCell';\nexport {\n ContentModelBlockGroup,\n ReadonlyContentModelBlockGroup,\n ShallowMutableContentModelBlockGroup,\n} from './contentModel/blockGroup/ContentModelBlockGroup';\n\nexport { ContentModelBr, ReadonlyContentModelBr } from './contentModel/segment/ContentModelBr';\nexport {\n ContentModelGeneralSegment,\n ReadonlyContentModelGeneralSegment,\n ShallowMutableContentModelGeneralSegment,\n} from './contentModel/segment/ContentModelGeneralSegment';\nexport {\n ContentModelImage,\n ContentModelImageCommon,\n ReadonlyContentModelImage,\n} from './contentModel/segment/ContentModelImage';\nexport {\n ContentModelText,\n ContentModelTextCommon,\n ReadonlyContentModelText,\n} from './contentModel/segment/ContentModelText';\nexport {\n ContentModelSelectionMarker,\n ReadonlyContentModelSelectionMarker,\n} from './contentModel/segment/ContentModelSelectionMarker';\nexport {\n ContentModelSegmentBase,\n ContentModelSegmentBaseCommon,\n ReadonlyContentModelSegmentBase,\n ShallowMutableContentModelSegmentBase,\n} from './contentModel/segment/ContentModelSegmentBase';\nexport {\n ContentModelSegment,\n ReadonlyContentModelSegment,\n ShallowMutableContentModelSegment,\n} from './contentModel/segment/ContentModelSegment';\n\nexport {\n ContentModelCode,\n ReadonlyContentModelCode,\n} from './contentModel/decorator/ContentModelCode';\nexport {\n ContentModelLink,\n ReadonlyContentModelLink,\n} from './contentModel/decorator/ContentModelLink';\nexport {\n ContentModelParagraphDecorator,\n ContentModelParagraphDecoratorCommon,\n ReadonlyContentModelParagraphDecorator,\n} from './contentModel/decorator/ContentModelParagraphDecorator';\nexport {\n ContentModelDecorator,\n ReadonlyContentModelDecorator,\n} from './contentModel/decorator/ContentModelDecorator';\nexport {\n ContentModelListLevel,\n ContentModelListLevelCommon,\n ReadonlyContentModelListLevel,\n} from './contentModel/decorator/ContentModelListLevel';\n\nexport {\n Selectable,\n ReadonlySelectable,\n ShallowMutableSelectable,\n} from './contentModel/common/Selectable';\nexport { MutableMark, ShallowMutableMark, ReadonlyMark } from './contentModel/common/MutableMark';\nexport { MutableType } from './contentModel/common/MutableType';\n\nexport {\n DOMSelection,\n SelectionType,\n SelectionBase,\n ImageSelection,\n RangeSelection,\n TableSelection,\n DOMInsertPoint,\n} from './selection/DOMSelection';\nexport { InsertPoint } from './selection/InsertPoint';\nexport {\n TableSelectionContext,\n ReadonlyTableSelectionContext,\n} from './selection/TableSelectionContext';\nexport { TableSelectionCoordinates } from './selection/TableSelectionCoordinates';\n\nexport {\n ContentModelHandlerMap,\n DefaultImplicitFormatMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n OnNodeCreated,\n ModelToDomSettings,\n FormatApplier,\n ApplyMetadata,\n MetadataApplier,\n MetadataAppliers,\n TextFormatApplier,\n ElementFormatAppliersPerCategory,\n} from './context/ModelToDomSettings';\nexport {\n DefaultStyleMap,\n ElementProcessorMap,\n FormatParsers,\n FormatParsersPerCategory,\n DomToModelSettings,\n FormatParser,\n TextFormatParser,\n ElementFormatParserPerCategory,\n} from './context/DomToModelSettings';\nexport { DomToModelContext } from './context/DomToModelContext';\nexport { ElementProcessor } from './context/ElementProcessor';\nexport { DomToModelSelectionContext } from './context/DomToModelSelectionContext';\nexport { EditorContext } from './context/EditorContext';\nexport {\n DomToModelFormatContext,\n DomToModelDecoratorContext,\n DomToModelListFormat,\n} from './context/DomToModelFormatContext';\nexport { ModelToDomContext } from './context/ModelToDomContext';\nexport {\n ModelToDomBlockAndSegmentNode,\n ModelToDomRegularSelection,\n ModelToDomSelectionContext,\n} from './context/ModelToDomSelectionContext';\nexport {\n ModelToDomListStackItem,\n ModelToDomListContext,\n ModelToDomFormatContext,\n} from './context/ModelToDomFormatContext';\nexport { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';\nexport {\n ContentModelHandler,\n ContentModelSegmentHandler,\n ContentModelBlockHandler,\n} from './context/ContentModelHandler';\nexport {\n DomToModelOption,\n DomToModelOptionForSanitizing,\n DomToModelOptionForCreateModel,\n} from './context/DomToModelOption';\nexport { ModelToDomOption } from './context/ModelToDomOption';\nexport { DomIndexer } from './context/DomIndexer';\nexport { TextMutationObserver } from './context/TextMutationObserver';\n\nexport { DefinitionType } from './metadata/DefinitionType';\nexport {\n ArrayItemType,\n DefinitionBase,\n StringDefinition,\n NumberDefinition,\n BooleanDefinition,\n ArrayDefinition,\n ObjectPropertyDefinition,\n ObjectDefinition,\n Definition,\n} from './metadata/Definition';\nexport { DarkColorHandler, Colors, ColorTransformFunction } from './context/DarkColorHandler';\n\nexport { IEditor } from './editor/IEditor';\nexport { ExperimentalFeature, GraduatedExperimentalFeature } from './editor/ExperimentalFeature';\nexport {\n EditorOptions,\n ColorOptions,\n ContentModelOptions,\n SelectionOptions,\n PasteOptions,\n EditorBaseOptions,\n} from './editor/EditorOptions';\nexport {\n CreateContentModel,\n CreateEditorContext,\n GetDOMSelection,\n SetContentModel,\n SetDOMSelection,\n SetLogicalRoot,\n FormatContentModel,\n CoreApiMap,\n EditorCore,\n SwitchShadowEdit,\n TriggerEvent,\n AddUndoSnapshot,\n Focus,\n AttachDomEvent,\n RestoreUndoSnapshot,\n GetVisibleViewport,\n SetEditorStyle,\n Announce,\n} from './editor/EditorCore';\nexport { EditorCorePlugins } from './editor/EditorCorePlugins';\nexport { EditorPlugin } from './editor/EditorPlugin';\nexport { PluginWithState } from './editor/PluginWithState';\nexport { ContextMenuProvider } from './editor/ContextMenuProvider';\n\nexport {\n CachePluginState,\n RangeSelectionForCache,\n CacheSelection,\n} from './pluginState/CachePluginState';\nexport { FormatPluginState, PendingFormat } from './pluginState/FormatPluginState';\nexport { CopyPastePluginState } from './pluginState/CopyPastePluginState';\nexport { DOMEventPluginState } from './pluginState/DOMEventPluginState';\nexport { LifecyclePluginState } from './pluginState/LifecyclePluginState';\nexport { EntityPluginState, KnownEntityItem } from './pluginState/EntityPluginState';\nexport {\n SelectionPluginState,\n TableSelectionInfo,\n TableCellCoordinate,\n} from './pluginState/SelectionPluginState';\nexport { UndoPluginState } from './pluginState/UndoPluginState';\nexport {\n PluginKey,\n KeyOfStatePlugin,\n TypeOfStatePlugin,\n StatePluginKeys,\n GenericPluginState,\n PluginState,\n} from './pluginState/PluginState';\nexport { ContextMenuPluginState } from './pluginState/ContextMenuPluginState';\n\nexport { AutoLinkOptions } from './parameter/AutoLinkOptions';\nexport { EditorEnvironment, ContentModelSettings } from './parameter/EditorEnvironment';\nexport {\n EntityState,\n DeletedEntity,\n FormatContentModelContext,\n} from './parameter/FormatContentModelContext';\nexport {\n FormatContentModelOptions,\n ContentModelFormatter,\n} from './parameter/FormatContentModelOptions';\nexport { ContentModelFormatState } from './parameter/ContentModelFormatState';\nexport { PasteTypeOrGetter } from './parameter/PasteTypeOrGetter';\nexport { ImageFormatState } from './parameter/ImageFormatState';\nexport { Border } from './parameter/Border';\nexport { InsertEntityOptions } from './parameter/InsertEntityOptions';\nexport {\n DeleteSelectionContext,\n DeleteSelectionResult,\n DeleteSelectionStep,\n ValidDeleteSelectionContext,\n} from './parameter/DeleteSelectionStep';\nexport {\n SnapshotSelectionBase,\n RangeSnapshotSelection,\n ImageSnapshotSelection,\n TableSnapshotSelection,\n SnapshotSelection,\n Snapshot,\n Snapshots,\n} from './parameter/Snapshot';\nexport { SnapshotsManager } from './parameter/SnapshotsManager';\nexport { DOMEventHandlerFunction, DOMEventRecord } from './parameter/DOMEventRecord';\nexport { EdgeLinkPreview } from './parameter/EdgeLinkPreview';\nexport { ClipboardData } from './parameter/ClipboardData';\nexport { AnnounceData, KnownAnnounceStrings } from './parameter/AnnounceData';\nexport { AnnouncingOption } from './parameter/AnnouncingOption';\nexport {\n TrustedHTMLHandler,\n DOMCreator,\n LegacyTrustedHTMLHandler,\n} from './parameter/TrustedHTMLHandler';\nexport { Rect } from './parameter/Rect';\nexport { ValueSanitizer } from './parameter/ValueSanitizer';\nexport { DOMHelper } from './parameter/DOMHelper';\nexport { ImageEditOperation, ImageEditor } from './parameter/ImageEditor';\nexport { CachedElementHandler, CloneModelOptions } from './parameter/CloneModelOptions';\nexport { LinkData } from './parameter/LinkData';\nexport { MergeModelOption } from './parameter/MergeModelOption';\nexport {\n IterateSelectionsCallback,\n IterateSelectionsOption,\n ReadonlyIterateSelectionsCallback,\n} from './parameter/IterateSelectionsOption';\nexport { NodeTypeMap } from './parameter/NodeTypeMap';\nexport { TypeOfBlockGroup } from './parameter/TypeOfBlockGroup';\nexport { OperationalBlocks, ReadonlyOperationalBlocks } from './parameter/OperationalBlocks';\nexport { ParsedTable, ParsedTableCell } from './parameter/ParsedTable';\nexport {\n ModelToTextCallback,\n ModelToTextCallbacks,\n ModelToTextChecker,\n} from './parameter/ModelToTextCallbacks';\nexport { ConflictFormatSolution } from './parameter/ConflictFormatSolution';\nexport { ParagraphMap, ParagraphIndexer } from './parameter/ParagraphMap';\nexport { TextAndHtmlContentForCopy } from './parameter/TextAndHtmlContentForCopy';\nexport { PromotedLink } from './parameter/PromotedLink';\nexport { BorderKey } from './parameter/BorderKey';\n\nexport { BasePluginEvent, BasePluginDomEvent } from './event/BasePluginEvent';\nexport { BeforeAddUndoSnapshotEvent } from './event/BeforeAddUndoSnapshotEvent';\nexport { BeforeCutCopyEvent } from './event/BeforeCutCopyEvent';\nexport { BeforeDisposeEvent } from './event/BeforeDisposeEvent';\nexport { BeforeKeyboardEditingEvent } from './event/BeforeKeyboardEditingEvent';\nexport { BeforePasteEvent, MergePastedContentFunc } from './event/BeforePasteEvent';\nexport { BeforeSetContentEvent } from './event/BeforeSetContentEvent';\nexport { ContentChangedEvent, ChangedEntity } from './event/ContentChangedEvent';\nexport { ContextMenuEvent } from './event/ContextMenuEvent';\nexport { RewriteFromModelEvent } from './event/RewriteFromModelEvent';\nexport { EditImageEvent } from './event/EditImageEvent';\nexport { EditorReadyEvent } from './event/EditorReadyEvent';\nexport { EntityOperationEvent, FormattableRoot, Entity } from './event/EntityOperationEvent';\nexport { ExtractContentWithDomEvent } from './event/ExtractContentWithDomEvent';\nexport { EditorInputEvent } from './event/EditorInputEvent';\nexport {\n KeyDownEvent,\n KeyPressEvent,\n KeyUpEvent,\n CompositionEndEvent,\n} from './event/KeyboardEvent';\nexport {\n BeforeLogicalRootChangeEvent,\n LogicalRootChangedEvent,\n} from './event/LogicalRootChangedEvent';\nexport { MouseDownEvent, MouseUpEvent, DoubleClickEvent } from './event/MouseEvent';\nexport { PluginEvent } from './event/PluginEvent';\nexport {\n PluginEventData,\n PluginEventFromTypeGeneric,\n PluginEventFromType,\n PluginEventDataGeneric,\n} from './event/PluginEventData';\nexport { PluginEventType } from './event/PluginEventType';\nexport { ScrollEvent } from './event/ScrollEvent';\nexport { SelectionChangedEvent } from './event/SelectionChangedEvent';\nexport { EnterShadowEditEvent, LeaveShadowEditEvent } from './event/ShadowEditEvent';\nexport { ZoomChangedEvent } from './event/ZoomChangedEvent';\nexport { PointerDownEvent, PointerUpEvent } from './event/PointerEvent';\nexport { FindResultChangedEvent } from './event/FindResultChangedEvent';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/roosterjs-content-model-types/lib/index.ts"],"names":[],"mappings":"","sourcesContent":["export { ContentModelSegmentFormat } from './contentModel/format/ContentModelSegmentFormat';\nexport {\n ContentModelWithFormat,\n ReadonlyContentModelWithFormat,\n} from './contentModel/format/ContentModelWithFormat';\nexport { ContentModelTableFormat } from './contentModel/format/ContentModelTableFormat';\nexport {\n ContentModelWithDataset,\n ReadonlyContentModelWithDataset,\n ShallowMutableContentModelWithDataset,\n} from './contentModel/format/ContentModelWithDataset';\nexport { ContentModelBlockFormat } from './contentModel/format/ContentModelBlockFormat';\nexport { ContentModelTableCellFormat } from './contentModel/format/ContentModelTableCellFormat';\nexport { ContentModelListItemFormat } from './contentModel/format/ContentModelListItemFormat';\nexport { ContentModelListItemLevelFormat } from './contentModel/format/ContentModelListItemLevelFormat';\nexport { ContentModelHyperLinkFormat } from './contentModel/format/ContentModelHyperLinkFormat';\nexport { ContentModelCodeFormat } from './contentModel/format/ContentModelCodeFormat';\nexport { ContentModelFormatContainerFormat } from './contentModel/format/ContentModelFormatContainerFormat';\nexport { ContentModelDividerFormat } from './contentModel/format/ContentModelDividerFormat';\nexport { ContentModelFormatBase } from './contentModel/format/ContentModelFormatBase';\nexport { ContentModelFormatMap } from './contentModel/format/ContentModelFormatMap';\nexport { ContentModelImageFormat } from './contentModel/format/ContentModelImageFormat';\nexport { ContentModelEntityFormat } from './contentModel/format/ContentModelEntityFormat';\nexport { FormatHandlerTypeMap, FormatKey } from './contentModel/format/FormatHandlerTypeMap';\n\nexport { AriaFormat } from './contentModel/format/formatParts/AriaFormat';\nexport { BackgroundColorFormat } from './contentModel/format/formatParts/BackgroundColorFormat';\nexport { BoldFormat } from './contentModel/format/formatParts/BoldFormat';\nexport { FontFamilyFormat } from './contentModel/format/formatParts/FontFamilyFormat';\nexport { FontSizeFormat } from './contentModel/format/formatParts/FontSizeFormat';\nexport { ItalicFormat } from './contentModel/format/formatParts/ItalicFormat';\nexport { LetterSpacingFormat } from './contentModel/format/formatParts/LetterSpacingFormat';\nexport { LineHeightFormat } from './contentModel/format/formatParts/LineHeightFormat';\nexport { StrikeFormat } from './contentModel/format/formatParts/StrikeFormat';\nexport { SuperOrSubScriptFormat } from './contentModel/format/formatParts/SuperOrSubScriptFormat';\nexport { TextColorFormat } from './contentModel/format/formatParts/TextColorFormat';\nexport { UnderlineFormat } from './contentModel/format/formatParts/UnderlineFormat';\nexport { BorderBoxFormat } from './contentModel/format/formatParts/BorderBoxFormat';\nexport { VerticalAlignFormat } from './contentModel/format/formatParts/VerticalAlignFormat';\nexport { WordBreakFormat } from './contentModel/format/formatParts/WordBreakFormat';\nexport { BorderFormat } from './contentModel/format/formatParts/BorderFormat';\nexport { DirectionFormat } from './contentModel/format/formatParts/DirectionFormat';\nexport { HtmlAlignFormat } from './contentModel/format/formatParts/HtmlAlignFormat';\nexport { MarginFormat } from './contentModel/format/formatParts/MarginFormat';\nexport { PaddingFormat } from './contentModel/format/formatParts/PaddingFormat';\nexport { TextAlignFormat } from './contentModel/format/formatParts/TextAlignFormat';\nexport { TextIndentFormat } from './contentModel/format/formatParts/TextIndentFormat';\nexport { WhiteSpaceFormat } from './contentModel/format/formatParts/WhiteSpaceFormat';\nexport { DisplayFormat } from './contentModel/format/formatParts/DisplayFormat';\nexport { IdFormat } from './contentModel/format/formatParts/IdFormat';\nexport { SpacingFormat } from './contentModel/format/formatParts/SpacingFormat';\nexport { TableLayoutFormat } from './contentModel/format/formatParts/TableLayoutFormat';\nexport { LinkFormat } from './contentModel/format/formatParts/LinkFormat';\nexport { SizeFormat } from './contentModel/format/formatParts/SizeFormat';\nexport { BoxShadowFormat } from './contentModel/format/formatParts/BoxShadowFormat';\nexport { ListThreadFormat } from './contentModel/format/formatParts/ListThreadFormat';\nexport { ListStyleFormat } from './contentModel/format/formatParts/ListStyleFormat';\nexport { FloatFormat } from './contentModel/format/formatParts/FloatFormat';\nexport { EntityInfoFormat } from './contentModel/format/formatParts/EntityInfoFormat';\nexport { UndeletableFormat } from './contentModel/format/formatParts/UndeletableFormat';\nexport { ImageStateFormat } from './contentModel/format/formatParts/ImageStateFormat';\nexport { RoleFormat } from './contentModel/format/formatParts/RoleFormat';\nexport { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';\n\nexport { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';\nexport { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';\nexport { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';\nexport {\n ImageResizeMetadataFormat,\n ImageCropMetadataFormat,\n ImageMetadataFormat,\n ImageRotateMetadataFormat,\n ImageFlipMetadataFormat,\n} from './contentModel/format/metadata/ImageMetadataFormat';\nexport { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';\n\nexport { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroupType';\nexport { ContentModelBlockType } from './contentModel/block/BlockType';\nexport { ContentModelSegmentType } from './contentModel/segment/SegmentType';\n\nexport {\n EntityLifecycleOperation,\n EntityOperation,\n EntityRemovalOperation,\n EntityFormatOperation,\n} from './enum/EntityOperation';\nexport {\n TableOperation,\n TableVerticalInsertOperation,\n TableHorizontalInsertOperation,\n TableDeleteOperation,\n TableVerticalMergeOperation,\n TableHorizontalMergeOperation,\n TableCellMergeOperation,\n TableSplitOperation,\n TableAlignOperation,\n TableCellHorizontalAlignOperation,\n TableCellVerticalAlignOperation,\n TableCellShiftOperation,\n} from './enum/TableOperation';\nexport { PasteType } from './enum/PasteType';\nexport { BorderOperations } from './enum/BorderOperations';\nexport { DeleteResult } from './enum/DeleteResult';\nexport { InsertEntityPosition } from './enum/InsertEntityPosition';\nexport { ExportContentMode } from './enum/ExportContentMode';\n\nexport {\n ContentModelBlock,\n ReadonlyContentModelBlock,\n ShallowMutableContentModelBlock,\n} from './contentModel/block/ContentModelBlock';\nexport {\n ContentModelParagraph,\n ContentModelParagraphCommon,\n ReadonlyContentModelParagraph,\n ShallowMutableContentModelParagraph,\n} from './contentModel/block/ContentModelParagraph';\nexport {\n ContentModelTable,\n ReadonlyContentModelTable,\n ShallowMutableContentModelTable,\n} from './contentModel/block/ContentModelTable';\nexport {\n ContentModelDivider,\n ContentModelDividerCommon,\n ReadonlyContentModelDivider,\n} from './contentModel/block/ContentModelDivider';\nexport {\n ContentModelBlockBase,\n ContentModelBlockBaseCommon,\n ReadonlyContentModelBlockBase,\n ShallowMutableContentModelBlockBase,\n} from './contentModel/block/ContentModelBlockBase';\nexport { ContentModelBlockWithCache } from './contentModel/common/ContentModelBlockWithCache';\nexport {\n ContentModelTableRow,\n ContentModelTableRowCommon,\n ReadonlyContentModelTableRow,\n ShallowMutableContentModelTableRow,\n} from './contentModel/block/ContentModelTableRow';\n\nexport { ContentModelEntity } from './contentModel/entity/ContentModelEntity';\n\nexport {\n ContentModelDocument,\n ContentModelDocumentCommon,\n ReadonlyContentModelDocument,\n ShallowMutableContentModelDocument,\n} from './contentModel/blockGroup/ContentModelDocument';\nexport {\n ContentModelBlockGroupBase,\n ContentModelBlockGroupBaseCommon,\n ReadonlyContentModelBlockGroupBase,\n ShallowMutableContentModelBlockGroupBase,\n} from './contentModel/blockGroup/ContentModelBlockGroupBase';\nexport {\n ContentModelFormatContainer,\n ContentModelFormatContainerCommon,\n ReadonlyContentModelFormatContainer,\n ShallowMutableContentModelFormatContainer,\n} from './contentModel/blockGroup/ContentModelFormatContainer';\nexport {\n ContentModelGeneralBlock,\n ContentModelGeneralBlockCommon,\n ReadonlyContentModelGeneralBlock,\n ShallowMutableContentModelGeneralBlock,\n} from './contentModel/blockGroup/ContentModelGeneralBlock';\nexport {\n ContentModelListItem,\n ReadonlyContentModelListItem,\n ShallowMutableContentModelListItem,\n} from './contentModel/blockGroup/ContentModelListItem';\nexport {\n ContentModelTableCell,\n ContentModelTableCellCommon,\n ReadonlyContentModelTableCell,\n ShallowMutableContentModelTableCell,\n} from './contentModel/blockGroup/ContentModelTableCell';\nexport {\n ContentModelBlockGroup,\n ReadonlyContentModelBlockGroup,\n ShallowMutableContentModelBlockGroup,\n} from './contentModel/blockGroup/ContentModelBlockGroup';\n\nexport { ContentModelBr, ReadonlyContentModelBr } from './contentModel/segment/ContentModelBr';\nexport {\n ContentModelGeneralSegment,\n ReadonlyContentModelGeneralSegment,\n ShallowMutableContentModelGeneralSegment,\n} from './contentModel/segment/ContentModelGeneralSegment';\nexport {\n ContentModelImage,\n ContentModelImageCommon,\n ReadonlyContentModelImage,\n} from './contentModel/segment/ContentModelImage';\nexport {\n ContentModelText,\n ContentModelTextCommon,\n ReadonlyContentModelText,\n} from './contentModel/segment/ContentModelText';\nexport {\n ContentModelSelectionMarker,\n ReadonlyContentModelSelectionMarker,\n} from './contentModel/segment/ContentModelSelectionMarker';\nexport {\n ContentModelSegmentBase,\n ContentModelSegmentBaseCommon,\n ReadonlyContentModelSegmentBase,\n ShallowMutableContentModelSegmentBase,\n} from './contentModel/segment/ContentModelSegmentBase';\nexport {\n ContentModelSegment,\n ReadonlyContentModelSegment,\n ShallowMutableContentModelSegment,\n} from './contentModel/segment/ContentModelSegment';\n\nexport {\n ContentModelCode,\n ReadonlyContentModelCode,\n} from './contentModel/decorator/ContentModelCode';\nexport {\n ContentModelLink,\n ReadonlyContentModelLink,\n} from './contentModel/decorator/ContentModelLink';\nexport {\n ContentModelParagraphDecorator,\n ContentModelParagraphDecoratorCommon,\n ReadonlyContentModelParagraphDecorator,\n} from './contentModel/decorator/ContentModelParagraphDecorator';\nexport {\n ContentModelDecorator,\n ReadonlyContentModelDecorator,\n} from './contentModel/decorator/ContentModelDecorator';\nexport {\n ContentModelListLevel,\n ContentModelListLevelCommon,\n ReadonlyContentModelListLevel,\n} from './contentModel/decorator/ContentModelListLevel';\n\nexport {\n Selectable,\n ReadonlySelectable,\n ShallowMutableSelectable,\n} from './contentModel/common/Selectable';\nexport { MutableMark, ShallowMutableMark, ReadonlyMark } from './contentModel/common/MutableMark';\nexport { MutableType } from './contentModel/common/MutableType';\n\nexport {\n DOMSelection,\n SelectionType,\n SelectionBase,\n ImageSelection,\n RangeSelection,\n TableSelection,\n DOMInsertPoint,\n} from './selection/DOMSelection';\nexport { InsertPoint } from './selection/InsertPoint';\nexport {\n TableSelectionContext,\n ReadonlyTableSelectionContext,\n} from './selection/TableSelectionContext';\nexport { TableSelectionCoordinates } from './selection/TableSelectionCoordinates';\n\nexport {\n ContentModelHandlerMap,\n DefaultImplicitFormatMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n OnNodeCreated,\n ModelToDomSettings,\n FormatApplier,\n ApplyMetadata,\n MetadataApplier,\n MetadataAppliers,\n TextFormatApplier,\n ElementFormatAppliersPerCategory,\n} from './context/ModelToDomSettings';\nexport {\n DefaultStyleMap,\n ElementProcessorMap,\n FormatParsers,\n FormatParsersPerCategory,\n DomToModelSettings,\n FormatParser,\n TextFormatParser,\n ElementFormatParserPerCategory,\n} from './context/DomToModelSettings';\nexport { DomToModelContext } from './context/DomToModelContext';\nexport { ElementProcessor } from './context/ElementProcessor';\nexport { DomToModelSelectionContext } from './context/DomToModelSelectionContext';\nexport { EditorContext } from './context/EditorContext';\nexport {\n DomToModelFormatContext,\n DomToModelDecoratorContext,\n DomToModelListFormat,\n} from './context/DomToModelFormatContext';\nexport { ModelToDomContext, ModelToDomSegmentContext } from './context/ModelToDomContext';\nexport {\n ModelToDomBlockAndSegmentNode,\n ModelToDomRegularSelection,\n ModelToDomSelectionContext,\n} from './context/ModelToDomSelectionContext';\nexport {\n ModelToDomListStackItem,\n ModelToDomListContext,\n ModelToDomFormatContext,\n} from './context/ModelToDomFormatContext';\nexport { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';\nexport {\n ContentModelHandler,\n ContentModelSegmentHandler,\n ContentModelBlockHandler,\n} from './context/ContentModelHandler';\nexport {\n DomToModelOption,\n DomToModelOptionForSanitizing,\n DomToModelOptionForCreateModel,\n} from './context/DomToModelOption';\nexport { ModelToDomOption } from './context/ModelToDomOption';\nexport { DomIndexer } from './context/DomIndexer';\nexport { TextMutationObserver } from './context/TextMutationObserver';\n\nexport { DefinitionType } from './metadata/DefinitionType';\nexport {\n ArrayItemType,\n DefinitionBase,\n StringDefinition,\n NumberDefinition,\n BooleanDefinition,\n ArrayDefinition,\n ObjectPropertyDefinition,\n ObjectDefinition,\n Definition,\n} from './metadata/Definition';\nexport { DarkColorHandler, Colors, ColorTransformFunction } from './context/DarkColorHandler';\n\nexport { IEditor } from './editor/IEditor';\nexport { ExperimentalFeature, GraduatedExperimentalFeature } from './editor/ExperimentalFeature';\nexport {\n EditorOptions,\n ColorOptions,\n ContentModelOptions,\n SelectionOptions,\n PasteOptions,\n EditorBaseOptions,\n} from './editor/EditorOptions';\nexport {\n CreateContentModel,\n CreateEditorContext,\n GetDOMSelection,\n SetContentModel,\n SetDOMSelection,\n SetLogicalRoot,\n FormatContentModel,\n CoreApiMap,\n EditorCore,\n SwitchShadowEdit,\n TriggerEvent,\n AddUndoSnapshot,\n Focus,\n AttachDomEvent,\n RestoreUndoSnapshot,\n GetVisibleViewport,\n SetEditorStyle,\n Announce,\n} from './editor/EditorCore';\nexport { EditorCorePlugins } from './editor/EditorCorePlugins';\nexport { EditorPlugin } from './editor/EditorPlugin';\nexport { PluginWithState } from './editor/PluginWithState';\nexport { ContextMenuProvider } from './editor/ContextMenuProvider';\n\nexport {\n CachePluginState,\n RangeSelectionForCache,\n CacheSelection,\n} from './pluginState/CachePluginState';\nexport { FormatPluginState, PendingFormat } from './pluginState/FormatPluginState';\nexport { CopyPastePluginState } from './pluginState/CopyPastePluginState';\nexport { DOMEventPluginState } from './pluginState/DOMEventPluginState';\nexport { LifecyclePluginState } from './pluginState/LifecyclePluginState';\nexport { EntityPluginState, KnownEntityItem } from './pluginState/EntityPluginState';\nexport {\n SelectionPluginState,\n TableSelectionInfo,\n TableCellCoordinate,\n} from './pluginState/SelectionPluginState';\nexport { UndoPluginState } from './pluginState/UndoPluginState';\nexport {\n PluginKey,\n KeyOfStatePlugin,\n TypeOfStatePlugin,\n StatePluginKeys,\n GenericPluginState,\n PluginState,\n} from './pluginState/PluginState';\nexport { ContextMenuPluginState } from './pluginState/ContextMenuPluginState';\n\nexport { AutoLinkOptions } from './parameter/AutoLinkOptions';\nexport { EditorEnvironment, ContentModelSettings } from './parameter/EditorEnvironment';\nexport {\n EntityState,\n DeletedEntity,\n FormatContentModelContext,\n} from './parameter/FormatContentModelContext';\nexport {\n FormatContentModelOptions,\n ContentModelFormatter,\n} from './parameter/FormatContentModelOptions';\nexport { ContentModelFormatState } from './parameter/ContentModelFormatState';\nexport { PasteTypeOrGetter } from './parameter/PasteTypeOrGetter';\nexport { ImageFormatState } from './parameter/ImageFormatState';\nexport { Border } from './parameter/Border';\nexport { InsertEntityOptions } from './parameter/InsertEntityOptions';\nexport {\n DeleteSelectionContext,\n DeleteSelectionResult,\n DeleteSelectionStep,\n ValidDeleteSelectionContext,\n} from './parameter/DeleteSelectionStep';\nexport {\n SnapshotSelectionBase,\n RangeSnapshotSelection,\n ImageSnapshotSelection,\n TableSnapshotSelection,\n SnapshotSelection,\n Snapshot,\n Snapshots,\n} from './parameter/Snapshot';\nexport { SnapshotsManager } from './parameter/SnapshotsManager';\nexport { DOMEventHandlerFunction, DOMEventRecord } from './parameter/DOMEventRecord';\nexport { EdgeLinkPreview } from './parameter/EdgeLinkPreview';\nexport { ClipboardData } from './parameter/ClipboardData';\nexport { AnnounceData, KnownAnnounceStrings } from './parameter/AnnounceData';\nexport { AnnouncingOption } from './parameter/AnnouncingOption';\nexport {\n TrustedHTMLHandler,\n DOMCreator,\n LegacyTrustedHTMLHandler,\n} from './parameter/TrustedHTMLHandler';\nexport { Rect } from './parameter/Rect';\nexport { ValueSanitizer } from './parameter/ValueSanitizer';\nexport { DOMHelper } from './parameter/DOMHelper';\nexport { ImageEditOperation, ImageEditor } from './parameter/ImageEditor';\nexport { CachedElementHandler, CloneModelOptions } from './parameter/CloneModelOptions';\nexport { LinkData } from './parameter/LinkData';\nexport { MergeModelOption } from './parameter/MergeModelOption';\nexport {\n IterateSelectionsCallback,\n IterateSelectionsOption,\n ReadonlyIterateSelectionsCallback,\n} from './parameter/IterateSelectionsOption';\nexport { NodeTypeMap } from './parameter/NodeTypeMap';\nexport { TypeOfBlockGroup } from './parameter/TypeOfBlockGroup';\nexport { OperationalBlocks, ReadonlyOperationalBlocks } from './parameter/OperationalBlocks';\nexport { ParsedTable, ParsedTableCell } from './parameter/ParsedTable';\nexport {\n ModelToTextCallback,\n ModelToTextCallbacks,\n ModelToTextChecker,\n} from './parameter/ModelToTextCallbacks';\nexport { ConflictFormatSolution } from './parameter/ConflictFormatSolution';\nexport { ParagraphMap, ParagraphIndexer } from './parameter/ParagraphMap';\nexport { TextAndHtmlContentForCopy } from './parameter/TextAndHtmlContentForCopy';\nexport { PromotedLink } from './parameter/PromotedLink';\nexport { BorderKey } from './parameter/BorderKey';\n\nexport { BasePluginEvent, BasePluginDomEvent } from './event/BasePluginEvent';\nexport { BeforeAddUndoSnapshotEvent } from './event/BeforeAddUndoSnapshotEvent';\nexport { BeforeCutCopyEvent } from './event/BeforeCutCopyEvent';\nexport { BeforeDisposeEvent } from './event/BeforeDisposeEvent';\nexport { BeforeKeyboardEditingEvent } from './event/BeforeKeyboardEditingEvent';\nexport { BeforePasteEvent, MergePastedContentFunc } from './event/BeforePasteEvent';\nexport { BeforeSetContentEvent } from './event/BeforeSetContentEvent';\nexport { ContentChangedEvent, ChangedEntity } from './event/ContentChangedEvent';\nexport { ContextMenuEvent } from './event/ContextMenuEvent';\nexport { RewriteFromModelEvent } from './event/RewriteFromModelEvent';\nexport { EditImageEvent } from './event/EditImageEvent';\nexport { EditorReadyEvent } from './event/EditorReadyEvent';\nexport { EntityOperationEvent, FormattableRoot, Entity } from './event/EntityOperationEvent';\nexport { ExtractContentWithDomEvent } from './event/ExtractContentWithDomEvent';\nexport { EditorInputEvent } from './event/EditorInputEvent';\nexport {\n KeyDownEvent,\n KeyPressEvent,\n KeyUpEvent,\n CompositionEndEvent,\n} from './event/KeyboardEvent';\nexport {\n BeforeLogicalRootChangeEvent,\n LogicalRootChangedEvent,\n} from './event/LogicalRootChangedEvent';\nexport { MouseDownEvent, MouseUpEvent, DoubleClickEvent } from './event/MouseEvent';\nexport { PluginEvent } from './event/PluginEvent';\nexport {\n PluginEventData,\n PluginEventFromTypeGeneric,\n PluginEventFromType,\n PluginEventDataGeneric,\n} from './event/PluginEventData';\nexport { PluginEventType } from './event/PluginEventType';\nexport { ScrollEvent } from './event/ScrollEvent';\nexport { SelectionChangedEvent } from './event/SelectionChangedEvent';\nexport { EnterShadowEditEvent, LeaveShadowEditEvent } from './event/ShadowEditEvent';\nexport { ZoomChangedEvent } from './event/ZoomChangedEvent';\nexport { PointerDownEvent, PointerUpEvent } from './event/PointerEvent';\nexport { FindResultChangedEvent } from './event/FindResultChangedEvent';\n"]}
|
|
@@ -2,7 +2,7 @@ import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock'
|
|
|
2
2
|
import type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';
|
|
3
3
|
import type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';
|
|
4
4
|
import type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';
|
|
5
|
-
import type { ModelToDomContext } from './ModelToDomContext';
|
|
5
|
+
import type { ModelToDomContext, ModelToDomSegmentContext } from './ModelToDomContext';
|
|
6
6
|
/**
|
|
7
7
|
* Type of Content Model to DOM handler
|
|
8
8
|
* @param doc Target HTML Document object
|
|
@@ -31,4 +31,4 @@ export declare type ContentModelBlockHandler<T extends ContentModelBlock | Conte
|
|
|
31
31
|
* - For segments with decorators: decorator elements will also be included
|
|
32
32
|
* - For inline entity segment, the delimiter SPANs will also be included
|
|
33
33
|
*/
|
|
34
|
-
export declare type ContentModelSegmentHandler<T extends ContentModelSegment> = (doc: Document, parent: Node, model: T, context:
|
|
34
|
+
export declare type ContentModelSegmentHandler<T extends ContentModelSegment> = (doc: Document, parent: Node, model: T, context: ModelToDomSegmentContext, segmentNodes: Node[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';\nimport type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';\nimport type { ModelToDomContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context:
|
|
1
|
+
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';\nimport type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';\nimport type { ModelToDomContext, ModelToDomSegmentContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomSegmentContext,\n segmentNodes: Node[]\n) => void;\n"]}
|
|
@@ -18,8 +18,9 @@ export interface Colors {
|
|
|
18
18
|
* @param baseLValue Base value of light used for dark value calculation
|
|
19
19
|
* @param colorType @optional Type of color, can be text, background, or border
|
|
20
20
|
* @param element @optional Source HTML element of the color
|
|
21
|
+
* @param comparingColor @optional When generating dark color for background color, we can provide text color as comparingColor to make sure the generated dark border color has enough contrast with text color in dark mode
|
|
21
22
|
*/
|
|
22
|
-
export declare type ColorTransformFunction = (lightColor: string, baseLValue?: number, colorType?: 'text' | 'background' | 'border', element?: HTMLElement) => string;
|
|
23
|
+
export declare type ColorTransformFunction = (lightColor: string, baseLValue?: number, colorType?: 'text' | 'background' | 'border', element?: HTMLElement, comparingColor?: string) => string;
|
|
23
24
|
/**
|
|
24
25
|
* A handler object for dark color, used for variable-based dark color solution
|
|
25
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkColorHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DarkColorHandler.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a combination of color key, light color and dark color, parsed from existing color value\n */\nexport interface Colors {\n /**\n * Light mode color value\n */\n lightModeColor: string;\n\n /**\n * Dark mode color value, if found, otherwise undefined\n */\n darkModeColor: string;\n}\n\n/**\n * A util function type to transform light mode color to dark mode color\n * Default value is to return the original light color\n * @param lightColor Source color string in light mode\n * @param baseLValue Base value of light used for dark value calculation\n * @param colorType @optional Type of color, can be text, background, or border\n * @param element @optional Source HTML element of the color\n */\nexport type ColorTransformFunction = (\n lightColor: string,\n baseLValue?: number,\n colorType?: 'text' | 'background' | 'border',\n element?: HTMLElement\n) => string;\n\n/**\n * A handler object for dark color, used for variable-based dark color solution\n */\nexport interface DarkColorHandler {\n /**\n * Map of known colors\n */\n readonly knownColors: Record<string, Colors>;\n\n /**\n * Update all known colors to root container.\n * @param isDarkMode Whether container is in dark mode. When in dark mode, we add CSS color variables for all known colors.\n * When in light mode, we will remove all those CSS color variables\n */\n updateKnownColor(isDarkMode: boolean): void;\n\n /**\n * Register a known color, and update it to root container via CSS color variable when in dark mode\n * @param isDarkMode Whether container is in dark mode.\n * @param key The key of color, normally it is the name of color variable\n * @param colorPair A pair value of light color and dark color\n */\n updateKnownColor(isDarkMode: boolean, key: string, colorPair: Colors): void;\n\n /**\n * Reset known color record, clean up registered color variables.\n */\n reset(): void;\n\n /**\n * A util function to transform light mode color to dark mode color\n */\n getDarkColor: ColorTransformFunction;\n\n /**\n * Generate color key for dark mode color.\n */\n generateColorKey: ColorTransformFunction;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DarkColorHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DarkColorHandler.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a combination of color key, light color and dark color, parsed from existing color value\n */\nexport interface Colors {\n /**\n * Light mode color value\n */\n lightModeColor: string;\n\n /**\n * Dark mode color value, if found, otherwise undefined\n */\n darkModeColor: string;\n}\n\n/**\n * A util function type to transform light mode color to dark mode color\n * Default value is to return the original light color\n * @param lightColor Source color string in light mode\n * @param baseLValue Base value of light used for dark value calculation\n * @param colorType @optional Type of color, can be text, background, or border\n * @param element @optional Source HTML element of the color\n * @param comparingColor @optional When generating dark color for background color, we can provide text color as comparingColor to make sure the generated dark border color has enough contrast with text color in dark mode\n */\nexport type ColorTransformFunction = (\n lightColor: string,\n baseLValue?: number,\n colorType?: 'text' | 'background' | 'border',\n element?: HTMLElement,\n comparingColor?: string\n) => string;\n\n/**\n * A handler object for dark color, used for variable-based dark color solution\n */\nexport interface DarkColorHandler {\n /**\n * Map of known colors\n */\n readonly knownColors: Record<string, Colors>;\n\n /**\n * Update all known colors to root container.\n * @param isDarkMode Whether container is in dark mode. When in dark mode, we add CSS color variables for all known colors.\n * When in light mode, we will remove all those CSS color variables\n */\n updateKnownColor(isDarkMode: boolean): void;\n\n /**\n * Register a known color, and update it to root container via CSS color variable when in dark mode\n * @param isDarkMode Whether container is in dark mode.\n * @param key The key of color, normally it is the name of color variable\n * @param colorPair A pair value of light color and dark color\n */\n updateKnownColor(isDarkMode: boolean, key: string, colorPair: Colors): void;\n\n /**\n * Reset known color record, clean up registered color variables.\n */\n reset(): void;\n\n /**\n * A util function to transform light mode color to dark mode color\n */\n getDarkColor: ColorTransformFunction;\n\n /**\n * Generate color key for dark mode color.\n */\n generateColorKey: ColorTransformFunction;\n}\n"]}
|
|
@@ -8,3 +8,14 @@ import type { ModelToDomSettings } from './ModelToDomSettings';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface ModelToDomContext extends EditorContext, ModelToDomSelectionContext, ModelToDomFormatContext, ModelToDomSettings, RewriteFromModelContext {
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Extended context used by segment and text handlers to carry per-paragraph segment state
|
|
13
|
+
*/
|
|
14
|
+
export interface ModelToDomSegmentContext extends ModelToDomContext {
|
|
15
|
+
/**
|
|
16
|
+
* Whether the current segment is the last segment in the paragraph,
|
|
17
|
+
* or there are no more Text segments after it (excluding SelectionMarkers).
|
|
18
|
+
* When true, trailing spaces should be converted to &nbsp;.
|
|
19
|
+
*/
|
|
20
|
+
noFollowingTextSegmentOrLast?: boolean;
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { RewriteFromModelContext } from './RewriteFromModel';\nimport type { EditorContext } from './EditorContext';\nimport type { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport type { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings,\n RewriteFromModelContext {}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { RewriteFromModelContext } from './RewriteFromModel';\nimport type { EditorContext } from './EditorContext';\nimport type { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport type { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings,\n RewriteFromModelContext {}\n\n/**\n * Extended context used by segment and text handlers to carry per-paragraph segment state\n */\nexport interface ModelToDomSegmentContext extends ModelToDomContext {\n /**\n * Whether the current segment is the last segment in the paragraph,\n * or there are no more Text segments after it (excluding SelectionMarkers).\n * When true, trailing spaces should be converted to &nbsp;.\n */\n noFollowingTextSegmentOrLast?: boolean;\n}\n"]}
|
|
@@ -130,7 +130,19 @@ export declare type TableCellVerticalAlignOperation =
|
|
|
130
130
|
* Align current table cell at the bottom
|
|
131
131
|
*/
|
|
132
132
|
| 'alignCellBottom';
|
|
133
|
+
/**
|
|
134
|
+
* Operations used by editTable() API to shift table cell content up or left
|
|
135
|
+
*/
|
|
136
|
+
export declare type TableCellShiftOperation =
|
|
137
|
+
/**
|
|
138
|
+
* Move the table cell content to the cell on the left
|
|
139
|
+
*/
|
|
140
|
+
'shiftCellsLeft'
|
|
141
|
+
/**
|
|
142
|
+
* Move the table cell content to the cell above
|
|
143
|
+
*/
|
|
144
|
+
| 'shiftCellsUp';
|
|
133
145
|
/**
|
|
134
146
|
* Operations used by editTable() API
|
|
135
147
|
*/
|
|
136
|
-
export declare type TableOperation = TableVerticalInsertOperation | TableHorizontalInsertOperation | TableDeleteOperation | TableVerticalMergeOperation | TableHorizontalMergeOperation | TableCellMergeOperation | TableSplitOperation | TableAlignOperation | TableCellHorizontalAlignOperation | TableCellVerticalAlignOperation;
|
|
148
|
+
export declare type TableOperation = TableVerticalInsertOperation | TableHorizontalInsertOperation | TableDeleteOperation | TableVerticalMergeOperation | TableHorizontalMergeOperation | TableCellMergeOperation | TableSplitOperation | TableAlignOperation | TableCellHorizontalAlignOperation | TableCellVerticalAlignOperation | TableCellShiftOperation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableOperation.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/enum/TableOperation.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Operations used by editTable() API for insert table cell vertically\n */\nexport type TableVerticalInsertOperation =\n /**\n * Insert a row above current row\n */\n | 'insertAbove'\n\n /**\n * Insert a row below current row\n */\n | 'insertBelow';\n\n/**\n * Operations used by editTable() API for insert table cell horizontally\n */\nexport type TableHorizontalInsertOperation =\n /**\n * Insert a column on the left of current column\n */\n | 'insertLeft'\n\n /**\n * Insert a column on the right of current column\n */\n | 'insertRight';\n\n/**\n * Operations used by editTable() API for delete table cells\n */\nexport type TableDeleteOperation =\n /**\n * Delete the whole table\n */\n | 'deleteTable'\n\n /**\n * Delete current column\n */\n | 'deleteColumn'\n\n /**\n * Delete current row\n */\n | 'deleteRow';\n\n/**\n * Operations used by editTable() API for merge table cells vertically\n */\nexport type TableVerticalMergeOperation =\n /**\n * Merge current row with the row above\n */\n | 'mergeAbove'\n\n /**\n * Merge current row with the row below\n */\n | 'mergeBelow';\n\n/**\n * Operations used by editTable() API for merge table cells horizontally\n */\nexport type TableHorizontalMergeOperation =\n /**\n * Merge current column with the column on the left\n */\n | 'mergeLeft'\n\n /**\n * Merge current column with the column on the right\n */\n | 'mergeRight';\n\n/**\n * Operations used by editTable() API for merge selected table cells\n */\nexport type TableCellMergeOperation =\n /**\n * Merge all selected cells\n */\n 'mergeCells';\n\n/**\n * Operations used by editTable() API for split table cells\n */\nexport type TableSplitOperation =\n /**\n * Split current table cell horizontally\n */\n | 'splitHorizontally'\n\n /**\n * Split current table cell vertically\n */\n | 'splitVertically';\n\n/**\n * Operations used by editTable() API for align table\n */\nexport type TableAlignOperation =\n /**\n * Align current table at the center\n */\n | 'alignCenter'\n\n /**\n * Align current table at the left\n */\n | 'alignLeft'\n\n /**\n * Align current table at the right\n */\n | 'alignRight';\n\n/**\n * Operations used by editTable() API for align table cell horizontally\n */\nexport type TableCellHorizontalAlignOperation =\n /**\n * Align current content table cell at the left\n */\n | 'alignCellLeft'\n\n /**\n * Align current content table cell at the center\n */\n | 'alignCellCenter'\n\n /**\n * Align current content table cell at the right\n */\n | 'alignCellRight';\n\n/**\n * Operations used by editTable() API for align table cell vertically\n */\nexport type TableCellVerticalAlignOperation =\n /**\n * Align current content table cell at the top\n */\n | 'alignCellTop'\n\n /**\n * Align current table cell at the middle\n */\n | 'alignCellMiddle'\n\n /**\n * Align current table cell at the bottom\n */\n | 'alignCellBottom';\n\n/**\n * Operations used by editTable() API\n */\nexport type TableOperation =\n | TableVerticalInsertOperation\n | TableHorizontalInsertOperation\n | TableDeleteOperation\n | TableVerticalMergeOperation\n | TableHorizontalMergeOperation\n | TableCellMergeOperation\n | TableSplitOperation\n | TableAlignOperation\n | TableCellHorizontalAlignOperation\n | TableCellVerticalAlignOperation;\n"]}
|
|
1
|
+
{"version":3,"file":"TableOperation.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/enum/TableOperation.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Operations used by editTable() API for insert table cell vertically\n */\nexport type TableVerticalInsertOperation =\n /**\n * Insert a row above current row\n */\n | 'insertAbove'\n\n /**\n * Insert a row below current row\n */\n | 'insertBelow';\n\n/**\n * Operations used by editTable() API for insert table cell horizontally\n */\nexport type TableHorizontalInsertOperation =\n /**\n * Insert a column on the left of current column\n */\n | 'insertLeft'\n\n /**\n * Insert a column on the right of current column\n */\n | 'insertRight';\n\n/**\n * Operations used by editTable() API for delete table cells\n */\nexport type TableDeleteOperation =\n /**\n * Delete the whole table\n */\n | 'deleteTable'\n\n /**\n * Delete current column\n */\n | 'deleteColumn'\n\n /**\n * Delete current row\n */\n | 'deleteRow';\n\n/**\n * Operations used by editTable() API for merge table cells vertically\n */\nexport type TableVerticalMergeOperation =\n /**\n * Merge current row with the row above\n */\n | 'mergeAbove'\n\n /**\n * Merge current row with the row below\n */\n | 'mergeBelow';\n\n/**\n * Operations used by editTable() API for merge table cells horizontally\n */\nexport type TableHorizontalMergeOperation =\n /**\n * Merge current column with the column on the left\n */\n | 'mergeLeft'\n\n /**\n * Merge current column with the column on the right\n */\n | 'mergeRight';\n\n/**\n * Operations used by editTable() API for merge selected table cells\n */\nexport type TableCellMergeOperation =\n /**\n * Merge all selected cells\n */\n 'mergeCells';\n\n/**\n * Operations used by editTable() API for split table cells\n */\nexport type TableSplitOperation =\n /**\n * Split current table cell horizontally\n */\n | 'splitHorizontally'\n\n /**\n * Split current table cell vertically\n */\n | 'splitVertically';\n\n/**\n * Operations used by editTable() API for align table\n */\nexport type TableAlignOperation =\n /**\n * Align current table at the center\n */\n | 'alignCenter'\n\n /**\n * Align current table at the left\n */\n | 'alignLeft'\n\n /**\n * Align current table at the right\n */\n | 'alignRight';\n\n/**\n * Operations used by editTable() API for align table cell horizontally\n */\nexport type TableCellHorizontalAlignOperation =\n /**\n * Align current content table cell at the left\n */\n | 'alignCellLeft'\n\n /**\n * Align current content table cell at the center\n */\n | 'alignCellCenter'\n\n /**\n * Align current content table cell at the right\n */\n | 'alignCellRight';\n\n/**\n * Operations used by editTable() API for align table cell vertically\n */\nexport type TableCellVerticalAlignOperation =\n /**\n * Align current content table cell at the top\n */\n | 'alignCellTop'\n\n /**\n * Align current table cell at the middle\n */\n | 'alignCellMiddle'\n\n /**\n * Align current table cell at the bottom\n */\n | 'alignCellBottom';\n\n/**\n * Operations used by editTable() API to shift table cell content up or left\n */\nexport type TableCellShiftOperation =\n /**\n * Move the table cell content to the cell on the left\n */\n | 'shiftCellsLeft'\n\n /**\n * Move the table cell content to the cell above\n */\n | 'shiftCellsUp';\n\n/**\n * Operations used by editTable() API\n */\nexport type TableOperation =\n | TableVerticalInsertOperation\n | TableHorizontalInsertOperation\n | TableDeleteOperation\n | TableVerticalMergeOperation\n | TableHorizontalMergeOperation\n | TableCellMergeOperation\n | TableSplitOperation\n | TableAlignOperation\n | TableCellHorizontalAlignOperation\n | TableCellVerticalAlignOperation\n | TableCellShiftOperation;\n"]}
|
package/lib-amd/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroup
|
|
|
62
62
|
export { ContentModelBlockType } from './contentModel/block/BlockType';
|
|
63
63
|
export { ContentModelSegmentType } from './contentModel/segment/SegmentType';
|
|
64
64
|
export { EntityLifecycleOperation, EntityOperation, EntityRemovalOperation, EntityFormatOperation, } from './enum/EntityOperation';
|
|
65
|
-
export { TableOperation, TableVerticalInsertOperation, TableHorizontalInsertOperation, TableDeleteOperation, TableVerticalMergeOperation, TableHorizontalMergeOperation, TableCellMergeOperation, TableSplitOperation, TableAlignOperation, TableCellHorizontalAlignOperation, TableCellVerticalAlignOperation, } from './enum/TableOperation';
|
|
65
|
+
export { TableOperation, TableVerticalInsertOperation, TableHorizontalInsertOperation, TableDeleteOperation, TableVerticalMergeOperation, TableHorizontalMergeOperation, TableCellMergeOperation, TableSplitOperation, TableAlignOperation, TableCellHorizontalAlignOperation, TableCellVerticalAlignOperation, TableCellShiftOperation, } from './enum/TableOperation';
|
|
66
66
|
export { PasteType } from './enum/PasteType';
|
|
67
67
|
export { BorderOperations } from './enum/BorderOperations';
|
|
68
68
|
export { DeleteResult } from './enum/DeleteResult';
|
|
@@ -109,7 +109,7 @@ export { ElementProcessor } from './context/ElementProcessor';
|
|
|
109
109
|
export { DomToModelSelectionContext } from './context/DomToModelSelectionContext';
|
|
110
110
|
export { EditorContext } from './context/EditorContext';
|
|
111
111
|
export { DomToModelFormatContext, DomToModelDecoratorContext, DomToModelListFormat, } from './context/DomToModelFormatContext';
|
|
112
|
-
export { ModelToDomContext } from './context/ModelToDomContext';
|
|
112
|
+
export { ModelToDomContext, ModelToDomSegmentContext } from './context/ModelToDomContext';
|
|
113
113
|
export { ModelToDomBlockAndSegmentNode, ModelToDomRegularSelection, ModelToDomSelectionContext, } from './context/ModelToDomSelectionContext';
|
|
114
114
|
export { ModelToDomListStackItem, ModelToDomListContext, ModelToDomFormatContext, } from './context/ModelToDomFormatContext';
|
|
115
115
|
export { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';
|
package/lib-amd/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/roosterjs-content-model-types/lib/index.ts"],"names":[],"mappings":"","sourcesContent":["export { ContentModelSegmentFormat } from './contentModel/format/ContentModelSegmentFormat';\nexport {\n ContentModelWithFormat,\n ReadonlyContentModelWithFormat,\n} from './contentModel/format/ContentModelWithFormat';\nexport { ContentModelTableFormat } from './contentModel/format/ContentModelTableFormat';\nexport {\n ContentModelWithDataset,\n ReadonlyContentModelWithDataset,\n ShallowMutableContentModelWithDataset,\n} from './contentModel/format/ContentModelWithDataset';\nexport { ContentModelBlockFormat } from './contentModel/format/ContentModelBlockFormat';\nexport { ContentModelTableCellFormat } from './contentModel/format/ContentModelTableCellFormat';\nexport { ContentModelListItemFormat } from './contentModel/format/ContentModelListItemFormat';\nexport { ContentModelListItemLevelFormat } from './contentModel/format/ContentModelListItemLevelFormat';\nexport { ContentModelHyperLinkFormat } from './contentModel/format/ContentModelHyperLinkFormat';\nexport { ContentModelCodeFormat } from './contentModel/format/ContentModelCodeFormat';\nexport { ContentModelFormatContainerFormat } from './contentModel/format/ContentModelFormatContainerFormat';\nexport { ContentModelDividerFormat } from './contentModel/format/ContentModelDividerFormat';\nexport { ContentModelFormatBase } from './contentModel/format/ContentModelFormatBase';\nexport { ContentModelFormatMap } from './contentModel/format/ContentModelFormatMap';\nexport { ContentModelImageFormat } from './contentModel/format/ContentModelImageFormat';\nexport { ContentModelEntityFormat } from './contentModel/format/ContentModelEntityFormat';\nexport { FormatHandlerTypeMap, FormatKey } from './contentModel/format/FormatHandlerTypeMap';\n\nexport { AriaFormat } from './contentModel/format/formatParts/AriaFormat';\nexport { BackgroundColorFormat } from './contentModel/format/formatParts/BackgroundColorFormat';\nexport { BoldFormat } from './contentModel/format/formatParts/BoldFormat';\nexport { FontFamilyFormat } from './contentModel/format/formatParts/FontFamilyFormat';\nexport { FontSizeFormat } from './contentModel/format/formatParts/FontSizeFormat';\nexport { ItalicFormat } from './contentModel/format/formatParts/ItalicFormat';\nexport { LetterSpacingFormat } from './contentModel/format/formatParts/LetterSpacingFormat';\nexport { LineHeightFormat } from './contentModel/format/formatParts/LineHeightFormat';\nexport { StrikeFormat } from './contentModel/format/formatParts/StrikeFormat';\nexport { SuperOrSubScriptFormat } from './contentModel/format/formatParts/SuperOrSubScriptFormat';\nexport { TextColorFormat } from './contentModel/format/formatParts/TextColorFormat';\nexport { UnderlineFormat } from './contentModel/format/formatParts/UnderlineFormat';\nexport { BorderBoxFormat } from './contentModel/format/formatParts/BorderBoxFormat';\nexport { VerticalAlignFormat } from './contentModel/format/formatParts/VerticalAlignFormat';\nexport { WordBreakFormat } from './contentModel/format/formatParts/WordBreakFormat';\nexport { BorderFormat } from './contentModel/format/formatParts/BorderFormat';\nexport { DirectionFormat } from './contentModel/format/formatParts/DirectionFormat';\nexport { HtmlAlignFormat } from './contentModel/format/formatParts/HtmlAlignFormat';\nexport { MarginFormat } from './contentModel/format/formatParts/MarginFormat';\nexport { PaddingFormat } from './contentModel/format/formatParts/PaddingFormat';\nexport { TextAlignFormat } from './contentModel/format/formatParts/TextAlignFormat';\nexport { TextIndentFormat } from './contentModel/format/formatParts/TextIndentFormat';\nexport { WhiteSpaceFormat } from './contentModel/format/formatParts/WhiteSpaceFormat';\nexport { DisplayFormat } from './contentModel/format/formatParts/DisplayFormat';\nexport { IdFormat } from './contentModel/format/formatParts/IdFormat';\nexport { SpacingFormat } from './contentModel/format/formatParts/SpacingFormat';\nexport { TableLayoutFormat } from './contentModel/format/formatParts/TableLayoutFormat';\nexport { LinkFormat } from './contentModel/format/formatParts/LinkFormat';\nexport { SizeFormat } from './contentModel/format/formatParts/SizeFormat';\nexport { BoxShadowFormat } from './contentModel/format/formatParts/BoxShadowFormat';\nexport { ListThreadFormat } from './contentModel/format/formatParts/ListThreadFormat';\nexport { ListStyleFormat } from './contentModel/format/formatParts/ListStyleFormat';\nexport { FloatFormat } from './contentModel/format/formatParts/FloatFormat';\nexport { EntityInfoFormat } from './contentModel/format/formatParts/EntityInfoFormat';\nexport { UndeletableFormat } from './contentModel/format/formatParts/UndeletableFormat';\nexport { ImageStateFormat } from './contentModel/format/formatParts/ImageStateFormat';\nexport { RoleFormat } from './contentModel/format/formatParts/RoleFormat';\nexport { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';\n\nexport { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';\nexport { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';\nexport { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';\nexport {\n ImageResizeMetadataFormat,\n ImageCropMetadataFormat,\n ImageMetadataFormat,\n ImageRotateMetadataFormat,\n ImageFlipMetadataFormat,\n} from './contentModel/format/metadata/ImageMetadataFormat';\nexport { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';\n\nexport { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroupType';\nexport { ContentModelBlockType } from './contentModel/block/BlockType';\nexport { ContentModelSegmentType } from './contentModel/segment/SegmentType';\n\nexport {\n EntityLifecycleOperation,\n EntityOperation,\n EntityRemovalOperation,\n EntityFormatOperation,\n} from './enum/EntityOperation';\nexport {\n TableOperation,\n TableVerticalInsertOperation,\n TableHorizontalInsertOperation,\n TableDeleteOperation,\n TableVerticalMergeOperation,\n TableHorizontalMergeOperation,\n TableCellMergeOperation,\n TableSplitOperation,\n TableAlignOperation,\n TableCellHorizontalAlignOperation,\n TableCellVerticalAlignOperation,\n} from './enum/TableOperation';\nexport { PasteType } from './enum/PasteType';\nexport { BorderOperations } from './enum/BorderOperations';\nexport { DeleteResult } from './enum/DeleteResult';\nexport { InsertEntityPosition } from './enum/InsertEntityPosition';\nexport { ExportContentMode } from './enum/ExportContentMode';\n\nexport {\n ContentModelBlock,\n ReadonlyContentModelBlock,\n ShallowMutableContentModelBlock,\n} from './contentModel/block/ContentModelBlock';\nexport {\n ContentModelParagraph,\n ContentModelParagraphCommon,\n ReadonlyContentModelParagraph,\n ShallowMutableContentModelParagraph,\n} from './contentModel/block/ContentModelParagraph';\nexport {\n ContentModelTable,\n ReadonlyContentModelTable,\n ShallowMutableContentModelTable,\n} from './contentModel/block/ContentModelTable';\nexport {\n ContentModelDivider,\n ContentModelDividerCommon,\n ReadonlyContentModelDivider,\n} from './contentModel/block/ContentModelDivider';\nexport {\n ContentModelBlockBase,\n ContentModelBlockBaseCommon,\n ReadonlyContentModelBlockBase,\n ShallowMutableContentModelBlockBase,\n} from './contentModel/block/ContentModelBlockBase';\nexport { ContentModelBlockWithCache } from './contentModel/common/ContentModelBlockWithCache';\nexport {\n ContentModelTableRow,\n ContentModelTableRowCommon,\n ReadonlyContentModelTableRow,\n ShallowMutableContentModelTableRow,\n} from './contentModel/block/ContentModelTableRow';\n\nexport { ContentModelEntity } from './contentModel/entity/ContentModelEntity';\n\nexport {\n ContentModelDocument,\n ContentModelDocumentCommon,\n ReadonlyContentModelDocument,\n ShallowMutableContentModelDocument,\n} from './contentModel/blockGroup/ContentModelDocument';\nexport {\n ContentModelBlockGroupBase,\n ContentModelBlockGroupBaseCommon,\n ReadonlyContentModelBlockGroupBase,\n ShallowMutableContentModelBlockGroupBase,\n} from './contentModel/blockGroup/ContentModelBlockGroupBase';\nexport {\n ContentModelFormatContainer,\n ContentModelFormatContainerCommon,\n ReadonlyContentModelFormatContainer,\n ShallowMutableContentModelFormatContainer,\n} from './contentModel/blockGroup/ContentModelFormatContainer';\nexport {\n ContentModelGeneralBlock,\n ContentModelGeneralBlockCommon,\n ReadonlyContentModelGeneralBlock,\n ShallowMutableContentModelGeneralBlock,\n} from './contentModel/blockGroup/ContentModelGeneralBlock';\nexport {\n ContentModelListItem,\n ReadonlyContentModelListItem,\n ShallowMutableContentModelListItem,\n} from './contentModel/blockGroup/ContentModelListItem';\nexport {\n ContentModelTableCell,\n ContentModelTableCellCommon,\n ReadonlyContentModelTableCell,\n ShallowMutableContentModelTableCell,\n} from './contentModel/blockGroup/ContentModelTableCell';\nexport {\n ContentModelBlockGroup,\n ReadonlyContentModelBlockGroup,\n ShallowMutableContentModelBlockGroup,\n} from './contentModel/blockGroup/ContentModelBlockGroup';\n\nexport { ContentModelBr, ReadonlyContentModelBr } from './contentModel/segment/ContentModelBr';\nexport {\n ContentModelGeneralSegment,\n ReadonlyContentModelGeneralSegment,\n ShallowMutableContentModelGeneralSegment,\n} from './contentModel/segment/ContentModelGeneralSegment';\nexport {\n ContentModelImage,\n ContentModelImageCommon,\n ReadonlyContentModelImage,\n} from './contentModel/segment/ContentModelImage';\nexport {\n ContentModelText,\n ContentModelTextCommon,\n ReadonlyContentModelText,\n} from './contentModel/segment/ContentModelText';\nexport {\n ContentModelSelectionMarker,\n ReadonlyContentModelSelectionMarker,\n} from './contentModel/segment/ContentModelSelectionMarker';\nexport {\n ContentModelSegmentBase,\n ContentModelSegmentBaseCommon,\n ReadonlyContentModelSegmentBase,\n ShallowMutableContentModelSegmentBase,\n} from './contentModel/segment/ContentModelSegmentBase';\nexport {\n ContentModelSegment,\n ReadonlyContentModelSegment,\n ShallowMutableContentModelSegment,\n} from './contentModel/segment/ContentModelSegment';\n\nexport {\n ContentModelCode,\n ReadonlyContentModelCode,\n} from './contentModel/decorator/ContentModelCode';\nexport {\n ContentModelLink,\n ReadonlyContentModelLink,\n} from './contentModel/decorator/ContentModelLink';\nexport {\n ContentModelParagraphDecorator,\n ContentModelParagraphDecoratorCommon,\n ReadonlyContentModelParagraphDecorator,\n} from './contentModel/decorator/ContentModelParagraphDecorator';\nexport {\n ContentModelDecorator,\n ReadonlyContentModelDecorator,\n} from './contentModel/decorator/ContentModelDecorator';\nexport {\n ContentModelListLevel,\n ContentModelListLevelCommon,\n ReadonlyContentModelListLevel,\n} from './contentModel/decorator/ContentModelListLevel';\n\nexport {\n Selectable,\n ReadonlySelectable,\n ShallowMutableSelectable,\n} from './contentModel/common/Selectable';\nexport { MutableMark, ShallowMutableMark, ReadonlyMark } from './contentModel/common/MutableMark';\nexport { MutableType } from './contentModel/common/MutableType';\n\nexport {\n DOMSelection,\n SelectionType,\n SelectionBase,\n ImageSelection,\n RangeSelection,\n TableSelection,\n DOMInsertPoint,\n} from './selection/DOMSelection';\nexport { InsertPoint } from './selection/InsertPoint';\nexport {\n TableSelectionContext,\n ReadonlyTableSelectionContext,\n} from './selection/TableSelectionContext';\nexport { TableSelectionCoordinates } from './selection/TableSelectionCoordinates';\n\nexport {\n ContentModelHandlerMap,\n DefaultImplicitFormatMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n OnNodeCreated,\n ModelToDomSettings,\n FormatApplier,\n ApplyMetadata,\n MetadataApplier,\n MetadataAppliers,\n TextFormatApplier,\n ElementFormatAppliersPerCategory,\n} from './context/ModelToDomSettings';\nexport {\n DefaultStyleMap,\n ElementProcessorMap,\n FormatParsers,\n FormatParsersPerCategory,\n DomToModelSettings,\n FormatParser,\n TextFormatParser,\n ElementFormatParserPerCategory,\n} from './context/DomToModelSettings';\nexport { DomToModelContext } from './context/DomToModelContext';\nexport { ElementProcessor } from './context/ElementProcessor';\nexport { DomToModelSelectionContext } from './context/DomToModelSelectionContext';\nexport { EditorContext } from './context/EditorContext';\nexport {\n DomToModelFormatContext,\n DomToModelDecoratorContext,\n DomToModelListFormat,\n} from './context/DomToModelFormatContext';\nexport { ModelToDomContext } from './context/ModelToDomContext';\nexport {\n ModelToDomBlockAndSegmentNode,\n ModelToDomRegularSelection,\n ModelToDomSelectionContext,\n} from './context/ModelToDomSelectionContext';\nexport {\n ModelToDomListStackItem,\n ModelToDomListContext,\n ModelToDomFormatContext,\n} from './context/ModelToDomFormatContext';\nexport { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';\nexport {\n ContentModelHandler,\n ContentModelSegmentHandler,\n ContentModelBlockHandler,\n} from './context/ContentModelHandler';\nexport {\n DomToModelOption,\n DomToModelOptionForSanitizing,\n DomToModelOptionForCreateModel,\n} from './context/DomToModelOption';\nexport { ModelToDomOption } from './context/ModelToDomOption';\nexport { DomIndexer } from './context/DomIndexer';\nexport { TextMutationObserver } from './context/TextMutationObserver';\n\nexport { DefinitionType } from './metadata/DefinitionType';\nexport {\n ArrayItemType,\n DefinitionBase,\n StringDefinition,\n NumberDefinition,\n BooleanDefinition,\n ArrayDefinition,\n ObjectPropertyDefinition,\n ObjectDefinition,\n Definition,\n} from './metadata/Definition';\nexport { DarkColorHandler, Colors, ColorTransformFunction } from './context/DarkColorHandler';\n\nexport { IEditor } from './editor/IEditor';\nexport { ExperimentalFeature, GraduatedExperimentalFeature } from './editor/ExperimentalFeature';\nexport {\n EditorOptions,\n ColorOptions,\n ContentModelOptions,\n SelectionOptions,\n PasteOptions,\n EditorBaseOptions,\n} from './editor/EditorOptions';\nexport {\n CreateContentModel,\n CreateEditorContext,\n GetDOMSelection,\n SetContentModel,\n SetDOMSelection,\n SetLogicalRoot,\n FormatContentModel,\n CoreApiMap,\n EditorCore,\n SwitchShadowEdit,\n TriggerEvent,\n AddUndoSnapshot,\n Focus,\n AttachDomEvent,\n RestoreUndoSnapshot,\n GetVisibleViewport,\n SetEditorStyle,\n Announce,\n} from './editor/EditorCore';\nexport { EditorCorePlugins } from './editor/EditorCorePlugins';\nexport { EditorPlugin } from './editor/EditorPlugin';\nexport { PluginWithState } from './editor/PluginWithState';\nexport { ContextMenuProvider } from './editor/ContextMenuProvider';\n\nexport {\n CachePluginState,\n RangeSelectionForCache,\n CacheSelection,\n} from './pluginState/CachePluginState';\nexport { FormatPluginState, PendingFormat } from './pluginState/FormatPluginState';\nexport { CopyPastePluginState } from './pluginState/CopyPastePluginState';\nexport { DOMEventPluginState } from './pluginState/DOMEventPluginState';\nexport { LifecyclePluginState } from './pluginState/LifecyclePluginState';\nexport { EntityPluginState, KnownEntityItem } from './pluginState/EntityPluginState';\nexport {\n SelectionPluginState,\n TableSelectionInfo,\n TableCellCoordinate,\n} from './pluginState/SelectionPluginState';\nexport { UndoPluginState } from './pluginState/UndoPluginState';\nexport {\n PluginKey,\n KeyOfStatePlugin,\n TypeOfStatePlugin,\n StatePluginKeys,\n GenericPluginState,\n PluginState,\n} from './pluginState/PluginState';\nexport { ContextMenuPluginState } from './pluginState/ContextMenuPluginState';\n\nexport { AutoLinkOptions } from './parameter/AutoLinkOptions';\nexport { EditorEnvironment, ContentModelSettings } from './parameter/EditorEnvironment';\nexport {\n EntityState,\n DeletedEntity,\n FormatContentModelContext,\n} from './parameter/FormatContentModelContext';\nexport {\n FormatContentModelOptions,\n ContentModelFormatter,\n} from './parameter/FormatContentModelOptions';\nexport { ContentModelFormatState } from './parameter/ContentModelFormatState';\nexport { PasteTypeOrGetter } from './parameter/PasteTypeOrGetter';\nexport { ImageFormatState } from './parameter/ImageFormatState';\nexport { Border } from './parameter/Border';\nexport { InsertEntityOptions } from './parameter/InsertEntityOptions';\nexport {\n DeleteSelectionContext,\n DeleteSelectionResult,\n DeleteSelectionStep,\n ValidDeleteSelectionContext,\n} from './parameter/DeleteSelectionStep';\nexport {\n SnapshotSelectionBase,\n RangeSnapshotSelection,\n ImageSnapshotSelection,\n TableSnapshotSelection,\n SnapshotSelection,\n Snapshot,\n Snapshots,\n} from './parameter/Snapshot';\nexport { SnapshotsManager } from './parameter/SnapshotsManager';\nexport { DOMEventHandlerFunction, DOMEventRecord } from './parameter/DOMEventRecord';\nexport { EdgeLinkPreview } from './parameter/EdgeLinkPreview';\nexport { ClipboardData } from './parameter/ClipboardData';\nexport { AnnounceData, KnownAnnounceStrings } from './parameter/AnnounceData';\nexport { AnnouncingOption } from './parameter/AnnouncingOption';\nexport {\n TrustedHTMLHandler,\n DOMCreator,\n LegacyTrustedHTMLHandler,\n} from './parameter/TrustedHTMLHandler';\nexport { Rect } from './parameter/Rect';\nexport { ValueSanitizer } from './parameter/ValueSanitizer';\nexport { DOMHelper } from './parameter/DOMHelper';\nexport { ImageEditOperation, ImageEditor } from './parameter/ImageEditor';\nexport { CachedElementHandler, CloneModelOptions } from './parameter/CloneModelOptions';\nexport { LinkData } from './parameter/LinkData';\nexport { MergeModelOption } from './parameter/MergeModelOption';\nexport {\n IterateSelectionsCallback,\n IterateSelectionsOption,\n ReadonlyIterateSelectionsCallback,\n} from './parameter/IterateSelectionsOption';\nexport { NodeTypeMap } from './parameter/NodeTypeMap';\nexport { TypeOfBlockGroup } from './parameter/TypeOfBlockGroup';\nexport { OperationalBlocks, ReadonlyOperationalBlocks } from './parameter/OperationalBlocks';\nexport { ParsedTable, ParsedTableCell } from './parameter/ParsedTable';\nexport {\n ModelToTextCallback,\n ModelToTextCallbacks,\n ModelToTextChecker,\n} from './parameter/ModelToTextCallbacks';\nexport { ConflictFormatSolution } from './parameter/ConflictFormatSolution';\nexport { ParagraphMap, ParagraphIndexer } from './parameter/ParagraphMap';\nexport { TextAndHtmlContentForCopy } from './parameter/TextAndHtmlContentForCopy';\nexport { PromotedLink } from './parameter/PromotedLink';\nexport { BorderKey } from './parameter/BorderKey';\n\nexport { BasePluginEvent, BasePluginDomEvent } from './event/BasePluginEvent';\nexport { BeforeAddUndoSnapshotEvent } from './event/BeforeAddUndoSnapshotEvent';\nexport { BeforeCutCopyEvent } from './event/BeforeCutCopyEvent';\nexport { BeforeDisposeEvent } from './event/BeforeDisposeEvent';\nexport { BeforeKeyboardEditingEvent } from './event/BeforeKeyboardEditingEvent';\nexport { BeforePasteEvent, MergePastedContentFunc } from './event/BeforePasteEvent';\nexport { BeforeSetContentEvent } from './event/BeforeSetContentEvent';\nexport { ContentChangedEvent, ChangedEntity } from './event/ContentChangedEvent';\nexport { ContextMenuEvent } from './event/ContextMenuEvent';\nexport { RewriteFromModelEvent } from './event/RewriteFromModelEvent';\nexport { EditImageEvent } from './event/EditImageEvent';\nexport { EditorReadyEvent } from './event/EditorReadyEvent';\nexport { EntityOperationEvent, FormattableRoot, Entity } from './event/EntityOperationEvent';\nexport { ExtractContentWithDomEvent } from './event/ExtractContentWithDomEvent';\nexport { EditorInputEvent } from './event/EditorInputEvent';\nexport {\n KeyDownEvent,\n KeyPressEvent,\n KeyUpEvent,\n CompositionEndEvent,\n} from './event/KeyboardEvent';\nexport {\n BeforeLogicalRootChangeEvent,\n LogicalRootChangedEvent,\n} from './event/LogicalRootChangedEvent';\nexport { MouseDownEvent, MouseUpEvent, DoubleClickEvent } from './event/MouseEvent';\nexport { PluginEvent } from './event/PluginEvent';\nexport {\n PluginEventData,\n PluginEventFromTypeGeneric,\n PluginEventFromType,\n PluginEventDataGeneric,\n} from './event/PluginEventData';\nexport { PluginEventType } from './event/PluginEventType';\nexport { ScrollEvent } from './event/ScrollEvent';\nexport { SelectionChangedEvent } from './event/SelectionChangedEvent';\nexport { EnterShadowEditEvent, LeaveShadowEditEvent } from './event/ShadowEditEvent';\nexport { ZoomChangedEvent } from './event/ZoomChangedEvent';\nexport { PointerDownEvent, PointerUpEvent } from './event/PointerEvent';\nexport { FindResultChangedEvent } from './event/FindResultChangedEvent';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/roosterjs-content-model-types/lib/index.ts"],"names":[],"mappings":"","sourcesContent":["export { ContentModelSegmentFormat } from './contentModel/format/ContentModelSegmentFormat';\nexport {\n ContentModelWithFormat,\n ReadonlyContentModelWithFormat,\n} from './contentModel/format/ContentModelWithFormat';\nexport { ContentModelTableFormat } from './contentModel/format/ContentModelTableFormat';\nexport {\n ContentModelWithDataset,\n ReadonlyContentModelWithDataset,\n ShallowMutableContentModelWithDataset,\n} from './contentModel/format/ContentModelWithDataset';\nexport { ContentModelBlockFormat } from './contentModel/format/ContentModelBlockFormat';\nexport { ContentModelTableCellFormat } from './contentModel/format/ContentModelTableCellFormat';\nexport { ContentModelListItemFormat } from './contentModel/format/ContentModelListItemFormat';\nexport { ContentModelListItemLevelFormat } from './contentModel/format/ContentModelListItemLevelFormat';\nexport { ContentModelHyperLinkFormat } from './contentModel/format/ContentModelHyperLinkFormat';\nexport { ContentModelCodeFormat } from './contentModel/format/ContentModelCodeFormat';\nexport { ContentModelFormatContainerFormat } from './contentModel/format/ContentModelFormatContainerFormat';\nexport { ContentModelDividerFormat } from './contentModel/format/ContentModelDividerFormat';\nexport { ContentModelFormatBase } from './contentModel/format/ContentModelFormatBase';\nexport { ContentModelFormatMap } from './contentModel/format/ContentModelFormatMap';\nexport { ContentModelImageFormat } from './contentModel/format/ContentModelImageFormat';\nexport { ContentModelEntityFormat } from './contentModel/format/ContentModelEntityFormat';\nexport { FormatHandlerTypeMap, FormatKey } from './contentModel/format/FormatHandlerTypeMap';\n\nexport { AriaFormat } from './contentModel/format/formatParts/AriaFormat';\nexport { BackgroundColorFormat } from './contentModel/format/formatParts/BackgroundColorFormat';\nexport { BoldFormat } from './contentModel/format/formatParts/BoldFormat';\nexport { FontFamilyFormat } from './contentModel/format/formatParts/FontFamilyFormat';\nexport { FontSizeFormat } from './contentModel/format/formatParts/FontSizeFormat';\nexport { ItalicFormat } from './contentModel/format/formatParts/ItalicFormat';\nexport { LetterSpacingFormat } from './contentModel/format/formatParts/LetterSpacingFormat';\nexport { LineHeightFormat } from './contentModel/format/formatParts/LineHeightFormat';\nexport { StrikeFormat } from './contentModel/format/formatParts/StrikeFormat';\nexport { SuperOrSubScriptFormat } from './contentModel/format/formatParts/SuperOrSubScriptFormat';\nexport { TextColorFormat } from './contentModel/format/formatParts/TextColorFormat';\nexport { UnderlineFormat } from './contentModel/format/formatParts/UnderlineFormat';\nexport { BorderBoxFormat } from './contentModel/format/formatParts/BorderBoxFormat';\nexport { VerticalAlignFormat } from './contentModel/format/formatParts/VerticalAlignFormat';\nexport { WordBreakFormat } from './contentModel/format/formatParts/WordBreakFormat';\nexport { BorderFormat } from './contentModel/format/formatParts/BorderFormat';\nexport { DirectionFormat } from './contentModel/format/formatParts/DirectionFormat';\nexport { HtmlAlignFormat } from './contentModel/format/formatParts/HtmlAlignFormat';\nexport { MarginFormat } from './contentModel/format/formatParts/MarginFormat';\nexport { PaddingFormat } from './contentModel/format/formatParts/PaddingFormat';\nexport { TextAlignFormat } from './contentModel/format/formatParts/TextAlignFormat';\nexport { TextIndentFormat } from './contentModel/format/formatParts/TextIndentFormat';\nexport { WhiteSpaceFormat } from './contentModel/format/formatParts/WhiteSpaceFormat';\nexport { DisplayFormat } from './contentModel/format/formatParts/DisplayFormat';\nexport { IdFormat } from './contentModel/format/formatParts/IdFormat';\nexport { SpacingFormat } from './contentModel/format/formatParts/SpacingFormat';\nexport { TableLayoutFormat } from './contentModel/format/formatParts/TableLayoutFormat';\nexport { LinkFormat } from './contentModel/format/formatParts/LinkFormat';\nexport { SizeFormat } from './contentModel/format/formatParts/SizeFormat';\nexport { BoxShadowFormat } from './contentModel/format/formatParts/BoxShadowFormat';\nexport { ListThreadFormat } from './contentModel/format/formatParts/ListThreadFormat';\nexport { ListStyleFormat } from './contentModel/format/formatParts/ListStyleFormat';\nexport { FloatFormat } from './contentModel/format/formatParts/FloatFormat';\nexport { EntityInfoFormat } from './contentModel/format/formatParts/EntityInfoFormat';\nexport { UndeletableFormat } from './contentModel/format/formatParts/UndeletableFormat';\nexport { ImageStateFormat } from './contentModel/format/formatParts/ImageStateFormat';\nexport { RoleFormat } from './contentModel/format/formatParts/RoleFormat';\nexport { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';\n\nexport { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';\nexport { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';\nexport { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';\nexport {\n ImageResizeMetadataFormat,\n ImageCropMetadataFormat,\n ImageMetadataFormat,\n ImageRotateMetadataFormat,\n ImageFlipMetadataFormat,\n} from './contentModel/format/metadata/ImageMetadataFormat';\nexport { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';\n\nexport { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroupType';\nexport { ContentModelBlockType } from './contentModel/block/BlockType';\nexport { ContentModelSegmentType } from './contentModel/segment/SegmentType';\n\nexport {\n EntityLifecycleOperation,\n EntityOperation,\n EntityRemovalOperation,\n EntityFormatOperation,\n} from './enum/EntityOperation';\nexport {\n TableOperation,\n TableVerticalInsertOperation,\n TableHorizontalInsertOperation,\n TableDeleteOperation,\n TableVerticalMergeOperation,\n TableHorizontalMergeOperation,\n TableCellMergeOperation,\n TableSplitOperation,\n TableAlignOperation,\n TableCellHorizontalAlignOperation,\n TableCellVerticalAlignOperation,\n TableCellShiftOperation,\n} from './enum/TableOperation';\nexport { PasteType } from './enum/PasteType';\nexport { BorderOperations } from './enum/BorderOperations';\nexport { DeleteResult } from './enum/DeleteResult';\nexport { InsertEntityPosition } from './enum/InsertEntityPosition';\nexport { ExportContentMode } from './enum/ExportContentMode';\n\nexport {\n ContentModelBlock,\n ReadonlyContentModelBlock,\n ShallowMutableContentModelBlock,\n} from './contentModel/block/ContentModelBlock';\nexport {\n ContentModelParagraph,\n ContentModelParagraphCommon,\n ReadonlyContentModelParagraph,\n ShallowMutableContentModelParagraph,\n} from './contentModel/block/ContentModelParagraph';\nexport {\n ContentModelTable,\n ReadonlyContentModelTable,\n ShallowMutableContentModelTable,\n} from './contentModel/block/ContentModelTable';\nexport {\n ContentModelDivider,\n ContentModelDividerCommon,\n ReadonlyContentModelDivider,\n} from './contentModel/block/ContentModelDivider';\nexport {\n ContentModelBlockBase,\n ContentModelBlockBaseCommon,\n ReadonlyContentModelBlockBase,\n ShallowMutableContentModelBlockBase,\n} from './contentModel/block/ContentModelBlockBase';\nexport { ContentModelBlockWithCache } from './contentModel/common/ContentModelBlockWithCache';\nexport {\n ContentModelTableRow,\n ContentModelTableRowCommon,\n ReadonlyContentModelTableRow,\n ShallowMutableContentModelTableRow,\n} from './contentModel/block/ContentModelTableRow';\n\nexport { ContentModelEntity } from './contentModel/entity/ContentModelEntity';\n\nexport {\n ContentModelDocument,\n ContentModelDocumentCommon,\n ReadonlyContentModelDocument,\n ShallowMutableContentModelDocument,\n} from './contentModel/blockGroup/ContentModelDocument';\nexport {\n ContentModelBlockGroupBase,\n ContentModelBlockGroupBaseCommon,\n ReadonlyContentModelBlockGroupBase,\n ShallowMutableContentModelBlockGroupBase,\n} from './contentModel/blockGroup/ContentModelBlockGroupBase';\nexport {\n ContentModelFormatContainer,\n ContentModelFormatContainerCommon,\n ReadonlyContentModelFormatContainer,\n ShallowMutableContentModelFormatContainer,\n} from './contentModel/blockGroup/ContentModelFormatContainer';\nexport {\n ContentModelGeneralBlock,\n ContentModelGeneralBlockCommon,\n ReadonlyContentModelGeneralBlock,\n ShallowMutableContentModelGeneralBlock,\n} from './contentModel/blockGroup/ContentModelGeneralBlock';\nexport {\n ContentModelListItem,\n ReadonlyContentModelListItem,\n ShallowMutableContentModelListItem,\n} from './contentModel/blockGroup/ContentModelListItem';\nexport {\n ContentModelTableCell,\n ContentModelTableCellCommon,\n ReadonlyContentModelTableCell,\n ShallowMutableContentModelTableCell,\n} from './contentModel/blockGroup/ContentModelTableCell';\nexport {\n ContentModelBlockGroup,\n ReadonlyContentModelBlockGroup,\n ShallowMutableContentModelBlockGroup,\n} from './contentModel/blockGroup/ContentModelBlockGroup';\n\nexport { ContentModelBr, ReadonlyContentModelBr } from './contentModel/segment/ContentModelBr';\nexport {\n ContentModelGeneralSegment,\n ReadonlyContentModelGeneralSegment,\n ShallowMutableContentModelGeneralSegment,\n} from './contentModel/segment/ContentModelGeneralSegment';\nexport {\n ContentModelImage,\n ContentModelImageCommon,\n ReadonlyContentModelImage,\n} from './contentModel/segment/ContentModelImage';\nexport {\n ContentModelText,\n ContentModelTextCommon,\n ReadonlyContentModelText,\n} from './contentModel/segment/ContentModelText';\nexport {\n ContentModelSelectionMarker,\n ReadonlyContentModelSelectionMarker,\n} from './contentModel/segment/ContentModelSelectionMarker';\nexport {\n ContentModelSegmentBase,\n ContentModelSegmentBaseCommon,\n ReadonlyContentModelSegmentBase,\n ShallowMutableContentModelSegmentBase,\n} from './contentModel/segment/ContentModelSegmentBase';\nexport {\n ContentModelSegment,\n ReadonlyContentModelSegment,\n ShallowMutableContentModelSegment,\n} from './contentModel/segment/ContentModelSegment';\n\nexport {\n ContentModelCode,\n ReadonlyContentModelCode,\n} from './contentModel/decorator/ContentModelCode';\nexport {\n ContentModelLink,\n ReadonlyContentModelLink,\n} from './contentModel/decorator/ContentModelLink';\nexport {\n ContentModelParagraphDecorator,\n ContentModelParagraphDecoratorCommon,\n ReadonlyContentModelParagraphDecorator,\n} from './contentModel/decorator/ContentModelParagraphDecorator';\nexport {\n ContentModelDecorator,\n ReadonlyContentModelDecorator,\n} from './contentModel/decorator/ContentModelDecorator';\nexport {\n ContentModelListLevel,\n ContentModelListLevelCommon,\n ReadonlyContentModelListLevel,\n} from './contentModel/decorator/ContentModelListLevel';\n\nexport {\n Selectable,\n ReadonlySelectable,\n ShallowMutableSelectable,\n} from './contentModel/common/Selectable';\nexport { MutableMark, ShallowMutableMark, ReadonlyMark } from './contentModel/common/MutableMark';\nexport { MutableType } from './contentModel/common/MutableType';\n\nexport {\n DOMSelection,\n SelectionType,\n SelectionBase,\n ImageSelection,\n RangeSelection,\n TableSelection,\n DOMInsertPoint,\n} from './selection/DOMSelection';\nexport { InsertPoint } from './selection/InsertPoint';\nexport {\n TableSelectionContext,\n ReadonlyTableSelectionContext,\n} from './selection/TableSelectionContext';\nexport { TableSelectionCoordinates } from './selection/TableSelectionCoordinates';\n\nexport {\n ContentModelHandlerMap,\n DefaultImplicitFormatMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n OnNodeCreated,\n ModelToDomSettings,\n FormatApplier,\n ApplyMetadata,\n MetadataApplier,\n MetadataAppliers,\n TextFormatApplier,\n ElementFormatAppliersPerCategory,\n} from './context/ModelToDomSettings';\nexport {\n DefaultStyleMap,\n ElementProcessorMap,\n FormatParsers,\n FormatParsersPerCategory,\n DomToModelSettings,\n FormatParser,\n TextFormatParser,\n ElementFormatParserPerCategory,\n} from './context/DomToModelSettings';\nexport { DomToModelContext } from './context/DomToModelContext';\nexport { ElementProcessor } from './context/ElementProcessor';\nexport { DomToModelSelectionContext } from './context/DomToModelSelectionContext';\nexport { EditorContext } from './context/EditorContext';\nexport {\n DomToModelFormatContext,\n DomToModelDecoratorContext,\n DomToModelListFormat,\n} from './context/DomToModelFormatContext';\nexport { ModelToDomContext, ModelToDomSegmentContext } from './context/ModelToDomContext';\nexport {\n ModelToDomBlockAndSegmentNode,\n ModelToDomRegularSelection,\n ModelToDomSelectionContext,\n} from './context/ModelToDomSelectionContext';\nexport {\n ModelToDomListStackItem,\n ModelToDomListContext,\n ModelToDomFormatContext,\n} from './context/ModelToDomFormatContext';\nexport { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';\nexport {\n ContentModelHandler,\n ContentModelSegmentHandler,\n ContentModelBlockHandler,\n} from './context/ContentModelHandler';\nexport {\n DomToModelOption,\n DomToModelOptionForSanitizing,\n DomToModelOptionForCreateModel,\n} from './context/DomToModelOption';\nexport { ModelToDomOption } from './context/ModelToDomOption';\nexport { DomIndexer } from './context/DomIndexer';\nexport { TextMutationObserver } from './context/TextMutationObserver';\n\nexport { DefinitionType } from './metadata/DefinitionType';\nexport {\n ArrayItemType,\n DefinitionBase,\n StringDefinition,\n NumberDefinition,\n BooleanDefinition,\n ArrayDefinition,\n ObjectPropertyDefinition,\n ObjectDefinition,\n Definition,\n} from './metadata/Definition';\nexport { DarkColorHandler, Colors, ColorTransformFunction } from './context/DarkColorHandler';\n\nexport { IEditor } from './editor/IEditor';\nexport { ExperimentalFeature, GraduatedExperimentalFeature } from './editor/ExperimentalFeature';\nexport {\n EditorOptions,\n ColorOptions,\n ContentModelOptions,\n SelectionOptions,\n PasteOptions,\n EditorBaseOptions,\n} from './editor/EditorOptions';\nexport {\n CreateContentModel,\n CreateEditorContext,\n GetDOMSelection,\n SetContentModel,\n SetDOMSelection,\n SetLogicalRoot,\n FormatContentModel,\n CoreApiMap,\n EditorCore,\n SwitchShadowEdit,\n TriggerEvent,\n AddUndoSnapshot,\n Focus,\n AttachDomEvent,\n RestoreUndoSnapshot,\n GetVisibleViewport,\n SetEditorStyle,\n Announce,\n} from './editor/EditorCore';\nexport { EditorCorePlugins } from './editor/EditorCorePlugins';\nexport { EditorPlugin } from './editor/EditorPlugin';\nexport { PluginWithState } from './editor/PluginWithState';\nexport { ContextMenuProvider } from './editor/ContextMenuProvider';\n\nexport {\n CachePluginState,\n RangeSelectionForCache,\n CacheSelection,\n} from './pluginState/CachePluginState';\nexport { FormatPluginState, PendingFormat } from './pluginState/FormatPluginState';\nexport { CopyPastePluginState } from './pluginState/CopyPastePluginState';\nexport { DOMEventPluginState } from './pluginState/DOMEventPluginState';\nexport { LifecyclePluginState } from './pluginState/LifecyclePluginState';\nexport { EntityPluginState, KnownEntityItem } from './pluginState/EntityPluginState';\nexport {\n SelectionPluginState,\n TableSelectionInfo,\n TableCellCoordinate,\n} from './pluginState/SelectionPluginState';\nexport { UndoPluginState } from './pluginState/UndoPluginState';\nexport {\n PluginKey,\n KeyOfStatePlugin,\n TypeOfStatePlugin,\n StatePluginKeys,\n GenericPluginState,\n PluginState,\n} from './pluginState/PluginState';\nexport { ContextMenuPluginState } from './pluginState/ContextMenuPluginState';\n\nexport { AutoLinkOptions } from './parameter/AutoLinkOptions';\nexport { EditorEnvironment, ContentModelSettings } from './parameter/EditorEnvironment';\nexport {\n EntityState,\n DeletedEntity,\n FormatContentModelContext,\n} from './parameter/FormatContentModelContext';\nexport {\n FormatContentModelOptions,\n ContentModelFormatter,\n} from './parameter/FormatContentModelOptions';\nexport { ContentModelFormatState } from './parameter/ContentModelFormatState';\nexport { PasteTypeOrGetter } from './parameter/PasteTypeOrGetter';\nexport { ImageFormatState } from './parameter/ImageFormatState';\nexport { Border } from './parameter/Border';\nexport { InsertEntityOptions } from './parameter/InsertEntityOptions';\nexport {\n DeleteSelectionContext,\n DeleteSelectionResult,\n DeleteSelectionStep,\n ValidDeleteSelectionContext,\n} from './parameter/DeleteSelectionStep';\nexport {\n SnapshotSelectionBase,\n RangeSnapshotSelection,\n ImageSnapshotSelection,\n TableSnapshotSelection,\n SnapshotSelection,\n Snapshot,\n Snapshots,\n} from './parameter/Snapshot';\nexport { SnapshotsManager } from './parameter/SnapshotsManager';\nexport { DOMEventHandlerFunction, DOMEventRecord } from './parameter/DOMEventRecord';\nexport { EdgeLinkPreview } from './parameter/EdgeLinkPreview';\nexport { ClipboardData } from './parameter/ClipboardData';\nexport { AnnounceData, KnownAnnounceStrings } from './parameter/AnnounceData';\nexport { AnnouncingOption } from './parameter/AnnouncingOption';\nexport {\n TrustedHTMLHandler,\n DOMCreator,\n LegacyTrustedHTMLHandler,\n} from './parameter/TrustedHTMLHandler';\nexport { Rect } from './parameter/Rect';\nexport { ValueSanitizer } from './parameter/ValueSanitizer';\nexport { DOMHelper } from './parameter/DOMHelper';\nexport { ImageEditOperation, ImageEditor } from './parameter/ImageEditor';\nexport { CachedElementHandler, CloneModelOptions } from './parameter/CloneModelOptions';\nexport { LinkData } from './parameter/LinkData';\nexport { MergeModelOption } from './parameter/MergeModelOption';\nexport {\n IterateSelectionsCallback,\n IterateSelectionsOption,\n ReadonlyIterateSelectionsCallback,\n} from './parameter/IterateSelectionsOption';\nexport { NodeTypeMap } from './parameter/NodeTypeMap';\nexport { TypeOfBlockGroup } from './parameter/TypeOfBlockGroup';\nexport { OperationalBlocks, ReadonlyOperationalBlocks } from './parameter/OperationalBlocks';\nexport { ParsedTable, ParsedTableCell } from './parameter/ParsedTable';\nexport {\n ModelToTextCallback,\n ModelToTextCallbacks,\n ModelToTextChecker,\n} from './parameter/ModelToTextCallbacks';\nexport { ConflictFormatSolution } from './parameter/ConflictFormatSolution';\nexport { ParagraphMap, ParagraphIndexer } from './parameter/ParagraphMap';\nexport { TextAndHtmlContentForCopy } from './parameter/TextAndHtmlContentForCopy';\nexport { PromotedLink } from './parameter/PromotedLink';\nexport { BorderKey } from './parameter/BorderKey';\n\nexport { BasePluginEvent, BasePluginDomEvent } from './event/BasePluginEvent';\nexport { BeforeAddUndoSnapshotEvent } from './event/BeforeAddUndoSnapshotEvent';\nexport { BeforeCutCopyEvent } from './event/BeforeCutCopyEvent';\nexport { BeforeDisposeEvent } from './event/BeforeDisposeEvent';\nexport { BeforeKeyboardEditingEvent } from './event/BeforeKeyboardEditingEvent';\nexport { BeforePasteEvent, MergePastedContentFunc } from './event/BeforePasteEvent';\nexport { BeforeSetContentEvent } from './event/BeforeSetContentEvent';\nexport { ContentChangedEvent, ChangedEntity } from './event/ContentChangedEvent';\nexport { ContextMenuEvent } from './event/ContextMenuEvent';\nexport { RewriteFromModelEvent } from './event/RewriteFromModelEvent';\nexport { EditImageEvent } from './event/EditImageEvent';\nexport { EditorReadyEvent } from './event/EditorReadyEvent';\nexport { EntityOperationEvent, FormattableRoot, Entity } from './event/EntityOperationEvent';\nexport { ExtractContentWithDomEvent } from './event/ExtractContentWithDomEvent';\nexport { EditorInputEvent } from './event/EditorInputEvent';\nexport {\n KeyDownEvent,\n KeyPressEvent,\n KeyUpEvent,\n CompositionEndEvent,\n} from './event/KeyboardEvent';\nexport {\n BeforeLogicalRootChangeEvent,\n LogicalRootChangedEvent,\n} from './event/LogicalRootChangedEvent';\nexport { MouseDownEvent, MouseUpEvent, DoubleClickEvent } from './event/MouseEvent';\nexport { PluginEvent } from './event/PluginEvent';\nexport {\n PluginEventData,\n PluginEventFromTypeGeneric,\n PluginEventFromType,\n PluginEventDataGeneric,\n} from './event/PluginEventData';\nexport { PluginEventType } from './event/PluginEventType';\nexport { ScrollEvent } from './event/ScrollEvent';\nexport { SelectionChangedEvent } from './event/SelectionChangedEvent';\nexport { EnterShadowEditEvent, LeaveShadowEditEvent } from './event/ShadowEditEvent';\nexport { ZoomChangedEvent } from './event/ZoomChangedEvent';\nexport { PointerDownEvent, PointerUpEvent } from './event/PointerEvent';\nexport { FindResultChangedEvent } from './event/FindResultChangedEvent';\n"]}
|
|
@@ -2,7 +2,7 @@ import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock'
|
|
|
2
2
|
import type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';
|
|
3
3
|
import type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';
|
|
4
4
|
import type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';
|
|
5
|
-
import type { ModelToDomContext } from './ModelToDomContext';
|
|
5
|
+
import type { ModelToDomContext, ModelToDomSegmentContext } from './ModelToDomContext';
|
|
6
6
|
/**
|
|
7
7
|
* Type of Content Model to DOM handler
|
|
8
8
|
* @param doc Target HTML Document object
|
|
@@ -31,4 +31,4 @@ export declare type ContentModelBlockHandler<T extends ContentModelBlock | Conte
|
|
|
31
31
|
* - For segments with decorators: decorator elements will also be included
|
|
32
32
|
* - For inline entity segment, the delimiter SPANs will also be included
|
|
33
33
|
*/
|
|
34
|
-
export declare type ContentModelSegmentHandler<T extends ContentModelSegment> = (doc: Document, parent: Node, model: T, context:
|
|
34
|
+
export declare type ContentModelSegmentHandler<T extends ContentModelSegment> = (doc: Document, parent: Node, model: T, context: ModelToDomSegmentContext, segmentNodes: Node[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';\nimport type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';\nimport type { ModelToDomContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context:
|
|
1
|
+
{"version":3,"file":"ContentModelHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ContentModelHandler.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlock } from '../contentModel/block/ContentModelBlock';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelDecorator } from '../contentModel/decorator/ContentModelDecorator';\nimport type { ContentModelSegment } from '../contentModel/segment/ContentModelSegment';\nimport type { ModelToDomContext, ModelToDomSegmentContext } from './ModelToDomContext';\n\n/**\n * Type of Content Model to DOM handler\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n */\nexport type ContentModelHandler<\n T extends ContentModelSegment | ContentModelBlockGroup | ContentModelDecorator\n> = (doc: Document, parent: Node, model: T, context: ModelToDomContext) => void;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param refNode Reference node. This is the next node the new node to be inserted.\n * It is used when write DOM tree onto existing DOM true. If there is no reference node, pass null.\n */\nexport type ContentModelBlockHandler<T extends ContentModelBlock | ContentModelBlockGroup> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomContext,\n refNode: Node | null\n) => Node | null;\n\n/**\n * Type of Content Model to DOM handler for block\n * @param doc Target HTML Document object\n * @param parent Parent HTML node to append the new node from the given model\n * @param model The Content Model to handle\n * @param context The context object to provide related information\n * @param segmentNodes Nodes that created to represent this segment. In most cases there will be one node returned, except\n * - For segments with decorators: decorator elements will also be included\n * - For inline entity segment, the delimiter SPANs will also be included\n */\nexport type ContentModelSegmentHandler<T extends ContentModelSegment> = (\n doc: Document,\n parent: Node,\n model: T,\n context: ModelToDomSegmentContext,\n segmentNodes: Node[]\n) => void;\n"]}
|
|
@@ -18,8 +18,9 @@ export interface Colors {
|
|
|
18
18
|
* @param baseLValue Base value of light used for dark value calculation
|
|
19
19
|
* @param colorType @optional Type of color, can be text, background, or border
|
|
20
20
|
* @param element @optional Source HTML element of the color
|
|
21
|
+
* @param comparingColor @optional When generating dark color for background color, we can provide text color as comparingColor to make sure the generated dark border color has enough contrast with text color in dark mode
|
|
21
22
|
*/
|
|
22
|
-
export declare type ColorTransformFunction = (lightColor: string, baseLValue?: number, colorType?: 'text' | 'background' | 'border', element?: HTMLElement) => string;
|
|
23
|
+
export declare type ColorTransformFunction = (lightColor: string, baseLValue?: number, colorType?: 'text' | 'background' | 'border', element?: HTMLElement, comparingColor?: string) => string;
|
|
23
24
|
/**
|
|
24
25
|
* A handler object for dark color, used for variable-based dark color solution
|
|
25
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkColorHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DarkColorHandler.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a combination of color key, light color and dark color, parsed from existing color value\n */\nexport interface Colors {\n /**\n * Light mode color value\n */\n lightModeColor: string;\n\n /**\n * Dark mode color value, if found, otherwise undefined\n */\n darkModeColor: string;\n}\n\n/**\n * A util function type to transform light mode color to dark mode color\n * Default value is to return the original light color\n * @param lightColor Source color string in light mode\n * @param baseLValue Base value of light used for dark value calculation\n * @param colorType @optional Type of color, can be text, background, or border\n * @param element @optional Source HTML element of the color\n */\nexport type ColorTransformFunction = (\n lightColor: string,\n baseLValue?: number,\n colorType?: 'text' | 'background' | 'border',\n element?: HTMLElement\n) => string;\n\n/**\n * A handler object for dark color, used for variable-based dark color solution\n */\nexport interface DarkColorHandler {\n /**\n * Map of known colors\n */\n readonly knownColors: Record<string, Colors>;\n\n /**\n * Update all known colors to root container.\n * @param isDarkMode Whether container is in dark mode. When in dark mode, we add CSS color variables for all known colors.\n * When in light mode, we will remove all those CSS color variables\n */\n updateKnownColor(isDarkMode: boolean): void;\n\n /**\n * Register a known color, and update it to root container via CSS color variable when in dark mode\n * @param isDarkMode Whether container is in dark mode.\n * @param key The key of color, normally it is the name of color variable\n * @param colorPair A pair value of light color and dark color\n */\n updateKnownColor(isDarkMode: boolean, key: string, colorPair: Colors): void;\n\n /**\n * Reset known color record, clean up registered color variables.\n */\n reset(): void;\n\n /**\n * A util function to transform light mode color to dark mode color\n */\n getDarkColor: ColorTransformFunction;\n\n /**\n * Generate color key for dark mode color.\n */\n generateColorKey: ColorTransformFunction;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DarkColorHandler.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DarkColorHandler.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a combination of color key, light color and dark color, parsed from existing color value\n */\nexport interface Colors {\n /**\n * Light mode color value\n */\n lightModeColor: string;\n\n /**\n * Dark mode color value, if found, otherwise undefined\n */\n darkModeColor: string;\n}\n\n/**\n * A util function type to transform light mode color to dark mode color\n * Default value is to return the original light color\n * @param lightColor Source color string in light mode\n * @param baseLValue Base value of light used for dark value calculation\n * @param colorType @optional Type of color, can be text, background, or border\n * @param element @optional Source HTML element of the color\n * @param comparingColor @optional When generating dark color for background color, we can provide text color as comparingColor to make sure the generated dark border color has enough contrast with text color in dark mode\n */\nexport type ColorTransformFunction = (\n lightColor: string,\n baseLValue?: number,\n colorType?: 'text' | 'background' | 'border',\n element?: HTMLElement,\n comparingColor?: string\n) => string;\n\n/**\n * A handler object for dark color, used for variable-based dark color solution\n */\nexport interface DarkColorHandler {\n /**\n * Map of known colors\n */\n readonly knownColors: Record<string, Colors>;\n\n /**\n * Update all known colors to root container.\n * @param isDarkMode Whether container is in dark mode. When in dark mode, we add CSS color variables for all known colors.\n * When in light mode, we will remove all those CSS color variables\n */\n updateKnownColor(isDarkMode: boolean): void;\n\n /**\n * Register a known color, and update it to root container via CSS color variable when in dark mode\n * @param isDarkMode Whether container is in dark mode.\n * @param key The key of color, normally it is the name of color variable\n * @param colorPair A pair value of light color and dark color\n */\n updateKnownColor(isDarkMode: boolean, key: string, colorPair: Colors): void;\n\n /**\n * Reset known color record, clean up registered color variables.\n */\n reset(): void;\n\n /**\n * A util function to transform light mode color to dark mode color\n */\n getDarkColor: ColorTransformFunction;\n\n /**\n * Generate color key for dark mode color.\n */\n generateColorKey: ColorTransformFunction;\n}\n"]}
|
|
@@ -8,3 +8,14 @@ import type { ModelToDomSettings } from './ModelToDomSettings';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface ModelToDomContext extends EditorContext, ModelToDomSelectionContext, ModelToDomFormatContext, ModelToDomSettings, RewriteFromModelContext {
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Extended context used by segment and text handlers to carry per-paragraph segment state
|
|
13
|
+
*/
|
|
14
|
+
export interface ModelToDomSegmentContext extends ModelToDomContext {
|
|
15
|
+
/**
|
|
16
|
+
* Whether the current segment is the last segment in the paragraph,
|
|
17
|
+
* or there are no more Text segments after it (excluding SelectionMarkers).
|
|
18
|
+
* When true, trailing spaces should be converted to &nbsp;.
|
|
19
|
+
*/
|
|
20
|
+
noFollowingTextSegmentOrLast?: boolean;
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { RewriteFromModelContext } from './RewriteFromModel';\nimport type { EditorContext } from './EditorContext';\nimport type { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport type { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings,\n RewriteFromModelContext {}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { RewriteFromModelContext } from './RewriteFromModel';\nimport type { EditorContext } from './EditorContext';\nimport type { ModelToDomFormatContext } from './ModelToDomFormatContext';\nimport type { ModelToDomSelectionContext } from './ModelToDomSelectionContext';\nimport type { ModelToDomSettings } from './ModelToDomSettings';\n\n/**\n * Context of Model to DOM conversion, used for generate HTML DOM tree according to current context\n */\nexport interface ModelToDomContext\n extends EditorContext,\n ModelToDomSelectionContext,\n ModelToDomFormatContext,\n ModelToDomSettings,\n RewriteFromModelContext {}\n\n/**\n * Extended context used by segment and text handlers to carry per-paragraph segment state\n */\nexport interface ModelToDomSegmentContext extends ModelToDomContext {\n /**\n * Whether the current segment is the last segment in the paragraph,\n * or there are no more Text segments after it (excluding SelectionMarkers).\n * When true, trailing spaces should be converted to &nbsp;.\n */\n noFollowingTextSegmentOrLast?: boolean;\n}\n"]}
|
|
@@ -130,7 +130,19 @@ export declare type TableCellVerticalAlignOperation =
|
|
|
130
130
|
* Align current table cell at the bottom
|
|
131
131
|
*/
|
|
132
132
|
| 'alignCellBottom';
|
|
133
|
+
/**
|
|
134
|
+
* Operations used by editTable() API to shift table cell content up or left
|
|
135
|
+
*/
|
|
136
|
+
export declare type TableCellShiftOperation =
|
|
137
|
+
/**
|
|
138
|
+
* Move the table cell content to the cell on the left
|
|
139
|
+
*/
|
|
140
|
+
'shiftCellsLeft'
|
|
141
|
+
/**
|
|
142
|
+
* Move the table cell content to the cell above
|
|
143
|
+
*/
|
|
144
|
+
| 'shiftCellsUp';
|
|
133
145
|
/**
|
|
134
146
|
* Operations used by editTable() API
|
|
135
147
|
*/
|
|
136
|
-
export declare type TableOperation = TableVerticalInsertOperation | TableHorizontalInsertOperation | TableDeleteOperation | TableVerticalMergeOperation | TableHorizontalMergeOperation | TableCellMergeOperation | TableSplitOperation | TableAlignOperation | TableCellHorizontalAlignOperation | TableCellVerticalAlignOperation;
|
|
148
|
+
export declare type TableOperation = TableVerticalInsertOperation | TableHorizontalInsertOperation | TableDeleteOperation | TableVerticalMergeOperation | TableHorizontalMergeOperation | TableCellMergeOperation | TableSplitOperation | TableAlignOperation | TableCellHorizontalAlignOperation | TableCellVerticalAlignOperation | TableCellShiftOperation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableOperation.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/enum/TableOperation.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Operations used by editTable() API for insert table cell vertically\n */\nexport type TableVerticalInsertOperation =\n /**\n * Insert a row above current row\n */\n | 'insertAbove'\n\n /**\n * Insert a row below current row\n */\n | 'insertBelow';\n\n/**\n * Operations used by editTable() API for insert table cell horizontally\n */\nexport type TableHorizontalInsertOperation =\n /**\n * Insert a column on the left of current column\n */\n | 'insertLeft'\n\n /**\n * Insert a column on the right of current column\n */\n | 'insertRight';\n\n/**\n * Operations used by editTable() API for delete table cells\n */\nexport type TableDeleteOperation =\n /**\n * Delete the whole table\n */\n | 'deleteTable'\n\n /**\n * Delete current column\n */\n | 'deleteColumn'\n\n /**\n * Delete current row\n */\n | 'deleteRow';\n\n/**\n * Operations used by editTable() API for merge table cells vertically\n */\nexport type TableVerticalMergeOperation =\n /**\n * Merge current row with the row above\n */\n | 'mergeAbove'\n\n /**\n * Merge current row with the row below\n */\n | 'mergeBelow';\n\n/**\n * Operations used by editTable() API for merge table cells horizontally\n */\nexport type TableHorizontalMergeOperation =\n /**\n * Merge current column with the column on the left\n */\n | 'mergeLeft'\n\n /**\n * Merge current column with the column on the right\n */\n | 'mergeRight';\n\n/**\n * Operations used by editTable() API for merge selected table cells\n */\nexport type TableCellMergeOperation =\n /**\n * Merge all selected cells\n */\n 'mergeCells';\n\n/**\n * Operations used by editTable() API for split table cells\n */\nexport type TableSplitOperation =\n /**\n * Split current table cell horizontally\n */\n | 'splitHorizontally'\n\n /**\n * Split current table cell vertically\n */\n | 'splitVertically';\n\n/**\n * Operations used by editTable() API for align table\n */\nexport type TableAlignOperation =\n /**\n * Align current table at the center\n */\n | 'alignCenter'\n\n /**\n * Align current table at the left\n */\n | 'alignLeft'\n\n /**\n * Align current table at the right\n */\n | 'alignRight';\n\n/**\n * Operations used by editTable() API for align table cell horizontally\n */\nexport type TableCellHorizontalAlignOperation =\n /**\n * Align current content table cell at the left\n */\n | 'alignCellLeft'\n\n /**\n * Align current content table cell at the center\n */\n | 'alignCellCenter'\n\n /**\n * Align current content table cell at the right\n */\n | 'alignCellRight';\n\n/**\n * Operations used by editTable() API for align table cell vertically\n */\nexport type TableCellVerticalAlignOperation =\n /**\n * Align current content table cell at the top\n */\n | 'alignCellTop'\n\n /**\n * Align current table cell at the middle\n */\n | 'alignCellMiddle'\n\n /**\n * Align current table cell at the bottom\n */\n | 'alignCellBottom';\n\n/**\n * Operations used by editTable() API\n */\nexport type TableOperation =\n | TableVerticalInsertOperation\n | TableHorizontalInsertOperation\n | TableDeleteOperation\n | TableVerticalMergeOperation\n | TableHorizontalMergeOperation\n | TableCellMergeOperation\n | TableSplitOperation\n | TableAlignOperation\n | TableCellHorizontalAlignOperation\n | TableCellVerticalAlignOperation;\n"]}
|
|
1
|
+
{"version":3,"file":"TableOperation.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/enum/TableOperation.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Operations used by editTable() API for insert table cell vertically\n */\nexport type TableVerticalInsertOperation =\n /**\n * Insert a row above current row\n */\n | 'insertAbove'\n\n /**\n * Insert a row below current row\n */\n | 'insertBelow';\n\n/**\n * Operations used by editTable() API for insert table cell horizontally\n */\nexport type TableHorizontalInsertOperation =\n /**\n * Insert a column on the left of current column\n */\n | 'insertLeft'\n\n /**\n * Insert a column on the right of current column\n */\n | 'insertRight';\n\n/**\n * Operations used by editTable() API for delete table cells\n */\nexport type TableDeleteOperation =\n /**\n * Delete the whole table\n */\n | 'deleteTable'\n\n /**\n * Delete current column\n */\n | 'deleteColumn'\n\n /**\n * Delete current row\n */\n | 'deleteRow';\n\n/**\n * Operations used by editTable() API for merge table cells vertically\n */\nexport type TableVerticalMergeOperation =\n /**\n * Merge current row with the row above\n */\n | 'mergeAbove'\n\n /**\n * Merge current row with the row below\n */\n | 'mergeBelow';\n\n/**\n * Operations used by editTable() API for merge table cells horizontally\n */\nexport type TableHorizontalMergeOperation =\n /**\n * Merge current column with the column on the left\n */\n | 'mergeLeft'\n\n /**\n * Merge current column with the column on the right\n */\n | 'mergeRight';\n\n/**\n * Operations used by editTable() API for merge selected table cells\n */\nexport type TableCellMergeOperation =\n /**\n * Merge all selected cells\n */\n 'mergeCells';\n\n/**\n * Operations used by editTable() API for split table cells\n */\nexport type TableSplitOperation =\n /**\n * Split current table cell horizontally\n */\n | 'splitHorizontally'\n\n /**\n * Split current table cell vertically\n */\n | 'splitVertically';\n\n/**\n * Operations used by editTable() API for align table\n */\nexport type TableAlignOperation =\n /**\n * Align current table at the center\n */\n | 'alignCenter'\n\n /**\n * Align current table at the left\n */\n | 'alignLeft'\n\n /**\n * Align current table at the right\n */\n | 'alignRight';\n\n/**\n * Operations used by editTable() API for align table cell horizontally\n */\nexport type TableCellHorizontalAlignOperation =\n /**\n * Align current content table cell at the left\n */\n | 'alignCellLeft'\n\n /**\n * Align current content table cell at the center\n */\n | 'alignCellCenter'\n\n /**\n * Align current content table cell at the right\n */\n | 'alignCellRight';\n\n/**\n * Operations used by editTable() API for align table cell vertically\n */\nexport type TableCellVerticalAlignOperation =\n /**\n * Align current content table cell at the top\n */\n | 'alignCellTop'\n\n /**\n * Align current table cell at the middle\n */\n | 'alignCellMiddle'\n\n /**\n * Align current table cell at the bottom\n */\n | 'alignCellBottom';\n\n/**\n * Operations used by editTable() API to shift table cell content up or left\n */\nexport type TableCellShiftOperation =\n /**\n * Move the table cell content to the cell on the left\n */\n | 'shiftCellsLeft'\n\n /**\n * Move the table cell content to the cell above\n */\n | 'shiftCellsUp';\n\n/**\n * Operations used by editTable() API\n */\nexport type TableOperation =\n | TableVerticalInsertOperation\n | TableHorizontalInsertOperation\n | TableDeleteOperation\n | TableVerticalMergeOperation\n | TableHorizontalMergeOperation\n | TableCellMergeOperation\n | TableSplitOperation\n | TableAlignOperation\n | TableCellHorizontalAlignOperation\n | TableCellVerticalAlignOperation\n | TableCellShiftOperation;\n"]}
|
package/lib-mjs/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroup
|
|
|
62
62
|
export { ContentModelBlockType } from './contentModel/block/BlockType';
|
|
63
63
|
export { ContentModelSegmentType } from './contentModel/segment/SegmentType';
|
|
64
64
|
export { EntityLifecycleOperation, EntityOperation, EntityRemovalOperation, EntityFormatOperation, } from './enum/EntityOperation';
|
|
65
|
-
export { TableOperation, TableVerticalInsertOperation, TableHorizontalInsertOperation, TableDeleteOperation, TableVerticalMergeOperation, TableHorizontalMergeOperation, TableCellMergeOperation, TableSplitOperation, TableAlignOperation, TableCellHorizontalAlignOperation, TableCellVerticalAlignOperation, } from './enum/TableOperation';
|
|
65
|
+
export { TableOperation, TableVerticalInsertOperation, TableHorizontalInsertOperation, TableDeleteOperation, TableVerticalMergeOperation, TableHorizontalMergeOperation, TableCellMergeOperation, TableSplitOperation, TableAlignOperation, TableCellHorizontalAlignOperation, TableCellVerticalAlignOperation, TableCellShiftOperation, } from './enum/TableOperation';
|
|
66
66
|
export { PasteType } from './enum/PasteType';
|
|
67
67
|
export { BorderOperations } from './enum/BorderOperations';
|
|
68
68
|
export { DeleteResult } from './enum/DeleteResult';
|
|
@@ -109,7 +109,7 @@ export { ElementProcessor } from './context/ElementProcessor';
|
|
|
109
109
|
export { DomToModelSelectionContext } from './context/DomToModelSelectionContext';
|
|
110
110
|
export { EditorContext } from './context/EditorContext';
|
|
111
111
|
export { DomToModelFormatContext, DomToModelDecoratorContext, DomToModelListFormat, } from './context/DomToModelFormatContext';
|
|
112
|
-
export { ModelToDomContext } from './context/ModelToDomContext';
|
|
112
|
+
export { ModelToDomContext, ModelToDomSegmentContext } from './context/ModelToDomContext';
|
|
113
113
|
export { ModelToDomBlockAndSegmentNode, ModelToDomRegularSelection, ModelToDomSelectionContext, } from './context/ModelToDomSelectionContext';
|
|
114
114
|
export { ModelToDomListStackItem, ModelToDomListContext, ModelToDomFormatContext, } from './context/ModelToDomFormatContext';
|
|
115
115
|
export { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';
|
package/lib-mjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/roosterjs-content-model-types/lib/index.ts"],"names":[],"mappings":"","sourcesContent":["export { ContentModelSegmentFormat } from './contentModel/format/ContentModelSegmentFormat';\nexport {\n ContentModelWithFormat,\n ReadonlyContentModelWithFormat,\n} from './contentModel/format/ContentModelWithFormat';\nexport { ContentModelTableFormat } from './contentModel/format/ContentModelTableFormat';\nexport {\n ContentModelWithDataset,\n ReadonlyContentModelWithDataset,\n ShallowMutableContentModelWithDataset,\n} from './contentModel/format/ContentModelWithDataset';\nexport { ContentModelBlockFormat } from './contentModel/format/ContentModelBlockFormat';\nexport { ContentModelTableCellFormat } from './contentModel/format/ContentModelTableCellFormat';\nexport { ContentModelListItemFormat } from './contentModel/format/ContentModelListItemFormat';\nexport { ContentModelListItemLevelFormat } from './contentModel/format/ContentModelListItemLevelFormat';\nexport { ContentModelHyperLinkFormat } from './contentModel/format/ContentModelHyperLinkFormat';\nexport { ContentModelCodeFormat } from './contentModel/format/ContentModelCodeFormat';\nexport { ContentModelFormatContainerFormat } from './contentModel/format/ContentModelFormatContainerFormat';\nexport { ContentModelDividerFormat } from './contentModel/format/ContentModelDividerFormat';\nexport { ContentModelFormatBase } from './contentModel/format/ContentModelFormatBase';\nexport { ContentModelFormatMap } from './contentModel/format/ContentModelFormatMap';\nexport { ContentModelImageFormat } from './contentModel/format/ContentModelImageFormat';\nexport { ContentModelEntityFormat } from './contentModel/format/ContentModelEntityFormat';\nexport { FormatHandlerTypeMap, FormatKey } from './contentModel/format/FormatHandlerTypeMap';\n\nexport { AriaFormat } from './contentModel/format/formatParts/AriaFormat';\nexport { BackgroundColorFormat } from './contentModel/format/formatParts/BackgroundColorFormat';\nexport { BoldFormat } from './contentModel/format/formatParts/BoldFormat';\nexport { FontFamilyFormat } from './contentModel/format/formatParts/FontFamilyFormat';\nexport { FontSizeFormat } from './contentModel/format/formatParts/FontSizeFormat';\nexport { ItalicFormat } from './contentModel/format/formatParts/ItalicFormat';\nexport { LetterSpacingFormat } from './contentModel/format/formatParts/LetterSpacingFormat';\nexport { LineHeightFormat } from './contentModel/format/formatParts/LineHeightFormat';\nexport { StrikeFormat } from './contentModel/format/formatParts/StrikeFormat';\nexport { SuperOrSubScriptFormat } from './contentModel/format/formatParts/SuperOrSubScriptFormat';\nexport { TextColorFormat } from './contentModel/format/formatParts/TextColorFormat';\nexport { UnderlineFormat } from './contentModel/format/formatParts/UnderlineFormat';\nexport { BorderBoxFormat } from './contentModel/format/formatParts/BorderBoxFormat';\nexport { VerticalAlignFormat } from './contentModel/format/formatParts/VerticalAlignFormat';\nexport { WordBreakFormat } from './contentModel/format/formatParts/WordBreakFormat';\nexport { BorderFormat } from './contentModel/format/formatParts/BorderFormat';\nexport { DirectionFormat } from './contentModel/format/formatParts/DirectionFormat';\nexport { HtmlAlignFormat } from './contentModel/format/formatParts/HtmlAlignFormat';\nexport { MarginFormat } from './contentModel/format/formatParts/MarginFormat';\nexport { PaddingFormat } from './contentModel/format/formatParts/PaddingFormat';\nexport { TextAlignFormat } from './contentModel/format/formatParts/TextAlignFormat';\nexport { TextIndentFormat } from './contentModel/format/formatParts/TextIndentFormat';\nexport { WhiteSpaceFormat } from './contentModel/format/formatParts/WhiteSpaceFormat';\nexport { DisplayFormat } from './contentModel/format/formatParts/DisplayFormat';\nexport { IdFormat } from './contentModel/format/formatParts/IdFormat';\nexport { SpacingFormat } from './contentModel/format/formatParts/SpacingFormat';\nexport { TableLayoutFormat } from './contentModel/format/formatParts/TableLayoutFormat';\nexport { LinkFormat } from './contentModel/format/formatParts/LinkFormat';\nexport { SizeFormat } from './contentModel/format/formatParts/SizeFormat';\nexport { BoxShadowFormat } from './contentModel/format/formatParts/BoxShadowFormat';\nexport { ListThreadFormat } from './contentModel/format/formatParts/ListThreadFormat';\nexport { ListStyleFormat } from './contentModel/format/formatParts/ListStyleFormat';\nexport { FloatFormat } from './contentModel/format/formatParts/FloatFormat';\nexport { EntityInfoFormat } from './contentModel/format/formatParts/EntityInfoFormat';\nexport { UndeletableFormat } from './contentModel/format/formatParts/UndeletableFormat';\nexport { ImageStateFormat } from './contentModel/format/formatParts/ImageStateFormat';\nexport { RoleFormat } from './contentModel/format/formatParts/RoleFormat';\nexport { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';\n\nexport { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';\nexport { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';\nexport { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';\nexport {\n ImageResizeMetadataFormat,\n ImageCropMetadataFormat,\n ImageMetadataFormat,\n ImageRotateMetadataFormat,\n ImageFlipMetadataFormat,\n} from './contentModel/format/metadata/ImageMetadataFormat';\nexport { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';\n\nexport { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroupType';\nexport { ContentModelBlockType } from './contentModel/block/BlockType';\nexport { ContentModelSegmentType } from './contentModel/segment/SegmentType';\n\nexport {\n EntityLifecycleOperation,\n EntityOperation,\n EntityRemovalOperation,\n EntityFormatOperation,\n} from './enum/EntityOperation';\nexport {\n TableOperation,\n TableVerticalInsertOperation,\n TableHorizontalInsertOperation,\n TableDeleteOperation,\n TableVerticalMergeOperation,\n TableHorizontalMergeOperation,\n TableCellMergeOperation,\n TableSplitOperation,\n TableAlignOperation,\n TableCellHorizontalAlignOperation,\n TableCellVerticalAlignOperation,\n} from './enum/TableOperation';\nexport { PasteType } from './enum/PasteType';\nexport { BorderOperations } from './enum/BorderOperations';\nexport { DeleteResult } from './enum/DeleteResult';\nexport { InsertEntityPosition } from './enum/InsertEntityPosition';\nexport { ExportContentMode } from './enum/ExportContentMode';\n\nexport {\n ContentModelBlock,\n ReadonlyContentModelBlock,\n ShallowMutableContentModelBlock,\n} from './contentModel/block/ContentModelBlock';\nexport {\n ContentModelParagraph,\n ContentModelParagraphCommon,\n ReadonlyContentModelParagraph,\n ShallowMutableContentModelParagraph,\n} from './contentModel/block/ContentModelParagraph';\nexport {\n ContentModelTable,\n ReadonlyContentModelTable,\n ShallowMutableContentModelTable,\n} from './contentModel/block/ContentModelTable';\nexport {\n ContentModelDivider,\n ContentModelDividerCommon,\n ReadonlyContentModelDivider,\n} from './contentModel/block/ContentModelDivider';\nexport {\n ContentModelBlockBase,\n ContentModelBlockBaseCommon,\n ReadonlyContentModelBlockBase,\n ShallowMutableContentModelBlockBase,\n} from './contentModel/block/ContentModelBlockBase';\nexport { ContentModelBlockWithCache } from './contentModel/common/ContentModelBlockWithCache';\nexport {\n ContentModelTableRow,\n ContentModelTableRowCommon,\n ReadonlyContentModelTableRow,\n ShallowMutableContentModelTableRow,\n} from './contentModel/block/ContentModelTableRow';\n\nexport { ContentModelEntity } from './contentModel/entity/ContentModelEntity';\n\nexport {\n ContentModelDocument,\n ContentModelDocumentCommon,\n ReadonlyContentModelDocument,\n ShallowMutableContentModelDocument,\n} from './contentModel/blockGroup/ContentModelDocument';\nexport {\n ContentModelBlockGroupBase,\n ContentModelBlockGroupBaseCommon,\n ReadonlyContentModelBlockGroupBase,\n ShallowMutableContentModelBlockGroupBase,\n} from './contentModel/blockGroup/ContentModelBlockGroupBase';\nexport {\n ContentModelFormatContainer,\n ContentModelFormatContainerCommon,\n ReadonlyContentModelFormatContainer,\n ShallowMutableContentModelFormatContainer,\n} from './contentModel/blockGroup/ContentModelFormatContainer';\nexport {\n ContentModelGeneralBlock,\n ContentModelGeneralBlockCommon,\n ReadonlyContentModelGeneralBlock,\n ShallowMutableContentModelGeneralBlock,\n} from './contentModel/blockGroup/ContentModelGeneralBlock';\nexport {\n ContentModelListItem,\n ReadonlyContentModelListItem,\n ShallowMutableContentModelListItem,\n} from './contentModel/blockGroup/ContentModelListItem';\nexport {\n ContentModelTableCell,\n ContentModelTableCellCommon,\n ReadonlyContentModelTableCell,\n ShallowMutableContentModelTableCell,\n} from './contentModel/blockGroup/ContentModelTableCell';\nexport {\n ContentModelBlockGroup,\n ReadonlyContentModelBlockGroup,\n ShallowMutableContentModelBlockGroup,\n} from './contentModel/blockGroup/ContentModelBlockGroup';\n\nexport { ContentModelBr, ReadonlyContentModelBr } from './contentModel/segment/ContentModelBr';\nexport {\n ContentModelGeneralSegment,\n ReadonlyContentModelGeneralSegment,\n ShallowMutableContentModelGeneralSegment,\n} from './contentModel/segment/ContentModelGeneralSegment';\nexport {\n ContentModelImage,\n ContentModelImageCommon,\n ReadonlyContentModelImage,\n} from './contentModel/segment/ContentModelImage';\nexport {\n ContentModelText,\n ContentModelTextCommon,\n ReadonlyContentModelText,\n} from './contentModel/segment/ContentModelText';\nexport {\n ContentModelSelectionMarker,\n ReadonlyContentModelSelectionMarker,\n} from './contentModel/segment/ContentModelSelectionMarker';\nexport {\n ContentModelSegmentBase,\n ContentModelSegmentBaseCommon,\n ReadonlyContentModelSegmentBase,\n ShallowMutableContentModelSegmentBase,\n} from './contentModel/segment/ContentModelSegmentBase';\nexport {\n ContentModelSegment,\n ReadonlyContentModelSegment,\n ShallowMutableContentModelSegment,\n} from './contentModel/segment/ContentModelSegment';\n\nexport {\n ContentModelCode,\n ReadonlyContentModelCode,\n} from './contentModel/decorator/ContentModelCode';\nexport {\n ContentModelLink,\n ReadonlyContentModelLink,\n} from './contentModel/decorator/ContentModelLink';\nexport {\n ContentModelParagraphDecorator,\n ContentModelParagraphDecoratorCommon,\n ReadonlyContentModelParagraphDecorator,\n} from './contentModel/decorator/ContentModelParagraphDecorator';\nexport {\n ContentModelDecorator,\n ReadonlyContentModelDecorator,\n} from './contentModel/decorator/ContentModelDecorator';\nexport {\n ContentModelListLevel,\n ContentModelListLevelCommon,\n ReadonlyContentModelListLevel,\n} from './contentModel/decorator/ContentModelListLevel';\n\nexport {\n Selectable,\n ReadonlySelectable,\n ShallowMutableSelectable,\n} from './contentModel/common/Selectable';\nexport { MutableMark, ShallowMutableMark, ReadonlyMark } from './contentModel/common/MutableMark';\nexport { MutableType } from './contentModel/common/MutableType';\n\nexport {\n DOMSelection,\n SelectionType,\n SelectionBase,\n ImageSelection,\n RangeSelection,\n TableSelection,\n DOMInsertPoint,\n} from './selection/DOMSelection';\nexport { InsertPoint } from './selection/InsertPoint';\nexport {\n TableSelectionContext,\n ReadonlyTableSelectionContext,\n} from './selection/TableSelectionContext';\nexport { TableSelectionCoordinates } from './selection/TableSelectionCoordinates';\n\nexport {\n ContentModelHandlerMap,\n DefaultImplicitFormatMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n OnNodeCreated,\n ModelToDomSettings,\n FormatApplier,\n ApplyMetadata,\n MetadataApplier,\n MetadataAppliers,\n TextFormatApplier,\n ElementFormatAppliersPerCategory,\n} from './context/ModelToDomSettings';\nexport {\n DefaultStyleMap,\n ElementProcessorMap,\n FormatParsers,\n FormatParsersPerCategory,\n DomToModelSettings,\n FormatParser,\n TextFormatParser,\n ElementFormatParserPerCategory,\n} from './context/DomToModelSettings';\nexport { DomToModelContext } from './context/DomToModelContext';\nexport { ElementProcessor } from './context/ElementProcessor';\nexport { DomToModelSelectionContext } from './context/DomToModelSelectionContext';\nexport { EditorContext } from './context/EditorContext';\nexport {\n DomToModelFormatContext,\n DomToModelDecoratorContext,\n DomToModelListFormat,\n} from './context/DomToModelFormatContext';\nexport { ModelToDomContext } from './context/ModelToDomContext';\nexport {\n ModelToDomBlockAndSegmentNode,\n ModelToDomRegularSelection,\n ModelToDomSelectionContext,\n} from './context/ModelToDomSelectionContext';\nexport {\n ModelToDomListStackItem,\n ModelToDomListContext,\n ModelToDomFormatContext,\n} from './context/ModelToDomFormatContext';\nexport { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';\nexport {\n ContentModelHandler,\n ContentModelSegmentHandler,\n ContentModelBlockHandler,\n} from './context/ContentModelHandler';\nexport {\n DomToModelOption,\n DomToModelOptionForSanitizing,\n DomToModelOptionForCreateModel,\n} from './context/DomToModelOption';\nexport { ModelToDomOption } from './context/ModelToDomOption';\nexport { DomIndexer } from './context/DomIndexer';\nexport { TextMutationObserver } from './context/TextMutationObserver';\n\nexport { DefinitionType } from './metadata/DefinitionType';\nexport {\n ArrayItemType,\n DefinitionBase,\n StringDefinition,\n NumberDefinition,\n BooleanDefinition,\n ArrayDefinition,\n ObjectPropertyDefinition,\n ObjectDefinition,\n Definition,\n} from './metadata/Definition';\nexport { DarkColorHandler, Colors, ColorTransformFunction } from './context/DarkColorHandler';\n\nexport { IEditor } from './editor/IEditor';\nexport { ExperimentalFeature, GraduatedExperimentalFeature } from './editor/ExperimentalFeature';\nexport {\n EditorOptions,\n ColorOptions,\n ContentModelOptions,\n SelectionOptions,\n PasteOptions,\n EditorBaseOptions,\n} from './editor/EditorOptions';\nexport {\n CreateContentModel,\n CreateEditorContext,\n GetDOMSelection,\n SetContentModel,\n SetDOMSelection,\n SetLogicalRoot,\n FormatContentModel,\n CoreApiMap,\n EditorCore,\n SwitchShadowEdit,\n TriggerEvent,\n AddUndoSnapshot,\n Focus,\n AttachDomEvent,\n RestoreUndoSnapshot,\n GetVisibleViewport,\n SetEditorStyle,\n Announce,\n} from './editor/EditorCore';\nexport { EditorCorePlugins } from './editor/EditorCorePlugins';\nexport { EditorPlugin } from './editor/EditorPlugin';\nexport { PluginWithState } from './editor/PluginWithState';\nexport { ContextMenuProvider } from './editor/ContextMenuProvider';\n\nexport {\n CachePluginState,\n RangeSelectionForCache,\n CacheSelection,\n} from './pluginState/CachePluginState';\nexport { FormatPluginState, PendingFormat } from './pluginState/FormatPluginState';\nexport { CopyPastePluginState } from './pluginState/CopyPastePluginState';\nexport { DOMEventPluginState } from './pluginState/DOMEventPluginState';\nexport { LifecyclePluginState } from './pluginState/LifecyclePluginState';\nexport { EntityPluginState, KnownEntityItem } from './pluginState/EntityPluginState';\nexport {\n SelectionPluginState,\n TableSelectionInfo,\n TableCellCoordinate,\n} from './pluginState/SelectionPluginState';\nexport { UndoPluginState } from './pluginState/UndoPluginState';\nexport {\n PluginKey,\n KeyOfStatePlugin,\n TypeOfStatePlugin,\n StatePluginKeys,\n GenericPluginState,\n PluginState,\n} from './pluginState/PluginState';\nexport { ContextMenuPluginState } from './pluginState/ContextMenuPluginState';\n\nexport { AutoLinkOptions } from './parameter/AutoLinkOptions';\nexport { EditorEnvironment, ContentModelSettings } from './parameter/EditorEnvironment';\nexport {\n EntityState,\n DeletedEntity,\n FormatContentModelContext,\n} from './parameter/FormatContentModelContext';\nexport {\n FormatContentModelOptions,\n ContentModelFormatter,\n} from './parameter/FormatContentModelOptions';\nexport { ContentModelFormatState } from './parameter/ContentModelFormatState';\nexport { PasteTypeOrGetter } from './parameter/PasteTypeOrGetter';\nexport { ImageFormatState } from './parameter/ImageFormatState';\nexport { Border } from './parameter/Border';\nexport { InsertEntityOptions } from './parameter/InsertEntityOptions';\nexport {\n DeleteSelectionContext,\n DeleteSelectionResult,\n DeleteSelectionStep,\n ValidDeleteSelectionContext,\n} from './parameter/DeleteSelectionStep';\nexport {\n SnapshotSelectionBase,\n RangeSnapshotSelection,\n ImageSnapshotSelection,\n TableSnapshotSelection,\n SnapshotSelection,\n Snapshot,\n Snapshots,\n} from './parameter/Snapshot';\nexport { SnapshotsManager } from './parameter/SnapshotsManager';\nexport { DOMEventHandlerFunction, DOMEventRecord } from './parameter/DOMEventRecord';\nexport { EdgeLinkPreview } from './parameter/EdgeLinkPreview';\nexport { ClipboardData } from './parameter/ClipboardData';\nexport { AnnounceData, KnownAnnounceStrings } from './parameter/AnnounceData';\nexport { AnnouncingOption } from './parameter/AnnouncingOption';\nexport {\n TrustedHTMLHandler,\n DOMCreator,\n LegacyTrustedHTMLHandler,\n} from './parameter/TrustedHTMLHandler';\nexport { Rect } from './parameter/Rect';\nexport { ValueSanitizer } from './parameter/ValueSanitizer';\nexport { DOMHelper } from './parameter/DOMHelper';\nexport { ImageEditOperation, ImageEditor } from './parameter/ImageEditor';\nexport { CachedElementHandler, CloneModelOptions } from './parameter/CloneModelOptions';\nexport { LinkData } from './parameter/LinkData';\nexport { MergeModelOption } from './parameter/MergeModelOption';\nexport {\n IterateSelectionsCallback,\n IterateSelectionsOption,\n ReadonlyIterateSelectionsCallback,\n} from './parameter/IterateSelectionsOption';\nexport { NodeTypeMap } from './parameter/NodeTypeMap';\nexport { TypeOfBlockGroup } from './parameter/TypeOfBlockGroup';\nexport { OperationalBlocks, ReadonlyOperationalBlocks } from './parameter/OperationalBlocks';\nexport { ParsedTable, ParsedTableCell } from './parameter/ParsedTable';\nexport {\n ModelToTextCallback,\n ModelToTextCallbacks,\n ModelToTextChecker,\n} from './parameter/ModelToTextCallbacks';\nexport { ConflictFormatSolution } from './parameter/ConflictFormatSolution';\nexport { ParagraphMap, ParagraphIndexer } from './parameter/ParagraphMap';\nexport { TextAndHtmlContentForCopy } from './parameter/TextAndHtmlContentForCopy';\nexport { PromotedLink } from './parameter/PromotedLink';\nexport { BorderKey } from './parameter/BorderKey';\n\nexport { BasePluginEvent, BasePluginDomEvent } from './event/BasePluginEvent';\nexport { BeforeAddUndoSnapshotEvent } from './event/BeforeAddUndoSnapshotEvent';\nexport { BeforeCutCopyEvent } from './event/BeforeCutCopyEvent';\nexport { BeforeDisposeEvent } from './event/BeforeDisposeEvent';\nexport { BeforeKeyboardEditingEvent } from './event/BeforeKeyboardEditingEvent';\nexport { BeforePasteEvent, MergePastedContentFunc } from './event/BeforePasteEvent';\nexport { BeforeSetContentEvent } from './event/BeforeSetContentEvent';\nexport { ContentChangedEvent, ChangedEntity } from './event/ContentChangedEvent';\nexport { ContextMenuEvent } from './event/ContextMenuEvent';\nexport { RewriteFromModelEvent } from './event/RewriteFromModelEvent';\nexport { EditImageEvent } from './event/EditImageEvent';\nexport { EditorReadyEvent } from './event/EditorReadyEvent';\nexport { EntityOperationEvent, FormattableRoot, Entity } from './event/EntityOperationEvent';\nexport { ExtractContentWithDomEvent } from './event/ExtractContentWithDomEvent';\nexport { EditorInputEvent } from './event/EditorInputEvent';\nexport {\n KeyDownEvent,\n KeyPressEvent,\n KeyUpEvent,\n CompositionEndEvent,\n} from './event/KeyboardEvent';\nexport {\n BeforeLogicalRootChangeEvent,\n LogicalRootChangedEvent,\n} from './event/LogicalRootChangedEvent';\nexport { MouseDownEvent, MouseUpEvent, DoubleClickEvent } from './event/MouseEvent';\nexport { PluginEvent } from './event/PluginEvent';\nexport {\n PluginEventData,\n PluginEventFromTypeGeneric,\n PluginEventFromType,\n PluginEventDataGeneric,\n} from './event/PluginEventData';\nexport { PluginEventType } from './event/PluginEventType';\nexport { ScrollEvent } from './event/ScrollEvent';\nexport { SelectionChangedEvent } from './event/SelectionChangedEvent';\nexport { EnterShadowEditEvent, LeaveShadowEditEvent } from './event/ShadowEditEvent';\nexport { ZoomChangedEvent } from './event/ZoomChangedEvent';\nexport { PointerDownEvent, PointerUpEvent } from './event/PointerEvent';\nexport { FindResultChangedEvent } from './event/FindResultChangedEvent';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/roosterjs-content-model-types/lib/index.ts"],"names":[],"mappings":"","sourcesContent":["export { ContentModelSegmentFormat } from './contentModel/format/ContentModelSegmentFormat';\nexport {\n ContentModelWithFormat,\n ReadonlyContentModelWithFormat,\n} from './contentModel/format/ContentModelWithFormat';\nexport { ContentModelTableFormat } from './contentModel/format/ContentModelTableFormat';\nexport {\n ContentModelWithDataset,\n ReadonlyContentModelWithDataset,\n ShallowMutableContentModelWithDataset,\n} from './contentModel/format/ContentModelWithDataset';\nexport { ContentModelBlockFormat } from './contentModel/format/ContentModelBlockFormat';\nexport { ContentModelTableCellFormat } from './contentModel/format/ContentModelTableCellFormat';\nexport { ContentModelListItemFormat } from './contentModel/format/ContentModelListItemFormat';\nexport { ContentModelListItemLevelFormat } from './contentModel/format/ContentModelListItemLevelFormat';\nexport { ContentModelHyperLinkFormat } from './contentModel/format/ContentModelHyperLinkFormat';\nexport { ContentModelCodeFormat } from './contentModel/format/ContentModelCodeFormat';\nexport { ContentModelFormatContainerFormat } from './contentModel/format/ContentModelFormatContainerFormat';\nexport { ContentModelDividerFormat } from './contentModel/format/ContentModelDividerFormat';\nexport { ContentModelFormatBase } from './contentModel/format/ContentModelFormatBase';\nexport { ContentModelFormatMap } from './contentModel/format/ContentModelFormatMap';\nexport { ContentModelImageFormat } from './contentModel/format/ContentModelImageFormat';\nexport { ContentModelEntityFormat } from './contentModel/format/ContentModelEntityFormat';\nexport { FormatHandlerTypeMap, FormatKey } from './contentModel/format/FormatHandlerTypeMap';\n\nexport { AriaFormat } from './contentModel/format/formatParts/AriaFormat';\nexport { BackgroundColorFormat } from './contentModel/format/formatParts/BackgroundColorFormat';\nexport { BoldFormat } from './contentModel/format/formatParts/BoldFormat';\nexport { FontFamilyFormat } from './contentModel/format/formatParts/FontFamilyFormat';\nexport { FontSizeFormat } from './contentModel/format/formatParts/FontSizeFormat';\nexport { ItalicFormat } from './contentModel/format/formatParts/ItalicFormat';\nexport { LetterSpacingFormat } from './contentModel/format/formatParts/LetterSpacingFormat';\nexport { LineHeightFormat } from './contentModel/format/formatParts/LineHeightFormat';\nexport { StrikeFormat } from './contentModel/format/formatParts/StrikeFormat';\nexport { SuperOrSubScriptFormat } from './contentModel/format/formatParts/SuperOrSubScriptFormat';\nexport { TextColorFormat } from './contentModel/format/formatParts/TextColorFormat';\nexport { UnderlineFormat } from './contentModel/format/formatParts/UnderlineFormat';\nexport { BorderBoxFormat } from './contentModel/format/formatParts/BorderBoxFormat';\nexport { VerticalAlignFormat } from './contentModel/format/formatParts/VerticalAlignFormat';\nexport { WordBreakFormat } from './contentModel/format/formatParts/WordBreakFormat';\nexport { BorderFormat } from './contentModel/format/formatParts/BorderFormat';\nexport { DirectionFormat } from './contentModel/format/formatParts/DirectionFormat';\nexport { HtmlAlignFormat } from './contentModel/format/formatParts/HtmlAlignFormat';\nexport { MarginFormat } from './contentModel/format/formatParts/MarginFormat';\nexport { PaddingFormat } from './contentModel/format/formatParts/PaddingFormat';\nexport { TextAlignFormat } from './contentModel/format/formatParts/TextAlignFormat';\nexport { TextIndentFormat } from './contentModel/format/formatParts/TextIndentFormat';\nexport { WhiteSpaceFormat } from './contentModel/format/formatParts/WhiteSpaceFormat';\nexport { DisplayFormat } from './contentModel/format/formatParts/DisplayFormat';\nexport { IdFormat } from './contentModel/format/formatParts/IdFormat';\nexport { SpacingFormat } from './contentModel/format/formatParts/SpacingFormat';\nexport { TableLayoutFormat } from './contentModel/format/formatParts/TableLayoutFormat';\nexport { LinkFormat } from './contentModel/format/formatParts/LinkFormat';\nexport { SizeFormat } from './contentModel/format/formatParts/SizeFormat';\nexport { BoxShadowFormat } from './contentModel/format/formatParts/BoxShadowFormat';\nexport { ListThreadFormat } from './contentModel/format/formatParts/ListThreadFormat';\nexport { ListStyleFormat } from './contentModel/format/formatParts/ListStyleFormat';\nexport { FloatFormat } from './contentModel/format/formatParts/FloatFormat';\nexport { EntityInfoFormat } from './contentModel/format/formatParts/EntityInfoFormat';\nexport { UndeletableFormat } from './contentModel/format/formatParts/UndeletableFormat';\nexport { ImageStateFormat } from './contentModel/format/formatParts/ImageStateFormat';\nexport { RoleFormat } from './contentModel/format/formatParts/RoleFormat';\nexport { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';\n\nexport { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';\nexport { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';\nexport { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';\nexport {\n ImageResizeMetadataFormat,\n ImageCropMetadataFormat,\n ImageMetadataFormat,\n ImageRotateMetadataFormat,\n ImageFlipMetadataFormat,\n} from './contentModel/format/metadata/ImageMetadataFormat';\nexport { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';\n\nexport { ContentModelBlockGroupType } from './contentModel/blockGroup/BlockGroupType';\nexport { ContentModelBlockType } from './contentModel/block/BlockType';\nexport { ContentModelSegmentType } from './contentModel/segment/SegmentType';\n\nexport {\n EntityLifecycleOperation,\n EntityOperation,\n EntityRemovalOperation,\n EntityFormatOperation,\n} from './enum/EntityOperation';\nexport {\n TableOperation,\n TableVerticalInsertOperation,\n TableHorizontalInsertOperation,\n TableDeleteOperation,\n TableVerticalMergeOperation,\n TableHorizontalMergeOperation,\n TableCellMergeOperation,\n TableSplitOperation,\n TableAlignOperation,\n TableCellHorizontalAlignOperation,\n TableCellVerticalAlignOperation,\n TableCellShiftOperation,\n} from './enum/TableOperation';\nexport { PasteType } from './enum/PasteType';\nexport { BorderOperations } from './enum/BorderOperations';\nexport { DeleteResult } from './enum/DeleteResult';\nexport { InsertEntityPosition } from './enum/InsertEntityPosition';\nexport { ExportContentMode } from './enum/ExportContentMode';\n\nexport {\n ContentModelBlock,\n ReadonlyContentModelBlock,\n ShallowMutableContentModelBlock,\n} from './contentModel/block/ContentModelBlock';\nexport {\n ContentModelParagraph,\n ContentModelParagraphCommon,\n ReadonlyContentModelParagraph,\n ShallowMutableContentModelParagraph,\n} from './contentModel/block/ContentModelParagraph';\nexport {\n ContentModelTable,\n ReadonlyContentModelTable,\n ShallowMutableContentModelTable,\n} from './contentModel/block/ContentModelTable';\nexport {\n ContentModelDivider,\n ContentModelDividerCommon,\n ReadonlyContentModelDivider,\n} from './contentModel/block/ContentModelDivider';\nexport {\n ContentModelBlockBase,\n ContentModelBlockBaseCommon,\n ReadonlyContentModelBlockBase,\n ShallowMutableContentModelBlockBase,\n} from './contentModel/block/ContentModelBlockBase';\nexport { ContentModelBlockWithCache } from './contentModel/common/ContentModelBlockWithCache';\nexport {\n ContentModelTableRow,\n ContentModelTableRowCommon,\n ReadonlyContentModelTableRow,\n ShallowMutableContentModelTableRow,\n} from './contentModel/block/ContentModelTableRow';\n\nexport { ContentModelEntity } from './contentModel/entity/ContentModelEntity';\n\nexport {\n ContentModelDocument,\n ContentModelDocumentCommon,\n ReadonlyContentModelDocument,\n ShallowMutableContentModelDocument,\n} from './contentModel/blockGroup/ContentModelDocument';\nexport {\n ContentModelBlockGroupBase,\n ContentModelBlockGroupBaseCommon,\n ReadonlyContentModelBlockGroupBase,\n ShallowMutableContentModelBlockGroupBase,\n} from './contentModel/blockGroup/ContentModelBlockGroupBase';\nexport {\n ContentModelFormatContainer,\n ContentModelFormatContainerCommon,\n ReadonlyContentModelFormatContainer,\n ShallowMutableContentModelFormatContainer,\n} from './contentModel/blockGroup/ContentModelFormatContainer';\nexport {\n ContentModelGeneralBlock,\n ContentModelGeneralBlockCommon,\n ReadonlyContentModelGeneralBlock,\n ShallowMutableContentModelGeneralBlock,\n} from './contentModel/blockGroup/ContentModelGeneralBlock';\nexport {\n ContentModelListItem,\n ReadonlyContentModelListItem,\n ShallowMutableContentModelListItem,\n} from './contentModel/blockGroup/ContentModelListItem';\nexport {\n ContentModelTableCell,\n ContentModelTableCellCommon,\n ReadonlyContentModelTableCell,\n ShallowMutableContentModelTableCell,\n} from './contentModel/blockGroup/ContentModelTableCell';\nexport {\n ContentModelBlockGroup,\n ReadonlyContentModelBlockGroup,\n ShallowMutableContentModelBlockGroup,\n} from './contentModel/blockGroup/ContentModelBlockGroup';\n\nexport { ContentModelBr, ReadonlyContentModelBr } from './contentModel/segment/ContentModelBr';\nexport {\n ContentModelGeneralSegment,\n ReadonlyContentModelGeneralSegment,\n ShallowMutableContentModelGeneralSegment,\n} from './contentModel/segment/ContentModelGeneralSegment';\nexport {\n ContentModelImage,\n ContentModelImageCommon,\n ReadonlyContentModelImage,\n} from './contentModel/segment/ContentModelImage';\nexport {\n ContentModelText,\n ContentModelTextCommon,\n ReadonlyContentModelText,\n} from './contentModel/segment/ContentModelText';\nexport {\n ContentModelSelectionMarker,\n ReadonlyContentModelSelectionMarker,\n} from './contentModel/segment/ContentModelSelectionMarker';\nexport {\n ContentModelSegmentBase,\n ContentModelSegmentBaseCommon,\n ReadonlyContentModelSegmentBase,\n ShallowMutableContentModelSegmentBase,\n} from './contentModel/segment/ContentModelSegmentBase';\nexport {\n ContentModelSegment,\n ReadonlyContentModelSegment,\n ShallowMutableContentModelSegment,\n} from './contentModel/segment/ContentModelSegment';\n\nexport {\n ContentModelCode,\n ReadonlyContentModelCode,\n} from './contentModel/decorator/ContentModelCode';\nexport {\n ContentModelLink,\n ReadonlyContentModelLink,\n} from './contentModel/decorator/ContentModelLink';\nexport {\n ContentModelParagraphDecorator,\n ContentModelParagraphDecoratorCommon,\n ReadonlyContentModelParagraphDecorator,\n} from './contentModel/decorator/ContentModelParagraphDecorator';\nexport {\n ContentModelDecorator,\n ReadonlyContentModelDecorator,\n} from './contentModel/decorator/ContentModelDecorator';\nexport {\n ContentModelListLevel,\n ContentModelListLevelCommon,\n ReadonlyContentModelListLevel,\n} from './contentModel/decorator/ContentModelListLevel';\n\nexport {\n Selectable,\n ReadonlySelectable,\n ShallowMutableSelectable,\n} from './contentModel/common/Selectable';\nexport { MutableMark, ShallowMutableMark, ReadonlyMark } from './contentModel/common/MutableMark';\nexport { MutableType } from './contentModel/common/MutableType';\n\nexport {\n DOMSelection,\n SelectionType,\n SelectionBase,\n ImageSelection,\n RangeSelection,\n TableSelection,\n DOMInsertPoint,\n} from './selection/DOMSelection';\nexport { InsertPoint } from './selection/InsertPoint';\nexport {\n TableSelectionContext,\n ReadonlyTableSelectionContext,\n} from './selection/TableSelectionContext';\nexport { TableSelectionCoordinates } from './selection/TableSelectionCoordinates';\n\nexport {\n ContentModelHandlerMap,\n DefaultImplicitFormatMap,\n FormatAppliers,\n FormatAppliersPerCategory,\n OnNodeCreated,\n ModelToDomSettings,\n FormatApplier,\n ApplyMetadata,\n MetadataApplier,\n MetadataAppliers,\n TextFormatApplier,\n ElementFormatAppliersPerCategory,\n} from './context/ModelToDomSettings';\nexport {\n DefaultStyleMap,\n ElementProcessorMap,\n FormatParsers,\n FormatParsersPerCategory,\n DomToModelSettings,\n FormatParser,\n TextFormatParser,\n ElementFormatParserPerCategory,\n} from './context/DomToModelSettings';\nexport { DomToModelContext } from './context/DomToModelContext';\nexport { ElementProcessor } from './context/ElementProcessor';\nexport { DomToModelSelectionContext } from './context/DomToModelSelectionContext';\nexport { EditorContext } from './context/EditorContext';\nexport {\n DomToModelFormatContext,\n DomToModelDecoratorContext,\n DomToModelListFormat,\n} from './context/DomToModelFormatContext';\nexport { ModelToDomContext, ModelToDomSegmentContext } from './context/ModelToDomContext';\nexport {\n ModelToDomBlockAndSegmentNode,\n ModelToDomRegularSelection,\n ModelToDomSelectionContext,\n} from './context/ModelToDomSelectionContext';\nexport {\n ModelToDomListStackItem,\n ModelToDomListContext,\n ModelToDomFormatContext,\n} from './context/ModelToDomFormatContext';\nexport { RewriteFromModel, RewriteFromModelContext } from './context/RewriteFromModel';\nexport {\n ContentModelHandler,\n ContentModelSegmentHandler,\n ContentModelBlockHandler,\n} from './context/ContentModelHandler';\nexport {\n DomToModelOption,\n DomToModelOptionForSanitizing,\n DomToModelOptionForCreateModel,\n} from './context/DomToModelOption';\nexport { ModelToDomOption } from './context/ModelToDomOption';\nexport { DomIndexer } from './context/DomIndexer';\nexport { TextMutationObserver } from './context/TextMutationObserver';\n\nexport { DefinitionType } from './metadata/DefinitionType';\nexport {\n ArrayItemType,\n DefinitionBase,\n StringDefinition,\n NumberDefinition,\n BooleanDefinition,\n ArrayDefinition,\n ObjectPropertyDefinition,\n ObjectDefinition,\n Definition,\n} from './metadata/Definition';\nexport { DarkColorHandler, Colors, ColorTransformFunction } from './context/DarkColorHandler';\n\nexport { IEditor } from './editor/IEditor';\nexport { ExperimentalFeature, GraduatedExperimentalFeature } from './editor/ExperimentalFeature';\nexport {\n EditorOptions,\n ColorOptions,\n ContentModelOptions,\n SelectionOptions,\n PasteOptions,\n EditorBaseOptions,\n} from './editor/EditorOptions';\nexport {\n CreateContentModel,\n CreateEditorContext,\n GetDOMSelection,\n SetContentModel,\n SetDOMSelection,\n SetLogicalRoot,\n FormatContentModel,\n CoreApiMap,\n EditorCore,\n SwitchShadowEdit,\n TriggerEvent,\n AddUndoSnapshot,\n Focus,\n AttachDomEvent,\n RestoreUndoSnapshot,\n GetVisibleViewport,\n SetEditorStyle,\n Announce,\n} from './editor/EditorCore';\nexport { EditorCorePlugins } from './editor/EditorCorePlugins';\nexport { EditorPlugin } from './editor/EditorPlugin';\nexport { PluginWithState } from './editor/PluginWithState';\nexport { ContextMenuProvider } from './editor/ContextMenuProvider';\n\nexport {\n CachePluginState,\n RangeSelectionForCache,\n CacheSelection,\n} from './pluginState/CachePluginState';\nexport { FormatPluginState, PendingFormat } from './pluginState/FormatPluginState';\nexport { CopyPastePluginState } from './pluginState/CopyPastePluginState';\nexport { DOMEventPluginState } from './pluginState/DOMEventPluginState';\nexport { LifecyclePluginState } from './pluginState/LifecyclePluginState';\nexport { EntityPluginState, KnownEntityItem } from './pluginState/EntityPluginState';\nexport {\n SelectionPluginState,\n TableSelectionInfo,\n TableCellCoordinate,\n} from './pluginState/SelectionPluginState';\nexport { UndoPluginState } from './pluginState/UndoPluginState';\nexport {\n PluginKey,\n KeyOfStatePlugin,\n TypeOfStatePlugin,\n StatePluginKeys,\n GenericPluginState,\n PluginState,\n} from './pluginState/PluginState';\nexport { ContextMenuPluginState } from './pluginState/ContextMenuPluginState';\n\nexport { AutoLinkOptions } from './parameter/AutoLinkOptions';\nexport { EditorEnvironment, ContentModelSettings } from './parameter/EditorEnvironment';\nexport {\n EntityState,\n DeletedEntity,\n FormatContentModelContext,\n} from './parameter/FormatContentModelContext';\nexport {\n FormatContentModelOptions,\n ContentModelFormatter,\n} from './parameter/FormatContentModelOptions';\nexport { ContentModelFormatState } from './parameter/ContentModelFormatState';\nexport { PasteTypeOrGetter } from './parameter/PasteTypeOrGetter';\nexport { ImageFormatState } from './parameter/ImageFormatState';\nexport { Border } from './parameter/Border';\nexport { InsertEntityOptions } from './parameter/InsertEntityOptions';\nexport {\n DeleteSelectionContext,\n DeleteSelectionResult,\n DeleteSelectionStep,\n ValidDeleteSelectionContext,\n} from './parameter/DeleteSelectionStep';\nexport {\n SnapshotSelectionBase,\n RangeSnapshotSelection,\n ImageSnapshotSelection,\n TableSnapshotSelection,\n SnapshotSelection,\n Snapshot,\n Snapshots,\n} from './parameter/Snapshot';\nexport { SnapshotsManager } from './parameter/SnapshotsManager';\nexport { DOMEventHandlerFunction, DOMEventRecord } from './parameter/DOMEventRecord';\nexport { EdgeLinkPreview } from './parameter/EdgeLinkPreview';\nexport { ClipboardData } from './parameter/ClipboardData';\nexport { AnnounceData, KnownAnnounceStrings } from './parameter/AnnounceData';\nexport { AnnouncingOption } from './parameter/AnnouncingOption';\nexport {\n TrustedHTMLHandler,\n DOMCreator,\n LegacyTrustedHTMLHandler,\n} from './parameter/TrustedHTMLHandler';\nexport { Rect } from './parameter/Rect';\nexport { ValueSanitizer } from './parameter/ValueSanitizer';\nexport { DOMHelper } from './parameter/DOMHelper';\nexport { ImageEditOperation, ImageEditor } from './parameter/ImageEditor';\nexport { CachedElementHandler, CloneModelOptions } from './parameter/CloneModelOptions';\nexport { LinkData } from './parameter/LinkData';\nexport { MergeModelOption } from './parameter/MergeModelOption';\nexport {\n IterateSelectionsCallback,\n IterateSelectionsOption,\n ReadonlyIterateSelectionsCallback,\n} from './parameter/IterateSelectionsOption';\nexport { NodeTypeMap } from './parameter/NodeTypeMap';\nexport { TypeOfBlockGroup } from './parameter/TypeOfBlockGroup';\nexport { OperationalBlocks, ReadonlyOperationalBlocks } from './parameter/OperationalBlocks';\nexport { ParsedTable, ParsedTableCell } from './parameter/ParsedTable';\nexport {\n ModelToTextCallback,\n ModelToTextCallbacks,\n ModelToTextChecker,\n} from './parameter/ModelToTextCallbacks';\nexport { ConflictFormatSolution } from './parameter/ConflictFormatSolution';\nexport { ParagraphMap, ParagraphIndexer } from './parameter/ParagraphMap';\nexport { TextAndHtmlContentForCopy } from './parameter/TextAndHtmlContentForCopy';\nexport { PromotedLink } from './parameter/PromotedLink';\nexport { BorderKey } from './parameter/BorderKey';\n\nexport { BasePluginEvent, BasePluginDomEvent } from './event/BasePluginEvent';\nexport { BeforeAddUndoSnapshotEvent } from './event/BeforeAddUndoSnapshotEvent';\nexport { BeforeCutCopyEvent } from './event/BeforeCutCopyEvent';\nexport { BeforeDisposeEvent } from './event/BeforeDisposeEvent';\nexport { BeforeKeyboardEditingEvent } from './event/BeforeKeyboardEditingEvent';\nexport { BeforePasteEvent, MergePastedContentFunc } from './event/BeforePasteEvent';\nexport { BeforeSetContentEvent } from './event/BeforeSetContentEvent';\nexport { ContentChangedEvent, ChangedEntity } from './event/ContentChangedEvent';\nexport { ContextMenuEvent } from './event/ContextMenuEvent';\nexport { RewriteFromModelEvent } from './event/RewriteFromModelEvent';\nexport { EditImageEvent } from './event/EditImageEvent';\nexport { EditorReadyEvent } from './event/EditorReadyEvent';\nexport { EntityOperationEvent, FormattableRoot, Entity } from './event/EntityOperationEvent';\nexport { ExtractContentWithDomEvent } from './event/ExtractContentWithDomEvent';\nexport { EditorInputEvent } from './event/EditorInputEvent';\nexport {\n KeyDownEvent,\n KeyPressEvent,\n KeyUpEvent,\n CompositionEndEvent,\n} from './event/KeyboardEvent';\nexport {\n BeforeLogicalRootChangeEvent,\n LogicalRootChangedEvent,\n} from './event/LogicalRootChangedEvent';\nexport { MouseDownEvent, MouseUpEvent, DoubleClickEvent } from './event/MouseEvent';\nexport { PluginEvent } from './event/PluginEvent';\nexport {\n PluginEventData,\n PluginEventFromTypeGeneric,\n PluginEventFromType,\n PluginEventDataGeneric,\n} from './event/PluginEventData';\nexport { PluginEventType } from './event/PluginEventType';\nexport { ScrollEvent } from './event/ScrollEvent';\nexport { SelectionChangedEvent } from './event/SelectionChangedEvent';\nexport { EnterShadowEditEvent, LeaveShadowEditEvent } from './event/ShadowEditEvent';\nexport { ZoomChangedEvent } from './event/ZoomChangedEvent';\nexport { PointerDownEvent, PointerUpEvent } from './event/PointerEvent';\nexport { FindResultChangedEvent } from './event/FindResultChangedEvent';\n"]}
|
package/package.json
CHANGED