roosterjs-content-model-types 9.6.0 → 9.8.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.
@@ -1,4 +1,3 @@
1
- import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
2
1
  /**
3
2
  * A wrapper of MutationObserver to observe text change from editor
4
3
  */
@@ -12,7 +11,9 @@ export interface TextMutationObserver {
12
11
  */
13
12
  stopObserving(): void;
14
13
  /**
15
- * Flush all pending mutations that have not be handled in order to ignore them
14
+ * Flush all pending mutations and update cached model if need
15
+ * @param ignoreMutations When pass true, all mutations will be ignored and do not update content model.
16
+ * This should only be used when we already have a up-to-date content model and will set it as latest cache
16
17
  */
17
- flushMutations(newModel?: ContentModelDocument): void;
18
+ flushMutations(ignoreMutations?: boolean): void;
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TextMutationObserver.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/TextMutationObserver.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';\n\n/**\n * A wrapper of MutationObserver to observe text change from editor\n */\nexport interface TextMutationObserver {\n /**\n * Start observing mutations from editor\n */\n startObserving(): void;\n\n /**\n * Stop observing mutations from editor\n */\n stopObserving(): void;\n\n /**\n * Flush all pending mutations that have not be handled in order to ignore them\n */\n flushMutations(newModel?: ContentModelDocument): void;\n}\n"]}
1
+ {"version":3,"file":"TextMutationObserver.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/TextMutationObserver.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * A wrapper of MutationObserver to observe text change from editor\n */\nexport interface TextMutationObserver {\n /**\n * Start observing mutations from editor\n */\n startObserving(): void;\n\n /**\n * Stop observing mutations from editor\n */\n stopObserving(): void;\n\n /**\n * Flush all pending mutations and update cached model if need\n * @param ignoreMutations When pass true, all mutations will be ignored and do not update content model.\n * This should only be used when we already have a up-to-date content model and will set it as latest cache\n */\n flushMutations(ignoreMutations?: boolean): void;\n}\n"]}
@@ -1,4 +1,3 @@
1
- import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
2
1
  /**
3
2
  * A wrapper of MutationObserver to observe text change from editor
4
3
  */
@@ -12,7 +11,9 @@ export interface TextMutationObserver {
12
11
  */
13
12
  stopObserving(): void;
14
13
  /**
15
- * Flush all pending mutations that have not be handled in order to ignore them
14
+ * Flush all pending mutations and update cached model if need
15
+ * @param ignoreMutations When pass true, all mutations will be ignored and do not update content model.
16
+ * This should only be used when we already have a up-to-date content model and will set it as latest cache
16
17
  */
17
- flushMutations(newModel?: ContentModelDocument): void;
18
+ flushMutations(ignoreMutations?: boolean): void;
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TextMutationObserver.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/TextMutationObserver.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';\n\n/**\n * A wrapper of MutationObserver to observe text change from editor\n */\nexport interface TextMutationObserver {\n /**\n * Start observing mutations from editor\n */\n startObserving(): void;\n\n /**\n * Stop observing mutations from editor\n */\n stopObserving(): void;\n\n /**\n * Flush all pending mutations that have not be handled in order to ignore them\n */\n flushMutations(newModel?: ContentModelDocument): void;\n}\n"]}
1
+ {"version":3,"file":"TextMutationObserver.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/TextMutationObserver.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * A wrapper of MutationObserver to observe text change from editor\n */\nexport interface TextMutationObserver {\n /**\n * Start observing mutations from editor\n */\n startObserving(): void;\n\n /**\n * Stop observing mutations from editor\n */\n stopObserving(): void;\n\n /**\n * Flush all pending mutations and update cached model if need\n * @param ignoreMutations When pass true, all mutations will be ignored and do not update content model.\n * This should only be used when we already have a up-to-date content model and will set it as latest cache\n */\n flushMutations(ignoreMutations?: boolean): void;\n}\n"]}
@@ -1,4 +1,3 @@
1
- import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';
2
1
  /**
3
2
  * A wrapper of MutationObserver to observe text change from editor
4
3
  */
@@ -12,7 +11,9 @@ export interface TextMutationObserver {
12
11
  */
13
12
  stopObserving(): void;
14
13
  /**
15
- * Flush all pending mutations that have not be handled in order to ignore them
14
+ * Flush all pending mutations and update cached model if need
15
+ * @param ignoreMutations When pass true, all mutations will be ignored and do not update content model.
16
+ * This should only be used when we already have a up-to-date content model and will set it as latest cache
16
17
  */
17
- flushMutations(newModel?: ContentModelDocument): void;
18
+ flushMutations(ignoreMutations?: boolean): void;
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TextMutationObserver.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/TextMutationObserver.ts"],"names":[],"mappings":"","sourcesContent":["import type { ContentModelDocument } from '../contentModel/blockGroup/ContentModelDocument';\n\n/**\n * A wrapper of MutationObserver to observe text change from editor\n */\nexport interface TextMutationObserver {\n /**\n * Start observing mutations from editor\n */\n startObserving(): void;\n\n /**\n * Stop observing mutations from editor\n */\n stopObserving(): void;\n\n /**\n * Flush all pending mutations that have not be handled in order to ignore them\n */\n flushMutations(newModel?: ContentModelDocument): void;\n}\n"]}
1
+ {"version":3,"file":"TextMutationObserver.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/context/TextMutationObserver.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * A wrapper of MutationObserver to observe text change from editor\n */\nexport interface TextMutationObserver {\n /**\n * Start observing mutations from editor\n */\n startObserving(): void;\n\n /**\n * Stop observing mutations from editor\n */\n stopObserving(): void;\n\n /**\n * Flush all pending mutations and update cached model if need\n * @param ignoreMutations When pass true, all mutations will be ignored and do not update content model.\n * This should only be used when we already have a up-to-date content model and will set it as latest cache\n */\n flushMutations(ignoreMutations?: boolean): void;\n}\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.6.0",
5
+ "version": "9.8.0",
6
6
  "main": "./lib/index.js",
7
7
  "typings": "./lib/index.d.ts",
8
8
  "module": "./lib-mjs/index.js",