@contentful/field-editor-rich-text 4.6.0 → 4.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.
Files changed (159) hide show
  1. package/dist/cjs/RichTextEditor.js +11 -11
  2. package/dist/cjs/Toolbar/_tests_/toolbar.test.js +12 -12
  3. package/dist/cjs/Toolbar/components/ButtonRedo.js +3 -3
  4. package/dist/cjs/Toolbar/components/ButtonUndo.js +3 -3
  5. package/dist/cjs/Toolbar/components/EmbedEntityWidget.js +6 -6
  6. package/dist/cjs/Toolbar/components/EmbeddedEntityDropdownButton.js +5 -5
  7. package/dist/cjs/Toolbar/components/StickyToolbarWrapper.js +1 -1
  8. package/dist/cjs/Toolbar/index.js +28 -28
  9. package/dist/cjs/dialogs/HypelinkDialog/HyperlinkDialog.js +20 -20
  10. package/dist/cjs/dialogs/openRichTextDialog.js +1 -1
  11. package/dist/cjs/dialogs/renderRichTextDialog.js +2 -2
  12. package/dist/cjs/helpers/__tests__/removeInternalMarks.test.js +8 -8
  13. package/dist/cjs/plugins/Break/createExitBreakPlugin.test.js +1 -1
  14. package/dist/cjs/plugins/Break/createSoftBreakPlugin.test.js +1 -1
  15. package/dist/cjs/plugins/CommandPalette/components/CommandList.js +26 -26
  16. package/dist/cjs/plugins/CommandPalette/components/CommandPrompt.js +2 -2
  17. package/dist/cjs/plugins/EmbeddedEntityBlock/LinkedEntityBlock.js +3 -3
  18. package/dist/cjs/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +11 -11
  19. package/dist/cjs/plugins/EmbeddedEntityInline/LinkedEntityInline.js +2 -2
  20. package/dist/cjs/plugins/EmbeddedResourceBlock/LinkedResourceBlock.js +2 -2
  21. package/dist/cjs/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +5 -5
  22. package/dist/cjs/plugins/EmbeddedResourceInline/LinkedResourceInline.js +2 -2
  23. package/dist/cjs/plugins/Heading/__tests__/createHeadingPlugin.test.js +31 -31
  24. package/dist/cjs/plugins/Heading/components/Heading.js +7 -7
  25. package/dist/cjs/plugins/Heading/components/ToolbarHeadingButton.js +6 -6
  26. package/dist/cjs/plugins/Hr/index.js +5 -5
  27. package/dist/cjs/plugins/Hyperlink/HyperlinkModal.js +19 -19
  28. package/dist/cjs/plugins/Hyperlink/__tests__/createHyperlinkPlugin.test.js +7 -7
  29. package/dist/cjs/plugins/Hyperlink/components/EntityHyperlink.js +3 -3
  30. package/dist/cjs/plugins/Hyperlink/components/LinkPopover.js +13 -13
  31. package/dist/cjs/plugins/Hyperlink/components/ResourceHyperlink.js +3 -3
  32. package/dist/cjs/plugins/Hyperlink/components/ToolbarHyperlinkButton.js +2 -2
  33. package/dist/cjs/plugins/Hyperlink/components/UrlHyperlink.js +3 -3
  34. package/dist/cjs/plugins/List/__tests__/createListPlugin.test.js +12 -12
  35. package/dist/cjs/plugins/List/__tests__/insertListBreak.test.js +23 -23
  36. package/dist/cjs/plugins/List/__tests__/insertListFragment.test.js +20 -20
  37. package/dist/cjs/plugins/List/components/List.js +1 -1
  38. package/dist/cjs/plugins/List/components/ListItem.js +1 -1
  39. package/dist/cjs/plugins/List/components/ToolbarListButton.js +3 -3
  40. package/dist/cjs/plugins/List/transforms/moveListItems.test.js +12 -12
  41. package/dist/cjs/plugins/List/transforms/toggleList.spec.js +18 -18
  42. package/dist/cjs/plugins/Marks/Bold.js +2 -2
  43. package/dist/cjs/plugins/Marks/Code.js +2 -2
  44. package/dist/cjs/plugins/Marks/Italic.js +2 -2
  45. package/dist/cjs/plugins/Marks/Strikethrough.js +6 -6
  46. package/dist/cjs/plugins/Marks/Subscript.js +4 -4
  47. package/dist/cjs/plugins/Marks/Superscript.js +4 -4
  48. package/dist/cjs/plugins/Marks/Underline.js +2 -2
  49. package/dist/cjs/plugins/Marks/components/MarkToolbarButton.js +2 -2
  50. package/dist/cjs/plugins/Normalizer/createNormalizerPlugin.test.js +8 -8
  51. package/dist/cjs/plugins/Paragraph/Paragraph.js +1 -1
  52. package/dist/cjs/plugins/Paragraph/__tests__/createParagraphPlugin.test.js +31 -31
  53. package/dist/cjs/plugins/Quote/__test__/createQuotePlugin.test.js +20 -20
  54. package/dist/cjs/plugins/Quote/components/Quote.js +1 -1
  55. package/dist/cjs/plugins/Quote/components/ToolbarQuoteButton.js +2 -2
  56. package/dist/cjs/plugins/Table/__tests__/createTablePlugin.test.js +21 -21
  57. package/dist/cjs/plugins/Table/__tests__/helpers.test.js +2 -2
  58. package/dist/cjs/plugins/Table/components/Cell.js +2 -2
  59. package/dist/cjs/plugins/Table/components/HeaderCell.js +2 -2
  60. package/dist/cjs/plugins/Table/components/Row.js +1 -1
  61. package/dist/cjs/plugins/Table/components/Table.js +3 -3
  62. package/dist/cjs/plugins/Table/components/TableActions.js +11 -11
  63. package/dist/cjs/plugins/Table/components/ToolbarButton.js +2 -2
  64. package/dist/cjs/plugins/Text/__tests__/createTextPlugin.test.js +14 -14
  65. package/dist/cjs/plugins/shared/EmbeddedBlockToolbarIcon.js +4 -4
  66. package/dist/cjs/plugins/shared/EmbeddedBlockUtil.js +2 -1
  67. package/dist/cjs/plugins/shared/EmbeddedInlineToolbarIcon.js +4 -4
  68. package/dist/cjs/plugins/shared/EmbeddedInlineUtil.js +2 -1
  69. package/dist/cjs/plugins/shared/FetchingWrappedAssetCard.js +6 -6
  70. package/dist/cjs/plugins/shared/FetchingWrappedEntryCard.js +6 -6
  71. package/dist/cjs/plugins/shared/FetchingWrappedResourceCard.js +6 -6
  72. package/dist/cjs/plugins/shared/LinkedBlockWrapper.js +2 -2
  73. package/dist/cjs/plugins/shared/LinkedInlineWrapper.js +2 -2
  74. package/dist/cjs/plugins/shared/ResourceNewBadge.js +1 -1
  75. package/dist/cjs/plugins/shared/ToolbarButton.js +2 -2
  76. package/dist/cjs/plugins/shared/__tests__/FetchingWrappedAssetCard.test.js +2 -2
  77. package/dist/cjs/plugins/shared/__tests__/FetchingWrappedEntryCard.test.js +2 -2
  78. package/dist/cjs/plugins/shared/__tests__/FetchingWrappedResourceCard.test.js +2 -2
  79. package/dist/esm/RichTextEditor.js +11 -11
  80. package/dist/esm/Toolbar/_tests_/toolbar.test.js +12 -12
  81. package/dist/esm/Toolbar/components/ButtonRedo.js +3 -3
  82. package/dist/esm/Toolbar/components/ButtonUndo.js +3 -3
  83. package/dist/esm/Toolbar/components/EmbedEntityWidget.js +6 -6
  84. package/dist/esm/Toolbar/components/EmbeddedEntityDropdownButton.js +5 -5
  85. package/dist/esm/Toolbar/components/StickyToolbarWrapper.js +1 -1
  86. package/dist/esm/Toolbar/index.js +30 -30
  87. package/dist/esm/dialogs/HypelinkDialog/HyperlinkDialog.js +20 -20
  88. package/dist/esm/dialogs/openRichTextDialog.js +1 -1
  89. package/dist/esm/dialogs/renderRichTextDialog.js +2 -2
  90. package/dist/esm/helpers/__tests__/removeInternalMarks.test.js +8 -8
  91. package/dist/esm/plugins/Break/createExitBreakPlugin.test.js +1 -1
  92. package/dist/esm/plugins/Break/createSoftBreakPlugin.test.js +1 -1
  93. package/dist/esm/plugins/CommandPalette/components/CommandList.js +26 -26
  94. package/dist/esm/plugins/CommandPalette/components/CommandPrompt.js +2 -2
  95. package/dist/esm/plugins/EmbeddedEntityBlock/LinkedEntityBlock.js +3 -3
  96. package/dist/esm/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.js +11 -11
  97. package/dist/esm/plugins/EmbeddedEntityInline/LinkedEntityInline.js +2 -2
  98. package/dist/esm/plugins/EmbeddedResourceBlock/LinkedResourceBlock.js +2 -2
  99. package/dist/esm/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.js +5 -5
  100. package/dist/esm/plugins/EmbeddedResourceInline/LinkedResourceInline.js +2 -2
  101. package/dist/esm/plugins/Heading/__tests__/createHeadingPlugin.test.js +31 -31
  102. package/dist/esm/plugins/Heading/components/Heading.js +7 -7
  103. package/dist/esm/plugins/Heading/components/ToolbarHeadingButton.js +6 -6
  104. package/dist/esm/plugins/Hr/index.js +5 -5
  105. package/dist/esm/plugins/Hyperlink/HyperlinkModal.js +19 -19
  106. package/dist/esm/plugins/Hyperlink/__tests__/createHyperlinkPlugin.test.js +7 -7
  107. package/dist/esm/plugins/Hyperlink/components/EntityHyperlink.js +3 -3
  108. package/dist/esm/plugins/Hyperlink/components/LinkPopover.js +13 -13
  109. package/dist/esm/plugins/Hyperlink/components/ResourceHyperlink.js +3 -3
  110. package/dist/esm/plugins/Hyperlink/components/ToolbarHyperlinkButton.js +2 -2
  111. package/dist/esm/plugins/Hyperlink/components/UrlHyperlink.js +3 -3
  112. package/dist/esm/plugins/List/__tests__/createListPlugin.test.js +12 -12
  113. package/dist/esm/plugins/List/__tests__/insertListBreak.test.js +23 -23
  114. package/dist/esm/plugins/List/__tests__/insertListFragment.test.js +20 -20
  115. package/dist/esm/plugins/List/components/List.js +1 -1
  116. package/dist/esm/plugins/List/components/ListItem.js +1 -1
  117. package/dist/esm/plugins/List/components/ToolbarListButton.js +3 -3
  118. package/dist/esm/plugins/List/transforms/moveListItems.test.js +12 -12
  119. package/dist/esm/plugins/List/transforms/toggleList.spec.js +18 -18
  120. package/dist/esm/plugins/Marks/Bold.js +2 -2
  121. package/dist/esm/plugins/Marks/Code.js +2 -2
  122. package/dist/esm/plugins/Marks/Italic.js +2 -2
  123. package/dist/esm/plugins/Marks/Strikethrough.js +6 -6
  124. package/dist/esm/plugins/Marks/Subscript.js +4 -4
  125. package/dist/esm/plugins/Marks/Superscript.js +4 -4
  126. package/dist/esm/plugins/Marks/Underline.js +2 -2
  127. package/dist/esm/plugins/Marks/components/MarkToolbarButton.js +2 -2
  128. package/dist/esm/plugins/Marks/index.js +2 -2
  129. package/dist/esm/plugins/Normalizer/createNormalizerPlugin.test.js +8 -8
  130. package/dist/esm/plugins/Paragraph/Paragraph.js +1 -1
  131. package/dist/esm/plugins/Paragraph/__tests__/createParagraphPlugin.test.js +31 -31
  132. package/dist/esm/plugins/Quote/__test__/createQuotePlugin.test.js +20 -20
  133. package/dist/esm/plugins/Quote/components/Quote.js +1 -1
  134. package/dist/esm/plugins/Quote/components/ToolbarQuoteButton.js +2 -2
  135. package/dist/esm/plugins/Table/__tests__/createTablePlugin.test.js +21 -21
  136. package/dist/esm/plugins/Table/__tests__/helpers.test.js +2 -2
  137. package/dist/esm/plugins/Table/components/Cell.js +2 -2
  138. package/dist/esm/plugins/Table/components/HeaderCell.js +2 -2
  139. package/dist/esm/plugins/Table/components/Row.js +1 -1
  140. package/dist/esm/plugins/Table/components/Table.js +3 -3
  141. package/dist/esm/plugins/Table/components/TableActions.js +11 -11
  142. package/dist/esm/plugins/Table/components/ToolbarButton.js +2 -2
  143. package/dist/esm/plugins/Text/__tests__/createTextPlugin.test.js +14 -14
  144. package/dist/esm/plugins/shared/EmbeddedBlockToolbarIcon.js +4 -4
  145. package/dist/esm/plugins/shared/EmbeddedBlockUtil.js +2 -1
  146. package/dist/esm/plugins/shared/EmbeddedInlineToolbarIcon.js +4 -4
  147. package/dist/esm/plugins/shared/EmbeddedInlineUtil.js +2 -1
  148. package/dist/esm/plugins/shared/FetchingWrappedAssetCard.js +6 -6
  149. package/dist/esm/plugins/shared/FetchingWrappedEntryCard.js +6 -6
  150. package/dist/esm/plugins/shared/FetchingWrappedResourceCard.js +6 -6
  151. package/dist/esm/plugins/shared/LinkedBlockWrapper.js +2 -2
  152. package/dist/esm/plugins/shared/LinkedInlineWrapper.js +2 -2
  153. package/dist/esm/plugins/shared/ResourceNewBadge.js +1 -1
  154. package/dist/esm/plugins/shared/ToolbarButton.js +2 -2
  155. package/dist/esm/plugins/shared/__tests__/FetchingWrappedAssetCard.test.js +2 -2
  156. package/dist/esm/plugins/shared/__tests__/FetchingWrappedEntryCard.test.js +2 -2
  157. package/dist/esm/plugins/shared/__tests__/FetchingWrappedResourceCard.test.js +2 -2
  158. package/dist/esm/test-utils/jsx.js +1 -1
  159. package/package.json +6 -4
