roosterjs-content-model-types 9.50.1 → 9.51.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.
@@ -21,6 +21,11 @@ export interface DomToModelListFormat {
21
21
  * Current list type stack
22
22
  */
23
23
  levels: ContentModelListLevel[];
24
+ /**
25
+ * This is used for handling an abnormal case where list items are not inside a ul or ol tag
26
+ * It is not common and against the HTML specification, but we need to handle it for robustness
27
+ */
28
+ potentialListType?: 'OL' | 'UL';
24
29
  }
25
30
  /**
26
31
  * Represents format info used by DOM to Content Model conversion
@@ -1 +1 @@
1
- {"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelCode } from '../contentModel/decorator/ContentModelCode';\nimport type { ContentModelLink } from '../contentModel/decorator/ContentModelLink';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelParagraphDecorator } from '../contentModel/decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
1
+ {"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelCode } from '../contentModel/decorator/ContentModelCode';\nimport type { ContentModelLink } from '../contentModel/decorator/ContentModelLink';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelParagraphDecorator } from '../contentModel/decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n\n /**\n * This is used for handling an abnormal case where list items are not inside a ul or ol tag\n * It is not common and against the HTML specification, but we need to handle it for robustness\n */\n potentialListType?: 'OL' | 'UL';\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
@@ -41,6 +41,7 @@ export interface EditorContext {
41
41
  */
42
42
  allowCacheElement?: boolean;
43
43
  /**
44
+ * @deprecated This is now always be treated as true
44
45
  * Whether to allow caching list item elements separately.
45
46
  */
46
47
  allowCacheListItem?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DarkColorHandler } from './DarkColorHandler';\nimport type { DomIndexer } from './DomIndexer';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\nimport type { PendingFormat } from '../pluginState/FormatPluginState';\nimport type { ParagraphMap } from '../parameter/ParagraphMap';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Pending format if any\n */\n pendingFormat?: PendingFormat;\n\n /**\n * Color manager, to help manager color in dark mode\n */\n darkColorHandler?: DarkColorHandler;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n\n /**\n * Whether to allow caching list item elements separately.\n */\n allowCacheListItem?: boolean;\n\n /**\n * @optional Indexer for content model, to help build backward relationship from DOM node to Content Model\n */\n domIndexer?: DomIndexer;\n\n /**\n * Root Font size in Px.\n */\n rootFontSize?: number;\n\n /**\n * Enabled experimental features\n */\n experimentalFeatures?: ReadonlyArray<string>;\n\n /**\n * A helper class that manages a mapping from paragraph marker to paragraph object.\n */\n paragraphMap?: ParagraphMap;\n\n /**\n * When set to true, size of table will be recalculated when converting from DOM to Content Model.\n */\n recalculateTableSize?: boolean | 'all' | 'selected' | 'none';\n\n /**\n * Width of the editor's editable area in pixels, excluding padding.\n * This value is typically used for layout calculations such as constraining pasted image sizes.\n */\n editorViewWidth?: number;\n}\n"]}
1
+ {"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DarkColorHandler } from './DarkColorHandler';\nimport type { DomIndexer } from './DomIndexer';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\nimport type { PendingFormat } from '../pluginState/FormatPluginState';\nimport type { ParagraphMap } from '../parameter/ParagraphMap';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Pending format if any\n */\n pendingFormat?: PendingFormat;\n\n /**\n * Color manager, to help manager color in dark mode\n */\n darkColorHandler?: DarkColorHandler;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n\n /**\n * @deprecated This is now always be treated as true\n * Whether to allow caching list item elements separately.\n */\n allowCacheListItem?: boolean;\n\n /**\n * @optional Indexer for content model, to help build backward relationship from DOM node to Content Model\n */\n domIndexer?: DomIndexer;\n\n /**\n * Root Font size in Px.\n */\n rootFontSize?: number;\n\n /**\n * Enabled experimental features\n */\n experimentalFeatures?: ReadonlyArray<string>;\n\n /**\n * A helper class that manages a mapping from paragraph marker to paragraph object.\n */\n paragraphMap?: ParagraphMap;\n\n /**\n * When set to true, size of table will be recalculated when converting from DOM to Content Model.\n */\n recalculateTableSize?: boolean | 'all' | 'selected' | 'none';\n\n /**\n * Width of the editor's editable area in pixels, excluding padding.\n * This value is typically used for layout calculations such as constraining pasted image sizes.\n */\n editorViewWidth?: number;\n}\n"]}
@@ -17,38 +17,41 @@ export declare type GraduatedExperimentalFeature =
17
17
  * Prevent default browser behavior for copy/cut event,
