@contember/react-slate-editor-base 2.1.0-alpha.3 → 2.1.0-alpha.35

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 (932) hide show
  1. package/package.json +15 -15
  2. package/src/components/RichTextEditor.tsx +1 -2
  3. package/src/components/triggers/EditorGenericTrigger.tsx +0 -1
  4. package/src/editor/createEditor.ts +0 -1
  5. package/src/editor/createEditorWithEssentials.tsx +23 -16
  6. package/src/editor/methods/addMarks.ts +1 -1
  7. package/src/editor/methods/closest.ts +1 -1
  8. package/src/editor/methods/closestBlockEntry.ts +1 -1
  9. package/src/editor/methods/hasMarks.ts +6 -4
  10. package/src/editor/methods/removeMarks.ts +1 -1
  11. package/src/editor/methods/toLatestFormat.ts +3 -5
  12. package/src/internal/hooks/useRichTextFieldNodes.ts +10 -11
  13. package/src/internal/utils/EditorPasteUtils.ts +3 -3
  14. package/src/plugins/attributes/alignment/alignButton.ts +1 -4
  15. package/src/plugins/behaviour/paste/HtmlDeserializer.ts +11 -16
  16. package/src/plugins/behaviour/paste/createMarkHtmlDeserializer.ts +5 -1
  17. package/src/plugins/behaviour/paste/withPaste.ts +0 -1
  18. package/src/plugins/element/anchors/AnchorElement.ts +1 -2
  19. package/src/plugins/element/anchors/AnchorHtmlDeserializer.ts +1 -1
  20. package/src/plugins/element/headings/HeadingElement.ts +0 -1
  21. package/src/plugins/element/headings/withHeadings.ts +1 -10
  22. package/src/plugins/element/horizonalRules/HorizontalRuleElement.ts +4 -2
  23. package/src/plugins/element/horizonalRules/withHorizontalRules.ts +1 -2
  24. package/src/plugins/element/lists/ListElement.ts +2 -1
  25. package/src/plugins/element/lists/ListHtmlDeserializer.ts +3 -1
  26. package/src/plugins/element/lists/ListItemElement.ts +1 -2
  27. package/src/plugins/element/lists/UnorderedListElement.ts +3 -1
  28. package/src/plugins/element/lists/transforms/indentListItem.ts +3 -12
  29. package/src/plugins/element/lists/withLists.ts +7 -16
  30. package/src/plugins/element/paragraphs/ParagraphElement.ts +2 -2
  31. package/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.ts +7 -4
  32. package/src/plugins/element/paragraphs/withParagraphs.ts +1 -2
  33. package/src/plugins/element/scrollTargets/ScrollTargetElement.ts +6 -5
  34. package/src/plugins/element/tables/TableCellElement.ts +1 -2
  35. package/src/plugins/element/tables/TableElement.ts +13 -2
  36. package/src/plugins/element/tables/TableModifications.ts +2 -9
  37. package/src/plugins/element/tables/TableRowElement.ts +2 -2
  38. package/src/plugins/element/tables/withTables.ts +20 -20
  39. package/src/plugins/text/bold/withBold.ts +0 -1
  40. package/src/plugins/text/code/withCode.ts +0 -1
  41. package/src/plugins/text/highlight/withHighlight.ts +0 -1
  42. package/src/plugins/text/italic/withItalic.ts +0 -1
  43. package/src/plugins/text/strikeThrough/withStrikeThrough.ts +0 -1
  44. package/src/plugins/text/underline/withUnderline.ts +0 -1
  45. package/src/slate-types.ts +16 -12
  46. package/src/types/htmlDeserializer.ts +2 -2
  47. package/src/types/plugins.ts +0 -2
  48. package/dist/development/index.cjs +0 -139
  49. package/dist/development/index.cjs.map +0 -1
  50. package/dist/development/index.js +0 -136
  51. package/dist/development/index.js.map +0 -1
  52. package/dist/development/src/components/RichTextEditor.cjs +0 -105
  53. package/dist/development/src/components/RichTextEditor.cjs.map +0 -1
  54. package/dist/development/src/components/RichTextEditor.js +0 -105
  55. package/dist/development/src/components/RichTextEditor.js.map +0 -1
  56. package/dist/development/src/components/triggers/EditorElementTrigger.cjs +0 -20
  57. package/dist/development/src/components/triggers/EditorElementTrigger.cjs.map +0 -1
  58. package/dist/development/src/components/triggers/EditorElementTrigger.js +0 -20
  59. package/dist/development/src/components/triggers/EditorElementTrigger.js.map +0 -1
  60. package/dist/development/src/components/triggers/EditorGenericTrigger.cjs +0 -24
  61. package/dist/development/src/components/triggers/EditorGenericTrigger.cjs.map +0 -1
  62. package/dist/development/src/components/triggers/EditorGenericTrigger.js +0 -24
  63. package/dist/development/src/components/triggers/EditorGenericTrigger.js.map +0 -1
  64. package/dist/development/src/components/triggers/EditorMarkTrigger.cjs +0 -20
  65. package/dist/development/src/components/triggers/EditorMarkTrigger.cjs.map +0 -1
  66. package/dist/development/src/components/triggers/EditorMarkTrigger.js +0 -20
  67. package/dist/development/src/components/triggers/EditorMarkTrigger.js.map +0 -1
  68. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.cjs +0 -32
  69. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.cjs.map +0 -1
  70. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.js +0 -32
  71. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.js.map +0 -1
  72. package/dist/development/src/editor/createEditor.cjs +0 -35
  73. package/dist/development/src/editor/createEditor.cjs.map +0 -1
  74. package/dist/development/src/editor/createEditor.js +0 -35
  75. package/dist/development/src/editor/createEditor.js.map +0 -1
  76. package/dist/development/src/editor/createEditorWithEssentials.cjs +0 -227
  77. package/dist/development/src/editor/createEditorWithEssentials.cjs.map +0 -1
  78. package/dist/development/src/editor/createEditorWithEssentials.js +0 -211
  79. package/dist/development/src/editor/createEditorWithEssentials.js.map +0 -1
  80. package/dist/development/src/editor/index.cjs +0 -44
  81. package/dist/development/src/editor/index.cjs.map +0 -1
  82. package/dist/development/src/editor/index.js +0 -44
  83. package/dist/development/src/editor/index.js.map +0 -1
  84. package/dist/development/src/editor/methods/addMarks.cjs +0 -12
  85. package/dist/development/src/editor/methods/addMarks.cjs.map +0 -1
  86. package/dist/development/src/editor/methods/addMarks.js +0 -12
  87. package/dist/development/src/editor/methods/addMarks.js.map +0 -1
  88. package/dist/development/src/editor/methods/canToggleMark.cjs +0 -7
  89. package/dist/development/src/editor/methods/canToggleMark.cjs.map +0 -1
  90. package/dist/development/src/editor/methods/canToggleMark.js +0 -7
  91. package/dist/development/src/editor/methods/canToggleMark.js.map +0 -1
  92. package/dist/development/src/editor/methods/closest.cjs +0 -18
  93. package/dist/development/src/editor/methods/closest.cjs.map +0 -1
  94. package/dist/development/src/editor/methods/closest.js +0 -18
  95. package/dist/development/src/editor/methods/closest.js.map +0 -1
  96. package/dist/development/src/editor/methods/closestBlockEntry.cjs +0 -10
  97. package/dist/development/src/editor/methods/closestBlockEntry.cjs.map +0 -1
  98. package/dist/development/src/editor/methods/closestBlockEntry.js +0 -10
  99. package/dist/development/src/editor/methods/closestBlockEntry.js.map +0 -1
  100. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.cjs +0 -9
  101. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.cjs.map +0 -1
  102. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.js +0 -9
  103. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.js.map +0 -1
  104. package/dist/development/src/editor/methods/ejectElement.cjs +0 -15
  105. package/dist/development/src/editor/methods/ejectElement.cjs.map +0 -1
  106. package/dist/development/src/editor/methods/ejectElement.js +0 -15
  107. package/dist/development/src/editor/methods/ejectElement.js.map +0 -1
  108. package/dist/development/src/editor/methods/elementToSpecifics.cjs +0 -8
  109. package/dist/development/src/editor/methods/elementToSpecifics.cjs.map +0 -1
  110. package/dist/development/src/editor/methods/elementToSpecifics.js +0 -8
  111. package/dist/development/src/editor/methods/elementToSpecifics.js.map +0 -1
  112. package/dist/development/src/editor/methods/getElementDataAttributes.cjs +0 -13
  113. package/dist/development/src/editor/methods/getElementDataAttributes.cjs.map +0 -1
  114. package/dist/development/src/editor/methods/getElementDataAttributes.js +0 -13
  115. package/dist/development/src/editor/methods/getElementDataAttributes.js.map +0 -1
  116. package/dist/development/src/editor/methods/getPreviousSibling.cjs +0 -13
  117. package/dist/development/src/editor/methods/getPreviousSibling.cjs.map +0 -1
  118. package/dist/development/src/editor/methods/getPreviousSibling.js +0 -13
  119. package/dist/development/src/editor/methods/getPreviousSibling.js.map +0 -1
  120. package/dist/development/src/editor/methods/hasMarks.cjs +0 -23
  121. package/dist/development/src/editor/methods/hasMarks.cjs.map +0 -1
  122. package/dist/development/src/editor/methods/hasMarks.js +0 -23
  123. package/dist/development/src/editor/methods/hasMarks.js.map +0 -1
  124. package/dist/development/src/editor/methods/hasParentOfType.cjs +0 -15
  125. package/dist/development/src/editor/methods/hasParentOfType.cjs.map +0 -1
  126. package/dist/development/src/editor/methods/hasParentOfType.js +0 -15
  127. package/dist/development/src/editor/methods/hasParentOfType.js.map +0 -1
  128. package/dist/development/src/editor/methods/isElementType.cjs +0 -24
  129. package/dist/development/src/editor/methods/isElementType.cjs.map +0 -1
  130. package/dist/development/src/editor/methods/isElementType.js +0 -24
  131. package/dist/development/src/editor/methods/isElementType.js.map +0 -1
  132. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.cjs +0 -22
  133. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.cjs.map +0 -1
  134. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.js +0 -22
  135. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.js.map +0 -1
  136. package/dist/development/src/editor/methods/removeMarks.cjs +0 -12
  137. package/dist/development/src/editor/methods/removeMarks.cjs.map +0 -1
  138. package/dist/development/src/editor/methods/removeMarks.js +0 -12
  139. package/dist/development/src/editor/methods/removeMarks.js.map +0 -1
  140. package/dist/development/src/editor/methods/serializeNodes.cjs +0 -15
  141. package/dist/development/src/editor/methods/serializeNodes.cjs.map +0 -1
  142. package/dist/development/src/editor/methods/serializeNodes.js +0 -15
  143. package/dist/development/src/editor/methods/serializeNodes.js.map +0 -1
  144. package/dist/development/src/editor/methods/strictlyDeserializeNodes.cjs +0 -14
  145. package/dist/development/src/editor/methods/strictlyDeserializeNodes.cjs.map +0 -1
  146. package/dist/development/src/editor/methods/strictlyDeserializeNodes.js +0 -14
  147. package/dist/development/src/editor/methods/strictlyDeserializeNodes.js.map +0 -1
  148. package/dist/development/src/editor/methods/textToSpecifics.cjs +0 -8
  149. package/dist/development/src/editor/methods/textToSpecifics.cjs.map +0 -1
  150. package/dist/development/src/editor/methods/textToSpecifics.js +0 -8
  151. package/dist/development/src/editor/methods/textToSpecifics.js.map +0 -1
  152. package/dist/development/src/editor/methods/toLatestFormat.cjs +0 -34
  153. package/dist/development/src/editor/methods/toLatestFormat.cjs.map +0 -1
  154. package/dist/development/src/editor/methods/toLatestFormat.js +0 -34
  155. package/dist/development/src/editor/methods/toLatestFormat.js.map +0 -1
  156. package/dist/development/src/editor/methods/topLevelNodes.cjs +0 -12
  157. package/dist/development/src/editor/methods/topLevelNodes.cjs.map +0 -1
  158. package/dist/development/src/editor/methods/topLevelNodes.js +0 -12
  159. package/dist/development/src/editor/methods/topLevelNodes.js.map +0 -1
  160. package/dist/development/src/internal/components/DefaultElement.cjs +0 -11
  161. package/dist/development/src/internal/components/DefaultElement.cjs.map +0 -1
  162. package/dist/development/src/internal/components/DefaultElement.js +0 -11
  163. package/dist/development/src/internal/components/DefaultElement.js.map +0 -1
  164. package/dist/development/src/internal/hooks/useRichTextFieldNodes.cjs +0 -28
  165. package/dist/development/src/internal/hooks/useRichTextFieldNodes.cjs.map +0 -1
  166. package/dist/development/src/internal/hooks/useRichTextFieldNodes.js +0 -28
  167. package/dist/development/src/internal/hooks/useRichTextFieldNodes.js.map +0 -1
  168. package/dist/development/src/internal/utils/EditorPasteUtils.cjs +0 -47
  169. package/dist/development/src/internal/utils/EditorPasteUtils.cjs.map +0 -1
  170. package/dist/development/src/internal/utils/EditorPasteUtils.js +0 -47
  171. package/dist/development/src/internal/utils/EditorPasteUtils.js.map +0 -1
  172. package/dist/development/src/internal/utils/parseUrl.cjs +0 -14
  173. package/dist/development/src/internal/utils/parseUrl.cjs.map +0 -1
  174. package/dist/development/src/internal/utils/parseUrl.js +0 -14
  175. package/dist/development/src/internal/utils/parseUrl.js.map +0 -1
  176. package/dist/development/src/plugins/attributes/alignment/alignButton.cjs +0 -21
  177. package/dist/development/src/plugins/attributes/alignment/alignButton.cjs.map +0 -1
  178. package/dist/development/src/plugins/attributes/alignment/alignButton.js +0 -21
  179. package/dist/development/src/plugins/attributes/alignment/alignButton.js.map +0 -1
  180. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.cjs +0 -138
  181. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +0 -1
  182. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.js +0 -138
  183. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.js.map +0 -1
  184. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs +0 -15
  185. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +0 -1
  186. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js +0 -15
  187. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +0 -1
  188. package/dist/development/src/plugins/behaviour/paste/withPaste.cjs +0 -24
  189. package/dist/development/src/plugins/behaviour/paste/withPaste.cjs.map +0 -1
  190. package/dist/development/src/plugins/behaviour/paste/withPaste.js +0 -24
  191. package/dist/development/src/plugins/behaviour/paste/withPaste.js.map +0 -1
  192. package/dist/development/src/plugins/element/anchors/AnchorElement.cjs +0 -44
  193. package/dist/development/src/plugins/element/anchors/AnchorElement.cjs.map +0 -1
  194. package/dist/development/src/plugins/element/anchors/AnchorElement.js +0 -44
  195. package/dist/development/src/plugins/element/anchors/AnchorElement.js.map +0 -1
  196. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs +0 -19
  197. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +0 -1
  198. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.js +0 -19
  199. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +0 -1
  200. package/dist/development/src/plugins/element/anchors/AnchorModifications.cjs +0 -29
  201. package/dist/development/src/plugins/element/anchors/AnchorModifications.cjs.map +0 -1
  202. package/dist/development/src/plugins/element/anchors/AnchorModifications.js +0 -29
  203. package/dist/development/src/plugins/element/anchors/AnchorModifications.js.map +0 -1
  204. package/dist/development/src/plugins/element/anchors/withAnchors.cjs +0 -21
  205. package/dist/development/src/plugins/element/anchors/withAnchors.cjs.map +0 -1
  206. package/dist/development/src/plugins/element/anchors/withAnchors.js +0 -21
  207. package/dist/development/src/plugins/element/anchors/withAnchors.js.map +0 -1
  208. package/dist/development/src/plugins/element/headings/HeadingElement.cjs +0 -41
  209. package/dist/development/src/plugins/element/headings/HeadingElement.cjs.map +0 -1
  210. package/dist/development/src/plugins/element/headings/HeadingElement.js +0 -41
  211. package/dist/development/src/plugins/element/headings/HeadingElement.js.map +0 -1
  212. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.cjs +0 -22
  213. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +0 -1
  214. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.js +0 -22
  215. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +0 -1
  216. package/dist/development/src/plugins/element/headings/withHeadings.cjs +0 -70
  217. package/dist/development/src/plugins/element/headings/withHeadings.cjs.map +0 -1
  218. package/dist/development/src/plugins/element/headings/withHeadings.js +0 -70
  219. package/dist/development/src/plugins/element/headings/withHeadings.js.map +0 -1
  220. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs +0 -41
  221. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +0 -1
  222. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.js +0 -41
  223. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +0 -1
  224. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.cjs +0 -75
  225. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +0 -1
  226. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.js +0 -75
  227. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.js.map +0 -1
  228. package/dist/development/src/plugins/element/lists/ListElement.cjs +0 -26
  229. package/dist/development/src/plugins/element/lists/ListElement.cjs.map +0 -1
  230. package/dist/development/src/plugins/element/lists/ListElement.js +0 -26
  231. package/dist/development/src/plugins/element/lists/ListElement.js.map +0 -1
  232. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.cjs +0 -98
  233. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +0 -1
  234. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.js +0 -98
  235. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.js.map +0 -1
  236. package/dist/development/src/plugins/element/lists/ListItemElement.cjs +0 -53
  237. package/dist/development/src/plugins/element/lists/ListItemElement.cjs.map +0 -1
  238. package/dist/development/src/plugins/element/lists/ListItemElement.js +0 -53
  239. package/dist/development/src/plugins/element/lists/ListItemElement.js.map +0 -1
  240. package/dist/development/src/plugins/element/lists/OrderedListElement.cjs +0 -25
  241. package/dist/development/src/plugins/element/lists/OrderedListElement.cjs.map +0 -1
  242. package/dist/development/src/plugins/element/lists/OrderedListElement.js +0 -25
  243. package/dist/development/src/plugins/element/lists/OrderedListElement.js.map +0 -1
  244. package/dist/development/src/plugins/element/lists/UnorderedListElement.cjs +0 -25
  245. package/dist/development/src/plugins/element/lists/UnorderedListElement.cjs.map +0 -1
  246. package/dist/development/src/plugins/element/lists/UnorderedListElement.js +0 -25
  247. package/dist/development/src/plugins/element/lists/UnorderedListElement.js.map +0 -1
  248. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.cjs +0 -57
  249. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.cjs.map +0 -1
  250. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.js +0 -57
  251. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.js.map +0 -1
  252. package/dist/development/src/plugins/element/lists/transforms/indentListItem.cjs +0 -57
  253. package/dist/development/src/plugins/element/lists/transforms/indentListItem.cjs.map +0 -1
  254. package/dist/development/src/plugins/element/lists/transforms/indentListItem.js +0 -57
  255. package/dist/development/src/plugins/element/lists/transforms/indentListItem.js.map +0 -1
  256. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.cjs +0 -22
  257. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +0 -1
  258. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.js +0 -22
  259. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.js.map +0 -1
  260. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.cjs +0 -93
  261. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.cjs.map +0 -1
  262. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.js +0 -93
  263. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.js.map +0 -1
  264. package/dist/development/src/plugins/element/lists/withLists.cjs +0 -153
  265. package/dist/development/src/plugins/element/lists/withLists.cjs.map +0 -1
  266. package/dist/development/src/plugins/element/lists/withLists.js +0 -153
  267. package/dist/development/src/plugins/element/lists/withLists.js.map +0 -1
  268. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.cjs +0 -49
  269. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.cjs.map +0 -1
  270. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.js +0 -49
  271. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.js.map +0 -1
  272. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs +0 -11
  273. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +0 -1
  274. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js +0 -11
  275. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +0 -1
  276. package/dist/development/src/plugins/element/paragraphs/withParagraphs.cjs +0 -58
  277. package/dist/development/src/plugins/element/paragraphs/withParagraphs.cjs.map +0 -1
  278. package/dist/development/src/plugins/element/paragraphs/withParagraphs.js +0 -58
  279. package/dist/development/src/plugins/element/paragraphs/withParagraphs.js.map +0 -1
  280. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.cjs +0 -51
  281. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +0 -1
  282. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.js +0 -51
  283. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +0 -1
  284. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.cjs +0 -9
  285. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +0 -1
  286. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.js +0 -9
  287. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.js.map +0 -1
  288. package/dist/development/src/plugins/element/tables/TableCellElement.cjs +0 -39
  289. package/dist/development/src/plugins/element/tables/TableCellElement.cjs.map +0 -1
  290. package/dist/development/src/plugins/element/tables/TableCellElement.js +0 -39
  291. package/dist/development/src/plugins/element/tables/TableCellElement.js.map +0 -1
  292. package/dist/development/src/plugins/element/tables/TableElement.cjs +0 -114
  293. package/dist/development/src/plugins/element/tables/TableElement.cjs.map +0 -1
  294. package/dist/development/src/plugins/element/tables/TableElement.js +0 -114
  295. package/dist/development/src/plugins/element/tables/TableElement.js.map +0 -1
  296. package/dist/development/src/plugins/element/tables/TableElementSelection.cjs +0 -20
  297. package/dist/development/src/plugins/element/tables/TableElementSelection.cjs.map +0 -1
  298. package/dist/development/src/plugins/element/tables/TableElementSelection.js +0 -20
  299. package/dist/development/src/plugins/element/tables/TableElementSelection.js.map +0 -1
  300. package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.cjs +0 -36
  301. package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.cjs.map +0 -1
  302. package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.js +0 -36
  303. package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.js.map +0 -1
  304. package/dist/development/src/plugins/element/tables/TableModifications.cjs +0 -134
  305. package/dist/development/src/plugins/element/tables/TableModifications.cjs.map +0 -1
  306. package/dist/development/src/plugins/element/tables/TableModifications.js +0 -134
  307. package/dist/development/src/plugins/element/tables/TableModifications.js.map +0 -1
  308. package/dist/development/src/plugins/element/tables/TableRowElement.cjs +0 -43
  309. package/dist/development/src/plugins/element/tables/TableRowElement.cjs.map +0 -1
  310. package/dist/development/src/plugins/element/tables/TableRowElement.js +0 -43
  311. package/dist/development/src/plugins/element/tables/TableRowElement.js.map +0 -1
  312. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.cjs +0 -25
  313. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +0 -1
  314. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.js +0 -25
  315. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.js.map +0 -1
  316. package/dist/development/src/plugins/element/tables/withTables.cjs +0 -283
  317. package/dist/development/src/plugins/element/tables/withTables.cjs.map +0 -1
  318. package/dist/development/src/plugins/element/tables/withTables.js +0 -283
  319. package/dist/development/src/plugins/element/tables/withTables.js.map +0 -1
  320. package/dist/development/src/plugins/text/bold/boldMark.cjs +0 -13
  321. package/dist/development/src/plugins/text/bold/boldMark.cjs.map +0 -1
  322. package/dist/development/src/plugins/text/bold/boldMark.js +0 -13
  323. package/dist/development/src/plugins/text/bold/boldMark.js.map +0 -1
  324. package/dist/development/src/plugins/text/bold/withBold.cjs +0 -16
  325. package/dist/development/src/plugins/text/bold/withBold.cjs.map +0 -1
  326. package/dist/development/src/plugins/text/bold/withBold.js +0 -16
  327. package/dist/development/src/plugins/text/bold/withBold.js.map +0 -1
  328. package/dist/development/src/plugins/text/code/codeMark.cjs +0 -13
  329. package/dist/development/src/plugins/text/code/codeMark.cjs.map +0 -1
  330. package/dist/development/src/plugins/text/code/codeMark.js +0 -13
  331. package/dist/development/src/plugins/text/code/codeMark.js.map +0 -1
  332. package/dist/development/src/plugins/text/code/withCode.cjs +0 -9
  333. package/dist/development/src/plugins/text/code/withCode.cjs.map +0 -1
  334. package/dist/development/src/plugins/text/code/withCode.js +0 -9
  335. package/dist/development/src/plugins/text/code/withCode.js.map +0 -1
  336. package/dist/development/src/plugins/text/highlight/highlightMark.cjs +0 -13
  337. package/dist/development/src/plugins/text/highlight/highlightMark.cjs.map +0 -1
  338. package/dist/development/src/plugins/text/highlight/highlightMark.js +0 -13
  339. package/dist/development/src/plugins/text/highlight/highlightMark.js.map +0 -1
  340. package/dist/development/src/plugins/text/highlight/withHighlight.cjs +0 -9
  341. package/dist/development/src/plugins/text/highlight/withHighlight.cjs.map +0 -1
  342. package/dist/development/src/plugins/text/highlight/withHighlight.js +0 -9
  343. package/dist/development/src/plugins/text/highlight/withHighlight.js.map +0 -1
  344. package/dist/development/src/plugins/text/italic/italicMark.cjs +0 -13
  345. package/dist/development/src/plugins/text/italic/italicMark.cjs.map +0 -1
  346. package/dist/development/src/plugins/text/italic/italicMark.js +0 -13
  347. package/dist/development/src/plugins/text/italic/italicMark.js.map +0 -1
  348. package/dist/development/src/plugins/text/italic/withItalic.cjs +0 -16
  349. package/dist/development/src/plugins/text/italic/withItalic.cjs.map +0 -1
  350. package/dist/development/src/plugins/text/italic/withItalic.js +0 -16
  351. package/dist/development/src/plugins/text/italic/withItalic.js.map +0 -1
  352. package/dist/development/src/plugins/text/newline/withNewline.cjs +0 -15
  353. package/dist/development/src/plugins/text/newline/withNewline.cjs.map +0 -1
  354. package/dist/development/src/plugins/text/newline/withNewline.js +0 -15
  355. package/dist/development/src/plugins/text/newline/withNewline.js.map +0 -1
  356. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.cjs +0 -13
  357. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +0 -1
  358. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.js +0 -13
  359. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.js.map +0 -1
  360. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.cjs +0 -17
  361. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +0 -1
  362. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.js +0 -17
  363. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.js.map +0 -1
  364. package/dist/development/src/plugins/text/underline/underlineMark.cjs +0 -13
  365. package/dist/development/src/plugins/text/underline/underlineMark.cjs.map +0 -1
  366. package/dist/development/src/plugins/text/underline/underlineMark.js +0 -13
  367. package/dist/development/src/plugins/text/underline/underlineMark.js.map +0 -1
  368. package/dist/development/src/plugins/text/underline/withUnderline.cjs +0 -17
  369. package/dist/development/src/plugins/text/underline/withUnderline.cjs.map +0 -1
  370. package/dist/development/src/plugins/text/underline/withUnderline.js +0 -17
  371. package/dist/development/src/plugins/text/underline/withUnderline.js.map +0 -1
  372. package/dist/development/src/slate-reexport.cjs +0 -10
  373. package/dist/development/src/slate-reexport.cjs.map +0 -1
  374. package/dist/development/src/slate-reexport.js +0 -8
  375. package/dist/development/src/slate-reexport.js.map +0 -1
  376. package/dist/production/index.cjs +0 -139
  377. package/dist/production/index.cjs.map +0 -1
  378. package/dist/production/index.js +0 -136
  379. package/dist/production/index.js.map +0 -1
  380. package/dist/production/src/components/RichTextEditor.cjs +0 -93
  381. package/dist/production/src/components/RichTextEditor.cjs.map +0 -1
  382. package/dist/production/src/components/RichTextEditor.js +0 -93
  383. package/dist/production/src/components/RichTextEditor.js.map +0 -1
  384. package/dist/production/src/components/triggers/EditorElementTrigger.cjs +0 -16
  385. package/dist/production/src/components/triggers/EditorElementTrigger.cjs.map +0 -1
  386. package/dist/production/src/components/triggers/EditorElementTrigger.js +0 -16
  387. package/dist/production/src/components/triggers/EditorElementTrigger.js.map +0 -1
  388. package/dist/production/src/components/triggers/EditorGenericTrigger.cjs +0 -20
  389. package/dist/production/src/components/triggers/EditorGenericTrigger.cjs.map +0 -1
  390. package/dist/production/src/components/triggers/EditorGenericTrigger.js +0 -20
  391. package/dist/production/src/components/triggers/EditorGenericTrigger.js.map +0 -1
  392. package/dist/production/src/components/triggers/EditorMarkTrigger.cjs +0 -16
  393. package/dist/production/src/components/triggers/EditorMarkTrigger.cjs.map +0 -1
  394. package/dist/production/src/components/triggers/EditorMarkTrigger.js +0 -16
  395. package/dist/production/src/components/triggers/EditorMarkTrigger.js.map +0 -1
  396. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.cjs +0 -28
  397. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.cjs.map +0 -1
  398. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.js +0 -28
  399. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.js.map +0 -1
  400. package/dist/production/src/editor/createEditor.cjs +0 -35
  401. package/dist/production/src/editor/createEditor.cjs.map +0 -1
  402. package/dist/production/src/editor/createEditor.js +0 -35
  403. package/dist/production/src/editor/createEditor.js.map +0 -1
  404. package/dist/production/src/editor/createEditorWithEssentials.cjs +0 -227
  405. package/dist/production/src/editor/createEditorWithEssentials.cjs.map +0 -1
  406. package/dist/production/src/editor/createEditorWithEssentials.js +0 -211
  407. package/dist/production/src/editor/createEditorWithEssentials.js.map +0 -1
  408. package/dist/production/src/editor/index.cjs +0 -44
  409. package/dist/production/src/editor/index.cjs.map +0 -1
  410. package/dist/production/src/editor/index.js +0 -44
  411. package/dist/production/src/editor/index.js.map +0 -1
  412. package/dist/production/src/editor/methods/addMarks.cjs +0 -12
  413. package/dist/production/src/editor/methods/addMarks.cjs.map +0 -1
  414. package/dist/production/src/editor/methods/addMarks.js +0 -12
  415. package/dist/production/src/editor/methods/addMarks.js.map +0 -1
  416. package/dist/production/src/editor/methods/canToggleMark.cjs +0 -7
  417. package/dist/production/src/editor/methods/canToggleMark.cjs.map +0 -1
  418. package/dist/production/src/editor/methods/canToggleMark.js +0 -7
  419. package/dist/production/src/editor/methods/canToggleMark.js.map +0 -1
  420. package/dist/production/src/editor/methods/closest.cjs +0 -18
  421. package/dist/production/src/editor/methods/closest.cjs.map +0 -1
  422. package/dist/production/src/editor/methods/closest.js +0 -18
  423. package/dist/production/src/editor/methods/closest.js.map +0 -1
  424. package/dist/production/src/editor/methods/closestBlockEntry.cjs +0 -10
  425. package/dist/production/src/editor/methods/closestBlockEntry.cjs.map +0 -1
  426. package/dist/production/src/editor/methods/closestBlockEntry.js +0 -10
  427. package/dist/production/src/editor/methods/closestBlockEntry.js.map +0 -1
  428. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.cjs +0 -9
  429. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.cjs.map +0 -1
  430. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.js +0 -9
  431. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.js.map +0 -1
  432. package/dist/production/src/editor/methods/ejectElement.cjs +0 -15
  433. package/dist/production/src/editor/methods/ejectElement.cjs.map +0 -1
  434. package/dist/production/src/editor/methods/ejectElement.js +0 -15
  435. package/dist/production/src/editor/methods/ejectElement.js.map +0 -1
  436. package/dist/production/src/editor/methods/elementToSpecifics.cjs +0 -8
  437. package/dist/production/src/editor/methods/elementToSpecifics.cjs.map +0 -1
  438. package/dist/production/src/editor/methods/elementToSpecifics.js +0 -8
  439. package/dist/production/src/editor/methods/elementToSpecifics.js.map +0 -1
  440. package/dist/production/src/editor/methods/getElementDataAttributes.cjs +0 -13
  441. package/dist/production/src/editor/methods/getElementDataAttributes.cjs.map +0 -1
  442. package/dist/production/src/editor/methods/getElementDataAttributes.js +0 -13
  443. package/dist/production/src/editor/methods/getElementDataAttributes.js.map +0 -1
  444. package/dist/production/src/editor/methods/getPreviousSibling.cjs +0 -13
  445. package/dist/production/src/editor/methods/getPreviousSibling.cjs.map +0 -1
  446. package/dist/production/src/editor/methods/getPreviousSibling.js +0 -13
  447. package/dist/production/src/editor/methods/getPreviousSibling.js.map +0 -1
  448. package/dist/production/src/editor/methods/hasMarks.cjs +0 -23
  449. package/dist/production/src/editor/methods/hasMarks.cjs.map +0 -1
  450. package/dist/production/src/editor/methods/hasMarks.js +0 -23
  451. package/dist/production/src/editor/methods/hasMarks.js.map +0 -1
  452. package/dist/production/src/editor/methods/hasParentOfType.cjs +0 -15
  453. package/dist/production/src/editor/methods/hasParentOfType.cjs.map +0 -1
  454. package/dist/production/src/editor/methods/hasParentOfType.js +0 -15
  455. package/dist/production/src/editor/methods/hasParentOfType.js.map +0 -1
  456. package/dist/production/src/editor/methods/isElementType.cjs +0 -24
  457. package/dist/production/src/editor/methods/isElementType.cjs.map +0 -1
  458. package/dist/production/src/editor/methods/isElementType.js +0 -24
  459. package/dist/production/src/editor/methods/isElementType.js.map +0 -1
  460. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.cjs +0 -22
  461. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.cjs.map +0 -1
  462. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.js +0 -22
  463. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.js.map +0 -1
  464. package/dist/production/src/editor/methods/removeMarks.cjs +0 -12
  465. package/dist/production/src/editor/methods/removeMarks.cjs.map +0 -1
  466. package/dist/production/src/editor/methods/removeMarks.js +0 -12
  467. package/dist/production/src/editor/methods/removeMarks.js.map +0 -1
  468. package/dist/production/src/editor/methods/serializeNodes.cjs +0 -15
  469. package/dist/production/src/editor/methods/serializeNodes.cjs.map +0 -1
  470. package/dist/production/src/editor/methods/serializeNodes.js +0 -15
  471. package/dist/production/src/editor/methods/serializeNodes.js.map +0 -1
  472. package/dist/production/src/editor/methods/strictlyDeserializeNodes.cjs +0 -14
  473. package/dist/production/src/editor/methods/strictlyDeserializeNodes.cjs.map +0 -1
  474. package/dist/production/src/editor/methods/strictlyDeserializeNodes.js +0 -14
  475. package/dist/production/src/editor/methods/strictlyDeserializeNodes.js.map +0 -1
  476. package/dist/production/src/editor/methods/textToSpecifics.cjs +0 -8
  477. package/dist/production/src/editor/methods/textToSpecifics.cjs.map +0 -1
  478. package/dist/production/src/editor/methods/textToSpecifics.js +0 -8
  479. package/dist/production/src/editor/methods/textToSpecifics.js.map +0 -1
  480. package/dist/production/src/editor/methods/toLatestFormat.cjs +0 -34
  481. package/dist/production/src/editor/methods/toLatestFormat.cjs.map +0 -1
  482. package/dist/production/src/editor/methods/toLatestFormat.js +0 -34
  483. package/dist/production/src/editor/methods/toLatestFormat.js.map +0 -1
  484. package/dist/production/src/editor/methods/topLevelNodes.cjs +0 -12
  485. package/dist/production/src/editor/methods/topLevelNodes.cjs.map +0 -1
  486. package/dist/production/src/editor/methods/topLevelNodes.js +0 -12
  487. package/dist/production/src/editor/methods/topLevelNodes.js.map +0 -1
  488. package/dist/production/src/internal/components/DefaultElement.cjs +0 -11
  489. package/dist/production/src/internal/components/DefaultElement.cjs.map +0 -1
  490. package/dist/production/src/internal/components/DefaultElement.js +0 -11
  491. package/dist/production/src/internal/components/DefaultElement.js.map +0 -1
  492. package/dist/production/src/internal/hooks/useRichTextFieldNodes.cjs +0 -28
  493. package/dist/production/src/internal/hooks/useRichTextFieldNodes.cjs.map +0 -1
  494. package/dist/production/src/internal/hooks/useRichTextFieldNodes.js +0 -28
  495. package/dist/production/src/internal/hooks/useRichTextFieldNodes.js.map +0 -1
  496. package/dist/production/src/internal/utils/EditorPasteUtils.cjs +0 -47
  497. package/dist/production/src/internal/utils/EditorPasteUtils.cjs.map +0 -1
  498. package/dist/production/src/internal/utils/EditorPasteUtils.js +0 -47
  499. package/dist/production/src/internal/utils/EditorPasteUtils.js.map +0 -1
  500. package/dist/production/src/internal/utils/parseUrl.cjs +0 -14
  501. package/dist/production/src/internal/utils/parseUrl.cjs.map +0 -1
  502. package/dist/production/src/internal/utils/parseUrl.js +0 -14
  503. package/dist/production/src/internal/utils/parseUrl.js.map +0 -1
  504. package/dist/production/src/plugins/attributes/alignment/alignButton.cjs +0 -21
  505. package/dist/production/src/plugins/attributes/alignment/alignButton.cjs.map +0 -1
  506. package/dist/production/src/plugins/attributes/alignment/alignButton.js +0 -21
  507. package/dist/production/src/plugins/attributes/alignment/alignButton.js.map +0 -1
  508. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.cjs +0 -138
  509. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +0 -1
  510. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.js +0 -138
  511. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.js.map +0 -1
  512. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs +0 -15
  513. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +0 -1
  514. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js +0 -15
  515. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +0 -1
  516. package/dist/production/src/plugins/behaviour/paste/withPaste.cjs +0 -24
  517. package/dist/production/src/plugins/behaviour/paste/withPaste.cjs.map +0 -1
  518. package/dist/production/src/plugins/behaviour/paste/withPaste.js +0 -24
  519. package/dist/production/src/plugins/behaviour/paste/withPaste.js.map +0 -1
  520. package/dist/production/src/plugins/element/anchors/AnchorElement.cjs +0 -44
  521. package/dist/production/src/plugins/element/anchors/AnchorElement.cjs.map +0 -1
  522. package/dist/production/src/plugins/element/anchors/AnchorElement.js +0 -44
  523. package/dist/production/src/plugins/element/anchors/AnchorElement.js.map +0 -1
  524. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs +0 -19
  525. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +0 -1
  526. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.js +0 -19
  527. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +0 -1
  528. package/dist/production/src/plugins/element/anchors/AnchorModifications.cjs +0 -29
  529. package/dist/production/src/plugins/element/anchors/AnchorModifications.cjs.map +0 -1
  530. package/dist/production/src/plugins/element/anchors/AnchorModifications.js +0 -29
  531. package/dist/production/src/plugins/element/anchors/AnchorModifications.js.map +0 -1
  532. package/dist/production/src/plugins/element/anchors/withAnchors.cjs +0 -21
  533. package/dist/production/src/plugins/element/anchors/withAnchors.cjs.map +0 -1
  534. package/dist/production/src/plugins/element/anchors/withAnchors.js +0 -21
  535. package/dist/production/src/plugins/element/anchors/withAnchors.js.map +0 -1
  536. package/dist/production/src/plugins/element/headings/HeadingElement.cjs +0 -41
  537. package/dist/production/src/plugins/element/headings/HeadingElement.cjs.map +0 -1
  538. package/dist/production/src/plugins/element/headings/HeadingElement.js +0 -41
  539. package/dist/production/src/plugins/element/headings/HeadingElement.js.map +0 -1
  540. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.cjs +0 -22
  541. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +0 -1
  542. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.js +0 -22
  543. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +0 -1
  544. package/dist/production/src/plugins/element/headings/withHeadings.cjs +0 -70
  545. package/dist/production/src/plugins/element/headings/withHeadings.cjs.map +0 -1
  546. package/dist/production/src/plugins/element/headings/withHeadings.js +0 -70
  547. package/dist/production/src/plugins/element/headings/withHeadings.js.map +0 -1
  548. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs +0 -41
  549. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +0 -1
  550. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.js +0 -41
  551. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +0 -1
  552. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.cjs +0 -75
  553. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +0 -1
  554. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.js +0 -75
  555. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.js.map +0 -1
  556. package/dist/production/src/plugins/element/lists/ListElement.cjs +0 -26
  557. package/dist/production/src/plugins/element/lists/ListElement.cjs.map +0 -1
  558. package/dist/production/src/plugins/element/lists/ListElement.js +0 -26
  559. package/dist/production/src/plugins/element/lists/ListElement.js.map +0 -1
  560. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.cjs +0 -98
  561. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +0 -1
  562. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.js +0 -98
  563. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.js.map +0 -1
  564. package/dist/production/src/plugins/element/lists/ListItemElement.cjs +0 -53
  565. package/dist/production/src/plugins/element/lists/ListItemElement.cjs.map +0 -1
  566. package/dist/production/src/plugins/element/lists/ListItemElement.js +0 -53
  567. package/dist/production/src/plugins/element/lists/ListItemElement.js.map +0 -1
  568. package/dist/production/src/plugins/element/lists/OrderedListElement.cjs +0 -25
  569. package/dist/production/src/plugins/element/lists/OrderedListElement.cjs.map +0 -1
  570. package/dist/production/src/plugins/element/lists/OrderedListElement.js +0 -25
  571. package/dist/production/src/plugins/element/lists/OrderedListElement.js.map +0 -1
  572. package/dist/production/src/plugins/element/lists/UnorderedListElement.cjs +0 -25
  573. package/dist/production/src/plugins/element/lists/UnorderedListElement.cjs.map +0 -1
  574. package/dist/production/src/plugins/element/lists/UnorderedListElement.js +0 -25
  575. package/dist/production/src/plugins/element/lists/UnorderedListElement.js.map +0 -1
  576. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.cjs +0 -57
  577. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.cjs.map +0 -1
  578. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.js +0 -57
  579. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.js.map +0 -1
  580. package/dist/production/src/plugins/element/lists/transforms/indentListItem.cjs +0 -57
  581. package/dist/production/src/plugins/element/lists/transforms/indentListItem.cjs.map +0 -1
  582. package/dist/production/src/plugins/element/lists/transforms/indentListItem.js +0 -57
  583. package/dist/production/src/plugins/element/lists/transforms/indentListItem.js.map +0 -1
  584. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.cjs +0 -22
  585. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +0 -1
  586. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.js +0 -22
  587. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.js.map +0 -1
  588. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.cjs +0 -93
  589. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.cjs.map +0 -1
  590. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.js +0 -93
  591. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.js.map +0 -1
  592. package/dist/production/src/plugins/element/lists/withLists.cjs +0 -153
  593. package/dist/production/src/plugins/element/lists/withLists.cjs.map +0 -1
  594. package/dist/production/src/plugins/element/lists/withLists.js +0 -153
  595. package/dist/production/src/plugins/element/lists/withLists.js.map +0 -1
  596. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.cjs +0 -49
  597. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.cjs.map +0 -1
  598. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.js +0 -49
  599. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.js.map +0 -1
  600. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs +0 -11
  601. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +0 -1
  602. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js +0 -11
  603. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +0 -1
  604. package/dist/production/src/plugins/element/paragraphs/withParagraphs.cjs +0 -58
  605. package/dist/production/src/plugins/element/paragraphs/withParagraphs.cjs.map +0 -1
  606. package/dist/production/src/plugins/element/paragraphs/withParagraphs.js +0 -58
  607. package/dist/production/src/plugins/element/paragraphs/withParagraphs.js.map +0 -1
  608. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.cjs +0 -51
  609. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +0 -1
  610. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.js +0 -51
  611. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +0 -1
  612. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.cjs +0 -9
  613. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +0 -1
  614. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.js +0 -9
  615. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.js.map +0 -1
  616. package/dist/production/src/plugins/element/tables/TableCellElement.cjs +0 -39
  617. package/dist/production/src/plugins/element/tables/TableCellElement.cjs.map +0 -1
  618. package/dist/production/src/plugins/element/tables/TableCellElement.js +0 -39
  619. package/dist/production/src/plugins/element/tables/TableCellElement.js.map +0 -1
  620. package/dist/production/src/plugins/element/tables/TableElement.cjs +0 -114
  621. package/dist/production/src/plugins/element/tables/TableElement.cjs.map +0 -1
  622. package/dist/production/src/plugins/element/tables/TableElement.js +0 -114
  623. package/dist/production/src/plugins/element/tables/TableElement.js.map +0 -1
  624. package/dist/production/src/plugins/element/tables/TableElementSelection.cjs +0 -20
  625. package/dist/production/src/plugins/element/tables/TableElementSelection.cjs.map +0 -1
  626. package/dist/production/src/plugins/element/tables/TableElementSelection.js +0 -20
  627. package/dist/production/src/plugins/element/tables/TableElementSelection.js.map +0 -1
  628. package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.cjs +0 -36
  629. package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.cjs.map +0 -1
  630. package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.js +0 -36
  631. package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.js.map +0 -1
  632. package/dist/production/src/plugins/element/tables/TableModifications.cjs +0 -134
  633. package/dist/production/src/plugins/element/tables/TableModifications.cjs.map +0 -1
  634. package/dist/production/src/plugins/element/tables/TableModifications.js +0 -134
  635. package/dist/production/src/plugins/element/tables/TableModifications.js.map +0 -1
  636. package/dist/production/src/plugins/element/tables/TableRowElement.cjs +0 -43
  637. package/dist/production/src/plugins/element/tables/TableRowElement.cjs.map +0 -1
  638. package/dist/production/src/plugins/element/tables/TableRowElement.js +0 -43
  639. package/dist/production/src/plugins/element/tables/TableRowElement.js.map +0 -1
  640. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.cjs +0 -25
  641. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +0 -1
  642. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.js +0 -25
  643. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.js.map +0 -1
  644. package/dist/production/src/plugins/element/tables/withTables.cjs +0 -283
  645. package/dist/production/src/plugins/element/tables/withTables.cjs.map +0 -1
  646. package/dist/production/src/plugins/element/tables/withTables.js +0 -283
  647. package/dist/production/src/plugins/element/tables/withTables.js.map +0 -1
  648. package/dist/production/src/plugins/text/bold/boldMark.cjs +0 -13
  649. package/dist/production/src/plugins/text/bold/boldMark.cjs.map +0 -1
  650. package/dist/production/src/plugins/text/bold/boldMark.js +0 -13
  651. package/dist/production/src/plugins/text/bold/boldMark.js.map +0 -1
  652. package/dist/production/src/plugins/text/bold/withBold.cjs +0 -16
  653. package/dist/production/src/plugins/text/bold/withBold.cjs.map +0 -1
  654. package/dist/production/src/plugins/text/bold/withBold.js +0 -16
  655. package/dist/production/src/plugins/text/bold/withBold.js.map +0 -1
  656. package/dist/production/src/plugins/text/code/codeMark.cjs +0 -13
  657. package/dist/production/src/plugins/text/code/codeMark.cjs.map +0 -1
  658. package/dist/production/src/plugins/text/code/codeMark.js +0 -13
  659. package/dist/production/src/plugins/text/code/codeMark.js.map +0 -1
  660. package/dist/production/src/plugins/text/code/withCode.cjs +0 -9
  661. package/dist/production/src/plugins/text/code/withCode.cjs.map +0 -1
  662. package/dist/production/src/plugins/text/code/withCode.js +0 -9
  663. package/dist/production/src/plugins/text/code/withCode.js.map +0 -1
  664. package/dist/production/src/plugins/text/highlight/highlightMark.cjs +0 -13
  665. package/dist/production/src/plugins/text/highlight/highlightMark.cjs.map +0 -1
  666. package/dist/production/src/plugins/text/highlight/highlightMark.js +0 -13
  667. package/dist/production/src/plugins/text/highlight/highlightMark.js.map +0 -1
  668. package/dist/production/src/plugins/text/highlight/withHighlight.cjs +0 -9
  669. package/dist/production/src/plugins/text/highlight/withHighlight.cjs.map +0 -1
  670. package/dist/production/src/plugins/text/highlight/withHighlight.js +0 -9
  671. package/dist/production/src/plugins/text/highlight/withHighlight.js.map +0 -1
  672. package/dist/production/src/plugins/text/italic/italicMark.cjs +0 -13
  673. package/dist/production/src/plugins/text/italic/italicMark.cjs.map +0 -1
  674. package/dist/production/src/plugins/text/italic/italicMark.js +0 -13
  675. package/dist/production/src/plugins/text/italic/italicMark.js.map +0 -1
  676. package/dist/production/src/plugins/text/italic/withItalic.cjs +0 -16
  677. package/dist/production/src/plugins/text/italic/withItalic.cjs.map +0 -1
  678. package/dist/production/src/plugins/text/italic/withItalic.js +0 -16
  679. package/dist/production/src/plugins/text/italic/withItalic.js.map +0 -1
  680. package/dist/production/src/plugins/text/newline/withNewline.cjs +0 -15
  681. package/dist/production/src/plugins/text/newline/withNewline.cjs.map +0 -1
  682. package/dist/production/src/plugins/text/newline/withNewline.js +0 -15
  683. package/dist/production/src/plugins/text/newline/withNewline.js.map +0 -1
  684. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.cjs +0 -13
  685. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +0 -1
  686. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.js +0 -13
  687. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.js.map +0 -1
  688. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.cjs +0 -17
  689. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +0 -1
  690. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.js +0 -17
  691. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.js.map +0 -1
  692. package/dist/production/src/plugins/text/underline/underlineMark.cjs +0 -13
  693. package/dist/production/src/plugins/text/underline/underlineMark.cjs.map +0 -1
  694. package/dist/production/src/plugins/text/underline/underlineMark.js +0 -13
  695. package/dist/production/src/plugins/text/underline/underlineMark.js.map +0 -1
  696. package/dist/production/src/plugins/text/underline/withUnderline.cjs +0 -17
  697. package/dist/production/src/plugins/text/underline/withUnderline.cjs.map +0 -1
  698. package/dist/production/src/plugins/text/underline/withUnderline.js +0 -17
  699. package/dist/production/src/plugins/text/underline/withUnderline.js.map +0 -1
  700. package/dist/production/src/slate-reexport.cjs +0 -10
  701. package/dist/production/src/slate-reexport.cjs.map +0 -1
  702. package/dist/production/src/slate-reexport.js +0 -8
  703. package/dist/production/src/slate-reexport.js.map +0 -1
  704. package/dist/types/components/RichTextEditor.d.ts +0 -13
  705. package/dist/types/components/RichTextEditor.d.ts.map +0 -1
  706. package/dist/types/components/index.d.ts +0 -3
  707. package/dist/types/components/index.d.ts.map +0 -1
  708. package/dist/types/components/triggers/EditorElementTrigger.d.ts +0 -8
  709. package/dist/types/components/triggers/EditorElementTrigger.d.ts.map +0 -1
  710. package/dist/types/components/triggers/EditorGenericTrigger.d.ts +0 -16
  711. package/dist/types/components/triggers/EditorGenericTrigger.d.ts.map +0 -1
  712. package/dist/types/components/triggers/EditorMarkTrigger.d.ts +0 -7
  713. package/dist/types/components/triggers/EditorMarkTrigger.d.ts.map +0 -1
  714. package/dist/types/components/triggers/EditorWrapNodeTrigger.d.ts +0 -11
  715. package/dist/types/components/triggers/EditorWrapNodeTrigger.d.ts.map +0 -1
  716. package/dist/types/components/triggers/index.d.ts +0 -5
  717. package/dist/types/components/triggers/index.d.ts.map +0 -1
  718. package/dist/types/editor/createEditor.d.ts +0 -24
  719. package/dist/types/editor/createEditor.d.ts.map +0 -1
  720. package/dist/types/editor/createEditorWithEssentials.d.ts +0 -5
  721. package/dist/types/editor/createEditorWithEssentials.d.ts.map +0 -1
  722. package/dist/types/editor/index.d.ts +0 -35
  723. package/dist/types/editor/index.d.ts.map +0 -1
  724. package/dist/types/editor/methods/addMarks.d.ts +0 -4
  725. package/dist/types/editor/methods/addMarks.d.ts.map +0 -1
  726. package/dist/types/editor/methods/canToggleMark.d.ts +0 -3
  727. package/dist/types/editor/methods/canToggleMark.d.ts.map +0 -1
  728. package/dist/types/editor/methods/closest.d.ts +0 -6
  729. package/dist/types/editor/methods/closest.d.ts.map +0 -1
  730. package/dist/types/editor/methods/closestBlockEntry.d.ts +0 -6
  731. package/dist/types/editor/methods/closestBlockEntry.d.ts.map +0 -1
  732. package/dist/types/editor/methods/closestViableBlockContainerEntry.d.ts +0 -6
  733. package/dist/types/editor/methods/closestViableBlockContainerEntry.d.ts.map +0 -1
  734. package/dist/types/editor/methods/ejectElement.d.ts +0 -3
  735. package/dist/types/editor/methods/ejectElement.d.ts.map +0 -1
  736. package/dist/types/editor/methods/elementToSpecifics.d.ts +0 -3
  737. package/dist/types/editor/methods/elementToSpecifics.d.ts.map +0 -1
  738. package/dist/types/editor/methods/getElementDataAttributes.d.ts +0 -7
  739. package/dist/types/editor/methods/getElementDataAttributes.d.ts.map +0 -1
  740. package/dist/types/editor/methods/getPreviousSibling.d.ts +0 -3
  741. package/dist/types/editor/methods/getPreviousSibling.d.ts.map +0 -1
  742. package/dist/types/editor/methods/hasMarks.d.ts +0 -7
  743. package/dist/types/editor/methods/hasMarks.d.ts.map +0 -1
  744. package/dist/types/editor/methods/hasParentOfType.d.ts +0 -3
  745. package/dist/types/editor/methods/hasParentOfType.d.ts.map +0 -1
  746. package/dist/types/editor/methods/index.d.ts +0 -20
  747. package/dist/types/editor/methods/index.d.ts.map +0 -1
  748. package/dist/types/editor/methods/isElementType.d.ts +0 -3
  749. package/dist/types/editor/methods/isElementType.d.ts.map +0 -1
  750. package/dist/types/editor/methods/permissivelyDeserializeNodes.d.ts +0 -3
  751. package/dist/types/editor/methods/permissivelyDeserializeNodes.d.ts.map +0 -1
  752. package/dist/types/editor/methods/removeMarks.d.ts +0 -4
  753. package/dist/types/editor/methods/removeMarks.d.ts.map +0 -1
  754. package/dist/types/editor/methods/serializeNodes.d.ts +0 -3
  755. package/dist/types/editor/methods/serializeNodes.d.ts.map +0 -1
  756. package/dist/types/editor/methods/strictlyDeserializeNodes.d.ts +0 -3
  757. package/dist/types/editor/methods/strictlyDeserializeNodes.d.ts.map +0 -1
  758. package/dist/types/editor/methods/textToSpecifics.d.ts +0 -4
  759. package/dist/types/editor/methods/textToSpecifics.d.ts.map +0 -1
  760. package/dist/types/editor/methods/toLatestFormat.d.ts +0 -4
  761. package/dist/types/editor/methods/toLatestFormat.d.ts.map +0 -1
  762. package/dist/types/editor/methods/topLevelNodes.d.ts +0 -3
  763. package/dist/types/editor/methods/topLevelNodes.d.ts.map +0 -1
  764. package/dist/types/index.d.ts +0 -7
  765. package/dist/types/index.d.ts.map +0 -1
  766. package/dist/types/internal/components/DefaultElement.d.ts +0 -6
  767. package/dist/types/internal/components/DefaultElement.d.ts.map +0 -1
  768. package/dist/types/internal/hooks/useRichTextFieldNodes.d.ts +0 -9
  769. package/dist/types/internal/hooks/useRichTextFieldNodes.d.ts.map +0 -1
  770. package/dist/types/internal/utils/EditorPasteUtils.d.ts +0 -7
  771. package/dist/types/internal/utils/EditorPasteUtils.d.ts.map +0 -1
  772. package/dist/types/internal/utils/index.d.ts +0 -3
  773. package/dist/types/internal/utils/index.d.ts.map +0 -1
  774. package/dist/types/internal/utils/parseIframeSrc.d.ts +0 -2
  775. package/dist/types/internal/utils/parseIframeSrc.d.ts.map +0 -1
  776. package/dist/types/internal/utils/parseUrl.d.ts +0 -2
  777. package/dist/types/internal/utils/parseUrl.d.ts.map +0 -1
  778. package/dist/types/plugins/attributes/alignment/alignButton.d.ts +0 -14
  779. package/dist/types/plugins/attributes/alignment/alignButton.d.ts.map +0 -1
  780. package/dist/types/plugins/attributes/alignment/index.d.ts +0 -2
  781. package/dist/types/plugins/attributes/alignment/index.d.ts.map +0 -1
  782. package/dist/types/plugins/attributes/index.d.ts +0 -2
  783. package/dist/types/plugins/attributes/index.d.ts.map +0 -1
  784. package/dist/types/plugins/behaviour/index.d.ts +0 -2
  785. package/dist/types/plugins/behaviour/index.d.ts.map +0 -1
  786. package/dist/types/plugins/behaviour/paste/HtmlDeserializer.d.ts +0 -34
  787. package/dist/types/plugins/behaviour/paste/HtmlDeserializer.d.ts.map +0 -1
  788. package/dist/types/plugins/behaviour/paste/createMarkHtmlDeserializer.d.ts +0 -3
  789. package/dist/types/plugins/behaviour/paste/createMarkHtmlDeserializer.d.ts.map +0 -1
  790. package/dist/types/plugins/behaviour/paste/index.d.ts +0 -3
  791. package/dist/types/plugins/behaviour/paste/index.d.ts.map +0 -1
  792. package/dist/types/plugins/behaviour/paste/withPaste.d.ts +0 -3
  793. package/dist/types/plugins/behaviour/paste/withPaste.d.ts.map +0 -1
  794. package/dist/types/plugins/element/anchors/AnchorElement.d.ts +0 -14
  795. package/dist/types/plugins/element/anchors/AnchorElement.d.ts.map +0 -1
  796. package/dist/types/plugins/element/anchors/AnchorHtmlDeserializer.d.ts +0 -3
  797. package/dist/types/plugins/element/anchors/AnchorHtmlDeserializer.d.ts.map +0 -1
  798. package/dist/types/plugins/element/anchors/AnchorModifications.d.ts +0 -6
  799. package/dist/types/plugins/element/anchors/AnchorModifications.d.ts.map +0 -1
  800. package/dist/types/plugins/element/anchors/index.d.ts +0 -4
  801. package/dist/types/plugins/element/anchors/index.d.ts.map +0 -1
  802. package/dist/types/plugins/element/anchors/withAnchors.d.ts +0 -7
  803. package/dist/types/plugins/element/anchors/withAnchors.d.ts.map +0 -1
  804. package/dist/types/plugins/element/headings/HeadingElement.d.ts +0 -17
  805. package/dist/types/plugins/element/headings/HeadingElement.d.ts.map +0 -1
  806. package/dist/types/plugins/element/headings/HeadingHtmlDeserializer.d.ts +0 -3
  807. package/dist/types/plugins/element/headings/HeadingHtmlDeserializer.d.ts.map +0 -1
  808. package/dist/types/plugins/element/headings/index.d.ts +0 -4
  809. package/dist/types/plugins/element/headings/index.d.ts.map +0 -1
  810. package/dist/types/plugins/element/headings/withHeadings.d.ts +0 -7
  811. package/dist/types/plugins/element/headings/withHeadings.d.ts.map +0 -1
  812. package/dist/types/plugins/element/horizonalRules/HorizontalRuleElement.d.ts +0 -13
  813. package/dist/types/plugins/element/horizonalRules/HorizontalRuleElement.d.ts.map +0 -1
  814. package/dist/types/plugins/element/horizonalRules/index.d.ts +0 -3
  815. package/dist/types/plugins/element/horizonalRules/index.d.ts.map +0 -1
  816. package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts +0 -7
  817. package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts.map +0 -1
  818. package/dist/types/plugins/element/index.d.ts +0 -8
  819. package/dist/types/plugins/element/index.d.ts.map +0 -1
  820. package/dist/types/plugins/element/lists/ListElement.d.ts +0 -6
  821. package/dist/types/plugins/element/lists/ListElement.d.ts.map +0 -1
  822. package/dist/types/plugins/element/lists/ListHtmlDeserializer.d.ts +0 -10
  823. package/dist/types/plugins/element/lists/ListHtmlDeserializer.d.ts.map +0 -1
  824. package/dist/types/plugins/element/lists/ListItemElement.d.ts +0 -12
  825. package/dist/types/plugins/element/lists/ListItemElement.d.ts.map +0 -1
  826. package/dist/types/plugins/element/lists/OrderedListElement.d.ts +0 -12
  827. package/dist/types/plugins/element/lists/OrderedListElement.d.ts.map +0 -1
  828. package/dist/types/plugins/element/lists/UnorderedListElement.d.ts +0 -12
  829. package/dist/types/plugins/element/lists/UnorderedListElement.d.ts.map +0 -1
  830. package/dist/types/plugins/element/lists/index.d.ts +0 -6
  831. package/dist/types/plugins/element/lists/index.d.ts.map +0 -1
  832. package/dist/types/plugins/element/lists/transforms/dedentListItem.d.ts +0 -4
  833. package/dist/types/plugins/element/lists/transforms/dedentListItem.d.ts.map +0 -1
  834. package/dist/types/plugins/element/lists/transforms/indentListItem.d.ts +0 -4
  835. package/dist/types/plugins/element/lists/transforms/indentListItem.d.ts.map +0 -1
  836. package/dist/types/plugins/element/lists/transforms/index.d.ts +0 -5
  837. package/dist/types/plugins/element/lists/transforms/index.d.ts.map +0 -1
  838. package/dist/types/plugins/element/lists/transforms/normalizeListElement.d.ts +0 -7
  839. package/dist/types/plugins/element/lists/transforms/normalizeListElement.d.ts.map +0 -1
  840. package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts +0 -5
  841. package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts.map +0 -1
  842. package/dist/types/plugins/element/lists/withLists.d.ts +0 -11
  843. package/dist/types/plugins/element/lists/withLists.d.ts.map +0 -1
  844. package/dist/types/plugins/element/paragraphs/ParagraphElement.d.ts +0 -15
  845. package/dist/types/plugins/element/paragraphs/ParagraphElement.d.ts.map +0 -1
  846. package/dist/types/plugins/element/paragraphs/ParagraphHtmlDeserializer.d.ts +0 -3
  847. package/dist/types/plugins/element/paragraphs/ParagraphHtmlDeserializer.d.ts.map +0 -1
  848. package/dist/types/plugins/element/paragraphs/index.d.ts +0 -4
  849. package/dist/types/plugins/element/paragraphs/index.d.ts.map +0 -1
  850. package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts +0 -7
  851. package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts.map +0 -1
  852. package/dist/types/plugins/element/scrollTargets/ScrollTargetElement.d.ts +0 -14
  853. package/dist/types/plugins/element/scrollTargets/ScrollTargetElement.d.ts.map +0 -1
  854. package/dist/types/plugins/element/scrollTargets/index.d.ts +0 -3
  855. package/dist/types/plugins/element/scrollTargets/index.d.ts.map +0 -1
  856. package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts +0 -7
  857. package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts.map +0 -1
  858. package/dist/types/plugins/element/tables/TableCellElement.d.ts +0 -20
  859. package/dist/types/plugins/element/tables/TableCellElement.d.ts.map +0 -1
  860. package/dist/types/plugins/element/tables/TableElement.d.ts +0 -26
  861. package/dist/types/plugins/element/tables/TableElement.d.ts.map +0 -1
  862. package/dist/types/plugins/element/tables/TableElementSelection.d.ts +0 -6
  863. package/dist/types/plugins/element/tables/TableElementSelection.d.ts.map +0 -1
  864. package/dist/types/plugins/element/tables/TableHtmlDeserializer.d.ts +0 -3
  865. package/dist/types/plugins/element/tables/TableHtmlDeserializer.d.ts.map +0 -1
  866. package/dist/types/plugins/element/tables/TableModifications.d.ts +0 -14
  867. package/dist/types/plugins/element/tables/TableModifications.d.ts.map +0 -1
  868. package/dist/types/plugins/element/tables/TableRowElement.d.ts +0 -22
  869. package/dist/types/plugins/element/tables/TableRowElement.d.ts.map +0 -1
  870. package/dist/types/plugins/element/tables/gaugeTableColumnCount.d.ts +0 -3
  871. package/dist/types/plugins/element/tables/gaugeTableColumnCount.d.ts.map +0 -1
  872. package/dist/types/plugins/element/tables/index.d.ts +0 -6
  873. package/dist/types/plugins/element/tables/index.d.ts.map +0 -1
  874. package/dist/types/plugins/element/tables/withTables.d.ts +0 -11
  875. package/dist/types/plugins/element/tables/withTables.d.ts.map +0 -1
  876. package/dist/types/plugins/index.d.ts +0 -5
  877. package/dist/types/plugins/index.d.ts.map +0 -1
  878. package/dist/types/plugins/text/bold/boldMark.d.ts +0 -4
  879. package/dist/types/plugins/text/bold/boldMark.d.ts.map +0 -1
  880. package/dist/types/plugins/text/bold/index.d.ts +0 -3
  881. package/dist/types/plugins/text/bold/index.d.ts.map +0 -1
  882. package/dist/types/plugins/text/bold/withBold.d.ts +0 -3
  883. package/dist/types/plugins/text/bold/withBold.d.ts.map +0 -1
  884. package/dist/types/plugins/text/code/codeMark.d.ts +0 -4
  885. package/dist/types/plugins/text/code/codeMark.d.ts.map +0 -1
  886. package/dist/types/plugins/text/code/index.d.ts +0 -3
  887. package/dist/types/plugins/text/code/index.d.ts.map +0 -1
  888. package/dist/types/plugins/text/code/withCode.d.ts +0 -3
  889. package/dist/types/plugins/text/code/withCode.d.ts.map +0 -1
  890. package/dist/types/plugins/text/highlight/highlightMark.d.ts +0 -4
  891. package/dist/types/plugins/text/highlight/highlightMark.d.ts.map +0 -1
  892. package/dist/types/plugins/text/highlight/index.d.ts +0 -3
  893. package/dist/types/plugins/text/highlight/index.d.ts.map +0 -1
  894. package/dist/types/plugins/text/highlight/withHighlight.d.ts +0 -3
  895. package/dist/types/plugins/text/highlight/withHighlight.d.ts.map +0 -1
  896. package/dist/types/plugins/text/index.d.ts +0 -8
  897. package/dist/types/plugins/text/index.d.ts.map +0 -1
  898. package/dist/types/plugins/text/italic/index.d.ts +0 -3
  899. package/dist/types/plugins/text/italic/index.d.ts.map +0 -1
  900. package/dist/types/plugins/text/italic/italicMark.d.ts +0 -4
  901. package/dist/types/plugins/text/italic/italicMark.d.ts.map +0 -1
  902. package/dist/types/plugins/text/italic/withItalic.d.ts +0 -3
  903. package/dist/types/plugins/text/italic/withItalic.d.ts.map +0 -1
  904. package/dist/types/plugins/text/newline/index.d.ts +0 -2
  905. package/dist/types/plugins/text/newline/index.d.ts.map +0 -1
  906. package/dist/types/plugins/text/newline/withNewline.d.ts +0 -3
  907. package/dist/types/plugins/text/newline/withNewline.d.ts.map +0 -1
  908. package/dist/types/plugins/text/strikeThrough/index.d.ts +0 -3
  909. package/dist/types/plugins/text/strikeThrough/index.d.ts.map +0 -1
  910. package/dist/types/plugins/text/strikeThrough/strikeThroughMark.d.ts +0 -4
  911. package/dist/types/plugins/text/strikeThrough/strikeThroughMark.d.ts.map +0 -1
  912. package/dist/types/plugins/text/strikeThrough/withStrikeThrough.d.ts +0 -3
  913. package/dist/types/plugins/text/strikeThrough/withStrikeThrough.d.ts.map +0 -1
  914. package/dist/types/plugins/text/underline/index.d.ts +0 -3
  915. package/dist/types/plugins/text/underline/index.d.ts.map +0 -1
  916. package/dist/types/plugins/text/underline/underlineMark.d.ts +0 -4
  917. package/dist/types/plugins/text/underline/underlineMark.d.ts.map +0 -1
  918. package/dist/types/plugins/text/underline/withUnderline.d.ts +0 -3
  919. package/dist/types/plugins/text/underline/withUnderline.d.ts.map +0 -1
  920. package/dist/types/slate-reexport.d.ts +0 -3
  921. package/dist/types/slate-reexport.d.ts.map +0 -1
  922. package/dist/types/slate-types.d.ts +0 -31
  923. package/dist/types/slate-types.d.ts.map +0 -1
  924. package/dist/types/tsconfig.tsbuildinfo +0 -1
  925. package/dist/types/types/editor.d.ts +0 -43
  926. package/dist/types/types/editor.d.ts.map +0 -1
  927. package/dist/types/types/htmlDeserializer.d.ts +0 -38
  928. package/dist/types/types/htmlDeserializer.d.ts.map +0 -1
  929. package/dist/types/types/index.d.ts +0 -4
  930. package/dist/types/types/index.d.ts.map +0 -1
  931. package/dist/types/types/plugins.d.ts +0 -58
  932. package/dist/types/types/plugins.d.ts.map +0 -1