@@ -72,17 +72,17 @@ function ToolbarListButton(props) {
72
72
  };
73
73
  }
74
74
  if (!editor) return null;
75
- return _react.createElement(_react.Fragment, null, (0, _validations.isNodeTypeEnabled)(sdk.field, _richtexttypes.BLOCKS.UL_LIST) && _react.createElement(_ToolbarButton.ToolbarButton, {
75
+ return /*#__PURE__*/ _react.createElement(_react.Fragment, null, (0, _validations.isNodeTypeEnabled)(sdk.field, _richtexttypes.BLOCKS.UL_LIST) && /*#__PURE__*/ _react.createElement(_ToolbarButton.ToolbarButton, {
76
76
  title: "UL",
77
77
  testId: "ul-toolbar-button",
78
78
  onClick: handleClick(_richtexttypes.BLOCKS.UL_LIST),
79
79
  isActive: (0, _utils.isListTypeActive)(editor, _richtexttypes.BLOCKS.UL_LIST),
80
80
  isDisabled: props.isDisabled
81
- }, _react.createElement(_f36icons.ListBulletedIcon, null)), (0, _validations.isNodeTypeEnabled)(sdk.field, _richtexttypes.BLOCKS.OL_LIST) && _react.createElement(_ToolbarButton.ToolbarButton, {
81
+ }, /*#__PURE__*/ _react.createElement(_f36icons.ListBulletedIcon, null)), (0, _validations.isNodeTypeEnabled)(sdk.field, _richtexttypes.BLOCKS.OL_LIST) && /*#__PURE__*/ _react.createElement(_ToolbarButton.ToolbarButton, {
82
82
  title: "OL",
83
83
  testId: "ol-toolbar-button",
84
84
  onClick: handleClick(_richtexttypes.BLOCKS.OL_LIST),
85
85
  isActive: (0, _utils.isListTypeActive)(editor, _richtexttypes.BLOCKS.OL_LIST),
86
86
  isDisabled: props.isDisabled
87
- }, _react.createElement(_f36icons.ListNumberedIcon, null)));
87
+ }, /*#__PURE__*/ _react.createElement(_f36icons.ListNumberedIcon, null)));
88
88
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  const _testutils = require("../../../test-utils");
6
6
  const _moveListItems = require("./moveListItems");
