@contember/react-slate-editor-base 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (1095) hide show
  1. package/api-extractor.json +3 -0
  2. package/dist/development/index.cjs +47 -47
  3. package/dist/development/index.js +47 -47
  4. package/dist/development/src/components/RichTextEditor.cjs +105 -0
  5. package/dist/development/src/components/RichTextEditor.cjs.map +1 -0
  6. package/dist/development/src/components/RichTextEditor.js +105 -0
  7. package/dist/development/src/components/RichTextEditor.js.map +1 -0
  8. package/dist/development/src/components/triggers/EditorElementTrigger.cjs +20 -0
  9. package/dist/development/src/components/triggers/EditorElementTrigger.cjs.map +1 -0
  10. package/dist/development/src/components/triggers/EditorElementTrigger.js +20 -0
  11. package/dist/development/src/components/triggers/EditorElementTrigger.js.map +1 -0
  12. package/dist/development/src/components/triggers/EditorGenericTrigger.cjs +24 -0
  13. package/dist/development/src/components/triggers/EditorGenericTrigger.cjs.map +1 -0
  14. package/dist/development/src/components/triggers/EditorGenericTrigger.js +24 -0
  15. package/dist/development/src/components/triggers/EditorGenericTrigger.js.map +1 -0
  16. package/dist/development/src/components/triggers/EditorMarkTrigger.cjs +20 -0
  17. package/dist/development/src/components/triggers/EditorMarkTrigger.cjs.map +1 -0
  18. package/dist/development/src/components/triggers/EditorMarkTrigger.js +20 -0
  19. package/dist/development/src/components/triggers/EditorMarkTrigger.js.map +1 -0
  20. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.cjs +32 -0
  21. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -0
  22. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.js +32 -0
  23. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.js.map +1 -0
  24. package/dist/development/src/editor/createEditor.cjs +35 -0
  25. package/dist/development/src/editor/createEditor.cjs.map +1 -0
  26. package/dist/development/src/editor/createEditor.js.map +1 -0
  27. package/dist/development/src/editor/createEditorWithEssentials.cjs +227 -0
  28. package/dist/development/src/editor/createEditorWithEssentials.cjs.map +1 -0
  29. package/dist/development/src/editor/createEditorWithEssentials.js.map +1 -0
  30. package/dist/development/src/editor/index.cjs.map +1 -0
  31. package/dist/development/src/editor/index.js.map +1 -0
  32. package/dist/development/src/editor/methods/addMarks.cjs.map +1 -0
  33. package/dist/development/src/editor/methods/addMarks.js.map +1 -0
  34. package/dist/development/src/editor/methods/canToggleMark.cjs.map +1 -0
  35. package/dist/development/src/editor/methods/canToggleMark.js.map +1 -0
  36. package/dist/development/src/editor/methods/closest.cjs.map +1 -0
  37. package/dist/development/src/editor/methods/closest.js.map +1 -0
  38. package/dist/development/src/editor/methods/closestBlockEntry.cjs.map +1 -0
  39. package/dist/development/src/editor/methods/closestBlockEntry.js.map +1 -0
  40. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -0
  41. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.js.map +1 -0
  42. package/dist/development/src/editor/methods/ejectElement.cjs.map +1 -0
  43. package/dist/development/src/editor/methods/ejectElement.js.map +1 -0
  44. package/dist/development/src/editor/methods/elementToSpecifics.cjs.map +1 -0
  45. package/dist/development/src/editor/methods/elementToSpecifics.js.map +1 -0
  46. package/dist/development/src/editor/methods/getElementDataAttributes.cjs.map +1 -0
  47. package/dist/development/src/editor/methods/getElementDataAttributes.js.map +1 -0
  48. package/dist/development/src/editor/methods/getPreviousSibling.cjs.map +1 -0
  49. package/dist/development/src/editor/methods/getPreviousSibling.js.map +1 -0
  50. package/dist/development/src/editor/methods/hasMarks.cjs.map +1 -0
  51. package/dist/development/src/editor/methods/hasMarks.js.map +1 -0
  52. package/dist/development/src/editor/methods/hasParentOfType.cjs.map +1 -0
  53. package/dist/development/src/editor/methods/hasParentOfType.js.map +1 -0
  54. package/dist/development/src/editor/methods/isElementType.cjs.map +1 -0
  55. package/dist/development/src/editor/methods/isElementType.js.map +1 -0
  56. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -0
  57. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.js.map +1 -0
  58. package/dist/development/src/editor/methods/removeMarks.cjs.map +1 -0
  59. package/dist/development/src/editor/methods/removeMarks.js.map +1 -0
  60. package/dist/development/src/editor/methods/serializeNodes.cjs.map +1 -0
  61. package/dist/development/src/editor/methods/serializeNodes.js.map +1 -0
  62. package/dist/development/src/editor/methods/strictlyDeserializeNodes.cjs.map +1 -0
  63. package/dist/development/src/editor/methods/strictlyDeserializeNodes.js.map +1 -0
  64. package/dist/development/src/editor/methods/textToSpecifics.cjs.map +1 -0
  65. package/dist/development/src/editor/methods/textToSpecifics.js.map +1 -0
  66. package/dist/development/src/editor/methods/toLatestFormat.cjs.map +1 -0
  67. package/dist/development/src/editor/methods/toLatestFormat.js.map +1 -0
  68. package/dist/development/src/editor/methods/topLevelNodes.cjs.map +1 -0
  69. package/dist/development/src/editor/methods/topLevelNodes.js.map +1 -0
  70. package/dist/development/src/internal/components/DefaultElement.cjs +11 -0
  71. package/dist/development/src/internal/components/DefaultElement.cjs.map +1 -0
  72. package/dist/development/src/internal/components/DefaultElement.js.map +1 -0
  73. package/dist/development/src/internal/hooks/useRichTextFieldNodes.cjs.map +1 -0
  74. package/dist/development/src/internal/hooks/useRichTextFieldNodes.js.map +1 -0
  75. package/dist/development/src/internal/utils/EditorPasteUtils.cjs.map +1 -0
  76. package/dist/development/src/internal/utils/EditorPasteUtils.js.map +1 -0
  77. package/dist/development/src/internal/utils/parseUrl.cjs.map +1 -0
  78. package/dist/development/src/internal/utils/parseUrl.js.map +1 -0
  79. package/dist/development/src/plugins/attributes/alignment/alignButton.cjs.map +1 -0
  80. package/dist/development/src/plugins/attributes/alignment/alignButton.js.map +1 -0
  81. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -0
  82. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -0
  83. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -0
  84. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -0
  85. package/dist/development/src/plugins/behaviour/paste/withPaste.cjs.map +1 -0
  86. package/dist/development/src/plugins/behaviour/paste/withPaste.js.map +1 -0
  87. package/dist/development/src/plugins/element/anchors/AnchorElement.cjs.map +1 -0
  88. package/dist/development/src/plugins/element/anchors/AnchorElement.js.map +1 -0
  89. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -0
  90. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -0
  91. package/dist/development/src/plugins/element/anchors/AnchorModifications.cjs.map +1 -0
  92. package/dist/development/src/plugins/element/anchors/AnchorModifications.js.map +1 -0
  93. package/dist/development/src/plugins/element/anchors/withAnchors.cjs.map +1 -0
  94. package/dist/development/src/plugins/element/anchors/withAnchors.js.map +1 -0
  95. package/dist/development/src/plugins/element/headings/HeadingElement.cjs.map +1 -0
  96. package/dist/development/src/plugins/element/headings/HeadingElement.js.map +1 -0
  97. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -0
  98. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -0
  99. package/dist/development/src/plugins/element/headings/withHeadings.cjs.map +1 -0
  100. package/dist/development/src/plugins/element/headings/withHeadings.js.map +1 -0
  101. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -0
  102. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -0
  103. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -0
  104. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -0
  105. package/dist/development/src/plugins/element/lists/ListElement.cjs.map +1 -0
  106. package/dist/development/src/plugins/element/lists/ListElement.js.map +1 -0
  107. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -0
  108. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.js.map +1 -0
  109. package/dist/development/src/plugins/element/lists/ListItemElement.cjs.map +1 -0
  110. package/dist/development/src/plugins/element/lists/ListItemElement.js.map +1 -0
  111. package/dist/development/src/plugins/element/lists/OrderedListElement.cjs.map +1 -0
  112. package/dist/development/src/plugins/element/lists/OrderedListElement.js.map +1 -0
  113. package/dist/development/src/plugins/element/lists/UnorderedListElement.cjs.map +1 -0
  114. package/dist/development/src/plugins/element/lists/UnorderedListElement.js.map +1 -0
  115. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -0
  116. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.js.map +1 -0
  117. package/dist/development/src/plugins/element/lists/transforms/indentListItem.cjs.map +1 -0
  118. package/dist/development/src/plugins/element/lists/transforms/indentListItem.js.map +1 -0
  119. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -0
  120. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.js.map +1 -0
  121. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -0
  122. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.js.map +1 -0
  123. package/dist/development/src/plugins/element/lists/withLists.cjs.map +1 -0
  124. package/dist/development/src/plugins/element/lists/withLists.js.map +1 -0
  125. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -0
  126. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.js.map +1 -0
  127. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -0
  128. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -0
  129. package/dist/development/src/plugins/element/paragraphs/withParagraphs.cjs.map +1 -0
  130. package/dist/development/src/plugins/element/paragraphs/withParagraphs.js.map +1 -0
  131. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -0
  132. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -0
  133. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -0
  134. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.js.map +1 -0
  135. package/dist/development/src/plugins/element/tables/TableCellElement.cjs.map +1 -0
  136. package/dist/development/src/plugins/element/tables/TableCellElement.js.map +1 -0
  137. package/dist/development/src/plugins/element/tables/TableElement.cjs.map +1 -0
  138. package/dist/development/src/plugins/element/tables/TableElement.js.map +1 -0
  139. package/dist/development/src/plugins/element/tables/TableElementSelection.cjs.map +1 -0
  140. package/dist/development/src/plugins/element/tables/TableElementSelection.js.map +1 -0
  141. package/dist/development/src/plugins/element/tables/TableModifications.cjs +134 -0
  142. package/dist/development/src/plugins/element/tables/TableModifications.cjs.map +1 -0
  143. package/dist/development/src/plugins/element/tables/TableModifications.js +134 -0
  144. package/dist/development/src/plugins/element/tables/TableModifications.js.map +1 -0
  145. package/dist/development/src/plugins/element/tables/TableRowElement.cjs.map +1 -0
  146. package/dist/development/src/plugins/element/tables/TableRowElement.js.map +1 -0
  147. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -0
  148. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.js.map +1 -0
  149. package/dist/development/src/plugins/element/tables/withTables.cjs.map +1 -0
  150. package/dist/development/src/plugins/element/tables/withTables.js.map +1 -0
  151. package/dist/development/src/plugins/text/bold/boldMark.cjs +13 -0
  152. package/dist/development/src/plugins/text/bold/boldMark.cjs.map +1 -0
  153. package/dist/development/src/plugins/text/bold/boldMark.js.map +1 -0
  154. package/dist/development/src/plugins/text/bold/withBold.cjs.map +1 -0
  155. package/dist/development/src/plugins/text/bold/withBold.js.map +1 -0
  156. package/dist/development/src/plugins/text/code/codeMark.cjs +13 -0
  157. package/dist/development/src/plugins/text/code/codeMark.cjs.map +1 -0
  158. package/dist/development/src/plugins/text/code/codeMark.js.map +1 -0
  159. package/dist/development/src/plugins/text/code/withCode.cjs.map +1 -0
  160. package/dist/development/src/plugins/text/code/withCode.js.map +1 -0
  161. package/dist/development/src/plugins/text/highlight/highlightMark.cjs +13 -0
  162. package/dist/development/src/plugins/text/highlight/highlightMark.cjs.map +1 -0
  163. package/dist/development/src/plugins/text/highlight/highlightMark.js.map +1 -0
  164. package/dist/development/src/plugins/text/highlight/withHighlight.cjs.map +1 -0
  165. package/dist/development/src/plugins/text/highlight/withHighlight.js.map +1 -0
  166. package/dist/development/src/plugins/text/italic/italicMark.cjs +13 -0
  167. package/dist/development/src/plugins/text/italic/italicMark.cjs.map +1 -0
  168. package/dist/development/src/plugins/text/italic/italicMark.js.map +1 -0
  169. package/dist/development/src/plugins/text/italic/withItalic.cjs.map +1 -0
  170. package/dist/development/src/plugins/text/italic/withItalic.js.map +1 -0
  171. package/dist/development/src/plugins/text/newline/withNewline.cjs.map +1 -0
  172. package/dist/development/src/plugins/text/newline/withNewline.js.map +1 -0
  173. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.cjs +13 -0
  174. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -0
  175. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -0
  176. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -0
  177. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -0
  178. package/dist/development/src/plugins/text/underline/underlineMark.cjs +13 -0
  179. package/dist/development/src/plugins/text/underline/underlineMark.cjs.map +1 -0
  180. package/dist/development/src/plugins/text/underline/underlineMark.js.map +1 -0
  181. package/dist/development/src/plugins/text/underline/withUnderline.cjs.map +1 -0
  182. package/dist/development/src/plugins/text/underline/withUnderline.js.map +1 -0
  183. package/dist/development/src/slate-reexport.cjs.map +1 -0
  184. package/dist/development/src/slate-reexport.js.map +1 -0
  185. package/dist/production/index.cjs +47 -47
  186. package/dist/production/index.js +47 -47
  187. package/dist/production/src/components/RichTextEditor.cjs +93 -0
  188. package/dist/production/src/components/RichTextEditor.cjs.map +1 -0
  189. package/dist/production/src/components/RichTextEditor.js +93 -0
  190. package/dist/production/src/components/RichTextEditor.js.map +1 -0
  191. package/dist/production/src/components/triggers/EditorElementTrigger.cjs.map +1 -0
  192. package/dist/production/src/components/triggers/EditorElementTrigger.js.map +1 -0
  193. package/dist/production/src/components/triggers/EditorGenericTrigger.cjs.map +1 -0
  194. package/dist/production/src/components/triggers/EditorGenericTrigger.js.map +1 -0
  195. package/dist/production/src/components/triggers/EditorMarkTrigger.cjs.map +1 -0
  196. package/dist/production/src/components/triggers/EditorMarkTrigger.js.map +1 -0
  197. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -0
  198. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.js.map +1 -0
  199. package/dist/production/src/editor/createEditor.cjs +35 -0
  200. package/dist/production/src/editor/createEditor.cjs.map +1 -0
  201. package/dist/production/src/editor/createEditor.js.map +1 -0
  202. package/dist/production/src/editor/createEditorWithEssentials.cjs +227 -0
  203. package/dist/production/src/editor/createEditorWithEssentials.cjs.map +1 -0
  204. package/dist/production/src/editor/createEditorWithEssentials.js.map +1 -0
  205. package/dist/production/src/editor/index.cjs.map +1 -0
  206. package/dist/production/src/editor/index.js.map +1 -0
  207. package/dist/production/src/editor/methods/addMarks.cjs.map +1 -0
  208. package/dist/production/src/editor/methods/addMarks.js.map +1 -0
  209. package/dist/production/src/editor/methods/canToggleMark.cjs.map +1 -0
  210. package/dist/production/src/editor/methods/canToggleMark.js.map +1 -0
  211. package/dist/production/src/editor/methods/closest.cjs.map +1 -0
  212. package/dist/production/src/editor/methods/closest.js.map +1 -0
  213. package/dist/production/src/editor/methods/closestBlockEntry.cjs.map +1 -0
  214. package/dist/production/src/editor/methods/closestBlockEntry.js.map +1 -0
  215. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -0
  216. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.js.map +1 -0
  217. package/dist/production/src/editor/methods/ejectElement.cjs.map +1 -0
  218. package/dist/production/src/editor/methods/ejectElement.js.map +1 -0
  219. package/dist/production/src/editor/methods/elementToSpecifics.cjs.map +1 -0
  220. package/dist/production/src/editor/methods/elementToSpecifics.js.map +1 -0
  221. package/dist/production/src/editor/methods/getElementDataAttributes.cjs.map +1 -0
  222. package/dist/production/src/editor/methods/getElementDataAttributes.js.map +1 -0
  223. package/dist/production/src/editor/methods/getPreviousSibling.cjs.map +1 -0
  224. package/dist/production/src/editor/methods/getPreviousSibling.js.map +1 -0
  225. package/dist/production/src/editor/methods/hasMarks.cjs.map +1 -0
  226. package/dist/production/src/editor/methods/hasMarks.js.map +1 -0
  227. package/dist/production/src/editor/methods/hasParentOfType.cjs.map +1 -0
  228. package/dist/production/src/editor/methods/hasParentOfType.js.map +1 -0
  229. package/dist/production/src/editor/methods/isElementType.cjs.map +1 -0
  230. package/dist/production/src/editor/methods/isElementType.js.map +1 -0
  231. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -0
  232. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.js.map +1 -0
  233. package/dist/production/src/editor/methods/removeMarks.cjs.map +1 -0
  234. package/dist/production/src/editor/methods/removeMarks.js.map +1 -0
  235. package/dist/production/src/editor/methods/serializeNodes.cjs.map +1 -0
  236. package/dist/production/src/editor/methods/serializeNodes.js.map +1 -0
  237. package/dist/production/src/editor/methods/strictlyDeserializeNodes.cjs.map +1 -0
  238. package/dist/production/src/editor/methods/strictlyDeserializeNodes.js.map +1 -0
  239. package/dist/production/src/editor/methods/textToSpecifics.cjs.map +1 -0
  240. package/dist/production/src/editor/methods/textToSpecifics.js.map +1 -0
  241. package/dist/production/src/editor/methods/toLatestFormat.cjs.map +1 -0
  242. package/dist/production/src/editor/methods/toLatestFormat.js.map +1 -0
  243. package/dist/production/src/editor/methods/topLevelNodes.cjs.map +1 -0
  244. package/dist/production/src/editor/methods/topLevelNodes.js.map +1 -0
  245. package/dist/production/src/internal/components/DefaultElement.cjs +11 -0
  246. package/dist/production/src/internal/components/DefaultElement.cjs.map +1 -0
  247. package/dist/production/src/internal/components/DefaultElement.js.map +1 -0
  248. package/dist/production/src/internal/hooks/useRichTextFieldNodes.cjs.map +1 -0
  249. package/dist/production/src/internal/hooks/useRichTextFieldNodes.js.map +1 -0
  250. package/dist/production/src/internal/utils/EditorPasteUtils.cjs.map +1 -0
  251. package/dist/production/src/internal/utils/EditorPasteUtils.js.map +1 -0
  252. package/dist/production/src/internal/utils/parseUrl.cjs.map +1 -0
  253. package/dist/production/src/internal/utils/parseUrl.js.map +1 -0
  254. package/dist/production/src/plugins/attributes/alignment/alignButton.cjs.map +1 -0
  255. package/dist/production/src/plugins/attributes/alignment/alignButton.js.map +1 -0
  256. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -0
  257. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -0
  258. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -0
  259. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -0
  260. package/dist/production/src/plugins/behaviour/paste/withPaste.cjs.map +1 -0
  261. package/dist/production/src/plugins/behaviour/paste/withPaste.js.map +1 -0
  262. package/dist/production/src/plugins/element/anchors/AnchorElement.cjs.map +1 -0
  263. package/dist/production/src/plugins/element/anchors/AnchorElement.js.map +1 -0
  264. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -0
  265. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -0
  266. package/dist/production/src/plugins/element/anchors/AnchorModifications.cjs.map +1 -0
  267. package/dist/production/src/plugins/element/anchors/AnchorModifications.js.map +1 -0
  268. package/dist/production/src/plugins/element/anchors/withAnchors.cjs.map +1 -0
  269. package/dist/production/src/plugins/element/anchors/withAnchors.js.map +1 -0
  270. package/dist/production/src/plugins/element/headings/HeadingElement.cjs.map +1 -0
  271. package/dist/production/src/plugins/element/headings/HeadingElement.js.map +1 -0
  272. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -0
  273. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -0
  274. package/dist/production/src/plugins/element/headings/withHeadings.cjs.map +1 -0
  275. package/dist/production/src/plugins/element/headings/withHeadings.js.map +1 -0
  276. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -0
  277. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -0
  278. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -0
  279. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -0
  280. package/dist/production/src/plugins/element/lists/ListElement.cjs.map +1 -0
  281. package/dist/production/src/plugins/element/lists/ListElement.js.map +1 -0
  282. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -0
  283. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.js.map +1 -0
  284. package/dist/production/src/plugins/element/lists/ListItemElement.cjs.map +1 -0
  285. package/dist/production/src/plugins/element/lists/ListItemElement.js.map +1 -0
  286. package/dist/production/src/plugins/element/lists/OrderedListElement.cjs.map +1 -0
  287. package/dist/production/src/plugins/element/lists/OrderedListElement.js.map +1 -0
  288. package/dist/production/src/plugins/element/lists/UnorderedListElement.cjs.map +1 -0
  289. package/dist/production/src/plugins/element/lists/UnorderedListElement.js.map +1 -0
  290. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -0
  291. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.js.map +1 -0
  292. package/dist/production/src/plugins/element/lists/transforms/indentListItem.cjs.map +1 -0
  293. package/dist/production/src/plugins/element/lists/transforms/indentListItem.js.map +1 -0
  294. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -0
  295. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.js.map +1 -0
  296. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -0
  297. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.js.map +1 -0
  298. package/dist/production/src/plugins/element/lists/withLists.cjs.map +1 -0
  299. package/dist/production/src/plugins/element/lists/withLists.js.map +1 -0
  300. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -0
  301. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.js.map +1 -0
  302. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -0
  303. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -0
  304. package/dist/production/src/plugins/element/paragraphs/withParagraphs.cjs.map +1 -0
  305. package/dist/production/src/plugins/element/paragraphs/withParagraphs.js.map +1 -0
  306. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -0
  307. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -0
  308. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -0
  309. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.js.map +1 -0
  310. package/dist/production/src/plugins/element/tables/TableCellElement.cjs.map +1 -0
  311. package/dist/production/src/plugins/element/tables/TableCellElement.js.map +1 -0
  312. package/dist/production/src/plugins/element/tables/TableElement.cjs.map +1 -0
  313. package/dist/production/src/plugins/element/tables/TableElement.js.map +1 -0
  314. package/dist/production/src/plugins/element/tables/TableElementSelection.cjs.map +1 -0
  315. package/dist/production/src/plugins/element/tables/TableElementSelection.js.map +1 -0
  316. package/dist/production/src/plugins/element/tables/TableModifications.cjs +134 -0
  317. package/dist/production/src/plugins/element/tables/TableModifications.cjs.map +1 -0
  318. package/dist/production/src/plugins/element/tables/TableModifications.js +134 -0
  319. package/dist/production/src/plugins/element/tables/TableModifications.js.map +1 -0
  320. package/dist/production/src/plugins/element/tables/TableRowElement.cjs.map +1 -0
  321. package/dist/production/src/plugins/element/tables/TableRowElement.js.map +1 -0
  322. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -0
  323. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.js.map +1 -0
  324. package/dist/production/src/plugins/element/tables/withTables.cjs.map +1 -0
  325. package/dist/production/src/plugins/element/tables/withTables.js.map +1 -0
  326. package/dist/production/src/plugins/text/bold/boldMark.cjs +13 -0
  327. package/dist/production/src/plugins/text/bold/boldMark.cjs.map +1 -0
  328. package/dist/production/src/plugins/text/bold/boldMark.js.map +1 -0
  329. package/dist/production/src/plugins/text/bold/withBold.cjs.map +1 -0
  330. package/dist/production/src/plugins/text/bold/withBold.js.map +1 -0
  331. package/dist/production/src/plugins/text/code/codeMark.cjs +13 -0
  332. package/dist/production/src/plugins/text/code/codeMark.cjs.map +1 -0
  333. package/dist/production/src/plugins/text/code/codeMark.js.map +1 -0
  334. package/dist/production/src/plugins/text/code/withCode.cjs.map +1 -0
  335. package/dist/production/src/plugins/text/code/withCode.js.map +1 -0
  336. package/dist/production/src/plugins/text/highlight/highlightMark.cjs +13 -0
  337. package/dist/production/src/plugins/text/highlight/highlightMark.cjs.map +1 -0
  338. package/dist/production/src/plugins/text/highlight/highlightMark.js.map +1 -0
  339. package/dist/production/src/plugins/text/highlight/withHighlight.cjs.map +1 -0
  340. package/dist/production/src/plugins/text/highlight/withHighlight.js.map +1 -0
  341. package/dist/production/src/plugins/text/italic/italicMark.cjs +13 -0
  342. package/dist/production/src/plugins/text/italic/italicMark.cjs.map +1 -0
  343. package/dist/production/src/plugins/text/italic/italicMark.js.map +1 -0
  344. package/dist/production/src/plugins/text/italic/withItalic.cjs.map +1 -0
  345. package/dist/production/src/plugins/text/italic/withItalic.js.map +1 -0
  346. package/dist/production/src/plugins/text/newline/withNewline.cjs.map +1 -0
  347. package/dist/production/src/plugins/text/newline/withNewline.js.map +1 -0
  348. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.cjs +13 -0
  349. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -0
  350. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -0
  351. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -0
  352. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -0
  353. package/dist/production/src/plugins/text/underline/underlineMark.cjs +13 -0
  354. package/dist/production/src/plugins/text/underline/underlineMark.cjs.map +1 -0
  355. package/dist/production/src/plugins/text/underline/underlineMark.js.map +1 -0
  356. package/dist/production/src/plugins/text/underline/withUnderline.cjs.map +1 -0
  357. package/dist/production/src/plugins/text/underline/withUnderline.js.map +1 -0
  358. package/dist/production/src/slate-reexport.cjs.map +1 -0
  359. package/dist/production/src/slate-reexport.js.map +1 -0
  360. package/dist/types/editor/createEditor.d.ts +1 -1
  361. package/dist/types/editor/createEditor.d.ts.map +1 -1
  362. package/dist/types/editor/index.d.ts +28 -28
  363. package/dist/types/editor/index.d.ts.map +1 -1
  364. package/dist/types/editor/methods/addMarks.d.ts +2 -1
  365. package/dist/types/editor/methods/addMarks.d.ts.map +1 -1
  366. package/dist/types/editor/methods/canToggleMark.d.ts +2 -1
  367. package/dist/types/editor/methods/canToggleMark.d.ts.map +1 -1
  368. package/dist/types/editor/methods/closest.d.ts +2 -2
  369. package/dist/types/editor/methods/closest.d.ts.map +1 -1
  370. package/dist/types/editor/methods/closestBlockEntry.d.ts +2 -2
  371. package/dist/types/editor/methods/closestBlockEntry.d.ts.map +1 -1
  372. package/dist/types/editor/methods/closestViableBlockContainerEntry.d.ts +1 -1
  373. package/dist/types/editor/methods/closestViableBlockContainerEntry.d.ts.map +1 -1
  374. package/dist/types/editor/methods/ejectElement.d.ts +2 -2
  375. package/dist/types/editor/methods/ejectElement.d.ts.map +1 -1
  376. package/dist/types/editor/methods/elementToSpecifics.d.ts +2 -1
  377. package/dist/types/editor/methods/elementToSpecifics.d.ts.map +1 -1
  378. package/dist/types/editor/methods/getElementDataAttributes.d.ts +2 -1
  379. package/dist/types/editor/methods/getElementDataAttributes.d.ts.map +1 -1
  380. package/dist/types/editor/methods/getPreviousSibling.d.ts +2 -2
  381. package/dist/types/editor/methods/getPreviousSibling.d.ts.map +1 -1
  382. package/dist/types/editor/methods/hasMarks.d.ts +2 -2
  383. package/dist/types/editor/methods/hasMarks.d.ts.map +1 -1
  384. package/dist/types/editor/methods/hasParentOfType.d.ts +2 -2
  385. package/dist/types/editor/methods/hasParentOfType.d.ts.map +1 -1
  386. package/dist/types/editor/methods/isElementType.d.ts +2 -2
  387. package/dist/types/editor/methods/isElementType.d.ts.map +1 -1
  388. package/dist/types/editor/methods/permissivelyDeserializeNodes.d.ts +2 -2
  389. package/dist/types/editor/methods/permissivelyDeserializeNodes.d.ts.map +1 -1
  390. package/dist/types/editor/methods/removeMarks.d.ts +2 -1
  391. package/dist/types/editor/methods/removeMarks.d.ts.map +1 -1
  392. package/dist/types/editor/methods/serializeNodes.d.ts +2 -2
  393. package/dist/types/editor/methods/serializeNodes.d.ts.map +1 -1
  394. package/dist/types/editor/methods/strictlyDeserializeNodes.d.ts +2 -2
  395. package/dist/types/editor/methods/strictlyDeserializeNodes.d.ts.map +1 -1
  396. package/dist/types/editor/methods/textToSpecifics.d.ts +2 -1
  397. package/dist/types/editor/methods/textToSpecifics.d.ts.map +1 -1
  398. package/dist/types/editor/methods/toLatestFormat.d.ts +2 -1
  399. package/dist/types/editor/methods/toLatestFormat.d.ts.map +1 -1
  400. package/dist/types/editor/methods/topLevelNodes.d.ts +2 -1
  401. package/dist/types/editor/methods/topLevelNodes.d.ts.map +1 -1
  402. package/dist/types/internal/utils/EditorPasteUtils.d.ts.map +1 -1
  403. package/dist/types/plugins/behaviour/paste/HtmlDeserializer.d.ts +1 -1
  404. package/dist/types/plugins/element/anchors/AnchorElement.d.ts.map +1 -1
  405. package/dist/types/plugins/element/anchors/withAnchors.d.ts +2 -1
  406. package/dist/types/plugins/element/anchors/withAnchors.d.ts.map +1 -1
  407. package/dist/types/plugins/element/headings/HeadingElement.d.ts.map +1 -1
  408. package/dist/types/plugins/element/headings/withHeadings.d.ts +2 -1
  409. package/dist/types/plugins/element/headings/withHeadings.d.ts.map +1 -1
  410. package/dist/types/plugins/element/horizonalRules/HorizontalRuleElement.d.ts.map +1 -1
  411. package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts +2 -1
  412. package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts.map +1 -1
  413. package/dist/types/plugins/element/lists/ListElement.d.ts +1 -1
  414. package/dist/types/plugins/element/lists/ListElement.d.ts.map +1 -1
  415. package/dist/types/plugins/element/lists/ListItemElement.d.ts.map +1 -1
  416. package/dist/types/plugins/element/lists/OrderedListElement.d.ts.map +1 -1
  417. package/dist/types/plugins/element/lists/UnorderedListElement.d.ts.map +1 -1
  418. package/dist/types/plugins/element/lists/transforms/dedentListItem.d.ts.map +1 -1
  419. package/dist/types/plugins/element/lists/transforms/indentListItem.d.ts.map +1 -1
  420. package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts +1 -1
  421. package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts.map +1 -1
  422. package/dist/types/plugins/element/lists/withLists.d.ts +2 -1
  423. package/dist/types/plugins/element/lists/withLists.d.ts.map +1 -1
  424. package/dist/types/plugins/element/paragraphs/ParagraphElement.d.ts.map +1 -1
  425. package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts +2 -1
  426. package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts.map +1 -1
  427. package/dist/types/plugins/element/scrollTargets/ScrollTargetElement.d.ts.map +1 -1
  428. package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts +2 -1
  429. package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts.map +1 -1
  430. package/dist/types/plugins/element/tables/TableCellElement.d.ts.map +1 -1
  431. package/dist/types/plugins/element/tables/TableElement.d.ts.map +1 -1
  432. package/dist/types/plugins/element/tables/TableElementSelection.d.ts.map +1 -1
  433. package/dist/types/plugins/element/tables/TableRowElement.d.ts.map +1 -1
  434. package/dist/types/plugins/element/tables/withTables.d.ts +2 -1
  435. package/dist/types/plugins/element/tables/withTables.d.ts.map +1 -1
  436. package/dist/types/tsconfig.tsbuildinfo +1 -1
  437. package/dist/types/types/editor.d.ts.map +1 -1
  438. package/dist/types/types/htmlDeserializer.d.ts.map +1 -1
  439. package/dist/types/types/plugins.d.ts +1 -2
  440. package/dist/types/types/plugins.d.ts.map +1 -1
  441. package/package.json +11 -19
  442. package/src/components/RichTextEditor.tsx +6 -6
  443. package/src/editor/createEditor.ts +2 -2
  444. package/src/editor/createEditorWithEssentials.tsx +2 -2
  445. package/src/internal/hooks/useRichTextFieldNodes.ts +6 -6
  446. package/src/internal/utils/EditorPasteUtils.ts +36 -36
  447. package/src/plugins/behaviour/paste/HtmlDeserializer.ts +1 -1
  448. package/src/plugins/element/lists/transforms/normalizeListElement.ts +1 -1
  449. package/src/plugins/element/tables/TableModifications.ts +3 -3
  450. package/src/tsconfig.json +0 -1
  451. package/src/types/editor.ts +1 -1
  452. package/src/types/htmlDeserializer.ts +14 -14
  453. package/src/types/plugins.ts +8 -9
  454. package/tsconfig.json +7 -0
  455. package/tsdoc.json +6 -0
  456. package/dist/development/components/RichTextEditor.cjs +0 -93
  457. package/dist/development/components/RichTextEditor.cjs.map +0 -1
  458. package/dist/development/components/RichTextEditor.js +0 -93
  459. package/dist/development/components/RichTextEditor.js.map +0 -1
  460. package/dist/development/components/triggers/EditorElementTrigger.cjs.map +0 -1
  461. package/dist/development/components/triggers/EditorElementTrigger.js.map +0 -1
  462. package/dist/development/components/triggers/EditorGenericTrigger.cjs.map +0 -1
  463. package/dist/development/components/triggers/EditorGenericTrigger.js.map +0 -1
  464. package/dist/development/components/triggers/EditorMarkTrigger.cjs.map +0 -1
  465. package/dist/development/components/triggers/EditorMarkTrigger.js.map +0 -1
  466. package/dist/development/components/triggers/EditorWrapNodeTrigger.cjs.map +0 -1
  467. package/dist/development/components/triggers/EditorWrapNodeTrigger.js.map +0 -1
  468. package/dist/development/editor/createEditor.cjs +0 -35
  469. package/dist/development/editor/createEditor.cjs.map +0 -1
  470. package/dist/development/editor/createEditor.js.map +0 -1
  471. package/dist/development/editor/createEditorWithEssentials.cjs +0 -227
  472. package/dist/development/editor/createEditorWithEssentials.cjs.map +0 -1
  473. package/dist/development/editor/createEditorWithEssentials.js.map +0 -1
  474. package/dist/development/editor/index.cjs.map +0 -1
  475. package/dist/development/editor/index.js.map +0 -1
  476. package/dist/development/editor/methods/addMarks.cjs.map +0 -1
  477. package/dist/development/editor/methods/addMarks.js.map +0 -1
  478. package/dist/development/editor/methods/canToggleMark.cjs.map +0 -1
  479. package/dist/development/editor/methods/canToggleMark.js.map +0 -1
  480. package/dist/development/editor/methods/closest.cjs.map +0 -1
  481. package/dist/development/editor/methods/closest.js.map +0 -1
  482. package/dist/development/editor/methods/closestBlockEntry.cjs.map +0 -1
  483. package/dist/development/editor/methods/closestBlockEntry.js.map +0 -1
  484. package/dist/development/editor/methods/closestViableBlockContainerEntry.cjs.map +0 -1
  485. package/dist/development/editor/methods/closestViableBlockContainerEntry.js.map +0 -1
  486. package/dist/development/editor/methods/ejectElement.cjs.map +0 -1
  487. package/dist/development/editor/methods/ejectElement.js.map +0 -1
  488. package/dist/development/editor/methods/elementToSpecifics.cjs.map +0 -1
  489. package/dist/development/editor/methods/elementToSpecifics.js.map +0 -1
  490. package/dist/development/editor/methods/getElementDataAttributes.cjs.map +0 -1
  491. package/dist/development/editor/methods/getElementDataAttributes.js.map +0 -1
  492. package/dist/development/editor/methods/getPreviousSibling.cjs.map +0 -1
  493. package/dist/development/editor/methods/getPreviousSibling.js.map +0 -1
  494. package/dist/development/editor/methods/hasMarks.cjs.map +0 -1
  495. package/dist/development/editor/methods/hasMarks.js.map +0 -1
  496. package/dist/development/editor/methods/hasParentOfType.cjs.map +0 -1
  497. package/dist/development/editor/methods/hasParentOfType.js.map +0 -1
  498. package/dist/development/editor/methods/isElementType.cjs.map +0 -1
  499. package/dist/development/editor/methods/isElementType.js.map +0 -1
  500. package/dist/development/editor/methods/permissivelyDeserializeNodes.cjs.map +0 -1
  501. package/dist/development/editor/methods/permissivelyDeserializeNodes.js.map +0 -1
  502. package/dist/development/editor/methods/removeMarks.cjs.map +0 -1
  503. package/dist/development/editor/methods/removeMarks.js.map +0 -1
  504. package/dist/development/editor/methods/serializeNodes.cjs.map +0 -1
  505. package/dist/development/editor/methods/serializeNodes.js.map +0 -1
  506. package/dist/development/editor/methods/strictlyDeserializeNodes.cjs.map +0 -1
  507. package/dist/development/editor/methods/strictlyDeserializeNodes.js.map +0 -1
  508. package/dist/development/editor/methods/textToSpecifics.cjs.map +0 -1
  509. package/dist/development/editor/methods/textToSpecifics.js.map +0 -1
  510. package/dist/development/editor/methods/toLatestFormat.cjs.map +0 -1
  511. package/dist/development/editor/methods/toLatestFormat.js.map +0 -1
  512. package/dist/development/editor/methods/topLevelNodes.cjs.map +0 -1
  513. package/dist/development/editor/methods/topLevelNodes.js.map +0 -1
  514. package/dist/development/internal/components/DefaultElement.cjs +0 -11
  515. package/dist/development/internal/components/DefaultElement.cjs.map +0 -1
  516. package/dist/development/internal/components/DefaultElement.js.map +0 -1
  517. package/dist/development/internal/hooks/useRichTextFieldNodes.cjs.map +0 -1
  518. package/dist/development/internal/hooks/useRichTextFieldNodes.js.map +0 -1
  519. package/dist/development/internal/utils/EditorPasteUtils.cjs.map +0 -1
  520. package/dist/development/internal/utils/EditorPasteUtils.js.map +0 -1
  521. package/dist/development/internal/utils/parseUrl.cjs.map +0 -1
  522. package/dist/development/internal/utils/parseUrl.js.map +0 -1
  523. package/dist/development/plugins/attributes/alignment/alignButton.cjs.map +0 -1
  524. package/dist/development/plugins/attributes/alignment/alignButton.js.map +0 -1
  525. package/dist/development/plugins/behaviour/paste/HtmlDeserializer.cjs.map +0 -1
  526. package/dist/development/plugins/behaviour/paste/HtmlDeserializer.js.map +0 -1
  527. package/dist/development/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +0 -1
  528. package/dist/development/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +0 -1
  529. package/dist/development/plugins/behaviour/paste/withPaste.cjs.map +0 -1
  530. package/dist/development/plugins/behaviour/paste/withPaste.js.map +0 -1
  531. package/dist/development/plugins/element/anchors/AnchorElement.cjs.map +0 -1
  532. package/dist/development/plugins/element/anchors/AnchorElement.js.map +0 -1
  533. package/dist/development/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +0 -1
  534. package/dist/development/plugins/element/anchors/AnchorHtmlDeserializer.js.map +0 -1
  535. package/dist/development/plugins/element/anchors/AnchorModifications.cjs.map +0 -1
  536. package/dist/development/plugins/element/anchors/AnchorModifications.js.map +0 -1
  537. package/dist/development/plugins/element/anchors/withAnchors.cjs.map +0 -1
  538. package/dist/development/plugins/element/anchors/withAnchors.js.map +0 -1
  539. package/dist/development/plugins/element/headings/HeadingElement.cjs.map +0 -1
  540. package/dist/development/plugins/element/headings/HeadingElement.js.map +0 -1
  541. package/dist/development/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +0 -1
  542. package/dist/development/plugins/element/headings/HeadingHtmlDeserializer.js.map +0 -1
  543. package/dist/development/plugins/element/headings/withHeadings.cjs.map +0 -1
  544. package/dist/development/plugins/element/headings/withHeadings.js.map +0 -1
  545. package/dist/development/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +0 -1
  546. package/dist/development/plugins/element/horizonalRules/HorizontalRuleElement.js.map +0 -1
  547. package/dist/development/plugins/element/horizonalRules/withHorizontalRules.cjs.map +0 -1
  548. package/dist/development/plugins/element/horizonalRules/withHorizontalRules.js.map +0 -1
  549. package/dist/development/plugins/element/lists/ListElement.cjs.map +0 -1
  550. package/dist/development/plugins/element/lists/ListElement.js.map +0 -1
  551. package/dist/development/plugins/element/lists/ListHtmlDeserializer.cjs.map +0 -1
  552. package/dist/development/plugins/element/lists/ListHtmlDeserializer.js.map +0 -1
  553. package/dist/development/plugins/element/lists/ListItemElement.cjs.map +0 -1
  554. package/dist/development/plugins/element/lists/ListItemElement.js.map +0 -1
  555. package/dist/development/plugins/element/lists/OrderedListElement.cjs.map +0 -1
  556. package/dist/development/plugins/element/lists/OrderedListElement.js.map +0 -1
  557. package/dist/development/plugins/element/lists/UnorderedListElement.cjs.map +0 -1
  558. package/dist/development/plugins/element/lists/UnorderedListElement.js.map +0 -1
  559. package/dist/development/plugins/element/lists/transforms/dedentListItem.cjs.map +0 -1
  560. package/dist/development/plugins/element/lists/transforms/dedentListItem.js.map +0 -1
  561. package/dist/development/plugins/element/lists/transforms/indentListItem.cjs.map +0 -1
  562. package/dist/development/plugins/element/lists/transforms/indentListItem.js.map +0 -1
  563. package/dist/development/plugins/element/lists/transforms/normalizeListElement.cjs.map +0 -1
  564. package/dist/development/plugins/element/lists/transforms/normalizeListElement.js.map +0 -1
  565. package/dist/development/plugins/element/lists/transforms/toggleListElement.cjs.map +0 -1
  566. package/dist/development/plugins/element/lists/transforms/toggleListElement.js.map +0 -1
  567. package/dist/development/plugins/element/lists/withLists.cjs.map +0 -1
  568. package/dist/development/plugins/element/lists/withLists.js.map +0 -1
  569. package/dist/development/plugins/element/paragraphs/ParagraphElement.cjs.map +0 -1
  570. package/dist/development/plugins/element/paragraphs/ParagraphElement.js.map +0 -1
  571. package/dist/development/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +0 -1
  572. package/dist/development/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +0 -1
  573. package/dist/development/plugins/element/paragraphs/withParagraphs.cjs.map +0 -1
  574. package/dist/development/plugins/element/paragraphs/withParagraphs.js.map +0 -1
  575. package/dist/development/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +0 -1
  576. package/dist/development/plugins/element/scrollTargets/ScrollTargetElement.js.map +0 -1
  577. package/dist/development/plugins/element/scrollTargets/withScrollTargets.cjs.map +0 -1
  578. package/dist/development/plugins/element/scrollTargets/withScrollTargets.js.map +0 -1
  579. package/dist/development/plugins/element/tables/TableCellElement.cjs.map +0 -1
  580. package/dist/development/plugins/element/tables/TableCellElement.js.map +0 -1
  581. package/dist/development/plugins/element/tables/TableElement.cjs.map +0 -1
  582. package/dist/development/plugins/element/tables/TableElement.js.map +0 -1
  583. package/dist/development/plugins/element/tables/TableElementSelection.cjs.map +0 -1
  584. package/dist/development/plugins/element/tables/TableElementSelection.js.map +0 -1
  585. package/dist/development/plugins/element/tables/TableModifications.cjs +0 -134
  586. package/dist/development/plugins/element/tables/TableModifications.cjs.map +0 -1
  587. package/dist/development/plugins/element/tables/TableModifications.js +0 -134
  588. package/dist/development/plugins/element/tables/TableModifications.js.map +0 -1
  589. package/dist/development/plugins/element/tables/TableRowElement.cjs.map +0 -1
  590. package/dist/development/plugins/element/tables/TableRowElement.js.map +0 -1
  591. package/dist/development/plugins/element/tables/gaugeTableColumnCount.cjs.map +0 -1
  592. package/dist/development/plugins/element/tables/gaugeTableColumnCount.js.map +0 -1
  593. package/dist/development/plugins/element/tables/withTables.cjs.map +0 -1
  594. package/dist/development/plugins/element/tables/withTables.js.map +0 -1
  595. package/dist/development/plugins/text/bold/boldMark.cjs +0 -13
  596. package/dist/development/plugins/text/bold/boldMark.cjs.map +0 -1
  597. package/dist/development/plugins/text/bold/boldMark.js.map +0 -1
  598. package/dist/development/plugins/text/bold/withBold.cjs.map +0 -1
  599. package/dist/development/plugins/text/bold/withBold.js.map +0 -1
  600. package/dist/development/plugins/text/code/codeMark.cjs +0 -13
  601. package/dist/development/plugins/text/code/codeMark.cjs.map +0 -1
  602. package/dist/development/plugins/text/code/codeMark.js.map +0 -1
  603. package/dist/development/plugins/text/code/withCode.cjs.map +0 -1
  604. package/dist/development/plugins/text/code/withCode.js.map +0 -1
  605. package/dist/development/plugins/text/highlight/highlightMark.cjs +0 -13
  606. package/dist/development/plugins/text/highlight/highlightMark.cjs.map +0 -1
  607. package/dist/development/plugins/text/highlight/highlightMark.js.map +0 -1
  608. package/dist/development/plugins/text/highlight/withHighlight.cjs.map +0 -1
  609. package/dist/development/plugins/text/highlight/withHighlight.js.map +0 -1
  610. package/dist/development/plugins/text/italic/italicMark.cjs +0 -13
  611. package/dist/development/plugins/text/italic/italicMark.cjs.map +0 -1
  612. package/dist/development/plugins/text/italic/italicMark.js.map +0 -1
  613. package/dist/development/plugins/text/italic/withItalic.cjs.map +0 -1
  614. package/dist/development/plugins/text/italic/withItalic.js.map +0 -1
  615. package/dist/development/plugins/text/newline/withNewline.cjs.map +0 -1
  616. package/dist/development/plugins/text/newline/withNewline.js.map +0 -1
  617. package/dist/development/plugins/text/strikeThrough/strikeThroughMark.cjs +0 -13
  618. package/dist/development/plugins/text/strikeThrough/strikeThroughMark.cjs.map +0 -1
  619. package/dist/development/plugins/text/strikeThrough/strikeThroughMark.js.map +0 -1
  620. package/dist/development/plugins/text/strikeThrough/withStrikeThrough.cjs.map +0 -1
  621. package/dist/development/plugins/text/strikeThrough/withStrikeThrough.js.map +0 -1
  622. package/dist/development/plugins/text/underline/underlineMark.cjs +0 -13
  623. package/dist/development/plugins/text/underline/underlineMark.cjs.map +0 -1
  624. package/dist/development/plugins/text/underline/underlineMark.js.map +0 -1
  625. package/dist/development/plugins/text/underline/withUnderline.cjs.map +0 -1
  626. package/dist/development/plugins/text/underline/withUnderline.js.map +0 -1
  627. package/dist/development/slate-reexport.cjs.map +0 -1
  628. package/dist/development/slate-reexport.js.map +0 -1
  629. package/dist/production/components/RichTextEditor.cjs +0 -93
  630. package/dist/production/components/RichTextEditor.cjs.map +0 -1
  631. package/dist/production/components/RichTextEditor.js +0 -93
  632. package/dist/production/components/RichTextEditor.js.map +0 -1
  633. package/dist/production/components/triggers/EditorElementTrigger.cjs +0 -16
  634. package/dist/production/components/triggers/EditorElementTrigger.cjs.map +0 -1
  635. package/dist/production/components/triggers/EditorElementTrigger.js +0 -16
  636. package/dist/production/components/triggers/EditorElementTrigger.js.map +0 -1
  637. package/dist/production/components/triggers/EditorGenericTrigger.cjs +0 -20
  638. package/dist/production/components/triggers/EditorGenericTrigger.cjs.map +0 -1
  639. package/dist/production/components/triggers/EditorGenericTrigger.js +0 -20
  640. package/dist/production/components/triggers/EditorGenericTrigger.js.map +0 -1
  641. package/dist/production/components/triggers/EditorMarkTrigger.cjs +0 -16
  642. package/dist/production/components/triggers/EditorMarkTrigger.cjs.map +0 -1
  643. package/dist/production/components/triggers/EditorMarkTrigger.js +0 -16
  644. package/dist/production/components/triggers/EditorMarkTrigger.js.map +0 -1
  645. package/dist/production/components/triggers/EditorWrapNodeTrigger.cjs +0 -28
  646. package/dist/production/components/triggers/EditorWrapNodeTrigger.cjs.map +0 -1
  647. package/dist/production/components/triggers/EditorWrapNodeTrigger.js +0 -28
  648. package/dist/production/components/triggers/EditorWrapNodeTrigger.js.map +0 -1
  649. package/dist/production/editor/createEditor.cjs +0 -35
  650. package/dist/production/editor/createEditor.cjs.map +0 -1
  651. package/dist/production/editor/createEditor.js.map +0 -1
  652. package/dist/production/editor/createEditorWithEssentials.cjs +0 -227
  653. package/dist/production/editor/createEditorWithEssentials.cjs.map +0 -1
  654. package/dist/production/editor/createEditorWithEssentials.js.map +0 -1
  655. package/dist/production/editor/index.cjs.map +0 -1
  656. package/dist/production/editor/index.js.map +0 -1
  657. package/dist/production/editor/methods/addMarks.cjs.map +0 -1
  658. package/dist/production/editor/methods/addMarks.js.map +0 -1
  659. package/dist/production/editor/methods/canToggleMark.cjs.map +0 -1
  660. package/dist/production/editor/methods/canToggleMark.js.map +0 -1
  661. package/dist/production/editor/methods/closest.cjs.map +0 -1
  662. package/dist/production/editor/methods/closest.js.map +0 -1
  663. package/dist/production/editor/methods/closestBlockEntry.cjs.map +0 -1
  664. package/dist/production/editor/methods/closestBlockEntry.js.map +0 -1
  665. package/dist/production/editor/methods/closestViableBlockContainerEntry.cjs.map +0 -1
  666. package/dist/production/editor/methods/closestViableBlockContainerEntry.js.map +0 -1
  667. package/dist/production/editor/methods/ejectElement.cjs.map +0 -1
  668. package/dist/production/editor/methods/ejectElement.js.map +0 -1
  669. package/dist/production/editor/methods/elementToSpecifics.cjs.map +0 -1
  670. package/dist/production/editor/methods/elementToSpecifics.js.map +0 -1
  671. package/dist/production/editor/methods/getElementDataAttributes.cjs.map +0 -1
  672. package/dist/production/editor/methods/getElementDataAttributes.js.map +0 -1
  673. package/dist/production/editor/methods/getPreviousSibling.cjs.map +0 -1
  674. package/dist/production/editor/methods/getPreviousSibling.js.map +0 -1
  675. package/dist/production/editor/methods/hasMarks.cjs.map +0 -1
  676. package/dist/production/editor/methods/hasMarks.js.map +0 -1
  677. package/dist/production/editor/methods/hasParentOfType.cjs.map +0 -1
  678. package/dist/production/editor/methods/hasParentOfType.js.map +0 -1
  679. package/dist/production/editor/methods/isElementType.cjs.map +0 -1
  680. package/dist/production/editor/methods/isElementType.js.map +0 -1
  681. package/dist/production/editor/methods/permissivelyDeserializeNodes.cjs.map +0 -1
  682. package/dist/production/editor/methods/permissivelyDeserializeNodes.js.map +0 -1
  683. package/dist/production/editor/methods/removeMarks.cjs.map +0 -1
  684. package/dist/production/editor/methods/removeMarks.js.map +0 -1
  685. package/dist/production/editor/methods/serializeNodes.cjs.map +0 -1
  686. package/dist/production/editor/methods/serializeNodes.js.map +0 -1
  687. package/dist/production/editor/methods/strictlyDeserializeNodes.cjs.map +0 -1
  688. package/dist/production/editor/methods/strictlyDeserializeNodes.js.map +0 -1
  689. package/dist/production/editor/methods/textToSpecifics.cjs.map +0 -1
  690. package/dist/production/editor/methods/textToSpecifics.js.map +0 -1
  691. package/dist/production/editor/methods/toLatestFormat.cjs.map +0 -1
  692. package/dist/production/editor/methods/toLatestFormat.js.map +0 -1
  693. package/dist/production/editor/methods/topLevelNodes.cjs.map +0 -1
  694. package/dist/production/editor/methods/topLevelNodes.js.map +0 -1
  695. package/dist/production/internal/components/DefaultElement.cjs +0 -11
  696. package/dist/production/internal/components/DefaultElement.cjs.map +0 -1
  697. package/dist/production/internal/components/DefaultElement.js.map +0 -1
  698. package/dist/production/internal/hooks/useRichTextFieldNodes.cjs.map +0 -1
  699. package/dist/production/internal/hooks/useRichTextFieldNodes.js.map +0 -1
  700. package/dist/production/internal/utils/EditorPasteUtils.cjs.map +0 -1
  701. package/dist/production/internal/utils/EditorPasteUtils.js.map +0 -1
  702. package/dist/production/internal/utils/parseUrl.cjs.map +0 -1
  703. package/dist/production/internal/utils/parseUrl.js.map +0 -1
  704. package/dist/production/plugins/attributes/alignment/alignButton.cjs.map +0 -1
  705. package/dist/production/plugins/attributes/alignment/alignButton.js.map +0 -1
  706. package/dist/production/plugins/behaviour/paste/HtmlDeserializer.cjs.map +0 -1
  707. package/dist/production/plugins/behaviour/paste/HtmlDeserializer.js.map +0 -1
  708. package/dist/production/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +0 -1
  709. package/dist/production/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +0 -1
  710. package/dist/production/plugins/behaviour/paste/withPaste.cjs.map +0 -1
  711. package/dist/production/plugins/behaviour/paste/withPaste.js.map +0 -1
  712. package/dist/production/plugins/element/anchors/AnchorElement.cjs.map +0 -1
  713. package/dist/production/plugins/element/anchors/AnchorElement.js.map +0 -1
  714. package/dist/production/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +0 -1
  715. package/dist/production/plugins/element/anchors/AnchorHtmlDeserializer.js.map +0 -1
  716. package/dist/production/plugins/element/anchors/AnchorModifications.cjs.map +0 -1
  717. package/dist/production/plugins/element/anchors/AnchorModifications.js.map +0 -1
  718. package/dist/production/plugins/element/anchors/withAnchors.cjs.map +0 -1
  719. package/dist/production/plugins/element/anchors/withAnchors.js.map +0 -1
  720. package/dist/production/plugins/element/headings/HeadingElement.cjs.map +0 -1
  721. package/dist/production/plugins/element/headings/HeadingElement.js.map +0 -1
  722. package/dist/production/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +0 -1
  723. package/dist/production/plugins/element/headings/HeadingHtmlDeserializer.js.map +0 -1
  724. package/dist/production/plugins/element/headings/withHeadings.cjs.map +0 -1
  725. package/dist/production/plugins/element/headings/withHeadings.js.map +0 -1
  726. package/dist/production/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +0 -1
  727. package/dist/production/plugins/element/horizonalRules/HorizontalRuleElement.js.map +0 -1
  728. package/dist/production/plugins/element/horizonalRules/withHorizontalRules.cjs.map +0 -1
  729. package/dist/production/plugins/element/horizonalRules/withHorizontalRules.js.map +0 -1
  730. package/dist/production/plugins/element/lists/ListElement.cjs.map +0 -1
  731. package/dist/production/plugins/element/lists/ListElement.js.map +0 -1
  732. package/dist/production/plugins/element/lists/ListHtmlDeserializer.cjs.map +0 -1
  733. package/dist/production/plugins/element/lists/ListHtmlDeserializer.js.map +0 -1
  734. package/dist/production/plugins/element/lists/ListItemElement.cjs.map +0 -1
  735. package/dist/production/plugins/element/lists/ListItemElement.js.map +0 -1
  736. package/dist/production/plugins/element/lists/OrderedListElement.cjs.map +0 -1
  737. package/dist/production/plugins/element/lists/OrderedListElement.js.map +0 -1
  738. package/dist/production/plugins/element/lists/UnorderedListElement.cjs.map +0 -1
  739. package/dist/production/plugins/element/lists/UnorderedListElement.js.map +0 -1
  740. package/dist/production/plugins/element/lists/transforms/dedentListItem.cjs.map +0 -1
  741. package/dist/production/plugins/element/lists/transforms/dedentListItem.js.map +0 -1
  742. package/dist/production/plugins/element/lists/transforms/indentListItem.cjs.map +0 -1
  743. package/dist/production/plugins/element/lists/transforms/indentListItem.js.map +0 -1
  744. package/dist/production/plugins/element/lists/transforms/normalizeListElement.cjs.map +0 -1
  745. package/dist/production/plugins/element/lists/transforms/normalizeListElement.js.map +0 -1
  746. package/dist/production/plugins/element/lists/transforms/toggleListElement.cjs.map +0 -1
  747. package/dist/production/plugins/element/lists/transforms/toggleListElement.js.map +0 -1
  748. package/dist/production/plugins/element/lists/withLists.cjs.map +0 -1
  749. package/dist/production/plugins/element/lists/withLists.js.map +0 -1
  750. package/dist/production/plugins/element/paragraphs/ParagraphElement.cjs.map +0 -1
  751. package/dist/production/plugins/element/paragraphs/ParagraphElement.js.map +0 -1
  752. package/dist/production/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +0 -1
  753. package/dist/production/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +0 -1
  754. package/dist/production/plugins/element/paragraphs/withParagraphs.cjs.map +0 -1
  755. package/dist/production/plugins/element/paragraphs/withParagraphs.js.map +0 -1
  756. package/dist/production/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +0 -1
  757. package/dist/production/plugins/element/scrollTargets/ScrollTargetElement.js.map +0 -1
  758. package/dist/production/plugins/element/scrollTargets/withScrollTargets.cjs.map +0 -1
  759. package/dist/production/plugins/element/scrollTargets/withScrollTargets.js.map +0 -1
  760. package/dist/production/plugins/element/tables/TableCellElement.cjs.map +0 -1
  761. package/dist/production/plugins/element/tables/TableCellElement.js.map +0 -1
  762. package/dist/production/plugins/element/tables/TableElement.cjs.map +0 -1
  763. package/dist/production/plugins/element/tables/TableElement.js.map +0 -1
  764. package/dist/production/plugins/element/tables/TableElementSelection.cjs.map +0 -1
  765. package/dist/production/plugins/element/tables/TableElementSelection.js.map +0 -1
  766. package/dist/production/plugins/element/tables/TableModifications.cjs +0 -134
  767. package/dist/production/plugins/element/tables/TableModifications.cjs.map +0 -1
  768. package/dist/production/plugins/element/tables/TableModifications.js +0 -134
  769. package/dist/production/plugins/element/tables/TableModifications.js.map +0 -1
  770. package/dist/production/plugins/element/tables/TableRowElement.cjs.map +0 -1
  771. package/dist/production/plugins/element/tables/TableRowElement.js.map +0 -1
  772. package/dist/production/plugins/element/tables/gaugeTableColumnCount.cjs.map +0 -1
  773. package/dist/production/plugins/element/tables/gaugeTableColumnCount.js.map +0 -1
  774. package/dist/production/plugins/element/tables/withTables.cjs.map +0 -1
  775. package/dist/production/plugins/element/tables/withTables.js.map +0 -1
  776. package/dist/production/plugins/text/bold/boldMark.cjs +0 -13
  777. package/dist/production/plugins/text/bold/boldMark.cjs.map +0 -1
  778. package/dist/production/plugins/text/bold/boldMark.js.map +0 -1
  779. package/dist/production/plugins/text/bold/withBold.cjs.map +0 -1
  780. package/dist/production/plugins/text/bold/withBold.js.map +0 -1
  781. package/dist/production/plugins/text/code/codeMark.cjs +0 -13
  782. package/dist/production/plugins/text/code/codeMark.cjs.map +0 -1
  783. package/dist/production/plugins/text/code/codeMark.js.map +0 -1
  784. package/dist/production/plugins/text/code/withCode.cjs.map +0 -1
  785. package/dist/production/plugins/text/code/withCode.js.map +0 -1
  786. package/dist/production/plugins/text/highlight/highlightMark.cjs +0 -13
  787. package/dist/production/plugins/text/highlight/highlightMark.cjs.map +0 -1
  788. package/dist/production/plugins/text/highlight/highlightMark.js.map +0 -1
  789. package/dist/production/plugins/text/highlight/withHighlight.cjs.map +0 -1
  790. package/dist/production/plugins/text/highlight/withHighlight.js.map +0 -1
  791. package/dist/production/plugins/text/italic/italicMark.cjs +0 -13
  792. package/dist/production/plugins/text/italic/italicMark.cjs.map +0 -1
  793. package/dist/production/plugins/text/italic/italicMark.js.map +0 -1
  794. package/dist/production/plugins/text/italic/withItalic.cjs.map +0 -1
  795. package/dist/production/plugins/text/italic/withItalic.js.map +0 -1
  796. package/dist/production/plugins/text/newline/withNewline.cjs.map +0 -1
  797. package/dist/production/plugins/text/newline/withNewline.js.map +0 -1
  798. package/dist/production/plugins/text/strikeThrough/strikeThroughMark.cjs +0 -13
  799. package/dist/production/plugins/text/strikeThrough/strikeThroughMark.cjs.map +0 -1
  800. package/dist/production/plugins/text/strikeThrough/strikeThroughMark.js.map +0 -1
  801. package/dist/production/plugins/text/strikeThrough/withStrikeThrough.cjs.map +0 -1
  802. package/dist/production/plugins/text/strikeThrough/withStrikeThrough.js.map +0 -1
  803. package/dist/production/plugins/text/underline/underlineMark.cjs +0 -13
  804. package/dist/production/plugins/text/underline/underlineMark.cjs.map +0 -1
  805. package/dist/production/plugins/text/underline/underlineMark.js.map +0 -1
  806. package/dist/production/plugins/text/underline/withUnderline.cjs.map +0 -1
  807. package/dist/production/plugins/text/underline/withUnderline.js.map +0 -1
  808. package/dist/production/slate-reexport.cjs.map +0 -1
  809. package/dist/production/slate-reexport.js.map +0 -1
  810. /package/dist/development/{editor → src/editor}/createEditor.js +0 -0
  811. /package/dist/development/{editor → src/editor}/createEditorWithEssentials.js +0 -0
  812. /package/dist/development/{editor → src/editor}/index.cjs +0 -0
  813. /package/dist/development/{editor → src/editor}/index.js +0 -0
  814. /package/dist/development/{editor → src/editor}/methods/addMarks.cjs +0 -0
  815. /package/dist/development/{editor → src/editor}/methods/addMarks.js +0 -0
  816. /package/dist/development/{editor → src/editor}/methods/canToggleMark.cjs +0 -0
  817. /package/dist/development/{editor → src/editor}/methods/canToggleMark.js +0 -0
  818. /package/dist/development/{editor → src/editor}/methods/closest.cjs +0 -0
  819. /package/dist/development/{editor → src/editor}/methods/closest.js +0 -0
  820. /package/dist/development/{editor → src/editor}/methods/closestBlockEntry.cjs +0 -0
  821. /package/dist/development/{editor → src/editor}/methods/closestBlockEntry.js +0 -0
  822. /package/dist/development/{editor → src/editor}/methods/closestViableBlockContainerEntry.cjs +0 -0
  823. /package/dist/development/{editor → src/editor}/methods/closestViableBlockContainerEntry.js +0 -0
  824. /package/dist/development/{editor → src/editor}/methods/ejectElement.cjs +0 -0
  825. /package/dist/development/{editor → src/editor}/methods/ejectElement.js +0 -0
  826. /package/dist/development/{editor → src/editor}/methods/elementToSpecifics.cjs +0 -0
  827. /package/dist/development/{editor → src/editor}/methods/elementToSpecifics.js +0 -0
  828. /package/dist/development/{editor → src/editor}/methods/getElementDataAttributes.cjs +0 -0
  829. /package/dist/development/{editor → src/editor}/methods/getElementDataAttributes.js +0 -0
  830. /package/dist/development/{editor → src/editor}/methods/getPreviousSibling.cjs +0 -0
  831. /package/dist/development/{editor → src/editor}/methods/getPreviousSibling.js +0 -0
  832. /package/dist/development/{editor → src/editor}/methods/hasMarks.cjs +0 -0
  833. /package/dist/development/{editor → src/editor}/methods/hasMarks.js +0 -0
  834. /package/dist/development/{editor → src/editor}/methods/hasParentOfType.cjs +0 -0
  835. /package/dist/development/{editor → src/editor}/methods/hasParentOfType.js +0 -0
  836. /package/dist/development/{editor → src/editor}/methods/isElementType.cjs +0 -0
  837. /package/dist/development/{editor → src/editor}/methods/isElementType.js +0 -0
  838. /package/dist/development/{editor → src/editor}/methods/permissivelyDeserializeNodes.cjs +0 -0
  839. /package/dist/development/{editor → src/editor}/methods/permissivelyDeserializeNodes.js +0 -0
  840. /package/dist/development/{editor → src/editor}/methods/removeMarks.cjs +0 -0
  841. /package/dist/development/{editor → src/editor}/methods/removeMarks.js +0 -0
  842. /package/dist/development/{editor → src/editor}/methods/serializeNodes.cjs +0 -0
  843. /package/dist/development/{editor → src/editor}/methods/serializeNodes.js +0 -0
  844. /package/dist/development/{editor → src/editor}/methods/strictlyDeserializeNodes.cjs +0 -0
  845. /package/dist/development/{editor → src/editor}/methods/strictlyDeserializeNodes.js +0 -0
  846. /package/dist/development/{editor → src/editor}/methods/textToSpecifics.cjs +0 -0
  847. /package/dist/development/{editor → src/editor}/methods/textToSpecifics.js +0 -0
  848. /package/dist/development/{editor → src/editor}/methods/toLatestFormat.cjs +0 -0
  849. /package/dist/development/{editor → src/editor}/methods/toLatestFormat.js +0 -0
  850. /package/dist/development/{editor → src/editor}/methods/topLevelNodes.cjs +0 -0
  851. /package/dist/development/{editor → src/editor}/methods/topLevelNodes.js +0 -0
  852. /package/dist/development/{internal → src/internal}/components/DefaultElement.js +0 -0
  853. /package/dist/development/{internal → src/internal}/hooks/useRichTextFieldNodes.cjs +0 -0
  854. /package/dist/development/{internal → src/internal}/hooks/useRichTextFieldNodes.js +0 -0
  855. /package/dist/development/{internal → src/internal}/utils/EditorPasteUtils.cjs +0 -0
  856. /package/dist/development/{internal → src/internal}/utils/EditorPasteUtils.js +0 -0
  857. /package/dist/development/{internal → src/internal}/utils/parseUrl.cjs +0 -0
  858. /package/dist/development/{internal → src/internal}/utils/parseUrl.js +0 -0
  859. /package/dist/development/{plugins → src/plugins}/attributes/alignment/alignButton.cjs +0 -0
  860. /package/dist/development/{plugins → src/plugins}/attributes/alignment/alignButton.js +0 -0
  861. /package/dist/development/{plugins → src/plugins}/behaviour/paste/HtmlDeserializer.cjs +0 -0
  862. /package/dist/development/{plugins → src/plugins}/behaviour/paste/HtmlDeserializer.js +0 -0
  863. /package/dist/development/{plugins → src/plugins}/behaviour/paste/createMarkHtmlDeserializer.cjs +0 -0
  864. /package/dist/development/{plugins → src/plugins}/behaviour/paste/createMarkHtmlDeserializer.js +0 -0
  865. /package/dist/development/{plugins → src/plugins}/behaviour/paste/withPaste.cjs +0 -0
  866. /package/dist/development/{plugins → src/plugins}/behaviour/paste/withPaste.js +0 -0
  867. /package/dist/development/{plugins → src/plugins}/element/anchors/AnchorElement.cjs +0 -0
  868. /package/dist/development/{plugins → src/plugins}/element/anchors/AnchorElement.js +0 -0
  869. /package/dist/development/{plugins → src/plugins}/element/anchors/AnchorHtmlDeserializer.cjs +0 -0
  870. /package/dist/development/{plugins → src/plugins}/element/anchors/AnchorHtmlDeserializer.js +0 -0
  871. /package/dist/development/{plugins → src/plugins}/element/anchors/AnchorModifications.cjs +0 -0
  872. /package/dist/development/{plugins → src/plugins}/element/anchors/AnchorModifications.js +0 -0
  873. /package/dist/development/{plugins → src/plugins}/element/anchors/withAnchors.cjs +0 -0
  874. /package/dist/development/{plugins → src/plugins}/element/anchors/withAnchors.js +0 -0
  875. /package/dist/development/{plugins → src/plugins}/element/headings/HeadingElement.cjs +0 -0
  876. /package/dist/development/{plugins → src/plugins}/element/headings/HeadingElement.js +0 -0
  877. /package/dist/development/{plugins → src/plugins}/element/headings/HeadingHtmlDeserializer.cjs +0 -0
  878. /package/dist/development/{plugins → src/plugins}/element/headings/HeadingHtmlDeserializer.js +0 -0
  879. /package/dist/development/{plugins → src/plugins}/element/headings/withHeadings.cjs +0 -0
  880. /package/dist/development/{plugins → src/plugins}/element/headings/withHeadings.js +0 -0
  881. /package/dist/development/{plugins → src/plugins}/element/horizonalRules/HorizontalRuleElement.cjs +0 -0
  882. /package/dist/development/{plugins → src/plugins}/element/horizonalRules/HorizontalRuleElement.js +0 -0
  883. /package/dist/development/{plugins → src/plugins}/element/horizonalRules/withHorizontalRules.cjs +0 -0
  884. /package/dist/development/{plugins → src/plugins}/element/horizonalRules/withHorizontalRules.js +0 -0
  885. /package/dist/development/{plugins → src/plugins}/element/lists/ListElement.cjs +0 -0
  886. /package/dist/development/{plugins → src/plugins}/element/lists/ListElement.js +0 -0
  887. /package/dist/development/{plugins → src/plugins}/element/lists/ListHtmlDeserializer.cjs +0 -0
  888. /package/dist/development/{plugins → src/plugins}/element/lists/ListHtmlDeserializer.js +0 -0
  889. /package/dist/development/{plugins → src/plugins}/element/lists/ListItemElement.cjs +0 -0
  890. /package/dist/development/{plugins → src/plugins}/element/lists/ListItemElement.js +0 -0
  891. /package/dist/development/{plugins → src/plugins}/element/lists/OrderedListElement.cjs +0 -0
  892. /package/dist/development/{plugins → src/plugins}/element/lists/OrderedListElement.js +0 -0
  893. /package/dist/development/{plugins → src/plugins}/element/lists/UnorderedListElement.cjs +0 -0
  894. /package/dist/development/{plugins → src/plugins}/element/lists/UnorderedListElement.js +0 -0
  895. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/dedentListItem.cjs +0 -0
  896. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/dedentListItem.js +0 -0
  897. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/indentListItem.cjs +0 -0
  898. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/indentListItem.js +0 -0
  899. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/normalizeListElement.cjs +0 -0
  900. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/normalizeListElement.js +0 -0
  901. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/toggleListElement.cjs +0 -0
  902. /package/dist/development/{plugins → src/plugins}/element/lists/transforms/toggleListElement.js +0 -0
  903. /package/dist/development/{plugins → src/plugins}/element/lists/withLists.cjs +0 -0
  904. /package/dist/development/{plugins → src/plugins}/element/lists/withLists.js +0 -0
  905. /package/dist/development/{plugins → src/plugins}/element/paragraphs/ParagraphElement.cjs +0 -0
  906. /package/dist/development/{plugins → src/plugins}/element/paragraphs/ParagraphElement.js +0 -0
  907. /package/dist/development/{plugins → src/plugins}/element/paragraphs/ParagraphHtmlDeserializer.cjs +0 -0
  908. /package/dist/development/{plugins → src/plugins}/element/paragraphs/ParagraphHtmlDeserializer.js +0 -0
  909. /package/dist/development/{plugins → src/plugins}/element/paragraphs/withParagraphs.cjs +0 -0
  910. /package/dist/development/{plugins → src/plugins}/element/paragraphs/withParagraphs.js +0 -0
  911. /package/dist/development/{plugins → src/plugins}/element/scrollTargets/ScrollTargetElement.cjs +0 -0
  912. /package/dist/development/{plugins → src/plugins}/element/scrollTargets/ScrollTargetElement.js +0 -0
  913. /package/dist/development/{plugins → src/plugins}/element/scrollTargets/withScrollTargets.cjs +0 -0
  914. /package/dist/development/{plugins → src/plugins}/element/scrollTargets/withScrollTargets.js +0 -0
  915. /package/dist/development/{plugins → src/plugins}/element/tables/TableCellElement.cjs +0 -0
  916. /package/dist/development/{plugins → src/plugins}/element/tables/TableCellElement.js +0 -0
  917. /package/dist/development/{plugins → src/plugins}/element/tables/TableElement.cjs +0 -0
  918. /package/dist/development/{plugins → src/plugins}/element/tables/TableElement.js +0 -0
  919. /package/dist/development/{plugins → src/plugins}/element/tables/TableElementSelection.cjs +0 -0
  920. /package/dist/development/{plugins → src/plugins}/element/tables/TableElementSelection.js +0 -0
  921. /package/dist/development/{plugins → src/plugins}/element/tables/TableRowElement.cjs +0 -0
  922. /package/dist/development/{plugins → src/plugins}/element/tables/TableRowElement.js +0 -0
  923. /package/dist/development/{plugins → src/plugins}/element/tables/gaugeTableColumnCount.cjs +0 -0
  924. /package/dist/development/{plugins → src/plugins}/element/tables/gaugeTableColumnCount.js +0 -0
  925. /package/dist/development/{plugins → src/plugins}/element/tables/withTables.cjs +0 -0
  926. /package/dist/development/{plugins → src/plugins}/element/tables/withTables.js +0 -0
  927. /package/dist/development/{plugins → src/plugins}/text/bold/boldMark.js +0 -0
  928. /package/dist/development/{plugins → src/plugins}/text/bold/withBold.cjs +0 -0
  929. /package/dist/development/{plugins → src/plugins}/text/bold/withBold.js +0 -0
  930. /package/dist/development/{plugins → src/plugins}/text/code/codeMark.js +0 -0
  931. /package/dist/development/{plugins → src/plugins}/text/code/withCode.cjs +0 -0
  932. /package/dist/development/{plugins → src/plugins}/text/code/withCode.js +0 -0
  933. /package/dist/development/{plugins → src/plugins}/text/highlight/highlightMark.js +0 -0
  934. /package/dist/development/{plugins → src/plugins}/text/highlight/withHighlight.cjs +0 -0
  935. /package/dist/development/{plugins → src/plugins}/text/highlight/withHighlight.js +0 -0
  936. /package/dist/development/{plugins → src/plugins}/text/italic/italicMark.js +0 -0
  937. /package/dist/development/{plugins → src/plugins}/text/italic/withItalic.cjs +0 -0
  938. /package/dist/development/{plugins → src/plugins}/text/italic/withItalic.js +0 -0
  939. /package/dist/development/{plugins → src/plugins}/text/newline/withNewline.cjs +0 -0
  940. /package/dist/development/{plugins → src/plugins}/text/newline/withNewline.js +0 -0
  941. /package/dist/development/{plugins → src/plugins}/text/strikeThrough/strikeThroughMark.js +0 -0
  942. /package/dist/development/{plugins → src/plugins}/text/strikeThrough/withStrikeThrough.cjs +0 -0
  943. /package/dist/development/{plugins → src/plugins}/text/strikeThrough/withStrikeThrough.js +0 -0
  944. /package/dist/development/{plugins → src/plugins}/text/underline/underlineMark.js +0 -0
  945. /package/dist/development/{plugins → src/plugins}/text/underline/withUnderline.cjs +0 -0
  946. /package/dist/development/{plugins → src/plugins}/text/underline/withUnderline.js +0 -0
  947. /package/dist/development/{slate-reexport.cjs → src/slate-reexport.cjs} +0 -0
  948. /package/dist/development/{slate-reexport.js → src/slate-reexport.js} +0 -0
  949. /package/dist/{development → production/src}/components/triggers/EditorElementTrigger.cjs +0 -0
  950. /package/dist/{development → production/src}/components/triggers/EditorElementTrigger.js +0 -0
  951. /package/dist/{development → production/src}/components/triggers/EditorGenericTrigger.cjs +0 -0
  952. /package/dist/{development → production/src}/components/triggers/EditorGenericTrigger.js +0 -0
  953. /package/dist/{development → production/src}/components/triggers/EditorMarkTrigger.cjs +0 -0
  954. /package/dist/{development → production/src}/components/triggers/EditorMarkTrigger.js +0 -0
  955. /package/dist/{development → production/src}/components/triggers/EditorWrapNodeTrigger.cjs +0 -0
  956. /package/dist/{development → production/src}/components/triggers/EditorWrapNodeTrigger.js +0 -0
  957. /package/dist/production/{editor → src/editor}/createEditor.js +0 -0
  958. /package/dist/production/{editor → src/editor}/createEditorWithEssentials.js +0 -0
  959. /package/dist/production/{editor → src/editor}/index.cjs +0 -0
  960. /package/dist/production/{editor → src/editor}/index.js +0 -0
  961. /package/dist/production/{editor → src/editor}/methods/addMarks.cjs +0 -0
  962. /package/dist/production/{editor → src/editor}/methods/addMarks.js +0 -0
  963. /package/dist/production/{editor → src/editor}/methods/canToggleMark.cjs +0 -0
  964. /package/dist/production/{editor → src/editor}/methods/canToggleMark.js +0 -0
  965. /package/dist/production/{editor → src/editor}/methods/closest.cjs +0 -0
  966. /package/dist/production/{editor → src/editor}/methods/closest.js +0 -0
  967. /package/dist/production/{editor → src/editor}/methods/closestBlockEntry.cjs +0 -0
  968. /package/dist/production/{editor → src/editor}/methods/closestBlockEntry.js +0 -0
  969. /package/dist/production/{editor → src/editor}/methods/closestViableBlockContainerEntry.cjs +0 -0
  970. /package/dist/production/{editor → src/editor}/methods/closestViableBlockContainerEntry.js +0 -0
  971. /package/dist/production/{editor → src/editor}/methods/ejectElement.cjs +0 -0
  972. /package/dist/production/{editor → src/editor}/methods/ejectElement.js +0 -0
  973. /package/dist/production/{editor → src/editor}/methods/elementToSpecifics.cjs +0 -0
  974. /package/dist/production/{editor → src/editor}/methods/elementToSpecifics.js +0 -0
  975. /package/dist/production/{editor → src/editor}/methods/getElementDataAttributes.cjs +0 -0
  976. /package/dist/production/{editor → src/editor}/methods/getElementDataAttributes.js +0 -0
  977. /package/dist/production/{editor → src/editor}/methods/getPreviousSibling.cjs +0 -0
  978. /package/dist/production/{editor → src/editor}/methods/getPreviousSibling.js +0 -0
  979. /package/dist/production/{editor → src/editor}/methods/hasMarks.cjs +0 -0
  980. /package/dist/production/{editor → src/editor}/methods/hasMarks.js +0 -0
  981. /package/dist/production/{editor → src/editor}/methods/hasParentOfType.cjs +0 -0
  982. /package/dist/production/{editor → src/editor}/methods/hasParentOfType.js +0 -0
  983. /package/dist/production/{editor → src/editor}/methods/isElementType.cjs +0 -0
  984. /package/dist/production/{editor → src/editor}/methods/isElementType.js +0 -0
  985. /package/dist/production/{editor → src/editor}/methods/permissivelyDeserializeNodes.cjs +0 -0
  986. /package/dist/production/{editor → src/editor}/methods/permissivelyDeserializeNodes.js +0 -0
  987. /package/dist/production/{editor → src/editor}/methods/removeMarks.cjs +0 -0
  988. /package/dist/production/{editor → src/editor}/methods/removeMarks.js +0 -0
  989. /package/dist/production/{editor → src/editor}/methods/serializeNodes.cjs +0 -0
  990. /package/dist/production/{editor → src/editor}/methods/serializeNodes.js +0 -0
  991. /package/dist/production/{editor → src/editor}/methods/strictlyDeserializeNodes.cjs +0 -0
  992. /package/dist/production/{editor → src/editor}/methods/strictlyDeserializeNodes.js +0 -0
  993. /package/dist/production/{editor → src/editor}/methods/textToSpecifics.cjs +0 -0
  994. /package/dist/production/{editor → src/editor}/methods/textToSpecifics.js +0 -0
  995. /package/dist/production/{editor → src/editor}/methods/toLatestFormat.cjs +0 -0
  996. /package/dist/production/{editor → src/editor}/methods/toLatestFormat.js +0 -0
  997. /package/dist/production/{editor → src/editor}/methods/topLevelNodes.cjs +0 -0
  998. /package/dist/production/{editor → src/editor}/methods/topLevelNodes.js +0 -0
  999. /package/dist/production/{internal → src/internal}/components/DefaultElement.js +0 -0
  1000. /package/dist/production/{internal → src/internal}/hooks/useRichTextFieldNodes.cjs +0 -0
  1001. /package/dist/production/{internal → src/internal}/hooks/useRichTextFieldNodes.js +0 -0
  1002. /package/dist/production/{internal → src/internal}/utils/EditorPasteUtils.cjs +0 -0
  1003. /package/dist/production/{internal → src/internal}/utils/EditorPasteUtils.js +0 -0
  1004. /package/dist/production/{internal → src/internal}/utils/parseUrl.cjs +0 -0
  1005. /package/dist/production/{internal → src/internal}/utils/parseUrl.js +0 -0
  1006. /package/dist/production/{plugins → src/plugins}/attributes/alignment/alignButton.cjs +0 -0
  1007. /package/dist/production/{plugins → src/plugins}/attributes/alignment/alignButton.js +0 -0
  1008. /package/dist/production/{plugins → src/plugins}/behaviour/paste/HtmlDeserializer.cjs +0 -0
  1009. /package/dist/production/{plugins → src/plugins}/behaviour/paste/HtmlDeserializer.js +0 -0
  1010. /package/dist/production/{plugins → src/plugins}/behaviour/paste/createMarkHtmlDeserializer.cjs +0 -0
  1011. /package/dist/production/{plugins → src/plugins}/behaviour/paste/createMarkHtmlDeserializer.js +0 -0
  1012. /package/dist/production/{plugins → src/plugins}/behaviour/paste/withPaste.cjs +0 -0
  1013. /package/dist/production/{plugins → src/plugins}/behaviour/paste/withPaste.js +0 -0
  1014. /package/dist/production/{plugins → src/plugins}/element/anchors/AnchorElement.cjs +0 -0
  1015. /package/dist/production/{plugins → src/plugins}/element/anchors/AnchorElement.js +0 -0
  1016. /package/dist/production/{plugins → src/plugins}/element/anchors/AnchorHtmlDeserializer.cjs +0 -0
  1017. /package/dist/production/{plugins → src/plugins}/element/anchors/AnchorHtmlDeserializer.js +0 -0
  1018. /package/dist/production/{plugins → src/plugins}/element/anchors/AnchorModifications.cjs +0 -0
  1019. /package/dist/production/{plugins → src/plugins}/element/anchors/AnchorModifications.js +0 -0
  1020. /package/dist/production/{plugins → src/plugins}/element/anchors/withAnchors.cjs +0 -0
  1021. /package/dist/production/{plugins → src/plugins}/element/anchors/withAnchors.js +0 -0
  1022. /package/dist/production/{plugins → src/plugins}/element/headings/HeadingElement.cjs +0 -0
  1023. /package/dist/production/{plugins → src/plugins}/element/headings/HeadingElement.js +0 -0
  1024. /package/dist/production/{plugins → src/plugins}/element/headings/HeadingHtmlDeserializer.cjs +0 -0
  1025. /package/dist/production/{plugins → src/plugins}/element/headings/HeadingHtmlDeserializer.js +0 -0
  1026. /package/dist/production/{plugins → src/plugins}/element/headings/withHeadings.cjs +0 -0
  1027. /package/dist/production/{plugins → src/plugins}/element/headings/withHeadings.js +0 -0
  1028. /package/dist/production/{plugins → src/plugins}/element/horizonalRules/HorizontalRuleElement.cjs +0 -0
  1029. /package/dist/production/{plugins → src/plugins}/element/horizonalRules/HorizontalRuleElement.js +0 -0
  1030. /package/dist/production/{plugins → src/plugins}/element/horizonalRules/withHorizontalRules.cjs +0 -0
  1031. /package/dist/production/{plugins → src/plugins}/element/horizonalRules/withHorizontalRules.js +0 -0
  1032. /package/dist/production/{plugins → src/plugins}/element/lists/ListElement.cjs +0 -0
  1033. /package/dist/production/{plugins → src/plugins}/element/lists/ListElement.js +0 -0
  1034. /package/dist/production/{plugins → src/plugins}/element/lists/ListHtmlDeserializer.cjs +0 -0
  1035. /package/dist/production/{plugins → src/plugins}/element/lists/ListHtmlDeserializer.js +0 -0
  1036. /package/dist/production/{plugins → src/plugins}/element/lists/ListItemElement.cjs +0 -0
  1037. /package/dist/production/{plugins → src/plugins}/element/lists/ListItemElement.js +0 -0
  1038. /package/dist/production/{plugins → src/plugins}/element/lists/OrderedListElement.cjs +0 -0
  1039. /package/dist/production/{plugins → src/plugins}/element/lists/OrderedListElement.js +0 -0
  1040. /package/dist/production/{plugins → src/plugins}/element/lists/UnorderedListElement.cjs +0 -0
  1041. /package/dist/production/{plugins → src/plugins}/element/lists/UnorderedListElement.js +0 -0
  1042. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/dedentListItem.cjs +0 -0
  1043. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/dedentListItem.js +0 -0
  1044. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/indentListItem.cjs +0 -0
  1045. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/indentListItem.js +0 -0
  1046. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/normalizeListElement.cjs +0 -0
  1047. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/normalizeListElement.js +0 -0
  1048. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/toggleListElement.cjs +0 -0
  1049. /package/dist/production/{plugins → src/plugins}/element/lists/transforms/toggleListElement.js +0 -0
  1050. /package/dist/production/{plugins → src/plugins}/element/lists/withLists.cjs +0 -0
  1051. /package/dist/production/{plugins → src/plugins}/element/lists/withLists.js +0 -0
  1052. /package/dist/production/{plugins → src/plugins}/element/paragraphs/ParagraphElement.cjs +0 -0
  1053. /package/dist/production/{plugins → src/plugins}/element/paragraphs/ParagraphElement.js +0 -0
  1054. /package/dist/production/{plugins → src/plugins}/element/paragraphs/ParagraphHtmlDeserializer.cjs +0 -0
  1055. /package/dist/production/{plugins → src/plugins}/element/paragraphs/ParagraphHtmlDeserializer.js +0 -0
  1056. /package/dist/production/{plugins → src/plugins}/element/paragraphs/withParagraphs.cjs +0 -0
  1057. /package/dist/production/{plugins → src/plugins}/element/paragraphs/withParagraphs.js +0 -0
  1058. /package/dist/production/{plugins → src/plugins}/element/scrollTargets/ScrollTargetElement.cjs +0 -0
  1059. /package/dist/production/{plugins → src/plugins}/element/scrollTargets/ScrollTargetElement.js +0 -0
  1060. /package/dist/production/{plugins → src/plugins}/element/scrollTargets/withScrollTargets.cjs +0 -0
  1061. /package/dist/production/{plugins → src/plugins}/element/scrollTargets/withScrollTargets.js +0 -0
  1062. /package/dist/production/{plugins → src/plugins}/element/tables/TableCellElement.cjs +0 -0
  1063. /package/dist/production/{plugins → src/plugins}/element/tables/TableCellElement.js +0 -0
  1064. /package/dist/production/{plugins → src/plugins}/element/tables/TableElement.cjs +0 -0
  1065. /package/dist/production/{plugins → src/plugins}/element/tables/TableElement.js +0 -0
  1066. /package/dist/production/{plugins → src/plugins}/element/tables/TableElementSelection.cjs +0 -0
  1067. /package/dist/production/{plugins → src/plugins}/element/tables/TableElementSelection.js +0 -0
  1068. /package/dist/production/{plugins → src/plugins}/element/tables/TableRowElement.cjs +0 -0
  1069. /package/dist/production/{plugins → src/plugins}/element/tables/TableRowElement.js +0 -0
  1070. /package/dist/production/{plugins → src/plugins}/element/tables/gaugeTableColumnCount.cjs +0 -0
  1071. /package/dist/production/{plugins → src/plugins}/element/tables/gaugeTableColumnCount.js +0 -0
  1072. /package/dist/production/{plugins → src/plugins}/element/tables/withTables.cjs +0 -0
  1073. /package/dist/production/{plugins → src/plugins}/element/tables/withTables.js +0 -0
  1074. /package/dist/production/{plugins → src/plugins}/text/bold/boldMark.js +0 -0
  1075. /package/dist/production/{plugins → src/plugins}/text/bold/withBold.cjs +0 -0
  1076. /package/dist/production/{plugins → src/plugins}/text/bold/withBold.js +0 -0
  1077. /package/dist/production/{plugins → src/plugins}/text/code/codeMark.js +0 -0
  1078. /package/dist/production/{plugins → src/plugins}/text/code/withCode.cjs +0 -0
  1079. /package/dist/production/{plugins → src/plugins}/text/code/withCode.js +0 -0
  1080. /package/dist/production/{plugins → src/plugins}/text/highlight/highlightMark.js +0 -0
  1081. /package/dist/production/{plugins → src/plugins}/text/highlight/withHighlight.cjs +0 -0
  1082. /package/dist/production/{plugins → src/plugins}/text/highlight/withHighlight.js +0 -0
  1083. /package/dist/production/{plugins → src/plugins}/text/italic/italicMark.js +0 -0
  1084. /package/dist/production/{plugins → src/plugins}/text/italic/withItalic.cjs +0 -0
  1085. /package/dist/production/{plugins → src/plugins}/text/italic/withItalic.js +0 -0
  1086. /package/dist/production/{plugins → src/plugins}/text/newline/withNewline.cjs +0 -0
  1087. /package/dist/production/{plugins → src/plugins}/text/newline/withNewline.js +0 -0
  1088. /package/dist/production/{plugins → src/plugins}/text/strikeThrough/strikeThroughMark.js +0 -0
  1089. /package/dist/production/{plugins → src/plugins}/text/strikeThrough/withStrikeThrough.cjs +0 -0
  1090. /package/dist/production/{plugins → src/plugins}/text/strikeThrough/withStrikeThrough.js +0 -0
  1091. /package/dist/production/{plugins → src/plugins}/text/underline/underlineMark.js +0 -0
  1092. /package/dist/production/{plugins → src/plugins}/text/underline/withUnderline.cjs +0 -0
  1093. /package/dist/production/{plugins → src/plugins}/text/underline/withUnderline.js +0 -0
  1094. /package/dist/production/{slate-reexport.cjs → src/slate-reexport.cjs} +0 -0
  1095. /package/dist/production/{slate-reexport.js → src/slate-reexport.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../src/types/editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,eAAe,EAAE,aAAa,IAAI,kBAAkB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAC7G,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,IAAI,YAAY,EAAE,IAAI,IAAI,SAAS,EAAE,SAAS,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,OAAO,CAAA;AACrI,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACtE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACjE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAE9E,MAAM,MAAM,2BAA2B,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,YAAY,CAAC;AAEnF,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,OAAO,KAAK,CAAA;IACnB,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gBAAgB,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAA;IACpD,oBAAoB,EAAE,2BAA2B,CAAA;IACjD,mBAAmB,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,KAAK,IAAI,CAAA;IAE9E,cAAc,EAAE,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,aAAa,CAAC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AC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAClB;AAED,MAAM,MAAM,6BAA6B,GACtC;IAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAC7C;IAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAC/C,IAAI,CAAA;AAEP,MAAM,WAAW,sBAAsB;IACtC,iBAAiB,CAAC,EAAE,CACnB,IAAI,EAAE;QACL,YAAY,EAAE,gBAAgB,CAAA;QAC9B,OAAO,EAAE,WAAW,CAAA;QACpB,IAAI,EAAE,4BAA4B,CAAA;QAClC,mBAAmB,EAAE,yBAAyB,CAAA;KAC9C,KACG,YAAY,EAAE,GAAG,YAAY,GAAG,IAAI,CAAA;IACzC,kBAAkB,CAAC,EAAE,CACpB,IAAI,EAAE;QACL,YAAY,EAAE,gBAAgB,CAAA;QAC9B,OAAO,EAAE,WAAW,CAAA;QACpB,IAAI,EAAE,4BAA4B,CAAA;QAClC,mBAAmB,EAAE,yBAAyB,CAAA;KAC9C,KACG,UAAU,EAAE,GAAG,UAAU,GAAG,IAAI,CAAA;IACrC,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC/B,YAAY,EAAE,gBAAgB,CAAA;QAC9B,OAAO,EAAE,WAAW,CAAA;QACpB,mBAAmB,EAAE,yBAAyB,CAAA;KAC9C,KAAK,yBAAyB,CAAA;IAC/B,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC7B,YAAY,EAAE,gBAAgB,CAAA;QAC9B,QAAQ,EAAE,IAAI,EAAE,CAAA;QAChB,mBAAmB,EAAE,yBAAyB,CAAA;KAC9C,KAAK,6BAA6B,CAAA;CACnC"}
@@ -1,8 +1,7 @@
1
1
  import { Editor, Element, Path } from 'slate';
2
2
  import { FunctionComponent, ReactNode } from 'react';
3
3
  import { RenderElementProps, RenderLeafProps } from 'slate-react';
4
- import { Environment } from '@contember/react-binding';
5
- import { EntityAccessor } from '@contember/binding';
4
+ import { EntityAccessor, Environment } from '@contember/react-binding';
6
5
  export type EditorPluginWrapperProps = {
7
6
  children?: ReactNode;
8
7
  editor: Editor;
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/types/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,wBAAwB,GAAG;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAChF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG;IACvD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAC;QAAC,WAAW,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,cAAc,CAAA;KAAE,KAAK,IAAI,CAAA;IACxH,YAAY,CAAC,EAAE,iBAAiB,CAAC,wBAAwB,CAAC,CAAA;IAC1D,YAAY,CAAC,EAAE,iBAAiB,CAAC,wBAAwB,CAAC,CAAA;IAC1D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;KAAE,EAAE,WAAW,EAAE,WAAW,KAAK,SAAS,CAAA;CACvF,CAAA;AAGD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,OAAO,IAAI,i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version": "2.0.0-alpha.2",
4
+ "version": "2.0.0-alpha.21",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/production/index.js",
@@ -17,22 +17,15 @@
17
17
  "types": "./dist/types/index.d.ts",
18
18
  "development": "./dist/development/index.cjs",
19
19
  "production": "./dist/production/index.cjs",
20
+ "typescript": "./src/index.ts",
20
21
  "default": "./dist/production/index.cjs"
21
22
  }
22
23
  }
