@contember/react-slate-editor-base 2.1.0-beta.2 → 2.2.0-alpha.2

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 (530) hide show
  1. package/dist/development/src/components/RichTextEditor.cjs.map +1 -1
  2. package/dist/development/src/components/RichTextEditor.js.map +1 -1
  3. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -1
  4. package/dist/development/src/components/triggers/EditorWrapNodeTrigger.js.map +1 -1
  5. package/dist/development/src/editor/createEditor.cjs.map +1 -1
  6. package/dist/development/src/editor/createEditor.js.map +1 -1
  7. package/dist/development/src/editor/createEditorWithEssentials.cjs.map +1 -1
  8. package/dist/development/src/editor/createEditorWithEssentials.js.map +1 -1
  9. package/dist/development/src/editor/index.cjs.map +1 -1
  10. package/dist/development/src/editor/index.js.map +1 -1
  11. package/dist/development/src/editor/methods/addMarks.cjs.map +1 -1
  12. package/dist/development/src/editor/methods/addMarks.js.map +1 -1
  13. package/dist/development/src/editor/methods/closestBlockEntry.cjs.map +1 -1
  14. package/dist/development/src/editor/methods/closestBlockEntry.js.map +1 -1
  15. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -1
  16. package/dist/development/src/editor/methods/closestViableBlockContainerEntry.js.map +1 -1
  17. package/dist/development/src/editor/methods/hasMarks.cjs.map +1 -1
  18. package/dist/development/src/editor/methods/hasMarks.js.map +1 -1
  19. package/dist/development/src/editor/methods/hasParentOfType.cjs.map +1 -1
  20. package/dist/development/src/editor/methods/hasParentOfType.js.map +1 -1
  21. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -1
  22. package/dist/development/src/editor/methods/permissivelyDeserializeNodes.js.map +1 -1
  23. package/dist/development/src/editor/methods/removeMarks.cjs.map +1 -1
  24. package/dist/development/src/editor/methods/removeMarks.js.map +1 -1
  25. package/dist/development/src/editor/methods/serializeNodes.cjs.map +1 -1
  26. package/dist/development/src/editor/methods/serializeNodes.js.map +1 -1
  27. package/dist/development/src/editor/methods/strictlyDeserializeNodes.cjs.map +1 -1
  28. package/dist/development/src/editor/methods/strictlyDeserializeNodes.js.map +1 -1
  29. package/dist/development/src/editor/methods/textToSpecifics.cjs.map +1 -1
  30. package/dist/development/src/editor/methods/textToSpecifics.js.map +1 -1
  31. package/dist/development/src/editor/methods/toLatestFormat.cjs.map +1 -1
  32. package/dist/development/src/editor/methods/toLatestFormat.js.map +1 -1
  33. package/dist/development/src/internal/utils/EditorPasteUtils.cjs.map +1 -1
  34. package/dist/development/src/internal/utils/EditorPasteUtils.js.map +1 -1
  35. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -1
  36. package/dist/development/src/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -1
  37. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -1
  38. package/dist/development/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -1
  39. package/dist/development/src/plugins/behaviour/paste/withPaste.cjs.map +1 -1
  40. package/dist/development/src/plugins/behaviour/paste/withPaste.js.map +1 -1
  41. package/dist/development/src/plugins/element/anchors/AnchorElement.cjs.map +1 -1
  42. package/dist/development/src/plugins/element/anchors/AnchorElement.js.map +1 -1
  43. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -1
  44. package/dist/development/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -1
  45. package/dist/development/src/plugins/element/anchors/AnchorModifications.cjs.map +1 -1
  46. package/dist/development/src/plugins/element/anchors/AnchorModifications.js.map +1 -1
  47. package/dist/development/src/plugins/element/anchors/withAnchors.cjs.map +1 -1
  48. package/dist/development/src/plugins/element/anchors/withAnchors.js.map +1 -1
  49. package/dist/development/src/plugins/element/headings/HeadingElement.cjs.map +1 -1
  50. package/dist/development/src/plugins/element/headings/HeadingElement.js.map +1 -1
  51. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -1
  52. package/dist/development/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -1
  53. package/dist/development/src/plugins/element/headings/withHeadings.cjs.map +1 -1
  54. package/dist/development/src/plugins/element/headings/withHeadings.js.map +1 -1
  55. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -1
  56. package/dist/development/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -1
  57. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -1
  58. package/dist/development/src/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -1
  59. package/dist/development/src/plugins/element/lists/ListElement.cjs.map +1 -1
  60. package/dist/development/src/plugins/element/lists/ListElement.js.map +1 -1
  61. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -1
  62. package/dist/development/src/plugins/element/lists/ListHtmlDeserializer.js.map +1 -1
  63. package/dist/development/src/plugins/element/lists/ListItemElement.cjs.map +1 -1
  64. package/dist/development/src/plugins/element/lists/ListItemElement.js.map +1 -1
  65. package/dist/development/src/plugins/element/lists/OrderedListElement.cjs.map +1 -1
  66. package/dist/development/src/plugins/element/lists/OrderedListElement.js.map +1 -1
  67. package/dist/development/src/plugins/element/lists/UnorderedListElement.cjs.map +1 -1
  68. package/dist/development/src/plugins/element/lists/UnorderedListElement.js.map +1 -1
  69. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -1
  70. package/dist/development/src/plugins/element/lists/transforms/dedentListItem.js.map +1 -1
  71. package/dist/development/src/plugins/element/lists/transforms/indentListItem.cjs.map +1 -1
  72. package/dist/development/src/plugins/element/lists/transforms/indentListItem.js.map +1 -1
  73. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -1
  74. package/dist/development/src/plugins/element/lists/transforms/normalizeListElement.js.map +1 -1
  75. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -1
  76. package/dist/development/src/plugins/element/lists/transforms/toggleListElement.js.map +1 -1
  77. package/dist/development/src/plugins/element/lists/withLists.cjs.map +1 -1
  78. package/dist/development/src/plugins/element/lists/withLists.js.map +1 -1
  79. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -1
  80. package/dist/development/src/plugins/element/paragraphs/ParagraphElement.js.map +1 -1
  81. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -1
  82. package/dist/development/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -1
  83. package/dist/development/src/plugins/element/paragraphs/withParagraphs.cjs.map +1 -1
  84. package/dist/development/src/plugins/element/paragraphs/withParagraphs.js.map +1 -1
  85. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -1
  86. package/dist/development/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -1
  87. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -1
  88. package/dist/development/src/plugins/element/scrollTargets/withScrollTargets.js.map +1 -1
  89. package/dist/development/src/plugins/element/tables/TableCellElement.cjs.map +1 -1
  90. package/dist/development/src/plugins/element/tables/TableCellElement.js.map +1 -1
  91. package/dist/development/src/plugins/element/tables/TableElement.cjs.map +1 -1
  92. package/dist/development/src/plugins/element/tables/TableElement.js.map +1 -1
  93. package/dist/development/src/plugins/element/tables/TableElementSelection.cjs.map +1 -1
  94. package/dist/development/src/plugins/element/tables/TableElementSelection.js.map +1 -1
  95. package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.cjs.map +1 -1
  96. package/dist/development/src/plugins/element/tables/TableHtmlDeserializer.js.map +1 -1
  97. package/dist/development/src/plugins/element/tables/TableModifications.cjs.map +1 -1
  98. package/dist/development/src/plugins/element/tables/TableModifications.js.map +1 -1
  99. package/dist/development/src/plugins/element/tables/TableRowElement.cjs.map +1 -1
  100. package/dist/development/src/plugins/element/tables/TableRowElement.js.map +1 -1
  101. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -1
  102. package/dist/development/src/plugins/element/tables/gaugeTableColumnCount.js.map +1 -1
  103. package/dist/development/src/plugins/element/tables/withTables.cjs.map +1 -1
  104. package/dist/development/src/plugins/element/tables/withTables.js.map +1 -1
  105. package/dist/development/src/plugins/text/bold/boldMark.cjs.map +1 -1
  106. package/dist/development/src/plugins/text/bold/boldMark.js.map +1 -1
  107. package/dist/development/src/plugins/text/bold/withBold.cjs.map +1 -1
  108. package/dist/development/src/plugins/text/bold/withBold.js.map +1 -1
  109. package/dist/development/src/plugins/text/code/codeMark.cjs.map +1 -1
  110. package/dist/development/src/plugins/text/code/codeMark.js.map +1 -1
  111. package/dist/development/src/plugins/text/code/withCode.cjs.map +1 -1
  112. package/dist/development/src/plugins/text/code/withCode.js.map +1 -1
  113. package/dist/development/src/plugins/text/highlight/highlightMark.cjs.map +1 -1
  114. package/dist/development/src/plugins/text/highlight/highlightMark.js.map +1 -1
  115. package/dist/development/src/plugins/text/highlight/withHighlight.cjs.map +1 -1
  116. package/dist/development/src/plugins/text/highlight/withHighlight.js.map +1 -1
  117. package/dist/development/src/plugins/text/italic/italicMark.cjs.map +1 -1
  118. package/dist/development/src/plugins/text/italic/italicMark.js.map +1 -1
  119. package/dist/development/src/plugins/text/italic/withItalic.cjs.map +1 -1
  120. package/dist/development/src/plugins/text/italic/withItalic.js.map +1 -1
  121. package/dist/development/src/plugins/text/newline/withNewline.cjs.map +1 -1
  122. package/dist/development/src/plugins/text/newline/withNewline.js.map +1 -1
  123. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -1
  124. package/dist/development/src/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -1
  125. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -1
  126. package/dist/development/src/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -1
  127. package/dist/development/src/plugins/text/underline/underlineMark.cjs.map +1 -1
  128. package/dist/development/src/plugins/text/underline/underlineMark.js.map +1 -1
  129. package/dist/development/src/plugins/text/underline/withUnderline.cjs.map +1 -1
  130. package/dist/development/src/plugins/text/underline/withUnderline.js.map +1 -1
  131. package/dist/production/src/components/RichTextEditor.cjs.map +1 -1
  132. package/dist/production/src/components/RichTextEditor.js.map +1 -1
  133. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.cjs.map +1 -1
  134. package/dist/production/src/components/triggers/EditorWrapNodeTrigger.js.map +1 -1
  135. package/dist/production/src/editor/createEditor.cjs.map +1 -1
  136. package/dist/production/src/editor/createEditor.js.map +1 -1
  137. package/dist/production/src/editor/createEditorWithEssentials.cjs.map +1 -1
  138. package/dist/production/src/editor/createEditorWithEssentials.js.map +1 -1
  139. package/dist/production/src/editor/index.cjs.map +1 -1
  140. package/dist/production/src/editor/index.js.map +1 -1
  141. package/dist/production/src/editor/methods/addMarks.cjs.map +1 -1
  142. package/dist/production/src/editor/methods/addMarks.js.map +1 -1
  143. package/dist/production/src/editor/methods/closestBlockEntry.cjs.map +1 -1
  144. package/dist/production/src/editor/methods/closestBlockEntry.js.map +1 -1
  145. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.cjs.map +1 -1
  146. package/dist/production/src/editor/methods/closestViableBlockContainerEntry.js.map +1 -1
  147. package/dist/production/src/editor/methods/hasMarks.cjs.map +1 -1
  148. package/dist/production/src/editor/methods/hasMarks.js.map +1 -1
  149. package/dist/production/src/editor/methods/hasParentOfType.cjs.map +1 -1
  150. package/dist/production/src/editor/methods/hasParentOfType.js.map +1 -1
  151. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.cjs.map +1 -1
  152. package/dist/production/src/editor/methods/permissivelyDeserializeNodes.js.map +1 -1
  153. package/dist/production/src/editor/methods/removeMarks.cjs.map +1 -1
  154. package/dist/production/src/editor/methods/removeMarks.js.map +1 -1
  155. package/dist/production/src/editor/methods/serializeNodes.cjs.map +1 -1
  156. package/dist/production/src/editor/methods/serializeNodes.js.map +1 -1
  157. package/dist/production/src/editor/methods/strictlyDeserializeNodes.cjs.map +1 -1
  158. package/dist/production/src/editor/methods/strictlyDeserializeNodes.js.map +1 -1
  159. package/dist/production/src/editor/methods/textToSpecifics.cjs.map +1 -1
  160. package/dist/production/src/editor/methods/textToSpecifics.js.map +1 -1
  161. package/dist/production/src/editor/methods/toLatestFormat.cjs.map +1 -1
  162. package/dist/production/src/editor/methods/toLatestFormat.js.map +1 -1
  163. package/dist/production/src/internal/utils/EditorPasteUtils.cjs.map +1 -1
  164. package/dist/production/src/internal/utils/EditorPasteUtils.js.map +1 -1
  165. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.cjs.map +1 -1
  166. package/dist/production/src/plugins/behaviour/paste/HtmlDeserializer.js.map +1 -1
  167. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.cjs.map +1 -1
  168. package/dist/production/src/plugins/behaviour/paste/createMarkHtmlDeserializer.js.map +1 -1
  169. package/dist/production/src/plugins/behaviour/paste/withPaste.cjs.map +1 -1
  170. package/dist/production/src/plugins/behaviour/paste/withPaste.js.map +1 -1
  171. package/dist/production/src/plugins/element/anchors/AnchorElement.cjs.map +1 -1
  172. package/dist/production/src/plugins/element/anchors/AnchorElement.js.map +1 -1
  173. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.cjs.map +1 -1
  174. package/dist/production/src/plugins/element/anchors/AnchorHtmlDeserializer.js.map +1 -1
  175. package/dist/production/src/plugins/element/anchors/AnchorModifications.cjs.map +1 -1
  176. package/dist/production/src/plugins/element/anchors/AnchorModifications.js.map +1 -1
  177. package/dist/production/src/plugins/element/anchors/withAnchors.cjs.map +1 -1
  178. package/dist/production/src/plugins/element/anchors/withAnchors.js.map +1 -1
  179. package/dist/production/src/plugins/element/headings/HeadingElement.cjs.map +1 -1
  180. package/dist/production/src/plugins/element/headings/HeadingElement.js.map +1 -1
  181. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.cjs.map +1 -1
  182. package/dist/production/src/plugins/element/headings/HeadingHtmlDeserializer.js.map +1 -1
  183. package/dist/production/src/plugins/element/headings/withHeadings.cjs.map +1 -1
  184. package/dist/production/src/plugins/element/headings/withHeadings.js.map +1 -1
  185. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.cjs.map +1 -1
  186. package/dist/production/src/plugins/element/horizonalRules/HorizontalRuleElement.js.map +1 -1
  187. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.cjs.map +1 -1
  188. package/dist/production/src/plugins/element/horizonalRules/withHorizontalRules.js.map +1 -1
  189. package/dist/production/src/plugins/element/lists/ListElement.cjs.map +1 -1
  190. package/dist/production/src/plugins/element/lists/ListElement.js.map +1 -1
  191. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.cjs.map +1 -1
  192. package/dist/production/src/plugins/element/lists/ListHtmlDeserializer.js.map +1 -1
  193. package/dist/production/src/plugins/element/lists/ListItemElement.cjs.map +1 -1
  194. package/dist/production/src/plugins/element/lists/ListItemElement.js.map +1 -1
  195. package/dist/production/src/plugins/element/lists/OrderedListElement.cjs.map +1 -1
  196. package/dist/production/src/plugins/element/lists/OrderedListElement.js.map +1 -1
  197. package/dist/production/src/plugins/element/lists/UnorderedListElement.cjs.map +1 -1
  198. package/dist/production/src/plugins/element/lists/UnorderedListElement.js.map +1 -1
  199. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.cjs.map +1 -1
  200. package/dist/production/src/plugins/element/lists/transforms/dedentListItem.js.map +1 -1
  201. package/dist/production/src/plugins/element/lists/transforms/indentListItem.cjs.map +1 -1
  202. package/dist/production/src/plugins/element/lists/transforms/indentListItem.js.map +1 -1
  203. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.cjs.map +1 -1
  204. package/dist/production/src/plugins/element/lists/transforms/normalizeListElement.js.map +1 -1
  205. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.cjs.map +1 -1
  206. package/dist/production/src/plugins/element/lists/transforms/toggleListElement.js.map +1 -1
  207. package/dist/production/src/plugins/element/lists/withLists.cjs.map +1 -1
  208. package/dist/production/src/plugins/element/lists/withLists.js.map +1 -1
  209. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.cjs.map +1 -1
  210. package/dist/production/src/plugins/element/paragraphs/ParagraphElement.js.map +1 -1
  211. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.cjs.map +1 -1
  212. package/dist/production/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.js.map +1 -1
  213. package/dist/production/src/plugins/element/paragraphs/withParagraphs.cjs.map +1 -1
  214. package/dist/production/src/plugins/element/paragraphs/withParagraphs.js.map +1 -1
  215. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.cjs.map +1 -1
  216. package/dist/production/src/plugins/element/scrollTargets/ScrollTargetElement.js.map +1 -1
  217. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.cjs.map +1 -1
  218. package/dist/production/src/plugins/element/scrollTargets/withScrollTargets.js.map +1 -1
  219. package/dist/production/src/plugins/element/tables/TableCellElement.cjs.map +1 -1
  220. package/dist/production/src/plugins/element/tables/TableCellElement.js.map +1 -1
  221. package/dist/production/src/plugins/element/tables/TableElement.cjs.map +1 -1
  222. package/dist/production/src/plugins/element/tables/TableElement.js.map +1 -1
  223. package/dist/production/src/plugins/element/tables/TableElementSelection.cjs.map +1 -1
  224. package/dist/production/src/plugins/element/tables/TableElementSelection.js.map +1 -1
  225. package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.cjs.map +1 -1
  226. package/dist/production/src/plugins/element/tables/TableHtmlDeserializer.js.map +1 -1
  227. package/dist/production/src/plugins/element/tables/TableModifications.cjs.map +1 -1
  228. package/dist/production/src/plugins/element/tables/TableModifications.js.map +1 -1
  229. package/dist/production/src/plugins/element/tables/TableRowElement.cjs.map +1 -1
  230. package/dist/production/src/plugins/element/tables/TableRowElement.js.map +1 -1
  231. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.cjs.map +1 -1
  232. package/dist/production/src/plugins/element/tables/gaugeTableColumnCount.js.map +1 -1
  233. package/dist/production/src/plugins/element/tables/withTables.cjs.map +1 -1
  234. package/dist/production/src/plugins/element/tables/withTables.js.map +1 -1
  235. package/dist/production/src/plugins/text/bold/boldMark.cjs.map +1 -1
  236. package/dist/production/src/plugins/text/bold/boldMark.js.map +1 -1
  237. package/dist/production/src/plugins/text/bold/withBold.cjs.map +1 -1
  238. package/dist/production/src/plugins/text/bold/withBold.js.map +1 -1
  239. package/dist/production/src/plugins/text/code/codeMark.cjs.map +1 -1
  240. package/dist/production/src/plugins/text/code/codeMark.js.map +1 -1
  241. package/dist/production/src/plugins/text/code/withCode.cjs.map +1 -1
  242. package/dist/production/src/plugins/text/code/withCode.js.map +1 -1
  243. package/dist/production/src/plugins/text/highlight/highlightMark.cjs.map +1 -1
  244. package/dist/production/src/plugins/text/highlight/highlightMark.js.map +1 -1
  245. package/dist/production/src/plugins/text/highlight/withHighlight.cjs.map +1 -1
  246. package/dist/production/src/plugins/text/highlight/withHighlight.js.map +1 -1
  247. package/dist/production/src/plugins/text/italic/italicMark.cjs.map +1 -1
  248. package/dist/production/src/plugins/text/italic/italicMark.js.map +1 -1
  249. package/dist/production/src/plugins/text/italic/withItalic.cjs.map +1 -1
  250. package/dist/production/src/plugins/text/italic/withItalic.js.map +1 -1
  251. package/dist/production/src/plugins/text/newline/withNewline.cjs.map +1 -1
  252. package/dist/production/src/plugins/text/newline/withNewline.js.map +1 -1
  253. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.cjs.map +1 -1
  254. package/dist/production/src/plugins/text/strikeThrough/strikeThroughMark.js.map +1 -1
  255. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.cjs.map +1 -1
  256. package/dist/production/src/plugins/text/strikeThrough/withStrikeThrough.js.map +1 -1
  257. package/dist/production/src/plugins/text/underline/underlineMark.cjs.map +1 -1
  258. package/dist/production/src/plugins/text/underline/underlineMark.js.map +1 -1
  259. package/dist/production/src/plugins/text/underline/withUnderline.cjs.map +1 -1
  260. package/dist/production/src/plugins/text/underline/withUnderline.js.map +1 -1
  261. package/dist/types/components/RichTextEditor.d.ts +1 -1
  262. package/dist/types/components/RichTextEditor.d.ts.map +1 -1
  263. package/dist/types/components/index.d.ts +2 -2
  264. package/dist/types/components/index.d.ts.map +1 -1
  265. package/dist/types/components/triggers/index.d.ts +4 -4
  266. package/dist/types/components/triggers/index.d.ts.map +1 -1
  267. package/dist/types/editor/createEditor.d.ts +1 -1
  268. package/dist/types/editor/createEditor.d.ts.map +1 -1
  269. package/dist/types/editor/index.d.ts +11 -11
  270. package/dist/types/editor/index.d.ts.map +1 -1
  271. package/dist/types/editor/methods/addMarks.d.ts +1 -1
  272. package/dist/types/editor/methods/addMarks.d.ts.map +1 -1
  273. package/dist/types/editor/methods/closestBlockEntry.d.ts +1 -1
  274. package/dist/types/editor/methods/closestBlockEntry.d.ts.map +1 -1
  275. package/dist/types/editor/methods/hasMarks.d.ts +1 -1
  276. package/dist/types/editor/methods/hasMarks.d.ts.map +1 -1
  277. package/dist/types/editor/methods/index.d.ts +19 -19
  278. package/dist/types/editor/methods/index.d.ts.map +1 -1
  279. package/dist/types/editor/methods/removeMarks.d.ts +1 -1
  280. package/dist/types/editor/methods/removeMarks.d.ts.map +1 -1
  281. package/dist/types/editor/methods/textToSpecifics.d.ts +1 -1
  282. package/dist/types/editor/methods/textToSpecifics.d.ts.map +1 -1
  283. package/dist/types/editor/methods/toLatestFormat.d.ts +1 -1
  284. package/dist/types/editor/methods/toLatestFormat.d.ts.map +1 -1
  285. package/dist/types/index.d.ts +6 -6
  286. package/dist/types/index.d.ts.map +1 -1
  287. package/dist/types/internal/utils/EditorPasteUtils.d.ts +2 -2
  288. package/dist/types/internal/utils/EditorPasteUtils.d.ts.map +1 -1
  289. package/dist/types/internal/utils/index.d.ts +2 -2
  290. package/dist/types/internal/utils/index.d.ts.map +1 -1
  291. package/dist/types/plugins/attributes/alignment/index.d.ts +1 -1
  292. package/dist/types/plugins/attributes/alignment/index.d.ts.map +1 -1
  293. package/dist/types/plugins/attributes/index.d.ts +1 -1
  294. package/dist/types/plugins/attributes/index.d.ts.map +1 -1
  295. package/dist/types/plugins/behaviour/index.d.ts +1 -1
  296. package/dist/types/plugins/behaviour/index.d.ts.map +1 -1
  297. package/dist/types/plugins/behaviour/paste/HtmlDeserializer.d.ts +2 -2
  298. package/dist/types/plugins/behaviour/paste/HtmlDeserializer.d.ts.map +1 -1
  299. package/dist/types/plugins/behaviour/paste/createMarkHtmlDeserializer.d.ts +1 -1
  300. package/dist/types/plugins/behaviour/paste/createMarkHtmlDeserializer.d.ts.map +1 -1
  301. package/dist/types/plugins/behaviour/paste/index.d.ts +2 -2
  302. package/dist/types/plugins/behaviour/paste/index.d.ts.map +1 -1
  303. package/dist/types/plugins/element/anchors/AnchorElement.d.ts +1 -1
  304. package/dist/types/plugins/element/anchors/AnchorElement.d.ts.map +1 -1
  305. package/dist/types/plugins/element/anchors/AnchorHtmlDeserializer.d.ts +1 -1
  306. package/dist/types/plugins/element/anchors/AnchorHtmlDeserializer.d.ts.map +1 -1
  307. package/dist/types/plugins/element/anchors/index.d.ts +3 -3
  308. package/dist/types/plugins/element/anchors/index.d.ts.map +1 -1
  309. package/dist/types/plugins/element/anchors/withAnchors.d.ts +2 -2
  310. package/dist/types/plugins/element/anchors/withAnchors.d.ts.map +1 -1
  311. package/dist/types/plugins/element/headings/HeadingElement.d.ts +2 -2
  312. package/dist/types/plugins/element/headings/HeadingElement.d.ts.map +1 -1
  313. package/dist/types/plugins/element/headings/HeadingHtmlDeserializer.d.ts +1 -1
  314. package/dist/types/plugins/element/headings/HeadingHtmlDeserializer.d.ts.map +1 -1
  315. package/dist/types/plugins/element/headings/index.d.ts +3 -3
  316. package/dist/types/plugins/element/headings/index.d.ts.map +1 -1
  317. package/dist/types/plugins/element/headings/withHeadings.d.ts +2 -2
  318. package/dist/types/plugins/element/headings/withHeadings.d.ts.map +1 -1
  319. package/dist/types/plugins/element/horizonalRules/HorizontalRuleElement.d.ts +1 -1
  320. package/dist/types/plugins/element/horizonalRules/HorizontalRuleElement.d.ts.map +1 -1
  321. package/dist/types/plugins/element/horizonalRules/index.d.ts +2 -2
  322. package/dist/types/plugins/element/horizonalRules/index.d.ts.map +1 -1
  323. package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts +2 -2
  324. package/dist/types/plugins/element/horizonalRules/withHorizontalRules.d.ts.map +1 -1
  325. package/dist/types/plugins/element/index.d.ts +7 -7
  326. package/dist/types/plugins/element/index.d.ts.map +1 -1
  327. package/dist/types/plugins/element/lists/ListElement.d.ts +2 -2
  328. package/dist/types/plugins/element/lists/ListElement.d.ts.map +1 -1
  329. package/dist/types/plugins/element/lists/ListHtmlDeserializer.d.ts +1 -1
  330. package/dist/types/plugins/element/lists/ListHtmlDeserializer.d.ts.map +1 -1
  331. package/dist/types/plugins/element/lists/ListItemElement.d.ts +1 -1
  332. package/dist/types/plugins/element/lists/ListItemElement.d.ts.map +1 -1
  333. package/dist/types/plugins/element/lists/OrderedListElement.d.ts +1 -1
  334. package/dist/types/plugins/element/lists/OrderedListElement.d.ts.map +1 -1
  335. package/dist/types/plugins/element/lists/UnorderedListElement.d.ts +1 -1
  336. package/dist/types/plugins/element/lists/UnorderedListElement.d.ts.map +1 -1
  337. package/dist/types/plugins/element/lists/index.d.ts +5 -5
  338. package/dist/types/plugins/element/lists/index.d.ts.map +1 -1
  339. package/dist/types/plugins/element/lists/transforms/dedentListItem.d.ts +1 -1
  340. package/dist/types/plugins/element/lists/transforms/dedentListItem.d.ts.map +1 -1
  341. package/dist/types/plugins/element/lists/transforms/indentListItem.d.ts +1 -1
  342. package/dist/types/plugins/element/lists/transforms/indentListItem.d.ts.map +1 -1
  343. package/dist/types/plugins/element/lists/transforms/index.d.ts +4 -4
  344. package/dist/types/plugins/element/lists/transforms/index.d.ts.map +1 -1
  345. package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts +2 -2
  346. package/dist/types/plugins/element/lists/transforms/toggleListElement.d.ts.map +1 -1
  347. package/dist/types/plugins/element/lists/withLists.d.ts +4 -4
  348. package/dist/types/plugins/element/lists/withLists.d.ts.map +1 -1
  349. package/dist/types/plugins/element/paragraphs/ParagraphElement.d.ts +2 -2
  350. package/dist/types/plugins/element/paragraphs/ParagraphElement.d.ts.map +1 -1
  351. package/dist/types/plugins/element/paragraphs/ParagraphHtmlDeserializer.d.ts +1 -1
  352. package/dist/types/plugins/element/paragraphs/ParagraphHtmlDeserializer.d.ts.map +1 -1
  353. package/dist/types/plugins/element/paragraphs/index.d.ts +3 -3
  354. package/dist/types/plugins/element/paragraphs/index.d.ts.map +1 -1
  355. package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts +2 -2
  356. package/dist/types/plugins/element/paragraphs/withParagraphs.d.ts.map +1 -1
  357. package/dist/types/plugins/element/scrollTargets/ScrollTargetElement.d.ts +1 -1
  358. package/dist/types/plugins/element/scrollTargets/ScrollTargetElement.d.ts.map +1 -1
  359. package/dist/types/plugins/element/scrollTargets/index.d.ts +2 -2
  360. package/dist/types/plugins/element/scrollTargets/index.d.ts.map +1 -1
  361. package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts +2 -2
  362. package/dist/types/plugins/element/scrollTargets/withScrollTargets.d.ts.map +1 -1
  363. package/dist/types/plugins/element/tables/TableCellElement.d.ts +1 -1
  364. package/dist/types/plugins/element/tables/TableCellElement.d.ts.map +1 -1
  365. package/dist/types/plugins/element/tables/TableElement.d.ts +1 -1
  366. package/dist/types/plugins/element/tables/TableElement.d.ts.map +1 -1
  367. package/dist/types/plugins/element/tables/TableElementSelection.d.ts +2 -2
  368. package/dist/types/plugins/element/tables/TableElementSelection.d.ts.map +1 -1
  369. package/dist/types/plugins/element/tables/TableHtmlDeserializer.d.ts +1 -1
  370. package/dist/types/plugins/element/tables/TableHtmlDeserializer.d.ts.map +1 -1
  371. package/dist/types/plugins/element/tables/TableModifications.d.ts +3 -3
  372. package/dist/types/plugins/element/tables/TableModifications.d.ts.map +1 -1
  373. package/dist/types/plugins/element/tables/TableRowElement.d.ts +1 -1
  374. package/dist/types/plugins/element/tables/TableRowElement.d.ts.map +1 -1
  375. package/dist/types/plugins/element/tables/gaugeTableColumnCount.d.ts +1 -1
  376. package/dist/types/plugins/element/tables/gaugeTableColumnCount.d.ts.map +1 -1
  377. package/dist/types/plugins/element/tables/index.d.ts +5 -5
  378. package/dist/types/plugins/element/tables/index.d.ts.map +1 -1
  379. package/dist/types/plugins/element/tables/withTables.d.ts +4 -4
  380. package/dist/types/plugins/element/tables/withTables.d.ts.map +1 -1
  381. package/dist/types/plugins/index.d.ts +4 -4
  382. package/dist/types/plugins/index.d.ts.map +1 -1
  383. package/dist/types/plugins/text/bold/boldMark.d.ts +1 -1
  384. package/dist/types/plugins/text/bold/boldMark.d.ts.map +1 -1
  385. package/dist/types/plugins/text/bold/index.d.ts +2 -2
  386. package/dist/types/plugins/text/bold/index.d.ts.map +1 -1
  387. package/dist/types/plugins/text/bold/withBold.d.ts +1 -1
  388. package/dist/types/plugins/text/bold/withBold.d.ts.map +1 -1
  389. package/dist/types/plugins/text/code/codeMark.d.ts +1 -1
  390. package/dist/types/plugins/text/code/codeMark.d.ts.map +1 -1
  391. package/dist/types/plugins/text/code/index.d.ts +2 -2
  392. package/dist/types/plugins/text/code/index.d.ts.map +1 -1
  393. package/dist/types/plugins/text/code/withCode.d.ts +1 -1
  394. package/dist/types/plugins/text/code/withCode.d.ts.map +1 -1
  395. package/dist/types/plugins/text/highlight/highlightMark.d.ts +1 -1
  396. package/dist/types/plugins/text/highlight/highlightMark.d.ts.map +1 -1
  397. package/dist/types/plugins/text/highlight/index.d.ts +2 -2
  398. package/dist/types/plugins/text/highlight/index.d.ts.map +1 -1
  399. package/dist/types/plugins/text/highlight/withHighlight.d.ts +1 -1
  400. package/dist/types/plugins/text/highlight/withHighlight.d.ts.map +1 -1
  401. package/dist/types/plugins/text/index.d.ts +7 -7
  402. package/dist/types/plugins/text/index.d.ts.map +1 -1
  403. package/dist/types/plugins/text/italic/index.d.ts +2 -2
  404. package/dist/types/plugins/text/italic/index.d.ts.map +1 -1
  405. package/dist/types/plugins/text/italic/italicMark.d.ts +1 -1
  406. package/dist/types/plugins/text/italic/italicMark.d.ts.map +1 -1
  407. package/dist/types/plugins/text/italic/withItalic.d.ts +1 -1
  408. package/dist/types/plugins/text/italic/withItalic.d.ts.map +1 -1
  409. package/dist/types/plugins/text/newline/index.d.ts +1 -1
  410. package/dist/types/plugins/text/newline/index.d.ts.map +1 -1
  411. package/dist/types/plugins/text/newline/withNewline.d.ts +1 -1
  412. package/dist/types/plugins/text/newline/withNewline.d.ts.map +1 -1
  413. package/dist/types/plugins/text/strikeThrough/index.d.ts +2 -2
  414. package/dist/types/plugins/text/strikeThrough/index.d.ts.map +1 -1
  415. package/dist/types/plugins/text/strikeThrough/strikeThroughMark.d.ts +1 -1
  416. package/dist/types/plugins/text/strikeThrough/strikeThroughMark.d.ts.map +1 -1
  417. package/dist/types/plugins/text/strikeThrough/withStrikeThrough.d.ts +1 -1
  418. package/dist/types/plugins/text/strikeThrough/withStrikeThrough.d.ts.map +1 -1
  419. package/dist/types/plugins/text/underline/index.d.ts +2 -2
  420. package/dist/types/plugins/text/underline/index.d.ts.map +1 -1
  421. package/dist/types/plugins/text/underline/underlineMark.d.ts +1 -1
  422. package/dist/types/plugins/text/underline/underlineMark.d.ts.map +1 -1
  423. package/dist/types/plugins/text/underline/withUnderline.d.ts +1 -1
  424. package/dist/types/plugins/text/underline/withUnderline.d.ts.map +1 -1
  425. package/dist/types/slate-types.d.ts +1 -1
  426. package/dist/types/slate-types.d.ts.map +1 -1
  427. package/dist/types/tsconfig.tsbuildinfo +1 -1
  428. package/dist/types/types/editor.d.ts +2 -2
  429. package/dist/types/types/editor.d.ts.map +1 -1
  430. package/dist/types/types/htmlDeserializer.d.ts +1 -1
  431. package/dist/types/types/htmlDeserializer.d.ts.map +1 -1
  432. package/dist/types/types/index.d.ts +3 -3
  433. package/dist/types/types/index.d.ts.map +1 -1
  434. package/package.json +3 -3
  435. package/src/components/RichTextEditor.tsx +3 -3
  436. package/src/components/index.ts +2 -2
  437. package/src/components/triggers/EditorWrapNodeTrigger.tsx +1 -1
  438. package/src/components/triggers/index.ts +4 -4
  439. package/src/editor/createEditor.ts +2 -2
  440. package/src/editor/createEditorWithEssentials.tsx +5 -5
  441. package/src/editor/index.ts +4 -4
  442. package/src/editor/methods/addMarks.ts +1 -1
  443. package/src/editor/methods/closestBlockEntry.ts +1 -1
  444. package/src/editor/methods/closestViableBlockContainerEntry.ts +1 -1
  445. package/src/editor/methods/hasMarks.ts +1 -1
  446. package/src/editor/methods/hasParentOfType.ts +1 -1
  447. package/src/editor/methods/index.ts +19 -19
  448. package/src/editor/methods/permissivelyDeserializeNodes.ts +2 -2
  449. package/src/editor/methods/removeMarks.ts +1 -1
  450. package/src/editor/methods/serializeNodes.ts +1 -1
  451. package/src/editor/methods/strictlyDeserializeNodes.ts +2 -2
  452. package/src/editor/methods/textToSpecifics.ts +1 -1
  453. package/src/editor/methods/toLatestFormat.ts +1 -1
  454. package/src/index.ts +6 -6
  455. package/src/internal/utils/EditorPasteUtils.ts +2 -2
  456. package/src/internal/utils/index.ts +2 -2
  457. package/src/plugins/attributes/alignment/index.ts +1 -1
  458. package/src/plugins/attributes/index.ts +1 -1
  459. package/src/plugins/behaviour/index.ts +1 -1
  460. package/src/plugins/behaviour/paste/HtmlDeserializer.ts +2 -2
  461. package/src/plugins/behaviour/paste/createMarkHtmlDeserializer.ts +1 -1
  462. package/src/plugins/behaviour/paste/index.ts +2 -2
  463. package/src/plugins/behaviour/paste/withPaste.ts +3 -3
  464. package/src/plugins/element/anchors/AnchorElement.ts +2 -2
  465. package/src/plugins/element/anchors/AnchorHtmlDeserializer.ts +1 -1
  466. package/src/plugins/element/anchors/AnchorModifications.ts +1 -1
  467. package/src/plugins/element/anchors/index.ts +3 -3
  468. package/src/plugins/element/anchors/withAnchors.ts +5 -5
  469. package/src/plugins/element/headings/HeadingElement.ts +3 -3
  470. package/src/plugins/element/headings/HeadingHtmlDeserializer.ts +3 -3
  471. package/src/plugins/element/headings/index.ts +3 -3
  472. package/src/plugins/element/headings/withHeadings.ts +4 -4
  473. package/src/plugins/element/horizonalRules/HorizontalRuleElement.ts +1 -1
  474. package/src/plugins/element/horizonalRules/index.ts +2 -2
  475. package/src/plugins/element/horizonalRules/withHorizontalRules.ts +2 -2
  476. package/src/plugins/element/index.ts +7 -7
  477. package/src/plugins/element/lists/ListElement.ts +4 -4
  478. package/src/plugins/element/lists/ListHtmlDeserializer.ts +6 -6
  479. package/src/plugins/element/lists/ListItemElement.ts +3 -3
  480. package/src/plugins/element/lists/OrderedListElement.ts +5 -5
  481. package/src/plugins/element/lists/UnorderedListElement.ts +5 -5
  482. package/src/plugins/element/lists/index.ts +5 -5
  483. package/src/plugins/element/lists/transforms/dedentListItem.ts +5 -5
  484. package/src/plugins/element/lists/transforms/indentListItem.ts +4 -4
  485. package/src/plugins/element/lists/transforms/index.ts +4 -4
  486. package/src/plugins/element/lists/transforms/normalizeListElement.ts +2 -2
  487. package/src/plugins/element/lists/transforms/toggleListElement.ts +5 -5
  488. package/src/plugins/element/lists/withLists.ts +8 -8
  489. package/src/plugins/element/paragraphs/ParagraphElement.ts +3 -3
  490. package/src/plugins/element/paragraphs/ParagraphHtmlDeserializer.ts +2 -2
  491. package/src/plugins/element/paragraphs/index.ts +3 -3
  492. package/src/plugins/element/paragraphs/withParagraphs.ts +4 -4
  493. package/src/plugins/element/scrollTargets/ScrollTargetElement.ts +1 -1
  494. package/src/plugins/element/scrollTargets/index.ts +2 -2
  495. package/src/plugins/element/scrollTargets/withScrollTargets.ts +2 -2
  496. package/src/plugins/element/tables/TableCellElement.ts +3 -3
  497. package/src/plugins/element/tables/TableElement.ts +5 -5
  498. package/src/plugins/element/tables/TableElementSelection.ts +2 -2
  499. package/src/plugins/element/tables/TableHtmlDeserializer.ts +4 -4
  500. package/src/plugins/element/tables/TableModifications.ts +4 -4
  501. package/src/plugins/element/tables/TableRowElement.ts +4 -4
  502. package/src/plugins/element/tables/gaugeTableColumnCount.ts +2 -2
  503. package/src/plugins/element/tables/index.ts +5 -5
  504. package/src/plugins/element/tables/withTables.ts +8 -8
  505. package/src/plugins/index.ts +4 -4
  506. package/src/plugins/text/bold/boldMark.ts +1 -1
  507. package/src/plugins/text/bold/index.ts +2 -2
  508. package/src/plugins/text/bold/withBold.ts +3 -3
  509. package/src/plugins/text/code/codeMark.ts +1 -1
  510. package/src/plugins/text/code/index.ts +2 -2
  511. package/src/plugins/text/code/withCode.ts +2 -2
  512. package/src/plugins/text/highlight/highlightMark.ts +1 -1
  513. package/src/plugins/text/highlight/index.ts +2 -2
  514. package/src/plugins/text/highlight/withHighlight.ts +2 -2
  515. package/src/plugins/text/index.ts +7 -7
  516. package/src/plugins/text/italic/index.ts +2 -2
  517. package/src/plugins/text/italic/italicMark.ts +1 -1
  518. package/src/plugins/text/italic/withItalic.ts +3 -3
  519. package/src/plugins/text/newline/index.ts +1 -1
  520. package/src/plugins/text/newline/withNewline.ts +1 -1
  521. package/src/plugins/text/strikeThrough/index.ts +2 -2
  522. package/src/plugins/text/strikeThrough/strikeThroughMark.ts +1 -1
  523. package/src/plugins/text/strikeThrough/withStrikeThrough.ts +3 -3
  524. package/src/plugins/text/underline/index.ts +2 -2
  525. package/src/plugins/text/underline/underlineMark.ts +1 -1
  526. package/src/plugins/text/underline/withUnderline.ts +3 -3
  527. package/src/slate-types.ts +1 -1
  528. package/src/types/editor.ts +2 -2
  529. package/src/types/htmlDeserializer.ts +1 -1
  530. package/src/types/index.ts +3 -3
