@ruya.sa/richtext-lexical 3.71.7

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 (1996) hide show
  1. package/LICENSE.md +22 -0
  2. package/README.md +26 -0
  3. package/dist/cell/rscEntry.d.ts +4 -0
  4. package/dist/cell/rscEntry.d.ts.map +1 -0
  5. package/dist/cell/rscEntry.js +82 -0
  6. package/dist/cell/rscEntry.js.map +1 -0
  7. package/dist/dependencyChecker.spec.js +16 -0
  8. package/dist/dependencyChecker.spec.js.map +1 -0
  9. package/dist/exports/client/Component-DOSSWC76.js +2 -0
  10. package/dist/exports/client/Component-DOSSWC76.js.map +7 -0
  11. package/dist/exports/client/Component-MBLHTKDK.js +2 -0
  12. package/dist/exports/client/Component-MBLHTKDK.js.map +7 -0
  13. package/dist/exports/client/Field-QIMXATKW.js +2 -0
  14. package/dist/exports/client/Field-QIMXATKW.js.map +7 -0
  15. package/dist/exports/client/RelationshipComponent-DCANZBOE.js +2 -0
  16. package/dist/exports/client/RelationshipComponent-DCANZBOE.js.map +7 -0
  17. package/dist/exports/client/bundled.css +1 -0
  18. package/dist/exports/client/chunk-AFXLIYGL.js +12 -0
  19. package/dist/exports/client/chunk-AFXLIYGL.js.map +7 -0
  20. package/dist/exports/client/chunk-DBWINSQN.js +2 -0
  21. package/dist/exports/client/chunk-DBWINSQN.js.map +7 -0
  22. package/dist/exports/client/chunk-DZXWP6IZ.js +2 -0
  23. package/dist/exports/client/chunk-DZXWP6IZ.js.map +7 -0
  24. package/dist/exports/client/chunk-KYWV53CD.js +2 -0
  25. package/dist/exports/client/chunk-KYWV53CD.js.map +7 -0
  26. package/dist/exports/client/chunk-SODVDWHX.js +2 -0
  27. package/dist/exports/client/chunk-SODVDWHX.js.map +7 -0
  28. package/dist/exports/client/chunk-XBW56OWQ.js +2 -0
  29. package/dist/exports/client/chunk-XBW56OWQ.js.map +7 -0
  30. package/dist/exports/client/chunk-ZRFUQZFN.js +2 -0
  31. package/dist/exports/client/chunk-ZRFUQZFN.js.map +7 -0
  32. package/dist/exports/client/component-GTKEFO4X.js +2 -0
  33. package/dist/exports/client/component-GTKEFO4X.js.map +7 -0
  34. package/dist/exports/client/componentInline-AWWKOKZC.js +2 -0
  35. package/dist/exports/client/componentInline-AWWKOKZC.js.map +7 -0
  36. package/dist/exports/client/index.d.ts +84 -0
  37. package/dist/exports/client/index.d.ts.map +1 -0
  38. package/dist/exports/client/index.js +66 -0
  39. package/dist/exports/client/index.js.map +7 -0
  40. package/dist/exports/cssEntry.d.ts +3 -0
  41. package/dist/exports/cssEntry.d.ts.map +1 -0
  42. package/dist/exports/cssEntry.js +5 -0
  43. package/dist/exports/cssEntry.js.map +1 -0
  44. package/dist/exports/html/index.d.ts +16 -0
  45. package/dist/exports/html/index.d.ts.map +1 -0
  46. package/dist/exports/html/index.js +14 -0
  47. package/dist/exports/html/index.js.map +1 -0
  48. package/dist/exports/html-async/index.d.ts +16 -0
  49. package/dist/exports/html-async/index.d.ts.map +1 -0
  50. package/dist/exports/html-async/index.js +14 -0
  51. package/dist/exports/html-async/index.js.map +1 -0
  52. package/dist/exports/plaintext/index.d.ts +3 -0
  53. package/dist/exports/plaintext/index.d.ts.map +1 -0
  54. package/dist/exports/plaintext/index.js +2 -0
  55. package/dist/exports/plaintext/index.js.map +1 -0
  56. package/dist/exports/react/index.d.ts +16 -0
  57. package/dist/exports/react/index.d.ts.map +1 -0
  58. package/dist/exports/react/index.js +15 -0
  59. package/dist/exports/react/index.js.map +1 -0
  60. package/dist/exports/server/ast/mdx.d.ts +7 -0
  61. package/dist/exports/server/ast/mdx.d.ts.map +1 -0
  62. package/dist/exports/server/ast/mdx.js +42 -0
  63. package/dist/exports/server/ast/mdx.js.map +1 -0
  64. package/dist/exports/server/migrate.d.ts +16 -0
  65. package/dist/exports/server/migrate.d.ts.map +1 -0
  66. package/dist/exports/server/migrate.js +16 -0
  67. package/dist/exports/server/migrate.js.map +1 -0
  68. package/dist/exports/server/rsc.d.ts +4 -0
  69. package/dist/exports/server/rsc.d.ts.map +1 -0
  70. package/dist/exports/server/rsc.js +4 -0
  71. package/dist/exports/server/rsc.js.map +1 -0
  72. package/dist/exports/shared.d.ts +5 -0
  73. package/dist/exports/shared.d.ts.map +1 -0
  74. package/dist/exports/shared.js +5 -0
  75. package/dist/exports/shared.js.map +1 -0
  76. package/dist/features/align/client/index.d.ts +2 -0
  77. package/dist/features/align/client/index.d.ts.map +1 -0
  78. package/dist/features/align/client/index.js +215 -0
  79. package/dist/features/align/client/index.js.map +1 -0
  80. package/dist/features/align/client/toolbarAlignGroup.d.ts +3 -0
  81. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -0
  82. package/dist/features/align/client/toolbarAlignGroup.js +13 -0
  83. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -0
  84. package/dist/features/align/server/i18n.d.ts +3 -0
  85. package/dist/features/align/server/i18n.d.ts.map +1 -0
  86. package/dist/features/align/server/i18n.js +225 -0
  87. package/dist/features/align/server/i18n.js.map +1 -0
  88. package/dist/features/align/server/index.d.ts +2 -0
  89. package/dist/features/align/server/index.d.ts.map +1 -0
  90. package/dist/features/align/server/index.js +10 -0
  91. package/dist/features/align/server/index.js.map +1 -0
  92. package/dist/features/blockquote/client/index.d.ts +2 -0
  93. package/dist/features/blockquote/client/index.d.ts.map +1 -0
  94. package/dist/features/blockquote/client/index.js +72 -0
  95. package/dist/features/blockquote/client/index.js.map +1 -0
  96. package/dist/features/blockquote/markdownTransformer.d.ts +3 -0
  97. package/dist/features/blockquote/markdownTransformer.d.ts.map +1 -0
  98. package/dist/features/blockquote/markdownTransformer.js +33 -0
  99. package/dist/features/blockquote/markdownTransformer.js.map +1 -0
  100. package/dist/features/blockquote/server/i18n.d.ts +3 -0
  101. package/dist/features/blockquote/server/i18n.d.ts.map +1 -0
  102. package/dist/features/blockquote/server/i18n.js +114 -0
  103. package/dist/features/blockquote/server/i18n.js.map +1 -0
  104. package/dist/features/blockquote/server/index.d.ts +6 -0
  105. package/dist/features/blockquote/server/index.d.ts.map +1 -0
  106. package/dist/features/blockquote/server/index.js +57 -0
  107. package/dist/features/blockquote/server/index.js.map +1 -0
  108. package/dist/features/blocks/client/component/BlockContent.d.ts +73 -0
  109. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -0
  110. package/dist/features/blocks/client/component/BlockContent.js +81 -0
  111. package/dist/features/blocks/client/component/BlockContent.js.map +1 -0
  112. package/dist/features/blocks/client/component/components/BlockCollapsible.d.ts +4 -0
  113. package/dist/features/blocks/client/component/components/BlockCollapsible.d.ts.map +1 -0
  114. package/dist/features/blocks/client/component/components/BlockCollapsible.js +19 -0
  115. package/dist/features/blocks/client/component/components/BlockCollapsible.js.map +1 -0
  116. package/dist/features/blocks/client/component/components/BlockEditButton.d.ts +3 -0
  117. package/dist/features/blocks/client/component/components/BlockEditButton.d.ts.map +1 -0
  118. package/dist/features/blocks/client/component/components/BlockEditButton.js +22 -0
  119. package/dist/features/blocks/client/component/components/BlockEditButton.js.map +1 -0
  120. package/dist/features/blocks/client/component/components/BlockRemoveButton.d.ts +3 -0
  121. package/dist/features/blocks/client/component/components/BlockRemoveButton.d.ts.map +1 -0
  122. package/dist/features/blocks/client/component/components/BlockRemoveButton.js +22 -0
  123. package/dist/features/blocks/client/component/components/BlockRemoveButton.js.map +1 -0
  124. package/dist/features/blocks/client/component/index.d.ts +17 -0
  125. package/dist/features/blocks/client/component/index.d.ts.map +1 -0
  126. package/dist/features/blocks/client/component/index.js +444 -0
  127. package/dist/features/blocks/client/component/index.js.map +1 -0
  128. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +11 -0
  129. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -0
  130. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +20 -0
  131. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -0
  132. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts +5 -0
  133. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -0
  134. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js +28 -0
  135. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js.map +1 -0
  136. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.d.ts +3 -0
  137. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.d.ts.map +1 -0
  138. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js +22 -0
  139. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js.map +1 -0
  140. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.d.ts +3 -0
  141. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.d.ts.map +1 -0
  142. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js +22 -0
  143. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js.map +1 -0
  144. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.d.ts +3 -0
  145. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.d.ts.map +1 -0
  146. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js +22 -0
  147. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js.map +1 -0
  148. package/dist/features/blocks/client/componentInline/index.d.ts +29 -0
  149. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -0
  150. package/dist/features/blocks/client/componentInline/index.js +368 -0
  151. package/dist/features/blocks/client/componentInline/index.js.map +1 -0
  152. package/dist/features/blocks/client/getBlockImageComponent.d.ts +3 -0
  153. package/dist/features/blocks/client/getBlockImageComponent.d.ts.map +1 -0
  154. package/dist/features/blocks/client/getBlockImageComponent.js +18 -0
  155. package/dist/features/blocks/client/getBlockImageComponent.js.map +1 -0
  156. package/dist/features/blocks/client/index.d.ts +2 -0
  157. package/dist/features/blocks/client/index.d.ts.map +1 -0
  158. package/dist/features/blocks/client/index.js +162 -0
  159. package/dist/features/blocks/client/index.js.map +1 -0
  160. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +6 -0
  161. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -0
  162. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +23 -0
  163. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -0
  164. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +6 -0
  165. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -0
  166. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +20 -0
  167. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -0
  168. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +12 -0
  169. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -0
  170. package/dist/features/blocks/client/markdown/markdownTransformer.js +348 -0
  171. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -0
  172. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +14 -0
  173. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -0
  174. package/dist/features/blocks/client/nodes/BlocksNode.js +54 -0
  175. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -0
  176. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +14 -0
  177. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -0
  178. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +45 -0
  179. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -0
  180. package/dist/features/blocks/client/plugin/commands.d.ts +5 -0
  181. package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -0
  182. package/dist/features/blocks/client/plugin/commands.js +6 -0
  183. package/dist/features/blocks/client/plugin/commands.js.map +1 -0
  184. package/dist/features/blocks/client/plugin/index.d.ts +5 -0
  185. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -0
  186. package/dist/features/blocks/client/plugin/index.js +102 -0
  187. package/dist/features/blocks/client/plugin/index.js.map +1 -0
  188. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +5 -0
  189. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -0
  190. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +114 -0
  191. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -0
  192. package/dist/features/blocks/premade/CodeBlock/Component/Code.d.ts +56 -0
  193. package/dist/features/blocks/premade/CodeBlock/Component/Code.d.ts.map +1 -0
  194. package/dist/features/blocks/premade/CodeBlock/Component/Code.js +100 -0
  195. package/dist/features/blocks/premade/CodeBlock/Component/Code.js.map +1 -0
  196. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +4 -0
  197. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -0
  198. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +17 -0
  199. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -0
  200. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +4 -0
  201. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -0
  202. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +26 -0
  203. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -0
  204. package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.d.ts +5 -0
  205. package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.d.ts.map +1 -0
  206. package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.js +87 -0
  207. package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.js.map +1 -0
  208. package/dist/features/blocks/premade/CodeBlock/converter.d.ts +7 -0
  209. package/dist/features/blocks/premade/CodeBlock/converter.d.ts.map +1 -0
  210. package/dist/features/blocks/premade/CodeBlock/converter.js +46 -0
  211. package/dist/features/blocks/premade/CodeBlock/converter.js.map +1 -0
  212. package/dist/features/blocks/premade/CodeBlock/converterClient.d.ts +2 -0
  213. package/dist/features/blocks/premade/CodeBlock/converterClient.d.ts.map +1 -0
  214. package/dist/features/blocks/premade/CodeBlock/converterClient.js +4 -0
  215. package/dist/features/blocks/premade/CodeBlock/converterClient.js.map +1 -0
  216. package/dist/features/blocks/premade/CodeBlock/index.d.ts +9 -0
  217. package/dist/features/blocks/premade/CodeBlock/index.d.ts.map +1 -0
  218. package/dist/features/blocks/premade/CodeBlock/index.js +55 -0
  219. package/dist/features/blocks/premade/CodeBlock/index.js.map +1 -0
  220. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +6 -0
  221. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -0
  222. package/dist/features/blocks/server/graphQLPopulationPromise.js +47 -0
  223. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -0
  224. package/dist/features/blocks/server/i18n.d.ts +3 -0
  225. package/dist/features/blocks/server/i18n.d.ts.map +1 -0
  226. package/dist/features/blocks/server/i18n.js +336 -0
  227. package/dist/features/blocks/server/i18n.js.map +1 -0
  228. package/dist/features/blocks/server/index.d.ts +39 -0
  229. package/dist/features/blocks/server/index.d.ts.map +1 -0
  230. package/dist/features/blocks/server/index.js +237 -0
  231. package/dist/features/blocks/server/index.js.map +1 -0
  232. package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.d.ts +22 -0
  233. package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.d.ts.map +1 -0
  234. package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.js +131 -0
  235. package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.js.map +1 -0
  236. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +15 -0
  237. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -0
  238. package/dist/features/blocks/server/markdown/markdownTransformer.js +368 -0
  239. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -0
  240. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +47 -0
  241. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -0
  242. package/dist/features/blocks/server/nodes/BlocksNode.js +102 -0
  243. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -0
  244. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +41 -0
  245. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -0
  246. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +97 -0
  247. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -0
  248. package/dist/features/blocks/server/validate.d.ts +11 -0
  249. package/dist/features/blocks/server/validate.d.ts.map +1 -0
  250. package/dist/features/blocks/server/validate.js +63 -0
  251. package/dist/features/blocks/server/validate.js.map +1 -0
  252. package/dist/features/converters/htmlToLexical/index.d.ts +13 -0
  253. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -0
  254. package/dist/features/converters/htmlToLexical/index.js +30 -0
  255. package/dist/features/converters/htmlToLexical/index.js.map +1 -0
  256. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +4 -0
  257. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -0
  258. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js +13 -0
  259. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -0
  260. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +4 -0
  261. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -0
  262. package/dist/features/converters/lexicalToHtml/async/converters/heading.js +13 -0
  263. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -0
  264. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +4 -0
  265. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -0
  266. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js +4 -0
  267. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -0
  268. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +4 -0
  269. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -0
  270. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js +4 -0
  271. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -0
  272. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +9 -0
  273. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -0
  274. package/dist/features/converters/lexicalToHtml/async/converters/link.js +38 -0
  275. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -0
  276. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +4 -0
  277. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -0
  278. package/dist/features/converters/lexicalToHtml/async/converters/list.js +46 -0
  279. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -0
  280. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +4 -0
  281. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -0
  282. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js +16 -0
  283. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -0
  284. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +4 -0
  285. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -0
  286. package/dist/features/converters/lexicalToHtml/async/converters/tab.js +4 -0
  287. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -0
  288. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +4 -0
  289. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -0
  290. package/dist/features/converters/lexicalToHtml/async/converters/table.js +55 -0
  291. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -0
  292. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +4 -0
  293. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -0
  294. package/dist/features/converters/lexicalToHtml/async/converters/text.js +31 -0
  295. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -0
  296. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +4 -0
  297. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -0
  298. package/dist/features/converters/lexicalToHtml/async/converters/upload.js +67 -0
  299. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -0
  300. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +4 -0
  301. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -0
  302. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js +25 -0
  303. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -0
  304. package/dist/features/converters/lexicalToHtml/async/field/index.d.ts +33 -0
  305. package/dist/features/converters/lexicalToHtml/async/field/index.d.ts.map +1 -0
  306. package/dist/features/converters/lexicalToHtml/async/field/index.js +67 -0
  307. package/dist/features/converters/lexicalToHtml/async/field/index.js.map +1 -0
  308. package/dist/features/converters/lexicalToHtml/async/index.d.ts +34 -0
  309. package/dist/features/converters/lexicalToHtml/async/index.d.ts.map +1 -0
  310. package/dist/features/converters/lexicalToHtml/async/index.js +107 -0
  311. package/dist/features/converters/lexicalToHtml/async/index.js.map +1 -0
  312. package/dist/features/converters/lexicalToHtml/async/types.d.ts +83 -0
  313. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -0
  314. package/dist/features/converters/lexicalToHtml/async/types.js +2 -0
  315. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -0
  316. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts +15 -0
  317. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts.map +1 -0
  318. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js +68 -0
  319. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -0
  320. package/dist/features/converters/lexicalToHtml/shared/types.d.ts +9 -0
  321. package/dist/features/converters/lexicalToHtml/shared/types.d.ts.map +1 -0
  322. package/dist/features/converters/lexicalToHtml/shared/types.js +2 -0
  323. package/dist/features/converters/lexicalToHtml/shared/types.js.map +1 -0
  324. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +4 -0
  325. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -0
  326. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js +13 -0
  327. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -0
  328. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +4 -0
  329. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -0
  330. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js +13 -0
  331. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -0
  332. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +4 -0
  333. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -0
  334. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js +4 -0
  335. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -0
  336. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +4 -0
  337. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -0
  338. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js +4 -0
  339. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -0
  340. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +8 -0
  341. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -0
  342. package/dist/features/converters/lexicalToHtml/sync/converters/link.js +36 -0
  343. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -0
  344. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +4 -0
  345. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -0
  346. package/dist/features/converters/lexicalToHtml/sync/converters/list.js +46 -0
  347. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -0
  348. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +4 -0
  349. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -0
  350. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js +16 -0
  351. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -0
  352. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +4 -0
  353. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -0
  354. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js +4 -0
  355. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -0
  356. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +4 -0
  357. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -0
  358. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +55 -0
  359. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -0
  360. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +4 -0
  361. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -0
  362. package/dist/features/converters/lexicalToHtml/sync/converters/text.js +31 -0
  363. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -0
  364. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +4 -0
  365. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -0
  366. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js +60 -0
  367. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -0
  368. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +4 -0
  369. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -0
  370. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js +25 -0
  371. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -0
  372. package/dist/features/converters/lexicalToHtml/sync/index.d.ts +32 -0
  373. package/dist/features/converters/lexicalToHtml/sync/index.d.ts.map +1 -0
  374. package/dist/features/converters/lexicalToHtml/sync/index.js +102 -0
  375. package/dist/features/converters/lexicalToHtml/sync/index.js.map +1 -0
  376. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +75 -0
  377. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -0
  378. package/dist/features/converters/lexicalToHtml/sync/types.js +2 -0
  379. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -0
  380. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +4 -0
  381. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +1 -0
  382. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +7 -0
  383. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +1 -0
  384. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +4 -0
  385. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +1 -0
  386. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +38 -0
  387. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +1 -0
  388. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +4 -0
  389. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +1 -0
  390. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +9 -0
  391. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +1 -0
  392. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +4 -0
  393. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +1 -0
  394. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +33 -0
  395. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +1 -0
  396. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +6 -0
  397. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +1 -0
  398. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +9 -0
  399. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +1 -0
  400. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +70 -0
  401. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +1 -0
  402. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +104 -0
  403. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +1 -0
  404. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +27 -0
  405. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +1 -0
  406. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +2 -0
  407. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +1 -0
  408. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +39 -0
  409. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +1 -0
  410. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +122 -0
  411. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +1 -0
  412. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +12 -0
  413. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +1 -0
  414. package/dist/features/converters/lexicalToHtml_deprecated/index.js +11 -0
  415. package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +1 -0
  416. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +43 -0
  417. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -0
  418. package/dist/features/converters/lexicalToJSX/Component/index.js +44 -0
  419. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -0
  420. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +4 -0
  421. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -0
  422. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js +15 -0
  423. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -0
  424. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +4 -0
  425. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -0
  426. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +16 -0
  427. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -0
  428. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +4 -0
  429. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -0
  430. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js +5 -0
  431. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -0
  432. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +4 -0
  433. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -0
  434. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js +5 -0
  435. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -0
  436. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +8 -0
  437. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -0
  438. package/dist/features/converters/lexicalToJSX/converter/converters/link.js +49 -0
  439. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -0
  440. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +4 -0
  441. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -0
  442. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +62 -0
  443. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -0
  444. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +4 -0
  445. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -0
  446. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js +20 -0
  447. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -0
  448. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +4 -0
  449. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -0
  450. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js +4 -0
  451. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -0
  452. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +4 -0
  453. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -0
  454. package/dist/features/converters/lexicalToJSX/converter/converters/table.js +62 -0
  455. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -0
  456. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +4 -0
  457. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -0
  458. package/dist/features/converters/lexicalToJSX/converter/converters/text.js +53 -0
  459. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -0
  460. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +4 -0
  461. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -0
  462. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +65 -0
  463. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -0
  464. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +4 -0
  465. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -0
  466. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js +25 -0
  467. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -0
  468. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +18 -0
  469. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -0
  470. package/dist/features/converters/lexicalToJSX/converter/index.js +134 -0
  471. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -0
  472. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +64 -0
  473. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -0
  474. package/dist/features/converters/lexicalToJSX/converter/types.js +2 -0
  475. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -0
  476. package/dist/features/converters/lexicalToMarkdown/index.d.ts +7 -0
  477. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -0
  478. package/dist/features/converters/lexicalToMarkdown/index.js +24 -0
  479. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -0
  480. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +180 -0
  481. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -0
  482. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.d.ts +7 -0
  483. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.d.ts.map +1 -0
  484. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js +15 -0
  485. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -0
  486. package/dist/features/converters/lexicalToPlaintext/shared/types.d.ts +5 -0
  487. package/dist/features/converters/lexicalToPlaintext/shared/types.d.ts.map +1 -0
  488. package/dist/features/converters/lexicalToPlaintext/shared/types.js +2 -0
  489. package/dist/features/converters/lexicalToPlaintext/shared/types.js.map +1 -0
  490. package/dist/features/converters/lexicalToPlaintext/sync/index.d.ts +22 -0
  491. package/dist/features/converters/lexicalToPlaintext/sync/index.d.ts.map +1 -0
  492. package/dist/features/converters/lexicalToPlaintext/sync/index.js +88 -0
  493. package/dist/features/converters/lexicalToPlaintext/sync/index.js.map +1 -0
  494. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +60 -0
  495. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -0
  496. package/dist/features/converters/lexicalToPlaintext/sync/types.js +2 -0
  497. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -0
  498. package/dist/features/converters/markdownToLexical/index.d.ts +8 -0
  499. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -0
  500. package/dist/features/converters/markdownToLexical/index.js +21 -0
  501. package/dist/features/converters/markdownToLexical/index.js.map +1 -0
  502. package/dist/features/converters/utilities/payloadPopulateFn.d.ts +31 -0
  503. package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -0
  504. package/dist/features/converters/utilities/payloadPopulateFn.js +42 -0
  505. package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -0
  506. package/dist/features/converters/utilities/restPopulateFn.d.ts +11 -0
  507. package/dist/features/converters/utilities/restPopulateFn.d.ts.map +1 -0
  508. package/dist/features/converters/utilities/restPopulateFn.js +33 -0
  509. package/dist/features/converters/utilities/restPopulateFn.js.map +1 -0
  510. package/dist/features/debug/jsxConverter/client/index.d.ts +2 -0
  511. package/dist/features/debug/jsxConverter/client/index.d.ts.map +1 -0
  512. package/dist/features/debug/jsxConverter/client/index.js +11 -0
  513. package/dist/features/debug/jsxConverter/client/index.js.map +1 -0
  514. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +3 -0
  515. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -0
  516. package/dist/features/debug/jsxConverter/client/plugin/index.js +55 -0
  517. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -0
  518. package/dist/features/debug/jsxConverter/server/index.d.ts +2 -0
  519. package/dist/features/debug/jsxConverter/server/index.d.ts.map +1 -0
  520. package/dist/features/debug/jsxConverter/server/index.js +8 -0
  521. package/dist/features/debug/jsxConverter/server/index.js.map +1 -0
  522. package/dist/features/debug/testRecorder/client/index.d.ts +2 -0
  523. package/dist/features/debug/testRecorder/client/index.d.ts.map +1 -0
  524. package/dist/features/debug/testRecorder/client/index.js +11 -0
  525. package/dist/features/debug/testRecorder/client/index.js.map +1 -0
  526. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +5 -0
  527. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -0
  528. package/dist/features/debug/testRecorder/client/plugin/index.js +422 -0
  529. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -0
  530. package/dist/features/debug/testRecorder/server/index.d.ts +2 -0
  531. package/dist/features/debug/testRecorder/server/index.d.ts.map +1 -0
  532. package/dist/features/debug/testRecorder/server/index.js +8 -0
  533. package/dist/features/debug/testRecorder/server/index.js.map +1 -0
  534. package/dist/features/debug/treeView/client/index.d.ts +2 -0
  535. package/dist/features/debug/treeView/client/index.d.ts.map +1 -0
  536. package/dist/features/debug/treeView/client/index.js +11 -0
  537. package/dist/features/debug/treeView/client/index.js.map +1 -0
  538. package/dist/features/debug/treeView/client/plugin/index.d.ts +4 -0
  539. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -0
  540. package/dist/features/debug/treeView/client/plugin/index.js +29 -0
  541. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -0
  542. package/dist/features/debug/treeView/server/index.d.ts +2 -0
  543. package/dist/features/debug/treeView/server/index.d.ts.map +1 -0
  544. package/dist/features/debug/treeView/server/index.js +8 -0
  545. package/dist/features/debug/treeView/server/index.js.map +1 -0
  546. package/dist/features/experimental_table/client/index.d.ts +2 -0
  547. package/dist/features/experimental_table/client/index.d.ts.map +1 -0
  548. package/dist/features/experimental_table/client/index.js +56 -0
  549. package/dist/features/experimental_table/client/index.js.map +1 -0
  550. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +4 -0
  551. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  552. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +546 -0
  553. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  554. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +4 -0
  555. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  556. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +344 -0
  557. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  558. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +5 -0
  559. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  560. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +247 -0
  561. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  562. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +24 -0
  563. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  564. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +152 -0
  565. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -0
  566. package/dist/features/experimental_table/client/utils/debounce.d.ts +61 -0
  567. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -0
  568. package/dist/features/experimental_table/client/utils/debounce.js +224 -0
  569. package/dist/features/experimental_table/client/utils/debounce.js.map +1 -0
  570. package/dist/features/experimental_table/client/utils/useDebounce.d.ts +2 -0
  571. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -0
  572. package/dist/features/experimental_table/client/utils/useDebounce.js +46 -0
  573. package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -0
  574. package/dist/features/experimental_table/markdownTransformer.d.ts +5 -0
  575. package/dist/features/experimental_table/markdownTransformer.d.ts.map +1 -0
  576. package/dist/features/experimental_table/markdownTransformer.js +131 -0
  577. package/dist/features/experimental_table/markdownTransformer.js.map +1 -0
  578. package/dist/features/experimental_table/server/index.d.ts +8 -0
  579. package/dist/features/experimental_table/server/index.d.ts.map +1 -0
  580. package/dist/features/experimental_table/server/index.js +154 -0
  581. package/dist/features/experimental_table/server/index.js.map +1 -0
  582. package/dist/features/format/bold/feature.client.d.ts +2 -0
  583. package/dist/features/format/bold/feature.client.d.ts.map +1 -0
  584. package/dist/features/format/bold/feature.client.js +45 -0
  585. package/dist/features/format/bold/feature.client.js.map +1 -0
  586. package/dist/features/format/bold/feature.server.d.ts +2 -0
  587. package/dist/features/format/bold/feature.server.d.ts.map +1 -0
  588. package/dist/features/format/bold/feature.server.js +19 -0
  589. package/dist/features/format/bold/feature.server.js.map +1 -0
  590. package/dist/features/format/bold/markdownTransformers.d.ts +6 -0
  591. package/dist/features/format/bold/markdownTransformers.d.ts.map +1 -0
  592. package/dist/features/format/bold/markdownTransformers.js +23 -0
  593. package/dist/features/format/bold/markdownTransformers.js.map +1 -0
  594. package/dist/features/format/inlineCode/feature.client.d.ts +2 -0
  595. package/dist/features/format/inlineCode/feature.client.d.ts.map +1 -0
  596. package/dist/features/format/inlineCode/feature.client.js +37 -0
  597. package/dist/features/format/inlineCode/feature.client.js.map +1 -0
  598. package/dist/features/format/inlineCode/feature.server.d.ts +2 -0
  599. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -0
  600. package/dist/features/format/inlineCode/feature.server.js +10 -0
  601. package/dist/features/format/inlineCode/feature.server.js.map +1 -0
  602. package/dist/features/format/inlineCode/markdownTransformers.d.ts +3 -0
  603. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +1 -0
  604. package/dist/features/format/inlineCode/markdownTransformers.js +6 -0
  605. package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -0
  606. package/dist/features/format/italic/feature.client.d.ts +2 -0
  607. package/dist/features/format/italic/feature.client.d.ts.map +1 -0
  608. package/dist/features/format/italic/feature.client.js +37 -0
  609. package/dist/features/format/italic/feature.client.js.map +1 -0
  610. package/dist/features/format/italic/feature.server.d.ts +2 -0
  611. package/dist/features/format/italic/feature.server.d.ts.map +1 -0
  612. package/dist/features/format/italic/feature.server.js +10 -0
  613. package/dist/features/format/italic/feature.server.js.map +1 -0
  614. package/dist/features/format/italic/markdownTransformers.d.ts +4 -0
  615. package/dist/features/format/italic/markdownTransformers.d.ts.map +1 -0
  616. package/dist/features/format/italic/markdownTransformers.js +12 -0
  617. package/dist/features/format/italic/markdownTransformers.js.map +1 -0
  618. package/dist/features/format/shared/toolbarFormatGroup.d.ts +3 -0
  619. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  620. package/dist/features/format/shared/toolbarFormatGroup.js +11 -0
  621. package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -0
  622. package/dist/features/format/strikethrough/feature.client.d.ts +2 -0
  623. package/dist/features/format/strikethrough/feature.client.d.ts.map +1 -0
  624. package/dist/features/format/strikethrough/feature.client.js +37 -0
  625. package/dist/features/format/strikethrough/feature.client.js.map +1 -0
  626. package/dist/features/format/strikethrough/feature.server.d.ts +2 -0
  627. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -0
  628. package/dist/features/format/strikethrough/feature.server.js +10 -0
  629. package/dist/features/format/strikethrough/feature.server.js.map +1 -0
  630. package/dist/features/format/strikethrough/markdownTransformers.d.ts +3 -0
  631. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +1 -0
  632. package/dist/features/format/strikethrough/markdownTransformers.js +6 -0
  633. package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -0
  634. package/dist/features/format/subscript/feature.client.d.ts +2 -0
  635. package/dist/features/format/subscript/feature.client.d.ts.map +1 -0
  636. package/dist/features/format/subscript/feature.client.js +35 -0
  637. package/dist/features/format/subscript/feature.client.js.map +1 -0
  638. package/dist/features/format/subscript/feature.server.d.ts +2 -0
  639. package/dist/features/format/subscript/feature.server.d.ts.map +1 -0
  640. package/dist/features/format/subscript/feature.server.js +8 -0
  641. package/dist/features/format/subscript/feature.server.js.map +1 -0
  642. package/dist/features/format/superscript/feature.client.d.ts +2 -0
  643. package/dist/features/format/superscript/feature.client.d.ts.map +1 -0
  644. package/dist/features/format/superscript/feature.client.js +35 -0
  645. package/dist/features/format/superscript/feature.client.js.map +1 -0
  646. package/dist/features/format/superscript/feature.server.d.ts +2 -0
  647. package/dist/features/format/superscript/feature.server.d.ts.map +1 -0
  648. package/dist/features/format/superscript/feature.server.js +8 -0
  649. package/dist/features/format/superscript/feature.server.js.map +1 -0
  650. package/dist/features/format/underline/feature.client.d.ts +2 -0
  651. package/dist/features/format/underline/feature.client.d.ts.map +1 -0
  652. package/dist/features/format/underline/feature.client.js +35 -0
  653. package/dist/features/format/underline/feature.client.js.map +1 -0
  654. package/dist/features/format/underline/feature.server.d.ts +2 -0
  655. package/dist/features/format/underline/feature.server.d.ts.map +1 -0
  656. package/dist/features/format/underline/feature.server.js +8 -0
  657. package/dist/features/format/underline/feature.server.js.map +1 -0
  658. package/dist/features/heading/client/index.d.ts +3 -0
  659. package/dist/features/heading/client/index.d.ts.map +1 -0
  660. package/dist/features/heading/client/index.js +168 -0
  661. package/dist/features/heading/client/index.js.map +1 -0
  662. package/dist/features/heading/markdownTransformer.d.ts +4 -0
  663. package/dist/features/heading/markdownTransformer.d.ts.map +1 -0
  664. package/dist/features/heading/markdownTransformer.js +26 -0
  665. package/dist/features/heading/markdownTransformer.js.map +1 -0
  666. package/dist/features/heading/server/i18n.d.ts +3 -0
  667. package/dist/features/heading/server/i18n.d.ts.map +1 -0
  668. package/dist/features/heading/server/i18n.js +114 -0
  669. package/dist/features/heading/server/i18n.js.map +1 -0
  670. package/dist/features/heading/server/index.d.ts +9 -0
  671. package/dist/features/heading/server/index.d.ts.map +1 -0
  672. package/dist/features/heading/server/index.js +69 -0
  673. package/dist/features/heading/server/index.js.map +1 -0
  674. package/dist/features/horizontalRule/client/index.d.ts +2 -0
  675. package/dist/features/horizontalRule/client/index.d.ts.map +1 -0
  676. package/dist/features/horizontalRule/client/index.js +62 -0
  677. package/dist/features/horizontalRule/client/index.js.map +1 -0
  678. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +3 -0
  679. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -0
  680. package/dist/features/horizontalRule/client/markdownTransformer.js +20 -0
  681. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -0
  682. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +19 -0
  683. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -0
  684. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +40 -0
  685. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -0
  686. package/dist/features/horizontalRule/client/plugin/index.d.ts +7 -0
  687. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -0
  688. package/dist/features/horizontalRule/client/plugin/index.js +43 -0
  689. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -0
  690. package/dist/features/horizontalRule/server/i18n.d.ts +3 -0
  691. package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -0
  692. package/dist/features/horizontalRule/server/i18n.js +114 -0
  693. package/dist/features/horizontalRule/server/i18n.js.map +1 -0
  694. package/dist/features/horizontalRule/server/index.d.ts +2 -0
  695. package/dist/features/horizontalRule/server/index.d.ts.map +1 -0
  696. package/dist/features/horizontalRule/server/index.js +25 -0
  697. package/dist/features/horizontalRule/server/index.js.map +1 -0
  698. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +3 -0
  699. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -0
  700. package/dist/features/horizontalRule/server/markdownTransformer.js +20 -0
  701. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -0
  702. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +51 -0
  703. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -0
  704. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +88 -0
  705. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -0
  706. package/dist/features/indent/client/IndentPlugin.d.ts +4 -0
  707. package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -0
  708. package/dist/features/indent/client/IndentPlugin.js +91 -0
  709. package/dist/features/indent/client/IndentPlugin.js.map +1 -0
  710. package/dist/features/indent/client/index.d.ts +3 -0
  711. package/dist/features/indent/client/index.d.ts.map +1 -0
  712. package/dist/features/indent/client/index.js +88 -0
  713. package/dist/features/indent/client/index.js.map +1 -0
  714. package/dist/features/indent/client/toolbarIndentGroup.d.ts +3 -0
  715. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -0
  716. package/dist/features/indent/client/toolbarIndentGroup.js +11 -0
  717. package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -0
  718. package/dist/features/indent/server/i18n.d.ts +3 -0
  719. package/dist/features/indent/server/i18n.d.ts.map +1 -0
  720. package/dist/features/indent/server/i18n.js +151 -0
  721. package/dist/features/indent/server/i18n.js.map +1 -0
  722. package/dist/features/indent/server/index.d.ts +16 -0
  723. package/dist/features/indent/server/index.d.ts.map +1 -0
  724. package/dist/features/indent/server/index.js +15 -0
  725. package/dist/features/indent/server/index.js.map +1 -0
  726. package/dist/features/link/client/index.d.ts +8 -0
  727. package/dist/features/link/client/index.d.ts.map +1 -0
  728. package/dist/features/link/client/index.js +96 -0
  729. package/dist/features/link/client/index.js.map +1 -0
  730. package/dist/features/link/client/plugins/autoLink/index.d.ts +20 -0
  731. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -0
  732. package/dist/features/link/client/plugins/autoLink/index.js +338 -0
  733. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -0
  734. package/dist/features/link/client/plugins/clickableLink/index.d.ts +4 -0
  735. package/dist/features/link/client/plugins/clickableLink/index.d.ts.map +1 -0
  736. package/dist/features/link/client/plugins/clickableLink/index.js +9 -0
  737. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -0
  738. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +4 -0
  739. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  740. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js +5 -0
  741. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  742. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts +5 -0
  743. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  744. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +327 -0
  745. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  746. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +5 -0
  747. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  748. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +15 -0
  749. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -0
  750. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +18 -0
  751. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  752. package/dist/features/link/client/plugins/floatingLinkEditor/types.js +5 -0
  753. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -0
  754. package/dist/features/link/client/plugins/link/index.d.ts +4 -0
  755. package/dist/features/link/client/plugins/link/index.d.ts.map +1 -0
  756. package/dist/features/link/client/plugins/link/index.js +78 -0
  757. package/dist/features/link/client/plugins/link/index.js.map +1 -0
  758. package/dist/features/link/markdownTransformer.d.ts +6 -0
  759. package/dist/features/link/markdownTransformer.d.ts.map +1 -0
  760. package/dist/features/link/markdownTransformer.js +44 -0
  761. package/dist/features/link/markdownTransformer.js.map +1 -0
  762. package/dist/features/link/nodes/AutoLinkNode.d.ts +17 -0
  763. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
  764. package/dist/features/link/nodes/AutoLinkNode.js +70 -0
  765. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -0
  766. package/dist/features/link/nodes/LinkNode.d.ts +43 -0
  767. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
  768. package/dist/features/link/nodes/LinkNode.js +331 -0
  769. package/dist/features/link/nodes/LinkNode.js.map +1 -0
  770. package/dist/features/link/nodes/types.d.ts +27 -0
  771. package/dist/features/link/nodes/types.d.ts.map +1 -0
  772. package/dist/features/link/nodes/types.js +2 -0
  773. package/dist/features/link/nodes/types.js.map +1 -0
  774. package/dist/features/link/server/baseFields.d.ts +3 -0
  775. package/dist/features/link/server/baseFields.d.ts.map +1 -0
  776. package/dist/features/link/server/baseFields.js +147 -0
  777. package/dist/features/link/server/baseFields.js.map +1 -0
  778. package/dist/features/link/server/graphQLPopulationPromise.d.ts +5 -0
  779. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -0
  780. package/dist/features/link/server/graphQLPopulationPromise.js +48 -0
  781. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -0
  782. package/dist/features/link/server/i18n.d.ts +3 -0
  783. package/dist/features/link/server/i18n.d.ts.map +1 -0
  784. package/dist/features/link/server/i18n.js +151 -0
  785. package/dist/features/link/server/i18n.js.map +1 -0
  786. package/dist/features/link/server/index.d.ts +46 -0
  787. package/dist/features/link/server/index.d.ts.map +1 -0
  788. package/dist/features/link/server/index.js +161 -0
  789. package/dist/features/link/server/index.js.map +1 -0
  790. package/dist/features/link/server/transformExtraFields.d.ts +9 -0
  791. package/dist/features/link/server/transformExtraFields.d.ts.map +1 -0
  792. package/dist/features/link/server/transformExtraFields.js +20 -0
  793. package/dist/features/link/server/transformExtraFields.js.map +1 -0
  794. package/dist/features/link/server/validate.d.ts +6 -0
  795. package/dist/features/link/server/validate.d.ts.map +1 -0
  796. package/dist/features/link/server/validate.js +50 -0
  797. package/dist/features/link/server/validate.js.map +1 -0
  798. package/dist/features/lists/checklist/client/index.d.ts +2 -0
  799. package/dist/features/lists/checklist/client/index.d.ts.map +1 -0
  800. package/dist/features/lists/checklist/client/index.js +94 -0
  801. package/dist/features/lists/checklist/client/index.js.map +1 -0
  802. package/dist/features/lists/checklist/client/plugin/index.d.ts +3 -0
  803. package/dist/features/lists/checklist/client/plugin/index.d.ts.map +1 -0
  804. package/dist/features/lists/checklist/client/plugin/index.js +9 -0
  805. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -0
  806. package/dist/features/lists/checklist/markdownTransformers.d.ts +3 -0
  807. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
  808. package/dist/features/lists/checklist/markdownTransformers.js +12 -0
  809. package/dist/features/lists/checklist/markdownTransformers.js.map +1 -0
  810. package/dist/features/lists/checklist/server/i18n.d.ts +3 -0
  811. package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -0
  812. package/dist/features/lists/checklist/server/i18n.js +114 -0
  813. package/dist/features/lists/checklist/server/i18n.js.map +1 -0
  814. package/dist/features/lists/checklist/server/index.d.ts +2 -0
  815. package/dist/features/lists/checklist/server/index.d.ts.map +1 -0
  816. package/dist/features/lists/checklist/server/index.js +31 -0
  817. package/dist/features/lists/checklist/server/index.js.map +1 -0
  818. package/dist/features/lists/htmlConverter.d.ts +5 -0
  819. package/dist/features/lists/htmlConverter.d.ts.map +1 -0
  820. package/dist/features/lists/htmlConverter.js +81 -0
  821. package/dist/features/lists/htmlConverter.js.map +1 -0
  822. package/dist/features/lists/orderedList/client/index.d.ts +2 -0
  823. package/dist/features/lists/orderedList/client/index.d.ts.map +1 -0
  824. package/dist/features/lists/orderedList/client/index.js +86 -0
  825. package/dist/features/lists/orderedList/client/index.js.map +1 -0
  826. package/dist/features/lists/orderedList/markdownTransformer.d.ts +3 -0
  827. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  828. package/dist/features/lists/orderedList/markdownTransformer.js +12 -0
  829. package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -0
  830. package/dist/features/lists/orderedList/server/i18n.d.ts +3 -0
  831. package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -0
  832. package/dist/features/lists/orderedList/server/i18n.js +114 -0
  833. package/dist/features/lists/orderedList/server/i18n.js.map +1 -0
  834. package/dist/features/lists/orderedList/server/index.d.ts +2 -0
  835. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -0
  836. package/dist/features/lists/orderedList/server/index.js +31 -0
  837. package/dist/features/lists/orderedList/server/index.js.map +1 -0
  838. package/dist/features/lists/plugin/index.d.ts +12 -0
  839. package/dist/features/lists/plugin/index.d.ts.map +1 -0
  840. package/dist/features/lists/plugin/index.js +9 -0
  841. package/dist/features/lists/plugin/index.js.map +1 -0
  842. package/dist/features/lists/shared/markdown.d.ts +6 -0
  843. package/dist/features/lists/shared/markdown.d.ts.map +1 -0
  844. package/dist/features/lists/shared/markdown.js +57 -0
  845. package/dist/features/lists/shared/markdown.js.map +1 -0
  846. package/dist/features/lists/shared/shouldRegisterListBaseNodes.d.ts +2 -0
  847. package/dist/features/lists/shared/shouldRegisterListBaseNodes.d.ts.map +1 -0
  848. package/dist/features/lists/shared/shouldRegisterListBaseNodes.js +14 -0
  849. package/dist/features/lists/shared/shouldRegisterListBaseNodes.js.map +1 -0
  850. package/dist/features/lists/shared/slashMenuListGroup.d.ts +3 -0
  851. package/dist/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
  852. package/dist/features/lists/shared/slashMenuListGroup.js +12 -0
  853. package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -0
  854. package/dist/features/lists/unorderedList/client/index.d.ts +2 -0
  855. package/dist/features/lists/unorderedList/client/index.d.ts.map +1 -0
  856. package/dist/features/lists/unorderedList/client/index.js +80 -0
  857. package/dist/features/lists/unorderedList/client/index.js.map +1 -0
  858. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +3 -0
  859. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  860. package/dist/features/lists/unorderedList/markdownTransformer.js +12 -0
  861. package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  862. package/dist/features/lists/unorderedList/server/i18n.d.ts +3 -0
  863. package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -0
  864. package/dist/features/lists/unorderedList/server/i18n.js +114 -0
  865. package/dist/features/lists/unorderedList/server/i18n.js.map +1 -0
  866. package/dist/features/lists/unorderedList/server/index.d.ts +2 -0
  867. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -0
  868. package/dist/features/lists/unorderedList/server/index.js +26 -0
  869. package/dist/features/lists/unorderedList/server/index.js.map +1 -0
  870. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +3 -0
  871. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  872. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +22 -0
  873. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -0
  874. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +3 -0
  875. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
  876. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +33 -0
  877. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -0
  878. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +3 -0
  879. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
  880. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +24 -0
  881. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -0
  882. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +3 -0
  883. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  884. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +25 -0
  885. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -0
  886. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +3 -0
  887. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
  888. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +22 -0
  889. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -0
  890. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +3 -0
  891. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  892. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +28 -0
  893. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -0
  894. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +3 -0
  895. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  896. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +22 -0
  897. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -0
  898. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +3 -0
  899. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
  900. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +9 -0
  901. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -0
  902. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +19 -0
  903. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
  904. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +78 -0
  905. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -0
  906. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +23 -0
  907. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
  908. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +2 -0
  909. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -0
  910. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +2 -0
  911. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
  912. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +10 -0
  913. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -0
  914. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +10 -0
  915. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
  916. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +49 -0
  917. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -0
  918. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +9 -0
  919. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  920. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  921. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  922. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  923. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  924. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +74 -0
  925. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  926. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +3 -0
  927. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
  928. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +23 -0
  929. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -0
  930. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +3 -0
  931. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  932. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +24 -0
  933. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -0
  934. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +3 -0
  935. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
  936. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +33 -0
  937. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -0
  938. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +3 -0
  939. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
  940. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +30 -0
  941. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -0
  942. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +3 -0
  943. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  944. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +26 -0
  945. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -0
  946. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +3 -0
  947. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
  948. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +26 -0
  949. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -0
  950. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +3 -0
  951. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
  952. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +15 -0
  953. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -0
  954. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +3 -0
  955. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  956. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +27 -0
  957. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -0
  958. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +3 -0
  959. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
  960. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +26 -0
  961. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -0
  962. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +3 -0
  963. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  964. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +18 -0
  965. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -0
  966. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +3 -0
  967. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
  968. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +12 -0
  969. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -0
  970. package/dist/features/migrations/slateToLexical/converter/index.d.ts +19 -0
  971. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
  972. package/dist/features/migrations/slateToLexical/converter/index.js +130 -0
  973. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -0
  974. package/dist/features/migrations/slateToLexical/converter/types.d.ts +16 -0
  975. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
  976. package/dist/features/migrations/slateToLexical/converter/types.js +2 -0
  977. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -0
  978. package/dist/features/migrations/slateToLexical/feature.client.d.ts +2 -0
  979. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
  980. package/dist/features/migrations/slateToLexical/feature.client.js +10 -0
  981. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -0
  982. package/dist/features/migrations/slateToLexical/feature.server.d.ts +40 -0
  983. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
  984. package/dist/features/migrations/slateToLexical/feature.server.js +68 -0
  985. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -0
  986. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +9 -0
  987. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  988. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  989. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  990. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  991. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  992. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +74 -0
  993. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  994. package/dist/features/paragraph/client/index.d.ts +2 -0
  995. package/dist/features/paragraph/client/index.d.ts.map +1 -0
  996. package/dist/features/paragraph/client/index.js +68 -0
  997. package/dist/features/paragraph/client/index.js.map +1 -0
  998. package/dist/features/paragraph/server/i18n.d.ts +3 -0
  999. package/dist/features/paragraph/server/i18n.d.ts.map +1 -0
  1000. package/dist/features/paragraph/server/i18n.js +151 -0
  1001. package/dist/features/paragraph/server/i18n.js.map +1 -0
  1002. package/dist/features/paragraph/server/index.d.ts +2 -0
  1003. package/dist/features/paragraph/server/index.d.ts.map +1 -0
  1004. package/dist/features/paragraph/server/index.js +11 -0
  1005. package/dist/features/paragraph/server/index.js.map +1 -0
  1006. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +13 -0
  1007. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -0
  1008. package/dist/features/relationship/client/components/RelationshipComponent.js +134 -0
  1009. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -0
  1010. package/dist/features/relationship/client/drawer/commands.d.ts +7 -0
  1011. package/dist/features/relationship/client/drawer/commands.d.ts.map +1 -0
  1012. package/dist/features/relationship/client/drawer/commands.js +3 -0
  1013. package/dist/features/relationship/client/drawer/commands.js.map +1 -0
  1014. package/dist/features/relationship/client/drawer/index.d.ts +8 -0
  1015. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -0
  1016. package/dist/features/relationship/client/drawer/index.js +147 -0
  1017. package/dist/features/relationship/client/drawer/index.js.map +1 -0
  1018. package/dist/features/relationship/client/index.d.ts +3 -0
  1019. package/dist/features/relationship/client/index.d.ts.map +1 -0
  1020. package/dist/features/relationship/client/index.js +66 -0
  1021. package/dist/features/relationship/client/index.js.map +1 -0
  1022. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +15 -0
  1023. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -0
  1024. package/dist/features/relationship/client/nodes/RelationshipNode.js +76 -0
  1025. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -0
  1026. package/dist/features/relationship/client/plugins/index.d.ts +7 -0
  1027. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -0
  1028. package/dist/features/relationship/client/plugins/index.js +81 -0
  1029. package/dist/features/relationship/client/plugins/index.js.map +1 -0
  1030. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts +13 -0
  1031. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -0
  1032. package/dist/features/relationship/client/utils/useEnabledRelationships.js +64 -0
  1033. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -0
  1034. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +5 -0
  1035. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -0
  1036. package/dist/features/relationship/server/graphQLPopulationPromise.js +37 -0
  1037. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -0
  1038. package/dist/features/relationship/server/i18n.d.ts +3 -0
  1039. package/dist/features/relationship/server/i18n.d.ts.map +1 -0
  1040. package/dist/features/relationship/server/i18n.js +114 -0
  1041. package/dist/features/relationship/server/i18n.js.map +1 -0
  1042. package/dist/features/relationship/server/index.d.ts +27 -0
  1043. package/dist/features/relationship/server/index.d.ts.map +1 -0
  1044. package/dist/features/relationship/server/index.js +67 -0
  1045. package/dist/features/relationship/server/index.js.map +1 -0
  1046. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +36 -0
  1047. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -0
  1048. package/dist/features/relationship/server/nodes/RelationshipNode.js +111 -0
  1049. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -0
  1050. package/dist/features/shared/slashMenu/basicGroup.d.ts +3 -0
  1051. package/dist/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
  1052. package/dist/features/shared/slashMenu/basicGroup.js +12 -0
  1053. package/dist/features/shared/slashMenu/basicGroup.js.map +1 -0
  1054. package/dist/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
  1055. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  1056. package/dist/features/shared/toolbar/addDropdownGroup.js +11 -0
  1057. package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  1058. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
  1059. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  1060. package/dist/features/shared/toolbar/featureButtonsGroup.js +9 -0
  1061. package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  1062. package/dist/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
  1063. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  1064. package/dist/features/shared/toolbar/textDropdownGroup.js +11 -0
  1065. package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  1066. package/dist/features/textState/defaultColors.d.ts +91 -0
  1067. package/dist/features/textState/defaultColors.d.ts.map +1 -0
  1068. package/dist/features/textState/defaultColors.js +386 -0
  1069. package/dist/features/textState/defaultColors.js.map +1 -0
  1070. package/dist/features/textState/feature.client.d.ts +3 -0
  1071. package/dist/features/textState/feature.client.d.ts.map +1 -0
  1072. package/dist/features/textState/feature.client.js +73 -0
  1073. package/dist/features/textState/feature.client.js.map +1 -0
  1074. package/dist/features/textState/feature.server.d.ts +60 -0
  1075. package/dist/features/textState/feature.server.d.ts.map +1 -0
  1076. package/dist/features/textState/feature.server.js +27 -0
  1077. package/dist/features/textState/feature.server.js.map +1 -0
  1078. package/dist/features/textState/i18n.d.ts +3 -0
  1079. package/dist/features/textState/i18n.d.ts.map +1 -0
  1080. package/dist/features/textState/i18n.js +114 -0
  1081. package/dist/features/textState/i18n.js.map +1 -0
  1082. package/dist/features/textState/textState.d.ts +12 -0
  1083. package/dist/features/textState/textState.d.ts.map +1 -0
  1084. package/dist/features/textState/textState.js +73 -0
  1085. package/dist/features/textState/textState.js.map +1 -0
  1086. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +5 -0
  1087. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -0
  1088. package/dist/features/toolbars/fixed/client/Toolbar/index.js +321 -0
  1089. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -0
  1090. package/dist/features/toolbars/fixed/client/index.d.ts +3 -0
  1091. package/dist/features/toolbars/fixed/client/index.d.ts.map +1 -0
  1092. package/dist/features/toolbars/fixed/client/index.js +11 -0
  1093. package/dist/features/toolbars/fixed/client/index.js.map +1 -0
  1094. package/dist/features/toolbars/fixed/server/index.d.ts +28 -0
  1095. package/dist/features/toolbars/fixed/server/index.d.ts.map +1 -0
  1096. package/dist/features/toolbars/fixed/server/index.js +19 -0
  1097. package/dist/features/toolbars/fixed/server/index.js.map +1 -0
  1098. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +4 -0
  1099. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -0
  1100. package/dist/features/toolbars/inline/client/Toolbar/index.js +395 -0
  1101. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -0
  1102. package/dist/features/toolbars/inline/client/index.d.ts +2 -0
  1103. package/dist/features/toolbars/inline/client/index.d.ts.map +1 -0
  1104. package/dist/features/toolbars/inline/client/index.js +11 -0
  1105. package/dist/features/toolbars/inline/client/index.js.map +1 -0
  1106. package/dist/features/toolbars/inline/server/index.d.ts +2 -0
  1107. package/dist/features/toolbars/inline/server/index.d.ts.map +1 -0
  1108. package/dist/features/toolbars/inline/server/index.js +8 -0
  1109. package/dist/features/toolbars/inline/server/index.js.map +1 -0
  1110. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
  1111. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  1112. package/dist/features/toolbars/shared/ToolbarButton/index.js +156 -0
  1113. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  1114. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +25 -0
  1115. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  1116. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +224 -0
  1117. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  1118. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +22 -0
  1119. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  1120. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +196 -0
  1121. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  1122. package/dist/features/toolbars/types.d.ts +103 -0
  1123. package/dist/features/toolbars/types.d.ts.map +1 -0
  1124. package/dist/features/toolbars/types.js +2 -0
  1125. package/dist/features/toolbars/types.js.map +1 -0
  1126. package/dist/features/typeUtilities.d.ts +8 -0
  1127. package/dist/features/typeUtilities.d.ts.map +1 -0
  1128. package/dist/features/typeUtilities.js +7 -0
  1129. package/dist/features/typeUtilities.js.map +1 -0
  1130. package/dist/features/typesClient.d.ts +188 -0
  1131. package/dist/features/typesClient.d.ts.map +1 -0
  1132. package/dist/features/typesClient.js +2 -0
  1133. package/dist/features/typesClient.js.map +1 -0
  1134. package/dist/features/typesServer.d.ts +332 -0
  1135. package/dist/features/typesServer.d.ts.map +1 -0
  1136. package/dist/features/typesServer.js +2 -0
  1137. package/dist/features/typesServer.js.map +1 -0
  1138. package/dist/features/upload/client/component/index.d.ts +12 -0
  1139. package/dist/features/upload/client/component/index.d.ts.map +1 -0
  1140. package/dist/features/upload/client/component/index.js +210 -0
  1141. package/dist/features/upload/client/component/index.js.map +1 -0
  1142. package/dist/features/upload/client/component/pending/index.d.ts +3 -0
  1143. package/dist/features/upload/client/component/pending/index.d.ts.map +1 -0
  1144. package/dist/features/upload/client/component/pending/index.js +14 -0
  1145. package/dist/features/upload/client/component/pending/index.js.map +1 -0
  1146. package/dist/features/upload/client/drawer/commands.d.ts +7 -0
  1147. package/dist/features/upload/client/drawer/commands.d.ts.map +1 -0
  1148. package/dist/features/upload/client/drawer/commands.js +5 -0
  1149. package/dist/features/upload/client/drawer/commands.js.map +1 -0
  1150. package/dist/features/upload/client/drawer/index.d.ts +8 -0
  1151. package/dist/features/upload/client/drawer/index.d.ts.map +1 -0
  1152. package/dist/features/upload/client/drawer/index.js +151 -0
  1153. package/dist/features/upload/client/drawer/index.js.map +1 -0
  1154. package/dist/features/upload/client/index.d.ts +10 -0
  1155. package/dist/features/upload/client/index.d.ts.map +1 -0
  1156. package/dist/features/upload/client/index.js +64 -0
  1157. package/dist/features/upload/client/index.js.map +1 -0
  1158. package/dist/features/upload/client/nodes/UploadNode.d.ts +17 -0
  1159. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -0
  1160. package/dist/features/upload/client/nodes/UploadNode.js +77 -0
  1161. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -0
  1162. package/dist/features/upload/client/plugin/index.d.ts +14 -0
  1163. package/dist/features/upload/client/plugin/index.d.ts.map +1 -0
  1164. package/dist/features/upload/client/plugin/index.js +361 -0
  1165. package/dist/features/upload/client/plugin/index.js.map +1 -0
  1166. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +5 -0
  1167. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -0
  1168. package/dist/features/upload/server/graphQLPopulationPromise.js +68 -0
  1169. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -0
  1170. package/dist/features/upload/server/i18n.d.ts +3 -0
  1171. package/dist/features/upload/server/i18n.d.ts.map +1 -0
  1172. package/dist/features/upload/server/i18n.js +114 -0
  1173. package/dist/features/upload/server/i18n.js.map +1 -0
  1174. package/dist/features/upload/server/index.d.ts +33 -0
  1175. package/dist/features/upload/server/index.d.ts.map +1 -0
  1176. package/dist/features/upload/server/index.js +227 -0
  1177. package/dist/features/upload/server/index.js.map +1 -0
  1178. package/dist/features/upload/server/nodes/UploadNode.d.ts +83 -0
  1179. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -0
  1180. package/dist/features/upload/server/nodes/UploadNode.js +112 -0
  1181. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -0
  1182. package/dist/features/upload/server/nodes/conversions.d.ts +6 -0
  1183. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -0
  1184. package/dist/features/upload/server/nodes/conversions.js +53 -0
  1185. package/dist/features/upload/server/nodes/conversions.js.map +1 -0
  1186. package/dist/features/upload/server/validate.d.ts +5 -0
  1187. package/dist/features/upload/server/validate.d.ts.map +1 -0
  1188. package/dist/features/upload/server/validate.js +68 -0
  1189. package/dist/features/upload/server/validate.js.map +1 -0
  1190. package/dist/field/Diff/converters/link.d.ts +9 -0
  1191. package/dist/field/Diff/converters/link.d.ts.map +1 -0
  1192. package/dist/field/Diff/converters/link.js +47 -0
  1193. package/dist/field/Diff/converters/link.js.map +1 -0
  1194. package/dist/field/Diff/converters/listitem/index.d.ts +5 -0
  1195. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -0
  1196. package/dist/field/Diff/converters/listitem/index.js +65 -0
  1197. package/dist/field/Diff/converters/listitem/index.js.map +1 -0
  1198. package/dist/field/Diff/converters/relationship/index.d.ts +10 -0
  1199. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -0
  1200. package/dist/field/Diff/converters/relationship/index.js +69 -0
  1201. package/dist/field/Diff/converters/relationship/index.js.map +1 -0
  1202. package/dist/field/Diff/converters/unknown/index.d.ts +10 -0
  1203. package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -0
  1204. package/dist/field/Diff/converters/unknown/index.js +45 -0
  1205. package/dist/field/Diff/converters/unknown/index.js.map +1 -0
  1206. package/dist/field/Diff/converters/upload/index.d.ts +10 -0
  1207. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -0
  1208. package/dist/field/Diff/converters/upload/index.js +74 -0
  1209. package/dist/field/Diff/converters/upload/index.js.map +1 -0
  1210. package/dist/field/Diff/index.d.ts +5 -0
  1211. package/dist/field/Diff/index.d.ts.map +1 -0
  1212. package/dist/field/Diff/index.js +79 -0
  1213. package/dist/field/Diff/index.js.map +1 -0
  1214. package/dist/field/Field.d.ts +12 -0
  1215. package/dist/field/Field.d.ts.map +1 -0
  1216. package/dist/field/Field.js +182 -0
  1217. package/dist/field/Field.js.map +1 -0
  1218. package/dist/field/RenderLexical/index.d.ts +24 -0
  1219. package/dist/field/RenderLexical/index.d.ts.map +1 -0
  1220. package/dist/field/RenderLexical/index.js +131 -0
  1221. package/dist/field/RenderLexical/index.js.map +1 -0
  1222. package/dist/field/bundled.css +1 -0
  1223. package/dist/field/index.d.ts +4 -0
  1224. package/dist/field/index.d.ts.map +1 -0
  1225. package/dist/field/index.js +110 -0
  1226. package/dist/field/index.js.map +1 -0
  1227. package/dist/field/rscEntry.d.ts +8 -0
  1228. package/dist/field/rscEntry.d.ts.map +1 -0
  1229. package/dist/field/rscEntry.js +97 -0
  1230. package/dist/field/rscEntry.js.map +1 -0
  1231. package/dist/i18n.d.ts +3 -0
  1232. package/dist/i18n.d.ts.map +1 -0
  1233. package/dist/i18n.js +225 -0
  1234. package/dist/i18n.js.map +1 -0
  1235. package/dist/index.d.ts +84 -0
  1236. package/dist/index.d.ts.map +1 -0
  1237. package/dist/index.js +800 -0
  1238. package/dist/index.js.map +1 -0
  1239. package/dist/lexical/EditorPlugin.d.ts +8 -0
  1240. package/dist/lexical/EditorPlugin.d.ts.map +1 -0
  1241. package/dist/lexical/EditorPlugin.js +21 -0
  1242. package/dist/lexical/EditorPlugin.js.map +1 -0
  1243. package/dist/lexical/LexicalEditor.d.ts +8 -0
  1244. package/dist/lexical/LexicalEditor.d.ts.map +1 -0
  1245. package/dist/lexical/LexicalEditor.js +198 -0
  1246. package/dist/lexical/LexicalEditor.js.map +1 -0
  1247. package/dist/lexical/LexicalProvider.d.ts +15 -0
  1248. package/dist/lexical/LexicalProvider.d.ts.map +1 -0
  1249. package/dist/lexical/LexicalProvider.js +99 -0
  1250. package/dist/lexical/LexicalProvider.js.map +1 -0
  1251. package/dist/lexical/config/client/EditorConfigProvider.d.ts +32 -0
  1252. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
  1253. package/dist/lexical/config/client/EditorConfigProvider.js +94 -0
  1254. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -0
  1255. package/dist/lexical/config/client/default.d.ts +3 -0
  1256. package/dist/lexical/config/client/default.d.ts.map +1 -0
  1257. package/dist/lexical/config/client/default.js +8 -0
  1258. package/dist/lexical/config/client/default.js.map +1 -0
  1259. package/dist/lexical/config/client/loader.d.ts +17 -0
  1260. package/dist/lexical/config/client/loader.d.ts.map +1 -0
  1261. package/dist/lexical/config/client/loader.js +45 -0
  1262. package/dist/lexical/config/client/loader.js.map +1 -0
  1263. package/dist/lexical/config/client/sanitize.d.ts +7 -0
  1264. package/dist/lexical/config/client/sanitize.d.ts.map +1 -0
  1265. package/dist/lexical/config/client/sanitize.js +206 -0
  1266. package/dist/lexical/config/client/sanitize.js.map +1 -0
  1267. package/dist/lexical/config/server/default.d.ts +7 -0
  1268. package/dist/lexical/config/server/default.d.ts.map +1 -0
  1269. package/dist/lexical/config/server/default.js +31 -0
  1270. package/dist/lexical/config/server/default.js.map +1 -0
  1271. package/dist/lexical/config/server/loader.d.ts +11 -0
  1272. package/dist/lexical/config/server/loader.d.ts.map +1 -0
  1273. package/dist/lexical/config/server/loader.js +123 -0
  1274. package/dist/lexical/config/server/loader.js.map +1 -0
  1275. package/dist/lexical/config/server/sanitize.d.ts +6 -0
  1276. package/dist/lexical/config/server/sanitize.d.ts.map +1 -0
  1277. package/dist/lexical/config/server/sanitize.js +127 -0
  1278. package/dist/lexical/config/server/sanitize.js.map +1 -0
  1279. package/dist/lexical/config/types.d.ts +24 -0
  1280. package/dist/lexical/config/types.d.ts.map +1 -0
  1281. package/dist/lexical/config/types.js +2 -0
  1282. package/dist/lexical/config/types.js.map +1 -0
  1283. package/dist/lexical/nodes/index.d.ts +10 -0
  1284. package/dist/lexical/nodes/index.d.ts.map +1 -0
  1285. package/dist/lexical/nodes/index.js +18 -0
  1286. package/dist/lexical/nodes/index.js.map +1 -0
  1287. package/dist/lexical/plugins/ClipboardPlugin/index.d.ts +2 -0
  1288. package/dist/lexical/plugins/ClipboardPlugin/index.d.ts.map +1 -0
  1289. package/dist/lexical/plugins/ClipboardPlugin/index.js +82 -0
  1290. package/dist/lexical/plugins/ClipboardPlugin/index.js.map +1 -0
  1291. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +15 -0
  1292. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -0
  1293. package/dist/lexical/plugins/DecoratorPlugin/index.js +258 -0
  1294. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -0
  1295. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +4 -0
  1296. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -0
  1297. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +49 -0
  1298. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -0
  1299. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts +3 -0
  1300. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -0
  1301. package/dist/lexical/plugins/MarkdownShortcut/index.js +30 -0
  1302. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -0
  1303. package/dist/lexical/plugins/NormalizeSelection/index.d.ts +9 -0
  1304. package/dist/lexical/plugins/NormalizeSelection/index.d.ts.map +1 -0
  1305. package/dist/lexical/plugins/NormalizeSelection/index.js +30 -0
  1306. package/dist/lexical/plugins/NormalizeSelection/index.js.map +1 -0
  1307. package/dist/lexical/plugins/SelectAllPlugin/index.d.ts +7 -0
  1308. package/dist/lexical/plugins/SelectAllPlugin/index.d.ts.map +1 -0
  1309. package/dist/lexical/plugins/SelectAllPlugin/index.js +26 -0
  1310. package/dist/lexical/plugins/SelectAllPlugin/index.js.map +1 -0
  1311. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +31 -0
  1312. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
  1313. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +463 -0
  1314. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
  1315. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +23 -0
  1316. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
  1317. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +180 -0
  1318. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
  1319. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +51 -0
  1320. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -0
  1321. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +2 -0
  1322. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -0
  1323. package/dist/lexical/plugins/SlashMenu/index.d.ts +6 -0
  1324. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -0
  1325. package/dist/lexical/plugins/SlashMenu/index.js +199 -0
  1326. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -0
  1327. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts +23 -0
  1328. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -0
  1329. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +48 -0
  1330. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -0
  1331. package/dist/lexical/plugins/TextPlugin/index.d.ts +5 -0
  1332. package/dist/lexical/plugins/TextPlugin/index.d.ts.map +1 -0
  1333. package/dist/lexical/plugins/TextPlugin/index.js +51 -0
  1334. package/dist/lexical/plugins/TextPlugin/index.js.map +1 -0
  1335. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +6 -0
  1336. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -0
  1337. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +155 -0
  1338. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -0
  1339. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts +2 -0
  1340. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -0
  1341. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +15 -0
  1342. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -0
  1343. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts +2 -0
  1344. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -0
  1345. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +15 -0
  1346. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -0
  1347. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +3 -0
  1348. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -0
  1349. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +31 -0
  1350. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -0
  1351. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +6 -0
  1352. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -0
  1353. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +356 -0
  1354. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -0
  1355. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +9 -0
  1356. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -0
  1357. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +113 -0
  1358. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -0
  1359. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +5 -0
  1360. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
  1361. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +28 -0
  1362. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
  1363. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts +9 -0
  1364. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -0
  1365. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +28 -0
  1366. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -0
  1367. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts +5 -0
  1368. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -0
  1369. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js +18 -0
  1370. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -0
  1371. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts +31 -0
  1372. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
  1373. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +153 -0
  1374. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
  1375. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts +3 -0
  1376. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -0
  1377. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +7 -0
  1378. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -0
  1379. package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts +2 -0
  1380. package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -0
  1381. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js +6 -0
  1382. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -0
  1383. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts +2 -0
  1384. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -0
  1385. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +28 -0
  1386. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -0
  1387. package/dist/lexical/theme/EditorTheme.d.ts +3 -0
  1388. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
  1389. package/dist/lexical/theme/EditorTheme.js +69 -0
  1390. package/dist/lexical/theme/EditorTheme.js.map +1 -0
  1391. package/dist/lexical/ui/ContentEditable.d.ts +8 -0
  1392. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -0
  1393. package/dist/lexical/ui/ContentEditable.js +43 -0
  1394. package/dist/lexical/ui/ContentEditable.js.map +1 -0
  1395. package/dist/lexical/ui/icons/AI/index.d.ts +3 -0
  1396. package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -0
  1397. package/dist/lexical/ui/icons/AI/index.js +34 -0
  1398. package/dist/lexical/ui/icons/AI/index.js.map +1 -0
  1399. package/dist/lexical/ui/icons/Add/index.d.ts +3 -0
  1400. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -0
  1401. package/dist/lexical/ui/icons/Add/index.js +19 -0
  1402. package/dist/lexical/ui/icons/Add/index.js.map +1 -0
  1403. package/dist/lexical/ui/icons/Add/index.svg +4 -0
  1404. package/dist/lexical/ui/icons/Add/light.svg +4 -0
  1405. package/dist/lexical/ui/icons/AlignCenter/index.d.ts +3 -0
  1406. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -0
  1407. package/dist/lexical/ui/icons/AlignCenter/index.js +28 -0
  1408. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -0
  1409. package/dist/lexical/ui/icons/AlignJustify/index.d.ts +3 -0
  1410. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -0
  1411. package/dist/lexical/ui/icons/AlignJustify/index.js +28 -0
  1412. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -0
  1413. package/dist/lexical/ui/icons/AlignLeft/index.d.ts +3 -0
  1414. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -0
  1415. package/dist/lexical/ui/icons/AlignLeft/index.js +28 -0
  1416. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -0
  1417. package/dist/lexical/ui/icons/AlignRight/index.d.ts +3 -0
  1418. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -0
  1419. package/dist/lexical/ui/icons/AlignRight/index.js +28 -0
  1420. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -0
  1421. package/dist/lexical/ui/icons/Block/index.d.ts +3 -0
  1422. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -0
  1423. package/dist/lexical/ui/icons/Block/index.js +37 -0
  1424. package/dist/lexical/ui/icons/Block/index.js.map +1 -0
  1425. package/dist/lexical/ui/icons/Blockquote/index.d.ts +3 -0
  1426. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -0
  1427. package/dist/lexical/ui/icons/Blockquote/index.js +19 -0
  1428. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -0
  1429. package/dist/lexical/ui/icons/Bold/index.d.ts +3 -0
  1430. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -0
  1431. package/dist/lexical/ui/icons/Bold/index.js +19 -0
  1432. package/dist/lexical/ui/icons/Bold/index.js.map +1 -0
  1433. package/dist/lexical/ui/icons/Caret/index.svg +3 -0
  1434. package/dist/lexical/ui/icons/Checklist/index.d.ts +3 -0
  1435. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -0
  1436. package/dist/lexical/ui/icons/Checklist/index.js +27 -0
  1437. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -0
  1438. package/dist/lexical/ui/icons/Code/index.d.ts +3 -0
  1439. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -0
  1440. package/dist/lexical/ui/icons/Code/index.js +22 -0
  1441. package/dist/lexical/ui/icons/Code/index.js.map +1 -0
  1442. package/dist/lexical/ui/icons/CodeBlock/index.d.ts +3 -0
  1443. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -0
  1444. package/dist/lexical/ui/icons/CodeBlock/index.js +17 -0
  1445. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -0
  1446. package/dist/lexical/ui/icons/Collapse/index.d.ts +3 -0
  1447. package/dist/lexical/ui/icons/Collapse/index.d.ts.map +1 -0
  1448. package/dist/lexical/ui/icons/Collapse/index.js +18 -0
  1449. package/dist/lexical/ui/icons/Collapse/index.js.map +1 -0
  1450. package/dist/lexical/ui/icons/DraggableBlock/index.svg +9 -0
  1451. package/dist/lexical/ui/icons/DraggableBlock/light.svg +9 -0
  1452. package/dist/lexical/ui/icons/Edit/index.svg +10 -0
  1453. package/dist/lexical/ui/icons/H1/index.d.ts +3 -0
  1454. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -0
  1455. package/dist/lexical/ui/icons/H1/index.js +19 -0
  1456. package/dist/lexical/ui/icons/H1/index.js.map +1 -0
  1457. package/dist/lexical/ui/icons/H2/index.d.ts +3 -0
  1458. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -0
  1459. package/dist/lexical/ui/icons/H2/index.js +19 -0
  1460. package/dist/lexical/ui/icons/H2/index.js.map +1 -0
  1461. package/dist/lexical/ui/icons/H3/index.d.ts +3 -0
  1462. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -0
  1463. package/dist/lexical/ui/icons/H3/index.js +19 -0
  1464. package/dist/lexical/ui/icons/H3/index.js.map +1 -0
  1465. package/dist/lexical/ui/icons/H4/index.d.ts +3 -0
  1466. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -0
  1467. package/dist/lexical/ui/icons/H4/index.js +19 -0
  1468. package/dist/lexical/ui/icons/H4/index.js.map +1 -0
  1469. package/dist/lexical/ui/icons/H5/index.d.ts +3 -0
  1470. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -0
  1471. package/dist/lexical/ui/icons/H5/index.js +19 -0
  1472. package/dist/lexical/ui/icons/H5/index.js.map +1 -0
  1473. package/dist/lexical/ui/icons/H6/index.d.ts +3 -0
  1474. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -0
  1475. package/dist/lexical/ui/icons/H6/index.js +19 -0
  1476. package/dist/lexical/ui/icons/H6/index.js.map +1 -0
  1477. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts +3 -0
  1478. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -0
  1479. package/dist/lexical/ui/icons/HorizontalRule/index.js +22 -0
  1480. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -0
  1481. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts +3 -0
  1482. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -0
  1483. package/dist/lexical/ui/icons/IndentDecrease/index.js +31 -0
  1484. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -0
  1485. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts +3 -0
  1486. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
  1487. package/dist/lexical/ui/icons/IndentIncrease/index.js +31 -0
  1488. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -0
  1489. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -0
  1490. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -0
  1491. package/dist/lexical/ui/icons/InlineBlocks/index.js +21 -0
  1492. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -0
  1493. package/dist/lexical/ui/icons/Italic/index.d.ts +3 -0
  1494. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -0
  1495. package/dist/lexical/ui/icons/Italic/index.js +19 -0
  1496. package/dist/lexical/ui/icons/Italic/index.js.map +1 -0
  1497. package/dist/lexical/ui/icons/Link/index.d.ts +3 -0
  1498. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
  1499. package/dist/lexical/ui/icons/Link/index.js +20 -0
  1500. package/dist/lexical/ui/icons/Link/index.js.map +1 -0
  1501. package/dist/lexical/ui/icons/Meatballs/index.d.ts +3 -0
  1502. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -0
  1503. package/dist/lexical/ui/icons/Meatballs/index.js +22 -0
  1504. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -0
  1505. package/dist/lexical/ui/icons/OrderedList/index.d.ts +3 -0
  1506. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -0
  1507. package/dist/lexical/ui/icons/OrderedList/index.js +34 -0
  1508. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -0
  1509. package/dist/lexical/ui/icons/Relationship/index.d.ts +3 -0
  1510. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -0
  1511. package/dist/lexical/ui/icons/Relationship/index.js +34 -0
  1512. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -0
  1513. package/dist/lexical/ui/icons/Remove/index.svg +4 -0
  1514. package/dist/lexical/ui/icons/Strikethrough/index.d.ts +3 -0
  1515. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -0
  1516. package/dist/lexical/ui/icons/Strikethrough/index.js +22 -0
  1517. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -0
  1518. package/dist/lexical/ui/icons/Subscript/index.d.ts +3 -0
  1519. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -0
  1520. package/dist/lexical/ui/icons/Subscript/index.js +19 -0
  1521. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -0
  1522. package/dist/lexical/ui/icons/Superscript/index.d.ts +3 -0
  1523. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -0
  1524. package/dist/lexical/ui/icons/Superscript/index.js +19 -0
  1525. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -0
  1526. package/dist/lexical/ui/icons/Table/index.d.ts +3 -0
  1527. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -0
  1528. package/dist/lexical/ui/icons/Table/index.js +21 -0
  1529. package/dist/lexical/ui/icons/Table/index.js.map +1 -0
  1530. package/dist/lexical/ui/icons/Text/index.d.ts +3 -0
  1531. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -0
  1532. package/dist/lexical/ui/icons/Text/index.js +19 -0
  1533. package/dist/lexical/ui/icons/Text/index.js.map +1 -0
  1534. package/dist/lexical/ui/icons/TextState/index.d.ts +5 -0
  1535. package/dist/lexical/ui/icons/TextState/index.d.ts.map +1 -0
  1536. package/dist/lexical/ui/icons/TextState/index.js +23 -0
  1537. package/dist/lexical/ui/icons/TextState/index.js.map +1 -0
  1538. package/dist/lexical/ui/icons/Underline/index.d.ts +3 -0
  1539. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -0
  1540. package/dist/lexical/ui/icons/Underline/index.js +22 -0
  1541. package/dist/lexical/ui/icons/Underline/index.js.map +1 -0
  1542. package/dist/lexical/ui/icons/UnorderedList/index.d.ts +3 -0
  1543. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -0
  1544. package/dist/lexical/ui/icons/UnorderedList/index.js +49 -0
  1545. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -0
  1546. package/dist/lexical/ui/icons/Upload/index.d.ts +3 -0
  1547. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -0
  1548. package/dist/lexical/ui/icons/Upload/index.js +31 -0
  1549. package/dist/lexical/ui/icons/Upload/index.js.map +1 -0
  1550. package/dist/lexical/utils/canUseDOM.d.ts +2 -0
  1551. package/dist/lexical/utils/canUseDOM.d.ts.map +1 -0
  1552. package/dist/lexical/utils/canUseDOM.js +4 -0
  1553. package/dist/lexical/utils/canUseDOM.js.map +1 -0
  1554. package/dist/lexical/utils/environment.d.ts +18 -0
  1555. package/dist/lexical/utils/environment.d.ts.map +1 -0
  1556. package/dist/lexical/utils/environment.js +15 -0
  1557. package/dist/lexical/utils/environment.js.map +1 -0
  1558. package/dist/lexical/utils/getDOMRangeRect.d.ts +2 -0
  1559. package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -0
  1560. package/dist/lexical/utils/getDOMRangeRect.js +17 -0
  1561. package/dist/lexical/utils/getDOMRangeRect.js.map +1 -0
  1562. package/dist/lexical/utils/getSelectedNode.d.ts +3 -0
  1563. package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -0
  1564. package/dist/lexical/utils/getSelectedNode.js +22 -0
  1565. package/dist/lexical/utils/getSelectedNode.js.map +1 -0
  1566. package/dist/lexical/utils/guard.d.ts +5 -0
  1567. package/dist/lexical/utils/guard.d.ts.map +1 -0
  1568. package/dist/lexical/utils/guard.js +9 -0
  1569. package/dist/lexical/utils/guard.js.map +1 -0
  1570. package/dist/lexical/utils/joinClasses.d.ts +2 -0
  1571. package/dist/lexical/utils/joinClasses.d.ts.map +1 -0
  1572. package/dist/lexical/utils/joinClasses.js +6 -0
  1573. package/dist/lexical/utils/joinClasses.js.map +1 -0
  1574. package/dist/lexical/utils/markdown/createBlockNode.d.ts +4 -0
  1575. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -0
  1576. package/dist/lexical/utils/markdown/createBlockNode.js +11 -0
  1577. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -0
  1578. package/dist/lexical/utils/nodeFormat.d.ts +41 -0
  1579. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -0
  1580. package/dist/lexical/utils/nodeFormat.js +87 -0
  1581. package/dist/lexical/utils/nodeFormat.js.map +1 -0
  1582. package/dist/lexical/utils/point.d.ts +15 -0
  1583. package/dist/lexical/utils/point.d.ts.map +1 -0
  1584. package/dist/lexical/utils/point.js +45 -0
  1585. package/dist/lexical/utils/point.js.map +1 -0
  1586. package/dist/lexical/utils/rect.d.ts +47 -0
  1587. package/dist/lexical/utils/rect.d.ts.map +1 -0
  1588. package/dist/lexical/utils/rect.js +171 -0
  1589. package/dist/lexical/utils/rect.js.map +1 -0
  1590. package/dist/lexical/utils/setFloatingElemPosition.d.ts +12 -0
  1591. package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -0
  1592. package/dist/lexical/utils/setFloatingElemPosition.js +67 -0
  1593. package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -0
  1594. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts +2 -0
  1595. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
  1596. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js +28 -0
  1597. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  1598. package/dist/lexical/utils/swipe.d.ts +5 -0
  1599. package/dist/lexical/utils/swipe.d.ts.map +1 -0
  1600. package/dist/lexical/utils/swipe.js +99 -0
  1601. package/dist/lexical/utils/swipe.js.map +1 -0
  1602. package/dist/lexical/utils/url.d.ts +30 -0
  1603. package/dist/lexical/utils/url.d.ts.map +1 -0
  1604. package/dist/lexical/utils/url.js +84 -0
  1605. package/dist/lexical/utils/url.js.map +1 -0
  1606. package/dist/lexical/utils/url.spec.js +114 -0
  1607. package/dist/lexical/utils/url.spec.js.map +1 -0
  1608. package/dist/lexical-proxy/@lexical-headless.d.ts +2 -0
  1609. package/dist/lexical-proxy/@lexical-headless.d.ts.map +1 -0
  1610. package/dist/lexical-proxy/@lexical-headless.js +2 -0
  1611. package/dist/lexical-proxy/@lexical-headless.js.map +1 -0
  1612. package/dist/lexical-proxy/@lexical-html.d.ts +2 -0
  1613. package/dist/lexical-proxy/@lexical-html.d.ts.map +1 -0
  1614. package/dist/lexical-proxy/@lexical-html.js +2 -0
  1615. package/dist/lexical-proxy/@lexical-html.js.map +1 -0
  1616. package/dist/lexical-proxy/@lexical-link.d.ts +2 -0
  1617. package/dist/lexical-proxy/@lexical-link.d.ts.map +1 -0
  1618. package/dist/lexical-proxy/@lexical-link.js +2 -0
  1619. package/dist/lexical-proxy/@lexical-link.js.map +1 -0
  1620. package/dist/lexical-proxy/@lexical-list.d.ts +2 -0
  1621. package/dist/lexical-proxy/@lexical-list.d.ts.map +1 -0
  1622. package/dist/lexical-proxy/@lexical-list.js +2 -0
  1623. package/dist/lexical-proxy/@lexical-list.js.map +1 -0
  1624. package/dist/lexical-proxy/@lexical-mark.d.ts +2 -0
  1625. package/dist/lexical-proxy/@lexical-mark.d.ts.map +1 -0
  1626. package/dist/lexical-proxy/@lexical-mark.js +2 -0
  1627. package/dist/lexical-proxy/@lexical-mark.js.map +1 -0
  1628. package/dist/lexical-proxy/@lexical-markdown.d.ts +2 -0
  1629. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -0
  1630. package/dist/lexical-proxy/@lexical-markdown.js +2 -0
  1631. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -0
  1632. package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.d.ts +2 -0
  1633. package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.d.ts.map +1 -0
  1634. package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.js +2 -0
  1635. package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.js.map +1 -0
  1636. package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.d.ts +2 -0
  1637. package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.d.ts.map +1 -0
  1638. package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.js +2 -0
  1639. package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.js.map +1 -0
  1640. package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.d.ts +2 -0
  1641. package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.d.ts.map +1 -0
  1642. package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.js +2 -0
  1643. package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.js.map +1 -0
  1644. package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.d.ts +2 -0
  1645. package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.d.ts.map +1 -0
  1646. package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.js +2 -0
  1647. package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.js.map +1 -0
  1648. package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.d.ts +2 -0
  1649. package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.d.ts.map +1 -0
  1650. package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.js +2 -0
  1651. package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.js.map +1 -0
  1652. package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.d.ts +2 -0
  1653. package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.d.ts.map +1 -0
  1654. package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.js +2 -0
  1655. package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.js.map +1 -0
  1656. package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.d.ts +2 -0
  1657. package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.d.ts.map +1 -0
  1658. package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.js +2 -0
  1659. package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.js.map +1 -0
  1660. package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.d.ts +2 -0
  1661. package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.d.ts.map +1 -0
  1662. package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.js +2 -0
  1663. package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.js.map +1 -0
  1664. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.d.ts +2 -0
  1665. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.d.ts.map +1 -0
  1666. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.js +2 -0
  1667. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.js.map +1 -0
  1668. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.d.ts +2 -0
  1669. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.d.ts.map +1 -0
  1670. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.js +2 -0
  1671. package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.js.map +1 -0
  1672. package/dist/lexical-proxy/@lexical-react/LexicalComposer.d.ts +2 -0
  1673. package/dist/lexical-proxy/@lexical-react/LexicalComposer.d.ts.map +1 -0
  1674. package/dist/lexical-proxy/@lexical-react/LexicalComposer.js +2 -0
  1675. package/dist/lexical-proxy/@lexical-react/LexicalComposer.js.map +1 -0
  1676. package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.d.ts +2 -0
  1677. package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.d.ts.map +1 -0
  1678. package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.js +2 -0
  1679. package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.js.map +1 -0
  1680. package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.d.ts +2 -0
  1681. package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.d.ts.map +1 -0
  1682. package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.js +2 -0
  1683. package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.js.map +1 -0
  1684. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +2 -0
  1685. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +1 -0
  1686. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +2 -0
  1687. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +1 -0
  1688. package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.d.ts +2 -0
  1689. package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.d.ts.map +1 -0
  1690. package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.js +2 -0
  1691. package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.js.map +1 -0
  1692. package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.d.ts +2 -0
  1693. package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.d.ts.map +1 -0
  1694. package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.js +2 -0
  1695. package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.js.map +1 -0
  1696. package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.d.ts +2 -0
  1697. package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.d.ts.map +1 -0
  1698. package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.js +2 -0
  1699. package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.js.map +1 -0
  1700. package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.d.ts +2 -0
  1701. package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.d.ts.map +1 -0
  1702. package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.js +2 -0
  1703. package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.js.map +1 -0
  1704. package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.d.ts +2 -0
  1705. package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.d.ts.map +1 -0
  1706. package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.js +2 -0
  1707. package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.js.map +1 -0
  1708. package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.d.ts +2 -0
  1709. package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.d.ts.map +1 -0
  1710. package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.js +2 -0
  1711. package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.js.map +1 -0
  1712. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.d.ts +2 -0
  1713. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.d.ts.map +1 -0
  1714. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.js +2 -0
  1715. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.js.map +1 -0
  1716. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.d.ts +2 -0
  1717. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.d.ts.map +1 -0
  1718. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.js +2 -0
  1719. package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.js.map +1 -0
  1720. package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.d.ts +2 -0
  1721. package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.d.ts.map +1 -0
  1722. package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.js +2 -0
  1723. package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.js.map +1 -0
  1724. package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.d.ts +2 -0
  1725. package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.d.ts.map +1 -0
  1726. package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.js +2 -0
  1727. package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.js.map +1 -0
  1728. package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.d.ts +2 -0
  1729. package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.d.ts.map +1 -0
  1730. package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.js +2 -0
  1731. package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.js.map +1 -0
  1732. package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.d.ts +2 -0
  1733. package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.d.ts.map +1 -0
  1734. package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.js +2 -0
  1735. package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.js.map +1 -0
  1736. package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.d.ts +2 -0
  1737. package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.d.ts.map +1 -0
  1738. package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.js +2 -0
  1739. package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.js.map +1 -0
  1740. package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.d.ts +2 -0
  1741. package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.d.ts.map +1 -0
  1742. package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.js +2 -0
  1743. package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.js.map +1 -0
  1744. package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.d.ts +2 -0
  1745. package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.d.ts.map +1 -0
  1746. package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.js +2 -0
  1747. package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.js.map +1 -0
  1748. package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.d.ts +2 -0
  1749. package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.d.ts.map +1 -0
  1750. package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.js +2 -0
  1751. package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.js.map +1 -0
  1752. package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.d.ts +2 -0
  1753. package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.d.ts.map +1 -0
  1754. package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.js +2 -0
  1755. package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.js.map +1 -0
  1756. package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.d.ts +2 -0
  1757. package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.d.ts.map +1 -0
  1758. package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.js +2 -0
  1759. package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.js.map +1 -0
  1760. package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.d.ts +2 -0
  1761. package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.d.ts.map +1 -0
  1762. package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.js +2 -0
  1763. package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.js.map +1 -0
  1764. package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.d.ts +2 -0
  1765. package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.d.ts.map +1 -0
  1766. package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.js +2 -0
  1767. package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.js.map +1 -0
  1768. package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.d.ts +2 -0
  1769. package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.d.ts.map +1 -0
  1770. package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.js +2 -0
  1771. package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.js.map +1 -0
  1772. package/dist/lexical-proxy/@lexical-react/LexicalTreeView.d.ts +2 -0
  1773. package/dist/lexical-proxy/@lexical-react/LexicalTreeView.d.ts.map +1 -0
  1774. package/dist/lexical-proxy/@lexical-react/LexicalTreeView.js +2 -0
  1775. package/dist/lexical-proxy/@lexical-react/LexicalTreeView.js.map +1 -0
  1776. package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.d.ts +2 -0
  1777. package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.d.ts.map +1 -0
  1778. package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.js +2 -0
  1779. package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.js.map +1 -0
  1780. package/dist/lexical-proxy/@lexical-react/useLexicalEditable.d.ts +2 -0
  1781. package/dist/lexical-proxy/@lexical-react/useLexicalEditable.d.ts.map +1 -0
  1782. package/dist/lexical-proxy/@lexical-react/useLexicalEditable.js +2 -0
  1783. package/dist/lexical-proxy/@lexical-react/useLexicalEditable.js.map +1 -0
  1784. package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.d.ts +2 -0
  1785. package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.d.ts.map +1 -0
  1786. package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.js +2 -0
  1787. package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.js.map +1 -0
  1788. package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.d.ts +2 -0
  1789. package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.d.ts.map +1 -0
  1790. package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.js +2 -0
  1791. package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.js.map +1 -0
  1792. package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.d.ts +2 -0
  1793. package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.d.ts.map +1 -0
  1794. package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.js +2 -0
  1795. package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.js.map +1 -0
  1796. package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.d.ts +2 -0
  1797. package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.d.ts.map +1 -0
  1798. package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.js +2 -0
  1799. package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.js.map +1 -0
  1800. package/dist/lexical-proxy/@lexical-rich-text.d.ts +2 -0
  1801. package/dist/lexical-proxy/@lexical-rich-text.d.ts.map +1 -0
  1802. package/dist/lexical-proxy/@lexical-rich-text.js +2 -0
  1803. package/dist/lexical-proxy/@lexical-rich-text.js.map +1 -0
  1804. package/dist/lexical-proxy/@lexical-selection.d.ts +2 -0
  1805. package/dist/lexical-proxy/@lexical-selection.d.ts.map +1 -0
  1806. package/dist/lexical-proxy/@lexical-selection.js +2 -0
  1807. package/dist/lexical-proxy/@lexical-selection.js.map +1 -0
  1808. package/dist/lexical-proxy/@lexical-utils.d.ts +2 -0
  1809. package/dist/lexical-proxy/@lexical-utils.d.ts.map +1 -0
  1810. package/dist/lexical-proxy/@lexical-utils.js +2 -0
  1811. package/dist/lexical-proxy/@lexical-utils.js.map +1 -0
  1812. package/dist/lexical-proxy/lexical.d.ts +2 -0
  1813. package/dist/lexical-proxy/lexical.d.ts.map +1 -0
  1814. package/dist/lexical-proxy/lexical.js +2 -0
  1815. package/dist/lexical-proxy/lexical.js.map +1 -0
  1816. package/dist/nodeTypes.d.ts +74 -0
  1817. package/dist/nodeTypes.d.ts.map +1 -0
  1818. package/dist/nodeTypes.js +5 -0
  1819. package/dist/nodeTypes.js.map +1 -0
  1820. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +14 -0
  1821. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +1 -0
  1822. package/dist/packages/@lexical/markdown/MarkdownExport.js +213 -0
  1823. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +1 -0
  1824. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +19 -0
  1825. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +1 -0
  1826. package/dist/packages/@lexical/markdown/MarkdownImport.js +199 -0
  1827. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +1 -0
  1828. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +11 -0
  1829. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +1 -0
  1830. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +304 -0
  1831. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +1 -0
  1832. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +147 -0
  1833. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +1 -0
  1834. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +268 -0
  1835. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +1 -0
  1836. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +22 -0
  1837. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +1 -0
  1838. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +91 -0
  1839. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +1 -0
  1840. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +21 -0
  1841. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +1 -0
  1842. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +54 -0
  1843. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +1 -0
  1844. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +18 -0
  1845. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +1 -0
  1846. package/dist/packages/@lexical/markdown/importTextTransformers.js +54 -0
  1847. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +1 -0
  1848. package/dist/packages/@lexical/markdown/index.d.ts +29 -0
  1849. package/dist/packages/@lexical/markdown/index.d.ts.map +1 -0
  1850. package/dist/packages/@lexical/markdown/index.js +39 -0
  1851. package/dist/packages/@lexical/markdown/index.js.map +1 -0
  1852. package/dist/packages/@lexical/markdown/utils.d.ts +34 -0
  1853. package/dist/packages/@lexical/markdown/utils.d.ts.map +1 -0
  1854. package/dist/packages/@lexical/markdown/utils.js +267 -0
  1855. package/dist/packages/@lexical/markdown/utils.js.map +1 -0
  1856. package/dist/populateGraphQL/defaultValue.d.ts +3 -0
  1857. package/dist/populateGraphQL/defaultValue.d.ts.map +1 -0
  1858. package/dist/populateGraphQL/defaultValue.js +28 -0
  1859. package/dist/populateGraphQL/defaultValue.js.map +1 -0
  1860. package/dist/populateGraphQL/populate.d.ts +18 -0
  1861. package/dist/populateGraphQL/populate.d.ts.map +1 -0
  1862. package/dist/populateGraphQL/populate.js +40 -0
  1863. package/dist/populateGraphQL/populate.js.map +1 -0
  1864. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +13 -0
  1865. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -0
  1866. package/dist/populateGraphQL/populateLexicalPopulationPromises.js +55 -0
  1867. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -0
  1868. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +29 -0
  1869. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -0
  1870. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +45 -0
  1871. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -0
  1872. package/dist/types.d.ts +109 -0
  1873. package/dist/types.d.ts.map +1 -0
  1874. package/dist/types.js +2 -0
  1875. package/dist/types.js.map +1 -0
  1876. package/dist/utilities/applyBaseFilterToFields.d.ts +10 -0
  1877. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -0
  1878. package/dist/utilities/applyBaseFilterToFields.js +97 -0
  1879. package/dist/utilities/applyBaseFilterToFields.js.map +1 -0
  1880. package/dist/utilities/buildEditorState.d.ts +52 -0
  1881. package/dist/utilities/buildEditorState.d.ts.map +1 -0
  1882. package/dist/utilities/buildEditorState.js +85 -0
  1883. package/dist/utilities/buildEditorState.js.map +1 -0
  1884. package/dist/utilities/buildInitialState.d.ts +30 -0
  1885. package/dist/utilities/buildInitialState.d.ts.map +1 -0
  1886. package/dist/utilities/buildInitialState.js +57 -0
  1887. package/dist/utilities/buildInitialState.js.map +1 -0
  1888. package/dist/utilities/createClientFeature.d.ts +18 -0
  1889. package/dist/utilities/createClientFeature.d.ts.map +1 -0
  1890. package/dist/utilities/createClientFeature.js +51 -0
  1891. package/dist/utilities/createClientFeature.js.map +1 -0
  1892. package/dist/utilities/createServerFeature.d.ts +17 -0
  1893. package/dist/utilities/createServerFeature.d.ts.map +1 -0
  1894. package/dist/utilities/createServerFeature.js +51 -0
  1895. package/dist/utilities/createServerFeature.js.map +1 -0
  1896. package/dist/utilities/editorConfigFactory.d.ts +57 -0
  1897. package/dist/utilities/editorConfigFactory.d.ts.map +1 -0
  1898. package/dist/utilities/editorConfigFactory.js +89 -0
  1899. package/dist/utilities/editorConfigFactory.js.map +1 -0
  1900. package/dist/utilities/fieldsDrawer/Drawer.d.ts +21 -0
  1901. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -0
  1902. package/dist/utilities/fieldsDrawer/Drawer.js +80 -0
  1903. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -0
  1904. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -0
  1905. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -0
  1906. package/dist/utilities/fieldsDrawer/DrawerContent.js +138 -0
  1907. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -0
  1908. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +13 -0
  1909. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -0
  1910. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +129 -0
  1911. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -0
  1912. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts +10 -0
  1913. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -0
  1914. package/dist/utilities/fieldsDrawer/useLexicalDrawer.js +136 -0
  1915. package/dist/utilities/fieldsDrawer/useLexicalDrawer.js.map +1 -0
  1916. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts +16 -0
  1917. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -0
  1918. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js +154 -0
  1919. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js.map +1 -0
  1920. package/dist/utilities/forEachNodeRecursively.d.ts +10 -0
  1921. package/dist/utilities/forEachNodeRecursively.d.ts.map +1 -0
  1922. package/dist/utilities/forEachNodeRecursively.js +29 -0
  1923. package/dist/utilities/forEachNodeRecursively.js.map +1 -0
  1924. package/dist/utilities/generateImportMap.d.ts +8 -0
  1925. package/dist/utilities/generateImportMap.d.ts.map +1 -0
  1926. package/dist/utilities/generateImportMap.js +52 -0
  1927. package/dist/utilities/generateImportMap.js.map +1 -0
  1928. package/dist/utilities/generateSchemaMap.d.ts +6 -0
  1929. package/dist/utilities/generateSchemaMap.d.ts.map +1 -0
  1930. package/dist/utilities/generateSchemaMap.js +40 -0
  1931. package/dist/utilities/generateSchemaMap.js.map +1 -0
  1932. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +7 -0
  1933. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -0
  1934. package/dist/utilities/getDefaultSanitizedEditorConfig.js +21 -0
  1935. package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -0
  1936. package/dist/utilities/initLexicalFeatures.d.ts +20 -0
  1937. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -0
  1938. package/dist/utilities/initLexicalFeatures.js +72 -0
  1939. package/dist/utilities/initLexicalFeatures.js.map +1 -0
  1940. package/dist/utilities/jsx/collectTopLevelJSXInLines.d.ts +52 -0
  1941. package/dist/utilities/jsx/collectTopLevelJSXInLines.d.ts.map +1 -0
  1942. package/dist/utilities/jsx/collectTopLevelJSXInLines.js +80 -0
  1943. package/dist/utilities/jsx/collectTopLevelJSXInLines.js.map +1 -0
  1944. package/dist/utilities/jsx/declare.d.js +2 -0
  1945. package/dist/utilities/jsx/declare.d.js.map +1 -0
  1946. package/dist/utilities/jsx/extractPropsFromJSXPropsString.d.ts +12 -0
  1947. package/dist/utilities/jsx/extractPropsFromJSXPropsString.d.ts.map +1 -0
  1948. package/dist/utilities/jsx/extractPropsFromJSXPropsString.js +129 -0
  1949. package/dist/utilities/jsx/extractPropsFromJSXPropsString.js.map +1 -0
  1950. package/dist/utilities/jsx/jsx.d.ts +26 -0
  1951. package/dist/utilities/jsx/jsx.d.ts.map +1 -0
  1952. package/dist/utilities/jsx/jsx.js +106 -0
  1953. package/dist/utilities/jsx/jsx.js.map +1 -0
  1954. package/dist/utilities/jsx/jsx.spec.js +178 -0
  1955. package/dist/utilities/jsx/jsx.spec.js.map +1 -0
  1956. package/dist/utilities/migrateSlateToLexical/index.d.ts +15 -0
  1957. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +1 -0
  1958. package/dist/utilities/migrateSlateToLexical/index.js +153 -0
  1959. package/dist/utilities/migrateSlateToLexical/index.js.map +1 -0
  1960. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +10 -0
  1961. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -0
  1962. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +85 -0
  1963. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -0
  1964. package/dist/utilities/recurseNodeTree.d.ts +9 -0
  1965. package/dist/utilities/recurseNodeTree.d.ts.map +1 -0
  1966. package/dist/utilities/recurseNodeTree.js +30 -0
  1967. package/dist/utilities/recurseNodeTree.js.map +1 -0
  1968. package/dist/utilities/upgradeLexicalData/index.d.ts +11 -0
  1969. package/dist/utilities/upgradeLexicalData/index.d.ts.map +1 -0
  1970. package/dist/utilities/upgradeLexicalData/index.js +118 -0
  1971. package/dist/utilities/upgradeLexicalData/index.js.map +1 -0
  1972. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts +10 -0
  1973. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -0
  1974. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +88 -0
  1975. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -0
  1976. package/dist/utilities/useLexicalFeature.d.ts +3 -0
  1977. package/dist/utilities/useLexicalFeature.d.ts.map +1 -0
  1978. package/dist/utilities/useLexicalFeature.js +21 -0
  1979. package/dist/utilities/useLexicalFeature.js.map +1 -0
  1980. package/dist/utilities/useRunDeprioritized.d.ts +26 -0
  1981. package/dist/utilities/useRunDeprioritized.d.ts.map +1 -0
  1982. package/dist/utilities/useRunDeprioritized.js +68 -0
  1983. package/dist/utilities/useRunDeprioritized.js.map +1 -0
  1984. package/dist/validate/hasText.d.ts +3 -0
  1985. package/dist/validate/hasText.d.ts.map +1 -0
  1986. package/dist/validate/hasText.js +25 -0
  1987. package/dist/validate/hasText.js.map +1 -0
  1988. package/dist/validate/index.d.ts +7 -0
  1989. package/dist/validate/index.d.ts.map +1 -0
  1990. package/dist/validate/index.js +33 -0
  1991. package/dist/validate/index.js.map +1 -0
  1992. package/dist/validate/validateNodes.d.ts +12 -0
  1993. package/dist/validate/validateNodes.d.ts.map +1 -0
  1994. package/dist/validate/validateNodes.js +35 -0
  1995. package/dist/validate/validateNodes.js.map +1 -0
  1996. package/package.json +747 -0
