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.
- package/lib/context/TextMutationObserver.d.ts +4 -3
- package/lib/context/TextMutationObserver.js.map +1 -1
- package/lib-amd/context/TextMutationObserver.d.ts +4 -3
- package/lib-amd/context/TextMutationObserver.js.map +1 -1
- package/lib-mjs/context/TextMutationObserver.d.ts +4 -3
- package/lib-mjs/context/TextMutationObserver.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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(
|
|
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":["
|
|
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
|
|
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(
|
|
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":["
|
|
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
|
|
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(
|
|
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":["
|
|
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