7
7
  describe('moving list items (up/down)', ()=>{
8
- const renderEditor = (children)=>(0, _testutils.jsx)("editor", null, children, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
8
+ const renderEditor = (children)=>/*#__PURE__*/ (0, _testutils.jsx)("editor", null, children, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
9
9
  const assertTab = (t, shift = false)=>{
10
10
  test(t.title, ()=>{
11
11
  const { editor } = (0, _testutils.createTestEditor)({
@@ -23,37 +23,37 @@ describe('moving list items (up/down)', ()=>{
23
23
  const tests = [
24
24
  {
25
25
  title: 'single paragraph',
26
- input: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p2", (0, _testutils.jsx)("cursor", null)))),
27
- expected: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p2", (0, _testutils.jsx)("cursor", null))))))
26
+ input: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))),
27
+ expected: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null))))))
28
28
  },
29
29
  {
30
30
  title: 'multiple paragraphs',
31
- input: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1"), (0, _testutils.jsx)("hp", null, "p2")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p3", (0, _testutils.jsx)("cursor", null)))),
32
- expected: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1"), (0, _testutils.jsx)("hp", null, "p2"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p3", (0, _testutils.jsx)("cursor", null))))))
31
+ input: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p3", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))),
32
+ expected: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p3", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null))))))
33
33
  },