23
24
  },
24
- "files": [
25
- "dist/",
26
- "src/"
27
- ],
28
25
  "typings": "./dist/types/index.d.ts",
29
26
  "scripts": {
30
- "build": "yarn build:js:dev && yarn build:js:prod",
31
- "build:js:dev": "vite build --mode development",
32
- "build:js:prod": "vite build --mode production",
33
27
  "ae:build": "api-extractor run --local",
34
- "ae:test": "api-extractor run",
35
- "test": "vitest"
28
+ "ae:test": "api-extractor run"
36
29
  },
37
30
  "repository": {
38
31
  "type": "git",
@@ -40,23 +33,22 @@
40
33
  "directory": "packages/react-slate-editor-base"
41
34
  },
42
35
  "dependencies": {
43
- "@contember/binding": "2.0.0-alpha.2",
44
- "@contember/react-binding": "2.0.0-alpha.2",
45
- "@contember/utilities": "2.0.0-alpha.2",
46
- "@radix-ui/primitive": "^1.0.1",
47
- "@radix-ui/react-slot": "^1.0.2",
36
+ "@contember/react-binding": "2.0.0-alpha.21",
37
+ "@contember/utilities": "2.0.0-alpha.21",
38
+ "@radix-ui/primitive": "^1.1.0",
39
+ "@radix-ui/react-slot": "^1.1.0",
48
40
  "is-hotkey": "^0.2.0",
49
41
  "slate": "^0.103.0",
50
- "slate-history": "^0.100.0",
51
- "slate-react": "^0.102.0"
42
+ "slate-history": "^0.109.0",
43
+ "slate-react": "^0.110.1"
52
44
  },
