roosterjs-content-model-types 9.38.0 → 9.40.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/editor/ContextMenuProvider.d.ts +1 -1
- package/lib/editor/ContextMenuProvider.js.map +1 -1
- package/lib/editor/ExperimentalFeature.d.ts +4 -3
- package/lib/editor/ExperimentalFeature.js.map +1 -1
- package/lib-amd/editor/ContextMenuProvider.d.ts +1 -1
- package/lib-amd/editor/ContextMenuProvider.js.map +1 -1
- package/lib-amd/editor/ExperimentalFeature.d.ts +4 -3
- package/lib-amd/editor/ExperimentalFeature.js.map +1 -1
- package/lib-mjs/editor/ContextMenuProvider.d.ts +1 -1
- package/lib-mjs/editor/ContextMenuProvider.js.map +1 -1
- package/lib-mjs/editor/ExperimentalFeature.d.ts +4 -3
- package/lib-mjs/editor/ExperimentalFeature.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,5 +8,5 @@ export interface ContextMenuProvider<T> extends EditorPlugin {
|
|
|
8
8
|
* @param target Target node that triggered a ContextMenu event
|
|
9
9
|
* @returns An array of context menu items, or null means no items needed
|
|
10
10
|
*/
|
|
11
|
-
getContextMenuItems: (target: Node) => T[] | null;
|
|
11
|
+
getContextMenuItems: (target: Node, event?: Event) => T[] | null;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuProvider.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ContextMenuProvider.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditorPlugin } from './EditorPlugin';\n\n/**\n * An extended Editor plugin interface which supports providing context menu items\n */\nexport interface ContextMenuProvider<T> extends EditorPlugin {\n /**\n * A callback to return context menu items\n * @param target Target node that triggered a ContextMenu event\n * @returns An array of context menu items, or null means no items needed\n */\n getContextMenuItems: (target: Node) => T[] | null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContextMenuProvider.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ContextMenuProvider.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditorPlugin } from './EditorPlugin';\n\n/**\n * An extended Editor plugin interface which supports providing context menu items\n */\nexport interface ContextMenuProvider<T> extends EditorPlugin {\n /**\n * A callback to return context menu items\n * @param target Target node that triggered a ContextMenu event\n * @returns An array of context menu items, or null means no items needed\n */\n getContextMenuItems: (target: Node, event?: Event) => T[] | null;\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare type ExperimentalFeature =
|
|
7
7
|
/**
|
|
8
|
-
* When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
8
|
+
* @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
9
9
|
* and use cached element when write back if it is not changed.
|
|
10
10
|
*/
|
|
11
11
|
'PersistCache'
|
|
@@ -20,8 +20,9 @@ export declare type ExperimentalFeature =
|
|
|
20
20
|
*/
|
|
21
21
|
| 'HandleEnterKey'
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* @deprecated
|
|
24
|
+
* Prevent default browser behavior for copy/cut event,
|
|
25
|
+
* and set the clipboard data with custom implementation.
|
|
25
26
|
*/
|
|
26
27
|
| 'CustomCopyCut'
|
|
27
28
|
/**
|
|
@@ -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\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 /**\n * 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 * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n /**\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\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 /**\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 * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\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 * 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"]}
|
|
@@ -8,5 +8,5 @@ export interface ContextMenuProvider<T> extends EditorPlugin {
|
|
|
8
8
|
* @param target Target node that triggered a ContextMenu event
|
|
9
9
|
* @returns An array of context menu items, or null means no items needed
|
|
10
10
|
*/
|
|
11
|
-
getContextMenuItems: (target: Node) => T[] | null;
|
|
11
|
+
getContextMenuItems: (target: Node, event?: Event) => T[] | null;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuProvider.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ContextMenuProvider.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditorPlugin } from './EditorPlugin';\n\n/**\n * An extended Editor plugin interface which supports providing context menu items\n */\nexport interface ContextMenuProvider<T> extends EditorPlugin {\n /**\n * A callback to return context menu items\n * @param target Target node that triggered a ContextMenu event\n * @returns An array of context menu items, or null means no items needed\n */\n getContextMenuItems: (target: Node) => T[] | null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContextMenuProvider.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ContextMenuProvider.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditorPlugin } from './EditorPlugin';\n\n/**\n * An extended Editor plugin interface which supports providing context menu items\n */\nexport interface ContextMenuProvider<T> extends EditorPlugin {\n /**\n * A callback to return context menu items\n * @param target Target node that triggered a ContextMenu event\n * @returns An array of context menu items, or null means no items needed\n */\n getContextMenuItems: (target: Node, event?: Event) => T[] | null;\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare type ExperimentalFeature =
|
|
7
7
|
/**
|
|
8
|
-
* When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
8
|
+
* @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
9
9
|
* and use cached element when write back if it is not changed.
|
|
10
10
|
*/
|
|
11
11
|
'PersistCache'
|
|
@@ -20,8 +20,9 @@ export declare type ExperimentalFeature =
|
|
|
20
20
|
*/
|
|
21
21
|
| 'HandleEnterKey'
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* @deprecated
|
|
24
|
+
* Prevent default browser behavior for copy/cut event,
|
|
25
|
+
* and set the clipboard data with custom implementation.
|
|
25
26
|
*/
|
|
26
27
|
| 'CustomCopyCut'
|
|
27
28
|
/**
|
|
@@ -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\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 /**\n * 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 * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n /**\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\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 /**\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 * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\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 * 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"]}
|
|
@@ -8,5 +8,5 @@ export interface ContextMenuProvider<T> extends EditorPlugin {
|
|
|
8
8
|
* @param target Target node that triggered a ContextMenu event
|
|
9
9
|
* @returns An array of context menu items, or null means no items needed
|
|
10
10
|
*/
|
|
11
|
-
getContextMenuItems: (target: Node) => T[] | null;
|
|
11
|
+
getContextMenuItems: (target: Node, event?: Event) => T[] | null;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuProvider.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ContextMenuProvider.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditorPlugin } from './EditorPlugin';\n\n/**\n * An extended Editor plugin interface which supports providing context menu items\n */\nexport interface ContextMenuProvider<T> extends EditorPlugin {\n /**\n * A callback to return context menu items\n * @param target Target node that triggered a ContextMenu event\n * @returns An array of context menu items, or null means no items needed\n */\n getContextMenuItems: (target: Node) => T[] | null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContextMenuProvider.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/editor/ContextMenuProvider.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditorPlugin } from './EditorPlugin';\n\n/**\n * An extended Editor plugin interface which supports providing context menu items\n */\nexport interface ContextMenuProvider<T> extends EditorPlugin {\n /**\n * A callback to return context menu items\n * @param target Target node that triggered a ContextMenu event\n * @returns An array of context menu items, or null means no items needed\n */\n getContextMenuItems: (target: Node, event?: Event) => T[] | null;\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare type ExperimentalFeature =
|
|
7
7
|
/**
|
|
8
|
-
* When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
8
|
+
* @deprecated When this feature is enabled, we will persist a content model in memory as long as we can,
|
|
9
9
|
* and use cached element when write back if it is not changed.
|
|
10
10
|
*/
|
|
11
11
|
'PersistCache'
|
|
@@ -20,8 +20,9 @@ export declare type ExperimentalFeature =
|
|
|
20
20
|
*/
|
|
21
21
|
| 'HandleEnterKey'
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* @deprecated
|
|
24
|
+
* Prevent default browser behavior for copy/cut event,
|
|
25
|
+
* and set the clipboard data with custom implementation.
|
|
25
26
|
*/
|
|
26
27
|
| 'CustomCopyCut'
|
|
27
28
|
/**
|
|
@@ -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\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 /**\n * 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 * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\n /**\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\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 /**\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 * @deprecated Please use the shouldHandleEnterKey option of the EditPlugin Options\n * Use Content Model handle ENTER key\n */\n | 'HandleEnterKey'\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 * 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"]}
|
package/package.json
CHANGED