34
34
  {
35
35
  title: 'multiple elements',
36
- input: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "a"), (0, _testutils.jsx)("hp", null, "b"), (0, _testutils.jsx)("hquote", null, (0, _testutils.jsx)("hp", null, "quote"))), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "c", (0, _testutils.jsx)("cursor", null)), (0, _testutils.jsx)("hp", null, "d"), (0, _testutils.jsx)("hembed", {
36
+ input: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "a"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "b"), /*#__PURE__*/ (0, _testutils.jsx)("hquote", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "quote"))), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "c", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "d"), /*#__PURE__*/ (0, _testutils.jsx)("hembed", {
37
37
  type: "Asset",
38
38
  id: "asset-id"
39
39
  }))),
40
- expected: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "a"), (0, _testutils.jsx)("hp", null, "b"), (0, _testutils.jsx)("hquote", null, (0, _testutils.jsx)("hp", null, "quote")), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "c", (0, _testutils.jsx)("cursor", null)), (0, _testutils.jsx)("hp", null, "d"), (0, _testutils.jsx)("hembed", {
40
+ expected: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "a"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "b"), /*#__PURE__*/ (0, _testutils.jsx)("hquote", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "quote")), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "c", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "d"), /*#__PURE__*/ (0, _testutils.jsx)("hembed", {
41
41
  type: "Asset",
42
42
  id: "asset-id"
43
43
  })))))