18
18
  * and set the clipboard data with custom implementation.
19
19
  */
20
- | 'CustomCopyCut';
20
+ | 'CustomCopyCut'
21
21
  /**
22
- * Predefined experiment features
23
- * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures
24
- * when create editor
22
+ * @deprecated
23
+ * Export editor content as HTML using HTMLFast option
25
24
  */
26
- export declare type ExperimentalFeature = GraduatedExperimentalFeature
25
+ | 'ExportHTMLFast'
27
26
  /**
28
27
  * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options
29
28
  * Use Content Model handle ENTER key
30
29
  */
31
30
  | 'HandleEnterKey'
32
31
  /**
33
- * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,
34
- * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the
35
- * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures
36
- * the original formatting of the selection marker is kept to match the pending format.
37
- */
38
- | 'KeepSelectionMarkerWhenEnteringTextNode'
39
- /**
40
- * Export editor content as HTML using HTMLFast option
41
- */
42
- | 'ExportHTMLFast'
43
- /**
32
+ * @deprecated
44
33
  * Get cloned root element from an independent HTML document instead of current document.
45
34
  * So any operation to the cloned root won't trigger network request for resources like images
46
35
  */
47
36
  | 'CloneIndependentRoot'
48
37
  /**
38
+ * @deprecated
49
39
  * Allow caching list item elements.
50
40
  */
