roosterjs-content-model-types 9.47.0 → 9.48.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/contentModel/format/ContentModelFormatMap.d.ts +6 -0
- package/lib/contentModel/format/ContentModelFormatMap.js.map +1 -1
- package/lib/contentModel/format/metadata/TableMetadataFormat.d.ts +11 -0
- package/lib/contentModel/format/metadata/TableMetadataFormat.js.map +1 -1
- package/lib/contentModel/format/metadata/TableSpecialCellMetadataFormat.d.ts +37 -0
- package/lib/contentModel/format/metadata/TableSpecialCellMetadataFormat.js +3 -0
- package/lib/contentModel/format/metadata/TableSpecialCellMetadataFormat.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js.map +1 -1
- package/lib-amd/contentModel/format/ContentModelFormatMap.d.ts +6 -0
- package/lib-amd/contentModel/format/ContentModelFormatMap.js.map +1 -1
- package/lib-amd/contentModel/format/metadata/TableMetadataFormat.d.ts +11 -0
- package/lib-amd/contentModel/format/metadata/TableMetadataFormat.js.map +1 -1
- package/lib-amd/contentModel/format/metadata/TableSpecialCellMetadataFormat.d.ts +37 -0
- package/lib-amd/contentModel/format/metadata/TableSpecialCellMetadataFormat.js +5 -0
- package/lib-amd/contentModel/format/metadata/TableSpecialCellMetadataFormat.js.map +1 -0
- package/lib-amd/index.d.ts +1 -0
- package/lib-amd/index.js.map +1 -1
- package/lib-mjs/contentModel/format/ContentModelFormatMap.d.ts +6 -0
- package/lib-mjs/contentModel/format/ContentModelFormatMap.js.map +1 -1
- package/lib-mjs/contentModel/format/metadata/TableMetadataFormat.d.ts +11 -0
- package/lib-mjs/contentModel/format/metadata/TableMetadataFormat.js.map +1 -1
- package/lib-mjs/contentModel/format/metadata/TableSpecialCellMetadataFormat.d.ts +37 -0
- package/lib-mjs/contentModel/format/metadata/TableSpecialCellMetadataFormat.js +2 -0
- package/lib-mjs/contentModel/format/metadata/TableSpecialCellMetadataFormat.js.map +1 -0
- package/lib-mjs/index.d.ts +1 -0
- package/lib-mjs/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,12 @@ export interface ContentModelFormatMap {
|
|
|
24
24
|
* Format type for style based segment format
|
|
25
25
|
*/
|
|
26
26
|
styleBasedSegment: ContentModelSegmentFormat;
|
|
27
|
+
/**
|
|
28
|
+
* Format type for superscript/subscript format.
|
|
29
|
+
* Keep this separated from other element based segment format because it has special handling when applying format to a hyperlink.
|
|
30
|
+
* We need to make sure it is applied after all other formats are applied, so it can override other formats if needed.
|
|
31
|
+
*/
|
|
32
|
+
superOrSubScript: ContentModelSegmentFormat;
|
|
27
33
|
/**
|
|
28
34
|
* Format type for element based segment format
|
|
29
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelFormatMap.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/ContentModelFormatMap.ts"],"names":[],"mappings":"","sourcesContent":["import type { SizeFormat } from './formatParts/SizeFormat';\nimport type { ContentModelBlockFormat } from './ContentModelBlockFormat';\nimport type { ContentModelDividerFormat } from './ContentModelDividerFormat';\nimport type { ContentModelEntityFormat } from './ContentModelEntityFormat';\nimport type { ContentModelFormatContainerFormat } from './ContentModelFormatContainerFormat';\nimport type { ContentModelHyperLinkFormat } from './ContentModelHyperLinkFormat';\nimport type { ContentModelImageFormat } from './ContentModelImageFormat';\nimport type { ContentModelListItemFormat } from './ContentModelListItemFormat';\nimport type { ContentModelListItemLevelFormat } from './ContentModelListItemLevelFormat';\nimport type { ContentModelSegmentFormat } from './ContentModelSegmentFormat';\nimport type { ContentModelTableCellFormat } from './ContentModelTableCellFormat';\nimport type { ContentModelTableFormat } from './ContentModelTableFormat';\nimport type { DatasetFormat } from './metadata/DatasetFormat';\nimport type { FontFamilyFormat } from './formatParts/FontFamilyFormat';\n\n/**\n * A map from Content Model format name to its combined format type\n */\nexport interface ContentModelFormatMap {\n /**\n * Format type for block\n */\n block: ContentModelBlockFormat;\n\n /**\n * Format type for style based segment format\n */\n styleBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for element based segment format\n */\n elementBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment\n */\n segment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on block.\n * Block can have format that can impact segment, such as font and color.\n * But some segment format should not be read from block, like background color.\n */\n segmentOnBlock: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on table cell.\n * This is very similar with segmentOnBlock, without 'textColor'. Because we will keep\n * text color style on table cell to indicate auto calculated segment color when set table cell shade.\n * Segments can set its own text color to override this value\n */\n segmentOnTableCell: ContentModelSegmentFormat;\n\n /**\n * Format type for table, except alignment related styles\n */\n table: ContentModelTableFormat;\n\n /**\n * Format type for tableCell\n */\n tableCell: ContentModelTableCellFormat;\n\n /**\n * Format type for tableRow\n */\n tableRow: ContentModelBlockFormat;\n\n /**\n * Format type for tableColumn\n */\n tableColumn: SizeFormat;\n\n /**\n * Format type for table border\n */\n tableBorder: ContentModelTableFormat;\n\n /**\n * Format type for tableCell border\n */\n tableCellBorder: ContentModelTableCellFormat;\n\n /**\n * Format type for li element\n */\n listItemElement: ContentModelListItemFormat;\n\n /**\n * Format type for listItem\n */\n listItemThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevel: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevelThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for image\n */\n image: ContentModelImageFormat;\n\n /**\n * Format type for link\n */\n link: ContentModelHyperLinkFormat;\n\n /**\n * Format type for segment inside link\n */\n segmentUnderLink: ContentModelHyperLinkFormat;\n\n /**\n * Format type for code\n */\n code: FontFamilyFormat;\n\n /**\n * Format type for dataset\n */\n dataset: DatasetFormat;\n\n /**\n * Format type for divider\n */\n divider: ContentModelDividerFormat;\n\n /**\n * Format type for format container\n */\n container: ContentModelFormatContainerFormat;\n\n /**\n * Format type for entity\n */\n entity: ContentModelEntityFormat;\n\n /**\n * Format type for general model\n */\n general: ContentModelSegmentFormat;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelFormatMap.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/ContentModelFormatMap.ts"],"names":[],"mappings":"","sourcesContent":["import type { SizeFormat } from './formatParts/SizeFormat';\nimport type { ContentModelBlockFormat } from './ContentModelBlockFormat';\nimport type { ContentModelDividerFormat } from './ContentModelDividerFormat';\nimport type { ContentModelEntityFormat } from './ContentModelEntityFormat';\nimport type { ContentModelFormatContainerFormat } from './ContentModelFormatContainerFormat';\nimport type { ContentModelHyperLinkFormat } from './ContentModelHyperLinkFormat';\nimport type { ContentModelImageFormat } from './ContentModelImageFormat';\nimport type { ContentModelListItemFormat } from './ContentModelListItemFormat';\nimport type { ContentModelListItemLevelFormat } from './ContentModelListItemLevelFormat';\nimport type { ContentModelSegmentFormat } from './ContentModelSegmentFormat';\nimport type { ContentModelTableCellFormat } from './ContentModelTableCellFormat';\nimport type { ContentModelTableFormat } from './ContentModelTableFormat';\nimport type { DatasetFormat } from './metadata/DatasetFormat';\nimport type { FontFamilyFormat } from './formatParts/FontFamilyFormat';\n\n/**\n * A map from Content Model format name to its combined format type\n */\nexport interface ContentModelFormatMap {\n /**\n * Format type for block\n */\n block: ContentModelBlockFormat;\n\n /**\n * Format type for style based segment format\n */\n styleBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for superscript/subscript format.\n * Keep this separated from other element based segment format because it has special handling when applying format to a hyperlink.\n * We need to make sure it is applied after all other formats are applied, so it can override other formats if needed.\n */\n superOrSubScript: ContentModelSegmentFormat;\n\n /**\n * Format type for element based segment format\n */\n elementBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment\n */\n segment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on block.\n * Block can have format that can impact segment, such as font and color.\n * But some segment format should not be read from block, like background color.\n */\n segmentOnBlock: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on table cell.\n * This is very similar with segmentOnBlock, without 'textColor'. Because we will keep\n * text color style on table cell to indicate auto calculated segment color when set table cell shade.\n * Segments can set its own text color to override this value\n */\n segmentOnTableCell: ContentModelSegmentFormat;\n\n /**\n * Format type for table, except alignment related styles\n */\n table: ContentModelTableFormat;\n\n /**\n * Format type for tableCell\n */\n tableCell: ContentModelTableCellFormat;\n\n /**\n * Format type for tableRow\n */\n tableRow: ContentModelBlockFormat;\n\n /**\n * Format type for tableColumn\n */\n tableColumn: SizeFormat;\n\n /**\n * Format type for table border\n */\n tableBorder: ContentModelTableFormat;\n\n /**\n * Format type for tableCell border\n */\n tableCellBorder: ContentModelTableCellFormat;\n\n /**\n * Format type for li element\n */\n listItemElement: ContentModelListItemFormat;\n\n /**\n * Format type for listItem\n */\n listItemThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevel: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevelThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for image\n */\n image: ContentModelImageFormat;\n\n /**\n * Format type for link\n */\n link: ContentModelHyperLinkFormat;\n\n /**\n * Format type for segment inside link\n */\n segmentUnderLink: ContentModelHyperLinkFormat;\n\n /**\n * Format type for code\n */\n code: FontFamilyFormat;\n\n /**\n * Format type for dataset\n */\n dataset: DatasetFormat;\n\n /**\n * Format type for divider\n */\n divider: ContentModelDividerFormat;\n\n /**\n * Format type for format container\n */\n container: ContentModelFormatContainerFormat;\n\n /**\n * Format type for entity\n */\n entity: ContentModelEntityFormat;\n\n /**\n * Format type for general model\n */\n general: ContentModelSegmentFormat;\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TableSpecialCellMetadataFormat } from './TableSpecialCellMetadataFormat';
|
|
1
2
|
/**
|
|
2
3
|
* Format of table that stored as metadata
|
|
3
4
|
*/
|
|
@@ -22,10 +23,20 @@ export declare type TableMetadataFormat = {
|
|
|
22
23
|
* Header row background color for even cells
|
|
23
24
|
*/
|
|
24
25
|
headerRowColor?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Custom styles for the header row cells (font weight, font style, border colors, textAlign, backgroundColor).
|
|
28
|
+
* Only applied when hasHeaderRow is true.
|
|
29
|
+
*/
|
|
30
|
+
headerRowCustomStyles?: TableSpecialCellMetadataFormat | null;
|
|
25
31
|
/**
|
|
26
32
|
* Set first column
|
|
27
33
|
*/
|
|
28
34
|
hasFirstColumn?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom styles for the first column cells (font weight, font style, border colors, textAlign, backgroundColor).
|
|
37
|
+
* Only applied when hasFirstColumn is true.
|
|
38
|
+
*/
|
|
39
|
+
firstColumnCustomStyles?: TableSpecialCellMetadataFormat | null;
|
|
29
40
|
/**
|
|
30
41
|
* Set banded columns
|
|
31
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Format of table that stored as metadata\n */\nexport type TableMetadataFormat = {\n /**\n * Top border color for each row\n */\n topBorderColor?: string | null;\n\n /**\n * Bottom border color for each row\n */\n bottomBorderColor?: string | null;\n\n /**\n * Vertical border color for each row\n */\n verticalBorderColor?: string | null;\n\n /**\n * Set header row\n */\n hasHeaderRow?: boolean;\n\n /**\n * Header row background color for even cells\n */\n headerRowColor?: string | null;\n\n /**\n * Set first column\n */\n hasFirstColumn?: boolean;\n\n /**\n * Set banded columns\n */\n hasBandedColumns?: boolean;\n\n /**\n * Set banded rows\n */\n hasBandedRows?: boolean;\n\n /**\n * Background color for even row or even columns\n */\n bgColorEven?: string | null;\n\n /**\n * Background color for odd row or odd columns\n */\n bgColorOdd?: string | null;\n\n /**\n * Table Borders Type. Use value of constant TableBorderFormat as value\n */\n tableBorderFormat?: number;\n\n /**\n * Vertical alignment for each row\n */\n verticalAlign?: 'top' | 'middle' | 'bottom' | null;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"TableMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["import type { TableSpecialCellMetadataFormat } from './TableSpecialCellMetadataFormat';\n\n/**\n * Format of table that stored as metadata\n */\nexport type TableMetadataFormat = {\n /**\n * Top border color for each row\n */\n topBorderColor?: string | null;\n\n /**\n * Bottom border color for each row\n */\n bottomBorderColor?: string | null;\n\n /**\n * Vertical border color for each row\n */\n verticalBorderColor?: string | null;\n\n /**\n * Set header row\n */\n hasHeaderRow?: boolean;\n\n /**\n * Header row background color for even cells\n */\n headerRowColor?: string | null;\n\n /**\n * Custom styles for the header row cells (font weight, font style, border colors, textAlign, backgroundColor).\n * Only applied when hasHeaderRow is true.\n */\n headerRowCustomStyles?: TableSpecialCellMetadataFormat | null;\n\n /**\n * Set first column\n */\n hasFirstColumn?: boolean;\n\n /**\n * Custom styles for the first column cells (font weight, font style, border colors, textAlign, backgroundColor).\n * Only applied when hasFirstColumn is true.\n */\n firstColumnCustomStyles?: TableSpecialCellMetadataFormat | null;\n\n /**\n * Set banded columns\n */\n hasBandedColumns?: boolean;\n\n /**\n * Set banded rows\n */\n hasBandedRows?: boolean;\n\n /**\n * Background color for even row or even columns\n */\n bgColorEven?: string | null;\n\n /**\n * Background color for odd row or odd columns\n */\n bgColorOdd?: string | null;\n\n /**\n * Table Borders Type. Use value of constant TableBorderFormat as value\n */\n tableBorderFormat?: number;\n\n /**\n * Vertical alignment for each row\n */\n verticalAlign?: 'top' | 'middle' | 'bottom' | null;\n};\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customization options for a header row or first column in a table.
|
|
3
|
+
*/
|
|
4
|
+
export declare type TableSpecialCellMetadataFormat = {
|
|
5
|
+
/**
|
|
6
|
+
* Font weight for the cells.
|
|
7
|
+
*/
|
|
8
|
+
fontWeight?: string;
|
|
9
|
+
/**
|
|
10
|
+
* If the font style should be italic.
|
|
11
|
+
*/
|
|
12
|
+
italic?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Top border color for the cells.
|
|
15
|
+
*/
|
|
16
|
+
borderTopColor?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Right border color for the cells.
|
|
19
|
+
*/
|
|
20
|
+
borderRightColor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Bottom border color for the cells.
|
|
23
|
+
*/
|
|
24
|
+
borderBottomColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Left border color for the cells.
|
|
27
|
+
*/
|
|
28
|
+
borderLeftColor?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The alignment of the cell
|
|
31
|
+
*/
|
|
32
|
+
textAlign?: 'start' | 'center' | 'end' | 'justify' | 'initial';
|
|
33
|
+
/**
|
|
34
|
+
* The cell background color
|
|
35
|
+
*/
|
|
36
|
+
backgroundColor?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSpecialCellMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableSpecialCellMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Customization options for a header row or first column in a table.\n */\nexport type TableSpecialCellMetadataFormat = {\n /**\n * Font weight for the cells.\n */\n fontWeight?: string;\n\n /**\n * If the font style should be italic.\n */\n italic?: boolean;\n\n /**\n * Top border color for the cells.\n */\n borderTopColor?: string;\n\n /**\n * Right border color for the cells.\n */\n borderRightColor?: string;\n\n /**\n * Bottom border color for the cells.\n */\n borderBottomColor?: string;\n\n /**\n * Left border color for the cells.\n */\n borderLeftColor?: string;\n\n /**\n * The alignment of the cell\n */\n textAlign?: 'start' | 'center' | 'end' | 'justify' | 'initial';\n\n /**\n * The cell background color\n */\n backgroundColor?: string;\n};\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export { RoleFormat } from './contentModel/format/formatParts/RoleFormat';
|
|
|
55
55
|
export { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';
|
|
56
56
|
export { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';
|
|
57
57
|
export { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';
|
|
58
|
+
export { TableSpecialCellMetadataFormat } from './contentModel/format/metadata/TableSpecialCellMetadataFormat';
|
|
58
59
|
export { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';
|
|
59
60
|
export { ImageResizeMetadataFormat, ImageCropMetadataFormat, ImageMetadataFormat, ImageRotateMetadataFormat, ImageFlipMetadataFormat, } from './contentModel/format/metadata/ImageMetadataFormat';
|
|
60
61
|
export { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';
|
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 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"]}
|
|
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 { TableSpecialCellMetadataFormat } from './contentModel/format/metadata/TableSpecialCellMetadataFormat';\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"]}
|
|
@@ -24,6 +24,12 @@ export interface ContentModelFormatMap {
|
|
|
24
24
|
* Format type for style based segment format
|
|
25
25
|
*/
|
|
26
26
|
styleBasedSegment: ContentModelSegmentFormat;
|
|
27
|
+
/**
|
|
28
|
+
* Format type for superscript/subscript format.
|
|
29
|
+
* Keep this separated from other element based segment format because it has special handling when applying format to a hyperlink.
|
|
30
|
+
* We need to make sure it is applied after all other formats are applied, so it can override other formats if needed.
|
|
31
|
+
*/
|
|
32
|
+
superOrSubScript: ContentModelSegmentFormat;
|
|
27
33
|
/**
|
|
28
34
|
* Format type for element based segment format
|
|
29
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelFormatMap.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/ContentModelFormatMap.ts"],"names":[],"mappings":"","sourcesContent":["import type { SizeFormat } from './formatParts/SizeFormat';\nimport type { ContentModelBlockFormat } from './ContentModelBlockFormat';\nimport type { ContentModelDividerFormat } from './ContentModelDividerFormat';\nimport type { ContentModelEntityFormat } from './ContentModelEntityFormat';\nimport type { ContentModelFormatContainerFormat } from './ContentModelFormatContainerFormat';\nimport type { ContentModelHyperLinkFormat } from './ContentModelHyperLinkFormat';\nimport type { ContentModelImageFormat } from './ContentModelImageFormat';\nimport type { ContentModelListItemFormat } from './ContentModelListItemFormat';\nimport type { ContentModelListItemLevelFormat } from './ContentModelListItemLevelFormat';\nimport type { ContentModelSegmentFormat } from './ContentModelSegmentFormat';\nimport type { ContentModelTableCellFormat } from './ContentModelTableCellFormat';\nimport type { ContentModelTableFormat } from './ContentModelTableFormat';\nimport type { DatasetFormat } from './metadata/DatasetFormat';\nimport type { FontFamilyFormat } from './formatParts/FontFamilyFormat';\n\n/**\n * A map from Content Model format name to its combined format type\n */\nexport interface ContentModelFormatMap {\n /**\n * Format type for block\n */\n block: ContentModelBlockFormat;\n\n /**\n * Format type for style based segment format\n */\n styleBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for element based segment format\n */\n elementBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment\n */\n segment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on block.\n * Block can have format that can impact segment, such as font and color.\n * But some segment format should not be read from block, like background color.\n */\n segmentOnBlock: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on table cell.\n * This is very similar with segmentOnBlock, without 'textColor'. Because we will keep\n * text color style on table cell to indicate auto calculated segment color when set table cell shade.\n * Segments can set its own text color to override this value\n */\n segmentOnTableCell: ContentModelSegmentFormat;\n\n /**\n * Format type for table, except alignment related styles\n */\n table: ContentModelTableFormat;\n\n /**\n * Format type for tableCell\n */\n tableCell: ContentModelTableCellFormat;\n\n /**\n * Format type for tableRow\n */\n tableRow: ContentModelBlockFormat;\n\n /**\n * Format type for tableColumn\n */\n tableColumn: SizeFormat;\n\n /**\n * Format type for table border\n */\n tableBorder: ContentModelTableFormat;\n\n /**\n * Format type for tableCell border\n */\n tableCellBorder: ContentModelTableCellFormat;\n\n /**\n * Format type for li element\n */\n listItemElement: ContentModelListItemFormat;\n\n /**\n * Format type for listItem\n */\n listItemThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevel: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevelThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for image\n */\n image: ContentModelImageFormat;\n\n /**\n * Format type for link\n */\n link: ContentModelHyperLinkFormat;\n\n /**\n * Format type for segment inside link\n */\n segmentUnderLink: ContentModelHyperLinkFormat;\n\n /**\n * Format type for code\n */\n code: FontFamilyFormat;\n\n /**\n * Format type for dataset\n */\n dataset: DatasetFormat;\n\n /**\n * Format type for divider\n */\n divider: ContentModelDividerFormat;\n\n /**\n * Format type for format container\n */\n container: ContentModelFormatContainerFormat;\n\n /**\n * Format type for entity\n */\n entity: ContentModelEntityFormat;\n\n /**\n * Format type for general model\n */\n general: ContentModelSegmentFormat;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelFormatMap.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/ContentModelFormatMap.ts"],"names":[],"mappings":"","sourcesContent":["import type { SizeFormat } from './formatParts/SizeFormat';\nimport type { ContentModelBlockFormat } from './ContentModelBlockFormat';\nimport type { ContentModelDividerFormat } from './ContentModelDividerFormat';\nimport type { ContentModelEntityFormat } from './ContentModelEntityFormat';\nimport type { ContentModelFormatContainerFormat } from './ContentModelFormatContainerFormat';\nimport type { ContentModelHyperLinkFormat } from './ContentModelHyperLinkFormat';\nimport type { ContentModelImageFormat } from './ContentModelImageFormat';\nimport type { ContentModelListItemFormat } from './ContentModelListItemFormat';\nimport type { ContentModelListItemLevelFormat } from './ContentModelListItemLevelFormat';\nimport type { ContentModelSegmentFormat } from './ContentModelSegmentFormat';\nimport type { ContentModelTableCellFormat } from './ContentModelTableCellFormat';\nimport type { ContentModelTableFormat } from './ContentModelTableFormat';\nimport type { DatasetFormat } from './metadata/DatasetFormat';\nimport type { FontFamilyFormat } from './formatParts/FontFamilyFormat';\n\n/**\n * A map from Content Model format name to its combined format type\n */\nexport interface ContentModelFormatMap {\n /**\n * Format type for block\n */\n block: ContentModelBlockFormat;\n\n /**\n * Format type for style based segment format\n */\n styleBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for superscript/subscript format.\n * Keep this separated from other element based segment format because it has special handling when applying format to a hyperlink.\n * We need to make sure it is applied after all other formats are applied, so it can override other formats if needed.\n */\n superOrSubScript: ContentModelSegmentFormat;\n\n /**\n * Format type for element based segment format\n */\n elementBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment\n */\n segment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on block.\n * Block can have format that can impact segment, such as font and color.\n * But some segment format should not be read from block, like background color.\n */\n segmentOnBlock: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on table cell.\n * This is very similar with segmentOnBlock, without 'textColor'. Because we will keep\n * text color style on table cell to indicate auto calculated segment color when set table cell shade.\n * Segments can set its own text color to override this value\n */\n segmentOnTableCell: ContentModelSegmentFormat;\n\n /**\n * Format type for table, except alignment related styles\n */\n table: ContentModelTableFormat;\n\n /**\n * Format type for tableCell\n */\n tableCell: ContentModelTableCellFormat;\n\n /**\n * Format type for tableRow\n */\n tableRow: ContentModelBlockFormat;\n\n /**\n * Format type for tableColumn\n */\n tableColumn: SizeFormat;\n\n /**\n * Format type for table border\n */\n tableBorder: ContentModelTableFormat;\n\n /**\n * Format type for tableCell border\n */\n tableCellBorder: ContentModelTableCellFormat;\n\n /**\n * Format type for li element\n */\n listItemElement: ContentModelListItemFormat;\n\n /**\n * Format type for listItem\n */\n listItemThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevel: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevelThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for image\n */\n image: ContentModelImageFormat;\n\n /**\n * Format type for link\n */\n link: ContentModelHyperLinkFormat;\n\n /**\n * Format type for segment inside link\n */\n segmentUnderLink: ContentModelHyperLinkFormat;\n\n /**\n * Format type for code\n */\n code: FontFamilyFormat;\n\n /**\n * Format type for dataset\n */\n dataset: DatasetFormat;\n\n /**\n * Format type for divider\n */\n divider: ContentModelDividerFormat;\n\n /**\n * Format type for format container\n */\n container: ContentModelFormatContainerFormat;\n\n /**\n * Format type for entity\n */\n entity: ContentModelEntityFormat;\n\n /**\n * Format type for general model\n */\n general: ContentModelSegmentFormat;\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TableSpecialCellMetadataFormat } from './TableSpecialCellMetadataFormat';
|
|
1
2
|
/**
|
|
2
3
|
* Format of table that stored as metadata
|
|
3
4
|
*/
|
|
@@ -22,10 +23,20 @@ export declare type TableMetadataFormat = {
|
|
|
22
23
|
* Header row background color for even cells
|
|
23
24
|
*/
|
|
24
25
|
headerRowColor?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Custom styles for the header row cells (font weight, font style, border colors, textAlign, backgroundColor).
|
|
28
|
+
* Only applied when hasHeaderRow is true.
|
|
29
|
+
*/
|
|
30
|
+
headerRowCustomStyles?: TableSpecialCellMetadataFormat | null;
|
|
25
31
|
/**
|
|
26
32
|
* Set first column
|
|
27
33
|
*/
|
|
28
34
|
hasFirstColumn?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom styles for the first column cells (font weight, font style, border colors, textAlign, backgroundColor).
|
|
37
|
+
* Only applied when hasFirstColumn is true.
|
|
38
|
+
*/
|
|
39
|
+
firstColumnCustomStyles?: TableSpecialCellMetadataFormat | null;
|
|
29
40
|
/**
|
|
30
41
|
* Set banded columns
|
|
31
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Format of table that stored as metadata\n */\nexport type TableMetadataFormat = {\n /**\n * Top border color for each row\n */\n topBorderColor?: string | null;\n\n /**\n * Bottom border color for each row\n */\n bottomBorderColor?: string | null;\n\n /**\n * Vertical border color for each row\n */\n verticalBorderColor?: string | null;\n\n /**\n * Set header row\n */\n hasHeaderRow?: boolean;\n\n /**\n * Header row background color for even cells\n */\n headerRowColor?: string | null;\n\n /**\n * Set first column\n */\n hasFirstColumn?: boolean;\n\n /**\n * Set banded columns\n */\n hasBandedColumns?: boolean;\n\n /**\n * Set banded rows\n */\n hasBandedRows?: boolean;\n\n /**\n * Background color for even row or even columns\n */\n bgColorEven?: string | null;\n\n /**\n * Background color for odd row or odd columns\n */\n bgColorOdd?: string | null;\n\n /**\n * Table Borders Type. Use value of constant TableBorderFormat as value\n */\n tableBorderFormat?: number;\n\n /**\n * Vertical alignment for each row\n */\n verticalAlign?: 'top' | 'middle' | 'bottom' | null;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"TableMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["import type { TableSpecialCellMetadataFormat } from './TableSpecialCellMetadataFormat';\n\n/**\n * Format of table that stored as metadata\n */\nexport type TableMetadataFormat = {\n /**\n * Top border color for each row\n */\n topBorderColor?: string | null;\n\n /**\n * Bottom border color for each row\n */\n bottomBorderColor?: string | null;\n\n /**\n * Vertical border color for each row\n */\n verticalBorderColor?: string | null;\n\n /**\n * Set header row\n */\n hasHeaderRow?: boolean;\n\n /**\n * Header row background color for even cells\n */\n headerRowColor?: string | null;\n\n /**\n * Custom styles for the header row cells (font weight, font style, border colors, textAlign, backgroundColor).\n * Only applied when hasHeaderRow is true.\n */\n headerRowCustomStyles?: TableSpecialCellMetadataFormat | null;\n\n /**\n * Set first column\n */\n hasFirstColumn?: boolean;\n\n /**\n * Custom styles for the first column cells (font weight, font style, border colors, textAlign, backgroundColor).\n * Only applied when hasFirstColumn is true.\n */\n firstColumnCustomStyles?: TableSpecialCellMetadataFormat | null;\n\n /**\n * Set banded columns\n */\n hasBandedColumns?: boolean;\n\n /**\n * Set banded rows\n */\n hasBandedRows?: boolean;\n\n /**\n * Background color for even row or even columns\n */\n bgColorEven?: string | null;\n\n /**\n * Background color for odd row or odd columns\n */\n bgColorOdd?: string | null;\n\n /**\n * Table Borders Type. Use value of constant TableBorderFormat as value\n */\n tableBorderFormat?: number;\n\n /**\n * Vertical alignment for each row\n */\n verticalAlign?: 'top' | 'middle' | 'bottom' | null;\n};\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customization options for a header row or first column in a table.
|
|
3
|
+
*/
|
|
4
|
+
export declare type TableSpecialCellMetadataFormat = {
|
|
5
|
+
/**
|
|
6
|
+
* Font weight for the cells.
|
|
7
|
+
*/
|
|
8
|
+
fontWeight?: string;
|
|
9
|
+
/**
|
|
10
|
+
* If the font style should be italic.
|
|
11
|
+
*/
|
|
12
|
+
italic?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Top border color for the cells.
|
|
15
|
+
*/
|
|
16
|
+
borderTopColor?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Right border color for the cells.
|
|
19
|
+
*/
|
|
20
|
+
borderRightColor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Bottom border color for the cells.
|
|
23
|
+
*/
|
|
24
|
+
borderBottomColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Left border color for the cells.
|
|
27
|
+
*/
|
|
28
|
+
borderLeftColor?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The alignment of the cell
|
|
31
|
+
*/
|
|
32
|
+
textAlign?: 'start' | 'center' | 'end' | 'justify' | 'initial';
|
|
33
|
+
/**
|
|
34
|
+
* The cell background color
|
|
35
|
+
*/
|
|
36
|
+
backgroundColor?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSpecialCellMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableSpecialCellMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Customization options for a header row or first column in a table.\n */\nexport type TableSpecialCellMetadataFormat = {\n /**\n * Font weight for the cells.\n */\n fontWeight?: string;\n\n /**\n * If the font style should be italic.\n */\n italic?: boolean;\n\n /**\n * Top border color for the cells.\n */\n borderTopColor?: string;\n\n /**\n * Right border color for the cells.\n */\n borderRightColor?: string;\n\n /**\n * Bottom border color for the cells.\n */\n borderBottomColor?: string;\n\n /**\n * Left border color for the cells.\n */\n borderLeftColor?: string;\n\n /**\n * The alignment of the cell\n */\n textAlign?: 'start' | 'center' | 'end' | 'justify' | 'initial';\n\n /**\n * The cell background color\n */\n backgroundColor?: string;\n};\n"]}
|
package/lib-amd/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export { RoleFormat } from './contentModel/format/formatParts/RoleFormat';
|
|
|
55
55
|
export { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';
|
|
56
56
|
export { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';
|
|
57
57
|
export { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';
|
|
58
|
+
export { TableSpecialCellMetadataFormat } from './contentModel/format/metadata/TableSpecialCellMetadataFormat';
|
|
58
59
|
export { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';
|
|
59
60
|
export { ImageResizeMetadataFormat, ImageCropMetadataFormat, ImageMetadataFormat, ImageRotateMetadataFormat, ImageFlipMetadataFormat, } from './contentModel/format/metadata/ImageMetadataFormat';
|
|
60
61
|
export { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';
|
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 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"]}
|
|
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 { TableSpecialCellMetadataFormat } from './contentModel/format/metadata/TableSpecialCellMetadataFormat';\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"]}
|
|
@@ -24,6 +24,12 @@ export interface ContentModelFormatMap {
|
|
|
24
24
|
* Format type for style based segment format
|
|
25
25
|
*/
|
|
26
26
|
styleBasedSegment: ContentModelSegmentFormat;
|
|
27
|
+
/**
|
|
28
|
+
* Format type for superscript/subscript format.
|
|
29
|
+
* Keep this separated from other element based segment format because it has special handling when applying format to a hyperlink.
|
|
30
|
+
* We need to make sure it is applied after all other formats are applied, so it can override other formats if needed.
|
|
31
|
+
*/
|
|
32
|
+
superOrSubScript: ContentModelSegmentFormat;
|
|
27
33
|
/**
|
|
28
34
|
* Format type for element based segment format
|
|
29
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentModelFormatMap.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/ContentModelFormatMap.ts"],"names":[],"mappings":"","sourcesContent":["import type { SizeFormat } from './formatParts/SizeFormat';\nimport type { ContentModelBlockFormat } from './ContentModelBlockFormat';\nimport type { ContentModelDividerFormat } from './ContentModelDividerFormat';\nimport type { ContentModelEntityFormat } from './ContentModelEntityFormat';\nimport type { ContentModelFormatContainerFormat } from './ContentModelFormatContainerFormat';\nimport type { ContentModelHyperLinkFormat } from './ContentModelHyperLinkFormat';\nimport type { ContentModelImageFormat } from './ContentModelImageFormat';\nimport type { ContentModelListItemFormat } from './ContentModelListItemFormat';\nimport type { ContentModelListItemLevelFormat } from './ContentModelListItemLevelFormat';\nimport type { ContentModelSegmentFormat } from './ContentModelSegmentFormat';\nimport type { ContentModelTableCellFormat } from './ContentModelTableCellFormat';\nimport type { ContentModelTableFormat } from './ContentModelTableFormat';\nimport type { DatasetFormat } from './metadata/DatasetFormat';\nimport type { FontFamilyFormat } from './formatParts/FontFamilyFormat';\n\n/**\n * A map from Content Model format name to its combined format type\n */\nexport interface ContentModelFormatMap {\n /**\n * Format type for block\n */\n block: ContentModelBlockFormat;\n\n /**\n * Format type for style based segment format\n */\n styleBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for element based segment format\n */\n elementBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment\n */\n segment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on block.\n * Block can have format that can impact segment, such as font and color.\n * But some segment format should not be read from block, like background color.\n */\n segmentOnBlock: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on table cell.\n * This is very similar with segmentOnBlock, without 'textColor'. Because we will keep\n * text color style on table cell to indicate auto calculated segment color when set table cell shade.\n * Segments can set its own text color to override this value\n */\n segmentOnTableCell: ContentModelSegmentFormat;\n\n /**\n * Format type for table, except alignment related styles\n */\n table: ContentModelTableFormat;\n\n /**\n * Format type for tableCell\n */\n tableCell: ContentModelTableCellFormat;\n\n /**\n * Format type for tableRow\n */\n tableRow: ContentModelBlockFormat;\n\n /**\n * Format type for tableColumn\n */\n tableColumn: SizeFormat;\n\n /**\n * Format type for table border\n */\n tableBorder: ContentModelTableFormat;\n\n /**\n * Format type for tableCell border\n */\n tableCellBorder: ContentModelTableCellFormat;\n\n /**\n * Format type for li element\n */\n listItemElement: ContentModelListItemFormat;\n\n /**\n * Format type for listItem\n */\n listItemThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevel: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevelThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for image\n */\n image: ContentModelImageFormat;\n\n /**\n * Format type for link\n */\n link: ContentModelHyperLinkFormat;\n\n /**\n * Format type for segment inside link\n */\n segmentUnderLink: ContentModelHyperLinkFormat;\n\n /**\n * Format type for code\n */\n code: FontFamilyFormat;\n\n /**\n * Format type for dataset\n */\n dataset: DatasetFormat;\n\n /**\n * Format type for divider\n */\n divider: ContentModelDividerFormat;\n\n /**\n * Format type for format container\n */\n container: ContentModelFormatContainerFormat;\n\n /**\n * Format type for entity\n */\n entity: ContentModelEntityFormat;\n\n /**\n * Format type for general model\n */\n general: ContentModelSegmentFormat;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentModelFormatMap.js","sourceRoot":"","sources":["../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/ContentModelFormatMap.ts"],"names":[],"mappings":"","sourcesContent":["import type { SizeFormat } from './formatParts/SizeFormat';\nimport type { ContentModelBlockFormat } from './ContentModelBlockFormat';\nimport type { ContentModelDividerFormat } from './ContentModelDividerFormat';\nimport type { ContentModelEntityFormat } from './ContentModelEntityFormat';\nimport type { ContentModelFormatContainerFormat } from './ContentModelFormatContainerFormat';\nimport type { ContentModelHyperLinkFormat } from './ContentModelHyperLinkFormat';\nimport type { ContentModelImageFormat } from './ContentModelImageFormat';\nimport type { ContentModelListItemFormat } from './ContentModelListItemFormat';\nimport type { ContentModelListItemLevelFormat } from './ContentModelListItemLevelFormat';\nimport type { ContentModelSegmentFormat } from './ContentModelSegmentFormat';\nimport type { ContentModelTableCellFormat } from './ContentModelTableCellFormat';\nimport type { ContentModelTableFormat } from './ContentModelTableFormat';\nimport type { DatasetFormat } from './metadata/DatasetFormat';\nimport type { FontFamilyFormat } from './formatParts/FontFamilyFormat';\n\n/**\n * A map from Content Model format name to its combined format type\n */\nexport interface ContentModelFormatMap {\n /**\n * Format type for block\n */\n block: ContentModelBlockFormat;\n\n /**\n * Format type for style based segment format\n */\n styleBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for superscript/subscript format.\n * Keep this separated from other element based segment format because it has special handling when applying format to a hyperlink.\n * We need to make sure it is applied after all other formats are applied, so it can override other formats if needed.\n */\n superOrSubScript: ContentModelSegmentFormat;\n\n /**\n * Format type for element based segment format\n */\n elementBasedSegment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment\n */\n segment: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on block.\n * Block can have format that can impact segment, such as font and color.\n * But some segment format should not be read from block, like background color.\n */\n segmentOnBlock: ContentModelSegmentFormat;\n\n /**\n * Format type for segment on table cell.\n * This is very similar with segmentOnBlock, without 'textColor'. Because we will keep\n * text color style on table cell to indicate auto calculated segment color when set table cell shade.\n * Segments can set its own text color to override this value\n */\n segmentOnTableCell: ContentModelSegmentFormat;\n\n /**\n * Format type for table, except alignment related styles\n */\n table: ContentModelTableFormat;\n\n /**\n * Format type for tableCell\n */\n tableCell: ContentModelTableCellFormat;\n\n /**\n * Format type for tableRow\n */\n tableRow: ContentModelBlockFormat;\n\n /**\n * Format type for tableColumn\n */\n tableColumn: SizeFormat;\n\n /**\n * Format type for table border\n */\n tableBorder: ContentModelTableFormat;\n\n /**\n * Format type for tableCell border\n */\n tableCellBorder: ContentModelTableCellFormat;\n\n /**\n * Format type for li element\n */\n listItemElement: ContentModelListItemFormat;\n\n /**\n * Format type for listItem\n */\n listItemThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevel: ContentModelListItemLevelFormat;\n\n /**\n * Format type for listLevel\n */\n listLevelThread: ContentModelListItemLevelFormat;\n\n /**\n * Format type for image\n */\n image: ContentModelImageFormat;\n\n /**\n * Format type for link\n */\n link: ContentModelHyperLinkFormat;\n\n /**\n * Format type for segment inside link\n */\n segmentUnderLink: ContentModelHyperLinkFormat;\n\n /**\n * Format type for code\n */\n code: FontFamilyFormat;\n\n /**\n * Format type for dataset\n */\n dataset: DatasetFormat;\n\n /**\n * Format type for divider\n */\n divider: ContentModelDividerFormat;\n\n /**\n * Format type for format container\n */\n container: ContentModelFormatContainerFormat;\n\n /**\n * Format type for entity\n */\n entity: ContentModelEntityFormat;\n\n /**\n * Format type for general model\n */\n general: ContentModelSegmentFormat;\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TableSpecialCellMetadataFormat } from './TableSpecialCellMetadataFormat';
|
|
1
2
|
/**
|
|
2
3
|
* Format of table that stored as metadata
|
|
3
4
|
*/
|
|
@@ -22,10 +23,20 @@ export declare type TableMetadataFormat = {
|
|
|
22
23
|
* Header row background color for even cells
|
|
23
24
|
*/
|
|
24
25
|
headerRowColor?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Custom styles for the header row cells (font weight, font style, border colors, textAlign, backgroundColor).
|
|
28
|
+
* Only applied when hasHeaderRow is true.
|
|
29
|
+
*/
|
|
30
|
+
headerRowCustomStyles?: TableSpecialCellMetadataFormat | null;
|
|
25
31
|
/**
|
|
26
32
|
* Set first column
|
|
27
33
|
*/
|
|
28
34
|
hasFirstColumn?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom styles for the first column cells (font weight, font style, border colors, textAlign, backgroundColor).
|
|
37
|
+
* Only applied when hasFirstColumn is true.
|
|
38
|
+
*/
|
|
39
|
+
firstColumnCustomStyles?: TableSpecialCellMetadataFormat | null;
|
|
29
40
|
/**
|
|
30
41
|
* Set banded columns
|
|
31
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Format of table that stored as metadata\n */\nexport type TableMetadataFormat = {\n /**\n * Top border color for each row\n */\n topBorderColor?: string | null;\n\n /**\n * Bottom border color for each row\n */\n bottomBorderColor?: string | null;\n\n /**\n * Vertical border color for each row\n */\n verticalBorderColor?: string | null;\n\n /**\n * Set header row\n */\n hasHeaderRow?: boolean;\n\n /**\n * Header row background color for even cells\n */\n headerRowColor?: string | null;\n\n /**\n * Set first column\n */\n hasFirstColumn?: boolean;\n\n /**\n * Set banded columns\n */\n hasBandedColumns?: boolean;\n\n /**\n * Set banded rows\n */\n hasBandedRows?: boolean;\n\n /**\n * Background color for even row or even columns\n */\n bgColorEven?: string | null;\n\n /**\n * Background color for odd row or odd columns\n */\n bgColorOdd?: string | null;\n\n /**\n * Table Borders Type. Use value of constant TableBorderFormat as value\n */\n tableBorderFormat?: number;\n\n /**\n * Vertical alignment for each row\n */\n verticalAlign?: 'top' | 'middle' | 'bottom' | null;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"TableMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["import type { TableSpecialCellMetadataFormat } from './TableSpecialCellMetadataFormat';\n\n/**\n * Format of table that stored as metadata\n */\nexport type TableMetadataFormat = {\n /**\n * Top border color for each row\n */\n topBorderColor?: string | null;\n\n /**\n * Bottom border color for each row\n */\n bottomBorderColor?: string | null;\n\n /**\n * Vertical border color for each row\n */\n verticalBorderColor?: string | null;\n\n /**\n * Set header row\n */\n hasHeaderRow?: boolean;\n\n /**\n * Header row background color for even cells\n */\n headerRowColor?: string | null;\n\n /**\n * Custom styles for the header row cells (font weight, font style, border colors, textAlign, backgroundColor).\n * Only applied when hasHeaderRow is true.\n */\n headerRowCustomStyles?: TableSpecialCellMetadataFormat | null;\n\n /**\n * Set first column\n */\n hasFirstColumn?: boolean;\n\n /**\n * Custom styles for the first column cells (font weight, font style, border colors, textAlign, backgroundColor).\n * Only applied when hasFirstColumn is true.\n */\n firstColumnCustomStyles?: TableSpecialCellMetadataFormat | null;\n\n /**\n * Set banded columns\n */\n hasBandedColumns?: boolean;\n\n /**\n * Set banded rows\n */\n hasBandedRows?: boolean;\n\n /**\n * Background color for even row or even columns\n */\n bgColorEven?: string | null;\n\n /**\n * Background color for odd row or odd columns\n */\n bgColorOdd?: string | null;\n\n /**\n * Table Borders Type. Use value of constant TableBorderFormat as value\n */\n tableBorderFormat?: number;\n\n /**\n * Vertical alignment for each row\n */\n verticalAlign?: 'top' | 'middle' | 'bottom' | null;\n};\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customization options for a header row or first column in a table.
|
|
3
|
+
*/
|
|
4
|
+
export declare type TableSpecialCellMetadataFormat = {
|
|
5
|
+
/**
|
|
6
|
+
* Font weight for the cells.
|
|
7
|
+
*/
|
|
8
|
+
fontWeight?: string;
|
|
9
|
+
/**
|
|
10
|
+
* If the font style should be italic.
|
|
11
|
+
*/
|
|
12
|
+
italic?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Top border color for the cells.
|
|
15
|
+
*/
|
|
16
|
+
borderTopColor?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Right border color for the cells.
|
|
19
|
+
*/
|
|
20
|
+
borderRightColor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Bottom border color for the cells.
|
|
23
|
+
*/
|
|
24
|
+
borderBottomColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Left border color for the cells.
|
|
27
|
+
*/
|
|
28
|
+
borderLeftColor?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The alignment of the cell
|
|
31
|
+
*/
|
|
32
|
+
textAlign?: 'start' | 'center' | 'end' | 'justify' | 'initial';
|
|
33
|
+
/**
|
|
34
|
+
* The cell background color
|
|
35
|
+
*/
|
|
36
|
+
backgroundColor?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSpecialCellMetadataFormat.js","sourceRoot":"","sources":["../../../../../../packages/roosterjs-content-model-types/lib/contentModel/format/metadata/TableSpecialCellMetadataFormat.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Customization options for a header row or first column in a table.\n */\nexport type TableSpecialCellMetadataFormat = {\n /**\n * Font weight for the cells.\n */\n fontWeight?: string;\n\n /**\n * If the font style should be italic.\n */\n italic?: boolean;\n\n /**\n * Top border color for the cells.\n */\n borderTopColor?: string;\n\n /**\n * Right border color for the cells.\n */\n borderRightColor?: string;\n\n /**\n * Bottom border color for the cells.\n */\n borderBottomColor?: string;\n\n /**\n * Left border color for the cells.\n */\n borderLeftColor?: string;\n\n /**\n * The alignment of the cell\n */\n textAlign?: 'start' | 'center' | 'end' | 'justify' | 'initial';\n\n /**\n * The cell background color\n */\n backgroundColor?: string;\n};\n"]}
|
package/lib-mjs/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export { RoleFormat } from './contentModel/format/formatParts/RoleFormat';
|
|
|
55
55
|
export { LegacyTableBorderFormat } from './contentModel/format/formatParts/LegacyTableBorderFormat';
|
|
56
56
|
export { DatasetFormat, ReadonlyDatasetFormat } from './contentModel/format/metadata/DatasetFormat';
|
|
57
57
|
export { TableMetadataFormat } from './contentModel/format/metadata/TableMetadataFormat';
|
|
58
|
+
export { TableSpecialCellMetadataFormat } from './contentModel/format/metadata/TableSpecialCellMetadataFormat';
|
|
58
59
|
export { ListMetadataFormat } from './contentModel/format/metadata/ListMetadataFormat';
|
|
59
60
|
export { ImageResizeMetadataFormat, ImageCropMetadataFormat, ImageMetadataFormat, ImageRotateMetadataFormat, ImageFlipMetadataFormat, } from './contentModel/format/metadata/ImageMetadataFormat';
|
|
60
61
|
export { TableCellMetadataFormat } from './contentModel/format/metadata/TableCellMetadataFormat';
|
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 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"]}
|
|
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 { TableSpecialCellMetadataFormat } from './contentModel/format/metadata/TableSpecialCellMetadataFormat';\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