44
44
  },
45
45
  {
46
46
  title: 'with a sub-list',
47
- input: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "sub p1")))), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p2", (0, _testutils.jsx)("cursor", null)))),
48
- expected: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "sub p1")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p2", (0, _testutils.jsx)("cursor", null))))))
47
+ input: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "sub p1")))), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))),
48
+ expected: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "sub p1")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null))))))
49
49
  },
50
50
  {
51
51
  title: 'with a sub-list as non-last child',
52
- input: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "sub p1"))), (0, _testutils.jsx)("hembed", {
52
+ input: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "sub p1"))), /*#__PURE__*/ (0, _testutils.jsx)("hembed", {
53
53
  type: "Entry",
54
54
  id: "entry-id"
55
- })), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p2", (0, _testutils.jsx)("cursor", null)))),
56
- expected: (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "sub p1")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "p2", (0, _testutils.jsx)("cursor", null)))), (0, _testutils.jsx)("hembed", {
55
+ })), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))),
56
+ expected: /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "sub p1")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "p2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))), /*#__PURE__*/ (0, _testutils.jsx)("hembed", {
57
57
  type: "Entry",
58
58
  id: "entry-id"
59
59
  })))
@@ -7,8 +7,8 @@ const _testutils = require("../../../test-utils");
7
7
  const _toggleList = require("./toggleList");
8
8
  describe('toggle on', ()=>{
9
9
  it('should turn a p to list', ()=>{
10
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hp", null, "1", (0, _testutils.jsx)("cursor", null)));
11
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1", (0, _testutils.jsx)("cursor", null)))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
10
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)));
11
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
12
12
  const { editor } = (0, _testutils.createTestEditor)({
13
13
  input
14
14
  });
@@ -21,8 +21,8 @@ describe('toggle on', ()=>{
21
21
  });
22
22
  });
23
23
  it('should turn a p with a selection to list', ()=>{
24
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hp", null, "Planetas ", (0, _testutils.jsx)("anchor", null), "mori in", (0, _testutils.jsx)("focus", null), " gandavum!"));
25
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "Planetas ", (0, _testutils.jsx)("anchor", null), "mori in", (0, _testutils.jsx)("focus", null), " gandavum!"))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
24
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "Planetas ", /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "mori in", /*#__PURE__*/ (0, _testutils.jsx)("focus", null), " gandavum!"));
25
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "Planetas ", /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "mori in", /*#__PURE__*/ (0, _testutils.jsx)("focus", null), " gandavum!"))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
26
26
  const { editor } = (0, _testutils.createTestEditor)({
27
27
  input
28
28
  });
@@ -35,8 +35,8 @@ describe('toggle on', ()=>{
35
35
  });
36
36
  });
37
37
  it('should turn multiple p to list', ()=>{
38
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("anchor", null), "1"), (0, _testutils.jsx)("hp", null, "2"), (0, _testutils.jsx)("hp", null, "3", (0, _testutils.jsx)("focus", null)));
39
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("anchor", null), "1")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "2")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "3", (0, _testutils.jsx)("focus", null)))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
38
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "1"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "2"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "3", /*#__PURE__*/ (0, _testutils.jsx)("focus", null)));
39
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "1")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "2")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "3", /*#__PURE__*/ (0, _testutils.jsx)("focus", null)))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
40
40
  const { editor } = (0, _testutils.createTestEditor)({
41
41
  input
42
42
  });
@@ -51,8 +51,8 @@ describe('toggle on', ()=>{
51
51
  });
52
52
  describe('toggle off', ()=>{
53
53
  it('should split a simple list to two', ()=>{
54
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "2", (0, _testutils.jsx)("cursor", null))), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "3"))));
55
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1"))), (0, _testutils.jsx)("hp", null, "2", (0, _testutils.jsx)("cursor", null)), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "3"))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
54
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null))), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "3"))));
55
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1"))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "2", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "3"))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
56
56
  const { editor } = (0, _testutils.createTestEditor)({
57
57
  input
58
58
  });
@@ -65,8 +65,8 @@ describe('toggle off', ()=>{
65
65
  });
66
66
  });