51
- | 'CacheList'
41
+ | 'CacheList';
42
+ /**
43
+ * Predefined experiment features
44
+ * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures
45
+ * when create editor
46
+ */
47
+ export declare type ExperimentalFeature = GraduatedExperimentalFeature
48
+ /**
49
+ * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,
50
+ * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the
51
+ * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures
52
+ * the original formatting of the selection marker is kept to match the pending format.
53
+ */
54
+ | 'KeepSelectionMarkerWhenEnteringTextNode'
52
55
  /**
53
56
  * Transform the table border colors when switching from light to dark mode
54
57
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ExperimentalFeature.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ExperimentalFeature.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Predefined experiment features (Graduated, only keep them for backward compatibility)\n */\nexport type GraduatedExperimentalFeature =\n /**\n * @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,\n * and use cached element when write back if it is not changed.\n */\n | 'PersistCache'\n /**\n * @deprecated\n * Workaround for the Legacy Image Edit\n */\n | 'LegacyImageSelection'\n\n /**\n * @deprecated\n * Prevent default browser behavior for copy/cut event,\n * and set the clipboard data with custom implementation.\n */\n | 'CustomCopyCut';\n\n/**\n * Predefined experiment features\n * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures\n * when create editor\n */\nexport type ExperimentalFeature =\n | GraduatedExperimentalFeature\n\n /**\n * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n\n /**\n * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,\n * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the\n * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures\n * the original formatting of the selection marker is kept to match the pending format.\n */\n | 'KeepSelectionMarkerWhenEnteringTextNode'\n\n /**\n * Export editor content as HTML using HTMLFast option\n */\n | 'ExportHTMLFast'\n\n /**\n * Get cloned root element from an independent HTML document instead of current document.\n * So any operation to the cloned root won't trigger network request for resources like images\n */\n | 'CloneIndependentRoot'\n\n /**\n * Allow caching list item elements.\n */\n | 'CacheList'\n\n /**\n * Transform the table border colors when switching from light to dark mode\n */\n | 'TransformTableBorderColors';\n"]}
1
+ {"version":3,"file":"ExperimentalFeature.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ExperimentalFeature.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Predefined experiment features (Graduated, only keep them for backward compatibility)\n */\nexport type GraduatedExperimentalFeature =\n /**\n * @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,\n * and use cached element when write back if it is not changed.\n */\n | 'PersistCache'\n /**\n * @deprecated\n * Workaround for the Legacy Image Edit\n */\n | 'LegacyImageSelection'\n\n /**\n * @deprecated\n * Prevent default browser behavior for copy/cut event,\n * and set the clipboard data with custom implementation.\n */\n | 'CustomCopyCut'\n\n /**\n * @deprecated\n * Export editor content as HTML using HTMLFast option\n */\n | 'ExportHTMLFast'\n\n /**\n * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n\n /**\n * @deprecated\n * Get cloned root element from an independent HTML document instead of current document.\n * So any operation to the cloned root won't trigger network request for resources like images\n */\n | 'CloneIndependentRoot'\n\n /**\n * @deprecated\n * Allow caching list item elements.\n */\n | 'CacheList';\n\n/**\n * Predefined experiment features\n * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures\n * when create editor\n */\nexport type ExperimentalFeature =\n | GraduatedExperimentalFeature\n\n /**\n * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,\n * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the\n * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures\n * the original formatting of the selection marker is kept to match the pending format.\n */\n | 'KeepSelectionMarkerWhenEnteringTextNode'\n\n /**\n * Transform the table border colors when switching from light to dark mode\n */\n | 'TransformTableBorderColors';\n"]}
@@ -21,6 +21,11 @@ export interface DomToModelListFormat {
21
21
  * Current list type stack
22
22
  */
23
23
  levels: ContentModelListLevel[];
24
+ /**
25
+ * This is used for handling an abnormal case where list items are not inside a ul or ol tag
26
+ * It is not common and against the HTML specification, but we need to handle it for robustness
27
+ */
28
+ potentialListType?: 'OL' | 'UL';
24
29
  }
25
30
  /**
26
31
  * Represents format info used by DOM to Content Model conversion
@@ -1 +1 @@
1
- {"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelCode } from '../contentModel/decorator/ContentModelCode';\nimport type { ContentModelLink } from '../contentModel/decorator/ContentModelLink';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelParagraphDecorator } from '../contentModel/decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
1
+ {"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelCode } from '../contentModel/decorator/ContentModelCode';\nimport type { ContentModelLink } from '../contentModel/decorator/ContentModelLink';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelParagraphDecorator } from '../contentModel/decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n\n /**\n * This is used for handling an abnormal case where list items are not inside a ul or ol tag\n * It is not common and against the HTML specification, but we need to handle it for robustness\n */\n potentialListType?: 'OL' | 'UL';\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
@@ -41,6 +41,7 @@ export interface EditorContext {
41
41
  */
42
42
  allowCacheElement?: boolean;
43
43
  /**
44
+ * @deprecated This is now always be treated as true
44
45
  * Whether to allow caching list item elements separately.
45
46
  */
46
47
  allowCacheListItem?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DarkColorHandler } from './DarkColorHandler';\nimport type { DomIndexer } from './DomIndexer';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\nimport type { PendingFormat } from '../pluginState/FormatPluginState';\nimport type { ParagraphMap } from '../parameter/ParagraphMap';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Pending format if any\n */\n pendingFormat?: PendingFormat;\n\n /**\n * Color manager, to help manager color in dark mode\n */\n darkColorHandler?: DarkColorHandler;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n\n /**\n * Whether to allow caching list item elements separately.\n */\n allowCacheListItem?: boolean;\n\n /**\n * @optional Indexer for content model, to help build backward relationship from DOM node to Content Model\n */\n domIndexer?: DomIndexer;\n\n /**\n * Root Font size in Px.\n */\n rootFontSize?: number;\n\n /**\n * Enabled experimental features\n */\n experimentalFeatures?: ReadonlyArray<string>;\n\n /**\n * A helper class that manages a mapping from paragraph marker to paragraph object.\n */\n paragraphMap?: ParagraphMap;\n\n /**\n * When set to true, size of table will be recalculated when converting from DOM to Content Model.\n */\n recalculateTableSize?: boolean | 'all' | 'selected' | 'none';\n\n /**\n * Width of the editor's editable area in pixels, excluding padding.\n * This value is typically used for layout calculations such as constraining pasted image sizes.\n */\n editorViewWidth?: number;\n}\n"]}