@@ -1,9 +1,9 @@
1
1
  import type { FocusEvent as ReactFocusEvent, KeyboardEvent as ReactKeyboardEvent, ReactElement } from 'react';
2
2
  import type { BaseEditor, Descendant, Editor, Element as SlateElement, Node as SlateNode, NodeEntry, Text as SlateText } from 'slate';
3
3
  import type { RenderElementProps, RenderLeafProps } from 'slate-react';
4
- import { EditorElementPlugin, EditorMarkPlugin } from './plugins';
4
+ import { EditorElementPlugin, EditorMarkPlugin } from './plugins.js';
5
5
  import type * as Slate from 'slate';
6
- import { HtmlDeserializer } from '../plugins/behaviour/paste/HtmlDeserializer';
6
+ import { HtmlDeserializer } from '../plugins/behaviour/paste/HtmlDeserializer.js';
7
7
  export type EditorDefaultElementFactory = (children: Descendant[]) => SlateElement;
8
8
  export interface WithEssentials {
9
9
  slate: typeof Slate;
@@ -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,CAAA;AAElF,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,CAA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I,CAAC,eAAe,EAAE,YAAY,CAAC,KAAK,YAAY,CAAA;IAChF,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IAC9D,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IACzD,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;CACxD;AAED,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,UAAU,IAAI,cAAc,GAAG,CAAC,CAAA;AAE3E,MAAM,WAAW,sBAAsB;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,SAAS,CAAC,CAAA;CACzC;AAED,MAAM,MAAM,aAAa,CAAC,IAAI,SAAS,SAAS,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Descendant, Element as SlateElement } from 'slate';
2
- import { HtmlDeserializer } from '../plugins/behaviour/paste/HtmlDeserializer';
2
+ import { HtmlDeserializer } from '../plugins/behaviour/paste/HtmlDeserializer.js';
3
3
  export type HtmlDeserializerNextCallback = (children: NodeList | Node[], cumulativeTextAttrs: HtmlDeserializerTextAttrs) => Descendant[];
