@contentful/field-editor-rich-text 3.16.11 → 3.16.12
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/dist/cjs/ContentfulEditorProvider.js +8 -8
- package/dist/cjs/RichTextEditor.js +6 -4
- package/dist/cjs/SdkProvider.js +4 -2
- package/dist/cjs/SyncEditorChanges.js +4 -2
- package/dist/cjs/Toolbar/_tests_/toolbar.test.js +6 -4
- package/dist/cjs/Toolbar/components/EmbedEntityWidget.js +4 -2
- package/dist/cjs/Toolbar/components/EmbeddedEntityDropdownButton.js +4 -2
- package/dist/cjs/Toolbar/components/StickyToolbarWrapper.js +1 -1
- package/dist/cjs/Toolbar/index.js +5 -3
- package/dist/cjs/__fixtures__/FakeSdk.js +3 -3
- package/dist/cjs/__fixtures__/asset/index.js +5 -5
- package/dist/cjs/__fixtures__/entry/index.js +3 -3
- package/dist/cjs/__fixtures__/fixtures.js +3 -1
- package/dist/cjs/dialogs/HypelinkDialog/HyperlinkDialog.js +17 -15
- package/dist/cjs/dialogs/openRichTextDialog.js +4 -2
- package/dist/cjs/dialogs/renderRichTextDialog.js +3 -1
- package/dist/cjs/helpers/__tests__/removeInternalMarks.test.js +1 -1
- package/dist/cjs/helpers/editor.js +42 -42
- package/dist/cjs/helpers/environment.js +3 -3
- package/dist/cjs/helpers/formatDateAndTime.js +3 -3
- package/dist/cjs/helpers/nodeFactory.js +6 -6
- package/dist/cjs/helpers/sdkNavigatorSlideIn.js +1 -1
- package/dist/cjs/helpers/transformers.js +5 -5
- package/dist/cjs/helpers/validations.js +5 -5
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/internal/constants.js +3 -1
- package/dist/cjs/internal/hooks.js +7 -5
- package/dist/cjs/internal/misc.js +12 -10
- package/dist/cjs/internal/queries.js +107 -105
- package/dist/cjs/internal/transforms.js +49 -47
- package/dist/cjs/plugins/Break/createExitBreakPlugin.test.js +1 -1
- package/dist/cjs/plugins/Break/createSoftBreakPlugin.test.js +1 -1
- package/dist/cjs/plugins/CommandPalette/components/CommandList.js +9 -7
- package/dist/cjs/plugins/CommandPalette/components/CommandPrompt.js +3 -1
- package/dist/cjs/plugins/CommandPalette/hooks/useCommandList.js +3 -1
- package/dist/cjs/plugins/CommandPalette/onKeyDown.spec.js +5 -3
- package/dist/cjs/plugins/CommandPalette/useCommands.js +2 -2
- package/dist/cjs/plugins/EmbeddedEntityBlock/LinkedEntityBlock.js +6 -4
- package/dist/cjs/plugins/EmbeddedEntityBlock/index.js +3 -3
- package/dist/cjs/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +7 -5
- package/dist/cjs/plugins/EmbeddedEntityInline/LinkedEntityInline.js +6 -4
- package/dist/cjs/plugins/EmbeddedResourceBlock/LinkedResourceBlock.js +2 -2
- package/dist/cjs/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +7 -5
- package/dist/cjs/plugins/EmbeddedResourceInline/LinkedResourceInline.js +2 -2
- package/dist/cjs/plugins/Heading/components/Heading.js +3 -1
- package/dist/cjs/plugins/Heading/components/ToolbarHeadingButton.js +3 -1
- package/dist/cjs/plugins/Heading/createHeadingPlugin.js +1 -1
- package/dist/cjs/plugins/Hr/index.js +8 -6
- package/dist/cjs/plugins/Hyperlink/HyperlinkModal.js +7 -5
- package/dist/cjs/plugins/Hyperlink/components/EntityHyperlink.js +6 -4
- package/dist/cjs/plugins/Hyperlink/components/LinkPopover.js +4 -2
- package/dist/cjs/plugins/Hyperlink/components/ResourceHyperlink.js +6 -4
- package/dist/cjs/plugins/Hyperlink/components/ToolbarHyperlinkButton.js +3 -1
- package/dist/cjs/plugins/Hyperlink/components/UrlHyperlink.js +4 -2
- package/dist/cjs/plugins/Hyperlink/components/linkHandlers.js +3 -3
- package/dist/cjs/plugins/Hyperlink/createHyperlinkPlugin.js +4 -2
- package/dist/cjs/plugins/Hyperlink/useEntityInfo.js +3 -3
- package/dist/cjs/plugins/Hyperlink/useResourceEntityInfo.js +5 -3
- package/dist/cjs/plugins/Hyperlink/utils.js +4 -4
- package/dist/cjs/plugins/List/__tests__/insertListBreak.test.js +1 -1
- package/dist/cjs/plugins/List/__tests__/insertListFragment.test.js +1 -1
- package/dist/cjs/plugins/List/components/List.js +6 -4
- package/dist/cjs/plugins/List/components/ListItem.js +3 -1
- package/dist/cjs/plugins/List/components/ToolbarListButton.js +3 -1
- package/dist/cjs/plugins/List/insertListBreak.js +2 -2
- package/dist/cjs/plugins/List/insertListFragment.js +1 -1
- package/dist/cjs/plugins/List/onKeyDownList.js +1 -1
- package/dist/cjs/plugins/List/transforms/moveListItemDown.js +1 -1
- package/dist/cjs/plugins/List/transforms/moveListItems.js +1 -1
- package/dist/cjs/plugins/List/transforms/moveListItems.test.js +1 -1
- package/dist/cjs/plugins/List/transforms/toggleList.js +3 -3
- package/dist/cjs/plugins/List/transforms/toggleList.spec.js +9 -9
- package/dist/cjs/plugins/List/transforms/unwrapList.js +1 -1
- package/dist/cjs/plugins/List/utils.js +11 -11
- package/dist/cjs/plugins/List/withList.js +1 -1
- package/dist/cjs/plugins/Marks/Bold.js +6 -4
- package/dist/cjs/plugins/Marks/Code.js +6 -4
- package/dist/cjs/plugins/Marks/Italic.js +6 -4
- package/dist/cjs/plugins/Marks/Subscript.js +7 -5
- package/dist/cjs/plugins/Marks/Superscript.js +7 -5
- package/dist/cjs/plugins/Marks/Underline.js +3 -1
- package/dist/cjs/plugins/Marks/components/MarkToolbarButton.js +5 -3
- package/dist/cjs/plugins/Marks/helpers.js +4 -4
- package/dist/cjs/plugins/Normalizer/createNormalizerPlugin.test.js +3 -3
- package/dist/cjs/plugins/Normalizer/utils.js +3 -3
- package/dist/cjs/plugins/Normalizer/withNormalizer.js +2 -2
- package/dist/cjs/plugins/Paragraph/Paragraph.js +3 -1
- package/dist/cjs/plugins/Paragraph/createParagraphPlugin.js +1 -1
- package/dist/cjs/plugins/PasteHTML/createPasteHTMLPlugin.js +5 -5
- package/dist/cjs/plugins/Quote/components/Quote.js +3 -1
- package/dist/cjs/plugins/Quote/components/ToolbarQuoteButton.js +3 -1
- package/dist/cjs/plugins/Quote/toggleQuote.js +4 -4
- package/dist/cjs/plugins/Quote/withQuote.js +2 -2
- package/dist/cjs/plugins/Table/__tests__/helpers.test.js +1 -1
- package/dist/cjs/plugins/Table/actions/addColumn.js +4 -4
- package/dist/cjs/plugins/Table/actions/addRow.js +3 -3
- package/dist/cjs/plugins/Table/components/Cell.js +3 -1
- package/dist/cjs/plugins/Table/components/HeaderCell.js +3 -1
- package/dist/cjs/plugins/Table/components/Row.js +3 -1
- package/dist/cjs/plugins/Table/components/Table.js +3 -1
- package/dist/cjs/plugins/Table/components/TableActions.js +6 -4
- package/dist/cjs/plugins/Table/components/ToolbarButton.js +3 -1
- package/dist/cjs/plugins/Table/createTablePlugin.js +1 -1
- package/dist/cjs/plugins/Table/helpers.js +12 -12
- package/dist/cjs/plugins/Table/insertTableFragment.js +1 -1
- package/dist/cjs/plugins/Table/onKeyDownTable.js +2 -2
- package/dist/cjs/plugins/Table/tableTracking.js +6 -6
- package/dist/cjs/plugins/Text/__tests__/createTextPlugin.test.js +2 -2
- package/dist/cjs/plugins/Text/createTextPlugin.js +3 -3
- package/dist/cjs/plugins/Tracking/createTrackingPlugin.js +4 -4
- package/dist/cjs/plugins/Tracking/utils.js +3 -1
- package/dist/cjs/plugins/index.js +3 -3
- package/dist/cjs/plugins/shared/EmbeddedBlockToolbarIcon.js +7 -5
- package/dist/cjs/plugins/shared/EmbeddedBlockUtil.js +5 -5
- package/dist/cjs/plugins/shared/EmbeddedInlineToolbarIcon.js +4 -2
- package/dist/cjs/plugins/shared/EmbeddedInlineUtil.js +4 -4
- package/dist/cjs/plugins/shared/FetchingWrappedAssetCard.js +6 -4
- package/dist/cjs/plugins/shared/FetchingWrappedEntryCard.js +7 -5
- package/dist/cjs/plugins/shared/FetchingWrappedResourceCard.js +6 -4
- package/dist/cjs/plugins/shared/LinkedBlockWrapper.js +1 -1
- package/dist/cjs/plugins/shared/LinkedInlineWrapper.js +4 -2
- package/dist/cjs/plugins/shared/ResourceNewBadge.js +3 -1
- package/dist/cjs/plugins/shared/ToolbarButton.js +4 -2
- package/dist/cjs/plugins/shared/__tests__/FetchingWrappedAssetCard.test.js +4 -2
- package/dist/cjs/plugins/shared/__tests__/FetchingWrappedEntryCard.test.js +4 -2
- package/dist/cjs/plugins/shared/__tests__/FetchingWrappedResourceCard.test.js +9 -7
- package/dist/cjs/test-utils/validation.js +3 -3
- package/dist/esm/ContentfulEditorProvider.js +1 -1
- package/dist/esm/RichTextEditor.js +3 -3
- package/dist/esm/SdkProvider.js +1 -1
- package/dist/esm/SyncEditorChanges.js +1 -1
- package/dist/esm/Toolbar/_tests_/toolbar.test.js +3 -3
- package/dist/esm/Toolbar/components/EmbedEntityWidget.js +1 -1
- package/dist/esm/Toolbar/components/EmbeddedEntityDropdownButton.js +1 -1
- package/dist/esm/Toolbar/components/StickyToolbarWrapper.js +1 -1
- package/dist/esm/Toolbar/index.js +2 -2
- package/dist/esm/__fixtures__/FakeSdk.js +3 -3
- package/dist/esm/dialogs/HypelinkDialog/HyperlinkDialog.js +11 -11
- package/dist/esm/dialogs/openRichTextDialog.js +1 -1
- package/dist/esm/helpers/__tests__/removeInternalMarks.test.js +1 -1
- package/dist/esm/helpers/editor.js +3 -3
- package/dist/esm/helpers/sdkNavigatorSlideIn.js +1 -1
- package/dist/esm/plugins/Break/createExitBreakPlugin.test.js +1 -1
- package/dist/esm/plugins/Break/createSoftBreakPlugin.test.js +1 -1
- package/dist/esm/plugins/CommandPalette/components/CommandList.js +6 -6
- package/dist/esm/plugins/CommandPalette/onKeyDown.spec.js +2 -2
- package/dist/esm/plugins/CommandPalette/useCommands.js +2 -2
- package/dist/esm/plugins/EmbeddedEntityBlock/LinkedEntityBlock.js +3 -3
- package/dist/esm/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +4 -4
- package/dist/esm/plugins/EmbeddedEntityInline/LinkedEntityInline.js +3 -3
- package/dist/esm/plugins/EmbeddedResourceBlock/LinkedResourceBlock.js +2 -2
- package/dist/esm/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +4 -4
- package/dist/esm/plugins/EmbeddedResourceInline/LinkedResourceInline.js +2 -2
- package/dist/esm/plugins/Heading/createHeadingPlugin.js +1 -1
- package/dist/esm/plugins/Hyperlink/HyperlinkModal.js +4 -4
- package/dist/esm/plugins/Hyperlink/components/EntityHyperlink.js +3 -3
- package/dist/esm/plugins/Hyperlink/components/LinkPopover.js +1 -1
- package/dist/esm/plugins/Hyperlink/components/ResourceHyperlink.js +3 -3
- package/dist/esm/plugins/Hyperlink/components/UrlHyperlink.js +1 -1
- package/dist/esm/plugins/Hyperlink/createHyperlinkPlugin.js +1 -1
- package/dist/esm/plugins/Hyperlink/useEntityInfo.js +3 -3
- package/dist/esm/plugins/Hyperlink/useResourceEntityInfo.js +2 -2
- package/dist/esm/plugins/Hyperlink/utils.js +1 -1
- package/dist/esm/plugins/List/__tests__/insertListBreak.test.js +1 -1
- package/dist/esm/plugins/List/__tests__/insertListFragment.test.js +1 -1
- package/dist/esm/plugins/List/insertListBreak.js +2 -2
- package/dist/esm/plugins/List/insertListFragment.js +1 -1
- package/dist/esm/plugins/List/onKeyDownList.js +1 -1
- package/dist/esm/plugins/List/transforms/moveListItemDown.js +1 -1
- package/dist/esm/plugins/List/transforms/moveListItems.js +1 -1
- package/dist/esm/plugins/List/transforms/moveListItems.test.js +1 -1
- package/dist/esm/plugins/List/transforms/toggleList.js +3 -3
- package/dist/esm/plugins/List/transforms/toggleList.spec.js +9 -9
- package/dist/esm/plugins/List/transforms/unwrapList.js +1 -1
- package/dist/esm/plugins/List/utils.js +1 -1
- package/dist/esm/plugins/List/withList.js +1 -1
- package/dist/esm/plugins/Marks/components/MarkToolbarButton.js +2 -2
- package/dist/esm/plugins/Marks/helpers.js +1 -1
- package/dist/esm/plugins/Normalizer/createNormalizerPlugin.test.js +3 -3
- package/dist/esm/plugins/Normalizer/withNormalizer.js +2 -2
- package/dist/esm/plugins/Paragraph/createParagraphPlugin.js +1 -1
- package/dist/esm/plugins/PasteHTML/createPasteHTMLPlugin.js +1 -1
- package/dist/esm/plugins/Quote/toggleQuote.js +1 -1
- package/dist/esm/plugins/Quote/withQuote.js +2 -2
- package/dist/esm/plugins/Table/__tests__/helpers.test.js +1 -1
- package/dist/esm/plugins/Table/actions/addColumn.js +1 -1
- package/dist/esm/plugins/Table/createTablePlugin.js +1 -1
- package/dist/esm/plugins/Table/insertTableFragment.js +1 -1
- package/dist/esm/plugins/Table/onKeyDownTable.js +2 -2
- package/dist/esm/plugins/Table/tableTracking.js +6 -6
- package/dist/esm/plugins/Text/__tests__/createTextPlugin.test.js +2 -2
- package/dist/esm/plugins/Text/createTextPlugin.js +3 -3
- package/dist/esm/plugins/Tracking/createTrackingPlugin.js +1 -1
- package/dist/esm/plugins/shared/EmbeddedBlockToolbarIcon.js +1 -1
- package/dist/esm/plugins/shared/EmbeddedBlockUtil.js +5 -5
- package/dist/esm/plugins/shared/EmbeddedInlineToolbarIcon.js +1 -1
- package/dist/esm/plugins/shared/EmbeddedInlineUtil.js +4 -4
- package/dist/esm/plugins/shared/FetchingWrappedAssetCard.js +3 -3
- package/dist/esm/plugins/shared/FetchingWrappedEntryCard.js +4 -4
- package/dist/esm/plugins/shared/FetchingWrappedResourceCard.js +3 -3
- package/dist/esm/plugins/shared/LinkedBlockWrapper.js +1 -1
- package/dist/esm/plugins/shared/LinkedInlineWrapper.js +1 -1
- package/dist/esm/plugins/shared/ToolbarButton.js +1 -1
- package/dist/esm/plugins/shared/__tests__/FetchingWrappedAssetCard.test.js +1 -1
- package/dist/esm/plugins/shared/__tests__/FetchingWrappedEntryCard.test.js +1 -1
- package/dist/esm/plugins/shared/__tests__/FetchingWrappedResourceCard.test.js +6 -6
- package/dist/esm/test-utils/validation.js +3 -3
- package/package.json +3 -3
|
@@ -23,7 +23,7 @@ function watchCurrentSlide(navigator) {
|
|
|
23
23
|
wasClosed: wasSlideClosed,
|
|
24
24
|
isActive: !wasSlideClosed && lastSlideLevel === initialSlideLevel
|
|
25
25
|
});
|
|
26
|
-
const off = navigator.onSlideInNavigation(({ oldSlideLevel
|
|
26
|
+
const off = navigator.onSlideInNavigation(({ oldSlideLevel, newSlideLevel })=>{
|
|
27
27
|
if (initialSlideLevel === undefined) {
|
|
28
28
|
initialSlideLevel = oldSlideLevel;
|
|
29
29
|
}
|
|
@@ -9,20 +9,20 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return
|
|
12
|
+
transformLift: function() {
|
|
13
|
+
return transformLift;
|
|
14
14
|
},
|
|
15
15
|
transformParagraphs: function() {
|
|
16
16
|
return transformParagraphs;
|
|
17
17
|
},
|
|
18
|
+
transformRemove: function() {
|
|
19
|
+
return transformRemove;
|
|
20
|
+
},
|
|
18
21
|
transformUnwrap: function() {
|
|
19
22
|
return transformUnwrap;
|
|
20
23
|
},
|
|
21
24
|
transformWrapIn: function() {
|
|
22
25
|
return transformWrapIn;
|
|
23
|
-
},
|
|
24
|
-
transformLift: function() {
|
|
25
|
-
return transformLift;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const _transforms = require("../internal/transforms");
|
|
@@ -9,20 +9,20 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
VALIDATIONS: function() {
|
|
13
|
-
return VALIDATIONS;
|
|
14
|
-
},
|
|
15
12
|
DEFAULT_ENABLED_NODE_TYPES: function() {
|
|
16
13
|
return DEFAULT_ENABLED_NODE_TYPES;
|
|
17
14
|
},
|
|
18
15
|
VALIDATABLE_NODE_TYPES: function() {
|
|
19
16
|
return VALIDATABLE_NODE_TYPES;
|
|
20
17
|
},
|
|
21
|
-
|
|
22
|
-
return
|
|
18
|
+
VALIDATIONS: function() {
|
|
19
|
+
return VALIDATIONS;
|
|
23
20
|
},
|
|
24
21
|
isMarkEnabled: function() {
|
|
25
22
|
return isMarkEnabled;
|
|
23
|
+
},
|
|
24
|
+
isNodeTypeEnabled: function() {
|
|
25
|
+
return isNodeTypeEnabled;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const _richtexttypes = require("@contentful/rich-text-types");
|
package/dist/cjs/index.js
CHANGED
|
@@ -9,12 +9,12 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
RichTextEditor: function() {
|
|
13
|
-
return _RichTextEditor.default;
|
|
14
|
-
},
|
|
15
12
|
ConnectedRichTextEditor: function() {
|
|
16
13
|
return _RichTextEditor.ConnectedRichTextEditor;
|
|
17
14
|
},
|
|
15
|
+
RichTextEditor: function() {
|
|
16
|
+
return _RichTextEditor.default;
|
|
17
|
+
},
|
|
18
18
|
openRichTextDialog: function() {
|
|
19
19
|
return _openRichTextDialog.openRichTextDialog;
|
|
20
20
|
},
|
|
@@ -46,7 +46,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
46
46
|
if (cache && cache.has(obj)) {
|
|
47
47
|
return cache.get(obj);
|
|
48
48
|
}
|
|
49
|
-
var newObj = {
|
|
49
|
+
var newObj = {
|
|
50
|
+
__proto__: null
|
|
51
|
+
};
|
|
50
52
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
51
53
|
for(var key in obj){
|
|
52
54
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -30,7 +30,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
30
30
|
if (cache && cache.has(obj)) {
|
|
31
31
|
return cache.get(obj);
|
|
32
32
|
}
|
|
33
|
-
var newObj = {
|
|
33
|
+
var newObj = {
|
|
34
|
+
__proto__: null
|
|
35
|
+
};
|
|
34
36
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
35
37
|
for(var key in obj){
|
|
36
38
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -9,8 +9,8 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return
|
|
12
|
+
useFocused: function() {
|
|
13
|
+
return useFocused;
|
|
14
14
|
},
|
|
15
15
|
usePlateEditorRef: function() {
|
|
16
16
|
return usePlateEditorRef;
|
|
@@ -21,8 +21,8 @@ _export(exports, {
|
|
|
21
21
|
usePlateSelectors: function() {
|
|
22
22
|
return usePlateSelectors;
|
|
23
23
|
},
|
|
24
|
-
|
|
25
|
-
return
|
|
24
|
+
useReadOnly: function() {
|
|
25
|
+
return useReadOnly;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const _platecommon = _interop_require_wildcard(require("@udecode/plate-common"));
|
|
@@ -48,7 +48,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
48
48
|
if (cache && cache.has(obj)) {
|
|
49
49
|
return cache.get(obj);
|
|
50
50
|
}
|
|
51
|
-
var newObj = {
|
|
51
|
+
var newObj = {
|
|
52
|
+
__proto__: null
|
|
53
|
+
};
|
|
52
54
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
53
55
|
for(var key in obj){
|
|
54
56
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -9,26 +9,26 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
+
blurEditor: function() {
|
|
13
|
+
return blurEditor;
|
|
14
|
+
},
|
|
12
15
|
createPlateEditor: function() {
|
|
13
16
|
return createPlateEditor;
|
|
14
17
|
},
|
|
15
|
-
normalizeInitialValue: function() {
|
|
16
|
-
return normalizeInitialValue;
|
|
17
|
-
},
|
|
18
18
|
focusEditor: function() {
|
|
19
19
|
return focusEditor;
|
|
20
20
|
},
|
|
21
|
-
blurEditor: function() {
|
|
22
|
-
return blurEditor;
|
|
23
|
-
},
|
|
24
|
-
selectEditor: function() {
|
|
25
|
-
return selectEditor;
|
|
26
|
-
},
|
|
27
21
|
fromDOMPoint: function() {
|
|
28
22
|
return fromDOMPoint;
|
|
29
23
|
},
|
|
30
24
|
mockPlugin: function() {
|
|
31
25
|
return mockPlugin;
|
|
26
|
+
},
|
|
27
|
+
normalizeInitialValue: function() {
|
|
28
|
+
return normalizeInitialValue;
|
|
29
|
+
},
|
|
30
|
+
selectEditor: function() {
|
|
31
|
+
return selectEditor;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
const _platecommon = _interop_require_wildcard(require("@udecode/plate-common"));
|
|
@@ -54,7 +54,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
54
54
|
if (cache && cache.has(obj)) {
|
|
55
55
|
return cache.get(obj);
|
|
56
56
|
}
|
|
57
|
-
var newObj = {
|
|
57
|
+
var newObj = {
|
|
58
|
+
__proto__: null
|
|
59
|
+
};
|
|
58
60
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
59
61
|
for(var key in obj){
|
|
60
62
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -9,65 +9,83 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return
|
|
12
|
+
createPathRef: function() {
|
|
13
|
+
return createPathRef;
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
return
|
|
15
|
+
findNode: function() {
|
|
16
|
+
return findNode;
|
|
17
|
+
},
|
|
18
|
+
findNodePath: function() {
|
|
19
|
+
return findNodePath;
|
|
20
|
+
},
|
|
21
|
+
getAboveNode: function() {
|
|
22
|
+
return getAboveNode;
|
|
23
|
+
},
|
|
24
|
+
getBlockAbove: function() {
|
|
25
|
+
return getBlockAbove;
|
|
26
|
+
},
|
|
27
|
+
getChildren: function() {
|
|
28
|
+
return getChildren;
|
|
29
|
+
},
|
|
30
|
+
getCommonNode: function() {
|
|
31
|
+
return getCommonNode;
|
|
32
|
+
},
|
|
33
|
+
getDescendantNodeByPath: function() {
|
|
34
|
+
return getDescendantNodeByPath;
|
|
17
35
|
},
|
|
18
36
|
getEndPoint: function() {
|
|
19
37
|
return getEndPoint;
|
|
20
38
|
},
|
|
21
|
-
|
|
22
|
-
return
|
|
39
|
+
getLastChildPath: function() {
|
|
40
|
+
return getLastChildPath;
|
|
23
41
|
},
|
|
24
|
-
|
|
25
|
-
return
|
|
42
|
+
getLastNodeByLevel: function() {
|
|
43
|
+
return getLastNodeByLevel;
|
|
26
44
|
},
|
|
27
|
-
|
|
28
|
-
return
|
|
45
|
+
getMarks: function() {
|
|
46
|
+
return getMarks;
|
|
29
47
|
},
|
|
30
|
-
|
|
31
|
-
return
|
|
48
|
+
getNextNode: function() {
|
|
49
|
+
return getNextNode;
|
|
32
50
|
},
|
|
33
|
-
|
|
34
|
-
return
|
|
51
|
+
getNextPath: function() {
|
|
52
|
+
return getNextPath;
|
|
35
53
|
},
|
|
36
|
-
|
|
37
|
-
return
|
|
54
|
+
getNodeChildren: function() {
|
|
55
|
+
return getNodeChildren;
|
|
56
|
+
},
|
|
57
|
+
getNodeDescendants: function() {
|
|
58
|
+
return getNodeDescendants;
|
|
38
59
|
},
|
|
39
60
|
getNodeEntries: function() {
|
|
40
61
|
return getNodeEntries;
|
|
41
62
|
},
|
|
42
|
-
|
|
43
|
-
return
|
|
63
|
+
getNodeEntry: function() {
|
|
64
|
+
return getNodeEntry;
|
|
65
|
+
},
|
|
66
|
+
getNodeTexts: function() {
|
|
67
|
+
return getNodeTexts;
|
|
44
68
|
},
|
|
45
69
|
getParentNode: function() {
|
|
46
70
|
return getParentNode;
|
|
47
71
|
},
|
|
48
|
-
|
|
49
|
-
return
|
|
50
|
-
},
|
|
51
|
-
getChildren: function() {
|
|
52
|
-
return getChildren;
|
|
53
|
-
},
|
|
54
|
-
isFirstChild: function() {
|
|
55
|
-
return isFirstChild;
|
|
72
|
+
getParentPath: function() {
|
|
73
|
+
return getParentPath;
|
|
56
74
|
},
|
|
57
|
-
|
|
58
|
-
return
|
|
75
|
+
getPathLevels: function() {
|
|
76
|
+
return getPathLevels;
|
|
59
77
|
},
|
|
60
|
-
|
|
61
|
-
return
|
|
78
|
+
getPluginType: function() {
|
|
79
|
+
return getPluginType;
|
|
62
80
|
},
|
|
63
|
-
|
|
64
|
-
return
|
|
81
|
+
getPointAfter: function() {
|
|
82
|
+
return getPointAfter;
|
|
65
83
|
},
|
|
66
|
-
|
|
67
|
-
return
|
|
84
|
+
getPointBefore: function() {
|
|
85
|
+
return getPointBefore;
|
|
68
86
|
},
|
|
69
|
-
|
|
70
|
-
return
|
|
87
|
+
getPreviousPath: function() {
|
|
88
|
+
return getPreviousPath;
|
|
71
89
|
},
|
|
72
90
|
getRange: function() {
|
|
73
91
|
return getRange;
|
|
@@ -75,32 +93,32 @@ _export(exports, {
|
|
|
75
93
|
getRangeEdges: function() {
|
|
76
94
|
return getRangeEdges;
|
|
77
95
|
},
|
|
78
|
-
getRangeStart: function() {
|
|
79
|
-
return getRangeStart;
|
|
80
|
-
},
|
|
81
96
|
getRangeEnd: function() {
|
|
82
97
|
return getRangeEnd;
|
|
83
98
|
},
|
|
84
|
-
|
|
85
|
-
return
|
|
99
|
+
getRangeStart: function() {
|
|
100
|
+
return getRangeStart;
|
|
86
101
|
},
|
|
87
|
-
|
|
88
|
-
return
|
|
102
|
+
getStartPoint: function() {
|
|
103
|
+
return getStartPoint;
|
|
89
104
|
},
|
|
90
|
-
|
|
91
|
-
return
|
|
105
|
+
getText: function() {
|
|
106
|
+
return getText;
|
|
92
107
|
},
|
|
93
|
-
|
|
94
|
-
return
|
|
108
|
+
isAncestorEmpty: function() {
|
|
109
|
+
return isAncestorEmpty;
|
|
95
110
|
},
|
|
96
|
-
|
|
97
|
-
return
|
|
111
|
+
isAncestorPath: function() {
|
|
112
|
+
return isAncestorPath;
|
|
98
113
|
},
|
|
99
|
-
|
|
100
|
-
return
|
|
114
|
+
isBlockNode: function() {
|
|
115
|
+
return isBlockNode;
|
|
101
116
|
},
|
|
102
|
-
|
|
103
|
-
return
|
|
117
|
+
isChildPath: function() {
|
|
118
|
+
return isChildPath;
|
|
119
|
+
},
|
|
120
|
+
isCommonPath: function() {
|
|
121
|
+
return isCommonPath;
|
|
104
122
|
},
|
|
105
123
|
isEditor: function() {
|
|
106
124
|
return isEditor;
|
|
@@ -111,77 +129,59 @@ _export(exports, {
|
|
|
111
129
|
isElement: function() {
|
|
112
130
|
return isElement;
|
|
113
131
|
},
|
|
114
|
-
|
|
115
|
-
return
|
|
132
|
+
isEndPoint: function() {
|
|
133
|
+
return isEndPoint;
|
|
116
134
|
},
|
|
117
|
-
|
|
118
|
-
return
|
|
135
|
+
isFirstChild: function() {
|
|
136
|
+
return isFirstChild;
|
|
119
137
|
},
|
|
120
|
-
|
|
121
|
-
return
|
|
138
|
+
isFirstChildPath: function() {
|
|
139
|
+
return isFirstChildPath;
|
|
122
140
|
},
|
|
123
|
-
|
|
124
|
-
return
|
|
141
|
+
isInline: function() {
|
|
142
|
+
return isInline;
|
|
125
143
|
},
|
|
126
|
-
|
|
127
|
-
return
|
|
144
|
+
isLastChildPath: function() {
|
|
145
|
+
return isLastChildPath;
|
|
128
146
|
},
|
|
129
|
-
|
|
130
|
-
return
|
|
147
|
+
isMarkActive: function() {
|
|
148
|
+
return isMarkActive;
|
|
131
149
|
},
|
|
132
|
-
|
|
133
|
-
return
|
|
150
|
+
isNode: function() {
|
|
151
|
+
return isNode;
|
|
134
152
|
},
|
|
135
|
-
|
|
136
|
-
return
|
|
153
|
+
isRangeAcrossBlocks: function() {
|
|
154
|
+
return isRangeAcrossBlocks;
|
|
137
155
|
},
|
|
138
|
-
|
|
139
|
-
return
|
|
156
|
+
isRangeCollapsed: function() {
|
|
157
|
+
return isRangeCollapsed;
|
|
140
158
|
},
|
|
141
|
-
|
|
142
|
-
return
|
|
159
|
+
isRangeExpanded: function() {
|
|
160
|
+
return isRangeExpanded;
|
|
143
161
|
},
|
|
144
|
-
|
|
145
|
-
return
|
|
162
|
+
isSelectionAtBlockEnd: function() {
|
|
163
|
+
return isSelectionAtBlockEnd;
|
|
146
164
|
},
|
|
147
|
-
|
|
148
|
-
return
|
|
165
|
+
isSelectionAtBlockStart: function() {
|
|
166
|
+
return isSelectionAtBlockStart;
|
|
149
167
|
},
|
|
150
|
-
|
|
151
|
-
return
|
|
168
|
+
isText: function() {
|
|
169
|
+
return isText;
|
|
170
|
+
},
|
|
171
|
+
match: function() {
|
|
172
|
+
return match;
|
|
152
173
|
},
|
|
153
174
|
matchNode: function() {
|
|
154
175
|
return matchNode;
|
|
155
176
|
},
|
|
156
|
-
someHtmlElement: function() {
|
|
157
|
-
return someHtmlElement;
|
|
158
|
-
},
|
|
159
|
-
getPointBefore: function() {
|
|
160
|
-
return getPointBefore;
|
|
161
|
-
},
|
|
162
|
-
getPointAfter: function() {
|
|
163
|
-
return getPointAfter;
|
|
164
|
-
},
|
|
165
|
-
isEndPoint: function() {
|
|
166
|
-
return isEndPoint;
|
|
167
|
-
},
|
|
168
|
-
isInline: function() {
|
|
169
|
-
return isInline;
|
|
170
|
-
},
|
|
171
177
|
queryNode: function() {
|
|
172
178
|
return queryNode;
|
|
173
179
|
},
|
|
174
|
-
|
|
175
|
-
return
|
|
176
|
-
},
|
|
177
|
-
createPathRef: function() {
|
|
178
|
-
return createPathRef;
|
|
179
|
-
},
|
|
180
|
-
match: function() {
|
|
181
|
-
return match;
|
|
180
|
+
someHtmlElement: function() {
|
|
181
|
+
return someHtmlElement;
|
|
182
182
|
},
|
|
183
|
-
|
|
184
|
-
return
|
|
183
|
+
someNode: function() {
|
|
184
|
+
return someNode;
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
const _platecommon = _interop_require_wildcard(require("@udecode/plate-common"));
|
|
@@ -207,7 +207,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
207
207
|
if (cache && cache.has(obj)) {
|
|
208
208
|
return cache.get(obj);
|
|
209
209
|
}
|
|
210
|
-
var newObj = {
|
|
210
|
+
var newObj = {
|
|
211
|
+
__proto__: null
|
|
212
|
+
};
|
|
211
213
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
212
214
|
for(var key in obj){
|
|
213
215
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
@@ -9,80 +9,80 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
withoutNormalizing: function() {
|
|
16
|
-
return withoutNormalizing;
|
|
17
|
-
},
|
|
18
|
-
setSelection: function() {
|
|
19
|
-
return setSelection;
|
|
20
|
-
},
|
|
21
|
-
select: function() {
|
|
22
|
-
return select;
|
|
23
|
-
},
|
|
24
|
-
moveSelection: function() {
|
|
25
|
-
return moveSelection;
|
|
26
|
-
},
|
|
27
|
-
moveChildren: function() {
|
|
28
|
-
return moveChildren;
|
|
12
|
+
addMark: function() {
|
|
13
|
+
return addMark;
|
|
29
14
|
},
|
|
30
15
|
collapseSelection: function() {
|
|
31
16
|
return collapseSelection;
|
|
32
17
|
},
|
|
33
|
-
|
|
34
|
-
return
|
|
18
|
+
deleteFragment: function() {
|
|
19
|
+
return deleteFragment;
|
|
35
20
|
},
|
|
36
|
-
|
|
37
|
-
return
|
|
21
|
+
deleteText: function() {
|
|
22
|
+
return deleteText;
|
|
38
23
|
},
|
|
39
24
|
insertNodes: function() {
|
|
40
25
|
return insertNodes;
|
|
41
26
|
},
|
|
42
|
-
|
|
43
|
-
return
|
|
27
|
+
insertText: function() {
|
|
28
|
+
return insertText;
|
|
44
29
|
},
|
|
45
30
|
liftNodes: function() {
|
|
46
31
|
return liftNodes;
|
|
47
32
|
},
|
|
48
|
-
|
|
49
|
-
return
|
|
33
|
+
moveChildren: function() {
|
|
34
|
+
return moveChildren;
|
|
50
35
|
},
|
|
51
|
-
|
|
52
|
-
return
|
|
36
|
+
moveNodes: function() {
|
|
37
|
+
return moveNodes;
|
|
53
38
|
},
|
|
54
|
-
|
|
55
|
-
return
|
|
39
|
+
moveSelection: function() {
|
|
40
|
+
return moveSelection;
|
|
41
|
+
},
|
|
42
|
+
normalize: function() {
|
|
43
|
+
return normalize;
|
|
56
44
|
},
|
|
57
45
|
removeMark: function() {
|
|
58
46
|
return removeMark;
|
|
59
47
|
},
|
|
60
|
-
|
|
61
|
-
return
|
|
48
|
+
removeNodes: function() {
|
|
49
|
+
return removeNodes;
|
|
50
|
+
},
|
|
51
|
+
select: function() {
|
|
52
|
+
return select;
|
|
53
|
+
},
|
|
54
|
+
setEditorValue: function() {
|
|
55
|
+
return setEditorValue;
|
|
56
|
+
},
|
|
57
|
+
setNodes: function() {
|
|
58
|
+
return setNodes;
|
|
59
|
+
},
|
|
60
|
+
setSelection: function() {
|
|
61
|
+
return setSelection;
|
|
62
|
+
},
|
|
63
|
+
splitNodes: function() {
|
|
64
|
+
return splitNodes;
|
|
62
65
|
},
|
|
63
66
|
toggleMark: function() {
|
|
64
67
|
return toggleMark;
|
|
65
68
|
},
|
|
66
|
-
|
|
67
|
-
return
|
|
68
|
-
},
|
|
69
|
-
insertText: function() {
|
|
70
|
-
return insertText;
|
|
69
|
+
toggleNodeType: function() {
|
|
70
|
+
return toggleNodeType;
|
|
71
71
|
},
|
|
72
|
-
|
|
73
|
-
return
|
|
72
|
+
unhangRange: function() {
|
|
73
|
+
return unhangRange;
|
|
74
74
|
},
|
|
75
|
-
|
|
76
|
-
return
|
|
75
|
+
unsetNodes: function() {
|
|
76
|
+
return unsetNodes;
|
|
77
77
|
},
|
|
78
|
-
|
|
79
|
-
return
|
|
78
|
+
unwrapNodes: function() {
|
|
79
|
+
return unwrapNodes;
|
|
80
80
|
},
|
|
81
|
-
|
|
82
|
-
return
|
|
81
|
+
withoutNormalizing: function() {
|
|
82
|
+
return withoutNormalizing;
|
|
83
83
|
},
|
|
84
|
-
|
|
85
|
-
return
|
|
84
|
+
wrapNodes: function() {
|
|
85
|
+
return wrapNodes;
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
const _platecommon = _interop_require_wildcard(require("@udecode/plate-common"));
|
|
@@ -108,7 +108,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
108
108
|
if (cache && cache.has(obj)) {
|
|
109
109
|
return cache.get(obj);
|
|
110
110
|
}
|
|
111
|
-
var newObj = {
|
|
111
|
+
var newObj = {
|
|
112
|
+
__proto__: null
|
|
113
|
+
};
|
|
112
114
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
113
115
|
for(var key in obj){
|
|
114
116
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|