1
+ {"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DarkColorHandler } from './DarkColorHandler';\nimport type { DomIndexer } from './DomIndexer';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\nimport type { PendingFormat } from '../pluginState/FormatPluginState';\nimport type { ParagraphMap } from '../parameter/ParagraphMap';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Pending format if any\n */\n pendingFormat?: PendingFormat;\n\n /**\n * Color manager, to help manager color in dark mode\n */\n darkColorHandler?: DarkColorHandler;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n\n /**\n * @deprecated This is now always be treated as true\n * Whether to allow caching list item elements separately.\n */\n allowCacheListItem?: boolean;\n\n /**\n * @optional Indexer for content model, to help build backward relationship from DOM node to Content Model\n */\n domIndexer?: DomIndexer;\n\n /**\n * Root Font size in Px.\n */\n rootFontSize?: number;\n\n /**\n * Enabled experimental features\n */\n experimentalFeatures?: ReadonlyArray<string>;\n\n /**\n * A helper class that manages a mapping from paragraph marker to paragraph object.\n */\n paragraphMap?: ParagraphMap;\n\n /**\n * When set to true, size of table will be recalculated when converting from DOM to Content Model.\n */\n recalculateTableSize?: boolean | 'all' | 'selected' | 'none';\n\n /**\n * Width of the editor's editable area in pixels, excluding padding.\n * This value is typically used for layout calculations such as constraining pasted image sizes.\n */\n editorViewWidth?: number;\n}\n"]}
@@ -17,38 +17,41 @@ export declare type GraduatedExperimentalFeature =
17
17
  * Prevent default browser behavior for copy/cut event,
18
18
  * and set the clipboard data with custom implementation.
19
19
  */
20
- | 'CustomCopyCut';
20
+ | 'CustomCopyCut'
21
21
  /**
22
- * Predefined experiment features
23
- * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures
24
- * when create editor
22
+ * @deprecated
23
+ * Export editor content as HTML using HTMLFast option
25
24
  */
26
- export declare type ExperimentalFeature = GraduatedExperimentalFeature
25
+ | 'ExportHTMLFast'
27
26
  /**
28
27
  * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options
29
28
  * Use Content Model handle ENTER key
30
29
  */
31
30
  | 'HandleEnterKey'
32
31
  /**
33
- * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,
34
- * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the
35
- * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures
36
- * the original formatting of the selection marker is kept to match the pending format.
37
- */
38
- | 'KeepSelectionMarkerWhenEnteringTextNode'
39
- /**
40
- * Export editor content as HTML using HTMLFast option
41
- */
42
- | 'ExportHTMLFast'
43
- /**
32
+ * @deprecated
44
33
  * Get cloned root element from an independent HTML document instead of current document.
45
34
  * So any operation to the cloned root won't trigger network request for resources like images
46
35
  */
47
36
  | 'CloneIndependentRoot'
48
37
  /**
38
+ * @deprecated
49
39
  * Allow caching list item elements.
50
40
  */
