@payloadcms/richtext-lexical 4.0.0-internal.d28e9fb → 4.0.0-internal.fa345ef

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 (949) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/cell/rscEntry.d.ts +1 -1
  3. package/dist/cell/rscEntry.d.ts.map +1 -1
  4. package/dist/cell/rscEntry.js +5 -5
  5. package/dist/cell/rscEntry.js.map +1 -1
  6. package/dist/exports/client/Field-XH5C4HFU.js +2 -0
  7. package/dist/exports/client/Field-XH5C4HFU.js.map +7 -0
  8. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js +2 -0
  9. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js.map +7 -0
  10. package/dist/exports/client/bundled.css +1 -1
  11. package/dist/exports/client/chunk-5VIL27GI.js +2 -0
  12. package/dist/exports/client/chunk-5VIL27GI.js.map +7 -0
  13. package/dist/exports/client/chunk-ESITTE3C.js +2 -0
  14. package/dist/exports/client/chunk-ESITTE3C.js.map +7 -0
  15. package/dist/exports/client/{chunk-BZZVLW4U.js → chunk-RJ5MAOKZ.js} +1 -1
  16. package/dist/exports/client/chunk-RJ5MAOKZ.js.map +7 -0
  17. package/dist/exports/client/chunk-UD4DQ4AK.js +2 -0
  18. package/dist/exports/client/chunk-UD4DQ4AK.js.map +7 -0
  19. package/dist/exports/client/chunk-WSAPGI3Z.js +2 -0
  20. package/dist/exports/client/chunk-WSAPGI3Z.js.map +7 -0
  21. package/dist/exports/client/chunk-X3D4LZS7.js +2 -0
  22. package/dist/exports/client/chunk-X3D4LZS7.js.map +7 -0
  23. package/dist/exports/client/component-PHZQBOJE.js +2 -0
  24. package/dist/exports/client/component-PHZQBOJE.js.map +7 -0
  25. package/dist/exports/client/componentInline-H24N7GUG.js +2 -0
  26. package/dist/exports/client/index.d.ts +0 -1
  27. package/dist/exports/client/index.d.ts.map +1 -1
  28. package/dist/exports/client/index.js +27 -28
  29. package/dist/exports/client/index.js.map +4 -4
  30. package/dist/exports/react/index.d.ts +1 -1
  31. package/dist/exports/react/index.d.ts.map +1 -1
  32. package/dist/exports/react/index.js.map +1 -1
  33. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  34. package/dist/features/align/client/toolbarAlignGroup.js +1 -0
  35. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -1
  36. package/dist/features/blockquote/client/index.js +2 -2
  37. package/dist/features/blockquote/client/index.js.map +1 -1
  38. package/dist/features/blockquote/server/index.d.ts +1 -4
  39. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  40. package/dist/features/blockquote/server/index.js +4 -41
  41. package/dist/features/blockquote/server/index.js.map +1 -1
  42. package/dist/features/blockquote/server/schema.d.ts +8 -0
  43. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  44. package/dist/features/blockquote/server/schema.js +15 -0
  45. package/dist/features/blockquote/server/schema.js.map +1 -0
  46. package/dist/features/blocks/client/component/BlockContent.d.ts +10 -0
  47. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -1
  48. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  49. package/dist/features/blocks/client/component/index.css +178 -0
  50. package/dist/features/blocks/client/component/index.d.ts +4 -3
  51. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  52. package/dist/features/blocks/client/component/index.js +89 -24
  53. package/dist/features/blocks/client/component/index.js.map +1 -1
  54. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  55. package/dist/features/blocks/client/componentInline/index.css +85 -0
  56. package/dist/features/blocks/client/componentInline/index.d.ts +4 -3
  57. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  58. package/dist/features/blocks/client/componentInline/index.js +33 -12
  59. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  60. package/dist/features/blocks/client/index.d.ts.map +1 -1
  61. package/dist/features/blocks/client/index.js +4 -4
  62. package/dist/features/blocks/client/index.js.map +1 -1
  63. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  64. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  65. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  66. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  67. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  68. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  69. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  70. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  71. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  72. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  73. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  74. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  75. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  76. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  77. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  78. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  79. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  80. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  81. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  82. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  83. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  84. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +1 -1
  85. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  86. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +4 -0
  87. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  88. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +26 -0
  89. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +1 -1
  90. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -1
  91. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +4 -1
  92. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  93. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +38 -0
  94. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +1 -1
  95. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -1
  96. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +7 -8
  97. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  98. package/dist/features/blocks/premade/CodeBlock/Component/index.css +171 -0
  99. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  100. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  101. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  102. package/dist/features/blocks/server/index.d.ts +1 -0
  103. package/dist/features/blocks/server/index.d.ts.map +1 -1
  104. package/dist/features/blocks/server/index.js +24 -72
  105. package/dist/features/blocks/server/index.js.map +1 -1
  106. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  107. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  108. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  109. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  110. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  111. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  112. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  113. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  114. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  115. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  116. package/dist/features/blocks/server/schema.d.ts +45 -0
  117. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  118. package/dist/features/blocks/server/schema.js +140 -0
  119. package/dist/features/blocks/server/schema.js.map +1 -0
  120. package/dist/features/blocks/server/validate.d.ts +1 -2
  121. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  122. package/dist/features/blocks/server/validate.js.map +1 -1
  123. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  124. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  125. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  136. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  138. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  139. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  140. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  143. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  145. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  147. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  148. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  150. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  151. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  152. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  153. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  155. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  156. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  158. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  159. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  160. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  161. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  162. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  163. package/dist/features/converters/lexicalToHtml/async/types.d.ts +15 -16
  164. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  165. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  166. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  167. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  168. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  169. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  170. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  171. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  178. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  180. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  181. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  183. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  184. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  189. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  190. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  191. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  192. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  193. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  194. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  195. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  196. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  197. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  198. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  199. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  200. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  201. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  202. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  203. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  204. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  205. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +15 -16
  206. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  207. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  208. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +6 -4
  209. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  210. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  211. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  212. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  213. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  214. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  215. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  216. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  217. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  223. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  224. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  226. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  227. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  228. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  229. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  236. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  237. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  238. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  239. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  240. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  241. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  242. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  243. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  244. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  245. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  246. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  247. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  248. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  249. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  250. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  251. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +13 -15
  252. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  253. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  254. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  255. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  256. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  257. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -1
  258. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  259. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +13 -15
  260. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  261. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  262. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  263. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  264. package/dist/features/converters/markdownToLexical/index.js +5 -2
  265. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  266. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +1 -1
  267. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -1
  268. package/dist/features/debug/jsxConverter/client/plugin/index.js +1 -0
  269. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  270. package/dist/features/debug/jsxConverter/client/plugin/style.css +9 -0
  271. package/dist/features/debug/testRecorder/client/plugin/index.css +51 -0
  272. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +1 -1
  273. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -1
  274. package/dist/features/debug/testRecorder/client/plugin/index.js +1 -0
  275. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  276. package/dist/features/debug/treeView/client/plugin/index.css +81 -0
  277. package/dist/features/debug/treeView/client/plugin/index.d.ts +1 -1
  278. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -1
  279. package/dist/features/debug/treeView/client/plugin/index.js +1 -0
  280. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  281. package/dist/features/experimental_table/client/index.js +2 -2
  282. package/dist/features/experimental_table/client/index.js.map +1 -1
  283. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.css +91 -0
  284. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +1 -1
  285. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -1
  286. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +3 -2
  287. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  288. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.css +11 -0
  289. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +1 -1
  290. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -1
  291. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +1 -0
  292. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  293. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +1 -1
  294. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  295. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.css +166 -0
  296. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts +17 -0
  297. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  298. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js +219 -0
  299. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  300. package/dist/features/experimental_table/client/plugins/TablePlugin/index.css +235 -0
  301. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +1 -1
  302. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -1
  303. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +95 -104
  304. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
  305. package/dist/features/experimental_table/markdownTransformer.d.ts +2 -2
  306. package/dist/features/experimental_table/markdownTransformer.d.ts.map +1 -1
  307. package/dist/features/experimental_table/markdownTransformer.js +6 -3
  308. package/dist/features/experimental_table/markdownTransformer.js.map +1 -1
  309. package/dist/features/experimental_table/server/index.d.ts +1 -6
  310. package/dist/features/experimental_table/server/index.d.ts.map +1 -1
  311. package/dist/features/experimental_table/server/index.js +6 -104
  312. package/dist/features/experimental_table/server/index.js.map +1 -1
  313. package/dist/features/experimental_table/server/schema.d.ts +27 -0
  314. package/dist/features/experimental_table/server/schema.d.ts.map +1 -0
  315. package/dist/features/experimental_table/server/schema.js +107 -0
  316. package/dist/features/experimental_table/server/schema.js.map +1 -0
  317. package/dist/features/format/bold/feature.client.js +1 -1
  318. package/dist/features/format/bold/feature.client.js.map +1 -1
  319. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  320. package/dist/features/format/bold/feature.server.js +1 -1
  321. package/dist/features/format/bold/feature.server.js.map +1 -1
  322. package/dist/features/format/inlineCode/feature.client.js +1 -1
  323. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  324. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  325. package/dist/features/format/inlineCode/feature.server.js +1 -1
  326. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  327. package/dist/features/format/italic/feature.client.js +1 -1
  328. package/dist/features/format/italic/feature.client.js.map +1 -1
  329. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  330. package/dist/features/format/italic/feature.server.js +1 -1
  331. package/dist/features/format/italic/feature.server.js.map +1 -1
  332. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  333. package/dist/features/format/strikethrough/feature.client.js +1 -1
  334. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  335. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  336. package/dist/features/format/strikethrough/feature.server.js +1 -1
  337. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  338. package/dist/features/heading/client/index.js +2 -2
  339. package/dist/features/heading/client/index.js.map +1 -1
  340. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  341. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  342. package/dist/features/heading/markdownTransformer.js +6 -19
  343. package/dist/features/heading/markdownTransformer.js.map +1 -1
  344. package/dist/features/heading/server/index.d.ts +2 -4
  345. package/dist/features/heading/server/index.d.ts.map +1 -1
  346. package/dist/features/heading/server/index.js +4 -41
  347. package/dist/features/heading/server/index.js.map +1 -1
  348. package/dist/features/heading/server/schema.d.ts +10 -0
  349. package/dist/features/heading/server/schema.d.ts.map +1 -0
  350. package/dist/features/heading/server/schema.js +37 -0
  351. package/dist/features/heading/server/schema.js.map +1 -0
  352. package/dist/features/horizontalRule/client/index.js +2 -2
  353. package/dist/features/horizontalRule/client/index.js.map +1 -1
  354. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  355. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  356. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  357. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  358. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +1 -1
  359. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  360. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  361. package/dist/features/horizontalRule/client/plugin/index.css +25 -0
  362. package/dist/features/horizontalRule/client/plugin/index.d.ts +1 -1
  363. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -1
  364. package/dist/features/horizontalRule/client/plugin/index.js +73 -4
  365. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
  366. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  367. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  368. package/dist/features/horizontalRule/server/index.js +4 -10
  369. package/dist/features/horizontalRule/server/index.js.map +1 -1
  370. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  371. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  372. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  373. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  374. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +1 -5
  375. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  376. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  377. package/dist/features/horizontalRule/server/schema.d.ts +7 -0
  378. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  379. package/dist/features/horizontalRule/server/schema.js +25 -0
  380. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  381. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  382. package/dist/features/link/client/index.d.ts.map +1 -1
  383. package/dist/features/link/client/index.js +2 -2
  384. package/dist/features/link/client/index.js.map +1 -1
  385. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  386. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  387. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  388. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  389. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +28 -8
  390. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  391. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +108 -0
  392. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +1 -1
  393. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  394. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +1 -0
  395. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  396. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  397. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  398. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  399. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  400. package/dist/features/link/markdownTransformer.d.ts +5 -5
  401. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  402. package/dist/features/link/markdownTransformer.js +2 -2
  403. package/dist/features/link/markdownTransformer.js.map +1 -1
  404. package/dist/features/link/markdownTransformer.spec.js +10 -10
  405. package/dist/features/link/markdownTransformer.spec.js.map +1 -1
  406. package/dist/features/link/nodes/AutoLinkNode.d.ts +3 -3
  407. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  408. package/dist/features/link/nodes/AutoLinkNode.js +2 -1
  409. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  410. package/dist/features/link/nodes/LinkNode.d.ts +3 -3
  411. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  412. package/dist/features/link/nodes/LinkNode.js +2 -1
  413. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  414. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  415. package/dist/features/link/server/baseFields.js.map +1 -1
  416. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  417. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  418. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  419. package/dist/features/link/server/index.d.ts +2 -1
  420. package/dist/features/link/server/index.d.ts.map +1 -1
  421. package/dist/features/link/server/index.js +5 -73
  422. package/dist/features/link/server/index.js.map +1 -1
  423. package/dist/features/link/server/schema.d.ts +32 -0
  424. package/dist/features/link/server/schema.d.ts.map +1 -0
  425. package/dist/features/link/server/schema.js +171 -0
  426. package/dist/features/link/server/schema.js.map +1 -0
  427. package/dist/features/link/server/validate.d.ts +1 -1
  428. package/dist/features/link/server/validate.d.ts.map +1 -1
  429. package/dist/features/link/server/validate.js.map +1 -1
  430. package/dist/features/lists/checklist/client/index.js +1 -1
  431. package/dist/features/lists/checklist/client/index.js.map +1 -1
  432. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  433. package/dist/features/lists/checklist/server/index.js +4 -8
  434. package/dist/features/lists/checklist/server/index.js.map +1 -1
  435. package/dist/features/lists/orderedList/client/index.js +1 -1
  436. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  437. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  438. package/dist/features/lists/orderedList/server/index.js +4 -8
  439. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  440. package/dist/features/lists/plugin/index.d.ts +0 -9
  441. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  442. package/dist/features/lists/plugin/index.js.map +1 -1
  443. package/dist/features/lists/shared/schema.d.ts +18 -0
  444. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  445. package/dist/features/lists/shared/schema.js +62 -0
  446. package/dist/features/lists/shared/schema.js.map +1 -0
  447. package/dist/features/lists/unorderedList/client/index.js +1 -1
  448. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  449. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  450. package/dist/features/lists/unorderedList/server/index.js +4 -8
  451. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  452. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +2 -2
  453. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  454. package/dist/features/relationship/client/components/RelationshipComponent.js +29 -4
  455. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  456. package/dist/features/relationship/client/components/index.css +112 -0
  457. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  458. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  459. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  460. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  461. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  462. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  463. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  464. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  465. package/dist/features/relationship/client/utils/useEnabledRelationships.js +9 -40
  466. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  467. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  468. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  469. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  470. package/dist/features/relationship/server/index.d.ts +1 -0
  471. package/dist/features/relationship/server/index.d.ts.map +1 -1
  472. package/dist/features/relationship/server/index.js +2 -0
  473. package/dist/features/relationship/server/index.js.map +1 -1
  474. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  475. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  476. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  477. package/dist/features/relationship/server/schema.d.ts +28 -0
  478. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  479. package/dist/features/relationship/server/schema.js +97 -0
  480. package/dist/features/relationship/server/schema.js.map +1 -0
  481. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +23 -0
  482. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  483. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +34 -0
  484. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  485. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  486. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  487. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  488. package/dist/features/textState/feature.client.js +1 -1
  489. package/dist/features/textState/feature.client.js.map +1 -1
  490. package/dist/features/toolbars/fixed/client/Toolbar/index.css +87 -0
  491. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +1 -1
  492. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  493. package/dist/features/toolbars/fixed/client/Toolbar/index.js +1 -0
  494. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  495. package/dist/features/toolbars/inline/client/Toolbar/index.css +32 -0
  496. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +1 -1
  497. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  498. package/dist/features/toolbars/inline/client/Toolbar/index.js +1 -0
  499. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  500. package/dist/features/toolbars/shared/ToolbarButton/index.css +57 -0
  501. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
  502. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  503. package/dist/features/toolbars/shared/ToolbarButton/index.js +80 -74
  504. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  505. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  506. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +5 -2
  507. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  508. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +210 -0
  509. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
  510. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  511. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +11 -7
  512. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  513. package/dist/features/toolbars/shared/useToolbarStates.d.ts.map +1 -1
  514. package/dist/features/toolbars/shared/useToolbarStates.js +3 -1
  515. package/dist/features/toolbars/shared/useToolbarStates.js.map +1 -1
  516. package/dist/features/toolbars/types.d.ts +5 -1
  517. package/dist/features/toolbars/types.d.ts.map +1 -1
  518. package/dist/features/toolbars/types.js.map +1 -1
  519. package/dist/features/typesClient.d.ts +2 -2
  520. package/dist/features/typesClient.d.ts.map +1 -1
  521. package/dist/features/typesClient.js.map +1 -1
  522. package/dist/features/typesServer.d.ts +19 -59
  523. package/dist/features/typesServer.d.ts.map +1 -1
  524. package/dist/features/typesServer.js.map +1 -1
  525. package/dist/features/upload/client/component/index.css +214 -0
  526. package/dist/features/upload/client/component/index.d.ts +2 -2
  527. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  528. package/dist/features/upload/client/component/index.js +86 -63
  529. package/dist/features/upload/client/component/index.js.map +1 -1
  530. package/dist/features/upload/client/component/pending/index.d.ts +0 -1
  531. package/dist/features/upload/client/component/pending/index.d.ts.map +1 -1
  532. package/dist/features/upload/client/component/pending/index.js.map +1 -1
  533. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  534. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  535. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  536. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  537. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  538. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  539. package/dist/features/upload/client/plugin/index.js +5 -5
  540. package/dist/features/upload/client/plugin/index.js.map +1 -1
  541. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  542. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  543. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  544. package/dist/features/upload/server/index.d.ts +1 -0
  545. package/dist/features/upload/server/index.d.ts.map +1 -1
  546. package/dist/features/upload/server/index.js +5 -82
  547. package/dist/features/upload/server/index.js.map +1 -1
  548. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  549. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  550. package/dist/features/upload/server/markdownTransformer.js +1 -1
  551. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  552. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  553. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  554. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  555. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  556. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  557. package/dist/features/upload/server/schema.d.ts +52 -0
  558. package/dist/features/upload/server/schema.d.ts.map +1 -0
  559. package/dist/features/upload/server/schema.js +149 -0
  560. package/dist/features/upload/server/schema.js.map +1 -0
  561. package/dist/features/upload/server/validate.d.ts +1 -1
  562. package/dist/features/upload/server/validate.d.ts.map +1 -1
  563. package/dist/features/upload/server/validate.js.map +1 -1
  564. package/dist/field/Diff/converters/link.d.ts +1 -1
  565. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  566. package/dist/field/Diff/converters/link.js.map +1 -1
  567. package/dist/field/Diff/converters/listitem/index.css +80 -0
  568. package/dist/field/Diff/converters/listitem/index.d.ts +2 -2
  569. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  570. package/dist/field/Diff/converters/listitem/index.js +1 -0
  571. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  572. package/dist/field/Diff/converters/relationship/index.css +108 -0
  573. package/dist/field/Diff/converters/relationship/index.d.ts +2 -2
  574. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  575. package/dist/field/Diff/converters/relationship/index.js +11 -28
  576. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  577. package/dist/field/Diff/converters/unknown/index.css +37 -0
  578. package/dist/field/Diff/converters/unknown/index.d.ts +1 -1
  579. package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -1
  580. package/dist/field/Diff/converters/unknown/index.js +1 -0
  581. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  582. package/dist/field/Diff/converters/upload/index.css +175 -0
  583. package/dist/field/Diff/converters/upload/index.d.ts +2 -2
  584. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  585. package/dist/field/Diff/converters/upload/index.js +7 -2
  586. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  587. package/dist/field/Diff/index.css +156 -0
  588. package/dist/field/Diff/index.d.ts +1 -1
  589. package/dist/field/Diff/index.d.ts.map +1 -1
  590. package/dist/field/Diff/index.js +1 -0
  591. package/dist/field/Diff/index.js.map +1 -1
  592. package/dist/field/Field.d.ts +3 -3
  593. package/dist/field/Field.d.ts.map +1 -1
  594. package/dist/field/Field.js +13 -12
  595. package/dist/field/Field.js.map +1 -1
  596. package/dist/field/RenderLexical/index.d.ts +2 -2
  597. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  598. package/dist/field/RenderLexical/index.js.map +1 -1
  599. package/dist/field/RichTextViewProvider.d.ts +1 -1
  600. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  601. package/dist/field/RichTextViewProvider.js.map +1 -1
  602. package/dist/field/ViewSelector.css +32 -0
  603. package/dist/field/ViewSelector.d.ts +1 -1
  604. package/dist/field/ViewSelector.d.ts.map +1 -1
  605. package/dist/field/ViewSelector.js +1 -0
  606. package/dist/field/ViewSelector.js.map +1 -1
  607. package/dist/field/bundled.css +1 -1
  608. package/dist/field/index.css +60 -0
  609. package/dist/field/index.d.ts +1 -1
  610. package/dist/field/index.d.ts.map +1 -1
  611. package/dist/field/index.js +1 -1
  612. package/dist/field/index.js.map +1 -1
  613. package/dist/field/rscEntry.d.ts +1 -1
  614. package/dist/field/rscEntry.d.ts.map +1 -1
  615. package/dist/field/rscEntry.js +2 -0
  616. package/dist/field/rscEntry.js.map +1 -1
  617. package/dist/hooks.d.ts +6 -0
  618. package/dist/hooks.d.ts.map +1 -0
  619. package/dist/hooks.js +548 -0
  620. package/dist/hooks.js.map +1 -0
  621. package/dist/index.d.ts +13 -19
  622. package/dist/index.d.ts.map +1 -1
  623. package/dist/index.js +12 -629
  624. package/dist/index.js.map +1 -1
  625. package/dist/lexical/LexicalEditor.css +50 -0
  626. package/dist/lexical/LexicalEditor.d.ts +1 -1
  627. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  628. package/dist/lexical/LexicalEditor.js +1 -0
  629. package/dist/lexical/LexicalEditor.js.map +1 -1
  630. package/dist/lexical/LexicalProvider.d.ts +1 -1
  631. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  632. package/dist/lexical/LexicalProvider.js.map +1 -1
  633. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  634. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  635. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  636. package/dist/lexical/config/client/loader.d.ts +1 -1
  637. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  638. package/dist/lexical/config/client/loader.js +5 -1
  639. package/dist/lexical/config/client/loader.js.map +1 -1
  640. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  641. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  642. package/dist/lexical/config/client/sanitize.js.map +1 -1
  643. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  644. package/dist/lexical/config/server/sanitize.js +9 -17
  645. package/dist/lexical/config/server/sanitize.js.map +1 -1
  646. package/dist/lexical/config/types.d.ts +1 -1
  647. package/dist/lexical/config/types.d.ts.map +1 -1
  648. package/dist/lexical/config/types.js.map +1 -1
  649. package/dist/lexical/nodes/index.d.ts +1 -1
  650. package/dist/lexical/nodes/index.d.ts.map +1 -1
  651. package/dist/lexical/nodes/index.js.map +1 -1
  652. package/dist/lexical/plugins/DecoratorPlugin/index.css +11 -0
  653. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +1 -1
  654. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  655. package/dist/lexical/plugins/DecoratorPlugin/index.js +1 -0
  656. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  657. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +52 -0
  658. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +1 -1
  659. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  660. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +1 -0
  661. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  662. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  663. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  664. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  665. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  666. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  667. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  668. package/dist/lexical/plugins/SlashMenu/index.css +61 -0
  669. package/dist/lexical/plugins/SlashMenu/index.d.ts +1 -1
  670. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  671. package/dist/lexical/plugins/SlashMenu/index.js +2 -0
  672. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  673. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +40 -0
  674. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +1 -1
  675. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  676. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +1 -0
  677. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  678. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  679. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +84 -0
  680. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +1 -1
  681. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  682. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +16 -9
  683. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  684. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +1 -1
  685. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  686. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  687. package/dist/lexical/theme/EditorTheme.css +358 -0
  688. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  689. package/dist/lexical/theme/EditorTheme.js +1 -0
  690. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  691. package/dist/lexical/ui/ContentEditable.css +95 -0
  692. package/dist/lexical/ui/ContentEditable.d.ts +1 -1
  693. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  694. package/dist/lexical/ui/ContentEditable.js +1 -0
  695. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  696. package/dist/lexical/ui/icons/Code/index.js +1 -1
  697. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  698. package/dist/lexical/ui/icons/CodeBlock/index.js +1 -1
  699. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  700. package/dist/lexical/ui/icons/Link/index.js +1 -1
  701. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  702. package/dist/lexical/ui/icons/Page/index.d.ts +5 -0
  703. package/dist/lexical/ui/icons/Page/index.d.ts.map +1 -0
  704. package/dist/lexical/ui/icons/Page/index.js +21 -0
  705. package/dist/lexical/ui/icons/Page/index.js.map +1 -0
  706. package/dist/lexical/ui/icons/Trash/index.d.ts +10 -0
  707. package/dist/lexical/ui/icons/Trash/index.d.ts.map +1 -0
  708. package/dist/lexical/ui/icons/Trash/index.js +29 -0
  709. package/dist/lexical/ui/icons/Trash/index.js.map +1 -0
  710. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  711. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  712. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  713. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  714. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js +88 -0
  715. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js.map +1 -0
  716. package/dist/lexical/utils/markdown/createBlockNode.d.ts +1 -1
  717. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  718. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  719. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  720. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  721. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  722. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  723. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  724. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  725. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  726. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  727. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  728. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  729. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  730. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  731. package/dist/types/builtInNodes.d.ts +14 -0
  732. package/dist/types/builtInNodes.d.ts.map +1 -0
  733. package/dist/types/builtInNodes.js +203 -0
  734. package/dist/types/builtInNodes.js.map +1 -0
  735. package/dist/{types.d.ts → types/index.d.ts} +25 -26
  736. package/dist/types/index.d.ts.map +1 -0
  737. package/dist/types/index.js +2 -0
  738. package/dist/types/index.js.map +1 -0
  739. package/dist/types/jsonSchemaHelpers.d.ts +30 -0
  740. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  741. package/dist/types/jsonSchemaHelpers.js +58 -0
  742. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  743. package/dist/types/nodeTypes.d.ts +128 -0
  744. package/dist/types/nodeTypes.d.ts.map +1 -0
  745. package/dist/types/nodeTypes.js +6 -0
  746. package/dist/types/nodeTypes.js.map +1 -0
  747. package/dist/types/schema.d.ts +6 -0
  748. package/dist/types/schema.d.ts.map +1 -0
  749. package/dist/types/schema.js +90 -0
  750. package/dist/types/schema.js.map +1 -0
  751. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  752. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  753. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  754. package/dist/utilities/buildEditorState.d.ts +18 -4
  755. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  756. package/dist/utilities/buildEditorState.js +8 -0
  757. package/dist/utilities/buildEditorState.js.map +1 -1
  758. package/dist/utilities/buildInitialState.d.ts +2 -1
  759. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  760. package/dist/utilities/buildInitialState.js.map +1 -1
  761. package/dist/utilities/createClientFeature.d.ts +1 -1
  762. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  763. package/dist/utilities/createClientFeature.js.map +1 -1
  764. package/dist/utilities/editorConfigFactory.d.ts +1 -1
  765. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  766. package/dist/utilities/editorConfigFactory.js.map +1 -1
  767. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  768. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  769. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  770. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  771. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  772. package/dist/utilities/fieldsDrawer/DrawerContent.js +8 -7
  773. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  774. package/dist/utilities/fieldsDrawer/index.css +12 -0
  775. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  776. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  777. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  778. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  779. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +1 -0
  780. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  781. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +34 -18
  782. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  783. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  784. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  785. package/dist/utilities/generateImportMap.d.ts +1 -1
  786. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  787. package/dist/utilities/generateImportMap.js.map +1 -1
  788. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  789. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  790. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  791. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  792. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  793. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  794. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  795. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  796. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  797. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  798. package/dist/validate/index.d.ts.map +1 -1
  799. package/package.json +27 -31
  800. package/dist/exports/client/Field-NXLXFFLW.js +0 -2
  801. package/dist/exports/client/Field-NXLXFFLW.js.map +0 -7
  802. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js +0 -2
  803. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js.map +0 -7
  804. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  805. package/dist/exports/client/chunk-DZDHVMML.js +0 -2
  806. package/dist/exports/client/chunk-DZDHVMML.js.map +0 -7
  807. package/dist/exports/client/chunk-F26IQ5RE.js +0 -2
  808. package/dist/exports/client/chunk-F26IQ5RE.js.map +0 -7
  809. package/dist/exports/client/chunk-FTT5KJ6W.js +0 -12
  810. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  811. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  812. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  813. package/dist/exports/client/chunk-QJ5EETIB.js +0 -2
  814. package/dist/exports/client/chunk-QJ5EETIB.js.map +0 -7
  815. package/dist/exports/client/component-XIHC3W6W.js +0 -2
  816. package/dist/exports/client/component-XIHC3W6W.js.map +0 -7
  817. package/dist/exports/client/componentInline-LCHKRXOV.js +0 -2
  818. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  819. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  820. package/dist/features/blockquote/markdownTransformer.js +0 -33
  821. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  822. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +0 -4
  823. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +0 -1
  824. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +0 -7
  825. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +0 -1
  826. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +0 -4
  827. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +0 -1
  828. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +0 -38
  829. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +0 -1
  830. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +0 -4
  831. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +0 -1
  832. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +0 -9
  833. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +0 -1
  834. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +0 -4
  835. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +0 -1
  836. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +0 -33
  837. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +0 -1
  838. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +0 -6
  839. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +0 -1
  840. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +0 -9
  841. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +0 -1
  842. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +0 -70
  843. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +0 -1
  844. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +0 -104
  845. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +0 -1
  846. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +0 -27
  847. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +0 -1
  848. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +0 -2
  849. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +0 -1
  850. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +0 -39
  851. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +0 -1
  852. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +0 -122
  853. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +0 -1
  854. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +0 -12
  855. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +0 -1
  856. package/dist/features/converters/lexicalToHtml_deprecated/index.js +0 -11
  857. package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +0 -1
  858. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  859. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  860. package/dist/features/format/bold/markdownTransformers.js +0 -23
  861. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  862. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  863. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  864. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  865. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  866. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  867. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  868. package/dist/features/format/italic/markdownTransformers.js +0 -12
  869. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  870. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  871. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  872. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  873. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  874. package/dist/features/link/nodes/types.d.ts +0 -27
  875. package/dist/features/link/nodes/types.d.ts.map +0 -1
  876. package/dist/features/link/nodes/types.js +0 -2
  877. package/dist/features/link/nodes/types.js.map +0 -1
  878. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  879. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  880. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  881. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  882. package/dist/features/lists/htmlConverter.d.ts +0 -5
  883. package/dist/features/lists/htmlConverter.d.ts.map +0 -1
  884. package/dist/features/lists/htmlConverter.js +0 -81
  885. package/dist/features/lists/htmlConverter.js.map +0 -1
  886. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  887. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  888. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  889. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  890. package/dist/features/lists/shared/markdown.d.ts +0 -6
  891. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  892. package/dist/features/lists/shared/markdown.js +0 -57
  893. package/dist/features/lists/shared/markdown.js.map +0 -1
  894. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  895. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  896. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  897. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  898. package/dist/lexical/utils/guard.d.ts +0 -5
  899. package/dist/lexical/utils/guard.d.ts.map +0 -1
  900. package/dist/lexical/utils/guard.js +0 -9
  901. package/dist/lexical/utils/guard.js.map +0 -1
  902. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +0 -2
  903. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +0 -1
  904. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +0 -2
  905. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +0 -1
  906. package/dist/nodeTypes.d.ts +0 -74
  907. package/dist/nodeTypes.d.ts.map +0 -1
  908. package/dist/nodeTypes.js +0 -5
  909. package/dist/nodeTypes.js.map +0 -1
  910. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  911. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  912. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -213
  913. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  914. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  915. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  916. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -198
  917. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  918. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  919. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  920. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  921. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  922. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -147
  923. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  924. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -268
  925. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  926. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  927. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  928. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  929. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  930. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  931. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  932. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  933. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  934. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  935. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  936. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  937. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  938. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  939. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  940. package/dist/packages/@lexical/markdown/index.js +0 -39
  941. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  942. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  943. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  944. package/dist/packages/@lexical/markdown/utils.js +0 -267
  945. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  946. package/dist/types.d.ts.map +0 -1
  947. package/dist/types.js +0 -2
  948. package/dist/types.js.map +0 -1
  949. /package/dist/exports/client/{componentInline-LCHKRXOV.js.map → componentInline-H24N7GUG.js.map} +0 -0
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated - remove in 4.0. lexical already exports an isHTMLElement utility
3
- */
4
- export declare function isHTMLElement(x: unknown): x is HTMLElement;
5
- //# sourceMappingURL=guard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../../../src/lexical/utils/guard.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,WAAW,CAE1D"}
@@ -1,9 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * @deprecated - remove in 4.0. lexical already exports an isHTMLElement utility
5
- */
6
- export function isHTMLElement(x) {
7
- return x instanceof HTMLElement;
8
- }
9
- //# sourceMappingURL=guard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guard.js","names":["isHTMLElement","x","HTMLElement"],"sources":["../../../src/lexical/utils/guard.ts"],"sourcesContent":["'use client'\n\n/**\n * @deprecated - remove in 4.0. lexical already exports an isHTMLElement utility\n */\nexport function isHTMLElement(x: unknown): x is HTMLElement {\n return x instanceof HTMLElement\n}\n"],"mappings":"AAAA;;AAEA;;;AAGA,OAAO,SAASA,cAAcC,CAAU;EACtC,OAAOA,CAAA,YAAaC,WAAA;AACtB","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export * from '@lexical/react/LexicalContextMenuPlugin';
2
- //# sourceMappingURL=LexicalContextMenuPlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LexicalContextMenuPlugin.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.tsx"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from '@lexical/react/LexicalContextMenuPlugin';
2
- //# sourceMappingURL=LexicalContextMenuPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LexicalContextMenuPlugin.js","names":[],"sources":["../../../src/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.tsx"],"sourcesContent":["export * from '@lexical/react/LexicalContextMenuPlugin'\n"],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,74 +0,0 @@
1
- import type { SerializedLineBreakNode as _SerializedLineBreakNode, SerializedTabNode as _SerializedTabNode, SerializedTextNode as _SerializedTextNode, SerializedEditorState, SerializedElementNode, SerializedLexicalNode } from 'lexical';
2
- import type { SerializedQuoteNode } from './features/blockquote/server/index.js';
3
- import type { SerializedBlockNode } from './features/blocks/server/nodes/BlocksNode.js';
4
- import type { SerializedInlineBlockNode } from './features/blocks/server/nodes/InlineBlocksNode.js';
5
- import type { SerializedTableCellNode, SerializedTableNode, SerializedTableRowNode } from './features/experimental_table/server/index.js';
6
- import type { SerializedHeadingNode } from './features/heading/server/index.js';
7
- import type { SerializedHorizontalRuleNode } from './features/horizontalRule/server/nodes/HorizontalRuleNode.js';
8
- import type { SerializedAutoLinkNode, SerializedLinkNode } from './features/link/nodes/types.js';
9
- import type { SerializedListItemNode, SerializedListNode } from './features/lists/plugin/index.js';
10
- import type { SerializedRelationshipNode } from './features/relationship/server/nodes/RelationshipNode.js';
11
- import type { SerializedUploadNode } from './features/upload/server/nodes/UploadNode.js';
12
- /**
13
- * Helper type to create strongly typed serialized nodes with flexible children types.
14
- * Omits 'children' and 'type' from the base node type and redeclares them with proper typing.
15
- *
16
- * @param TBase - The base Lexical node type (e.g., _SerializedHeadingNode)
17
- * @param TType - The node type string (e.g., 'heading')
18
- * @param TChildren - The type for children (defaults to SerializedLexicalNode)
19
- */
20
- export type StronglyTypedElementNode<TBase, TType extends string, TChildren extends SerializedLexicalNode = SerializedLexicalNode> = {
21
- children: TChildren[];
22
- type: TType;
23
- } & Omit<TBase, 'children' | 'type'>;
24
- /**
25
- * Helper type to create strongly typed leaf nodes (nodes without children).
26
- * Omits 'children' and 'type' from the base node type and redeclares 'type' with a literal.
27
- *
28
- * @param TBase - The base Lexical node type (e.g., _SerializedTextNode)
29
- * @param TType - The node type string (e.g., 'text')
30
- */
31
- export type StronglyTypedLeafNode<TBase, TType extends string> = {
32
- type: TType;
33
- } & Omit<TBase, 'children' | 'type'>;
34
- export type { SerializedAutoLinkNode, SerializedBlockNode, SerializedHeadingNode, SerializedHorizontalRuleNode, SerializedInlineBlockNode, SerializedLinkNode, SerializedListItemNode, SerializedListNode, SerializedQuoteNode, SerializedRelationshipNode, SerializedTableCellNode, SerializedTableNode, SerializedTableRowNode, SerializedUploadNode, };
35
- export type SerializedParagraphNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {
36
- textFormat: number;
37
- } & StronglyTypedElementNode<SerializedElementNode, 'paragraph', T>;
38
- export type SerializedTextNode = StronglyTypedLeafNode<_SerializedTextNode, 'text'>;
39
- export type SerializedTabNode = StronglyTypedLeafNode<_SerializedTabNode, 'tab'>;
40
- export type SerializedLineBreakNode = StronglyTypedLeafNode<_SerializedLineBreakNode, 'linebreak'>;
41
- /**
42
- * Recursively adds typed children to nodes up to a specified depth.
43
- *
44
- * Key behaviors:
45
- * - `T extends any`: Distributive - processes each union member individually
46
- * - `OriginalUnion`: Preserves full union so nested children accept all node types, not just parent's type. If we just used `T`, the type would be narrowed to the parent's type and the children would only consist of the parent's type.
47
- * - `'children' extends keyof T`: Only adds children to container nodes; respects leaf nodes that use `Omit<_, 'children'>`
48
- * - `Depth`: Limits recursion to prevent infinite types (default: 4 levels)
49
- *
50
- * @internal - this type may change or be removed in a minor release
51
- */
52
- export type RecursiveNodes<T extends SerializedLexicalNode, Depth extends number = 4, OriginalUnion extends SerializedLexicalNode = T> = T extends any ? Depth extends 0 ? T : 'children' extends keyof T ? {
53
- children?: RecursiveNodes<OriginalUnion, DecrementDepth<Depth>, OriginalUnion>[];
54
- } & T : T : never;
55
- /** Decrements depth: 4→3, 3→2, 2→1, 1→0, 0→0 */
56
- type DecrementDepth<N extends number> = [0, 0, 1, 2, 3, 4][N];
57
- /**
58
- * Alternative type to `SerializedEditorState` that automatically types your nodes
59
- * more strictly, narrowing down nodes based on the `type` without having to manually
60
- * type-cast.
61
- */
62
- export type TypedEditorState<T extends SerializedLexicalNode = SerializedLexicalNode> = {
63
- [k: string]: unknown;
64
- } & SerializedEditorState<RecursiveNodes<T>>;
65
- /**
66
- * All node types included by default in a lexical editor without configuration.
67
- */
68
- export type DefaultNodeTypes = SerializedAutoLinkNode | SerializedHeadingNode | SerializedHorizontalRuleNode | SerializedLineBreakNode | SerializedLinkNode | SerializedListItemNode | SerializedListNode | SerializedParagraphNode | SerializedQuoteNode | SerializedRelationshipNode | SerializedTabNode | SerializedTextNode | SerializedUploadNode;
69
- /**
70
- * Like `TypedEditorState` but includes all default node types.
71
- * You can pass *additional* node types as a generic parameter.
72
- */
73
- export type DefaultTypedEditorState<TAdditionalNodeTypes extends null | SerializedLexicalNode = null> = [TAdditionalNodeTypes] extends null ? TypedEditorState<DefaultNodeTypes> : TypedEditorState<DefaultNodeTypes | NonNullable<TAdditionalNodeTypes>>;
74
-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AC,SAAS,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAE7D;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IAAI;IACtF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB,GAAG,qBAAqB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;AAE5C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,sBAAsB,GAEtB,qBAAqB,GACrB,4BAA4B,GAC5B,uBAAuB,GACvB,kBAAkB,GAClB,sBAAsB,GACtB,kBAAkB,GAClB,uBAAuB,GACvB,mBAAmB,GACnB,0BAA0B,GAC1B,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,CAAA;AAExB;;;GAGG;AACH,MAAM,MAAM,uBAAuB,CACjC,oBAAoB,SAAS,IAAI,GAAG,qBAAqB,GAAG,IAAI,IAC9D,CAAC,oBAAoB,CAAC,SAAS,IAAI,GACnC,gBAAgB,CAAC,gBAAgB,CAAC,GAClC,gBAAgB,CAAC,gBAAgB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAA"}
package/dist/nodeTypes.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Like `TypedEditorState` but includes all default node types.
3
- * You can pass *additional* node types as a generic parameter.
4
- */export {};
5
- //# sourceMappingURL=nodeTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodeTypes.js","names":[],"sources":["../src/nodeTypes.ts"],"sourcesContent":["import type {\n SerializedLineBreakNode as _SerializedLineBreakNode,\n SerializedTabNode as _SerializedTabNode,\n SerializedTextNode as _SerializedTextNode,\n SerializedEditorState,\n SerializedElementNode,\n SerializedLexicalNode,\n} from 'lexical'\n\nimport type { SerializedQuoteNode } from './features/blockquote/server/index.js'\nimport type { SerializedBlockNode } from './features/blocks/server/nodes/BlocksNode.js'\nimport type { SerializedInlineBlockNode } from './features/blocks/server/nodes/InlineBlocksNode.js'\nimport type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from './features/experimental_table/server/index.js'\nimport type { SerializedHeadingNode } from './features/heading/server/index.js'\nimport type { SerializedHorizontalRuleNode } from './features/horizontalRule/server/nodes/HorizontalRuleNode.js'\nimport type { SerializedAutoLinkNode, SerializedLinkNode } from './features/link/nodes/types.js'\nimport type { SerializedListItemNode, SerializedListNode } from './features/lists/plugin/index.js'\nimport type { SerializedRelationshipNode } from './features/relationship/server/nodes/RelationshipNode.js'\nimport type { SerializedUploadNode } from './features/upload/server/nodes/UploadNode.js'\n\n/**\n * Helper type to create strongly typed serialized nodes with flexible children types.\n * Omits 'children' and 'type' from the base node type and redeclares them with proper typing.\n *\n * @param TBase - The base Lexical node type (e.g., _SerializedHeadingNode)\n * @param TType - The node type string (e.g., 'heading')\n * @param TChildren - The type for children (defaults to SerializedLexicalNode)\n */\nexport type StronglyTypedElementNode<\n TBase,\n TType extends string,\n TChildren extends SerializedLexicalNode = SerializedLexicalNode,\n> = {\n children: TChildren[]\n type: TType\n} & Omit<TBase, 'children' | 'type'>\n\n/**\n * Helper type to create strongly typed leaf nodes (nodes without children).\n * Omits 'children' and 'type' from the base node type and redeclares 'type' with a literal.\n *\n * @param TBase - The base Lexical node type (e.g., _SerializedTextNode)\n * @param TType - The node type string (e.g., 'text')\n */\nexport type StronglyTypedLeafNode<TBase, TType extends string> = {\n type: TType\n} & Omit<TBase, 'children' | 'type'>\n\nexport type {\n SerializedAutoLinkNode,\n SerializedBlockNode,\n SerializedHeadingNode,\n SerializedHorizontalRuleNode,\n SerializedInlineBlockNode,\n SerializedLinkNode,\n SerializedListItemNode,\n SerializedListNode,\n SerializedQuoteNode,\n SerializedRelationshipNode,\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n SerializedUploadNode,\n}\n\nexport type SerializedParagraphNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {\n textFormat: number\n} & StronglyTypedElementNode<SerializedElementNode, 'paragraph', T>\n\nexport type SerializedTextNode = StronglyTypedLeafNode<_SerializedTextNode, 'text'>\n\nexport type SerializedTabNode = StronglyTypedLeafNode<_SerializedTabNode, 'tab'>\n\nexport type SerializedLineBreakNode = StronglyTypedLeafNode<_SerializedLineBreakNode, 'linebreak'>\n\n/**\n * Recursively adds typed children to nodes up to a specified depth.\n *\n * Key behaviors:\n * - `T extends any`: Distributive - processes each union member individually\n * - `OriginalUnion`: Preserves full union so nested children accept all node types, not just parent's type. If we just used `T`, the type would be narrowed to the parent's type and the children would only consist of the parent's type.\n * - `'children' extends keyof T`: Only adds children to container nodes; respects leaf nodes that use `Omit<_, 'children'>`\n * - `Depth`: Limits recursion to prevent infinite types (default: 4 levels)\n *\n * @internal - this type may change or be removed in a minor release\n */\nexport type RecursiveNodes<\n T extends SerializedLexicalNode,\n Depth extends number = 4,\n OriginalUnion extends SerializedLexicalNode = T,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n> = T extends any // Make distributive over unions\n ? Depth extends 0\n ? T\n : 'children' extends keyof T\n ? { children?: RecursiveNodes<OriginalUnion, DecrementDepth<Depth>, OriginalUnion>[] } & T\n : T // Skip leaf nodes\n : never\n\n/** Decrements depth: 4→3, 3→2, 2→1, 1→0, 0→0 */\ntype DecrementDepth<N extends number> = [0, 0, 1, 2, 3, 4][N]\n\n/**\n * Alternative type to `SerializedEditorState` that automatically types your nodes\n * more strictly, narrowing down nodes based on the `type` without having to manually\n * type-cast.\n */\nexport type TypedEditorState<T extends SerializedLexicalNode = SerializedLexicalNode> = {\n [k: string]: unknown\n} & SerializedEditorState<RecursiveNodes<T>>\n\n/**\n * All node types included by default in a lexical editor without configuration.\n */\nexport type DefaultNodeTypes =\n | SerializedAutoLinkNode\n //| SerializedBlockNode // Not included by default\n | SerializedHeadingNode\n | SerializedHorizontalRuleNode\n | SerializedLineBreakNode\n | SerializedLinkNode\n | SerializedListItemNode\n | SerializedListNode\n | SerializedParagraphNode\n | SerializedQuoteNode\n | SerializedRelationshipNode\n | SerializedTabNode\n | SerializedTextNode\n | SerializedUploadNode\n\n/**\n * Like `TypedEditorState` but includes all default node types.\n * You can pass *additional* node types as a generic parameter.\n */\nexport type DefaultTypedEditorState<\n TAdditionalNodeTypes extends null | SerializedLexicalNode = null,\n> = [TAdditionalNodeTypes] extends null\n ? TypedEditorState<DefaultNodeTypes>\n : TypedEditorState<DefaultNodeTypes | NonNullable<TAdditionalNodeTypes>>\n"],"mappings":"AAsIA;;;GAIA","ignoreList":[]}
@@ -1,14 +0,0 @@
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 { ElementNode } from 'lexical';
9
- import type { Transformer } from './MarkdownTransformers.js';
10
- /**
11
- * Renders string from markdown. The selection is moved to the start after the operation.
12
- */
13
- export declare function createMarkdownExport(transformers: Array<Transformer>, shouldPreserveNewLines?: boolean): (node?: ElementNode) => string;
14
- //# sourceMappingURL=MarkdownExport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownExport.d.ts","sourceRoot":"","sources":["../../../../src/packages/@lexical/markdown/MarkdownExport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAyC,MAAM,SAAS,CAAA;AAIjF,OAAO,KAAK,EAKV,WAAW,EACZ,MAAM,2BAA2B,CAAA;AAIlC;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,EAChC,sBAAsB,GAAE,OAAe,GACtC,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,MAAM,CAkDhC"}
@@ -1,213 +0,0 @@
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 { $getRoot, $isDecoratorNode, $isElementNode, $isLineBreakNode, $isTextNode } from 'lexical';
8
- import { isEmptyParagraph, transformersByType } from './utils.js';
9
- /**
10
- * Renders string from markdown. The selection is moved to the start after the operation.
11
- */
12
- export function createMarkdownExport(transformers, shouldPreserveNewLines = false) {
13
- const byType = transformersByType(transformers);
14
- const elementTransformers = [...byType.multilineElement, ...byType.element];
15
- const isNewlineDelimited = !shouldPreserveNewLines;
16
- // Export only uses text formats that are responsible for single format
17
- // e.g. it will filter out *** (bold, italic) and instead use separate ** and *
18
- const textFormatTransformers = byType.textFormat.filter(transformer => transformer.format.length === 1) // Make sure all text transformers that contain 'code' in their format are at the end of the array. Otherwise, formatted code like
19
- // <strong><code>code</code></strong> will be exported as `**Bold Code**`, as the code format will be applied first, and the bold format
20
- // will be applied second and thus skipped entirely, as the code format will prevent any further formatting.
21
- .sort((a, b) => {
22
- if (a.format.includes('code') && !b.format.includes('code')) {
23
- return 1;
24
- } else if (!a.format.includes('code') && b.format.includes('code')) {
25
- return -1;
26
- } else {
27
- return 0;
28
- }
29
- });
30
- return node => {
31
- const output = [];
32
- const children = (node || $getRoot()).getChildren();
33
- children.forEach((child, i) => {
34
- const result = exportTopLevelElements(child, elementTransformers, textFormatTransformers, byType.textMatch);
35
- if (result != null) {
36
- output.push(
37
- // separate consecutive group of texts with a line break: eg. ["hello", "world"] -> ["hello", "/nworld"]
38
- isNewlineDelimited && i > 0 && !isEmptyParagraph(child) && !isEmptyParagraph(children[i - 1]) ? '\n'.concat(result) : result);
39
- }
40
- });
41
- // Ensure consecutive groups of texts are at least \n\n apart while each empty paragraph render as a newline.
42
- // Eg. ["hello", "", "", "hi", "\nworld"] -> "hello\n\n\nhi\n\nworld"
43
- return output.join('\n');
44
- };
45
- }
46
- function exportTopLevelElements(node, elementTransformers, textTransformersIndex, textMatchTransformers) {
47
- for (const transformer of elementTransformers) {
48
- if (!transformer.export) {
49
- continue;
50
- }
51
- const result = transformer.export(node, _node => exportChildren(_node, textTransformersIndex, textMatchTransformers));
52
- if (result != null) {
53
- return result;
54
- }
55
- }
56
- if ($isElementNode(node)) {
57
- return exportChildren(node, textTransformersIndex, textMatchTransformers);
58
- } else if ($isDecoratorNode(node)) {
59
- return node.getTextContent();
60
- } else {
61
- return null;
62
- }
63
- }
64
- function exportChildren(node, textTransformersIndex, textMatchTransformers, unclosedTags, unclosableTags) {
65
- const output = [];
66
- const children = node.getChildren();
67
- // keep track of unclosed tags from the very beginning
68
- if (!unclosedTags) {
69
- unclosedTags = [];
70
- }
71
- if (!unclosableTags) {
72
- unclosableTags = [];
73
- }
74
- mainLoop: for (const child of children) {
75
- for (const transformer of textMatchTransformers) {
76
- if (!transformer.export) {
77
- continue;
78
- }
79
- const result = transformer.export(child, parentNode => exportChildren(parentNode, textTransformersIndex, textMatchTransformers, unclosedTags,
80
- // Add current unclosed tags to the list of unclosable tags - we don't want nested tags from
81
- // textmatch transformers to close the outer ones, as that may result in invalid markdown.
82
- // E.g. **text [text**](https://lexical.io)
83
- // is invalid markdown, as the closing ** is inside the link.
84
- //
85
- [...unclosableTags, ...unclosedTags]), (textNode, textContent) => exportTextFormat(textNode, textContent, textTransformersIndex, unclosedTags, unclosableTags));
86
- if (result != null) {
87
- output.push(result);
88
- continue mainLoop;
89
- }
90
- }
91
- if ($isLineBreakNode(child)) {
92
- output.push('\n');
93
- } else if ($isTextNode(child)) {
94
- output.push(exportTextFormat(child, child.getTextContent(), textTransformersIndex, unclosedTags, unclosableTags));
95
- } else if ($isElementNode(child)) {
96
- // empty paragraph returns ""
97
- output.push(exportChildren(child, textTransformersIndex, textMatchTransformers, unclosedTags, unclosableTags));
98
- } else if ($isDecoratorNode(child)) {
99
- output.push(child.getTextContent());
100
- }
101
- }
102
- return output.join('');
103
- }
104
- function exportTextFormat(node, textContent, textTransformers,
105
- // unclosed tags include the markdown tags that haven't been closed yet, and their associated formats
106
- unclosedTags, unclosableTags) {
107
- // This function handles the case of a string looking like this: " foo "
108
- // Where it would be invalid markdown to generate: "** foo **"
109
- // We instead want to trim the whitespace out, apply formatting, and then
110
- // bring the whitespace back. So our returned string looks like this: " **foo** "
111
- const frozenString = textContent.trim();
112
- let output = frozenString;
113
- if (!node.hasFormat('code')) {
114
- // Escape any markdown characters in the text content
115
- output = output.replace(/([*_`~\\])/g, '\\$1');
116
- }
117
- // the opening tags to be added to the result
118
- let openingTags = '';
119
- // the closing tags to be added to the result
120
- let closingTagsBefore = '';
121
- let closingTagsAfter = '';
122
- const prevNode = getTextSibling(node, true);
123
- const nextNode = getTextSibling(node, false);
124
- const applied = new Set();
125
- for (const transformer of textTransformers) {
126
- const format = transformer.format[0];
127
- const tag = transformer.tag;
128
- // dedup applied formats
129
- if (hasFormat(node, format) && !applied.has(format)) {
130
- // Multiple tags might be used for the same format (*, _)
131
- applied.add(format);
132
- // append the tag to openningTags, if it's not applied to the previous nodes,
133
- // or the nodes before that (which would result in an unclosed tag)
134
- if (!hasFormat(prevNode, format) || !unclosedTags.find(element => element.tag === tag)) {
135
- unclosedTags.push({
136
- format,
137
- tag
138
- });
139
- openingTags += tag;
140
- }
141
- }
142
- }
143
- // close any tags in the same order they were applied, if necessary
144
- for (let i = 0; i < unclosedTags.length; i++) {
145
- const unclosedTag = unclosedTags[i];
146
- const nodeHasFormat = hasFormat(node, unclosedTag.format);
147
- const nextNodeHasFormat = hasFormat(nextNode, unclosedTag.format);
148
- // prevent adding closing tag if next sibling will do it
149
- if (nodeHasFormat && nextNodeHasFormat) {
150
- continue;
151
- }
152
- const unhandledUnclosedTags = [...unclosedTags] // Shallow copy to avoid modifying the original array
153
- ;
154
- while (unhandledUnclosedTags.length > i) {
155
- const unclosedTag = unhandledUnclosedTags.pop();
156
- // If tag is unclosable, don't close it and leave it in the original array,
157
- // So that it can be closed when it's no longer unclosable
158
- if (unclosableTags && unclosedTag && unclosableTags.find(element => element.tag === unclosedTag.tag)) {
159
- continue;
160
- }
161
- if (unclosedTag && typeof unclosedTag.tag === 'string') {
162
- if (!nodeHasFormat) {
163
- // Handles cases where the tag has not been closed before, e.g. if the previous node
164
- // was a text match transformer that did not account for closing tags of the next node (e.g. a link)
165
- closingTagsBefore += unclosedTag.tag;
166
- } else if (!nextNodeHasFormat) {
167
- closingTagsAfter += unclosedTag.tag;
168
- }
169
- }
170
- // Mutate the original array to remove the closed tag
171
- unclosedTags.pop();
172
- }
173
- break;
174
- }
175
- output = openingTags + output + closingTagsAfter;
176
- // Replace trimmed version of textContent ensuring surrounding whitespace is not modified
177
- return closingTagsBefore + textContent.replace(frozenString, () => output);
178
- }
179
- // Get next or previous text sibling a text node, including cases
180
- // when it's a child of inline element (e.g. link)
181
- function getTextSibling(node, backward) {
182
- let sibling = backward ? node.getPreviousSibling() : node.getNextSibling();
183
- if (!sibling) {
184
- const parent = node.getParentOrThrow();
185
- if (parent.isInline()) {
186
- sibling = backward ? parent.getPreviousSibling() : parent.getNextSibling();
187
- }
188
- }
189
- while (sibling) {
190
- if ($isElementNode(sibling)) {
191
- if (!sibling.isInline()) {
192
- break;
193
- }
194
- const descendant = backward ? sibling.getLastDescendant() : sibling.getFirstDescendant();
195
- if ($isTextNode(descendant)) {
196
- return descendant;
197
- } else {
198
- sibling = backward ? sibling.getPreviousSibling() : sibling.getNextSibling();
199
- }
200
- }
201
- if ($isTextNode(sibling)) {
202
- return sibling;
203
- }
204
- if (!$isElementNode(sibling)) {
205
- return null;
206
- }
207
- }
208
- return null;
209
- }
210
- function hasFormat(node, format) {
211
- return $isTextNode(node) && node.hasFormat(format);
212
- }
213
- //# sourceMappingURL=MarkdownExport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownExport.js","names":["$getRoot","$isDecoratorNode","$isElementNode","$isLineBreakNode","$isTextNode","isEmptyParagraph","transformersByType","createMarkdownExport","transformers","shouldPreserveNewLines","byType","elementTransformers","multilineElement","element","isNewlineDelimited","textFormatTransformers","textFormat","filter","transformer","format","length","sort","a","b","includes","node","output","children","getChildren","forEach","child","i","result","exportTopLevelElements","textMatch","push","concat","join","textTransformersIndex","textMatchTransformers","export","_node","exportChildren","getTextContent","unclosedTags","unclosableTags","mainLoop","parentNode","textNode","textContent","exportTextFormat","textTransformers","frozenString","trim","hasFormat","replace","openingTags","closingTagsBefore","closingTagsAfter","prevNode","getTextSibling","nextNode","applied","Set","tag","has","add","find","unclosedTag","nodeHasFormat","nextNodeHasFormat","unhandledUnclosedTags","pop","backward","sibling","getPreviousSibling","getNextSibling","parent","getParentOrThrow","isInline","descendant","getLastDescendant","getFirstDescendant"],"sources":["../../../../src/packages/@lexical/markdown/MarkdownExport.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, LexicalNode, TextFormatType, TextNode } from 'lexical'\n\nimport { $getRoot, $isDecoratorNode, $isElementNode, $isLineBreakNode, $isTextNode } from 'lexical'\n\nimport type {\n ElementTransformer,\n MultilineElementTransformer,\n TextFormatTransformer,\n TextMatchTransformer,\n Transformer,\n} from './MarkdownTransformers.js'\n\nimport { isEmptyParagraph, transformersByType } from './utils.js'\n\n/**\n * Renders string from markdown. The selection is moved to the start after the operation.\n */\nexport function createMarkdownExport(\n transformers: Array<Transformer>,\n shouldPreserveNewLines: boolean = false,\n): (node?: ElementNode) => string {\n const byType = transformersByType(transformers)\n const elementTransformers = [...byType.multilineElement, ...byType.element]\n const isNewlineDelimited = !shouldPreserveNewLines\n\n // Export only uses text formats that are responsible for single format\n // e.g. it will filter out *** (bold, italic) and instead use separate ** and *\n const textFormatTransformers = byType.textFormat\n .filter((transformer) => transformer.format.length === 1)\n // Make sure all text transformers that contain 'code' in their format are at the end of the array. Otherwise, formatted code like\n // <strong><code>code</code></strong> will be exported as `**Bold Code**`, as the code format will be applied first, and the bold format\n // will be applied second and thus skipped entirely, as the code format will prevent any further formatting.\n .sort((a, b) => {\n if (a.format.includes('code') && !b.format.includes('code')) {\n return 1\n } else if (!a.format.includes('code') && b.format.includes('code')) {\n return -1\n } else {\n return 0\n }\n })\n\n return (node) => {\n const output: string[] = []\n const children = (node || $getRoot()).getChildren()\n\n children.forEach((child, i) => {\n const result = exportTopLevelElements(\n child,\n elementTransformers,\n textFormatTransformers,\n byType.textMatch,\n )\n\n if (result != null) {\n output.push(\n // separate consecutive group of texts with a line break: eg. [\"hello\", \"world\"] -> [\"hello\", \"/nworld\"]\n isNewlineDelimited &&\n i > 0 &&\n !isEmptyParagraph(child) &&\n !isEmptyParagraph(children[i - 1]!)\n ? '\\n'.concat(result)\n : result,\n )\n }\n })\n // Ensure consecutive groups of texts are at least \\n\\n apart while each empty paragraph render as a newline.\n // Eg. [\"hello\", \"\", \"\", \"hi\", \"\\nworld\"] -> \"hello\\n\\n\\nhi\\n\\nworld\"\n return output.join('\\n')\n }\n}\n\nfunction exportTopLevelElements(\n node: LexicalNode,\n elementTransformers: Array<ElementTransformer | MultilineElementTransformer>,\n textTransformersIndex: Array<TextFormatTransformer>,\n textMatchTransformers: Array<TextMatchTransformer>,\n): null | string {\n for (const transformer of elementTransformers) {\n if (!transformer.export) {\n continue\n }\n const result = transformer.export(node, (_node) =>\n exportChildren(_node, textTransformersIndex, textMatchTransformers),\n )\n\n if (result != null) {\n return result\n }\n }\n\n if ($isElementNode(node)) {\n return exportChildren(node, textTransformersIndex, textMatchTransformers)\n } else if ($isDecoratorNode(node)) {\n return node.getTextContent()\n } else {\n return null\n }\n}\n\nfunction exportChildren(\n node: ElementNode,\n textTransformersIndex: Array<TextFormatTransformer>,\n textMatchTransformers: Array<TextMatchTransformer>,\n unclosedTags?: Array<{ format: TextFormatType; tag: string }>,\n unclosableTags?: Array<{ format: TextFormatType; tag: string }>,\n): string {\n const output = []\n const children = node.getChildren()\n // keep track of unclosed tags from the very beginning\n if (!unclosedTags) {\n unclosedTags = []\n }\n if (!unclosableTags) {\n unclosableTags = []\n }\n\n mainLoop: for (const child of children) {\n for (const transformer of textMatchTransformers) {\n if (!transformer.export) {\n continue\n }\n\n const result = transformer.export(\n child,\n (parentNode) =>\n exportChildren(\n parentNode,\n textTransformersIndex,\n textMatchTransformers,\n unclosedTags,\n // Add current unclosed tags to the list of unclosable tags - we don't want nested tags from\n // textmatch transformers to close the outer ones, as that may result in invalid markdown.\n // E.g. **text [text**](https://lexical.io)\n // is invalid markdown, as the closing ** is inside the link.\n //\n [...unclosableTags, ...unclosedTags],\n ),\n (textNode, textContent) =>\n exportTextFormat(\n textNode,\n textContent,\n textTransformersIndex,\n unclosedTags,\n unclosableTags,\n ),\n )\n\n if (result != null) {\n output.push(result)\n continue mainLoop\n }\n }\n\n if ($isLineBreakNode(child)) {\n output.push('\\n')\n } else if ($isTextNode(child)) {\n output.push(\n exportTextFormat(\n child,\n child.getTextContent(),\n textTransformersIndex,\n unclosedTags,\n unclosableTags,\n ),\n )\n } else if ($isElementNode(child)) {\n // empty paragraph returns \"\"\n output.push(\n exportChildren(\n child,\n textTransformersIndex,\n textMatchTransformers,\n unclosedTags,\n unclosableTags,\n ),\n )\n } else if ($isDecoratorNode(child)) {\n output.push(child.getTextContent())\n }\n }\n\n return output.join('')\n}\n\nfunction exportTextFormat(\n node: TextNode,\n textContent: string,\n textTransformers: Array<TextFormatTransformer>,\n // unclosed tags include the markdown tags that haven't been closed yet, and their associated formats\n unclosedTags: Array<{ format: TextFormatType; tag: string }>,\n unclosableTags?: Array<{ format: TextFormatType; tag: string }>,\n): string {\n // This function handles the case of a string looking like this: \" foo \"\n // Where it would be invalid markdown to generate: \"** foo **\"\n // We instead want to trim the whitespace out, apply formatting, and then\n // bring the whitespace back. So our returned string looks like this: \" **foo** \"\n const frozenString = textContent.trim()\n let output = frozenString\n\n if (!node.hasFormat('code')) {\n // Escape any markdown characters in the text content\n output = output.replace(/([*_`~\\\\])/g, '\\\\$1')\n }\n\n // the opening tags to be added to the result\n let openingTags = ''\n // the closing tags to be added to the result\n let closingTagsBefore = ''\n let closingTagsAfter = ''\n\n const prevNode = getTextSibling(node, true)\n const nextNode = getTextSibling(node, false)\n\n const applied = new Set()\n\n for (const transformer of textTransformers) {\n const format = transformer.format[0]!\n const tag = transformer.tag\n\n // dedup applied formats\n if (hasFormat(node, format) && !applied.has(format)) {\n // Multiple tags might be used for the same format (*, _)\n applied.add(format)\n\n // append the tag to openningTags, if it's not applied to the previous nodes,\n // or the nodes before that (which would result in an unclosed tag)\n if (!hasFormat(prevNode, format) || !unclosedTags.find((element) => element.tag === tag)) {\n unclosedTags.push({ format, tag })\n openingTags += tag\n }\n }\n }\n\n // close any tags in the same order they were applied, if necessary\n for (let i = 0; i < unclosedTags.length; i++) {\n const unclosedTag = unclosedTags[i]!\n const nodeHasFormat = hasFormat(node, unclosedTag.format)\n const nextNodeHasFormat = hasFormat(nextNode, unclosedTag.format)\n\n // prevent adding closing tag if next sibling will do it\n if (nodeHasFormat && nextNodeHasFormat) {\n continue\n }\n\n const unhandledUnclosedTags = [...unclosedTags] // Shallow copy to avoid modifying the original array\n\n while (unhandledUnclosedTags.length > i) {\n const unclosedTag = unhandledUnclosedTags.pop()\n\n // If tag is unclosable, don't close it and leave it in the original array,\n // So that it can be closed when it's no longer unclosable\n if (\n unclosableTags &&\n unclosedTag &&\n unclosableTags.find((element) => element.tag === unclosedTag.tag)\n ) {\n continue\n }\n\n if (unclosedTag && typeof unclosedTag.tag === 'string') {\n if (!nodeHasFormat) {\n // Handles cases where the tag has not been closed before, e.g. if the previous node\n // was a text match transformer that did not account for closing tags of the next node (e.g. a link)\n closingTagsBefore += unclosedTag.tag\n } else if (!nextNodeHasFormat) {\n closingTagsAfter += unclosedTag.tag\n }\n }\n // Mutate the original array to remove the closed tag\n unclosedTags.pop()\n }\n break\n }\n\n output = openingTags + output + closingTagsAfter\n // Replace trimmed version of textContent ensuring surrounding whitespace is not modified\n return closingTagsBefore + textContent.replace(frozenString, () => output)\n}\n\n// Get next or previous text sibling a text node, including cases\n// when it's a child of inline element (e.g. link)\nfunction getTextSibling(node: TextNode, backward: boolean): null | TextNode {\n let sibling = backward ? node.getPreviousSibling() : node.getNextSibling()\n\n if (!sibling) {\n const parent = node.getParentOrThrow()\n\n if (parent.isInline()) {\n sibling = backward ? parent.getPreviousSibling() : parent.getNextSibling()\n }\n }\n\n while (sibling) {\n if ($isElementNode(sibling)) {\n if (!sibling.isInline()) {\n break\n }\n\n const descendant = backward ? sibling.getLastDescendant() : sibling.getFirstDescendant()\n\n if ($isTextNode(descendant)) {\n return descendant\n } else {\n sibling = backward ? sibling.getPreviousSibling() : sibling.getNextSibling()\n }\n }\n\n if ($isTextNode(sibling)) {\n return sibling\n }\n\n if (!$isElementNode(sibling)) {\n return null\n }\n }\n\n return null\n}\n\nfunction hasFormat(node: LexicalNode | null | undefined, format: TextFormatType): boolean {\n return $isTextNode(node) && node.hasFormat(format)\n}\n"],"mappings":"AAAA;;;;;;GAUA,SAASA,QAAQ,EAAEC,gBAAgB,EAAEC,cAAc,EAAEC,gBAAgB,EAAEC,WAAW,QAAQ;AAU1F,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ;AAErD;;;AAGA,OAAO,SAASC,qBACdC,YAAgC,EAChCC,sBAAA,GAAkC,KAAK;EAEvC,MAAMC,MAAA,GAASJ,kBAAA,CAAmBE,YAAA;EAClC,MAAMG,mBAAA,GAAsB,C,GAAID,MAAA,CAAOE,gBAAgB,E,GAAKF,MAAA,CAAOG,OAAO,CAAC;EAC3E,MAAMC,kBAAA,GAAqB,CAACL,sBAAA;EAE5B;EACA;EACA,MAAMM,sBAAA,GAAyBL,MAAA,CAAOM,UAAU,CAC7CC,MAAM,CAAEC,WAAA,IAAgBA,WAAA,CAAYC,MAAM,CAACC,MAAM,KAAK,EACvD;EACA;EACA;EAAA,CACCC,IAAI,CAAC,CAACC,CAAA,EAAGC,CAAA;IACR,IAAID,CAAA,CAAEH,MAAM,CAACK,QAAQ,CAAC,WAAW,CAACD,CAAA,CAAEJ,MAAM,CAACK,QAAQ,CAAC,SAAS;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B,MAAA,GAASgC,gBAAA;EAChC;EACA,OAAOD,iBAAA,GAAoBR,WAAA,CAAYM,OAAO,CAACH,YAAA,EAAc,MAAM1B,MAAA;AACrE;AAEA;AACA;AACA,SAASkC,eAAenC,IAAc,EAAEgD,QAAiB;EACvD,IAAIC,OAAA,GAAUD,QAAA,GAAWhD,IAAA,CAAKkD,kBAAkB,KAAKlD,IAAA,CAAKmD,cAAc;EAExE,IAAI,CAACF,OAAA,EAAS;IACZ,MAAMG,MAAA,GAASpD,IAAA,CAAKqD,gBAAgB;IAEpC,IAAID,MAAA,CAAOE,QAAQ,IAAI;MACrBL,OAAA,GAAUD,QAAA,GAAWI,MAAA,CAAOF,kBAAkB,KAAKE,MAAA,CAAOD,cAAc;IAC1E;EACF;EAEA,OAAOF,OAAA,EAAS;IACd,IAAIxE,cAAA,CAAewE,OAAA,GAAU;MAC3B,IAAI,CAACA,OAAA,CAAQK,QAAQ,IAAI;QACvB;MACF;MAEA,MAAMC,UAAA,GAAaP,QAAA,GAAWC,OAAA,CAAQO,iBAAiB,KAAKP,OAAA,CAAQQ,kBAAkB;MAEtF,IAAI9E,WAAA,CAAY4E,UAAA,GAAa;QAC3B,OAAOA,UAAA;MACT,OAAO;QACLN,OAAA,GAAUD,QAAA,GAAWC,OAAA,CAAQC,kBAAkB,KAAKD,OAAA,CAAQE,cAAc;MAC5E;IACF;IAEA,IAAIxE,WAAA,CAAYsE,OAAA,GAAU;MACxB,OAAOA,OAAA;IACT;IAEA,IAAI,CAACxE,cAAA,CAAewE,OAAA,GAAU;MAC5B,OAAO;IACT;EACF;EAEA,OAAO;AACT;AAEA,SAASpB,UAAU7B,IAAoC,EAAEN,MAAsB;EAC7E,OAAOf,WAAA,CAAYqB,IAAA,KAASA,IAAA,CAAK6B,SAAS,CAACnC,MAAA;AAC7C","ignoreList":[]}
@@ -1,19 +0,0 @@
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 { ElementNode } from 'lexical';
9
- import type { TextFormatTransformer, Transformer } from './MarkdownTransformers.js';
10
- export type TextFormatTransformersIndex = Readonly<{
11
- fullMatchRegExpByTag: Readonly<Record<string, RegExp>>;
12
- openTagsRegExp: RegExp;
13
- transformersByTag: Readonly<Record<string, TextFormatTransformer>>;
14
- }>;
15
- /**
16
- * Renders markdown from a string. The selection is moved to the start after the operation.
17
- */
18
- export declare function createMarkdownImport(transformers: Array<Transformer>, shouldPreserveNewLines?: boolean): (markdownString: string, node?: ElementNode) => void;
19
- //# sourceMappingURL=MarkdownImport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownImport.d.ts","sourceRoot":"","sources":["../../../../src/packages/@lexical/markdown/MarkdownImport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAc1C,OAAO,KAAK,EAGV,qBAAqB,EAErB,WAAW,EACZ,MAAM,2BAA2B,CAAA;AAKlC,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACtD,cAAc,EAAE,MAAM,CAAA;IACtB,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAA;CACnE,CAAC,CAAA;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,EAChC,sBAAsB,UAAQ,GAC7B,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,CAyCtD"}