67
67
  it('should split a nested list', ()=>{
68
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "11")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "12", (0, _testutils.jsx)("cursor", null))), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "13"))))));
69
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "11"))))), (0, _testutils.jsx)("hp", null, "12", (0, _testutils.jsx)("cursor", null)), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "13"))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
68
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "11")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "12", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null))), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "13"))))));
69
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "11"))))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "12", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "13"))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
70
70
  const { editor } = (0, _testutils.createTestEditor)({
71
71
  input
72
72
  });
@@ -79,8 +79,8 @@ describe('toggle off', ()=>{
79
79
  });
80
80
  });
81
81
  it('should turn a list to multiple p', ()=>{
82
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("anchor", null), "1")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "2")), (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "3", (0, _testutils.jsx)("focus", null)))));
83
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("anchor", null), "1"), (0, _testutils.jsx)("hp", null, "2"), (0, _testutils.jsx)("hp", null, "3", (0, _testutils.jsx)("focus", null)));
82
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "1")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "2")), /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "3", /*#__PURE__*/ (0, _testutils.jsx)("focus", null)))));
83
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "1"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "2"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "3", /*#__PURE__*/ (0, _testutils.jsx)("focus", null)));
84
84
  const { editor } = (0, _testutils.createTestEditor)({
85
85
  input
86
86
  });
@@ -95,8 +95,8 @@ describe('toggle off', ()=>{
95
95
  });
96
96
  describe('toggle over', ()=>{
97
97
  it('should toggle different list types', ()=>{
98
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1", (0, _testutils.jsx)("cursor", null)))));
99
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hol", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1"))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
98
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))));
99
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hol", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1"))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
100
100
  const { editor } = (0, _testutils.createTestEditor)({
101
101
  input
102
102
  });
@@ -109,8 +109,8 @@ describe('toggle over', ()=>{
109
109
  });
110
110
  });
111
111
  it('should only toggle the nested list', ()=>{
112
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "11", (0, _testutils.jsx)("cursor", null)))))));
113
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "1"), (0, _testutils.jsx)("hol", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "11", (0, _testutils.jsx)("cursor", null)))))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
112
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "11", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))))));
113
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "1"), /*#__PURE__*/ (0, _testutils.jsx)("hol", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "11", /*#__PURE__*/ (0, _testutils.jsx)("cursor", null)))))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
114
114
  const { editor } = (0, _testutils.createTestEditor)({
115
115
  input
116
116
  });
@@ -123,8 +123,8 @@ describe('toggle over', ()=>{
123
123
  });
124
124
  });
125
125
  it('should only toggle everything that is selected', ()=>{
126
- const input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("anchor", null), "1"), (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "11", (0, _testutils.jsx)("focus", null)))))));
127
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hol", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("anchor", null), "1"), (0, _testutils.jsx)("hol", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "11", (0, _testutils.jsx)("focus", null)))))), (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("htext", null)));
126
+ const input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "1"), /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "11", /*#__PURE__*/ (0, _testutils.jsx)("focus", null)))))));
127
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hol", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("anchor", null), "1"), /*#__PURE__*/ (0, _testutils.jsx)("hol", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "11", /*#__PURE__*/ (0, _testutils.jsx)("focus", null)))))), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
128
128
  const { editor } = (0, _testutils.createTestEditor)({
129
129
  input
130
130
  });
@@ -71,7 +71,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
71
71
  const ToolbarBoldButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
72
72
  title: 'Bold',
73
73
  mark: _richtexttypes.MARKS.BOLD,
74
- icon: _react.createElement(_f36icons.FormatBoldIcon, null)
74
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.FormatBoldIcon, null)
75
75
  });
76
76
  const styles = {
77
77
  bold: (0, _emotion.css)({
@@ -79,7 +79,7 @@ const styles = {
79
79
  })
80
80
  };
81
81
  function Bold(props) {
82
- return _react.createElement("strong", {
82
+ return /*#__PURE__*/ _react.createElement("strong", {
83
83
  ...props.attributes,
84
84
  className: styles.bold
85
85
  }, props.children);
@@ -73,7 +73,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
73
73
  const ToolbarCodeButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
74
74
  title: 'Code',
75
75
  mark: _richtexttypes.MARKS.CODE,
76
- icon: _react.createElement(_f36icons.CodeIcon, null)
76
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.CodeIcon, null)
77
77
  });
78
78
  const ToolbarDropdownCodeButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
79
79
  title: 'Code',
@@ -86,7 +86,7 @@ const styles = {
86
86
  })
87
87
  };
88
88
  function Code(props) {
89
- return _react.createElement("code", {
89
+ return /*#__PURE__*/ _react.createElement("code", {
90
90
  ...props.attributes,
91
91
  className: styles.code
92
92
  }, props.children);
@@ -71,7 +71,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
71
71
  const ToolbarItalicButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
72
72
  title: 'Italic',
73
73
  mark: _richtexttypes.MARKS.ITALIC,
74
- icon: _react.createElement(_f36icons.FormatItalicIcon, null)
74
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.FormatItalicIcon, null)
75
75
  });