51
- | 'CacheList'
41
+ | 'CacheList';
42
+ /**
43
+ * Predefined experiment features
44
+ * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures
45
+ * when create editor
46
+ */
47
+ export declare type ExperimentalFeature = GraduatedExperimentalFeature
48
+ /**
49
+ * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,
50
+ * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the
51
+ * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures
52
+ * the original formatting of the selection marker is kept to match the pending format.
53
+ */
54
+ | 'KeepSelectionMarkerWhenEnteringTextNode'
52
55
  /**
53
56
  * Transform the table border colors when switching from light to dark mode
54
57
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ExperimentalFeature.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ExperimentalFeature.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Predefined experiment features (Graduated, only keep them for backward compatibility)\n */\nexport type GraduatedExperimentalFeature =\n /**\n * @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,\n * and use cached element when write back if it is not changed.\n */\n | 'PersistCache'\n /**\n * @deprecated\n * Workaround for the Legacy Image Edit\n */\n | 'LegacyImageSelection'\n\n /**\n * @deprecated\n * Prevent default browser behavior for copy/cut event,\n * and set the clipboard data with custom implementation.\n */\n | 'CustomCopyCut';\n\n/**\n * Predefined experiment features\n * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures\n * when create editor\n */\nexport type ExperimentalFeature =\n | GraduatedExperimentalFeature\n\n /**\n * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n\n /**\n * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,\n * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the\n * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures\n * the original formatting of the selection marker is kept to match the pending format.\n */\n | 'KeepSelectionMarkerWhenEnteringTextNode'\n\n /**\n * Export editor content as HTML using HTMLFast option\n */\n | 'ExportHTMLFast'\n\n /**\n * Get cloned root element from an independent HTML document instead of current document.\n * So any operation to the cloned root won't trigger network request for resources like images\n */\n | 'CloneIndependentRoot'\n\n /**\n * Allow caching list item elements.\n */\n | 'CacheList'\n\n /**\n * Transform the table border colors when switching from light to dark mode\n */\n | 'TransformTableBorderColors';\n"]}
1
+ {"version":3,"file":"ExperimentalFeature.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ExperimentalFeature.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Predefined experiment features (Graduated, only keep them for backward compatibility)\n */\nexport type GraduatedExperimentalFeature =\n /**\n * @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,\n * and use cached element when write back if it is not changed.\n */\n | 'PersistCache'\n /**\n * @deprecated\n * Workaround for the Legacy Image Edit\n */\n | 'LegacyImageSelection'\n\n /**\n * @deprecated\n * Prevent default browser behavior for copy/cut event,\n * and set the clipboard data with custom implementation.\n */\n | 'CustomCopyCut'\n\n /**\n * @deprecated\n * Export editor content as HTML using HTMLFast option\n */\n | 'ExportHTMLFast'\n\n /**\n * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n\n /**\n * @deprecated\n * Get cloned root element from an independent HTML document instead of current document.\n * So any operation to the cloned root won't trigger network request for resources like images\n */\n | 'CloneIndependentRoot'\n\n /**\n * @deprecated\n * Allow caching list item elements.\n */\n | 'CacheList';\n\n/**\n * Predefined experiment features\n * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures\n * when create editor\n */\nexport type ExperimentalFeature =\n | GraduatedExperimentalFeature\n\n /**\n * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,\n * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the\n * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures\n * the original formatting of the selection marker is kept to match the pending format.\n */\n | 'KeepSelectionMarkerWhenEnteringTextNode'\n\n /**\n * Transform the table border colors when switching from light to dark mode\n */\n | 'TransformTableBorderColors';\n"]}
@@ -21,6 +21,11 @@ export interface DomToModelListFormat {
21
21
  * Current list type stack
22
22
  */
23
23
  levels: ContentModelListLevel[];
24
+ /**
25
+ * This is used for handling an abnormal case where list items are not inside a ul or ol tag
26
+ * It is not common and against the HTML specification, but we need to handle it for robustness
27
+ */
28
+ potentialListType?: 'OL' | 'UL';
24
29
  }
