@contentful/field-editor-rich-text 3.16.10 → 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.
Files changed (208) hide show
  1. package/dist/cjs/ContentfulEditorProvider.js +8 -8
  2. package/dist/cjs/RichTextEditor.js +6 -4
  3. package/dist/cjs/SdkProvider.js +4 -2
  4. package/dist/cjs/SyncEditorChanges.js +4 -2
  5. package/dist/cjs/Toolbar/_tests_/toolbar.test.js +6 -4
  6. package/dist/cjs/Toolbar/components/EmbedEntityWidget.js +4 -2
  7. package/dist/cjs/Toolbar/components/EmbeddedEntityDropdownButton.js +4 -2
  8. package/dist/cjs/Toolbar/components/StickyToolbarWrapper.js +1 -1
  9. package/dist/cjs/Toolbar/index.js +5 -3
  10. package/dist/cjs/__fixtures__/FakeSdk.js +3 -3
  11. package/dist/cjs/__fixtures__/asset/index.js +5 -5
  12. package/dist/cjs/__fixtures__/entry/index.js +3 -3
  13. package/dist/cjs/__fixtures__/fixtures.js +3 -1
  14. package/dist/cjs/dialogs/HypelinkDialog/HyperlinkDialog.js +17 -15
  15. package/dist/cjs/dialogs/openRichTextDialog.js +4 -2
  16. package/dist/cjs/dialogs/renderRichTextDialog.js +3 -1
  17. package/dist/cjs/helpers/__tests__/removeInternalMarks.test.js +1 -1
  18. package/dist/cjs/helpers/editor.js +42 -42
  19. package/dist/cjs/helpers/environment.js +3 -3
  20. package/dist/cjs/helpers/formatDateAndTime.js +3 -3
  21. package/dist/cjs/helpers/nodeFactory.js +6 -6
  22. package/dist/cjs/helpers/sdkNavigatorSlideIn.js +1 -1
  23. package/dist/cjs/helpers/transformers.js +5 -5
  24. package/dist/cjs/helpers/validations.js +5 -5
  25. package/dist/cjs/index.js +6 -4
  26. package/dist/cjs/internal/constants.js +3 -1
  27. package/dist/cjs/internal/hooks.js +7 -5
  28. package/dist/cjs/internal/misc.js +12 -10
  29. package/dist/cjs/internal/queries.js +107 -105
  30. package/dist/cjs/internal/transforms.js +49 -47
  31. package/dist/cjs/plugins/Break/createExitBreakPlugin.test.js +1 -1
  32. package/dist/cjs/plugins/Break/createSoftBreakPlugin.test.js +1 -1
  33. package/dist/cjs/plugins/CommandPalette/components/CommandList.js +9 -7
  34. package/dist/cjs/plugins/CommandPalette/components/CommandPrompt.js +3 -1
  35. package/dist/cjs/plugins/CommandPalette/hooks/useCommandList.js +3 -1
  36. package/dist/cjs/plugins/CommandPalette/onKeyDown.spec.js +5 -3
  37. package/dist/cjs/plugins/CommandPalette/useCommands.js +2 -2
  38. package/dist/cjs/plugins/EmbeddedEntityBlock/LinkedEntityBlock.js +6 -4
  39. package/dist/cjs/plugins/EmbeddedEntityBlock/index.js +3 -3
  40. package/dist/cjs/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +7 -5
  41. package/dist/cjs/plugins/EmbeddedEntityInline/LinkedEntityInline.js +6 -4
  42. package/dist/cjs/plugins/EmbeddedResourceBlock/LinkedResourceBlock.js +2 -2
  43. package/dist/cjs/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +7 -5
  44. package/dist/cjs/plugins/EmbeddedResourceInline/LinkedResourceInline.js +2 -2
  45. package/dist/cjs/plugins/Heading/components/Heading.js +3 -1
  46. package/dist/cjs/plugins/Heading/components/ToolbarHeadingButton.js +3 -1
  47. package/dist/cjs/plugins/Heading/createHeadingPlugin.js +1 -1
  48. package/dist/cjs/plugins/Hr/index.js +8 -6
  49. package/dist/cjs/plugins/Hyperlink/HyperlinkModal.js +7 -5
  50. package/dist/cjs/plugins/Hyperlink/components/EntityHyperlink.js +6 -4
  51. package/dist/cjs/plugins/Hyperlink/components/LinkPopover.js +4 -2
  52. package/dist/cjs/plugins/Hyperlink/components/ResourceHyperlink.js +6 -4
  53. package/dist/cjs/plugins/Hyperlink/components/ToolbarHyperlinkButton.js +3 -1
  54. package/dist/cjs/plugins/Hyperlink/components/UrlHyperlink.js +4 -2
  55. package/dist/cjs/plugins/Hyperlink/components/linkHandlers.js +3 -3
  56. package/dist/cjs/plugins/Hyperlink/createHyperlinkPlugin.js +4 -2
  57. package/dist/cjs/plugins/Hyperlink/useEntityInfo.js +3 -3
  58. package/dist/cjs/plugins/Hyperlink/useResourceEntityInfo.js +5 -3
  59. package/dist/cjs/plugins/Hyperlink/utils.js +4 -4
  60. package/dist/cjs/plugins/List/__tests__/insertListBreak.test.js +1 -1
  61. package/dist/cjs/plugins/List/__tests__/insertListFragment.test.js +1 -1
  62. package/dist/cjs/plugins/List/components/List.js +6 -4
  63. package/dist/cjs/plugins/List/components/ListItem.js +3 -1
  64. package/dist/cjs/plugins/List/components/ToolbarListButton.js +3 -1
  65. package/dist/cjs/plugins/List/insertListBreak.js +2 -2
  66. package/dist/cjs/plugins/List/insertListFragment.js +1 -1
  67. package/dist/cjs/plugins/List/onKeyDownList.js +1 -1
  68. package/dist/cjs/plugins/List/transforms/moveListItemDown.js +1 -1
  69. package/dist/cjs/plugins/List/transforms/moveListItems.js +1 -1
  70. package/dist/cjs/plugins/List/transforms/moveListItems.test.js +1 -1
  71. package/dist/cjs/plugins/List/transforms/toggleList.js +3 -3
  72. package/dist/cjs/plugins/List/transforms/toggleList.spec.js +9 -9
  73. package/dist/cjs/plugins/List/transforms/unwrapList.js +1 -1
  74. package/dist/cjs/plugins/List/utils.js +11 -11
  75. package/dist/cjs/plugins/List/withList.js +1 -1
  76. package/dist/cjs/plugins/Marks/Bold.js +6 -4
  77. package/dist/cjs/plugins/Marks/Code.js +6 -4
  78. package/dist/cjs/plugins/Marks/Italic.js +6 -4
  79. package/dist/cjs/plugins/Marks/Subscript.js +7 -5
  80. package/dist/cjs/plugins/Marks/Superscript.js +7 -5
  81. package/dist/cjs/plugins/Marks/Underline.js +3 -1
  82. package/dist/cjs/plugins/Marks/components/MarkToolbarButton.js +5 -3
  83. package/dist/cjs/plugins/Marks/helpers.js +4 -4
  84. package/dist/cjs/plugins/Normalizer/createNormalizerPlugin.test.js +3 -3
  85. package/dist/cjs/plugins/Normalizer/utils.js +3 -3
  86. package/dist/cjs/plugins/Normalizer/withNormalizer.js +2 -2
  87. package/dist/cjs/plugins/Paragraph/Paragraph.js +3 -1
  88. package/dist/cjs/plugins/Paragraph/createParagraphPlugin.js +1 -1
  89. package/dist/cjs/plugins/PasteHTML/createPasteHTMLPlugin.js +5 -5
  90. package/dist/cjs/plugins/Quote/components/Quote.js +3 -1
  91. package/dist/cjs/plugins/Quote/components/ToolbarQuoteButton.js +3 -1
  92. package/dist/cjs/plugins/Quote/toggleQuote.js +4 -4
  93. package/dist/cjs/plugins/Quote/withQuote.js +2 -2
  94. package/dist/cjs/plugins/Table/__tests__/helpers.test.js +1 -1
  95. package/dist/cjs/plugins/Table/actions/addColumn.js +4 -4
  96. package/dist/cjs/plugins/Table/actions/addRow.js +3 -3
  97. package/dist/cjs/plugins/Table/components/Cell.js +3 -1
  98. package/dist/cjs/plugins/Table/components/HeaderCell.js +3 -1
  99. package/dist/cjs/plugins/Table/components/Row.js +3 -1
  100. package/dist/cjs/plugins/Table/components/Table.js +3 -1
  101. package/dist/cjs/plugins/Table/components/TableActions.js +6 -4
  102. package/dist/cjs/plugins/Table/components/ToolbarButton.js +3 -1
  103. package/dist/cjs/plugins/Table/createTablePlugin.js +1 -1
  104. package/dist/cjs/plugins/Table/helpers.js +12 -12
  105. package/dist/cjs/plugins/Table/insertTableFragment.js +1 -1
  106. package/dist/cjs/plugins/Table/onKeyDownTable.js +2 -2
  107. package/dist/cjs/plugins/Table/tableTracking.js +6 -6
  108. package/dist/cjs/plugins/Text/__tests__/createTextPlugin.test.js +2 -2
  109. package/dist/cjs/plugins/Text/createTextPlugin.js +3 -3
  110. package/dist/cjs/plugins/Tracking/createTrackingPlugin.js +4 -4
  111. package/dist/cjs/plugins/Tracking/utils.js +3 -1
  112. package/dist/cjs/plugins/index.js +3 -3
  113. package/dist/cjs/plugins/shared/EmbeddedBlockToolbarIcon.js +7 -5
  114. package/dist/cjs/plugins/shared/EmbeddedBlockUtil.js +5 -5
  115. package/dist/cjs/plugins/shared/EmbeddedInlineToolbarIcon.js +4 -2
  116. package/dist/cjs/plugins/shared/EmbeddedInlineUtil.js +4 -4
  117. package/dist/cjs/plugins/shared/FetchingWrappedAssetCard.js +6 -4
  118. package/dist/cjs/plugins/shared/FetchingWrappedEntryCard.js +7 -5
  119. package/dist/cjs/plugins/shared/FetchingWrappedResourceCard.js +6 -4
  120. package/dist/cjs/plugins/shared/LinkedBlockWrapper.js +1 -1
  121. package/dist/cjs/plugins/shared/LinkedInlineWrapper.js +4 -2
  122. package/dist/cjs/plugins/shared/ResourceNewBadge.js +3 -1
  123. package/dist/cjs/plugins/shared/ToolbarButton.js +4 -2
  124. package/dist/cjs/plugins/shared/__tests__/FetchingWrappedAssetCard.test.js +4 -2
  125. package/dist/cjs/plugins/shared/__tests__/FetchingWrappedEntryCard.test.js +4 -2
  126. package/dist/cjs/plugins/shared/__tests__/FetchingWrappedResourceCard.test.js +9 -7
  127. package/dist/cjs/test-utils/validation.js +3 -3
  128. package/dist/esm/ContentfulEditorProvider.js +1 -1
  129. package/dist/esm/RichTextEditor.js +3 -3
  130. package/dist/esm/SdkProvider.js +1 -1
  131. package/dist/esm/SyncEditorChanges.js +1 -1
  132. package/dist/esm/Toolbar/_tests_/toolbar.test.js +3 -3
  133. package/dist/esm/Toolbar/components/EmbedEntityWidget.js +1 -1
  134. package/dist/esm/Toolbar/components/EmbeddedEntityDropdownButton.js +1 -1
  135. package/dist/esm/Toolbar/components/StickyToolbarWrapper.js +1 -1
  136. package/dist/esm/Toolbar/index.js +2 -2
  137. package/dist/esm/__fixtures__/FakeSdk.js +3 -3
  138. package/dist/esm/dialogs/HypelinkDialog/HyperlinkDialog.js +11 -11
  139. package/dist/esm/dialogs/openRichTextDialog.js +1 -1
  140. package/dist/esm/helpers/__tests__/removeInternalMarks.test.js +1 -1
  141. package/dist/esm/helpers/editor.js +3 -3
  142. package/dist/esm/helpers/sdkNavigatorSlideIn.js +1 -1
  143. package/dist/esm/plugins/Break/createExitBreakPlugin.test.js +1 -1
  144. package/dist/esm/plugins/Break/createSoftBreakPlugin.test.js +1 -1
  145. package/dist/esm/plugins/CommandPalette/components/CommandList.js +6 -6
  146. package/dist/esm/plugins/CommandPalette/onKeyDown.spec.js +2 -2
  147. package/dist/esm/plugins/CommandPalette/useCommands.js +2 -2
  148. package/dist/esm/plugins/EmbeddedEntityBlock/LinkedEntityBlock.js +3 -3
  149. package/dist/esm/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +4 -4
  150. package/dist/esm/plugins/EmbeddedEntityInline/LinkedEntityInline.js +3 -3
  151. package/dist/esm/plugins/EmbeddedResourceBlock/LinkedResourceBlock.js +2 -2
  152. package/dist/esm/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +4 -4
  153. package/dist/esm/plugins/EmbeddedResourceInline/LinkedResourceInline.js +2 -2
  154. package/dist/esm/plugins/Heading/createHeadingPlugin.js +1 -1
  155. package/dist/esm/plugins/Hyperlink/HyperlinkModal.js +4 -4
  156. package/dist/esm/plugins/Hyperlink/components/EntityHyperlink.js +3 -3
  157. package/dist/esm/plugins/Hyperlink/components/LinkPopover.js +1 -1
  158. package/dist/esm/plugins/Hyperlink/components/ResourceHyperlink.js +3 -3
  159. package/dist/esm/plugins/Hyperlink/components/UrlHyperlink.js +1 -1
  160. package/dist/esm/plugins/Hyperlink/createHyperlinkPlugin.js +1 -1
  161. package/dist/esm/plugins/Hyperlink/useEntityInfo.js +3 -3
  162. package/dist/esm/plugins/Hyperlink/useResourceEntityInfo.js +2 -2
  163. package/dist/esm/plugins/Hyperlink/utils.js +1 -1
  164. package/dist/esm/plugins/List/__tests__/insertListBreak.test.js +1 -1
  165. package/dist/esm/plugins/List/__tests__/insertListFragment.test.js +1 -1
  166. package/dist/esm/plugins/List/insertListBreak.js +2 -2
  167. package/dist/esm/plugins/List/insertListFragment.js +1 -1
  168. package/dist/esm/plugins/List/onKeyDownList.js +1 -1
  169. package/dist/esm/plugins/List/transforms/moveListItemDown.js +1 -1
  170. package/dist/esm/plugins/List/transforms/moveListItems.js +1 -1
  171. package/dist/esm/plugins/List/transforms/moveListItems.test.js +1 -1
  172. package/dist/esm/plugins/List/transforms/toggleList.js +3 -3
  173. package/dist/esm/plugins/List/transforms/toggleList.spec.js +9 -9
  174. package/dist/esm/plugins/List/transforms/unwrapList.js +1 -1
  175. package/dist/esm/plugins/List/utils.js +1 -1
  176. package/dist/esm/plugins/List/withList.js +1 -1
  177. package/dist/esm/plugins/Marks/components/MarkToolbarButton.js +2 -2
  178. package/dist/esm/plugins/Marks/helpers.js +1 -1
  179. package/dist/esm/plugins/Normalizer/createNormalizerPlugin.test.js +3 -3
  180. package/dist/esm/plugins/Normalizer/withNormalizer.js +2 -2
  181. package/dist/esm/plugins/Paragraph/createParagraphPlugin.js +1 -1
  182. package/dist/esm/plugins/PasteHTML/createPasteHTMLPlugin.js +1 -1
  183. package/dist/esm/plugins/Quote/toggleQuote.js +1 -1
  184. package/dist/esm/plugins/Quote/withQuote.js +2 -2
  185. package/dist/esm/plugins/Table/__tests__/helpers.test.js +1 -1
  186. package/dist/esm/plugins/Table/actions/addColumn.js +1 -1
  187. package/dist/esm/plugins/Table/createTablePlugin.js +1 -1
  188. package/dist/esm/plugins/Table/insertTableFragment.js +1 -1
  189. package/dist/esm/plugins/Table/onKeyDownTable.js +2 -2
  190. package/dist/esm/plugins/Table/tableTracking.js +6 -6
  191. package/dist/esm/plugins/Text/__tests__/createTextPlugin.test.js +2 -2
  192. package/dist/esm/plugins/Text/createTextPlugin.js +3 -3
  193. package/dist/esm/plugins/Tracking/createTrackingPlugin.js +1 -1
  194. package/dist/esm/plugins/shared/EmbeddedBlockToolbarIcon.js +1 -1
  195. package/dist/esm/plugins/shared/EmbeddedBlockUtil.js +5 -5
  196. package/dist/esm/plugins/shared/EmbeddedInlineToolbarIcon.js +1 -1
  197. package/dist/esm/plugins/shared/EmbeddedInlineUtil.js +4 -4
  198. package/dist/esm/plugins/shared/FetchingWrappedAssetCard.js +3 -3
  199. package/dist/esm/plugins/shared/FetchingWrappedEntryCard.js +4 -4
  200. package/dist/esm/plugins/shared/FetchingWrappedResourceCard.js +3 -3
  201. package/dist/esm/plugins/shared/LinkedBlockWrapper.js +1 -1
  202. package/dist/esm/plugins/shared/LinkedInlineWrapper.js +1 -1
  203. package/dist/esm/plugins/shared/ToolbarButton.js +1 -1
  204. package/dist/esm/plugins/shared/__tests__/FetchingWrappedAssetCard.test.js +1 -1
  205. package/dist/esm/plugins/shared/__tests__/FetchingWrappedEntryCard.test.js +1 -1
  206. package/dist/esm/plugins/shared/__tests__/FetchingWrappedResourceCard.test.js +6 -6
  207. package/dist/esm/test-utils/validation.js +3 -3
  208. package/package.json +5 -5