76
76
  const styles = {
77
77
  italic: (0, _emotion.css)({
@@ -79,7 +79,7 @@ const styles = {
79
79
  })
80
80
  };
81
81
  function Italic(props) {
82
- return _react.createElement("em", {
82
+ return /*#__PURE__*/ _react.createElement("em", {
83
83
  ...props.attributes,
84
84
  className: styles.italic
85
85
  }, props.children);
@@ -81,16 +81,16 @@ const ToolbarDropdownStrikethroughButton = (0, _MarkToolbarButton.createMarkTool
81
81
  const ToolbarStrikethroughButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
82
82
  title: 'Strikethrough',
83
83
  mark: _richtexttypes.MARKS.STRIKETHROUGH,
84
- icon: _react.createElement("svg", {
84
+ icon: /*#__PURE__*/ _react.createElement("svg", {
85
85
  xmlns: "http://www.w3.org/2000/svg",
86
86
  viewBox: "0 0 256 256",
87
87
  width: "18",
88
88
  height: "18"
89
- }, _react.createElement("rect", {
89
+ }, /*#__PURE__*/ _react.createElement("rect", {
90
90
  width: "256",
91
91
  height: "256",
92
92
  fill: "none"
93
- }), _react.createElement("line", {
93
+ }), /*#__PURE__*/ _react.createElement("line", {
94
94
  x1: "40",
95
95
  y1: "128",
96
96
  x2: "216",
@@ -100,14 +100,14 @@ const ToolbarStrikethroughButton = (0, _MarkToolbarButton.createMarkToolbarButto
100
100
  strokeLinecap: "round",
101
101
  strokeLinejoin: "round",
102
102
  strokeWidth: "24"
103
- }), _react.createElement("path", {
103
+ }), /*#__PURE__*/ _react.createElement("path", {
104
104
  d: "M72,168c0,22.09,25.07,40,56,40s56-17.91,56-40c0-23.77-21.62-33-45.6-40",
105
105
  fill: "none",
106
106
  stroke: "currentColor",
107
107
  strokeLinecap: "round",
108
108
  strokeLinejoin: "round",
109
109
  strokeWidth: "24"
110
- }), _react.createElement("path", {
110
+ }), /*#__PURE__*/ _react.createElement("path", {
111
111
  d: "M75.11,88c0-22.09,22-40,52.89-40,23,0,40.24,9.87,48,24",
112
112
  fill: "none",
113
113
  stroke: "currentColor",
@@ -117,7 +117,7 @@ const ToolbarStrikethroughButton = (0, _MarkToolbarButton.createMarkToolbarButto
117
117
  }))
118
118
  });
119
119
  function Strikethrough(props) {
120
- return _react.createElement("s", {
120
+ return /*#__PURE__*/ _react.createElement("s", {
121
121
  ...props.attributes,
122
122
  className: styles.strikethrough
123
123
  }, props.children);
@@ -77,18 +77,18 @@ const styles = {
77
77
  })
78
78
  };
79
79
  const ToolbarSubscriptButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
80
- title: "Subscript",
80
+ title: 'Subscript',
81
81
  mark: _richtexttypes.MARKS.SUBSCRIPT,
82
- icon: _react.createElement(_f36icons.SubscriptIcon, {
82
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.SubscriptIcon, {
83
83
  viewBox: "0 0 23 18"
84
84
  })
85
85
  });
86
86
  const ToolbarDropdownSubscriptButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
87
- title: "Subscript",
87
+ title: 'Subscript',
88
88
  mark: _richtexttypes.MARKS.SUBSCRIPT
89
89
  });
90
90
  function Subscript(props) {
91
- return _react.createElement("sub", {
91
+ return /*#__PURE__*/ _react.createElement("sub", {
92
92
  ...props.attributes,
93
93
  className: styles.subscript
94
94
  }, props.children);
@@ -77,16 +77,16 @@ const styles = {
77
77
  })
78
78
  };
79
79
  const ToolbarSuperscriptButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
80
- title: "Superscript",
80
+ title: 'Superscript',
81
81
  mark: _richtexttypes.MARKS.SUPERSCRIPT,
82
- icon: _react.createElement(_f36icons.SuperscriptIcon, null)
82
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.SuperscriptIcon, null)
83
83
  });
84
84
  const ToolbarDropdownSuperscriptButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
85
- title: "Superscript",
85
+ title: 'Superscript',
86
86
  mark: _richtexttypes.MARKS.SUPERSCRIPT
87
87
  });
88
88
  function Superscript(props) {
89
- return _react.createElement("sup", {
89
+ return /*#__PURE__*/ _react.createElement("sup", {
90
90
  ...props.attributes,
91
91
  className: styles.superscript
92
92
  }, props.children);
@@ -70,10 +70,10 @@ function _interop_require_wildcard(obj, nodeInterop) {
70
70
  const ToolbarUnderlineButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
71
71
  title: 'Underline',
72
72
  mark: _richtexttypes.MARKS.UNDERLINE,
73
- icon: _react.createElement(_f36icons.FormatUnderlinedIcon, null)
73
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.FormatUnderlinedIcon, null)
74
74
  });
75
75
  function Underline(props) {
76
- return _react.createElement("u", props.attributes, props.children);
76
+ return /*#__PURE__*/ _react.createElement("u", props.attributes, props.children);
77
77
  }
78
78
  const createUnderlinePlugin = ()=>(0, _platebasicmarks.createUnderlinePlugin)({
79
79
  type: _richtexttypes.MARKS.UNDERLINE,
@@ -85,7 +85,7 @@ const createMarkToolbarButton = ({ mark, title, icon })=>{
85
85
  ]);
86
86
  if (!editor) return null;
87
87
  if (!icon) {
88
- return _react.createElement(_f36components.Menu.Item, {
88
+ return /*#__PURE__*/ _react.createElement(_f36components.Menu.Item, {
89
89
  onClick: handleClick,
90
90
  disabled: isDisabled,
91
91
  className: (0, _emotion.cx)({
@@ -94,7 +94,7 @@ const createMarkToolbarButton = ({ mark, title, icon })=>{
94
94
  testId: `${mark}-toolbar-button`
95
95
  }, title);
96
96
  }
97
- return _react.createElement(_ToolbarButton.ToolbarButton, {
97
+ return /*#__PURE__*/ _react.createElement(_ToolbarButton.ToolbarButton, {
98
98
  title: title,
99
99
  testId: `${mark}-toolbar-button`,
100
100
  onClick: handleClick,
@@ -16,12 +16,12 @@ describe('Normalizer', ()=>{
16
16
  ];
17
17
  let input;
18
18
  beforeEach(()=>{
19
- input = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hembed", {
19
+ input = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hembed", {
20
20
  type: "Entry",
21
21
  id: "embedded-entry"
22
- }), (0, _testutils.jsx)("hp", null, "List item"))));
22
+ }), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "List item"))));
23
23
  });
24
- const expected = (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, "List item"))));
24
+ const expected = /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "List item"))));
25
25
  describe('rule.match', ()=>{
26
26
  it('matches elements of type "plugin.type" by default', ()=>{
27
27
  const { editor } = (0, _testutils.createTestEditor)({
@@ -55,13 +55,13 @@ describe('Normalizer', ()=>{
55
55
  describe('rule.transform', ()=>{
56
56
  it('works with conditional transformation', ()=>{
57
57
  const { editor } = (0, _testutils.createTestEditor)({
58
- input: (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hembed", {
58
+ input: /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hembed", {
59
59
  type: "Entry",
60
60
  id: "embedded-entry"
61
- }), (0, _testutils.jsx)("hinline", {
61
+ }), /*#__PURE__*/ (0, _testutils.jsx)("hinline", {
62
62
  type: "Entry",
63
63
  id: "inline-entry"
64
- }), (0, _testutils.jsx)("hp", null, "List item")))),
64
+ }), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "List item")))),
65
65
  plugins: [
66
66
  (0, _testutils.mockPlugin)({
67
67
  isElement: true,
@@ -82,10 +82,10 @@ describe('Normalizer', ()=>{
82
82
  });
83
83
  (0, _testutils.assertOutput)({
84
84
  editor,
85
- expected: (0, _testutils.jsx)("editor", null, (0, _testutils.jsx)("hul", null, (0, _testutils.jsx)("hli", null, (0, _testutils.jsx)("hp", null, (0, _testutils.jsx)("hinline", {
85
+ expected: /*#__PURE__*/ (0, _testutils.jsx)("editor", null, /*#__PURE__*/ (0, _testutils.jsx)("hul", null, /*#__PURE__*/ (0, _testutils.jsx)("hli", null, /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("hinline", {
86
86
  type: "Entry",
87
87
  id: "inline-entry"
88
- })), (0, _testutils.jsx)("hp", null, "List item"))))
88
+ })), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, "List item"))))
89
89
  });
90
90
  });
91
91
  });
@@ -66,7 +66,7 @@ const styles = {
66
66
  `
67
67
  };
68
68
  function Paragraph(props) {
69
- return _react.createElement("div", {
69
+ return /*#__PURE__*/ _react.createElement("div", {
70
70
  ...props.attributes,
71
71
  className: styles[_richtexttypes.BLOCKS.PARAGRAPH]
72
72
  }, props.children);