25
30
  /**
26
31
  * Represents format info used by DOM to Content Model conversion
@@ -1 +1 @@
1
- {"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelCode } from '../contentModel/decorator/ContentModelCode';\nimport type { ContentModelLink } from '../contentModel/decorator/ContentModelLink';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelParagraphDecorator } from '../contentModel/decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
1
+ {"version":3,"file":"DomToModelFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/DomToModelFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelBlockGroup } from '../contentModel/blockGroup/ContentModelBlockGroup';\nimport type { ContentModelCode } from '../contentModel/decorator/ContentModelCode';\nimport type { ContentModelLink } from '../contentModel/decorator/ContentModelLink';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelParagraphDecorator } from '../contentModel/decorator/ContentModelParagraphDecorator';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents the context object used when do DOM to Content Model conversion and processing a List\n */\nexport interface DomToModelListFormat {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * The list that is currently processing\n */\n listParent?: ContentModelBlockGroup;\n\n /**\n * Current list type stack\n */\n levels: ContentModelListLevel[];\n\n /**\n * This is used for handling an abnormal case where list items are not inside a ul or ol tag\n * It is not common and against the HTML specification, but we need to handle it for robustness\n */\n potentialListType?: 'OL' | 'UL';\n}\n\n/**\n * Represents format info used by DOM to Content Model conversion\n */\nexport interface DomToModelFormatContext {\n /**\n * Format of current block\n */\n blockFormat: ContentModelBlockFormat;\n\n /**\n * Format of current segment\n */\n segmentFormat: ContentModelSegmentFormat;\n\n /**\n * Context of list that is currently processing\n */\n listFormat: DomToModelListFormat;\n}\n\n/**\n * Represents decorator info used by DOM to Content Model conversion\n */\nexport interface DomToModelDecoratorContext {\n /**\n * Context of hyper link info\n */\n link: ContentModelLink;\n\n /**\n * Context of code info\n */\n code: ContentModelCode;\n\n /**\n * Context for paragraph decorator\n */\n blockDecorator: ContentModelParagraphDecorator;\n}\n"]}
@@ -41,6 +41,7 @@ export interface EditorContext {
41
41
  */
42
42
  allowCacheElement?: boolean;
43
43
  /**
44
+ * @deprecated This is now always be treated as true
44
45
  * Whether to allow caching list item elements separately.
45
46
  */
46
47
  allowCacheListItem?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DarkColorHandler } from './DarkColorHandler';\nimport type { DomIndexer } from './DomIndexer';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\nimport type { PendingFormat } from '../pluginState/FormatPluginState';\nimport type { ParagraphMap } from '../parameter/ParagraphMap';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Pending format if any\n */\n pendingFormat?: PendingFormat;\n\n /**\n * Color manager, to help manager color in dark mode\n */\n darkColorHandler?: DarkColorHandler;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n\n /**\n * Whether to allow caching list item elements separately.\n */\n allowCacheListItem?: boolean;\n\n /**\n * @optional Indexer for content model, to help build backward relationship from DOM node to Content Model\n */\n domIndexer?: DomIndexer;\n\n /**\n * Root Font size in Px.\n */\n rootFontSize?: number;\n\n /**\n * Enabled experimental features\n */\n experimentalFeatures?: ReadonlyArray<string>;\n\n /**\n * A helper class that manages a mapping from paragraph marker to paragraph object.\n */\n paragraphMap?: ParagraphMap;\n\n /**\n * When set to true, size of table will be recalculated when converting from DOM to Content Model.\n */\n recalculateTableSize?: boolean | 'all' | 'selected' | 'none';\n\n /**\n * Width of the editor's editable area in pixels, excluding padding.\n * This value is typically used for layout calculations such as constraining pasted image sizes.\n */\n editorViewWidth?: number;\n}\n"]}