53
45
  "peerDependencies": {
54
46
  "react": "^18 || ^19",
55
47
  "react-dom": "^18 || ^19"
56
48
  },
57
49
  "devDependencies": {
50
+ "@types/is-hotkey": "^0.1.10",
58
51
  "react": "^18.3.1",
59
52
  "react-dom": "^18.3.1"
60
- },
61
- "stableVersion": "0.0.0"
53
+ }
62
54
  }
@@ -28,7 +28,7 @@ export const RichTextEditor: FunctionComponent<RichTextEditorProps> = Component(
28
28
  () => QueryLanguage.desugarRelativeSingleField(props, environment),
29
29
  [environment, props],
30
30
  )
31
- const fieldAccessor = useMemo(() => entity.getRelativeSingleField<string>(desugaredField), [entity, desugaredField])
31
+ const fieldAccessor = useMemo(() => entity.getField<string>(desugaredField), [entity, desugaredField])
32
32
 
33
33
  // The cache is questionable, really.
34
34
  const [contemberFieldElementCache] = useState(() => new WeakMap<FieldAccessor<string>, SlateElement[]>())
@@ -91,7 +91,7 @@ export const RichTextEditor: FunctionComponent<RichTextEditorProps> = Component(
91
91
  const onChange = useCallback(
92
92
  (value: Descendant[]) => {
93
93
  getParent().batchUpdates(getAccessor => {
94
- const fieldAccessor = getAccessor().getRelativeSingleField(desugaredField)
94
+ const fieldAccessor = getAccessor().getField(desugaredField)
95
95
 
96
96
  if (SlateNode.string({ type: 'dummy', children: value }) === '' && fieldAccessor.valueOnServer === null) {
97
97
  fieldAccessor.updateValue(null)
@@ -100,7 +100,7 @@ export const RichTextEditor: FunctionComponent<RichTextEditorProps> = Component(
100
100
 
101
101
  if (SlateElement.isElement(value[0])) {
102
102
  fieldAccessor.updateValue(serialize(value[0].children))
103
- contemberFieldElementCache.set(getAccessor().getRelativeSingleField(desugaredField), value as SlateElement[])
103
+ contemberFieldElementCache.set(getAccessor().getField(desugaredField), value as SlateElement[])
104
104
  }
105
105
  })
106
106
  },
@@ -108,9 +108,9 @@ export const RichTextEditor: FunctionComponent<RichTextEditorProps> = Component(
108
108
  )
109
109
 
110
110
  return (
111
- <Slate editor={editor} initialValue={valueNodes} onChange={onChange}>
112
- {props.children}
113
- </Slate>
111
+ <Slate editor={editor} initialValue={valueNodes} onChange={onChange}>
112
+ {props.children}
113
+ </Slate>
114
114
  )
115
115
  },
116
116
  props => (
@@ -2,7 +2,7 @@ import { createEditorWithEssentials } from './createEditorWithEssentials'
2
2
  import { Editor } from 'slate'
3
3
  import { EditorPlugin, EditorPluginWrapperProps } from '../types'
4
4
  import { createElement, FunctionComponent, ReactNode } from 'react'
5
- import { EntityAccessor } from '@contember/binding'
5
+ import { EntityAccessor } from '@contember/react-binding'
6
6
  import { Environment } from '@contember/react-binding'
7
7
 
8
8
 
@@ -24,7 +24,7 @@ export const createEditor = ({
24
24
  environment,
25
25
  children,
26
26
  }: CreateEditorOptions): {
27
- editor: Editor,
27
+ editor: Editor
28
28
  OuterWrapper: FunctionComponent<{ children: ReactNode }>
29
29
  InnerWrapper: FunctionComponent<{ children: ReactNode }>
30
30
  } => {
@@ -175,10 +175,10 @@ export const createEditorWithEssentials = ({ defaultElementType }: { defaultElem
175
175
  const adjacentPoint =
176
176
  e.key === 'Backspace'
177
177
  ? Editor.point(editor, Path.next(nodePath), {
178
- edge: 'start',
178
+ edge: 'start',
179
179
  })
180
180
  : Editor.point(editor, Path.previous(nodePath), {
181
- edge: 'end',
181
+ edge: 'end',
182
182
  })
183
183
  Transforms.select(editor, adjacentPoint)
184
184
  }
@@ -25,12 +25,12 @@ export const useRichTextFieldNodes = ({
25
25
  fieldValue === null || fieldValue === ''
26
26
  ? [editor.createDefaultElement([{ text: '' }])]
27
27
  : [
28
- editor.createDefaultElement(
29
- editor.deserializeNodes(
30
- fieldValue,
31
- `RichTextField: the underlying field contains invalid JSON.`,
32
- ) as Descendant[],
33
- ),
28
+ editor.createDefaultElement(
29
+ editor.deserializeNodes(
30
+ fieldValue,
31
+ `RichTextField: the underlying field contains invalid JSON.`,
32
+ ) as Descendant[],
33
+ ),
34
34
  ]
35
35
  contemberFieldElementCache.set(fieldAccessor, elements)
36
36
 
@@ -3,51 +3,51 @@ import { NodesWithType } from '../../plugins/behaviour/paste/HtmlDeserializer'
3
3
  import { EditorDefaultElementFactory } from '../../types/editor'
4
4
 
5
5
  export class EditorPasteUtils {
6
- public static wordPasteListItemContent(allNodes: Iterable<Node> | ArrayLike<Node>): Node[] {
7
- const nodes: Node[] = []
8
- let ignoring = false
9
- let forProcessing = Array.from(allNodes)
10
- if (
11
- (forProcessing.length === 1 && forProcessing[0].nodeName === 'SPAN') ||
6
+ public static wordPasteListItemContent(allNodes: Iterable<Node> | ArrayLike<Node>): Node[] {
7
+ const nodes: Node[] = []
8
+ let ignoring = false
9
+ let forProcessing = Array.from(allNodes)
10
+ if (
11
+ (forProcessing.length === 1 && forProcessing[0].nodeName === 'SPAN') ||
12
12
  (forProcessing.length === 2 && forProcessing[0].nodeName === 'SPAN' && forProcessing[1].nodeName === 'O:P')
13
- ) {
14
- forProcessing = Array.from(forProcessing[0].childNodes)
15
- }
13
+ ) {
14
+ forProcessing = Array.from(forProcessing[0].childNodes)
15
+ }
16
16
 
17
- for (const node of forProcessing) {
18
- const isStartIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[if !supportLists]'
19
- if (isStartIgnore) {
20
- ignoring = true
17
+ for (const node of forProcessing) {
18
+ const isStartIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[if !supportLists]'
19
+ if (isStartIgnore) {
20
+ ignoring = true
21
+ } else {
22
+ const isEndIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[endif]'
23
+ if (isEndIgnore) {
24
+ ignoring = false
21
25
  } else {
22
- const isEndIgnore = node.nodeType === Node.COMMENT_NODE && node.nodeValue === '[endif]'
23
- if (isEndIgnore) {
24
- ignoring = false
25
- } else {
26
- if (!ignoring) {
27
- nodes.push(node)
28
- }
26
+ if (!ignoring) {
27
+ nodes.push(node)
29
28
  }
30
29
  }
31
30
  }
32
- return nodes
33
31
  }
32
+ return nodes
33
+ }
34
34
 
35
- public static flattenNodesWithType(withType: NodesWithType[], defaultElementFactory: EditorDefaultElementFactory): NodesWithType {
36
- const withTypeFiltered = withType.filter((item): item is Exclude<NodesWithType, null> => item !== null)
37
- const containsBlock = withTypeFiltered.find(({ elements }) => elements !== undefined) !== undefined
35
+ public static flattenNodesWithType(withType: NodesWithType[], defaultElementFactory: EditorDefaultElementFactory): NodesWithType {
36
+ const withTypeFiltered = withType.filter((item): item is Exclude<NodesWithType, null> => item !== null)
37
+ const containsBlock = withTypeFiltered.find(({ elements }) => elements !== undefined) !== undefined
38
38
 
39
- if (containsBlock) {
40
- return {
41
- elements: withTypeFiltered.flatMap<Element>(item => {
42
- if (item.elements === undefined) {
43
- return [defaultElementFactory(item.texts)]
44
- } else {
45
- return item.elements
46
- }
47
- }),
48
- }
49
- } else {
50
- return { texts: withTypeFiltered.flatMap(item => item.texts!) }
39
+ if (containsBlock) {
40
+ return {
41
+ elements: withTypeFiltered.flatMap<Element>(item => {
42
+ if (item.elements === undefined) {
43
+ return [defaultElementFactory(item.texts)]
44
+ } else {
45
+ return item.elements
46
+ }
47
+ }),
51
48
  }
49
+ } else {
50
+ return { texts: withTypeFiltered.flatMap(item => item.texts!) }
52
51
  }
52
+ }
53
53
  }
@@ -35,7 +35,7 @@ export class HtmlDeserializer {
35
35
  const processed: (
36
36
  | { text: SlateText | SlateElement; element?: undefined; isWhiteSpace: boolean }
37
37
  | { element: SlateElement; text?: undefined }
38
- )[] = []
38
+ )[] = []
39
39
 
40
40
  for (const childNode of nodeList) {
41
41
  const isWhiteSpace = childNode.nodeType === Node.TEXT_NODE && childNode.textContent?.match(/^\s*$/) !== null
@@ -2,7 +2,7 @@ import { Editor, Element as SlateElement, Node as SlateNode, Path as SlatePath,
2
2
  import { listItemElementType } from '../ListItemElement'
3
3
  import { ContemberEditor } from '../../../../editor'
4
4
 
5
- export const normalizeListElement = ({ editor, path, preventDefault }: { editor: Editor, path: SlatePath, preventDefault: () => void }) => {
5
+ export const normalizeListElement = ({ editor, path, preventDefault }: { editor: Editor; path: SlatePath; preventDefault: () => void }) => {
6
6
  for (const [child, childPath] of SlateNode.children(editor, path)) {
7
7
  if (SlateElement.isElement(child)) {
8
8
  if (child.type !== listItemElementType) {
@@ -92,7 +92,7 @@ export class TableModifications {
92
92
  forEachCellInColumn(editor, element, columnIndex, ([, cellPath]) => {
93
93
  Transforms.setNodes(
94
94
  editor,
95
- { justify: direction ?? null },
95
+ { justify: direction ?? undefined },
96
96
  { match: node => isTableCellElement(node), at: cellPath },
97
97
  )
98
98
  })
@@ -108,7 +108,7 @@ export class TableModifications {
108
108
 
109
109
  Transforms.setNodes(
110
110
  editor,
111
- { headerScope: firstRow.headerScope === scope ? null : scope },
111
+ { headerScope: firstRow.headerScope === scope ? undefined : scope },
112
112
  { match: node => isTableRowElement(node), at: [...tablePath, 0] },
113
113
  )
114
114
  }
@@ -128,7 +128,7 @@ export class TableModifications {
128
128
  forEachCellInColumn(editor, element, columnIndex, ([, cellPath]) => {
129
129
  Transforms.setNodes(
130
130
  editor,
131
- { headerScope: shouldSetScope ? scope : null },
131
+ { headerScope: shouldSetScope ? scope : undefined },
132
132
  { match: node => isTableCellElement(node), at: cellPath },
133
133
  )
134
134
  })
package/src/tsconfig.json CHANGED
@@ -4,7 +4,6 @@
4
4
  "outDir": "../dist/types"
5
5
  },
6
6
  "references": [
7
- { "path": "../../binding/src" },
8
7
  { "path": "../../react-binding/src" },
9
8
  { "path": "../../utilities/src" },
10
9
  ]
@@ -5,7 +5,7 @@ import { EditorElementPlugin, EditorMarkPlugin } from './plugins'
5
5
  import type * as Slate from 'slate'
6
6
  import { HtmlDeserializer } from '../plugins/behaviour/paste/HtmlDeserializer'
7
7
 
8
- export type EditorDefaultElementFactory = (children: Descendant[]) => SlateElement;
8
+ export type EditorDefaultElementFactory = (children: Descendant[]) => SlateElement
9
9
 
10
10
  export interface WithEssentials {
11
11
  slate: typeof Slate
@@ -1,7 +1,7 @@
1
1
  import { Descendant, Element as SlateElement } from 'slate'
2
2
  import { HtmlDeserializer } from '../plugins/behaviour/paste/HtmlDeserializer'
3
3
 
4
- export type HtmlDeserializerNextCallback = (children: NodeList | Node[], cumulativeTextAttrs: HtmlDeserializerTextAttrs) => Descendant[];
4
+ export type HtmlDeserializerNextCallback = (children: NodeList | Node[], cumulativeTextAttrs: HtmlDeserializerTextAttrs) => Descendant[]
5
5
 
6
6
  export interface HtmlDeserializerTextAttrs {
7
7
  [key: string]: any
@@ -15,28 +15,28 @@ export type HtmlDeserializerNodesWithType =
15
15
  export interface HtmlDeserializerPlugin {
16
16
  processBlockPaste?: (
17
17
  args: {
18
- deserializer: HtmlDeserializer,
19
- element: HTMLElement,
20
- next: HtmlDeserializerNextCallback,
21
- cumulativeTextAttrs: HtmlDeserializerTextAttrs,
18
+ deserializer: HtmlDeserializer
19
+ element: HTMLElement
20
+ next: HtmlDeserializerNextCallback
21
+ cumulativeTextAttrs: HtmlDeserializerTextAttrs
22
22
  }
23
23
  ) => SlateElement[] | SlateElement | null
24
24
  processInlinePaste?: (
25
25
  args: {
26
- deserializer: HtmlDeserializer,
27
- element: HTMLElement,
28
- next: HtmlDeserializerNextCallback,
26
+ deserializer: HtmlDeserializer
27
+ element: HTMLElement
28
+ next: HtmlDeserializerNextCallback
29
29
  cumulativeTextAttrs: HtmlDeserializerTextAttrs
30
30
  }
31
31
  ) => Descendant[] | Descendant | null
32
32
  processAttributesPaste?: (args: {
33
- deserializer: HtmlDeserializer,
34
- element: HTMLElement,
35
- cumulativeTextAttrs: HtmlDeserializerTextAttrs,
33
+ deserializer: HtmlDeserializer
34
+ element: HTMLElement
35
+ cumulativeTextAttrs: HtmlDeserializerTextAttrs
36
36
  }) => HtmlDeserializerTextAttrs
37
37
  processNodeListPaste?: (args: {
38
- deserializer: HtmlDeserializer,
39
- nodeList: Node[],
40
- cumulativeTextAttrs: HtmlDeserializerTextAttrs,
38
+ deserializer: HtmlDeserializer
39
+ nodeList: Node[]
40
+ cumulativeTextAttrs: HtmlDeserializerTextAttrs
41
41
  }) => HtmlDeserializerNodesWithType
42
42
  }
@@ -1,12 +1,11 @@
1
1
  import { Editor, Element, Path } from 'slate'
2
2
  import { FunctionComponent, ReactNode } from 'react'
3
3
  import { RenderElementProps, RenderLeafProps } from 'slate-react'
4
- import { Environment } from '@contember/react-binding'
5
- import { EntityAccessor } from '@contember/binding'
4
+ import { EntityAccessor, Environment } from '@contember/react-binding'
6
5
 
7
- export type EditorPluginWrapperProps = { children?: ReactNode, editor: Editor };
6
+ export type EditorPluginWrapperProps = { children?: ReactNode; editor: Editor }
8
7
  export type EditorPlugin = ((editor: Editor) => void) | {
9
- extendEditor?: (args: { editor: Editor, children: ReactNode, environment: Environment, entity: EntityAccessor }) => void
8
+ extendEditor?: (args: { editor: Editor; children: ReactNode; environment: Environment; entity: EntityAccessor }) => void
10
9
  OuterWrapper?: FunctionComponent<EditorPluginWrapperProps>
11
10
  InnerWrapper?: FunctionComponent<EditorPluginWrapperProps>
12
11
  staticRender?: (props: { children?: ReactNode }, environment: Environment) => ReactNode
@@ -18,13 +17,13 @@ export type ElementRenderer<T extends Element> = FunctionComponent<RenderElement
18
17
  export interface EditorElementPlugin<T extends Element> {
19
18
  type: T['type']
20
19
  render: ElementRenderer<T>
21
- normalizeNode?: (args: { element: T, path: Path, editor: Editor, preventDefault: () => void }) => void
22
- isActive?: (args: { editor: Editor, suchThat?: Partial<T> }) => boolean
20
+ normalizeNode?: (args: { element: T; path: Path; editor: Editor; preventDefault: () => void }) => void
21
+ isActive?: (args: { editor: Editor; suchThat?: Partial<T> }) => boolean
23
22
  isInline?: boolean
24
- isVoid?: boolean | ((args: { element: T, editor: Editor }) => boolean)
23
+ isVoid?: boolean | ((args: { element: T; editor: Editor }) => boolean)
25
24
  canContainAnyBlocks?: boolean
26
- toggleElement?: (args: { editor: Editor, suchThat?: Partial<T> }) => void
27
- acceptsAttributes?: (args: { editor: Editor, suchThat: Partial<T> }) => boolean
25
+ toggleElement?: (args: { editor: Editor; suchThat?: Partial<T> }) => void
26
+ acceptsAttributes?: (args: { editor: Editor; suchThat: Partial<T> }) => boolean
28
27
  }
29
28
 
30
29
 
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "include": [],
4
+ "references": [
5
+ { "path": "./src" },
6
+ ],
7
+ }
package/tsdoc.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3
+ "extends": [
4
+ "../../tsdoc.json"
5
+ ]
6
+ }
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const reactBinding = require("@contember/react-binding");
5
- const react = require("react");
6
- const Slate = require("slate");
7
- const slateReact = require("slate-react");
8
- const useRichTextFieldNodes = require("../internal/hooks/useRichTextFieldNodes.cjs");
9
- const createEditor = require("../editor/createEditor.cjs");
10
- const ParagraphElement = require("../plugins/element/paragraphs/ParagraphElement.cjs");
11
- const RichTextEditor = reactBinding.Component(
12
- (props) => {
13
- const entity = reactBinding.useEntity();
14
- const environment = entity.environment;
15
- const getParent = entity.getAccessor;
16
- const desugaredField = react.useMemo(
17
- () => reactBinding.QueryLanguage.desugarRelativeSingleField(props, environment),
18
- [environment, props]
19
- );
20
- const fieldAccessor = react.useMemo(() => entity.getRelativeSingleField(desugaredField), [entity, desugaredField]);
21
- const [contemberFieldElementCache] = react.useState(() => /* @__PURE__ */ new WeakMap());
22
- const [editor] = react.useState(() => {
23
- const { editor: editor2 } = createEditor.createEditor({
24
- plugins: props.plugins,
25
- defaultElementType: ParagraphElement.paragraphElementType,
26
- entity,
27
- environment,
28
- children: props.children
29
- });
30
- const { normalizeNode } = editor2;
31
- Object.assign(editor2, {
32
- insertBreak: () => {
33
- Slate.Transforms.insertText(editor2, "\n");
34
- },
35
- normalizeNode: (nodeEntry) => {
36
- const [node, path] = nodeEntry;
37
- if (path.length === 0 && Slate.Element.isAncestor(node)) {
38
- if (node.children.length > 1) {
39
- return Slate.Editor.withoutNormalizing(editor2, () => {
40
- const targetPath = [0, editor2.children[0].children.length];
41
- Slate.Transforms.moveNodes(editor2, {
42
- at: [1],
43
- to: targetPath
44
- });
45
- Slate.Transforms.unwrapNodes(editor2, { at: targetPath });
46
- });
47
- }
48
- if (Slate.Element.isElement(node.children[0]) && !editor2.isDefaultElement(node.children[0])) {
49
- return Slate.Editor.withoutNormalizing(editor2, () => {
50
- Slate.Transforms.wrapNodes(editor2, editor2.createDefaultElement([{ text: "" }]), {
51
- at: path
52
- });
53
- Slate.Transforms.unwrapNodes(editor2, { at: [0, 0] });
54
- });
55
- }
56
- }
57
- if (Slate.Element.isElement(node) && Slate.Editor.isBlock(editor2, node) && path.length > 1) {
58
- return Slate.Transforms.unwrapNodes(editor2, { at: path });
59
- }
60
- normalizeNode(nodeEntry);
61
- }
62
- });
63
- return editor2;
64
- });
65
- const valueNodes = useRichTextFieldNodes.useRichTextFieldNodes({
66
- editor,
67
- fieldAccessor,
68
- contemberFieldElementCache
69
- });
70
- const serialize = editor.serializeNodes;
71
- const onChange = react.useCallback(
72
- (value) => {
73
- getParent().batchUpdates((getAccessor) => {
74
- const fieldAccessor2 = getAccessor().getRelativeSingleField(desugaredField);
75
- if (Slate.Node.string({ type: "dummy", children: value }) === "" && fieldAccessor2.valueOnServer === null) {
76
- fieldAccessor2.updateValue(null);
77
- return;
78
- }
79
- if (Slate.Element.isElement(value[0])) {
80
- fieldAccessor2.updateValue(serialize(value[0].children));
81
- contemberFieldElementCache.set(getAccessor().getRelativeSingleField(desugaredField), value);
82
- }
83
- });
84
- },
85
- [getParent, contemberFieldElementCache, desugaredField, serialize]
86
- );
87
- return /* @__PURE__ */ jsxRuntime.jsx(slateReact.Slate, { editor, initialValue: valueNodes, onChange, children: props.children });
88
- },
89
- (props) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(reactBinding.Field, { defaultValue: props.defaultValue, field: props.field, isNonbearing: props.isNonbearing }) }),
90
- "RichTextEditor"
91
- );
92
- exports.RichTextEditor = RichTextEditor;
93
- //# sourceMappingURL=RichTextEditor.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextEditor.cjs","sources":["../../../src/components/RichTextEditor.tsx"],"sourcesContent":["import { Component, Field, FieldAccessor, FieldBasicProps, QueryLanguage, useEntity } from '@contember/react-binding'\nimport { FunctionComponent, useCallback, useMemo, useState } from 'react'\nimport { Descendant, Editor, Element as SlateElement, Node as SlateNode, NodeEntry, Transforms } from 'slate'\nimport { Slate } from 'slate-react'\nimport { createEditor, CreateEditorPublicOptions } from '../editor'\nimport { paragraphElementType } from '../plugins'\nimport { useRichTextFieldNodes } from '../internal/hooks/useRichTextFieldNodes'\n\nexport type RichTextEditorProps =\n\t& FieldBasicProps\n\t& CreateEditorPublicOptions\n\t& {\n\t\tchildren: React.ReactNode\n\t}\n\n/**\n * Rich text field supports more advanced formatting capabilities. Output of this field is a JSON.\n *\n * @group Form Fields\n */\nexport const RichTextEditor: FunctionComponent<RichTextEditorProps> = Component(\n\tprops => {\n\t\tconst entity = useEntity()\n\t\tconst environment = entity.environment\n\t\tconst getParent = entity.getAccessor\n\n\t\tconst desugaredField = useMemo(\n\t\t\t() => QueryLanguage.desugarRelativeSingleField(props, environment),\n\t\t\t[environment, props],\n\t\t)\n\t\tconst fieldAccessor = useMemo(() => entity.getRelativeSingleField<string>(desugaredField), [entity, desugaredField])\n\n\t\t// The cache is questionable, really.\n\t\tconst [contemberFieldElementCache] = useState(() => new WeakMap<FieldAccessor<string>, SlateElement[]>())\n\n\n\t\tconst [editor] = useState(() => {\n\t\t\tconst { editor } = createEditor({\n\t\t\t\tplugins: props.plugins,\n\t\t\t\tdefaultElementType: paragraphElementType,\n\t\t\t\tentity,\n\t\t\t\tenvironment,\n\t\t\t\tchildren: props.children,\n\t\t\t})\n\n\t\t\tconst { normalizeNode } = editor\n\t\t\tObject.assign(editor, {\n\t\t\t\tinsertBreak: () => {\n\t\t\t\t\tTransforms.insertText(editor, '\\n')\n\t\t\t\t},\n\t\t\t\tnormalizeNode: (nodeEntry: NodeEntry) => {\n\t\t\t\t\tconst [node, path] = nodeEntry\n\t\t\t\t\tif (path.length === 0 && SlateElement.isAncestor(node)) {\n\t\t\t\t\t\t// Enforce that there's exactly one child and that it's\n\t\t\t\t\t\tif (node.children.length > 1) {\n\t\t\t\t\t\t\treturn Editor.withoutNormalizing(editor, () => {\n\t\t\t\t\t\t\t\tconst targetPath = [0, (editor.children[0] as SlateElement).children.length]\n\t\t\t\t\t\t\t\tTransforms.moveNodes(editor, {\n\t\t\t\t\t\t\t\t\tat: [1],\n\t\t\t\t\t\t\t\t\tto: targetPath,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tTransforms.unwrapNodes(editor, { at: targetPath })\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (SlateElement.isElement(node.children[0]) && !editor.isDefaultElement(node.children[0])) {\n\t\t\t\t\t\t\treturn Editor.withoutNormalizing(editor, () => {\n\t\t\t\t\t\t\t\tTransforms.wrapNodes(editor, editor.createDefaultElement([{ text: '' }]), {\n\t\t\t\t\t\t\t\t\tat: path,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tTransforms.unwrapNodes(editor, { at: [0, 0] })\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (SlateElement.isElement(node) && Editor.isBlock(editor, node) && path.length > 1) {\n\t\t\t\t\t\treturn Transforms.unwrapNodes(editor, { at: path })\n\t\t\t\t\t}\n\t\t\t\t\tnormalizeNode(nodeEntry)\n\t\t\t\t},\n\t\t\t})\n\n\t\t\treturn editor\n\t\t})\n\n\t\tconst valueNodes = useRichTextFieldNodes({\n\t\t\teditor,\n\t\t\tfieldAccessor,\n\t\t\tcontemberFieldElementCache,\n\t\t})\n\n\t\tconst serialize = editor.serializeNodes\n\t\tconst onChange = useCallback(\n\t\t\t(value: Descendant[]) => {\n\t\t\t\tgetParent().batchUpdates(getAccessor => {\n\t\t\t\t\tconst fieldAccessor = getAccessor().getRelativeSingleField(desugaredField)\n\n\t\t\t\t\tif (SlateNode.string({ type: 'dummy', children: value }) === '' && fieldAccessor.valueOnServer === null) {\n\t\t\t\t\t\tfieldAccessor.updateValue(null)\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\n\t\t\t\t\tif (SlateElement.isElement(value[0])) {\n\t\t\t\t\t\tfieldAccessor.updateValue(serialize(value[0].children))\n\t\t\t\t\t\tcontemberFieldElementCache.set(getAccessor().getRelativeSingleField(desugaredField), value as SlateElement[])\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t[getParent, contemberFieldElementCache, desugaredField, serialize],\n\t\t)\n\n\t\treturn (\n\t\t\t\t<Slate editor={editor} initialValue={valueNodes} onChange={onChange}>\n\t\t\t\t\t{props.children}\n\t\t\t\t</Slate>\n\t\t)\n\t},\n\tprops => (\n\t\t<>\n\t\t\t<Field defaultValue={props.defaultValue} field={props.field} isNonbearing={props.isNonbearing} />\n\t\t</>\n\t),\n\t'RichTextEditor',\n)\n\n"],"names":["Component","useEntity","useMemo","QueryLanguage","useState","editor","createEditor","paragraphElementType","Transforms","SlateElement","Editor","useRichTextFieldNodes","useCallback","fieldAccessor","SlateNode","Slate","jsx","Fragment","Field"],"mappings":";;;;;;;;;;AAoBO,MAAM,iBAAyDA,aAAA;AAAA,EACrE,CAAS,UAAA;AACR,UAAM,SAASC,aAAAA;AACf,UAAM,cAAc,OAAO;AAC3B,UAAM,YAAY,OAAO;AAEzB,UAAM,iBAAiBC,MAAA;AAAA,MACtB,MAAMC,2BAAc,2BAA2B,OAAO,WAAW;AAAA,MACjE,CAAC,aAAa,KAAK;AAAA,IAAA;AAEd,UAAA,gBAAgBD,cAAQ,MAAM,OAAO,uBAA+B,cAAc,GAAG,CAAC,QAAQ,cAAc,CAAC;AAGnH,UAAM,CAAC,0BAA0B,IAAIE,MAAAA,SAAS,MAAM,oBAAI,QAAgD,CAAA;AAGxG,UAAM,CAAC,MAAM,IAAIA,MAAAA,SAAS,MAAM;AAC/B,YAAM,EAAE,QAAAC,QAAO,IAAIC,0BAAa;AAAA,QAC/B,S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