4
4
  export interface HtmlDeserializerTextAttrs {
5
5
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"htmlDeserializer.d.ts","sourceRoot":"","sources":["../../../src/types/htmlDeserializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAE9E,MAAM,MAAM,4BAA4B,GAAG,CAAC,QAAQ,EAAE,QAAQ,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AE,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,4 +1,4 @@
1
- export * from './editor';
2
- export * from './htmlDeserializer';
3
- export * from './plugins';
1
+ export * from './editor.js';
2
+ export * from './htmlDeserializer.js';
3
+ export * from './plugins.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/react-slate-editor-base",
3
3
  "license": "Apache-2.0",
4
- "version": "2.1.0-beta.2",
4
+ "version": "2.2.0-alpha.2",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/production/index.js",
@@ -34,8 +34,8 @@
34
34
  "directory": "packages/react-slate-editor-base"
35
35
  },
36
36
  "dependencies": {
37
- "@contember/react-binding": "2.1.0-beta.1",
38
- "@contember/utilities": "2.1.0-beta.1",
37
+ "@contember/react-binding": "2.1.0-beta.2",
38
+ "@contember/utilities": "2.1.0-beta.2",
39
39
  "@radix-ui/primitive": "^1.1.3",
40
40
  "@radix-ui/react-slot": "^1.2.4",
41
41
  "is-hotkey": "^0.2.0",
@@ -2,9 +2,9 @@ import { Component, Field, FieldAccessor, FieldBasicProps, QueryLanguage, useEnt
2
2
  import { FunctionComponent, useCallback, useMemo, useState } from 'react'
3
3
  import { Descendant, Editor, Element as SlateElement, Node as SlateNode, NodeEntry, Transforms } from 'slate'
4
4
  import { Slate } from 'slate-react'
5
- import { createEditor, CreateEditorPublicOptions } from '../editor'
6
- import { paragraphElementType } from '../plugins'
7
- import { useRichTextFieldNodes } from '../internal/hooks/useRichTextFieldNodes'
5
+ import { createEditor, CreateEditorPublicOptions } from '../editor/index.js'
6
+ import { paragraphElementType } from '../plugins/index.js'
7
+ import { useRichTextFieldNodes } from '../internal/hooks/useRichTextFieldNodes.js'
8
8
 
9
9
  export type RichTextEditorProps =
10
10
  & FieldBasicProps
@@ -1,3 +1,3 @@
1
- export * from './triggers'
1
+ export * from './triggers/index.js'
2
2
 
3
- export * from './RichTextEditor'
3
+ export * from './RichTextEditor.js'
@@ -4,7 +4,7 @@ import { useSlate } from 'slate-react'
4
4
  import { Slot } from '@radix-ui/react-slot'
5
5
  import * as React from 'react'
6
6
  import { composeEventHandlers } from '@radix-ui/primitive'
7
- import { EditorTransforms } from '../../slate-reexport'
7
+ import { EditorTransforms } from '../../slate-reexport.js'
8
8
 
9
9
  export interface EditorWrapNodeTriggerProps {
10
10
  elementType: string
@@ -1,4 +1,4 @@
1
- export * from './EditorElementTrigger'
2
- export * from './EditorGenericTrigger'
3
- export * from './EditorMarkTrigger'
4
- export * from './EditorWrapNodeTrigger'
1
+ export * from './EditorElementTrigger.js'
2
+ export * from './EditorGenericTrigger.js'
3
+ export * from './EditorMarkTrigger.js'
4
+ export * from './EditorWrapNodeTrigger.js'
@@ -1,6 +1,6 @@
1
- import { createEditorWithEssentials } from './createEditorWithEssentials'
1
+ import { createEditorWithEssentials } from './createEditorWithEssentials.js'
2
2
  import { Editor } from 'slate'
3
- import { EditorPlugin, EditorPluginWrapperProps } from '../types'
3
+ import { EditorPlugin, EditorPluginWrapperProps } from '../types/index.js'
4
4
  import { createElement, FunctionComponent, ReactNode } from 'react'
5
5
  import { EntityAccessor } from '@contember/react-binding'
6
6
  import { Environment } from '@contember/react-binding'
@@ -13,11 +13,11 @@ import {
13
13
  import * as Slate from 'slate'
14
14
  import { withHistory } from 'slate-history'
15
15
  import { ReactEditor, withReact } from 'slate-react'
16
- import { EditorElementPlugin, EditorMarkPlugin } from '../types/plugins'
17
- import { TextSpecifics } from '../types/editor'
18
- import { DefaultElement } from '../internal/components/DefaultElement'
19
- import { withPaste } from '../plugins/behaviour'
20
- import { ContemberEditor } from './index'
16
+ import { EditorElementPlugin, EditorMarkPlugin } from '../types/plugins.js'
17
+ import { TextSpecifics } from '../types/editor.js'
18
+ import { DefaultElement } from '../internal/components/DefaultElement.js'
19
+ import { withPaste } from '../plugins/behaviour/index.js'
20
+ import { ContemberEditor } from './index.js'
21
21
 
22
22
  export const createEditorWithEssentials = ({ defaultElementType }: { defaultElementType: string }): Editor => {
23
23
  const underlyingEditor = withHistory(withReact(createEditor() as ReactEditor))
@@ -18,11 +18,11 @@ import {
18
18
  textToSpecifics,
19
19
  toLatestFormat,
20
20
  topLevelNodes,
21
- } from './methods'
21
+ } from './methods/index.js'
22
22
 
23
- export type { ElementDataAttributes } from './methods'
23
+ export type { ElementDataAttributes } from './methods/index.js'
24
24
 
25
- // TODO use export * as ContemberEditor from './methods' once the tooling is ready.
25
+ // TODO use export * as ContemberEditor from './methods/index.js' once the tooling is ready.
26
26
  export const ContemberEditor = {
27
27
  addMarks,
28
28
  canToggleMark,
@@ -45,4 +45,4 @@ export const ContemberEditor = {
45
45
  topLevelNodes,
46
46
  }
47
47
 
48
- export * from './createEditor'
48
+ export * from './createEditor.js'
@@ -1,5 +1,5 @@
1
1
  import { Editor, Editor as SlateEditor, Text as SlateText } from 'slate'
2
- import { TextSpecifics } from '../../types/editor'
2
+ import { TextSpecifics } from '../../types/editor.js'
3
3
 
4
4
  export const addMarks = <T extends SlateText, E extends SlateEditor>(editor: E, marks: TextSpecifics<T>) => {
5
5
  Editor.withoutNormalizing(editor, () => {
@@ -1,5 +1,5 @@
1
1
  import { Editor, Editor as SlateEditor, Element, Location } from 'slate'
2
- import { closest } from './closest'
2
+ import { closest } from './closest.js'
3
3
 
4
4
  export const closestBlockEntry = <E extends SlateEditor>(
5
5
  editor: E,
@@ -1,6 +1,6 @@
1
1
  import type { Location as SlateLocation, NodeEntry } from 'slate'
2
2
  import { Editor as SlateEditor, Element as SlateElement } from 'slate'
3
- import { closest } from './closest'
3
+ import { closest } from './closest.js'
4
4
 
5
5
  export const closestViableBlockContainerEntry = <E extends SlateEditor>(
6
6
  editor: E,
@@ -1,5 +1,5 @@
1
1
  import { Editor as SlateEditor, Node as SlateNode, Path, Text as SlateText } from 'slate'
2
- import { TextSpecifics } from '../../types/editor'
2
+ import { TextSpecifics } from '../../types/editor.js'
3
3
 
4
4
  export const hasMarks = <T extends SlateText, E extends SlateEditor>(
5
5
  editor: E,
@@ -1,5 +1,5 @@
1
1
  import { Editor as SlateEditor, Element as SlateElement, Node as SlateNode, NodeEntry, Path as SlatePath } from 'slate'
2
- import { ContemberEditor } from '../index'
2
+ import { ContemberEditor } from '../index.js'
3
3
 
4
4
  export const hasParentOfType = <Editor extends SlateEditor, Element extends SlateElement>(
5
5
  editor: Editor,
@@ -1,19 +1,19 @@
1
- export * from './addMarks'
2
- export * from './canToggleMark'
3
- export * from './closest'
4
- export * from './closestBlockEntry'
5
- export * from './closestViableBlockContainerEntry'
6
- export * from './ejectElement'
7
- export * from './elementToSpecifics'
8
- export * from './getElementDataAttributes'
9
- export * from './hasMarks'
10
- export * from './hasParentOfType'
11
- export * from './getPreviousSibling'
12
- export * from './isElementType'
13
- export * from './permissivelyDeserializeNodes'
14
- export * from './removeMarks'
15
- export * from './serializeNodes'
16
- export * from './strictlyDeserializeNodes'
17
- export * from './textToSpecifics'
18
- export * from './toLatestFormat'
19
- export * from './topLevelNodes'
1
+ export * from './addMarks.js'
2
+ export * from './canToggleMark.js'
3
+ export * from './closest.js'
4
+ export * from './closestBlockEntry.js'
5
+ export * from './closestViableBlockContainerEntry.js'
6
+ export * from './ejectElement.js'
7
+ export * from './elementToSpecifics.js'
8
+ export * from './getElementDataAttributes.js'
9
+ export * from './hasMarks.js'
10
+ export * from './hasParentOfType.js'
11
+ export * from './getPreviousSibling.js'
12
+ export * from './isElementType.js'
13
+ export * from './permissivelyDeserializeNodes.js'
14
+ export * from './removeMarks.js'
15
+ export * from './serializeNodes.js'
16
+ export * from './strictlyDeserializeNodes.js'
17
+ export * from './textToSpecifics.js'
18
+ export * from './toLatestFormat.js'
19
+ export * from './topLevelNodes.js'
@@ -1,6 +1,6 @@
1
- import { toLatestFormat } from './toLatestFormat'
1
+ import { toLatestFormat } from './toLatestFormat.js'
2
2
  import { Editor as SlateEditor, Element as SlateElement, Text as SlateText } from 'slate'
3
- import { SerializableEditorNode } from '../../types/editor'
3
+ import { SerializableEditorNode } from '../../types/editor.js'
4
4
 
5
5
  export const permissivelyDeserializeNodes = <E extends SlateEditor>(
6
6
  editor: E,
@@ -1,5 +1,5 @@
1
1
  import { Editor, Editor as SlateEditor, Text as SlateText } from 'slate'
2
- import { TextSpecifics } from '../../types/editor'
2
+ import { TextSpecifics } from '../../types/editor.js'
3
3
 
4
4
  export const removeMarks = <T extends SlateText, E extends SlateEditor>(editor: E, marks: TextSpecifics<T>) => {
5
5
  Editor.withoutNormalizing(editor, () => {
@@ -1,5 +1,5 @@
1
1
  import { Editor as SlateEditor, Element as SlateElement, Text as SlateText } from 'slate'
2
- import { SerializableEditorNode } from '../../types/editor'
2
+ import { SerializableEditorNode } from '../../types/editor.js'
3
3
 
4
4
  export const serializeNodes = <E extends SlateEditor>(
5
5
  editor: E,
@@ -1,6 +1,6 @@
1
- import { toLatestFormat } from './toLatestFormat'
1
+ import { toLatestFormat } from './toLatestFormat.js'
2
2
  import { Editor as SlateEditor, Element as SlateElement, Text as SlateText } from 'slate'
3
- import { SerializableEditorNode } from '../../types/editor'
3
+ import { SerializableEditorNode } from '../../types/editor.js'
4
4
 
5
5
  export const strictlyDeserializeNodes = <E extends SlateEditor>(
6
6
  editor: E,
@@ -1,5 +1,5 @@
1
1
  import { Text as SlateText } from 'slate'
2
- import { TextSpecifics } from '../../types/editor'
2
+ import { TextSpecifics } from '../../types/editor.js'
3
3
 
4
4
  export const textToSpecifics = <Text extends SlateText = SlateText>(textNode: Text): TextSpecifics<Text> => {
5
5
  const { text, ...specifics } = textNode
@@ -1,6 +1,6 @@
1
1
  import { BindingError } from '@contember/react-binding'
2
2
  import { Editor as SlateEditor, Element as SlateElement } from 'slate'
3
- import { SerializableEditorNode } from '../../types/editor'
3
+ import { SerializableEditorNode } from '../../types/editor.js'
4
4
 
5
5
  export const toLatestFormat = <E extends SlateEditor>(
6
6
  editor: E,
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './editor'
2
- export * from './components'
3
- export * from './types'
4
- export * from './slate-types'
5
- export * from './slate-reexport'
6
- export * from './plugins'
1
+ export * from './editor/index.js'
2
+ export * from './components/index.js'
3
+ export * from './types/index.js'
4
+ export * from './slate-types.js'
5
+ export * from './slate-reexport.js'
6
+ export * from './plugins/index.js'
@@ -1,6 +1,6 @@
1
1
  import { Element } from 'slate'
2
- import { NodesWithType } from '../../plugins/behaviour/paste/HtmlDeserializer'
3
- import { EditorDefaultElementFactory } from '../../types/editor'
2
+ import { NodesWithType } from '../../plugins/behaviour/paste/HtmlDeserializer.js'
3
+ import { EditorDefaultElementFactory } from '../../types/editor.js'
4
4
 
5
5
  export class EditorPasteUtils {
6
6
  public static wordPasteListItemContent(allNodes: Iterable<Node> | ArrayLike<Node>): Node[] {
@@ -1,2 +1,2 @@
1
- export * from './parseUrl'
2
- export * from './parseIframeSrc'
1
+ export * from './parseUrl.js'
2
+ export * from './parseIframeSrc.js'
@@ -1 +1 @@
1
- export * from './alignButton'
1
+ export * from './alignButton.js'
@@ -1 +1 @@
1
- export * from './alignment'
1
+ export * from './alignment/index.js'
@@ -1 +1 @@
1
- export * from './paste'
1
+ export * from './paste/index.js'
@@ -1,6 +1,6 @@
1
1
  import { Descendant, Element as SlateElement, Text as SlateText } from 'slate'
2
- import { HtmlDeserializerNextCallback, HtmlDeserializerPlugin } from '../../../types/htmlDeserializer'
3
- import { EditorDefaultElementFactory } from '../../../types/editor'
2
+ import { HtmlDeserializerNextCallback, HtmlDeserializerPlugin } from '../../../types/htmlDeserializer.js'
3
+ import { EditorDefaultElementFactory } from '../../../types/editor.js'
4
4
 
5
5
  const ignoredElements = ['SCRIPT', 'STYLE', 'TEMPLATE']
6
6
 
@@ -1,4 +1,4 @@
1
- import { HtmlDeserializerPlugin } from '../../../types/htmlDeserializer'
1
+ import { HtmlDeserializerPlugin } from '../../../types/htmlDeserializer.js'
2
2
 
3
3
  export const createMarkHtmlDeserializer = (
4
4
  markType: string,
@@ -1,2 +1,2 @@
1
- export * from './createMarkHtmlDeserializer'
2
- export * from './withPaste'
1
+ export * from './createMarkHtmlDeserializer.js'
2
+ export * from './withPaste.js'
@@ -1,7 +1,7 @@
1
1
  import { Editor, Transforms } from 'slate'
2
- import { EditorPlugin } from '../../../types/plugins'
3
- import { HtmlDeserializer } from './HtmlDeserializer'
4
- import { HtmlDeserializerPlugin } from '../../../types/htmlDeserializer'
2
+ import { EditorPlugin } from '../../../types/plugins.js'
3
+ import { HtmlDeserializer } from './HtmlDeserializer.js'
4
+ import { HtmlDeserializerPlugin } from '../../../types/htmlDeserializer.js'
5
5
 
6
6
  export const withPaste = (editor: Editor) => {
7
7
  const { insertData } = editor
@@ -1,6 +1,6 @@
1
1
  import { Editor, Editor as SlateEditor, Element as SlateElement, Node as SlateNode, Path, Range as SlateRange, Transforms } from 'slate'
2
- import { AnchorModifications } from './AnchorModifications'
3
- import { EditorElementPlugin, ElementRenderer } from '../../../types'
2
+ import { AnchorModifications } from './AnchorModifications.js'
3
+ import { EditorElementPlugin, ElementRenderer } from '../../../types/index.js'
4
4
 
5
5
  export const anchorElementType = 'anchor' as const
6
6
 
@@ -1,4 +1,4 @@
1
- import { HtmlDeserializerPlugin } from '../../../types'
1
+ import { HtmlDeserializerPlugin } from '../../../types/index.js'
2
2
 
3
3
  export const anchorHtmlDeserializer: HtmlDeserializerPlugin = {
4
4
  processInlinePaste: ({ element, next, cumulativeTextAttrs }) => {
@@ -1,5 +1,5 @@
1
1
  import { Editor, Range, Transforms } from 'slate'
2
- import { AnchorElement, isAnchorElement, isAnchorElementActive } from './AnchorElement'
2
+ import { AnchorElement, isAnchorElement, isAnchorElementActive } from './AnchorElement.js'
3
3
 
4
4
  export class AnchorModifications {
5
5
  public static unwrapAnchor(editor: Editor) {
@@ -1,3 +1,3 @@
1
- export * from './AnchorElement'
2
- export * from './AnchorHtmlDeserializer'
3
- export * from './withAnchors'
1
+ export * from './AnchorElement.js'
2
+ export * from './AnchorHtmlDeserializer.js'
3
+ export * from './withAnchors.js'
@@ -1,9 +1,9 @@
1
1
  import { Editor } from 'slate'
2
- import { AnchorModifications } from './AnchorModifications'
3
- import { AnchorElement, anchorElementPlugin } from './AnchorElement'
4
- import { anchorHtmlDeserializer } from './AnchorHtmlDeserializer'
5
- import { ElementRenderer } from '../../../types'
6
- import { parseUrl } from '../../../internal/utils'
2
+ import { AnchorModifications } from './AnchorModifications.js'
3
+ import { AnchorElement, anchorElementPlugin } from './AnchorElement.js'
4
+ import { anchorHtmlDeserializer } from './AnchorHtmlDeserializer.js'
5
+ import { ElementRenderer } from '../../../types/index.js'
6
+ import { parseUrl } from '../../../internal/utils/index.js'
7
7
 
8
8
  export const withAnchors = ({ render }: { render: ElementRenderer<AnchorElement> }) => <E extends Editor>(editor: E): E => {
9
9
  const { insertText } = editor
@@ -1,7 +1,7 @@
1
1
  import { Editor, Editor as SlateEditor, Element, Node as SlateNode, Path as SlatePath, Transforms } from 'slate'
2
- import { ContemberEditor } from '../../../editor'
3
- import { AlignDirection } from '../../attributes'
4
- import { EditorElementPlugin, ElementRenderer } from '../../../types'
2
+ import { ContemberEditor } from '../../../editor/index.js'
3
+ import { AlignDirection } from '../../attributes/index.js'
4
+ import { EditorElementPlugin, ElementRenderer } from '../../../types/index.js'
5
5
 
6
6
  export const headingElementType = 'heading' as const
7
7
 
@@ -1,6 +1,6 @@
1
- import { headingElementType } from './HeadingElement'
2
- import { HtmlDeserializerPlugin } from '../../../types'
3
- import { EditorPasteUtils } from '../../../internal/utils/EditorPasteUtils'
1
+ import { headingElementType } from './HeadingElement.js'
2
+ import { HtmlDeserializerPlugin } from '../../../types/index.js'
3
+ import { EditorPasteUtils } from '../../../internal/utils/EditorPasteUtils.js'
4
4
 
5
5
  export const headingHtmlDeserializer: HtmlDeserializerPlugin = {
6
6
  processBlockPaste: ({ element, next, cumulativeTextAttrs }) => {
@@ -1,3 +1,3 @@
1
- export * from './HeadingElement'
2
- export * from './HeadingHtmlDeserializer'
3
- export * from './withHeadings'
1
+ export * from './HeadingElement.js'
2
+ export * from './HeadingHtmlDeserializer.js'
3
+ export * from './withHeadings.js'
@@ -1,8 +1,8 @@
1
1
  import { Editor, Editor as SlateEditor, Element as SlateElement, Point, Range as SlateRange, Transforms } from 'slate'
2
- import { ContemberEditor } from '../../../editor'
3
- import { ejectHeadingElement, HeadingElement, headingElementPlugin, headingElementType, isHeadingElement } from './HeadingElement'
4
- import { headingHtmlDeserializer } from './HeadingHtmlDeserializer'
5
- import { ElementRenderer } from '../../../types'
2
+ import { ContemberEditor } from '../../../editor/index.js'
3
+ import { ejectHeadingElement, HeadingElement, headingElementPlugin, headingElementType, isHeadingElement } from './HeadingElement.js'
4
+ import { headingHtmlDeserializer } from './HeadingHtmlDeserializer.js'
5
+ import { ElementRenderer } from '../../../types/index.js'
6
6
 
7
7
  export const withHeadings = ({ render }: { render: ElementRenderer<HeadingElement> }) => <E extends Editor>(editor: E): E => {
8
8
  const {
@@ -1,5 +1,5 @@
1
1
  import { Editor, Editor as SlateEditor, Element as SlateElement, Node as SlateNode, Range as SlateRange, Transforms } from 'slate'
2
- import { EditorElementPlugin, ElementRenderer } from '../../../types'
2
+ import { EditorElementPlugin, ElementRenderer } from '../../../types/index.js'
3
3
 
4
4
  export const horizontalRuleElementType = 'horizontalRule' as const
5
5
 
@@ -1,2 +1,2 @@
1
- export * from './HorizontalRuleElement'
2
- export * from './withHorizontalRules'
1
+ export * from './HorizontalRuleElement.js'
2
+ export * from './withHorizontalRules.js'
@@ -1,6 +1,6 @@
1
1
  import { Editor, Element as SlateElement, Node as SlateNode, NodeEntry, Range as SlateRange, Text, Transforms } from 'slate'
2
- import { HorizontalRuleElement, horizontalRuleElementPlugin, horizontalRuleElementType } from './HorizontalRuleElement'
3
- import { ElementRenderer } from '../../../types'
2
+ import { HorizontalRuleElement, horizontalRuleElementPlugin, horizontalRuleElementType } from './HorizontalRuleElement.js'
3
+ import { ElementRenderer } from '../../../types/index.js'
4
4
 
5
5
  export const withHorizontalRules = ({ render }: { render: ElementRenderer<HorizontalRuleElement> }) => <E extends Editor>(editor: E): E => {
6
6
  const { insertText } = editor
@@ -1,7 +1,7 @@
1
- export * from './anchors'
2
- export * from './headings'
3
- export * from './horizonalRules'
4
- export * from './lists'
5
- export * from './paragraphs'
6
- export * from './scrollTargets'
7
- export * from './tables'
1
+ export * from './anchors/index.js'
2
+ export * from './headings/index.js'
3
+ export * from './horizonalRules/index.js'
4
+ export * from './lists/index.js'
5
+ export * from './paragraphs/index.js'
6
+ export * from './scrollTargets/index.js'
7
+ export * from './tables/index.js'
@@ -1,8 +1,8 @@
1
1
  import { Editor, Element, Element as SlateElement, Node, Path as SlatePath } from 'slate'
2
- import { isUnorderedListElement, UnorderedListElement } from './UnorderedListElement'
3
- import { isOrderedListElement, OrderedListElement } from './OrderedListElement'
4
- import { ContemberEditor } from '../../../editor'
5
- import { isListItemElement } from './ListItemElement'
2
+ import { isUnorderedListElement, UnorderedListElement } from './UnorderedListElement.js'
3
+ import { isOrderedListElement, OrderedListElement } from './OrderedListElement.js'
4
+ import { ContemberEditor } from '../../../editor/index.js'
5
+ import { isListItemElement } from './ListItemElement.js'
6
6
 
7
7
  export const isListElement = <T extends UnorderedListElement | OrderedListElement>(
8
8
  element: Node,
@@ -1,10 +1,10 @@
1
- import { unorderedListElementType } from './UnorderedListElement'
2
- import { orderedListElementType } from './OrderedListElement'
3
- import { listItemElementType } from './ListItemElement'
1
+ import { unorderedListElementType } from './UnorderedListElement.js'
2
+ import { orderedListElementType } from './OrderedListElement.js'
3
+ import { listItemElementType } from './ListItemElement.js'
4
4
  import { Element as SlateElement } from 'slate'
5
- import { HtmlDeserializerPlugin } from '../../../types'
6
- import { NodesWithType } from '../../behaviour/paste/HtmlDeserializer'
7
- import { EditorPasteUtils } from '../../../internal/utils/EditorPasteUtils'
5
+ import { HtmlDeserializerPlugin } from '../../../types/index.js'
6
+ import { NodesWithType } from '../../behaviour/paste/HtmlDeserializer.js'
7
+ import { EditorPasteUtils } from '../../../internal/utils/EditorPasteUtils.js'
8
8
 
9
9
  export interface ListElementProperties {
10
10
  ordered: boolean
@@ -1,7 +1,7 @@
1
1
  import { Editor, Editor as SlateEditor, Element as SlateElement, Node as SlateNode, Transforms } from 'slate'
2
- import { ContemberEditor } from '../../../editor'
3
- import { isListElement } from './ListElement'
4
- import { EditorElementPlugin, ElementRenderer } from '../../../types'
2
+ import { ContemberEditor } from '../../../editor/index.js'
3
+ import { isListElement } from './ListElement.js'
4
+ import { EditorElementPlugin, ElementRenderer } from '../../../types/index.js'
5
5
 
6
6
  export const listItemElementType = 'listItem' as const
7
7
 
@@ -1,9 +1,9 @@
1
1
  import { Editor as SlateEditor, Element as SlateElement, Node as SlateNode } from 'slate'
2
- import { ContemberEditor } from '../../../editor'
3
- import { getParentListElement } from './ListElement'
4
- import { unorderedListElementType } from './UnorderedListElement'
5
- import { normalizeListElement, toggleListElement } from './transforms'
6
- import { EditorElementPlugin, ElementRenderer } from '../../../types'
2
+ import { ContemberEditor } from '../../../editor/index.js'
3
+ import { getParentListElement } from './ListElement.js'
4
+ import { unorderedListElementType } from './UnorderedListElement.js'
5
+ import { normalizeListElement, toggleListElement } from './transforms/index.js'
6
+ import { EditorElementPlugin, ElementRenderer } from '../../../types/index.js'
7
7
 
8
8
  export const orderedListElementType = 'orderedList' as const
9
9