1
+ {"version":3,"file":"EditorContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/EditorContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { DarkColorHandler } from './DarkColorHandler';\nimport type { DomIndexer } from './DomIndexer';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\nimport type { PendingFormat } from '../pluginState/FormatPluginState';\nimport type { ParagraphMap } from '../parameter/ParagraphMap';\n\n/**\n * An editor context interface used by ContentModel PAI\n */\nexport interface EditorContext {\n /**\n * Whether current content is in dark mode\n */\n isDarkMode?: boolean;\n\n /**\n * Default format of editor\n */\n defaultFormat?: ContentModelSegmentFormat;\n\n /**\n * Pending format if any\n */\n pendingFormat?: PendingFormat;\n\n /**\n * Color manager, to help manager color in dark mode\n */\n darkColorHandler?: DarkColorHandler;\n\n /**\n * Whether to handle delimiters in Content Model\n */\n addDelimiterForEntity?: boolean;\n\n /**\n * Zoom scale number\n */\n zoomScale?: number;\n\n /**\n * Whether the content is in Right-to-left from root level\n */\n isRootRtl?: boolean;\n\n /**\n * Whether put the source element into Content Model when possible.\n * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM\n */\n allowCacheElement?: boolean;\n\n /**\n * @deprecated This is now always be treated as true\n * Whether to allow caching list item elements separately.\n */\n allowCacheListItem?: boolean;\n\n /**\n * @optional Indexer for content model, to help build backward relationship from DOM node to Content Model\n */\n domIndexer?: DomIndexer;\n\n /**\n * Root Font size in Px.\n */\n rootFontSize?: number;\n\n /**\n * Enabled experimental features\n */\n experimentalFeatures?: ReadonlyArray<string>;\n\n /**\n * A helper class that manages a mapping from paragraph marker to paragraph object.\n */\n paragraphMap?: ParagraphMap;\n\n /**\n * When set to true, size of table will be recalculated when converting from DOM to Content Model.\n */\n recalculateTableSize?: boolean | 'all' | 'selected' | 'none';\n\n /**\n * Width of the editor's editable area in pixels, excluding padding.\n * This value is typically used for layout calculations such as constraining pasted image sizes.\n */\n editorViewWidth?: number;\n}\n"]}
@@ -17,38 +17,41 @@ export declare type GraduatedExperimentalFeature =
17
17
  * Prevent default browser behavior for copy/cut event,
18
18
  * and set the clipboard data with custom implementation.
19
19
  */
20
- | 'CustomCopyCut';
20
+ | 'CustomCopyCut'
21
21
  /**
22
- * Predefined experiment features
23
- * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures
24
- * when create editor
22
+ * @deprecated
23
+ * Export editor content as HTML using HTMLFast option
25
24
  */
26
- export declare type ExperimentalFeature = GraduatedExperimentalFeature
25
+ | 'ExportHTMLFast'
27
26
  /**
28
27
  * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options
29
28
  * Use Content Model handle ENTER key
30
29
  */
31
30
  | 'HandleEnterKey'
32
31
  /**
33
- * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,
34
- * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the
35
- * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures
36
- * the original formatting of the selection marker is kept to match the pending format.
37
- */
38
- | 'KeepSelectionMarkerWhenEnteringTextNode'
39
- /**
40
- * Export editor content as HTML using HTMLFast option
41
- */
42
- | 'ExportHTMLFast'
43
- /**
32
+ * @deprecated
44
33
  * Get cloned root element from an independent HTML document instead of current document.
45
34
  * So any operation to the cloned root won't trigger network request for resources like images
46
35
  */
47
36
  | 'CloneIndependentRoot'
48
37
  /**
38
+ * @deprecated
49
39
  * Allow caching list item elements.
50
40
  */