@@ -0,0 +1,199 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */import { $isListItemNode, $isListNode } from '@lexical/list';
8
+ import { $isQuoteNode } from '@lexical/rich-text';
9
+ import { $findMatchingParent } from '@lexical/utils';
10
+ import { $createLineBreakNode, $createParagraphNode, $createTextNode, $getRoot, $getSelection, $isParagraphNode } from 'lexical';
11
+ import { importTextTransformers } from './importTextTransformers.js';
12
+ import { isEmptyParagraph, transformersByType } from './utils.js';
13
+ /**
14
+ * Renders markdown from a string. The selection is moved to the start after the operation.
15
+ */
16
+ export function createMarkdownImport(transformers, shouldPreserveNewLines = false) {
17
+ const byType = transformersByType(transformers);
18
+ const textFormatTransformersIndex = createTextFormatTransformersIndex(byType.textFormat);
19
+ return (markdownString, node) => {
20
+ const lines = markdownString.split('\n');
21
+ const linesLength = lines.length;
22
+ const root = node || $getRoot();
23
+ root.clear();
24
+ for (let i = 0; i < linesLength; i++) {
25
+ const lineText = lines[i];
26
+ const [imported, shiftedIndex] = $importMultiline(lines, i, byType.multilineElement, root);
27
+ if (imported) {
28
+ // If a multiline markdown element was imported, we don't want to process the lines that were part of it anymore.
29
+ // There could be other sub-markdown elements (both multiline and normal ones) matching within this matched multiline element's children.
30
+ // However, it would be the responsibility of the matched multiline transformer to decide how it wants to handle them.
31
+ // We cannot handle those, as there is no way for us to know how to maintain the correct order of generated lexical nodes for possible children.
32
+ i = shiftedIndex; // Next loop will start from the line after the last line of the multiline element
33
+ continue;
34
+ }
35
+ $importBlocks(lineText, root, byType.element, textFormatTransformersIndex, byType.textMatch);
36
+ }
37
+ // By default, removing empty paragraphs as md does not really
38
+ // allow empty lines and uses them as delimiter.
39
+ // If you need empty lines set shouldPreserveNewLines = true.
40
+ const children = root.getChildren();
41
+ for (const child of children) {
42
+ if (!shouldPreserveNewLines && isEmptyParagraph(child) && root.getChildrenSize() > 1) {
43
+ child.remove();
44
+ }
45
+ }
46
+ if ($getSelection() !== null) {
47
+ root.selectStart();
48
+ }
49
+ };
50
+ }
51
+ /**
52
+ *
53
+ * @returns first element of the returned tuple is a boolean indicating if a multiline element was imported. The second element is the index of the last line that was processed.
54
+ */
55
+ function $importMultiline(lines, startLineIndex, multilineElementTransformers, rootNode) {
56
+ for (const transformer of multilineElementTransformers) {
57
+ const {
58
+ handleImportAfterStartMatch,
59
+ regExpEnd,
60
+ regExpStart,
61
+ replace
62
+ } = transformer;
63
+ const startMatch = lines[startLineIndex]?.match(regExpStart);
64
+ if (!startMatch) {
65
+ continue; // Try next transformer
66
+ }
67
+ if (handleImportAfterStartMatch) {
68
+ const result = handleImportAfterStartMatch({
69
+ lines,
70
+ rootNode,
71
+ startLineIndex,
72
+ startMatch,
73
+ transformer
74
+ });
75
+ if (result === null) {
76
+ continue;
77
+ } else if (result) {
78
+ return result;
79
+ }
80
+ }
81
+ const regexpEndRegex = typeof regExpEnd === 'object' && 'regExp' in regExpEnd ? regExpEnd.regExp : regExpEnd;
82
+ const isEndOptional = regExpEnd && typeof regExpEnd === 'object' && 'optional' in regExpEnd ? regExpEnd.optional : !regExpEnd;
83
+ let endLineIndex = startLineIndex;
84
+ const linesLength = lines.length;
85
+ // check every single line for the closing match. It could also be on the same line as the opening match.
86
+ while (endLineIndex < linesLength) {
87
+ const endMatch = regexpEndRegex ? lines[endLineIndex]?.match(regexpEndRegex) : null;
88
+ if (!endMatch) {
89
+ if (!isEndOptional || isEndOptional && endLineIndex < linesLength - 1 // Optional end, but didn't reach the end of the document yet => continue searching for potential closing match
90
+ ) {
91
+ endLineIndex++;
92
+ continue; // Search next line for closing match
93
+ }
94
+ }
95
+ // Now, check if the closing match matched is the same as the opening match.
96
+ // If it is, we need to continue searching for the actual closing match.
97
+ if (endMatch && startLineIndex === endLineIndex && endMatch.index === startMatch.index) {
98
+ endLineIndex++;
99
+ continue; // Search next line for closing match
100
+ }
101
+ // At this point, we have found the closing match. Next: calculate the lines in between open and closing match
102
+ // This should not include the matches themselves, and be split up by lines
103
+ const linesInBetween = [];
104
+ if (endMatch && startLineIndex === endLineIndex) {
105
+ linesInBetween.push(lines[startLineIndex].slice(startMatch[0].length, -endMatch[0].length));
106
+ } else {
107
+ for (let i = startLineIndex; i <= endLineIndex; i++) {
108
+ const line = lines[i];
109
+ if (i === startLineIndex) {
110
+ const text = line.slice(startMatch[0].length);
111
+ linesInBetween.push(text); // Also include empty text
112
+ } else if (i === endLineIndex && endMatch) {
113
+ const text = line.slice(0, -endMatch[0].length);
114
+ linesInBetween.push(text); // Also include empty text
115
+ } else {
116
+ linesInBetween.push(line);
117
+ }
118
+ }
119
+ }
120
+ if (replace(rootNode, null, startMatch, endMatch, linesInBetween, true) !== false) {
121
+ // Return here. This $importMultiline function is run line by line and should only process a single multiline element at a time.
122
+ return [true, endLineIndex];
123
+ }
124
+ break;
125
+ }
126
+ }
127
+ // No multiline transformer handled this line successfully
128
+ return [false, startLineIndex];
129
+ }
130
+ function $importBlocks(lineText, rootNode, elementTransformers, textFormatTransformersIndex, textMatchTransformers) {
131
+ const textNode = $createTextNode(lineText);
132
+ const elementNode = $createParagraphNode();
133
+ elementNode.append(textNode);
134
+ rootNode.append(elementNode);
135
+ for (const {
136
+ regExp,
137
+ replace
138
+ } of elementTransformers) {
139
+ const match = lineText.match(regExp);
140
+ if (match) {
141
+ textNode.setTextContent(lineText.slice(match[0].length));
142
+ if (replace(elementNode, [textNode], match, true) !== false) {
143
+ break;
144
+ }
145
+ }
146
+ }
147
+ importTextTransformers(textNode, textFormatTransformersIndex, textMatchTransformers);
148
+ // If no transformer found and we left with original paragraph node
149
+ // can check if its content can be appended to the previous node
150
+ // if it's a paragraph, quote or list
151
+ if (elementNode.isAttached() && lineText.length > 0) {
152
+ const previousNode = elementNode.getPreviousSibling();
153
+ if ($isParagraphNode(previousNode) || $isQuoteNode(previousNode) || $isListNode(previousNode)) {
154
+ let targetNode = previousNode;
155
+ if ($isListNode(previousNode)) {
156
+ const lastDescendant = previousNode.getLastDescendant();
157
+ if (lastDescendant == null) {
158
+ targetNode = null;
159
+ } else {
160
+ targetNode = $findMatchingParent(lastDescendant, $isListItemNode);
161
+ }
162
+ }
163
+ if (targetNode != null && targetNode.getTextContentSize() > 0) {
164
+ targetNode.splice(targetNode.getChildrenSize(), 0, [$createLineBreakNode(), ...elementNode.getChildren()]);
165
+ elementNode.remove();
166
+ }
167
+ }
168
+ }
169
+ }
170
+ function createTextFormatTransformersIndex(textTransformers) {
171
+ const transformersByTag = {};
172
+ const fullMatchRegExpByTag = {};
173
+ const openTagsRegExp = [];
174
+ const escapeRegExp = `(?<![\\\\])`;
175
+ for (const transformer of textTransformers) {
176
+ const {
177
+ tag
178
+ } = transformer;
179
+ transformersByTag[tag] = transformer;
180
+ const tagRegExp = tag.replace(/([*^+])/g, '\\$1');
181
+ openTagsRegExp.push(tagRegExp);
182
+ // Single-char tag (e.g. "*"),
183
+ if (tag.length === 1) {
184
+ fullMatchRegExpByTag[tag] = new RegExp(`(?<![\\\\${tagRegExp}])(${tagRegExp})((\\\\${tagRegExp})?.*?[^${tagRegExp}\\s](\\\\${tagRegExp})?)((?<!\\\\)|(?<=\\\\\\\\))(${tagRegExp})(?![\\\\${tagRegExp}])`);
185
+ } else {
186
+ // Multi‐char tags (e.g. "**")
187
+ fullMatchRegExpByTag[tag] = new RegExp(`(?<!\\\\)(${tagRegExp})((\\\\${tagRegExp})?.*?[^\\s](\\\\${tagRegExp})?)((?<!\\\\)|(?<=\\\\\\\\))(${tagRegExp})(?!\\\\)`);
188
+ }
189
+ }
190
+ return {
191
+ // Reg exp to find open tag + content + close tag
192
+ fullMatchRegExpByTag,
193
+ // Regexp to locate *any* potential opening tag (longest first).
194
+ // eslint-disable-next-line regexp/no-useless-character-class, regexp/no-empty-capturing-group, regexp/no-empty-group
195
+ openTagsRegExp: new RegExp(`${escapeRegExp}(${openTagsRegExp.join('|')})`, 'g'),
196
+ transformersByTag
197
+ };
198
+ }
199
+ //# sourceMappingURL=MarkdownImport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownImport.js","names":["$isListItemNode","$isListNode","$isQuoteNode","$findMatchingParent","$createLineBreakNode","$createParagraphNode","$createTextNode","$getRoot","$getSelection","$isParagraphNode","importTextTransformers","isEmptyParagraph","transformersByType","createMarkdownImport","transformers","shouldPreserveNewLines","byType","textFormatTransformersIndex","createTextFormatTransformersIndex","textFormat","markdownString","node","lines","split","linesLength","length","root","clear","i","lineText","imported","shiftedIndex","$importMultiline","multilineElement","$importBlocks","element","textMatch","children","getChildren","child","getChildrenSize","remove","selectStart","startLineIndex","multilineElementTransformers","rootNode","transformer","handleImportAfterStartMatch","regExpEnd","regExpStart","replace","startMatch","match","result","regexpEndRegex","regExp","isEndOptional","optional","endLineIndex","endMatch","index","linesInBetween","push","slice","line","text","elementTransformers","textMatchTransformers","textNode","elementNode","append","setTextContent","isAttached","previousNode","getPreviousSibling","targetNode","lastDescendant","getLastDescendant","getTextContentSize","splice","textTransformers","transformersByTag","fullMatchRegExpByTag","openTagsRegExp","escapeRegExp","tag","tagRegExp","RegExp","join"],"sources":["../../../../src/packages/@lexical/markdown/MarkdownImport.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { ListItemNode } from '@lexical/list'\nimport type { ElementNode } from 'lexical'\n\nimport { $isListItemNode, $isListNode } from '@lexical/list'\nimport { $isQuoteNode } from '@lexical/rich-text'\nimport { $findMatchingParent } from '@lexical/utils'\nimport {\n $createLineBreakNode,\n $createParagraphNode,\n $createTextNode,\n $getRoot,\n $getSelection,\n $isParagraphNode,\n} from 'lexical'\n\nimport type {\n ElementTransformer,\n MultilineElementTransformer,\n TextFormatTransformer,\n TextMatchTransformer,\n Transformer,\n} from './MarkdownTransformers.js'\n\nimport { importTextTransformers } from './importTextTransformers.js'\nimport { isEmptyParagraph, transformersByType } from './utils.js'\n\nexport type TextFormatTransformersIndex = Readonly<{\n fullMatchRegExpByTag: Readonly<Record<string, RegExp>>\n openTagsRegExp: RegExp\n transformersByTag: Readonly<Record<string, TextFormatTransformer>>\n}>\n\n/**\n * Renders markdown from a string. The selection is moved to the start after the operation.\n */\nexport function createMarkdownImport(\n transformers: Array<Transformer>,\n shouldPreserveNewLines = false,\n): (markdownString: string, node?: ElementNode) => void {\n const byType = transformersByType(transformers)\n const textFormatTransformersIndex = createTextFormatTransformersIndex(byType.textFormat)\n\n return (markdownString, node) => {\n const lines = markdownString.split('\\n')\n const linesLength = lines.length\n const root = node || $getRoot()\n root.clear()\n\n for (let i = 0; i < linesLength; i++) {\n const lineText = lines[i]!\n\n const [imported, shiftedIndex] = $importMultiline(lines, i, byType.multilineElement, root)\n\n if (imported) {\n // If a multiline markdown element was imported, we don't want to process the lines that were part of it anymore.\n // There could be other sub-markdown elements (both multiline and normal ones) matching within this matched multiline element's children.\n // However, it would be the responsibility of the matched multiline transformer to decide how it wants to handle them.\n // We cannot handle those, as there is no way for us to know how to maintain the correct order of generated lexical nodes for possible children.\n i = shiftedIndex // Next loop will start from the line after the last line of the multiline element\n continue\n }\n\n $importBlocks(lineText, root, byType.element, textFormatTransformersIndex, byType.textMatch)\n }\n\n // By default, removing empty paragraphs as md does not really\n // allow empty lines and uses them as delimiter.\n // If you need empty lines set shouldPreserveNewLines = true.\n const children = root.getChildren()\n for (const child of children) {\n if (!shouldPreserveNewLines && isEmptyParagraph(child) && root.getChildrenSize() > 1) {\n child.remove()\n }\n }\n\n if ($getSelection() !== null) {\n root.selectStart()\n }\n }\n}\n\n/**\n *\n * @returns first element of the returned tuple is a boolean indicating if a multiline element was imported. The second element is the index of the last line that was processed.\n */\nfunction $importMultiline(\n lines: Array<string>,\n startLineIndex: number,\n multilineElementTransformers: Array<MultilineElementTransformer>,\n rootNode: ElementNode,\n): [boolean, number] {\n for (const transformer of multilineElementTransformers) {\n const { handleImportAfterStartMatch, regExpEnd, regExpStart, replace } = transformer\n\n const startMatch = lines[startLineIndex]?.match(regExpStart)\n if (!startMatch) {\n continue // Try next transformer\n }\n\n if (handleImportAfterStartMatch) {\n const result = handleImportAfterStartMatch({\n lines,\n rootNode,\n startLineIndex,\n startMatch,\n transformer,\n })\n if (result === null) {\n continue\n } else if (result) {\n return result\n }\n }\n\n const regexpEndRegex: RegExp | undefined =\n typeof regExpEnd === 'object' && 'regExp' in regExpEnd ? regExpEnd.regExp : regExpEnd\n\n const isEndOptional =\n regExpEnd && typeof regExpEnd === 'object' && 'optional' in regExpEnd\n ? regExpEnd.optional\n : !regExpEnd\n\n let endLineIndex = startLineIndex\n const linesLength = lines.length\n\n // check every single line for the closing match. It could also be on the same line as the opening match.\n while (endLineIndex < linesLength) {\n const endMatch = regexpEndRegex ? lines[endLineIndex]?.match(regexpEndRegex) : null\n if (!endMatch) {\n if (\n !isEndOptional ||\n (isEndOptional && endLineIndex < linesLength - 1) // Optional end, but didn't reach the end of the document yet => continue searching for potential closing match\n ) {\n endLineIndex++\n continue // Search next line for closing match\n }\n }\n\n // Now, check if the closing match matched is the same as the opening match.\n // If it is, we need to continue searching for the actual closing match.\n if (endMatch && startLineIndex === endLineIndex && endMatch.index === startMatch.index) {\n endLineIndex++\n continue // Search next line for closing match\n }\n\n // At this point, we have found the closing match. Next: calculate the lines in between open and closing match\n // This should not include the matches themselves, and be split up by lines\n const linesInBetween: string[] = []\n\n if (endMatch && startLineIndex === endLineIndex) {\n linesInBetween.push(lines[startLineIndex]!.slice(startMatch[0].length, -endMatch[0].length))\n } else {\n for (let i = startLineIndex; i <= endLineIndex; i++) {\n const line = lines[i]!\n if (i === startLineIndex) {\n const text = line.slice(startMatch[0].length)\n linesInBetween.push(text) // Also include empty text\n } else if (i === endLineIndex && endMatch) {\n const text = line.slice(0, -endMatch[0].length)\n linesInBetween.push(text) // Also include empty text\n } else {\n linesInBetween.push(line)\n }\n }\n }\n\n if (replace(rootNode, null, startMatch, endMatch!, linesInBetween, true) !== false) {\n // Return here. This $importMultiline function is run line by line and should only process a single multiline element at a time.\n return [true, endLineIndex]\n }\n\n // The replace function returned false, despite finding the matching open and close tags => this transformer does not want to handle it.\n // Thus, we continue letting the remaining transformers handle the passed lines of text from the beginning\n break\n }\n }\n\n // No multiline transformer handled this line successfully\n return [false, startLineIndex]\n}\n\nfunction $importBlocks(\n lineText: string,\n rootNode: ElementNode,\n elementTransformers: Array<ElementTransformer>,\n textFormatTransformersIndex: TextFormatTransformersIndex,\n textMatchTransformers: Array<TextMatchTransformer>,\n) {\n const textNode = $createTextNode(lineText)\n const elementNode = $createParagraphNode()\n elementNode.append(textNode)\n rootNode.append(elementNode)\n\n for (const { regExp, replace } of elementTransformers) {\n const match = lineText.match(regExp)\n\n if (match) {\n textNode.setTextContent(lineText.slice(match[0].length))\n if (replace(elementNode, [textNode], match, true) !== false) {\n break\n }\n }\n }\n\n importTextTransformers(textNode, textFormatTransformersIndex, textMatchTransformers)\n\n // If no transformer found and we left with original paragraph node\n // can check if its content can be appended to the previous node\n // if it's a paragraph, quote or list\n if (elementNode.isAttached() && lineText.length > 0) {\n const previousNode = elementNode.getPreviousSibling()\n if ($isParagraphNode(previousNode) || $isQuoteNode(previousNode) || $isListNode(previousNode)) {\n let targetNode: ListItemNode | null | typeof previousNode = previousNode\n\n if ($isListNode(previousNode)) {\n const lastDescendant = previousNode.getLastDescendant()\n if (lastDescendant == null) {\n targetNode = null\n } else {\n targetNode = $findMatchingParent(lastDescendant, $isListItemNode)\n }\n }\n\n if (targetNode != null && targetNode.getTextContentSize() > 0) {\n targetNode.splice(targetNode.getChildrenSize(), 0, [\n $createLineBreakNode(),\n ...elementNode.getChildren(),\n ])\n elementNode.remove()\n }\n }\n }\n}\n\nfunction createTextFormatTransformersIndex(\n textTransformers: Array<TextFormatTransformer>,\n): TextFormatTransformersIndex {\n const transformersByTag: Record<string, TextFormatTransformer> = {}\n const fullMatchRegExpByTag: Record<string, RegExp> = {}\n const openTagsRegExp: string[] = []\n const escapeRegExp = `(?<![\\\\\\\\])`\n\n for (const transformer of textTransformers) {\n const { tag } = transformer\n transformersByTag[tag] = transformer\n const tagRegExp = tag.replace(/([*^+])/g, '\\\\$1')\n openTagsRegExp.push(tagRegExp)\n\n // Single-char tag (e.g. \"*\"),\n if (tag.length === 1) {\n fullMatchRegExpByTag[tag] = new RegExp(\n `(?<![\\\\\\\\${tagRegExp}])(${tagRegExp})((\\\\\\\\${tagRegExp})?.*?[^${tagRegExp}\\\\s](\\\\\\\\${tagRegExp})?)((?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))(${tagRegExp})(?![\\\\\\\\${tagRegExp}])`,\n )\n } else {\n // Multi‐char tags (e.g. \"**\")\n fullMatchRegExpByTag[tag] = new RegExp(\n `(?<!\\\\\\\\)(${tagRegExp})((\\\\\\\\${tagRegExp})?.*?[^\\\\s](\\\\\\\\${tagRegExp})?)((?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))(${tagRegExp})(?!\\\\\\\\)`,\n )\n }\n }\n\n return {\n // Reg exp to find open tag + content + close tag\n fullMatchRegExpByTag,\n\n // Regexp to locate *any* potential opening tag (longest first).\n // eslint-disable-next-line regexp/no-useless-character-class, regexp/no-empty-capturing-group, regexp/no-empty-group\n openTagsRegExp: new RegExp(`${escapeRegExp}(${openTagsRegExp.join('|')})`, 'g'),\n transformersByTag,\n }\n}\n"],"mappings":"AAAA;;;;;;GAWA,SAASA,eAAe,EAAEC,WAAW,QAAQ;AAC7C,SAASC,YAAY,QAAQ;AAC7B,SAASC,mBAAmB,QAAQ;AACpC,SACEC,oBAAoB,EACpBC,oBAAoB,EACpBC,eAAe,EACfC,QAAQ,EACRC,aAAa,EACbC,gBAAgB,QACX;AAUP,SAASC,sBAAsB,QAAQ;AACvC,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ;AAQrD;;;AAGA,OAAO,SAASC,qBACdC,YAAgC,EAChCC,sBAAA,GAAyB,KAAK;EAE9B,MAAMC,MAAA,GAASJ,kBAAA,CAAmBE,YAAA;EAClC,MAAMG,2BAAA,GAA8BC,iCAAA,CAAkCF,MAAA,CAAOG,UAAU;EAEvF,OAAO,CAACC,cAAA,EAAgBC,IAAA;IACtB,MAAMC,KAAA,GAAQF,cAAA,CAAeG,KAAK,CAAC;IACnC,MAAMC,WAAA,GAAcF,KAAA,CAAMG,MAAM;IAChC,MAAMC,IAAA,GAAOL,IAAA,IAAQd,QAAA;IACrBmB,IAAA,CAAKC,KAAK;IAEV,KAAK,IAAIC,CAAA,GAAI,GAAGA,CAAA,GAAIJ,WAAA,EAAaI,CAAA,IAAK;MACpC,MAAMC,QAAA,GAAWP,KAAK,CAACM,CAAA,CAAE;MAEzB,MAAM,CAACE,QAAA,EAAUC,YAAA,CAAa,GAAGC,gBAAA,CAAiBV,KAAA,EAAOM,CAAA,EAAGZ,MAAA,CAAOiB,gBAAgB,EAAEP,IAAA;MAErF,IAAII,QAAA,EAAU;QACZ;QACA;QACA;QACA;QACAF,CAAA,GAAIG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GAAA,CAAI,GAAG,IAAIE,MAAA,CAC9B,aAAaD,SAAA,UAAmBA,SAAA,mBAA4BA,SAAA,gCAAyCA,SAAA,WAAoB;IAE7H;EACF;EAEA,OAAO;IACL;IACAJ,oBAAA;IAEA;IACA;IACAC,cAAA,EAAgB,IAAII,MAAA,CAAO,GAAGH,YAAA,IAAgBD,cAAA,CAAeK,IAAI,CAAC,OAAO,EAAE;IAC3EP;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { LexicalEditor } from 'lexical';
9
+ import type { Transformer } from './MarkdownTransformers.js';
10
+ export declare function registerMarkdownShortcuts(editor: LexicalEditor, transformers?: Array<Transformer>): () => void;
11
+ //# sourceMappingURL=MarkdownShortcuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownShortcuts.d.ts","sourceRoot":"","sources":["../../../../src/packages/@lexical/markdown/MarkdownShortcuts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAe,aAAa,EAAY,MAAM,SAAS,CAAA;AAYnE,OAAO,KAAK,EAKV,WAAW,EACZ,MAAM,2BAA2B,CAAA;AA4TlC,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,aAAa,EACrB,YAAY,GAAE,KAAK,CAAC,WAAW,CAAgB,GAC9C,MAAM,IAAI,CA8FZ"}
@@ -0,0 +1,304 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */import { $createRangeSelection, $getSelection, $isLineBreakNode, $isRangeSelection, $isRootOrShadowRoot, $isTextNode, $setSelection } from 'lexical';
8
+ import { TRANSFORMERS } from './index.js';
9
+ import { indexBy, PUNCTUATION_OR_SPACE, transformersByType } from './utils.js';
10
+ function runElementTransformers(parentNode, anchorNode, anchorOffset, elementTransformers) {
11
+ const grandParentNode = parentNode.getParent();
12
+ if (!$isRootOrShadowRoot(grandParentNode) || parentNode.getFirstChild() !== anchorNode) {
13
+ return false;
14
+ }
15
+ const textContent = anchorNode.getTextContent();
16
+ // Checking for anchorOffset position to prevent any checks for cases when caret is too far
17
+ // from a line start to be a part of block-level markdown trigger.
18
+ //
19
+ // TODO:
20
+ // Can have a quick check if caret is close enough to the beginning of the string (e.g. offset less than 10-20)
21
+ // since otherwise it won't be a markdown shortcut, but tables are exception
22
+ if (textContent[anchorOffset - 1] !== ' ') {
23
+ return false;
24
+ }
25
+ for (const {
26
+ regExp,
27
+ replace
28
+ } of elementTransformers) {
29
+ const match = textContent.match(regExp);
30
+ if (match && match[0].length === (match[0].endsWith(' ') ? anchorOffset : anchorOffset - 1)) {
31
+ const nextSiblings = anchorNode.getNextSiblings();
32
+ const [leadingNode, remainderNode] = anchorNode.splitText(anchorOffset);
33
+ leadingNode?.remove();
34
+ const siblings = remainderNode ? [remainderNode, ...nextSiblings] : nextSiblings;
35
+ if (replace(parentNode, siblings, match, false) !== false) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function runMultilineElementTransformers(parentNode, anchorNode, anchorOffset, elementTransformers) {
43
+ const grandParentNode = parentNode.getParent();
44
+ if (!$isRootOrShadowRoot(grandParentNode) || parentNode.getFirstChild() !== anchorNode) {
45
+ return false;
46
+ }
47
+ const textContent = anchorNode.getTextContent();
48
+ // Checking for anchorOffset position to prevent any checks for cases when caret is too far
49
+ // from a line start to be a part of block-level markdown trigger.
50
+ //
51
+ // TODO:
52
+ // Can have a quick check if caret is close enough to the beginning of the string (e.g. offset less than 10-20)
53
+ // since otherwise it won't be a markdown shortcut, but tables are exception
54
+ if (textContent[anchorOffset - 1] !== ' ') {
55
+ return false;
56
+ }
57
+ for (const {
58
+ regExpEnd,
59
+ regExpStart,
60
+ replace
61
+ } of elementTransformers) {
62
+ if (regExpEnd && !('optional' in regExpEnd) || regExpEnd && 'optional' in regExpEnd && !regExpEnd.optional) {
63
+ continue;
64
+ }
65
+ const match = textContent.match(regExpStart);
66
+ if (match && match[0].length === (match[0].endsWith(' ') ? anchorOffset : anchorOffset - 1)) {
67
+ const nextSiblings = anchorNode.getNextSiblings();
68
+ const [leadingNode, remainderNode] = anchorNode.splitText(anchorOffset);
69
+ leadingNode?.remove();
70
+ const siblings = remainderNode ? [remainderNode, ...nextSiblings] : nextSiblings;
71
+ if (replace(parentNode, siblings, match, null, null, false) !== false) {
72
+ return true;
73
+ }
74
+ }
75
+ }
76
+ return false;
77
+ }
78
+ function runTextMatchTransformers(anchorNode, anchorOffset, transformersByTrigger) {
79
+ let textContent = anchorNode.getTextContent();
80
+ const lastChar = textContent[anchorOffset - 1];
81
+ const transformers = transformersByTrigger[lastChar];
82
+ if (transformers == null) {
83
+ return false;
84
+ }
85
+ // If typing in the middle of content, remove the tail to do
86
+ // reg exp match up to a string end (caret position)
87
+ if (anchorOffset < textContent.length) {
88
+ textContent = textContent.slice(0, anchorOffset);
89
+ }
90
+ for (const transformer of transformers) {
91
+ if (!transformer.replace || !transformer.regExp) {
92
+ continue;
93
+ }
94
+ const match = textContent.match(transformer.regExp);
95
+ if (match === null) {
96
+ continue;
97
+ }
98
+ const startIndex = match.index || 0;
99
+ const endIndex = startIndex + match[0].length;
100
+ let replaceNode;
101
+ if (startIndex === 0) {
102
+ [replaceNode] = anchorNode.splitText(endIndex);
103
+ } else {
104
+ [, replaceNode] = anchorNode.splitText(startIndex, endIndex);
105
+ }
106
+ if (replaceNode) {
107
+ replaceNode.selectNext(0, 0);
108
+ transformer.replace(replaceNode, match);
109
+ }
110
+ return true;
111
+ }
112
+ return false;
113
+ }
114
+ function $runTextFormatTransformers(anchorNode, anchorOffset, textFormatTransformers) {
115
+ const textContent = anchorNode.getTextContent();
116
+ const closeTagEndIndex = anchorOffset - 1;
117
+ const closeChar = textContent[closeTagEndIndex];
118
+ // Quick check if we're possibly at the end of inline markdown style
119
+ const matchers = textFormatTransformers[closeChar];
120
+ if (!matchers) {
121
+ return false;
122
+ }
123
+ for (const matcher of matchers) {
124
+ const {
125
+ tag
126
+ } = matcher;
127
+ const tagLength = tag.length;
128
+ const closeTagStartIndex = closeTagEndIndex - tagLength + 1;
129
+ // If tag is not single char check if rest of it matches with text content
130
+ if (tagLength > 1) {
131
+ if (!isEqualSubString(textContent, closeTagStartIndex, tag, 0, tagLength)) {
132
+ continue;
133
+ }
134
+ }
135
+ // Space before closing tag cancels inline markdown
136
+ if (textContent[closeTagStartIndex - 1] === ' ') {
137
+ continue;
138
+ }
139
+ // Some tags can not be used within words, hence should have newline/space/punctuation after it
140
+ const afterCloseTagChar = textContent[closeTagEndIndex + 1];
141
+ if (matcher.intraword === false && afterCloseTagChar && !PUNCTUATION_OR_SPACE.test(afterCloseTagChar)) {
142
+ continue;
143
+ }
144
+ const closeNode = anchorNode;
145
+ let openNode = closeNode;
146
+ let openTagStartIndex = getOpenTagStartIndex(textContent, closeTagStartIndex, tag);
147
+ // Go through text node siblings and search for opening tag
148
+ // if haven't found it within the same text node as closing tag
149
+ let sibling = openNode;
150
+ while (openTagStartIndex < 0 && (sibling = sibling.getPreviousSibling())) {
151
+ if ($isLineBreakNode(sibling)) {
152
+ break;
153
+ }
154
+ if ($isTextNode(sibling)) {
155
+ const siblingTextContent = sibling.getTextContent();
156
+ openNode = sibling;
157
+ openTagStartIndex = getOpenTagStartIndex(siblingTextContent, siblingTextContent.length, tag);
158
+ }
159
+ }
160
+ // Opening tag is not found
161
+ if (openTagStartIndex < 0) {
162
+ continue;
163
+ }
164
+ // No content between opening and closing tag
165
+ if (openNode === closeNode && openTagStartIndex + tagLength === closeTagStartIndex) {
166
+ continue;
167
+ }
168
+ // Checking longer tags for repeating chars (e.g. *** vs **)
169
+ const prevOpenNodeText = openNode.getTextContent();
170
+ if (openTagStartIndex > 0 && prevOpenNodeText[openTagStartIndex - 1] === closeChar) {
171
+ continue;
172
+ }
173
+ // Some tags can not be used within words, hence should have newline/space/punctuation before it
174
+ const beforeOpenTagChar = prevOpenNodeText[openTagStartIndex - 1];
175
+ if (matcher.intraword === false && beforeOpenTagChar && !PUNCTUATION_OR_SPACE.test(beforeOpenTagChar)) {
176
+ continue;
177
+ }
178
+ // Clean text from opening and closing tags (starting from closing tag
179
+ // to prevent any offset shifts if we start from opening one)
180
+ const prevCloseNodeText = closeNode.getTextContent();
181
+ const closeNodeText = prevCloseNodeText.slice(0, closeTagStartIndex) + prevCloseNodeText.slice(closeTagEndIndex + 1);
182
+ closeNode.setTextContent(closeNodeText);
183
+ const openNodeText = openNode === closeNode ? closeNodeText : prevOpenNodeText;
184
+ openNode.setTextContent(openNodeText.slice(0, openTagStartIndex) + openNodeText.slice(openTagStartIndex + tagLength));
185
+ const selection = $getSelection();
186
+ const nextSelection = $createRangeSelection();
187
+ $setSelection(nextSelection);
188
+ // Adjust offset based on deleted chars
189
+ const newOffset = closeTagEndIndex - tagLength * (openNode === closeNode ? 2 : 1) + 1;
190
+ nextSelection.anchor.set(openNode.__key, openTagStartIndex, 'text');
191
+ nextSelection.focus.set(closeNode.__key, newOffset, 'text');
192
+ // Apply formatting to selected text
193
+ for (const format of matcher.format) {
194
+ if (!nextSelection.hasFormat(format)) {
195
+ nextSelection.formatText(format);
196
+ }
197
+ }
198
+ // Collapse selection up to the focus point
199
+ nextSelection.anchor.set(nextSelection.focus.key, nextSelection.focus.offset, nextSelection.focus.type);
200
+ // Remove formatting from collapsed selection
201
+ for (const format of matcher.format) {
202
+ if (nextSelection.hasFormat(format)) {
203
+ nextSelection.toggleFormat(format);
204
+ }
205
+ }
206
+ if ($isRangeSelection(selection)) {
207
+ nextSelection.format = selection.format;
208
+ }
209
+ return true;
210
+ }
211
+ return false;
212
+ }
213
+ function getOpenTagStartIndex(string, maxIndex, tag) {
214
+ const tagLength = tag.length;
215
+ for (let i = maxIndex; i >= tagLength; i--) {
216
+ const startIndex = i - tagLength;
217
+ if (isEqualSubString(string, startIndex, tag, 0, tagLength) &&
218
+ // Space after opening tag cancels transformation
219
+ string[startIndex + tagLength] !== ' ') {
220
+ return startIndex;
221
+ }
222
+ }
223
+ return -1;
224
+ }
225
+ function isEqualSubString(stringA, aStart, stringB, bStart, length) {
226
+ for (let i = 0; i < length; i++) {
227
+ if (stringA[aStart + i] !== stringB[bStart + i]) {
228
+ return false;
229
+ }
230
+ }
231
+ return true;
232
+ }
233
+ export function registerMarkdownShortcuts(editor, transformers = TRANSFORMERS) {
234
+ const byType = transformersByType(transformers);
235
+ const textFormatTransformersByTrigger = indexBy(byType.textFormat, ({
236
+ tag
237
+ }) => tag[tag.length - 1]);
238
+ const textMatchTransformersByTrigger = indexBy(byType.textMatch, ({
239
+ trigger
240
+ }) => trigger);
241
+ for (const transformer of transformers) {
242
+ const type = transformer.type;
243
+ if (type === 'element' || type === 'text-match' || type === 'multiline-element') {
244
+ const dependencies = transformer.dependencies;
245
+ for (const node of dependencies) {
246
+ if (!editor.hasNode(node)) {
247
+ throw new Error('MarkdownShortcuts: missing dependency %s for transformer. Ensure node dependency is included in editor initial config.' + node.getType());
248
+ }
249
+ }
250
+ }
251
+ }
252
+ const $transform = (parentNode, anchorNode, anchorOffset) => {
253
+ if (runElementTransformers(parentNode, anchorNode, anchorOffset, byType.element)) {
254
+ return;
255
+ }
256
+ if (runMultilineElementTransformers(parentNode, anchorNode, anchorOffset, byType.multilineElement)) {
257
+ return;
258
+ }
259
+ if (runTextMatchTransformers(anchorNode, anchorOffset, textMatchTransformersByTrigger)) {
260
+ return;
261
+ }
262
+ $runTextFormatTransformers(anchorNode, anchorOffset, textFormatTransformersByTrigger);
263
+ };
264
+ return editor.registerUpdateListener(({
265
+ dirtyLeaves,
266
+ editorState,
267
+ prevEditorState,
268
+ tags
269
+ }) => {
270
+ // Ignore updates from collaboration and undo/redo (as changes already calculated)
271
+ if (tags.has('collaboration') || tags.has('historic')) {
272
+ return;
273
+ }
274
+ // If editor is still composing (i.e. backticks) we must wait before the user confirms the key
275
+ if (editor.isComposing()) {
276
+ return;
277
+ }
278
+ const selection = editorState.read($getSelection);
279
+ const prevSelection = prevEditorState.read($getSelection);
280
+ // We expect selection to be a collapsed range and not match previous one (as we want
281
+ // to trigger transforms only as user types)
282
+ if (!$isRangeSelection(prevSelection) || !$isRangeSelection(selection) || !selection.isCollapsed() || selection.is(prevSelection)) {
283
+ return;
284
+ }
285
+ const anchorKey = selection.anchor.key;
286
+ const anchorOffset = selection.anchor.offset;
287
+ const anchorNode = editorState._nodeMap.get(anchorKey);
288
+ if (!$isTextNode(anchorNode) || !dirtyLeaves.has(anchorKey) || anchorOffset !== 1 && anchorOffset > prevSelection.anchor.offset + 1) {
289
+ return;
290
+ }
291
+ editor.update(() => {
292
+ // Markdown is not available inside code
293
+ if (anchorNode.hasFormat('code')) {
294
+ return;
295
+ }
296
+ const parentNode = anchorNode.getParent();
297
+ if (parentNode === null) {
298
+ return;
299
+ }
300
+ $transform(parentNode, anchorNode, selection.anchor.offset);
301
+ });
302
+ });
303
+ }
304
+ //# sourceMappingURL=MarkdownShortcuts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownShortcuts.js","names":["$createRangeSelection","$getSelection","$isLineBreakNode","$isRangeSelection","$isRootOrShadowRoot","$isTextNode","$setSelection","TRANSFORMERS","indexBy","PUNCTUATION_OR_SPACE","transformersByType","runElementTransformers","parentNode","anchorNode","anchorOffset","elementTransformers","grandParentNode","getParent","getFirstChild","textContent","getTextContent","regExp","replace","match","length","endsWith","nextSiblings","getNextSiblings","leadingNode","remainderNode","splitText","remove","siblings","runMultilineElementTransformers","regExpEnd","regExpStart","optional","runTextMatchTransformers","transformersByTrigger","lastChar","transformers","slice","transformer","startIndex","index","endIndex","replaceNode","selectNext","$runTextFormatTransformers","textFormatTransformers","closeTagEndIndex","closeChar","matchers","matcher","tag","tagLength","closeTagStartIndex","isEqualSubString","afterCloseTagChar","intraword","test","closeNode","openNode","openTagStartIndex","getOpenTagStartIndex","sibling","getPreviousSibling","siblingTextContent","prevOpenNodeText","beforeOpenTagChar","prevCloseNodeText","closeNodeText","setTextContent","openNodeText","selection","nextSelection","newOffset","anchor","set","__key","focus","format","hasFormat","formatText","key","offset","type","toggleFormat","string","maxIndex","i","stringA","aStart","stringB","bStart","registerMarkdownShortcuts","editor","byType","textFormatTransformersByTrigger","textFormat","textMatchTransformersByTrigger","textMatch","trigger","dependencies","node","hasNode","Error","getType","$transform","element","multilineElement","registerUpdateListener","dirtyLeaves","editorState","prevEditorState","tags","has","isComposing","read","prevSelection","isCollapsed","is","anchorKey","_nodeMap","get","update"],"sources":["../../../../src/packages/@lexical/markdown/MarkdownShortcuts.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { ElementNode, LexicalEditor, TextNode } from 'lexical'\n\nimport {\n $createRangeSelection,\n $getSelection,\n $isLineBreakNode,\n $isRangeSelection,\n $isRootOrShadowRoot,\n $isTextNode,\n $setSelection,\n} from 'lexical'\n\nimport type {\n ElementTransformer,\n MultilineElementTransformer,\n TextFormatTransformer,\n TextMatchTransformer,\n Transformer,\n} from './MarkdownTransformers.js'\n\nimport { TRANSFORMERS } from './index.js'\nimport { indexBy, PUNCTUATION_OR_SPACE, transformersByType } from './utils.js'\n\nfunction runElementTransformers(\n parentNode: ElementNode,\n anchorNode: TextNode,\n anchorOffset: number,\n elementTransformers: ReadonlyArray<ElementTransformer>,\n): boolean {\n const grandParentNode = parentNode.getParent()\n\n if (!$isRootOrShadowRoot(grandParentNode) || parentNode.getFirstChild() !== anchorNode) {\n return false\n }\n\n const textContent = anchorNode.getTextContent()\n\n // Checking for anchorOffset position to prevent any checks for cases when caret is too far\n // from a line start to be a part of block-level markdown trigger.\n //\n // TODO:\n // Can have a quick check if caret is close enough to the beginning of the string (e.g. offset less than 10-20)\n // since otherwise it won't be a markdown shortcut, but tables are exception\n if (textContent[anchorOffset - 1] !== ' ') {\n return false\n }\n\n for (const { regExp, replace } of elementTransformers) {\n const match = textContent.match(regExp)\n\n if (match && match[0].length === (match[0].endsWith(' ') ? anchorOffset : anchorOffset - 1)) {\n const nextSiblings = anchorNode.getNextSiblings()\n const [leadingNode, remainderNode] = anchorNode.splitText(anchorOffset)\n leadingNode?.remove()\n const siblings = remainderNode ? [remainderNode, ...nextSiblings] : nextSiblings\n if (replace(parentNode, siblings, match, false) !== false) {\n return true\n }\n }\n }\n\n return false\n}\n\nfunction runMultilineElementTransformers(\n parentNode: ElementNode,\n anchorNode: TextNode,\n anchorOffset: number,\n elementTransformers: ReadonlyArray<MultilineElementTransformer>,\n): boolean {\n const grandParentNode = parentNode.getParent()\n\n if (!$isRootOrShadowRoot(grandParentNode) || parentNode.getFirstChild() !== anchorNode) {\n return false\n }\n\n const textContent = anchorNode.getTextContent()\n\n // Checking for anchorOffset position to prevent any checks for cases when caret is too far\n // from a line start to be a part of block-level markdown trigger.\n //\n // TODO:\n // Can have a quick check if caret is close enough to the beginning of the string (e.g. offset less than 10-20)\n // since otherwise it won't be a markdown shortcut, but tables are exception\n if (textContent[anchorOffset - 1] !== ' ') {\n return false\n }\n\n for (const { regExpEnd, regExpStart, replace } of elementTransformers) {\n if (\n (regExpEnd && !('optional' in regExpEnd)) ||\n (regExpEnd && 'optional' in regExpEnd && !regExpEnd.optional)\n ) {\n continue\n }\n\n const match = textContent.match(regExpStart)\n\n if (match && match[0].length === (match[0].endsWith(' ') ? anchorOffset : anchorOffset - 1)) {\n const nextSiblings = anchorNode.getNextSiblings()\n const [leadingNode, remainderNode] = anchorNode.splitText(anchorOffset)\n leadingNode?.remove()\n const siblings = remainderNode ? [remainderNode, ...nextSiblings] : nextSiblings\n\n if (replace(parentNode, siblings, match, null, null, false) !== false) {\n return true\n }\n }\n }\n\n return false\n}\n\nfunction runTextMatchTransformers(\n anchorNode: TextNode,\n anchorOffset: number,\n transformersByTrigger: Readonly<Record<string, Array<TextMatchTransformer>>>,\n): boolean {\n let textContent = anchorNode.getTextContent()\n const lastChar = textContent[anchorOffset - 1]!\n const transformers = transformersByTrigger[lastChar]\n\n if (transformers == null) {\n return false\n }\n\n // If typing in the middle of content, remove the tail to do\n // reg exp match up to a string end (caret position)\n if (anchorOffset < textContent.length) {\n textContent = textContent.slice(0, anchorOffset)\n }\n\n for (const transformer of transformers) {\n if (!transformer.replace || !transformer.regExp) {\n continue\n }\n const match = textContent.match(transformer.regExp)\n\n if (match === null) {\n continue\n }\n\n const startIndex = match.index || 0\n const endIndex = startIndex + match[0].length\n let replaceNode\n\n if (startIndex === 0) {\n ;[replaceNode] = anchorNode.splitText(endIndex)\n } else {\n ;[, replaceNode] = anchorNode.splitText(startIndex, endIndex)\n }\n if (replaceNode) {\n replaceNode.selectNext(0, 0)\n transformer.replace(replaceNode, match)\n }\n return true\n }\n\n return false\n}\n\nfunction $runTextFormatTransformers(\n anchorNode: TextNode,\n anchorOffset: number,\n textFormatTransformers: Readonly<Record<string, ReadonlyArray<TextFormatTransformer>>>,\n): boolean {\n const textContent = anchorNode.getTextContent()\n const closeTagEndIndex = anchorOffset - 1\n const closeChar = textContent[closeTagEndIndex]!\n // Quick check if we're possibly at the end of inline markdown style\n const matchers = textFormatTransformers[closeChar]\n\n if (!matchers) {\n return false\n }\n\n for (const matcher of matchers) {\n const { tag } = matcher\n const tagLength = tag.length\n const closeTagStartIndex = closeTagEndIndex - tagLength + 1\n\n // If tag is not single char check if rest of it matches with text content\n if (tagLength > 1) {\n if (!isEqualSubString(textContent, closeTagStartIndex, tag, 0, tagLength)) {\n continue\n }\n }\n\n // Space before closing tag cancels inline markdown\n if (textContent[closeTagStartIndex - 1] === ' ') {\n continue\n }\n\n // Some tags can not be used within words, hence should have newline/space/punctuation after it\n const afterCloseTagChar = textContent[closeTagEndIndex + 1]\n\n if (\n matcher.intraword === false &&\n afterCloseTagChar &&\n !PUNCTUATION_OR_SPACE.test(afterCloseTagChar)\n ) {\n continue\n }\n\n const closeNode = anchorNode\n let openNode = closeNode\n let openTagStartIndex = getOpenTagStartIndex(textContent, closeTagStartIndex, tag)\n\n // Go through text node siblings and search for opening tag\n // if haven't found it within the same text node as closing tag\n let sibling: null | TextNode = openNode\n\n while (openTagStartIndex < 0 && (sibling = sibling.getPreviousSibling<TextNode>())) {\n if ($isLineBreakNode(sibling)) {\n break\n }\n\n if ($isTextNode(sibling)) {\n const siblingTextContent = sibling.getTextContent()\n openNode = sibling\n openTagStartIndex = getOpenTagStartIndex(siblingTextContent, siblingTextContent.length, tag)\n }\n }\n\n // Opening tag is not found\n if (openTagStartIndex < 0) {\n continue\n }\n\n // No content between opening and closing tag\n if (openNode === closeNode && openTagStartIndex + tagLength === closeTagStartIndex) {\n continue\n }\n\n // Checking longer tags for repeating chars (e.g. *** vs **)\n const prevOpenNodeText = openNode.getTextContent()\n\n if (openTagStartIndex > 0 && prevOpenNodeText[openTagStartIndex - 1] === closeChar) {\n continue\n }\n\n // Some tags can not be used within words, hence should have newline/space/punctuation before it\n const beforeOpenTagChar = prevOpenNodeText[openTagStartIndex - 1]\n\n if (\n matcher.intraword === false &&\n beforeOpenTagChar &&\n !PUNCTUATION_OR_SPACE.test(beforeOpenTagChar)\n ) {\n continue\n }\n\n // Clean text from opening and closing tags (starting from closing tag\n // to prevent any offset shifts if we start from opening one)\n const prevCloseNodeText = closeNode.getTextContent()\n const closeNodeText =\n prevCloseNodeText.slice(0, closeTagStartIndex) + prevCloseNodeText.slice(closeTagEndIndex + 1)\n closeNode.setTextContent(closeNodeText)\n const openNodeText = openNode === closeNode ? closeNodeText : prevOpenNodeText\n openNode.setTextContent(\n openNodeText.slice(0, openTagStartIndex) + openNodeText.slice(openTagStartIndex + tagLength),\n )\n const selection = $getSelection()\n const nextSelection = $createRangeSelection()\n $setSelection(nextSelection)\n // Adjust offset based on deleted chars\n const newOffset = closeTagEndIndex - tagLength * (openNode === closeNode ? 2 : 1) + 1\n nextSelection.anchor.set(openNode.__key, openTagStartIndex, 'text')\n nextSelection.focus.set(closeNode.__key, newOffset, 'text')\n\n // Apply formatting to selected text\n for (const format of matcher.format) {\n if (!nextSelection.hasFormat(format)) {\n nextSelection.formatText(format)\n }\n }\n\n // Collapse selection up to the focus point\n nextSelection.anchor.set(\n nextSelection.focus.key,\n nextSelection.focus.offset,\n nextSelection.focus.type,\n )\n\n // Remove formatting from collapsed selection\n for (const format of matcher.format) {\n if (nextSelection.hasFormat(format)) {\n nextSelection.toggleFormat(format)\n }\n }\n\n if ($isRangeSelection(selection)) {\n nextSelection.format = selection.format\n }\n\n return true\n }\n\n return false\n}\n\nfunction getOpenTagStartIndex(string: string, maxIndex: number, tag: string): number {\n const tagLength = tag.length\n\n for (let i = maxIndex; i >= tagLength; i--) {\n const startIndex = i - tagLength\n\n if (\n isEqualSubString(string, startIndex, tag, 0, tagLength) && // Space after opening tag cancels transformation\n string[startIndex + tagLength] !== ' '\n ) {\n return startIndex\n }\n }\n\n return -1\n}\n\nfunction isEqualSubString(\n stringA: string,\n aStart: number,\n stringB: string,\n bStart: number,\n length: number,\n): boolean {\n for (let i = 0; i < length; i++) {\n if (stringA[aStart + i] !== stringB[bStart + i]) {\n return false\n }\n }\n\n return true\n}\n\nexport function registerMarkdownShortcuts(\n editor: LexicalEditor,\n transformers: Array<Transformer> = TRANSFORMERS,\n): () => void {\n const byType = transformersByType(transformers)\n const textFormatTransformersByTrigger = indexBy(\n byType.textFormat,\n ({ tag }) => tag[tag.length - 1],\n )\n const textMatchTransformersByTrigger = indexBy(byType.textMatch, ({ trigger }) => trigger)\n\n for (const transformer of transformers) {\n const type = transformer.type\n if (type === 'element' || type === 'text-match' || type === 'multiline-element') {\n const dependencies = transformer.dependencies\n for (const node of dependencies) {\n if (!editor.hasNode(node)) {\n throw new Error(\n 'MarkdownShortcuts: missing dependency %s for transformer. Ensure node dependency is included in editor initial config.' +\n node.getType(),\n )\n }\n }\n }\n }\n\n const $transform = (parentNode: ElementNode, anchorNode: TextNode, anchorOffset: number) => {\n if (runElementTransformers(parentNode, anchorNode, anchorOffset, byType.element)) {\n return\n }\n\n if (\n runMultilineElementTransformers(parentNode, anchorNode, anchorOffset, byType.multilineElement)\n ) {\n return\n }\n\n if (runTextMatchTransformers(anchorNode, anchorOffset, textMatchTransformersByTrigger)) {\n return\n }\n\n $runTextFormatTransformers(anchorNode, anchorOffset, textFormatTransformersByTrigger)\n }\n\n return editor.registerUpdateListener(({ dirtyLeaves, editorState, prevEditorState, tags }) => {\n // Ignore updates from collaboration and undo/redo (as changes already calculated)\n if (tags.has('collaboration') || tags.has('historic')) {\n return\n }\n\n // If editor is still composing (i.e. backticks) we must wait before the user confirms the key\n if (editor.isComposing()) {\n return\n }\n\n const selection = editorState.read($getSelection)\n const prevSelection = prevEditorState.read($getSelection)\n\n // We expect selection to be a collapsed range and not match previous one (as we want\n // to trigger transforms only as user types)\n if (\n !$isRangeSelection(prevSelection) ||\n !$isRangeSelection(selection) ||\n !selection.isCollapsed() ||\n selection.is(prevSelection)\n ) {\n return\n }\n\n const anchorKey = selection.anchor.key\n const anchorOffset = selection.anchor.offset\n\n const anchorNode = editorState._nodeMap.get(anchorKey)\n\n if (\n !$isTextNode(anchorNode) ||\n !dirtyLeaves.has(anchorKey) ||\n (anchorOffset !== 1 && anchorOffset > prevSelection.anchor.offset + 1)\n ) {\n return\n }\n\n editor.update(() => {\n // Markdown is not available inside code\n if (anchorNode.hasFormat('code')) {\n return\n }\n\n const parentNode = anchorNode.getParent()\n\n if (parentNode === null) {\n return\n }\n\n $transform(parentNode, anchorNode, selection.anchor.offset)\n })\n })\n}\n"],"mappings":"AAAA;;;;;;GAUA,SACEA,qBAAqB,EACrBC,aAAa,EACbC,gBAAgB,EAChBC,iBAAiB,EACjBC,mBAAmB,EACnBC,WAAW,EACXC,aAAa,QACR;AAUP,SAASC,YAAY,QAAQ;AAC7B,SAASC,OAAO,EAAEC,oBAAoB,EAAEC,kBAAkB,QAAQ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