roosterjs-content-model-types 9.48.0 → 9.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/context/ModelToDomFormatContext.d.ts +6 -0
- package/lib/context/ModelToDomFormatContext.js.map +1 -1
- package/lib-amd/context/ModelToDomFormatContext.d.ts +6 -0
- package/lib-amd/context/ModelToDomFormatContext.js.map +1 -1
- package/lib-mjs/context/ModelToDomFormatContext.d.ts +6 -0
- package/lib-mjs/context/ModelToDomFormatContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,12 @@ export interface ModelToDomListContext {
|
|
|
26
26
|
* A stack of current list element chain, start from the parent node of top level list
|
|
27
27
|
*/
|
|
28
28
|
nodeStack: ModelToDomListStackItem[];
|
|
29
|
+
/**
|
|
30
|
+
* Current level of list item being processed, start from 0
|
|
31
|
+
* This is used by metadata applier to determine which level of list item is being processed,
|
|
32
|
+
* so it can apply correct list style for that level. It will be updated by list handler before processing each list item, and reset to 0 when processing a new list.
|
|
33
|
+
*/
|
|
34
|
+
currentLevel: number;
|
|
29
35
|
}
|
|
30
36
|
/**
|
|
31
37
|
* Represents format context used by Content Model to DOM conversion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n\n /**\n * Reference node to insert next list item under this list\n */\n refNode: Node | null;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n\n /**\n * Reference node to insert next list item under this list\n */\n refNode: Node | null;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n\n /**\n * Current level of list item being processed, start from 0\n * This is used by metadata applier to determine which level of list item is being processed,\n * so it can apply correct list style for that level. It will be updated by list handler before processing each list item, and reset to 0 when processing a new list.\n */\n currentLevel: number;\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
|
@@ -26,6 +26,12 @@ export interface ModelToDomListContext {
|
|
|
26
26
|
* A stack of current list element chain, start from the parent node of top level list
|
|
27
27
|
*/
|
|
28
28
|
nodeStack: ModelToDomListStackItem[];
|
|
29
|
+
/**
|
|
30
|
+
* Current level of list item being processed, start from 0
|
|
31
|
+
* This is used by metadata applier to determine which level of list item is being processed,
|
|
32
|
+
* so it can apply correct list style for that level. It will be updated by list handler before processing each list item, and reset to 0 when processing a new list.
|
|
33
|
+
*/
|
|
34
|
+
currentLevel: number;
|
|
29
35
|
}
|
|
30
36
|
/**
|
|
31
37
|
* Represents format context used by Content Model to DOM conversion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n\n /**\n * Reference node to insert next list item under this list\n */\n refNode: Node | null;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n\n /**\n * Reference node to insert next list item under this list\n */\n refNode: Node | null;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n\n /**\n * Current level of list item being processed, start from 0\n * This is used by metadata applier to determine which level of list item is being processed,\n * so it can apply correct list style for that level. It will be updated by list handler before processing each list item, and reset to 0 when processing a new list.\n */\n currentLevel: number;\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
|
@@ -26,6 +26,12 @@ export interface ModelToDomListContext {
|
|
|
26
26
|
* A stack of current list element chain, start from the parent node of top level list
|
|
27
27
|
*/
|
|
28
28
|
nodeStack: ModelToDomListStackItem[];
|
|
29
|
+
/**
|
|
30
|
+
* Current level of list item being processed, start from 0
|
|
31
|
+
* This is used by metadata applier to determine which level of list item is being processed,
|
|
32
|
+
* so it can apply correct list style for that level. It will be updated by list handler before processing each list item, and reset to 0 when processing a new list.
|
|
33
|
+
*/
|
|
34
|
+
currentLevel: number;
|
|
29
35
|
}
|
|
30
36
|
/**
|
|
31
37
|
* Represents format context used by Content Model to DOM conversion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n\n /**\n * Reference node to insert next list item under this list\n */\n refNode: Node | null;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ModelToDomFormatContext.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/ModelToDomFormatContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';\nimport type { ContentModelListLevel } from '../contentModel/decorator/ContentModelListLevel';\nimport type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';\n\n/**\n * Represents a list stack item used by Content Model to DOM conversion\n */\nexport interface ModelToDomListStackItem extends Partial<ContentModelListLevel> {\n /**\n * DOM node of this list stack\n */\n node: Node;\n\n /**\n * Reference node to insert next list item under this list\n */\n refNode: Node | null;\n}\n\n/**\n * Represents context for list handling\n */\nexport interface ModelToDomListContext {\n /**\n * Current number of each level of current thread\n */\n threadItemCounts: number[];\n\n /**\n * A stack of current list element chain, start from the parent node of top level list\n */\n nodeStack: ModelToDomListStackItem[];\n\n /**\n * Current level of list item being processed, start from 0\n * This is used by metadata applier to determine which level of list item is being processed,\n * so it can apply correct list style for that level. It will be updated by list handler before processing each list item, and reset to 0 when processing a new list.\n */\n currentLevel: number;\n}\n\n/**\n * Represents format context used by Content Model to DOM conversion\n */\nexport interface ModelToDomFormatContext {\n /**\n * Context for list handling\n */\n listFormat: ModelToDomListContext;\n\n /**\n * Existing format implicitly applied from parent element\n */\n implicitFormat: ContentModelSegmentFormat & ContentModelBlockFormat;\n}\n"]}
|
package/package.json
CHANGED