51
- | 'CacheList'
41
+ | 'CacheList';
42
+ /**
43
+ * Predefined experiment features
44
+ * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures
45
+ * when create editor
46
+ */
47
+ export declare type ExperimentalFeature = GraduatedExperimentalFeature
48
+ /**
49
+ * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,
50
+ * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the
51
+ * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures
52
+ * the original formatting of the selection marker is kept to match the pending format.
53
+ */
54
+ | 'KeepSelectionMarkerWhenEnteringTextNode'
52
55
  /**
53
56
  * Transform the table border colors when switching from light to dark mode
54
57
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ExperimentalFeature.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ExperimentalFeature.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Predefined experiment features (Graduated, only keep them for backward compatibility)\n */\nexport type GraduatedExperimentalFeature =\n /**\n * @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,\n * and use cached element when write back if it is not changed.\n */\n | 'PersistCache'\n /**\n * @deprecated\n * Workaround for the Legacy Image Edit\n */\n | 'LegacyImageSelection'\n\n /**\n * @deprecated\n * Prevent default browser behavior for copy/cut event,\n * and set the clipboard data with custom implementation.\n */\n | 'CustomCopyCut';\n\n/**\n * Predefined experiment features\n * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures\n * when create editor\n */\nexport type ExperimentalFeature =\n | GraduatedExperimentalFeature\n\n /**\n * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n\n /**\n * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,\n * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the\n * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures\n * the original formatting of the selection marker is kept to match the pending format.\n */\n | 'KeepSelectionMarkerWhenEnteringTextNode'\n\n /**\n * Export editor content as HTML using HTMLFast option\n */\n | 'ExportHTMLFast'\n\n /**\n * Get cloned root element from an independent HTML document instead of current document.\n * So any operation to the cloned root won't trigger network request for resources like images\n */\n | 'CloneIndependentRoot'\n\n /**\n * Allow caching list item elements.\n */\n | 'CacheList'\n\n /**\n * Transform the table border colors when switching from light to dark mode\n */\n | 'TransformTableBorderColors';\n"]}
1
+ {"version":3,"file":"ExperimentalFeature.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ExperimentalFeature.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Predefined experiment features (Graduated, only keep them for backward compatibility)\n */\nexport type GraduatedExperimentalFeature =\n /**\n * @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,\n * and use cached element when write back if it is not changed.\n */\n | 'PersistCache'\n /**\n * @deprecated\n * Workaround for the Legacy Image Edit\n */\n | 'LegacyImageSelection'\n\n /**\n * @deprecated\n * Prevent default browser behavior for copy/cut event,\n * and set the clipboard data with custom implementation.\n */\n | 'CustomCopyCut'\n\n /**\n * @deprecated\n * Export editor content as HTML using HTMLFast option\n */\n | 'ExportHTMLFast'\n\n /**\n * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n\n /**\n * @deprecated\n * Get cloned root element from an independent HTML document instead of current document.\n * So any operation to the cloned root won't trigger network request for resources like images\n */\n | 'CloneIndependentRoot'\n\n /**\n * @deprecated\n * Allow caching list item elements.\n */\n | 'CacheList';\n\n/**\n * Predefined experiment features\n * By default these features are not enabled. To enable them, pass the feature name into EditorOptions.experimentalFeatures\n * when create editor\n */\nexport type ExperimentalFeature =\n | GraduatedExperimentalFeature\n\n /**\n * For CJK keyboard input on mobile, if the user toggles bold/italic/underline on an empty div,\n * the pending format will be applied on the selection marker. When typing text, the selection moves to the text node and the\n * selection marker may be recreated during reconciliation, potentially losing its original formatting. This feature ensures\n * the original formatting of the selection marker is kept to match the pending format.\n */\n | 'KeepSelectionMarkerWhenEnteringTextNode'\n\n /**\n * Transform the table border colors when switching from light to dark mode\n */\n | 'TransformTableBorderColors';\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "roosterjs-content-model-types",
3
3
  "description": "Types for roosterjs",
4
4
  "dependencies": {},
5
- "version": "9.50.1",
5
+ "version": "9.51.0",
6
6
  "main": "./lib/index.js",
7
7
  "typings": "./lib/index.d.ts",
8
8
  "module": "./lib-mjs/index.js",