@@ -1,14 +0,0 @@
1
- import { toLatestFormat } from "./toLatestFormat.js";
2
- const strictlyDeserializeNodes = (editor, serializedElement, errorMessage) => {
3
- let deserialized;
4
- try {
5
- deserialized = JSON.parse(serializedElement);
6
- } catch (e) {
7
- throw new Error(errorMessage || `Editor: deserialization error`);
8
- }
9
- return toLatestFormat(editor, deserialized).children;
10
- };
11
- export {
12
- strictlyDeserializeNodes
13
- };
14
- //# sourceMappingURL=strictlyDeserializeNodes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strictlyDeserializeNodes.js","sources":["../../../../../../packages/react-slate-editor-base/src/editor/methods/strictlyDeserializeNodes.ts"],"sourcesContent":["import { toLatestFormat } from './toLatestFormat'\nimport { Editor as SlateEditor, Element as SlateElement, Text as SlateText } from 'slate'\nimport { SerializableEditorNode } from '../../types/editor'\n\nexport const strictlyDeserializeNodes = <E extends SlateEditor>(\n\teditor: E,\n\tserializedElement: string,\n\terrorMessage?: string,\n): Array<SlateElement | SlateText> => {\n\tlet deserialized: SerializableEditorNode\n\ttry {\n\t\t// It is important that only the JSON.parse call is inside the try block.\n\t\t// We don't want to catch other exceptions from here.\n\t\tdeserialized = JSON.parse(serializedElement)\n\t} catch (e) {\n\t\tthrow new Error(errorMessage || `Editor: deserialization error`)\n\t}\n\treturn toLatestFormat(editor, deserialized).children\n}\n"],"names":[],"mappings":";AAIO,MAAM,2BAA2B,CACvC,QACA,mBACA,iBACqC;AACjC,MAAA;AACA,MAAA;AAGY,mBAAA,KAAK,MAAM,iBAAiB;AAAA,WACnC,GAAG;AACL,UAAA,IAAI,MAAM,gBAAgB,+BAA+B;AAAA,EAAA;AAEzD,SAAA,eAAe,QAAQ,YAAY,EAAE;AAC7C;"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const textToSpecifics = (textNode) => {
4
- const { text, ...specifics } = textNode;
5
- return specifics;
6
- };
7
- exports.textToSpecifics = textToSpecifics;
8
- //# sourceMappingURL=textToSpecifics.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textToSpecifics.cjs","sources":["../../../../../../packages/react-slate-editor-base/src/editor/methods/textToSpecifics.ts"],"sourcesContent":["import { Text as SlateText } from 'slate'\nimport { TextSpecifics } from '../../types/editor'\n\nexport const textToSpecifics = <Text extends SlateText = SlateText>(textNode: Text): TextSpecifics<Text> => {\n\tconst { text, ...specifics } = textNode\n\treturn specifics\n}\n"],"names":[],"mappings":";;AAGa,MAAA,kBAAkB,CAAqC,aAAwC;AAC3G,QAAM,EAAE,MAAM,GAAG,UAAA,IAAc;AACxB,SAAA;AACR;;"}
@@ -1,8 +0,0 @@
1
- const textToSpecifics = (textNode) => {
2
- const { text, ...specifics } = textNode;
3
- return specifics;
4
- };
5
- export {
6
- textToSpecifics
7
- };
8
- //# sourceMappingURL=textToSpecifics.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textToSpecifics.js","sources":["../../../../../../packages/react-slate-editor-base/src/editor/methods/textToSpecifics.ts"],"sourcesContent":["import { Text as SlateText } from 'slate'\nimport { TextSpecifics } from '../../types/editor'\n\nexport const textToSpecifics = <Text extends SlateText = SlateText>(textNode: Text): TextSpecifics<Text> => {\n\tconst { text, ...specifics } = textNode\n\treturn specifics\n}\n"],"names":[],"mappings":"AAGa,MAAA,kBAAkB,CAAqC,aAAwC;AAC3G,QAAM,EAAE,MAAM,GAAG,UAAA,IAAc;AACxB,SAAA;AACR;"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactBinding = require("@contember/react-binding");
4
- const toLatestFormat = (editor, potentiallyOldNode) => {
5
- if (potentiallyOldNode.formatVersion === editor.formatVersion) {
6
- return potentiallyOldNode;
7
- }
8
- if (potentiallyOldNode.formatVersion > editor.formatVersion) {
9
- return potentiallyOldNode;
10
- }
11
- let formatNumber = potentiallyOldNode.formatVersion;
12
- try {
13
- for (; formatNumber < editor.formatVersion; formatNumber++) {
14
- potentiallyOldNode = {
15
- formatVersion: formatNumber + 1,
16
- children: potentiallyOldNode.children.map(
17
- (oldChild) => editor.upgradeFormatBySingleVersion(oldChild, formatNumber)
18
- )
19
- };
20
- }
21
- return potentiallyOldNode;
22
- } catch (e) {
23
- const genericMessage = `Failed to upgrade editor format from version ${formatNumber}.`;
24
- if (e instanceof RangeError) {
25
- throw new reactBinding.BindingError(
26
- `${genericMessage}
27
- Detected a stack overflow. Perhaps you incorrectly implemented 'upgradeFormatBySingleVersion'?`
28
- );
29
- }
30
- throw new reactBinding.BindingError(genericMessage);
31
- }
32
- };
33
- exports.toLatestFormat = toLatestFormat;
34
- //# sourceMappingURL=toLatestFormat.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toLatestFormat.cjs","sources":["../../../../../../packages/react-slate-editor-base/src/editor/methods/toLatestFormat.ts"],"sourcesContent":["import { BindingError } from '@contember/react-binding'\nimport { Editor as SlateEditor, Element as SlateElement } from 'slate'\nimport { SerializableEditorNode } from '../../types/editor'\n\nexport const toLatestFormat = <E extends SlateEditor>(\n\teditor: E,\n\tpotentiallyOldNode: SerializableEditorNode,\n): SerializableEditorNode => {\n\tif (potentiallyOldNode.formatVersion === editor.formatVersion) {\n\t\treturn potentiallyOldNode\n\t}\n\tif (potentiallyOldNode.formatVersion > editor.formatVersion) {\n\t\t// Boy oh boy, do we have a situation…\n\t\treturn potentiallyOldNode // Just hope it's at least somewhat backwards compatible.\n\t}\n\tlet formatNumber = potentiallyOldNode.formatVersion\n\ttry {\n\t\tfor (; formatNumber < editor.formatVersion; formatNumber++) {\n\t\t\tpotentiallyOldNode = {\n\t\t\t\tformatVersion: formatNumber + 1,\n\t\t\t\tchildren: potentiallyOldNode.children.map(oldChild =>\n\t\t\t\t\teditor.upgradeFormatBySingleVersion(oldChild, formatNumber),\n\t\t\t\t) as SlateElement[],\n\t\t\t}\n\t\t}\n\t\treturn potentiallyOldNode\n\t} catch (e) {\n\t\tconst genericMessage = `Failed to upgrade editor format from version ${formatNumber}.`\n\t\tif (e instanceof RangeError) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`${genericMessage}\\nDetected a stack overflow. ` +\n\t\t\t\t\t`Perhaps you incorrectly implemented 'upgradeFormatBySingleVersion'?`,\n\t\t\t)\n\t\t}\n\t\tthrow new BindingError(genericMessage)\n\t}\n}\n"],"names":["BindingError"],"mappings":";;;AAIa,MAAA,iBAAiB,CAC7B,QACA,uBAC4B;AACxB,MAAA,mBAAmB,kBAAkB,OAAO,eAAe;AACvD,WAAA;AAAA,EAAA;AAEJ,MAAA,mBAAmB,gBAAgB,OAAO,eAAe;AAErD,WAAA;AAAA,EAAA;AAER,MAAI,eAAe,mBAAmB;AAClC,MAAA;AACI,WAAA,eAAe,OAAO,eAAe,gBAAgB;AACtC,2BAAA;AAAA,QACpB,eAAe,eAAe;AAAA,QAC9B,UAAU,mBAAmB,SAAS;AAAA,UAAI,CACzC,aAAA,OAAO,6BAA6B,UAAU,YAAY;AAAA,QAAA;AAAA,MAE5D;AAAA,IAAA;AAEM,WAAA;AAAA,WACC,GAAG;AACL,UAAA,iBAAiB,gDAAgD,YAAY;AACnF,QAAI,aAAa,YAAY;AAC5B,YAAM,IAAIA,aAAA;AAAA,QACT,GAAG,cAAc;AAAA;AAAA,MAElB;AAAA,IAAA;AAEK,UAAA,IAAIA,0BAAa,cAAc;AAAA,EAAA;AAEvC;;"}
@@ -1,34 +0,0 @@
1
- import { BindingError } from "@contember/react-binding";
2
- const toLatestFormat = (editor, potentiallyOldNode) => {
3
- if (potentiallyOldNode.formatVersion === editor.formatVersion) {
4
- return potentiallyOldNode;
5
- }
6
- if (potentiallyOldNode.formatVersion > editor.formatVersion) {
7
- return potentiallyOldNode;
8
- }
9
- let formatNumber = potentiallyOldNode.formatVersion;
10
- try {
11
- for (; formatNumber < editor.formatVersion; formatNumber++) {
12
- potentiallyOldNode = {
13
- formatVersion: formatNumber + 1,
14
- children: potentiallyOldNode.children.map(
15
- (oldChild) => editor.upgradeFormatBySingleVersion(oldChild, formatNumber)
16
- )
17
- };
18
- }
19
- return potentiallyOldNode;
20
- } catch (e) {
21
- const genericMessage = `Failed to upgrade editor format from version ${formatNumber}.`;
22
- if (e instanceof RangeError) {
23
- throw new BindingError(
24
- `${genericMessage}
25
- Detected a stack overflow. Perhaps you incorrectly implemented 'upgradeFormatBySingleVersion'?`
26
- );
27
- }
28
- throw new BindingError(genericMessage);
29
- }
30
- };
31
- export {
32
- toLatestFormat
33
- };
34
- //# sourceMappingURL=toLatestFormat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toLatestFormat.js","sources":["../../../../../../packages/react-slate-editor-base/src/editor/methods/toLatestFormat.ts"],"sourcesContent":["import { BindingError } from '@contember/react-binding'\nimport { Editor as SlateEditor, Element as SlateElement } from 'slate'\nimport { SerializableEditorNode } from '../../types/editor'\n\nexport const toLatestFormat = <E extends SlateEditor>(\n\teditor: E,\n\tpotentiallyOldNode: SerializableEditorNode,\n): SerializableEditorNode => {\n\tif (potentiallyOldNode.formatVersion === editor.formatVersion) {\n\t\treturn potentiallyOldNode\n\t}\n\tif (potentiallyOldNode.formatVersion > editor.formatVersion) {\n\t\t// Boy oh boy, do we have a situation…\n\t\treturn potentiallyOldNode // Just hope it's at least somewhat backwards compatible.\n\t}\n\tlet formatNumber = potentiallyOldNode.formatVersion\n\ttry {\n\t\tfor (; formatNumber < editor.formatVersion; formatNumber++) {\n\t\t\tpotentiallyOldNode = {\n\t\t\t\tformatVersion: formatNumber + 1,\n\t\t\t\tchildren: potentiallyOldNode.children.map(oldChild =>\n\t\t\t\t\teditor.upgradeFormatBySingleVersion(oldChild, formatNumber),\n\t\t\t\t) as SlateElement[],\n\t\t\t}\n\t\t}\n\t\treturn potentiallyOldNode\n\t} catch (e) {\n\t\tconst genericMessage = `Failed to upgrade editor format from version ${formatNumber}.`\n\t\tif (e instanceof RangeError) {\n\t\t\tthrow new BindingError(\n\t\t\t\t`${genericMessage}\\nDetected a stack overflow. ` +\n\t\t\t\t\t`Perhaps you incorrectly implemented 'upgradeFormatBySingleVersion'?`,\n\t\t\t)\n\t\t}\n\t\tthrow new BindingError(genericMessage)\n\t}\n}\n"],"names":[],"mappings":";AAIa,MAAA,iBAAiB,CAC7B,QACA,uBAC4B;AACxB,MAAA,mBAAmB,kBAAkB,OAAO,eAAe;AACvD,WAAA;AAAA,EAAA;AAEJ,MAAA,mBAAmB,gBAAgB,OAAO,eAAe;AAErD,WAAA;AAAA,EAAA;AAER,MAAI,eAAe,mBAAmB;AAClC,MAAA;AACI,WAAA,eAAe,OAAO,eAAe,gBAAgB;AACtC,2BAAA;AAAA,QACpB,eAAe,eAAe;AAAA,QAC9B,UAAU,mBAAmB,SAAS;AAAA,UAAI,CACzC,aAAA,OAAO,6BAA6B,UAAU,YAAY;AAAA,QAAA;AAAA,MAE5D;AAAA,IAAA;AAEM,WAAA;AAAA,WACC,GAAG;AACL,UAAA,iBAAiB,gDAAgD,YAAY;AACnF,QAAI,aAAa,YAAY;AAC5B,YAAM,IAAI;AAAA,QACT,GAAG,cAAc;AAAA;AAAA,MAElB;AAAA,IAAA;AAEK,UAAA,IAAI,aAAa,cAAc;AAAA,EAAA;AAEvC;"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Slate = require("slate");
4
- const topLevelNodes = (editor) => {
5
- return Slate.Editor.nodes(editor, {
6
- match: (node) => Slate.Element.isElement(node) && !editor.isVoid(node),
7
- mode: "highest",
8
- voids: false
9
- });
10
- };
11
- exports.topLevelNodes = topLevelNodes;
12
- //# sourceMappingURL=topLevelNodes.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topLevelNodes.cjs","sources":["../../../../../../packages/react-slate-editor-base/src/editor/methods/topLevelNodes.ts"],"sourcesContent":["import { Editor as SlateEditor, Element as SlateElement } from 'slate'\n\nexport const topLevelNodes = <E extends SlateEditor>(editor: E) => {\n\t// We manually filter out void nodes because it appears that Slate doesn't respect the voids setting from here.\n\t// The combination of isElement and mode: 'highest' is really just a roundabout way of excluding the Editor.\n\treturn SlateEditor.nodes(editor, {\n\t\tmatch: node => SlateElement.isElement(node) && !editor.isVoid(node),\n\t\tmode: 'highest',\n\t\tvoids: false,\n\t})\n}\n"],"names":["SlateEditor","SlateElement"],"mappings":";;;AAEa,MAAA,gBAAgB,CAAwB,WAAc;AAG3D,SAAAA,MAAA,OAAY,MAAM,QAAQ;AAAA,IAChC,OAAO,UAAQC,MAAAA,QAAa,UAAU,IAAI,KAAK,CAAC,OAAO,OAAO,IAAI;AAAA,IAClE,MAAM;AAAA,IACN,OAAO;AAAA,EAAA,CACP;AACF;;"}
@@ -1,12 +0,0 @@
1
- import { Editor, Element } from "slate";
2
- const topLevelNodes = (editor) => {
3
- return Editor.nodes(editor, {
4
- match: (node) => Element.isElement(node) && !editor.isVoid(node),
5
- mode: "highest",
6
- voids: false
7
- });
8
- };
9
- export {
10
- topLevelNodes
11
- };
12
- //# sourceMappingURL=topLevelNodes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topLevelNodes.js","sources":["../../../../../../packages/react-slate-editor-base/src/editor/methods/topLevelNodes.ts"],"sourcesContent":["import { Editor as SlateEditor, Element as SlateElement } from 'slate'\n\nexport const topLevelNodes = <E extends SlateEditor>(editor: E) => {\n\t// We manually filter out void nodes because it appears that Slate doesn't respect the voids setting from here.\n\t// The combination of isElement and mode: 'highest' is really just a roundabout way of excluding the Editor.\n\treturn SlateEditor.nodes(editor, {\n\t\tmatch: node => SlateElement.isElement(node) && !editor.isVoid(node),\n\t\tmode: 'highest',\n\t\tvoids: false,\n\t})\n}\n"],"names":["SlateEditor","SlateElement"],"mappings":";AAEa,MAAA,gBAAgB,CAAwB,WAAc;AAG3D,SAAAA,OAAY,MAAM,QAAQ;AAAA,IAChC,OAAO,UAAQC,QAAa,UAAU,IAAI,KAAK,CAAC,OAAO,OAAO,IAAI;AAAA,IAClE,MAAM;AAAA,IACN,OAAO;AAAA,EAAA,CACP;AACF;"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const slateReact = require("slate-react");
5
- const DefaultElement = ({ attributes, children, element }) => {
6
- const editor = slateReact.useSlateStatic();
7
- return React.createElement(editor.isInline(element) ? "span" : "div", attributes, children);
8
- };
9
- DefaultElement.displayName = "DefaultElement";
10
- exports.DefaultElement = DefaultElement;
11
- //# sourceMappingURL=DefaultElement.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultElement.cjs","sources":["../../../../../../packages/react-slate-editor-base/src/internal/components/DefaultElement.tsx"],"sourcesContent":["import { createElement, FunctionComponent } from 'react'\nimport { RenderElementProps, useSlateStatic } from 'slate-react'\n\nexport interface DefaultElementProps extends RenderElementProps {}\n\nexport const DefaultElement: FunctionComponent<DefaultElementProps> = ({ attributes, children, element }) => {\n\tconst editor = useSlateStatic()\n\n\treturn createElement(editor.isInline(element) ? 'span' : 'div', attributes, children)\n}\nDefaultElement.displayName = 'DefaultElement'\n"],"names":["useSlateStatic","createElement"],"mappings":";;;;AAKO,MAAM,iBAAyD,CAAC,EAAE,YAAY,UAAU,cAAc;AAC5G,QAAM,SAASA,WAAAA,eAAe;AAEvB,SAAAC,MAAA,cAAc,OAAO,SAAS,OAAO,IAAI,SAAS,OAAO,YAAY,QAAQ;AACrF;AACA,eAAe,cAAc;;"}
@@ -1,11 +0,0 @@
1
- import { createElement } from "react";
2
- import { useSlateStatic } from "slate-react";
3
- const DefaultElement = ({ attributes, children, element }) => {
4
- const editor = useSlateStatic();
5
- return createElement(editor.isInline(element) ? "span" : "div", attributes, children);
6
- };
7
- DefaultElement.displayName = "DefaultElement";
8
- export {
9
- DefaultElement
10
- };
11
- //# sourceMappingURL=DefaultElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultElement.js","sources":["../../../../../../packages/react-slate-editor-base/src/internal/components/DefaultElement.tsx"],"sourcesContent":["import { createElement, FunctionComponent } from 'react'\nimport { RenderElementProps, useSlateStatic } from 'slate-react'\n\nexport interface DefaultElementProps extends RenderElementProps {}\n\nexport const DefaultElement: FunctionComponent<DefaultElementProps> = ({ attributes, children, element }) => {\n\tconst editor = useSlateStatic()\n\n\treturn createElement(editor.isInline(element) ? 'span' : 'div', attributes, children)\n}\nDefaultElement.displayName = 'DefaultElement'\n"],"names":[],"mappings":";;AAKO,MAAM,iBAAyD,CAAC,EAAE,YAAY,UAAU,cAAc;AAC5G,QAAM,SAAS,eAAe;AAEvB,SAAA,cAAc,OAAO,SAAS,OAAO,IAAI,SAAS,OAAO,YAAY,QAAQ;AACrF;AACA,eAAe,cAAc;"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactBinding = require("@contember/react-binding");
4
- const useRichTextFieldNodes = ({
5
- editor,
6
- fieldAccessor,
7
- contemberFieldElementCache
8
- }) => {
9
- if (contemberFieldElementCache.has(fieldAccessor)) {
10
- return contemberFieldElementCache.get(fieldAccessor);
11
- }
12
- const fieldValue = fieldAccessor.value;
13
- if (typeof fieldValue !== "string" && fieldValue !== null) {
14
- throw new reactBinding.BindingError(`RichTextField: the underlying field does not contain a string value.`);
15
- }
16
- const elements = fieldValue === null || fieldValue === "" ? [editor.createDefaultElement([{ text: "" }])] : [
17
- editor.createDefaultElement(
18
- editor.deserializeNodes(
19
- fieldValue,
20
- `RichTextField: the underlying field contains invalid JSON.`
21
- )
22
- )
23
- ];
24
- contemberFieldElementCache.set(fieldAccessor, elements);
25
- return elements;
26
- };
27
- exports.useRichTextFieldNodes = useRichTextFieldNodes;
28
- //# sourceMappingURL=useRichTextFieldNodes.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRichTextFieldNodes.cjs","sources":["../../../../../../packages/react-slate-editor-base/src/internal/hooks/useRichTextFieldNodes.ts"],"sourcesContent":["import { BindingError, FieldAccessor } from '@contember/react-binding'\nimport { Descendant, Editor } from 'slate'\n\nexport interface UseRichTextFieldEditorNodeOptions {\n\teditor: Editor\n\tfieldAccessor: FieldAccessor<string>\n\tcontemberFieldElementCache: WeakMap<FieldAccessor<string>, Descendant[]>\n}\n\nexport const useRichTextFieldNodes = ({\n\teditor,\n\tfieldAccessor,\n\tcontemberFieldElementCache,\n}: UseRichTextFieldEditorNodeOptions): Descendant[] => {\n\tif (contemberFieldElementCache.has(fieldAccessor)) {\n\t\treturn contemberFieldElementCache.get(fieldAccessor)!\n\t}\n\n\tconst fieldValue = fieldAccessor.value\n\tif (typeof fieldValue !== 'string' && fieldValue !== null) {\n\t\tthrow new BindingError(`RichTextField: the underlying field does not contain a string value.`)\n\t}\n\n\tconst elements: Descendant[] =\n\t\tfieldValue === null || fieldValue === ''\n\t\t\t? [editor.createDefaultElement([{ text: '' }])]\n\t\t\t: [\n\t\t\t\teditor.createDefaultElement(\n\t\t\t\t\teditor.deserializeNodes(\n\t\t\t\t\t\tfieldValue,\n\t\t\t\t\t\t`RichTextField: the underlying field contains invalid JSON.`,\n\t\t\t\t\t) as Descendant[],\n\t\t\t\t),\n\t\t\t ]\n\tcontemberFieldElementCache.set(fieldAccessor, elements)\n\n\treturn elements\n}\n"],"names":["BindingError"],"mappings":";;;AASO,MAAM,wBAAwB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AACD,MAAuD;AAClD,MAAA,2BAA2B,IAAI,aAAa,GAAG;AAC3C,WAAA,2BAA2B,IAAI,aAAa;AAAA,EAAA;AAGpD,QAAM,aAAa,cAAc;AACjC,MAAI,OAAO,eAAe,YAAY,eAAe,MAAM;AACpD,UAAA,IAAIA,aAAAA,aAAa,sEAAsE;AAAA,EAAA;AAG9F,QAAM,WACL,eAAe,QAAQ,eAAe,KACnC,CAAC,OAAO,qBAAqB,CAAC,EAAE,MAAM,GAAI,CAAA,CAAC,CAAC,IAC5C;AAAA,IACD,OAAO;AAAA,MACN,OAAO;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IACD;AAAA,EAEA;AACuB,6BAAA,IAAI,eAAe,QAAQ;AAE/C,SAAA;AACR;;"}
@@ -1,28 +0,0 @@
1
- import { BindingError } from "@contember/react-binding";
2
- const useRichTextFieldNodes = ({
3
- editor,
4
- fieldAccessor,
5
- contemberFieldElementCache
6
- }) => {
7
- if (contemberFieldElementCache.has(fieldAccessor)) {
8
- return contemberFieldElementCache.get(fieldAccessor);
9
- }
10
- const fieldValue = fieldAccessor.value;
11
- if (typeof fieldValue !== "string" && fieldValue !== null) {
12
- throw new BindingError(`RichTextField: the underlying field does not contain a string value.`);
13
- }
14
- const elements = fieldValue === null || fieldValue === "" ? [editor.createDefaultElement([{ text: "" }])] : [
15
- editor.createDefaultElement(
16
- editor.deserializeNodes(
17
- fieldValue,
18
- `RichTextField: the underlying field contains invalid JSON.`
19
- )
20
- )
21
- ];
22
- contemberFieldElementCache.set(fieldAccessor, elements);
23
- return elements;
24
- };
25
- export {
26
- useRichTextFieldNodes
27
- };
28
- //# sourceMappingURL=useRichTextFieldNodes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRichTextFieldNodes.js","sources":["../../../../../../packages/react-slate-editor-base/src/internal/hooks/useRichTextFieldNodes.ts"],"sourcesContent":["import { BindingError, FieldAccessor } from '@contember/react-binding'\nimport { Descendant, Editor } from 'slate'\n\nexport interface UseRichTextFieldEditorNodeOptions {\n\teditor: Editor\n\tfieldAccessor: FieldAccessor<string>\n\tcontemberFieldElementCache: WeakMap<FieldAccessor<string>, Descendant[]>\n}\n\nexport const useRichTextFieldNodes = ({\n\teditor,\n\tfieldAccessor,\n\tcontemberFieldElementCache,\n}: UseRichTextFieldEditorNodeOptions): Descendant[] => {\n\tif (contemberFieldElementCache.has(fieldAccessor)) {\n\t\treturn contemberFieldElementCache.get(fieldAccessor)!\n\t}\n\n\tconst fieldValue = fieldAccessor.value\n\tif (typeof fieldValue !== 'string' && fieldValue !== null) {\n\t\tthrow new BindingError(`RichTextField: the underlying field does not contain a string value.`)\n\t}\n\n\tconst elements: Descendant[] =\n\t\tfieldValue === null || fieldValue === ''\n\t\t\t? [editor.createDefaultElement([{ text: '' }])]\n\t\t\t: [\n\t\t\t\teditor.createDefaultElement(\n\t\t\t\t\teditor.deserializeNodes(\n\t\t\t\t\t\tfieldValue,\n\t\t\t\t\t\t`RichTextField: the underlying field contains invalid JSON.`,\n\t\t\t\t\t) as Descendant[],\n\t\t\t\t),\n\t\t\t ]\n\tcontemberFieldElementCache.set(fieldAccessor, elements)\n\n\treturn elements\n}\n"],"names":[],"mappings":";AASO,MAAM,wBAAwB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AACD,MAAuD;AAClD,MAAA,2BAA2B,IAAI,aAAa,GAAG;AAC3C,WAAA,2BAA2B,IAAI,aAAa;AAAA,EAAA;AAGpD,QAAM,aAAa,cAAc;AACjC,MAAI,OAAO,eAAe,YAAY,eAAe,MAAM;AACpD,UAAA,IAAI,aAAa,sEAAsE;AAAA,EAAA;AAG9F,QAAM,WACL,eAAe,QAAQ,eAAe,KACnC,CAAC,OAAO,qBAAqB,CAAC,EAAE,MAAM,GAAI,CAAA,CAAC,CAAC,IAC5C;AAAA,IACD,OAAO;AAAA,MACN,OAAO;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IACD;AAAA,EAEA;AACuB,6BAAA,IAAI,eAAe,QAAQ;AAE/C,SAAA;AACR;"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- class EditorPasteUtils {
4
- static wordPasteListItemContent(allNodes) {
5
- const nodes = [];
6
- let ignoring = false;
7
- let forProcessing = Array.from(allNodes);
8
- if (forProcessing.length === 1 && forProcessing[0].nodeName === "SPAN" || forProcessing.length === 2 && forProcessing[0].nodeName === "SPAN" && forProcessing[1].nodeName === "O:P") {
9
- forProcessing = Array.from(forProcessing[0].childNodes);
10
- }
11
- for (const node of forProcessing) {
12
- const isStartIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === "[if !supportLists]";
13
- if (isStartIgnore) {
14
- ignoring = true;
15
- } else {
16
- const isEndIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === "[endif]";
17
- if (isEndIgnore) {
18
- ignoring = false;
19
- } else {
20
- if (!ignoring) {
21
- nodes.push(node);
22
- }
23
- }
24
- }
25
- }
26
- return nodes;
27
- }
28
- static flattenNodesWithType(withType, defaultElementFactory) {
29
- const withTypeFiltered = withType.filter((item) => item !== null);
30
- const containsBlock = withTypeFiltered.find(({ elements }) => elements !== void 0) !== void 0;
31
- if (containsBlock) {
32
- return {
33
- elements: withTypeFiltered.flatMap((item) => {
34
- if (item.elements === void 0) {
35
- return [defaultElementFactory(item.texts)];
36
- } else {
37
- return item.elements;
38
- }
39
- })
40
- };
41
- } else {
42
- return { texts: withTypeFiltered.flatMap((item) => item.texts) };
43
- }
44
- }
45
- }
46
- exports.EditorPasteUtils = EditorPasteUtils;
47
- //# sourceMappingURL=EditorPasteUtils.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditorPasteUtils.cjs","sources":["../../../../../../packages/react-slate-editor-base/src/internal/utils/EditorPasteUtils.ts"],"sourcesContent":["import { Element } from 'slate'\nimport { NodesWithType } from '../../plugins/behaviour/paste/HtmlDeserializer'\nimport { EditorDefaultElementFactory } from '../../types/editor'\n\nexport class EditorPasteUtils {\n\tpublic static wordPasteListItemContent(allNodes: Iterable<Node> | ArrayLike<Node>): Node[] {\n\t\tconst nodes: Node[] = []\n\t\tlet ignoring = false\n\t\tlet forProcessing = Array.from(allNodes)\n\t\tif (\n\t\t\t(forProcessing.length === 1 && forProcessing[0].nodeName === 'SPAN') ||\n\t\t\t\t(forProcessing.length === 2 && forProcessing[0].nodeName === 'SPAN' && forProcessing[1].nodeName === 'O:P')\n\t\t) {\n\t\t\tforProcessing = Array.from(forProcessing[0].childNodes)\n\t\t}\n\n\t\tfor (const node of forProcessing) {\n\t\t\tconst isStartIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[if !supportLists]'\n\t\t\tif (isStartIgnore) {\n\t\t\t\tignoring = true\n\t\t\t} else {\n\t\t\t\tconst isEndIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[endif]'\n\t\t\t\tif (isEndIgnore) {\n\t\t\t\t\tignoring = false\n\t\t\t\t} else {\n\t\t\t\t\tif (!ignoring) {\n\t\t\t\t\t\tnodes.push(node)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nodes\n\t}\n\n\tpublic static flattenNodesWithType(withType: NodesWithType[], defaultElementFactory: EditorDefaultElementFactory): NodesWithType {\n\t\tconst withTypeFiltered = withType.filter((item): item is Exclude<NodesWithType, null> => item !== null)\n\t\tconst containsBlock = withTypeFiltered.find(({ elements }) => elements !== undefined) !== undefined\n\n\t\tif (containsBlock) {\n\t\t\treturn {\n\t\t\t\telements: withTypeFiltered.flatMap<Element>(item => {\n\t\t\t\t\tif (item.elements === undefined) {\n\t\t\t\t\t\treturn [defaultElementFactory(item.texts)]\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn item.elements\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t}\n\t\t} else {\n\t\t\treturn { texts: withTypeFiltered.flatMap(item => item.texts!) }\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;AAIO,MAAM,iBAAiB;AAAA,EAC7B,OAAc,yBAAyB,UAAoD;AAC1F,UAAM,QAAgB,CAAC;AACvB,QAAI,WAAW;AACX,QAAA,gBAAgB,MAAM,KAAK,QAAQ;AAErC,QAAA,cAAc,WAAW,KAAK,cAAc,CAAC,EAAE,aAAa,UAC3D,cAAc,WAAW,KAAK,cAAc,CAAC,EAAE,aAAa,UAAU,cAAc,CAAC,EAAE,aAAa,OACrG;AACD,sBAAgB,MAAM,KAAK,cAAc,CAAC,EAAE,UAAU;AAAA,IAAA;AAGvD,eAAW,QAAQ,eAAe;AACjC,YAAM,gBAAgB,KAAK,aAAa,KAAK,gBAAgB,KAAK,cAAc;AAChF,UAAI,eAAe;AACP,mBAAA;AAAA,MAAA,OACL;AACN,cAAM,cAAc,KAAK,aAAa,KAAK,gBAAgB,KAAK,cAAc;AAC9E,YAAI,aAAa;AACL,qBAAA;AAAA,QAAA,OACL;AACN,cAAI,CAAC,UAAU;AACd,kBAAM,KAAK,IAAI;AAAA,UAAA;AAAA,QAChB;AAAA,MACD;AAAA,IACD;AAEM,WAAA;AAAA,EAAA;AAAA,EAGR,OAAc,qBAAqB,UAA2B,uBAAoE;AACjI,UAAM,mBAAmB,SAAS,OAAO,CAAC,SAA+C,SAAS,IAAI;AAChG,UAAA,gBAAgB,iBAAiB,KAAK,CAAC,EAAE,SAAS,MAAM,aAAa,MAAS,MAAM;AAE1F,QAAI,eAAe;AACX,aAAA;AAAA,QACN,UAAU,iBAAiB,QAAiB,CAAQ,SAAA;AAC/C,cAAA,KAAK,aAAa,QAAW;AAChC,mBAAO,CAAC,sBAAsB,KAAK,KAAK,CAAC;AAAA,UAAA,OACnC;AACN,mBAAO,KAAK;AAAA,UAAA;AAAA,QAEb,CAAA;AAAA,MACF;AAAA,IAAA,OACM;AACN,aAAO,EAAE,OAAO,iBAAiB,QAAQ,CAAQ,SAAA,KAAK,KAAM,EAAE;AAAA,IAAA;AAAA,EAC/D;AAEF;;"}
@@ -1,47 +0,0 @@
1
- class EditorPasteUtils {
2
- static wordPasteListItemContent(allNodes) {
3
- const nodes = [];
4
- let ignoring = false;
5
- let forProcessing = Array.from(allNodes);
6
- if (forProcessing.length === 1 && forProcessing[0].nodeName === "SPAN" || forProcessing.length === 2 && forProcessing[0].nodeName === "SPAN" && forProcessing[1].nodeName === "O:P") {
7
- forProcessing = Array.from(forProcessing[0].childNodes);
8
- }
9
- for (const node of forProcessing) {
10
- const isStartIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === "[if !supportLists]";
11
- if (isStartIgnore) {
12
- ignoring = true;
13
- } else {
14
- const isEndIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === "[endif]";
15
- if (isEndIgnore) {
16
- ignoring = false;
17
- } else {
18
- if (!ignoring) {
19
- nodes.push(node);
20
- }
21
- }
22
- }
23
- }
24
- return nodes;
25
- }
26
- static flattenNodesWithType(withType, defaultElementFactory) {
27
- const withTypeFiltered = withType.filter((item) => item !== null);
28
- const containsBlock = withTypeFiltered.find(({ elements }) => elements !== void 0) !== void 0;
29
- if (containsBlock) {
30
- return {
31
- elements: withTypeFiltered.flatMap((item) => {
32
- if (item.elements === void 0) {
33
- return [defaultElementFactory(item.texts)];
34
- } else {
35
- return item.elements;
36
- }
37
- })
38
- };
39
- } else {
40
- return { texts: withTypeFiltered.flatMap((item) => item.texts) };
41
- }
42
- }
43
- }
44
- export {
45
- EditorPasteUtils
46
- };
47
- //# sourceMappingURL=EditorPasteUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditorPasteUtils.js","sources":["../../../../../../packages/react-slate-editor-base/src/internal/utils/EditorPasteUtils.ts"],"sourcesContent":["import { Element } from 'slate'\nimport { NodesWithType } from '../../plugins/behaviour/paste/HtmlDeserializer'\nimport { EditorDefaultElementFactory } from '../../types/editor'\n\nexport class EditorPasteUtils {\n\tpublic static wordPasteListItemContent(allNodes: Iterable<Node> | ArrayLike<Node>): Node[] {\n\t\tconst nodes: Node[] = []\n\t\tlet ignoring = false\n\t\tlet forProcessing = Array.from(allNodes)\n\t\tif (\n\t\t\t(forProcessing.length === 1 && forProcessing[0].nodeName === 'SPAN') ||\n\t\t\t\t(forProcessing.length === 2 && forProcessing[0].nodeName === 'SPAN' && forProcessing[1].nodeName === 'O:P')\n\t\t) {\n\t\t\tforProcessing = Array.from(forProcessing[0].childNodes)\n\t\t}\n\n\t\tfor (const node of forProcessing) {\n\t\t\tconst isStartIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[if !supportLists]'\n\t\t\tif (isStartIgnore) {\n\t\t\t\tignoring = true\n\t\t\t} else {\n\t\t\t\tconst isEndIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[endif]'\n\t\t\t\tif (isEndIgnore) {\n\t\t\t\t\tignoring = false\n\t\t\t\t} else {\n\t\t\t\t\tif (!ignoring) {\n\t\t\t\t\t\tnodes.push(node)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nodes\n\t}\n\n\tpublic static flattenNodesWithType(withType: NodesWithType[], defaultElementFactory: EditorDefaultElementFactory): NodesWithType {\n\t\tconst withTypeFiltered = withType.filter((item): item is Exclude<NodesWithType, null> => item !== null)\n\t\tconst containsBlock = withTypeFiltered.find(({ elements }) => elements !== undefined) !== undefined\n\n\t\tif (containsBlock) {\n\t\t\treturn {\n\t\t\t\telements: withTypeFiltered.flatMap<Element>(item => {\n\t\t\t\t\tif (item.elements === undefined) {\n\t\t\t\t\t\treturn [defaultElementFactory(item.texts)]\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn item.elements\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t}\n\t\t} else {\n\t\t\treturn { texts: withTypeFiltered.flatMap(item => item.texts!) }\n\t\t}\n\t}\n}\n"],"names":[],"mappings":"AAIO,MAAM,iBAAiB;AAAA,EAC7B,OAAc,yBAAyB,UAAoD;AAC1F,UAAM,QAAgB,CAAC;AACvB,QAAI,WAAW;AACX,QAAA,gBAAgB,MAAM,KAAK,QAAQ;AAErC,QAAA,cAAc,WAAW,KAAK,cAAc,CAAC,EAAE,aAAa,UAC3D,cAAc,WAAW,KAAK,cAAc,CAAC,EAAE,aAAa,UAAU,cAAc,CAAC,EAAE,aAAa,OACrG;AACD,sBAAgB,MAAM,KAAK,cAAc,CAAC,EAAE,UAAU;AAAA,IAAA;AAGvD,eAAW,QAAQ,eAAe;AACjC,YAAM,gBAAgB,KAAK,aAAa,KAAK,gBAAgB,KAAK,cAAc;AAChF,UAAI,eAAe;AACP,mBAAA;AAAA,MAAA,OACL;AACN,cAAM,cAAc,KAAK,aAAa,KAAK,gBAAgB,KAAK,cAAc;AAC9E,YAAI,aAAa;AACL,qBAAA;AAAA,QAAA,OACL;AACN,cAAI,CAAC,UAAU;AACd,kBAAM,KAAK,IAAI;AAAA,UAAA;AAAA,QAChB;AAAA,MACD;AAAA,IACD;AAEM,WAAA;AAAA,EAAA;AAAA,EAGR,OAAc,qBAAqB,UAA2B,uBAAoE;AACjI,UAAM,mBAAmB,SAAS,OAAO,CAAC,SAA+C,SAAS,IAAI;AAChG,UAAA,gBAAgB,iBAAiB,KAAK,CAAC,EAAE,SAAS,MAAM,aAAa,MAAS,MAAM;AAE1F,QAAI,eAAe;AACX,aAAA;AAAA,QACN,UAAU,iBAAiB,QAAiB,CAAQ,SAAA;AAC/C,cAAA,KAAK,aAAa,QAAW;AAChC,mBAAO,CAAC,sBAAsB,KAAK,KAAK,CAAC;AAAA,UAAA,OACnC;AACN,mBAAO,KAAK;AAAA,UAAA;AAAA,QAEb,CAAA;AAAA,MACF;AAAA,IAAA,OACM;AACN,aAAO,EAAE,OAAO,iBAAiB,QAAQ,CAAQ,SAAA,KAAK,KAAM,EAAE;AAAA,IAAA;AAAA,EAC/D;AAEF;"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const parseUrl = (url) => {
4
- if (url.length < 4 || url.includes(" ")) {
5
- return void 0;
6
- }
7
- try {
8
- return new URL(url);
9
- } catch {
10
- return void 0;
11
- }
12
- };
13
- exports.parseUrl = parseUrl;
14
- //# sourceMappingURL=parseUrl.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseUrl.cjs","sources":["../../../../../../packages/react-slate-editor-base/src/internal/utils/parseUrl.ts"],"sourcesContent":["export const parseUrl = (url: string): URL | undefined => {\n\tif (url.length < 4 || url.includes(' ')) {\n\t\t// This is almost definitely not an url anyway.\n\t\t// By returning early, we avoid the relatively costly URL constructor and can speed up the most common case of\n\t\t// just inserting a single character which better be as fast as possible.\n\t\treturn undefined\n\t}\n\ttry {\n\t\treturn new URL(url)\n\t} catch {\n\t\treturn undefined\n\t}\n}\n"],"names":[],"mappings":";;AAAa,MAAA,WAAW,CAAC,QAAiC;AACzD,MAAI,IAAI,SAAS,KAAK,IAAI,SAAS,GAAG,GAAG;AAIjC,WAAA;AAAA,EAAA;AAEJ,MAAA;AACI,WAAA,IAAI,IAAI,GAAG;AAAA,EAAA,QACX;AACA,WAAA;AAAA,EAAA;AAET;;"}
@@ -1,14 +0,0 @@
1
- const parseUrl = (url) => {
2
- if (url.length < 4 || url.includes(" ")) {
3
- return void 0;
4
- }
5
- try {
6
- return new URL(url);
7
- } catch {
8
- return void 0;
9
- }
10
- };
11
- export {
12
- parseUrl
13
- };
14
- //# sourceMappingURL=parseUrl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseUrl.js","sources":["../../../../../../packages/react-slate-editor-base/src/internal/utils/parseUrl.ts"],"sourcesContent":["export const parseUrl = (url: string): URL | undefined => {\n\tif (url.length < 4 || url.includes(' ')) {\n\t\t// This is almost definitely not an url anyway.\n\t\t// By returning early, we avoid the relatively costly URL constructor and can speed up the most common case of\n\t\t// just inserting a single character which better be as fast as possible.\n\t\treturn undefined\n\t}\n\ttry {\n\t\treturn new URL(url)\n\t} catch {\n\t\treturn undefined\n\t}\n}\n"],"names":[],"mappings":"AAAa,MAAA,WAAW,CAAC,QAAiC;AACzD,MAAI,IAAI,SAAS,KAAK,IAAI,SAAS,GAAG,GAAG;AAIjC,WAAA;AAAA,EAAA;AAEJ,MAAA;AACI,WAAA,IAAI,IAAI,GAAG;AAAA,EAAA,QACX;AACA,WAAA;AAAA,EAAA;AAET;"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Slate = require("slate");
4
- const isAlignTarget = (editor, it, direction) => Slate.Element.isElement(it) && editor.acceptsAttributes(it.type, { align: direction });
5
- const createAlignHandler = (direction) => ({
6
- shouldDisplay: ({ editor }) => {
7
- return Array.from(Slate.Editor.nodes(editor, { match: (it) => isAlignTarget(editor, it, direction) })).length > 0;
8
- },
9
- isActive: ({ editor }) => {
10
- return Array.from(Slate.Editor.nodes(editor, { match: (it) => isAlignTarget(editor, it, direction) && it.align === direction })).length > 0;
11
- },
12
- toggle: ({ editor }) => {
13
- Slate.Transforms.setNodes(editor, {
14
- align: direction
15
- }, {
16
- match: (it) => isAlignTarget(editor, it, direction)
17
- });
18
- }
19
- });
20
- exports.createAlignHandler = createAlignHandler;
21
- //# sourceMappingURL=alignButton.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alignButton.cjs","sources":["../../../../../../../packages/react-slate-editor-base/src/plugins/attributes/alignment/alignButton.ts"],"sourcesContent":["import { Editor, Element as SlateElement, Node, Transforms } from 'slate'\n\nexport type AlignDirection = 'start' | 'center' | 'end' | 'justify' | undefined\n\nconst isAlignTarget = (editor: Editor, it: Node, direction: AlignDirection) =>\n\tSlateElement.isElement(it)\n\t&& editor.acceptsAttributes(it.type, { align: direction })\n\nexport const createAlignHandler = (direction: AlignDirection): {\n\tisActive?: (args: { editor: Editor }) => boolean\n\tshouldDisplay?: (args: { editor: Editor }) => boolean\n\ttoggle: (args: { editor: Editor }) => void\n}\t=> ({\n\tshouldDisplay: ({ editor }) => {\n\t\treturn Array.from(Editor.nodes(editor, { match: it => isAlignTarget(editor, it, direction) })).length > 0\n\t},\n\tisActive: ({ editor }) => {\n\t\treturn Array.from(Editor.nodes(editor, { match: it => isAlignTarget(editor, it, direction) && (it as any).align === direction })).length > 0\n\t},\n\ttoggle: ({ editor }) => {\n\t\tTransforms.setNodes(editor, {\n\t\t\talign: direction,\n\t\t}, {\n\t\t\tmatch: it => isAlignTarget(editor, it, direction),\n\t\t})\n\t},\n})\n\n\n\n"],"names":["SlateElement","Editor","Transforms"],"mappings":";;;AAIA,MAAM,gBAAgB,CAAC,QAAgB,IAAU,cAChDA,MAAAA,QAAa,UAAU,EAAE,KACtB,OAAO,kBAAkB,GAAG,MAAM,EAAE,OAAO,WAAW;AAE7C,MAAA,qBAAqB,CAAC,eAI7B;AAAA,EACL,eAAe,CAAC,EAAE,aAAa;AAC9B,WAAO,MAAM,KAAKC,MAAAA,OAAO,MAAM,QAAQ,EAAE,OAAO,CAAA,OAAM,cAAc,QAAQ,IAAI,SAAS,EAAA,CAAG,CAAC,EAAE,SAAS;AAAA,EACzG;AAAA,EACA,UAAU,CAAC,EAAE,aAAa;AACzB,WAAO,MAAM,KAAKA,aAAO,MAAM,QAAQ,EAAE,OAAO,CAAM,OAAA,cAAc,QAAQ,IAAI,SAAS,KAAM,GAAW,UAAU,UAAW,CAAA,CAAC,EAAE,SAAS;AAAA,EAC5I;AAAA,EACA,QAAQ,CAAC,EAAE,aAAa;AACvBC,UAAA,WAAW,SAAS,QAAQ;AAAA,MAC3B,OAAO;AAAA,IAAA,GACL;AAAA,MACF,OAAO,CAAA,OAAM,cAAc,QAAQ,IAAI,SAAS;AAAA,IAAA,CAChD;AAAA,EAAA;AAEH;;"}
@@ -1,21 +0,0 @@
1
- import { Editor, Transforms, Element } from "slate";
2
- const isAlignTarget = (editor, it, direction) => Element.isElement(it) && editor.acceptsAttributes(it.type, { align: direction });
3
- const createAlignHandler = (direction) => ({
4
- shouldDisplay: ({ editor }) => {
5
- return Array.from(Editor.nodes(editor, { match: (it) => isAlignTarget(editor, it, direction) })).length > 0;
6
- },
7
- isActive: ({ editor }) => {
8
- return Array.from(Editor.nodes(editor, { match: (it) => isAlignTarget(editor, it, direction) && it.align === direction })).length > 0;
9
- },
10
- toggle: ({ editor }) => {
11
- Transforms.setNodes(editor, {
12
- align: direction
13
- }, {
14
- match: (it) => isAlignTarget(editor, it, direction)
15
- });
16
- }
17
- });
18
- export {
19
- createAlignHandler
20
- };
21
- //# sourceMappingURL=alignButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alignButton.js","sources":["../../../../../../../packages/react-slate-editor-base/src/plugins/attributes/alignment/alignButton.ts"],"sourcesContent":["import { Editor, Element as SlateElement, Node, Transforms } from 'slate'\n\nexport type AlignDirection = 'start' | 'center' | 'end' | 'justify' | undefined\n\nconst isAlignTarget = (editor: Editor, it: Node, direction: AlignDirection) =>\n\tSlateElement.isElement(it)\n\t&& editor.acceptsAttributes(it.type, { align: direction })\n\nexport const createAlignHandler = (direction: AlignDirection): {\n\tisActive?: (args: { editor: Editor }) => boolean\n\tshouldDisplay?: (args: { editor: Editor }) => boolean\n\ttoggle: (args: { editor: Editor }) => void\n}\t=> ({\n\tshouldDisplay: ({ editor }) => {\n\t\treturn Array.from(Editor.nodes(editor, { match: it => isAlignTarget(editor, it, direction) })).length > 0\n\t},\n\tisActive: ({ editor }) => {\n\t\treturn Array.from(Editor.nodes(editor, { match: it => isAlignTarget(editor, it, direction) && (it as any).align === direction })).length > 0\n\t},\n\ttoggle: ({ editor }) => {\n\t\tTransforms.setNodes(editor, {\n\t\t\talign: direction,\n\t\t}, {\n\t\t\tmatch: it => isAlignTarget(editor, it, direction),\n\t\t})\n\t},\n})\n\n\n\n"],"names":["SlateElement"],"mappings":";AAIA,MAAM,gBAAgB,CAAC,QAAgB,IAAU,cAChDA,QAAa,UAAU,EAAE,KACtB,OAAO,kBAAkB,GAAG,MAAM,EAAE,OAAO,WAAW;AAE7C,MAAA,qBAAqB,CAAC,eAI7B;AAAA,EACL,eAAe,CAAC,EAAE,aAAa;AAC9B,WAAO,MAAM,KAAK,OAAO,MAAM,QAAQ,EAAE,OAAO,CAAA,OAAM,cAAc,QAAQ,IAAI,SAAS,EAAA,CAAG,CAAC,EAAE,SAAS;AAAA,EACzG;AAAA,EACA,UAAU,CAAC,EAAE,aAAa;AACzB,WAAO,MAAM,KAAK,OAAO,MAAM,QAAQ,EAAE,OAAO,CAAM,OAAA,cAAc,QAAQ,IAAI,SAAS,KAAM,GAAW,UAAU,UAAW,CAAA,CAAC,EAAE,SAAS;AAAA,EAC5I;AAAA,EACA,QAAQ,CAAC,EAAE,aAAa;AACvB,eAAW,SAAS,QAAQ;AAAA,MAC3B,OAAO;AAAA,IAAA,GACL;AAAA,MACF,OAAO,CAAA,OAAM,cAAc,QAAQ,IAAI,SAAS;AAAA,IAAA,CAChD;AAAA,EAAA;AAEH;"}
@@ -1,138 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const ignoredElements = ["SCRIPT", "STYLE", "TEMPLATE"];
4
- class HtmlDeserializer {
5
- constructor(createDefaultElement, plugins) {
6
- this.createDefaultElement = createDefaultElement;
7
- this.plugins = plugins;
8
- }
9
- registerPlugin(plugin, prepend = true) {
10
- prepend ? this.plugins.unshift(plugin) : this.plugins.push(plugin);
11
- }
12
- processNodeListPaste(nodeList, cumulativeTextAttrs) {
13
- for (const plugin of this.plugins) {
14
- const result = plugin.processNodeListPaste?.({ nodeList, cumulativeTextAttrs, deserializer: this }) ?? null;
15
- if (result !== null) {
16
- return result;
17
- }
18
- }
19
- const processed = [];
20
- for (const childNode of nodeList) {
21
- const isWhiteSpace = childNode.nodeType === Node.TEXT_NODE && childNode.textContent?.match(/^\s*$/) !== null;
22
- const attrs = this.processWithAttributeProcessor(childNode, cumulativeTextAttrs);
23
- const result = childNode instanceof HTMLElement ? this.processBlockPaste(
24
- childNode,
25
- cumulativeTextAttrs
26
- ) : null;
27
- if (result !== null) {
28
- processed.push(...(Array.isArray(result) ? result : [result]).map((element) => ({ element })));
29
- } else {
30
- const result2 = this.deserializeTextNode(childNode, cumulativeTextAttrs);
31
- if (result2 !== null) {
32
- processed.push(...result2.map((text) => ({ text, isWhiteSpace })));
33
- } else {
34
- const deserializedChildren = this.processNodeListPaste(
35
- Array.from(childNode.childNodes),
36
- attrs
37
- );
38
- processed.push(
39
- ...deserializedChildren === null ? [] : deserializedChildren.texts !== void 0 ? deserializedChildren.texts.map((text) => ({ text, isWhiteSpace })) : deserializedChildren.elements.map((element) => ({ element }))
40
- );
41
- }
42
- }
43
- }
44
- if (processed.length === 0) {
45
- return null;
46
- }
47
- const containsBlock = processed.find(({ element }) => element !== void 0) !== void 0;
48
- if (containsBlock) {
49
- return {
50
- elements: processed.flatMap((item) => {
51
- if (item.text !== void 0) {
52
- return item.isWhiteSpace ? [] : [this.createDefaultElement([item.text])];
53
- } else if (item.element !== void 0) {
54
- return [item.element];
55
- }
56
- {
57
- return [];
58
- }
59
- })
60
- };
61
- } else {
62
- return { texts: processed.map((item) => item.text) };
63
- }
64
- }
65
- deserializeInline(list, cumulativeTextAttrs) {
66
- return Array.from(list).flatMap((childNode) => {
67
- const result = this.deserializeTextNode(childNode, cumulativeTextAttrs);
68
- if (result !== null) {
69
- return result;
70
- } else {
71
- const attrs = this.processWithAttributeProcessor(childNode, cumulativeTextAttrs);
72
- return this.deserializeInline(childNode.childNodes, attrs);
73
- }
74
- });
75
- }
76
- deserializeBlocks(list, cumulativeTextAttrs) {
77
- const result = this.processNodeListPaste(list, cumulativeTextAttrs);
78
- return result?.texts ?? result?.elements ?? [];
79
- }
80
- deserializeTextNode(node, cumulativeTextAttrs) {
81
- if (node.nodeType === Node.TEXT_NODE) {
82
- const text = node.textContent ?? "";
83
- return [{ ...cumulativeTextAttrs, text: text.replace(/[ \t]*(?:\r?\n[ \t]*)+/g, " ") }];
84
- } else if (node instanceof HTMLElement) {
85
- const result = this.processInlinePaste(
86
- node,
87
- cumulativeTextAttrs
88
- );
89
- if (result !== null) {
90
- return Array.isArray(result) ? result : [result];
91
- }
92
- }
93
- return null;
94
- }
95
- processInlinePaste(element, cumulativeTextAttrs) {
96
- if (ignoredElements.includes(element.tagName)) {
97
- return [];
98
- }
99
- if (element.tagName === "BR") {
100
- return { ...cumulativeTextAttrs, text: " " };
101
- }
102
- const next = (list, cta) => {
103
- const attrs = this.processWithAttributeProcessor(element, cta);
104
- return this.deserializeInline(list, attrs);
105
- };
106
- for (const plugin of this.plugins) {
107
- const result = plugin.processInlinePaste?.({ element, next, cumulativeTextAttrs, deserializer: this }) ?? null;
108
- if (result !== null) {
109
- return result;
110
- }
111
- }
112
- return null;
113
- }
114
- processWithAttributeProcessor(element, cumulativeTextAttrs) {
115
- if (!(element instanceof HTMLElement)) {
116
- return {};
117
- }
118
- return this.plugins.reduce(
119
- (cta, plugin) => plugin.processAttributesPaste?.({ element, cumulativeTextAttrs, deserializer: this }) ?? cta,
120
- cumulativeTextAttrs
121
- );
122
- }
123
- processBlockPaste(element, cumulativeTextAttrs) {
124
- if (ignoredElements.includes(element.tagName)) {
125
- return [];
126
- }
127
- const next = (list, cta) => this.deserializeBlocks(Array.from(list), { ...cumulativeTextAttrs, ...cta });
128
- for (const plugin of this.plugins) {
129
- const result = plugin.processBlockPaste?.({ element, next, cumulativeTextAttrs, deserializer: this }) ?? null;
130
- if (result !== null) {
131
- return result;
132
- }
133
- }
134
- return null;
135
- }
136
- }
137
- exports.HtmlDeserializer = HtmlDeserializer;
138
- //# sourceMappingURL=HtmlDeserializer.cjs.map