@@ -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 , newSlideLevel })=>{
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
- transformRemove: function() {
13
- return transformRemove;
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
- isNodeTypeEnabled: function() {
22
- return isNodeTypeEnabled;
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
- useReadOnly: function() {
13
- return useReadOnly;
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
- useFocused: function() {
25
- return useFocused;
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
- getText: function() {
13
- return getText;
12
+ createPathRef: function() {
13
+ return createPathRef;
14
14
  },
15
- isText: function() {
16
- return isText;
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
- getStartPoint: function() {
22
- return getStartPoint;
39
+ getLastChildPath: function() {
40
+ return getLastChildPath;
23
41
  },
24
- isNode: function() {
25
- return isNode;
42
+ getLastNodeByLevel: function() {
43
+ return getLastNodeByLevel;
26
44
  },
27
- isSelectionAtBlockEnd: function() {
28
- return isSelectionAtBlockEnd;
45
+ getMarks: function() {
46
+ return getMarks;
29
47
  },
30
- isSelectionAtBlockStart: function() {
31
- return isSelectionAtBlockStart;
48
+ getNextNode: function() {
49
+ return getNextNode;
32
50
  },
33
- getBlockAbove: function() {
34
- return getBlockAbove;
51
+ getNextPath: function() {
52
+ return getNextPath;
35
53
  },
36
- getNodeEntry: function() {
37
- return getNodeEntry;
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
- getNodeChildren: function() {
43
- return getNodeChildren;
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
- someNode: function() {
49
- return someNode;
50
- },
51
- getChildren: function() {
52
- return getChildren;
53
- },
54
- isFirstChild: function() {
55
- return isFirstChild;
72
+ getParentPath: function() {
73
+ return getParentPath;
56
74
  },
57
- getDescendantNodeByPath: function() {
58
- return getDescendantNodeByPath;
75
+ getPathLevels: function() {
76
+ return getPathLevels;
59
77
  },
60
- getNodeDescendants: function() {
61
- return getNodeDescendants;
78
+ getPluginType: function() {
79
+ return getPluginType;
62
80
  },
63
- isRangeCollapsed: function() {
64
- return isRangeCollapsed;
81
+ getPointAfter: function() {
82
+ return getPointAfter;
65
83
  },
66
- isRangeAcrossBlocks: function() {
67
- return isRangeAcrossBlocks;
84
+ getPointBefore: function() {
85
+ return getPointBefore;
68
86
  },
69
- isRangeExpanded: function() {
70
- return isRangeExpanded;
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
- getAboveNode: function() {
85
- return getAboveNode;
99
+ getRangeStart: function() {
100
+ return getRangeStart;
86
101
  },
87
- getNextNode: function() {
88
- return getNextNode;
102
+ getStartPoint: function() {
103
+ return getStartPoint;
89
104
  },
90
- getCommonNode: function() {
91
- return getCommonNode;
105
+ getText: function() {
106
+ return getText;
92
107
  },
93
- getNodeTexts: function() {
94
- return getNodeTexts;
108
+ isAncestorEmpty: function() {
109
+ return isAncestorEmpty;
95
110
  },
96
- findNode: function() {
97
- return findNode;
111
+ isAncestorPath: function() {
112
+ return isAncestorPath;
98
113
  },
99
- isMarkActive: function() {
100
- return isMarkActive;
114
+ isBlockNode: function() {
115
+ return isBlockNode;
101
116
  },
102
- getMarks: function() {
103
- return getMarks;
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
- isBlockNode: function() {
115
- return isBlockNode;
132
+ isEndPoint: function() {
133
+ return isEndPoint;
116
134
  },
117
- findNodePath: function() {
118
- return findNodePath;
135
+ isFirstChild: function() {
136
+ return isFirstChild;
119
137
  },
120
- isAncestorPath: function() {
121
- return isAncestorPath;
138
+ isFirstChildPath: function() {
139
+ return isFirstChildPath;
122
140
  },
123
- isAncestorEmpty: function() {
124
- return isAncestorEmpty;
141
+ isInline: function() {
142
+ return isInline;
125
143
  },
126
- getParentPath: function() {
127
- return getParentPath;
144
+ isLastChildPath: function() {
145
+ return isLastChildPath;
128
146
  },
129
- getNextPath: function() {
130
- return getNextPath;
147
+ isMarkActive: function() {
148
+ return isMarkActive;
131
149
  },
132
- getPreviousPath: function() {
133
- return getPreviousPath;
150
+ isNode: function() {
151
+ return isNode;
134
152
  },
135
- getLastChildPath: function() {
136
- return getLastChildPath;
153
+ isRangeAcrossBlocks: function() {
154
+ return isRangeAcrossBlocks;
137
155
  },
138
- getPathLevels: function() {
139
- return getPathLevels;
156
+ isRangeCollapsed: function() {
157
+ return isRangeCollapsed;
140
158
  },
141
- isCommonPath: function() {
142
- return isCommonPath;
159
+ isRangeExpanded: function() {
160
+ return isRangeExpanded;
143
161
  },
144
- isFirstChildPath: function() {
145
- return isFirstChildPath;
162
+ isSelectionAtBlockEnd: function() {
163
+ return isSelectionAtBlockEnd;
146
164
  },
147
- isLastChildPath: function() {
148
- return isLastChildPath;
165
+ isSelectionAtBlockStart: function() {
166
+ return isSelectionAtBlockStart;
149
167
  },
150
- isChildPath: function() {
151
- return isChildPath;
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
- getPluginType: function() {
175
- return getPluginType;
176
- },
177
- createPathRef: function() {
178
- return createPathRef;
179
- },
180
- match: function() {
181
- return match;
180
+ someHtmlElement: function() {
181
+ return someHtmlElement;
182
182
  },
183
- getLastNodeByLevel: function() {
184
- return getLastNodeByLevel;
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
- normalize: function() {
13
- return normalize;
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
- setNodes: function() {
34
- return setNodes;
18
+ deleteFragment: function() {
19
+ return deleteFragment;
35
20
  },
36
- unsetNodes: function() {
37
- return unsetNodes;
21
+ deleteText: function() {
22
+ return deleteText;
38
23
  },
39
24
  insertNodes: function() {
40
25
  return insertNodes;
41
26
  },
42
- splitNodes: function() {
43
- return splitNodes;
27
+ insertText: function() {
28
+ return insertText;
44
29
  },
45
30
  liftNodes: function() {
46
31
  return liftNodes;
47
32
  },
48
- unwrapNodes: function() {
49
- return unwrapNodes;
33
+ moveChildren: function() {
34
+ return moveChildren;
50
35
  },
51
- wrapNodes: function() {
52
- return wrapNodes;
36
+ moveNodes: function() {
37
+ return moveNodes;
53
38
  },
54
- toggleNodeType: function() {
55
- return toggleNodeType;
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
- unhangRange: function() {
61
- return unhangRange;
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
- addMark: function() {
67
- return addMark;
68
- },
69
- insertText: function() {
70
- return insertText;
69
+ toggleNodeType: function() {
70
+ return toggleNodeType;
71
71
  },
72
- deleteText: function() {
73
- return deleteText;
72
+ unhangRange: function() {
73
+ return unhangRange;
74
74
  },
75
- removeNodes: function() {
76
- return removeNodes;
75
+ unsetNodes: function() {
76
+ return unsetNodes;
77
77
  },
78
- moveNodes: function() {
79
- return moveNodes;
78
+ unwrapNodes: function() {
79
+ return unwrapNodes;
80
80
  },
81
- deleteFragment: function() {
82
- return deleteFragment;
81
+ withoutNormalizing: function() {
82
+ return withoutNormalizing;
83
83
  },
84
- setEditorValue: function() {
85
- return setEditorValue;
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)) {
@@ -18,7 +18,7 @@ describe('Exit Break', ()=>{
18
18
  }
19
19
  }
20
20
  ];
21
- const { editor } = (0, _testutils.createTestEditor)({
21
+ const { editor } = (0, _testutils.createTestEditor)({
22
22
  input,
23
23
  plugins: [
24
24
  (0, _testutils.mockPlugin)({}),
@@ -22,7 +22,7 @@ describe('Soft Break', ()=>{
22
22
  }
23
23
  }
24
24
  ];
25
- const { editor } = (0, _testutils.createTestEditor)({
25
+ const { editor } = (0, _testutils.createTestEditor)({
26
26
  input,
27
27
  plugins: [
28
28
  (0, _testutils.mockPlugin)({