@payloadcms/richtext-lexical 4.0.0-internal.38b7f1d → 4.0.0-internal.45cfa3d

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 (771) 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-5RONAYJM.js → RelationshipComponent-YCPAKOL7.js} +2 -2
  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-X3D4LZS7.js +2 -0
  20. package/dist/exports/client/chunk-X3D4LZS7.js.map +7 -0
  21. package/dist/exports/client/component-PHZQBOJE.js +2 -0
  22. package/dist/exports/client/component-PHZQBOJE.js.map +7 -0
  23. package/dist/exports/client/componentInline-H24N7GUG.js +2 -0
  24. package/dist/exports/client/index.d.ts +0 -1
  25. package/dist/exports/client/index.d.ts.map +1 -1
  26. package/dist/exports/client/index.js +20 -21
  27. package/dist/exports/client/index.js.map +4 -4
  28. package/dist/exports/react/index.d.ts +1 -1
  29. package/dist/exports/react/index.d.ts.map +1 -1
  30. package/dist/exports/react/index.js.map +1 -1
  31. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  32. package/dist/features/blockquote/client/index.js +2 -2
  33. package/dist/features/blockquote/client/index.js.map +1 -1
  34. package/dist/features/blockquote/server/index.d.ts +1 -4
  35. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  36. package/dist/features/blockquote/server/index.js +4 -2
  37. package/dist/features/blockquote/server/index.js.map +1 -1
  38. package/dist/features/blockquote/server/schema.d.ts +8 -0
  39. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  40. package/dist/features/blockquote/server/schema.js +15 -0
  41. package/dist/features/blockquote/server/schema.js.map +1 -0
  42. package/dist/features/blocks/client/component/index.css +2 -2
  43. package/dist/features/blocks/client/component/index.d.ts +3 -2
  44. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  45. package/dist/features/blocks/client/component/index.js +18 -10
  46. package/dist/features/blocks/client/component/index.js.map +1 -1
  47. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  48. package/dist/features/blocks/client/componentInline/index.css +8 -8
  49. package/dist/features/blocks/client/componentInline/index.d.ts +3 -2
  50. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  51. package/dist/features/blocks/client/componentInline/index.js +17 -9
  52. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  53. package/dist/features/blocks/client/index.d.ts.map +1 -1
  54. package/dist/features/blocks/client/index.js +4 -2
  55. package/dist/features/blocks/client/index.js.map +1 -1
  56. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  57. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  58. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  59. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  60. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  61. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  62. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  63. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  64. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  65. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  66. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  67. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  68. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  69. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  70. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  71. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  72. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  73. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  74. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  75. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  76. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  77. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  78. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +1 -0
  79. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  80. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +1 -1
  81. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +2 -4
  82. package/dist/features/blocks/premade/CodeBlock/Component/index.css +5 -5
  83. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  84. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  85. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  86. package/dist/features/blocks/server/index.d.ts +1 -0
  87. package/dist/features/blocks/server/index.d.ts.map +1 -1
  88. package/dist/features/blocks/server/index.js +24 -72
  89. package/dist/features/blocks/server/index.js.map +1 -1
  90. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  91. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  92. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  93. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  94. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  95. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  96. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  97. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  98. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  99. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  100. package/dist/features/blocks/server/schema.d.ts +45 -0
  101. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  102. package/dist/features/blocks/server/schema.js +140 -0
  103. package/dist/features/blocks/server/schema.js.map +1 -0
  104. package/dist/features/blocks/server/validate.d.ts +1 -2
  105. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  106. package/dist/features/blocks/server/validate.js.map +1 -1
  107. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  108. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  109. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  110. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  111. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  112. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  113. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  114. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  115. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  116. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  117. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  118. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  119. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  120. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  121. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  122. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  123. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  124. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  125. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  136. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  138. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  139. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  140. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  143. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  145. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  147. package/dist/features/converters/lexicalToHtml/async/types.d.ts +15 -16
  148. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  150. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  151. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  152. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  153. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  155. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  156. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  158. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  159. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  160. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  161. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  162. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  163. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  164. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  165. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  166. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  167. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  168. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  169. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  170. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  171. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  178. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  180. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  181. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  183. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  184. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  189. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +15 -16
  190. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  191. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  192. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +6 -4
  193. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  194. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  195. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  196. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  197. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  198. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  199. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  200. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  201. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  202. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  203. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  204. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  205. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  206. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  207. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  208. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  209. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  210. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  211. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  212. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  213. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  214. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  215. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  216. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  217. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  223. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  224. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  226. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  227. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  228. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  229. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +13 -15
  236. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  237. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  238. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  239. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  240. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  241. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -1
  242. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  243. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +13 -15
  244. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  245. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  246. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  247. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  248. package/dist/features/converters/markdownToLexical/index.js +5 -2
  249. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  250. package/dist/features/debug/jsxConverter/client/plugin/style.css +2 -2
  251. package/dist/features/experimental_table/client/index.js +2 -2
  252. package/dist/features/experimental_table/client/index.js.map +1 -1
  253. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.css +4 -4
  254. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.css +1 -1
  255. package/dist/features/experimental_table/markdownTransformer.d.ts +2 -2
  256. package/dist/features/experimental_table/markdownTransformer.d.ts.map +1 -1
  257. package/dist/features/experimental_table/markdownTransformer.js +6 -3
  258. package/dist/features/experimental_table/markdownTransformer.js.map +1 -1
  259. package/dist/features/experimental_table/server/index.d.ts +1 -6
  260. package/dist/features/experimental_table/server/index.d.ts.map +1 -1
  261. package/dist/features/experimental_table/server/index.js +6 -2
  262. package/dist/features/experimental_table/server/index.js.map +1 -1
  263. package/dist/features/experimental_table/server/schema.d.ts +27 -0
  264. package/dist/features/experimental_table/server/schema.d.ts.map +1 -0
  265. package/dist/features/experimental_table/server/schema.js +107 -0
  266. package/dist/features/experimental_table/server/schema.js.map +1 -0
  267. package/dist/features/format/bold/feature.client.js +1 -1
  268. package/dist/features/format/bold/feature.client.js.map +1 -1
  269. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  270. package/dist/features/format/bold/feature.server.js +1 -1
  271. package/dist/features/format/bold/feature.server.js.map +1 -1
  272. package/dist/features/format/inlineCode/feature.client.js +1 -1
  273. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  274. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  275. package/dist/features/format/inlineCode/feature.server.js +1 -1
  276. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  277. package/dist/features/format/italic/feature.client.js +1 -1
  278. package/dist/features/format/italic/feature.client.js.map +1 -1
  279. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  280. package/dist/features/format/italic/feature.server.js +1 -1
  281. package/dist/features/format/italic/feature.server.js.map +1 -1
  282. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  283. package/dist/features/format/strikethrough/feature.client.js +1 -1
  284. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  285. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  286. package/dist/features/format/strikethrough/feature.server.js +1 -1
  287. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  288. package/dist/features/heading/client/index.js +2 -2
  289. package/dist/features/heading/client/index.js.map +1 -1
  290. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  291. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  292. package/dist/features/heading/markdownTransformer.js +6 -19
  293. package/dist/features/heading/markdownTransformer.js.map +1 -1
  294. package/dist/features/heading/server/index.d.ts +2 -4
  295. package/dist/features/heading/server/index.d.ts.map +1 -1
  296. package/dist/features/heading/server/index.js +4 -2
  297. package/dist/features/heading/server/index.js.map +1 -1
  298. package/dist/features/heading/server/schema.d.ts +10 -0
  299. package/dist/features/heading/server/schema.d.ts.map +1 -0
  300. package/dist/features/heading/server/schema.js +37 -0
  301. package/dist/features/heading/server/schema.js.map +1 -0
  302. package/dist/features/horizontalRule/client/index.js +2 -2
  303. package/dist/features/horizontalRule/client/index.js.map +1 -1
  304. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  305. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  306. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  307. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  308. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +1 -1
  309. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  310. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  311. package/dist/features/horizontalRule/client/plugin/index.css +2 -2
  312. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  313. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  314. package/dist/features/horizontalRule/server/index.js +4 -2
  315. package/dist/features/horizontalRule/server/index.js.map +1 -1
  316. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  317. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  318. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  319. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  320. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +1 -5
  321. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  322. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  323. package/dist/features/horizontalRule/server/schema.d.ts +7 -0
  324. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  325. package/dist/features/horizontalRule/server/schema.js +25 -0
  326. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  327. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  328. package/dist/features/link/client/index.d.ts.map +1 -1
  329. package/dist/features/link/client/index.js +2 -2
  330. package/dist/features/link/client/index.js.map +1 -1
  331. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  332. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  333. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  334. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +3 -3
  335. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  336. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +7 -11
  337. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  338. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  339. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  340. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  341. package/dist/features/link/markdownTransformer.d.ts +5 -5
  342. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  343. package/dist/features/link/markdownTransformer.js +2 -2
  344. package/dist/features/link/markdownTransformer.js.map +1 -1
  345. package/dist/features/link/markdownTransformer.spec.js +10 -10
  346. package/dist/features/link/markdownTransformer.spec.js.map +1 -1
  347. package/dist/features/link/nodes/AutoLinkNode.d.ts +3 -3
  348. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  349. package/dist/features/link/nodes/AutoLinkNode.js +2 -1
  350. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  351. package/dist/features/link/nodes/LinkNode.d.ts +3 -3
  352. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  353. package/dist/features/link/nodes/LinkNode.js +2 -1
  354. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  355. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  356. package/dist/features/link/server/baseFields.js.map +1 -1
  357. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  358. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  359. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  360. package/dist/features/link/server/index.d.ts +2 -1
  361. package/dist/features/link/server/index.d.ts.map +1 -1
  362. package/dist/features/link/server/index.js +5 -2
  363. package/dist/features/link/server/index.js.map +1 -1
  364. package/dist/features/link/server/schema.d.ts +32 -0
  365. package/dist/features/link/server/schema.d.ts.map +1 -0
  366. package/dist/features/link/server/schema.js +171 -0
  367. package/dist/features/link/server/schema.js.map +1 -0
  368. package/dist/features/link/server/validate.d.ts +1 -1
  369. package/dist/features/link/server/validate.d.ts.map +1 -1
  370. package/dist/features/link/server/validate.js.map +1 -1
  371. package/dist/features/lists/checklist/client/index.js +1 -1
  372. package/dist/features/lists/checklist/client/index.js.map +1 -1
  373. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  374. package/dist/features/lists/checklist/server/index.js +4 -1
  375. package/dist/features/lists/checklist/server/index.js.map +1 -1
  376. package/dist/features/lists/orderedList/client/index.js +1 -1
  377. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  378. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  379. package/dist/features/lists/orderedList/server/index.js +4 -1
  380. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  381. package/dist/features/lists/plugin/index.d.ts +0 -9
  382. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  383. package/dist/features/lists/plugin/index.js.map +1 -1
  384. package/dist/features/lists/shared/schema.d.ts +18 -0
  385. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  386. package/dist/features/lists/shared/schema.js +62 -0
  387. package/dist/features/lists/shared/schema.js.map +1 -0
  388. package/dist/features/lists/unorderedList/client/index.js +1 -1
  389. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  390. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  391. package/dist/features/lists/unorderedList/server/index.js +4 -1
  392. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  393. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +1 -1
  394. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  395. package/dist/features/relationship/client/components/RelationshipComponent.js +2 -2
  396. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  397. package/dist/features/relationship/client/components/index.css +2 -2
  398. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  399. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  400. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  401. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  402. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  403. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  404. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  405. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  406. package/dist/features/relationship/client/utils/useEnabledRelationships.js +9 -40
  407. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  408. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  409. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  410. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  411. package/dist/features/relationship/server/index.d.ts +1 -0
  412. package/dist/features/relationship/server/index.d.ts.map +1 -1
  413. package/dist/features/relationship/server/index.js +2 -0
  414. package/dist/features/relationship/server/index.js.map +1 -1
  415. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  416. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  417. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  418. package/dist/features/relationship/server/schema.d.ts +28 -0
  419. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  420. package/dist/features/relationship/server/schema.js +97 -0
  421. package/dist/features/relationship/server/schema.js.map +1 -0
  422. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +23 -0
  423. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  424. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +34 -0
  425. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  426. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  427. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  428. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  429. package/dist/features/textState/feature.client.js +1 -1
  430. package/dist/features/textState/feature.client.js.map +1 -1
  431. package/dist/features/toolbars/fixed/client/Toolbar/index.css +2 -2
  432. package/dist/features/toolbars/inline/client/Toolbar/index.css +2 -13
  433. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  434. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  435. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +1 -2
  436. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  437. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +8 -12
  438. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  439. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  440. package/dist/features/toolbars/shared/useToolbarStates.d.ts.map +1 -1
  441. package/dist/features/toolbars/shared/useToolbarStates.js +3 -1
  442. package/dist/features/toolbars/shared/useToolbarStates.js.map +1 -1
  443. package/dist/features/toolbars/types.d.ts +1 -1
  444. package/dist/features/toolbars/types.d.ts.map +1 -1
  445. package/dist/features/toolbars/types.js.map +1 -1
  446. package/dist/features/typesClient.d.ts +2 -2
  447. package/dist/features/typesClient.d.ts.map +1 -1
  448. package/dist/features/typesClient.js.map +1 -1
  449. package/dist/features/typesServer.d.ts +19 -42
  450. package/dist/features/typesServer.d.ts.map +1 -1
  451. package/dist/features/typesServer.js.map +1 -1
  452. package/dist/features/upload/client/component/index.css +22 -26
  453. package/dist/features/upload/client/component/index.d.ts +1 -1
  454. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  455. package/dist/features/upload/client/component/index.js +4 -4
  456. package/dist/features/upload/client/component/index.js.map +1 -1
  457. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  458. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  459. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  460. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  461. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  462. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  463. package/dist/features/upload/client/plugin/index.js +5 -5
  464. package/dist/features/upload/client/plugin/index.js.map +1 -1
  465. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  466. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  467. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  468. package/dist/features/upload/server/index.d.ts +1 -0
  469. package/dist/features/upload/server/index.d.ts.map +1 -1
  470. package/dist/features/upload/server/index.js +5 -4
  471. package/dist/features/upload/server/index.js.map +1 -1
  472. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  473. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  474. package/dist/features/upload/server/markdownTransformer.js +1 -1
  475. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  476. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  477. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  478. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  479. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  480. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  481. package/dist/features/upload/server/schema.d.ts +52 -0
  482. package/dist/features/upload/server/schema.d.ts.map +1 -0
  483. package/dist/features/upload/server/schema.js +149 -0
  484. package/dist/features/upload/server/schema.js.map +1 -0
  485. package/dist/features/upload/server/validate.d.ts +1 -1
  486. package/dist/features/upload/server/validate.d.ts.map +1 -1
  487. package/dist/features/upload/server/validate.js.map +1 -1
  488. package/dist/field/Diff/converters/link.d.ts +1 -1
  489. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  490. package/dist/field/Diff/converters/link.js.map +1 -1
  491. package/dist/field/Diff/converters/listitem/index.css +44 -8
  492. package/dist/field/Diff/converters/listitem/index.d.ts +1 -1
  493. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  494. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  495. package/dist/field/Diff/converters/relationship/index.css +76 -36
  496. package/dist/field/Diff/converters/relationship/index.d.ts +1 -1
  497. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  498. package/dist/field/Diff/converters/relationship/index.js +10 -28
  499. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  500. package/dist/field/Diff/converters/unknown/index.css +1 -1
  501. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  502. package/dist/field/Diff/converters/upload/index.css +106 -43
  503. package/dist/field/Diff/converters/upload/index.d.ts +1 -1
  504. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  505. package/dist/field/Diff/converters/upload/index.js +6 -2
  506. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  507. package/dist/field/Diff/index.css +116 -61
  508. package/dist/field/Diff/index.js.map +1 -1
  509. package/dist/field/Field.d.ts +1 -1
  510. package/dist/field/Field.d.ts.map +1 -1
  511. package/dist/field/Field.js +4 -5
  512. package/dist/field/Field.js.map +1 -1
  513. package/dist/field/RenderLexical/index.d.ts +2 -2
  514. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  515. package/dist/field/RenderLexical/index.js.map +1 -1
  516. package/dist/field/RichTextViewProvider.d.ts +1 -1
  517. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  518. package/dist/field/RichTextViewProvider.js.map +1 -1
  519. package/dist/field/ViewSelector.css +1 -1
  520. package/dist/field/bundled.css +1 -1
  521. package/dist/field/index.css +5 -5
  522. package/dist/field/index.d.ts +1 -1
  523. package/dist/field/index.d.ts.map +1 -1
  524. package/dist/field/index.js +1 -1
  525. package/dist/field/index.js.map +1 -1
  526. package/dist/field/rscEntry.d.ts +1 -1
  527. package/dist/field/rscEntry.d.ts.map +1 -1
  528. package/dist/field/rscEntry.js +2 -0
  529. package/dist/field/rscEntry.js.map +1 -1
  530. package/dist/hooks.d.ts +6 -0
  531. package/dist/hooks.d.ts.map +1 -0
  532. package/dist/hooks.js +548 -0
  533. package/dist/hooks.js.map +1 -0
  534. package/dist/index.d.ts +13 -10
  535. package/dist/index.d.ts.map +1 -1
  536. package/dist/index.js +12 -621
  537. package/dist/index.js.map +1 -1
  538. package/dist/lexical/LexicalEditor.css +2 -2
  539. package/dist/lexical/LexicalProvider.d.ts +1 -1
  540. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  541. package/dist/lexical/LexicalProvider.js.map +1 -1
  542. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  543. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  544. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  545. package/dist/lexical/config/client/loader.d.ts +1 -1
  546. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  547. package/dist/lexical/config/client/loader.js +5 -1
  548. package/dist/lexical/config/client/loader.js.map +1 -1
  549. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  550. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  551. package/dist/lexical/config/client/sanitize.js.map +1 -1
  552. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  553. package/dist/lexical/config/server/sanitize.js +9 -11
  554. package/dist/lexical/config/server/sanitize.js.map +1 -1
  555. package/dist/lexical/config/types.d.ts +1 -1
  556. package/dist/lexical/config/types.d.ts.map +1 -1
  557. package/dist/lexical/config/types.js.map +1 -1
  558. package/dist/lexical/nodes/index.d.ts +1 -1
  559. package/dist/lexical/nodes/index.d.ts.map +1 -1
  560. package/dist/lexical/nodes/index.js.map +1 -1
  561. package/dist/lexical/plugins/DecoratorPlugin/index.css +1 -1
  562. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  563. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  564. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  565. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  566. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  567. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  568. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  569. package/dist/lexical/plugins/SlashMenu/index.css +1 -5
  570. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +1 -1
  571. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  572. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +3 -3
  573. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +1 -1
  574. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  575. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  576. package/dist/lexical/theme/EditorTheme.css +20 -21
  577. package/dist/lexical/ui/ContentEditable.css +5 -5
  578. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  579. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  580. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  581. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  582. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js +88 -0
  583. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js.map +1 -0
  584. package/dist/lexical/utils/markdown/createBlockNode.d.ts +1 -1
  585. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  586. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  587. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  588. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  589. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  590. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  591. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  592. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  593. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  594. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  595. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  596. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  597. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  598. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  599. package/dist/types/builtInNodes.d.ts +14 -0
  600. package/dist/types/builtInNodes.d.ts.map +1 -0
  601. package/dist/types/builtInNodes.js +203 -0
  602. package/dist/types/builtInNodes.js.map +1 -0
  603. package/dist/{types.d.ts → types/index.d.ts} +25 -26
  604. package/dist/types/index.d.ts.map +1 -0
  605. package/dist/types/index.js +2 -0
  606. package/dist/types/index.js.map +1 -0
  607. package/dist/types/jsonSchemaHelpers.d.ts +30 -0
  608. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  609. package/dist/types/jsonSchemaHelpers.js +58 -0
  610. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  611. package/dist/types/nodeTypes.d.ts +128 -0
  612. package/dist/types/nodeTypes.d.ts.map +1 -0
  613. package/dist/types/nodeTypes.js +6 -0
  614. package/dist/types/nodeTypes.js.map +1 -0
  615. package/dist/types/schema.d.ts +6 -0
  616. package/dist/types/schema.d.ts.map +1 -0
  617. package/dist/types/schema.js +90 -0
  618. package/dist/types/schema.js.map +1 -0
  619. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  620. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  621. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  622. package/dist/utilities/buildEditorState.d.ts +18 -4
  623. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  624. package/dist/utilities/buildEditorState.js +8 -0
  625. package/dist/utilities/buildEditorState.js.map +1 -1
  626. package/dist/utilities/buildInitialState.d.ts +2 -1
  627. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  628. package/dist/utilities/buildInitialState.js.map +1 -1
  629. package/dist/utilities/createClientFeature.d.ts +1 -1
  630. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  631. package/dist/utilities/createClientFeature.js.map +1 -1
  632. package/dist/utilities/editorConfigFactory.d.ts +1 -1
  633. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  634. package/dist/utilities/editorConfigFactory.js.map +1 -1
  635. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  636. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  637. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  638. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  639. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  640. package/dist/utilities/fieldsDrawer/DrawerContent.js +8 -7
  641. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  642. package/dist/utilities/fieldsDrawer/index.css +12 -0
  643. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  644. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  645. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  646. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  647. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  648. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  649. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  650. package/dist/utilities/generateImportMap.d.ts +1 -1
  651. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  652. package/dist/utilities/generateImportMap.js.map +1 -1
  653. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  654. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  655. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  656. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  657. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  658. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  659. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  660. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  661. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  662. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  663. package/dist/validate/index.d.ts.map +1 -1
  664. package/package.json +28 -32
  665. package/dist/exports/client/Field-PJW7KUJG.js +0 -2
  666. package/dist/exports/client/Field-PJW7KUJG.js.map +0 -7
  667. package/dist/exports/client/RelationshipComponent-5RONAYJM.js.map +0 -7
  668. package/dist/exports/client/chunk-44G3K3W7.js +0 -2
  669. package/dist/exports/client/chunk-44G3K3W7.js.map +0 -7
  670. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  671. package/dist/exports/client/chunk-FTT5KJ6W.js +0 -12
  672. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  673. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  674. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  675. package/dist/exports/client/chunk-QJ5EETIB.js +0 -2
  676. package/dist/exports/client/chunk-QJ5EETIB.js.map +0 -7
  677. package/dist/exports/client/component-53Y3RYR5.js +0 -2
  678. package/dist/exports/client/component-53Y3RYR5.js.map +0 -7
  679. package/dist/exports/client/componentInline-PM4PLNUK.js +0 -2
  680. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  681. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  682. package/dist/features/blockquote/markdownTransformer.js +0 -33
  683. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  684. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  685. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  686. package/dist/features/format/bold/markdownTransformers.js +0 -23
  687. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  688. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  689. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  690. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  691. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  692. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  693. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  694. package/dist/features/format/italic/markdownTransformers.js +0 -12
  695. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  696. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  697. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  698. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  699. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  700. package/dist/features/link/nodes/types.d.ts +0 -27
  701. package/dist/features/link/nodes/types.d.ts.map +0 -1
  702. package/dist/features/link/nodes/types.js +0 -2
  703. package/dist/features/link/nodes/types.js.map +0 -1
  704. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  705. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  706. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  707. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  708. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  709. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  710. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  711. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  712. package/dist/features/lists/shared/markdown.d.ts +0 -6
  713. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  714. package/dist/features/lists/shared/markdown.js +0 -57
  715. package/dist/features/lists/shared/markdown.js.map +0 -1
  716. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  717. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  718. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  719. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  720. package/dist/lexical/utils/guard.d.ts +0 -5
  721. package/dist/lexical/utils/guard.d.ts.map +0 -1
  722. package/dist/lexical/utils/guard.js +0 -9
  723. package/dist/lexical/utils/guard.js.map +0 -1
  724. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +0 -2
  725. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +0 -1
  726. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +0 -2
  727. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +0 -1
  728. package/dist/nodeTypes.d.ts +0 -74
  729. package/dist/nodeTypes.d.ts.map +0 -1
  730. package/dist/nodeTypes.js +0 -5
  731. package/dist/nodeTypes.js.map +0 -1
  732. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  733. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  734. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -213
  735. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  736. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  737. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  738. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -198
  739. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  740. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  741. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  742. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  743. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  744. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -147
  745. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  746. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -268
  747. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  748. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  749. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  750. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  751. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  752. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  753. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  754. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  755. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  756. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  757. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  758. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  759. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  760. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  761. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  762. package/dist/packages/@lexical/markdown/index.js +0 -39
  763. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  764. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  765. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  766. package/dist/packages/@lexical/markdown/utils.js +0 -267
  767. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  768. package/dist/types.d.ts.map +0 -1
  769. package/dist/types.js +0 -2
  770. package/dist/types.js.map +0 -1
  771. /package/dist/exports/client/{componentInline-PM4PLNUK.js.map → componentInline-H24N7GUG.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToHtml/sync/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAA;AAEzE,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,IAE3F,CAAC,CAAC,IAAI,EAAE;IACN,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,cAAc,CAAA;IAC1B,IAAI,EAAE,CAAC,CAAA;IACP,WAAW,EAAE,CAAC,IAAI,EAAE;QAClB,UAAU,CAAC,EAAE,cAAc,CAAA;QAC3B,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;QAClC,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;QACrC,KAAK,EAAE,qBAAqB,EAAE,CAAA;QAC9B,MAAM,CAAC,EAAE,+BAA+B,CAAA;KACzC,KAAK,MAAM,EAAE,CAAA;IACd,MAAM,EAAE,+BAA+B,CAAA;IACvC,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;CACzB,KAAK,MAAM,CAAC,GACb,MAAM,CAAA;AAEZ,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3C,gBAAgB,GAChB,mBAAmB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GACrE,yBAAyB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,IAC7E;IACF,CAAC,GAAG,EAAE,MAAM,GACR;QACE,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;KACxC,GACD,aAAa,CAAC,GAAG,CAAC,GAClB,SAAS,CAAA;CACd,GAAG;KACD,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CACpF,OAAO,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC,CAC/B;CACF,GAAG;IACF,MAAM,CAAC,EAAE;SACN,CAAC,IAAI,OAAO,CACX,OAAO,CAAC,CAAC,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,CAAC,GAC9D,CAAC,SAAS;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE,GAC7B,CAAC,CAAC,WAAW,CAAC,GACd,KAAK,GACP,KAAK,EACT,MAAM,CACP,CAAC,CAAC,EAAE,aAAa,CAChB,OAAO,CAAC,CAAC,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,CAAC,GAC9D,mBAAmB,CAAC,OAAO,CAAC,CAAC,EAAE;YAAE,SAAS,EAAE,CAAC,CAAA;SAAE,CAAC,CAAC,GACjD,mBAAmB,CACxB;KACF,CAAA;IACD,YAAY,CAAC,EAAE;SACZ,CAAC,IAAI,OAAO,CACX,OAAO,CAAC,CAAC,EAAE;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,CAAC,SAAS,yBAAyB,CAAC,MAAM,CAAC,CAAC,GAC1E,CAAC,SAAS;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE,GAC7B,CAAC,CAAC,WAAW,CAAC,GACd,KAAK,GACP,KAAK,EACT,MAAM,CACP,CAAC,CAAC,EAAE,aAAa,CAChB,OAAO,CAAC,CAAC,EAAE;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,CAAC,SAAS,yBAAyB,CAAC,MAAM,CAAC,CAAC,GAC1E,yBAAyB,CAAC,OAAO,CAAC,CAAC,EAAE;YAAE,SAAS,EAAE,CAAC,CAAA;SAAE,CAAC,CAAC,GACvD,yBAAyB,CAC9B;KACF,CAAA;IACD,OAAO,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3C,gBAAgB,GAChB,mBAAmB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE,CAAC,GAClD,yBAAyB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,IAC7E,CAAC,IAAI,EAAE;IAAE,iBAAiB,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAA;CAAE,KAAK,cAAc,CAAC,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToHtml/sync/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAA;AAEzE,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,IAE3F,CAAC,CAAC,IAAI,EAAE;IACN,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,cAAc,CAAA;IAC1B,IAAI,EAAE,CAAC,CAAA;IACP,WAAW,EAAE,CAAC,IAAI,EAAE;QAClB,UAAU,CAAC,EAAE,cAAc,CAAA;QAC3B,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;QAClC,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;QACrC,KAAK,EAAE,qBAAqB,EAAE,CAAA;QAC9B,MAAM,CAAC,EAAE,+BAA+B,CAAA;KACzC,KAAK,MAAM,EAAE,CAAA;IACd,MAAM,EAAE,+BAA+B,CAAA;IACvC,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;CACzB,KAAK,MAAM,CAAC,GACb,MAAM,CAAA;AAEZ,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3C,gBAAgB,GAChB,mBAAmB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GACrE,yBAAyB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,IAC7E;IACF,CAAC,GAAG,EAAE,MAAM,GACR;QACE,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;KACxC,GACD,aAAa,CAAC,GAAG,CAAC,GAClB,SAAS,CAAA;CACd,GAAG;KACD,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CACpF,OAAO,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC,CAC/B;CACF,GAAG;IACF,MAAM,CAAC,EAAE;SACN,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE;YAAE,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,aAAa,CACzE,OAAO,CAAC,CAAC,EAAE;YAAE,MAAM,EAAE;gBAAE,SAAS,EAAE,CAAC,CAAA;aAAE,CAAC;YAAC,IAAI,EAAE,OAAO,CAAA;SAAE,CAAC,CACxD;KACF,CAAA;IACD,YAAY,CAAC,EAAE;SACZ,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE;YAAE,IAAI,EAAE,aAAa,CAAA;SAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,aAAa,CAC/E,OAAO,CAAC,CAAC,EAAE;YAAE,MAAM,EAAE;gBAAE,SAAS,EAAE,CAAC,CAAA;aAAE,CAAC;YAAC,IAAI,EAAE,aAAa,CAAA;SAAE,CAAC,CAC9D;KACF,CAAA;IACD,OAAO,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3C,gBAAgB,GAChB,mBAAmB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GACrE,yBAAyB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,IAC7E,CAAC,IAAI,EAAE;IAAE,iBAAiB,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CAAE,KAAK,cAAc,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/features/converters/lexicalToHtml/sync/types.ts"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport type {\n DefaultNodeTypes,\n SerializedBlockNode,\n SerializedInlineBlockNode,\n} from '../../../../nodeTypes.js'\nimport type { SerializedLexicalNodeWithParent } from '../shared/types.js'\n\nexport type HTMLConverter<T extends { [key: string]: any; type?: string } = SerializedLexicalNode> =\n\n | ((args: {\n childIndex: number\n converters: HTMLConverters\n node: T\n nodesToHTML: (args: {\n converters?: HTMLConverters\n disableIndent?: boolean | string[]\n disableTextAlign?: boolean | string[]\n nodes: SerializedLexicalNode[]\n parent?: SerializedLexicalNodeWithParent\n }) => string[]\n parent: SerializedLexicalNodeWithParent\n providedCSSString: string\n providedStyleTag: string\n }) => string)\n | string\n\nexport type HTMLConverters<\n T extends { [key: string]: any; type?: string } =\n | DefaultNodeTypes\n | SerializedBlockNode<{ blockName?: null | string; blockType: string }> // need these to ensure types for blocks and inlineBlocks work if no generics are provided\n | SerializedInlineBlockNode<{ blockName?: null | string; blockType: string }>, // need these to ensure types for blocks and inlineBlocks work if no generics are provided\n> = {\n [key: string]:\n | {\n [blockSlug: string]: HTMLConverter<any>\n }\n | HTMLConverter<any>\n | undefined\n} & {\n [nodeType in Exclude<NonNullable<T['type']>, 'block' | 'inlineBlock'>]?: HTMLConverter<\n Extract<T, { type: nodeType }>\n >\n} & {\n blocks?: {\n [K in Extract<\n Extract<T, { type: 'block' }> extends SerializedBlockNode<infer B>\n ? B extends { blockType: string }\n ? B['blockType']\n : never\n : never,\n string\n >]?: HTMLConverter<\n Extract<T, { type: 'block' }> extends SerializedBlockNode<infer B>\n ? SerializedBlockNode<Extract<B, { blockType: K }>>\n : SerializedBlockNode\n >\n }\n inlineBlocks?: {\n [K in Extract<\n Extract<T, { type: 'inlineBlock' }> extends SerializedInlineBlockNode<infer B>\n ? B extends { blockType: string }\n ? B['blockType']\n : never\n : never,\n string\n >]?: HTMLConverter<\n Extract<T, { type: 'inlineBlock' }> extends SerializedInlineBlockNode<infer B>\n ? SerializedInlineBlockNode<Extract<B, { blockType: K }>>\n : SerializedInlineBlockNode\n >\n }\n unknown?: HTMLConverter<SerializedLexicalNode>\n}\n\nexport type HTMLConvertersFunction<\n T extends { [key: string]: any; type?: string } =\n | DefaultNodeTypes\n | SerializedBlockNode<{ blockName?: null | string }>\n | SerializedInlineBlockNode<{ blockName?: null | string; blockType: string }>,\n> = (args: { defaultConverters: HTMLConverters<DefaultNodeTypes> }) => HTMLConverters<T>\n"],"mappings":"AA4EA","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/features/converters/lexicalToHtml/sync/types.ts"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport type {\n DefaultNodeTypes,\n SerializedBlockNode,\n SerializedInlineBlockNode,\n} from '../../../../types/nodeTypes.js'\nimport type { SerializedLexicalNodeWithParent } from '../shared/types.js'\n\nexport type HTMLConverter<T extends { [key: string]: any; type?: string } = SerializedLexicalNode> =\n\n | ((args: {\n childIndex: number\n converters: HTMLConverters\n node: T\n nodesToHTML: (args: {\n converters?: HTMLConverters\n disableIndent?: boolean | string[]\n disableTextAlign?: boolean | string[]\n nodes: SerializedLexicalNode[]\n parent?: SerializedLexicalNodeWithParent\n }) => string[]\n parent: SerializedLexicalNodeWithParent\n providedCSSString: string\n providedStyleTag: string\n }) => string)\n | string\n\nexport type HTMLConverters<\n T extends { [key: string]: any; type?: string } =\n | DefaultNodeTypes\n | SerializedBlockNode<{ blockName?: null | string; blockType: string }> // need these to ensure types for blocks and inlineBlocks work if no generics are provided\n | SerializedInlineBlockNode<{ blockName?: null | string; blockType: string }>, // need these to ensure types for blocks and inlineBlocks work if no generics are provided\n> = {\n [key: string]:\n | {\n [blockSlug: string]: HTMLConverter<any>\n }\n | HTMLConverter<any>\n | undefined\n} & {\n [nodeType in Exclude<NonNullable<T['type']>, 'block' | 'inlineBlock'>]?: HTMLConverter<\n Extract<T, { type: nodeType }>\n >\n} & {\n blocks?: {\n [K in Extract<T, { type: 'block' }>['fields']['blockType']]?: HTMLConverter<\n Extract<T, { fields: { blockType: K }; type: 'block' }>\n >\n }\n inlineBlocks?: {\n [K in Extract<T, { type: 'inlineBlock' }>['fields']['blockType']]?: HTMLConverter<\n Extract<T, { fields: { blockType: K }; type: 'inlineBlock' }>\n >\n }\n unknown?: HTMLConverter<SerializedLexicalNode>\n}\n\nexport type HTMLConvertersFunction<\n T extends { [key: string]: any; type?: string } =\n | DefaultNodeTypes\n | SerializedBlockNode<{ blockName?: null | string; blockType: string }>\n | SerializedInlineBlockNode<{ blockName?: null | string; blockType: string }>,\n> = (args: { defaultConverters: HTMLConverters<T> }) => HTMLConverters<T>\n"],"mappings":"AA0DA","ignoreList":[]}
@@ -1,14 +1,16 @@
1
1
  import React from 'react';
2
- import type { DefaultNodeTypes, SerializedBlockNode, SerializedInlineBlockNode } from '../../../../nodeTypes.js';
3
- import type { SerializedNodeBase } from '../../../../types.js';
2
+ import type { SerializedNodeBase } from '../../../../types/index.js';
3
+ import type { DefaultNodeTypes, SerializedBlockNode, SerializedInlineBlockNode } from '../../../../types/nodeTypes.js';
4
4
  import type { JSXConverters } from '../converter/types.js';
5
5
  import { type ConvertLexicalToJSXArgs } from '../converter/index.js';
6
6
  export type JSXConvertersFunction<T extends SerializedNodeBase = DefaultNodeTypes | SerializedBlockNode<{
7
7
  blockName?: null | string;
8
+ blockType: string;
8
9
  }> | SerializedInlineBlockNode<{
9
10
  blockName?: null | string;
11
+ blockType: string;
10
12
  }>> = (args: {
11
- defaultConverters: JSXConverters<DefaultNodeTypes>;
13
+ defaultConverters: JSXConverters<T>;
12
14
  }) => JSXConverters<T>;
13
15
  type RichTextProps<TNodes extends SerializedNodeBase = SerializedNodeBase> = {
14
16
  /**
@@ -18,7 +20,7 @@ type RichTextProps<TNodes extends SerializedNodeBase = SerializedNodeBase> = {
18
20
  /**
19
21
  * Custom converters to transform your nodes to JSX. Can be an object or a function that receives the default converters.
20
22
  */
21
- converters?: JSXConverters | JSXConvertersFunction;
23
+ converters?: JSXConverters<TNodes> | JSXConvertersFunction<TNodes>;
22
24
  /**
23
25
  * If true, removes the container div wrapper.
24
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToJSX/Component/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,OAAO,EAAuB,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEzF,MAAM,MAAM,qBAAqB,CAC/B,CAAC,SAAS,kBAAkB,GACxB,gBAAgB,GAChB,mBAAmB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE,CAAC,GAClD,yBAAyB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE,CAAC,IAC1D,CAAC,IAAI,EAAE;IAAE,iBAAiB,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAA;CAAE,KAAK,aAAa,CAAC,CAAC,CAAC,CAAA;AAEtF,KAAK,aAAa,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,IAAI;IAC3E;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,qBAAqB,CAAA;IAElD;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,GAAG,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,kBAAkB,GAAG,SAAS,CAAC,CAAA;AAEpG,wBAAgB,QAAQ,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EAAE,EAC/E,SAAS,EACT,UAAU,EACV,IAAI,EAAE,WAAW,EACjB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,OAAO,GACR,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,CAkCzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToJSX/Component/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,OAAO,EAAuB,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEzF,MAAM,MAAM,qBAAqB,CAC/B,CAAC,SAAS,kBAAkB,GACxB,gBAAgB,GAChB,mBAAmB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GACrE,yBAAyB,CAAC;IAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,IAC7E,CAAC,IAAI,EAAE;IAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;CAAE,KAAK,aAAa,CAAC,CAAC,CAAC,CAAA;AAEvE,KAAK,aAAa,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,IAAI;IAC3E;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAA;IAElE;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,GAAG,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,kBAAkB,GAAG,SAAS,CAAC,CAAA;AAEpG,wBAAgB,QAAQ,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EAAE,EAC/E,SAAS,EACT,UAAU,EACV,IAAI,EAAE,WAAW,EACjB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,OAAO,GACR,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,CAoCzC"}
@@ -14,14 +14,15 @@ export function RichText({
14
14
  if (!editorState) {
15
15
  return null;
16
16
  }
17
+ const baseConverters = converters;
17
18
  let finalConverters = {};
18
- if (converters) {
19
- if (typeof converters === 'function') {
20
- finalConverters = converters({
19
+ if (baseConverters) {
20
+ if (typeof baseConverters === 'function') {
21
+ finalConverters = baseConverters({
21
22
  defaultConverters: defaultJSXConverters
22
23
  });
23
24
  } else {
24
- finalConverters = converters;
25
+ finalConverters = baseConverters;
25
26
  }
26
27
  } else {
27
28
  finalConverters = defaultJSXConverters;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","defaultJSXConverters","convertLexicalToJSX","RichText","className","converters","data","editorState","disableContainer","disableIndent","disableTextAlign","nodeMap","finalConverters","defaultConverters","content","Array","isArray","_jsx","_Fragment"],"sources":["../../../../../src/features/converters/lexicalToJSX/Component/index.tsx"],"sourcesContent":["import React from 'react'\n\nimport type {\n DefaultNodeTypes,\n SerializedBlockNode,\n SerializedInlineBlockNode,\n} from '../../../../nodeTypes.js'\nimport type { SerializedNodeBase } from '../../../../types.js'\nimport type { JSXConverters } from '../converter/types.js'\n\nimport { defaultJSXConverters } from '../converter/defaultConverters.js'\nimport { convertLexicalToJSX, type ConvertLexicalToJSXArgs } from '../converter/index.js'\n\nexport type JSXConvertersFunction<\n T extends SerializedNodeBase =\n | DefaultNodeTypes\n | SerializedBlockNode<{ blockName?: null | string }>\n | SerializedInlineBlockNode<{ blockName?: null | string }>,\n> = (args: { defaultConverters: JSXConverters<DefaultNodeTypes> }) => JSXConverters<T>\n\ntype RichTextProps<TNodes extends SerializedNodeBase = SerializedNodeBase> = {\n /**\n * Override class names for the container.\n */\n className?: string\n /**\n * Custom converters to transform your nodes to JSX. Can be an object or a function that receives the default converters.\n */\n converters?: JSXConverters | JSXConvertersFunction\n\n /**\n * If true, removes the container div wrapper.\n */\n disableContainer?: boolean\n} & Pick<ConvertLexicalToJSXArgs<TNodes>, 'data' | 'disableIndent' | 'disableTextAlign' | 'nodeMap'>\n\nexport function RichText<TNodes extends SerializedNodeBase = SerializedNodeBase>({\n className,\n converters,\n data: editorState,\n disableContainer,\n disableIndent,\n disableTextAlign,\n nodeMap,\n}: RichTextProps<TNodes>): React.ReactNode {\n if (!editorState) {\n return null\n }\n\n let finalConverters: JSXConverters = {}\n if (converters) {\n if (typeof converters === 'function') {\n finalConverters = converters({ defaultConverters: defaultJSXConverters })\n } else {\n finalConverters = converters\n }\n } else {\n finalConverters = defaultJSXConverters\n }\n\n const content =\n editorState &&\n !Array.isArray(editorState) &&\n typeof editorState === 'object' &&\n 'root' in editorState &&\n convertLexicalToJSX({\n converters: finalConverters,\n data: editorState,\n disableIndent,\n disableTextAlign,\n nodeMap,\n })\n\n if (disableContainer) {\n return <>{content}</>\n }\n\n return <div className={className ?? 'payload-richtext'}>{content}</div>\n}\n"],"mappings":";AAAA,OAAOA,KAAA,MAAW;AAUlB,SAASC,oBAAoB,QAAQ;AACrC,SAASC,mBAAmB,QAAsC;AAyBlE,OAAO,SAASC,SAAiE;EAC/EC,SAAS;EACTC,UAAU;EACVC,IAAA,EAAMC,WAAW;EACjBC,gBAAgB;EAChBC,aAAa;EACbC,gBAAgB;EAChBC;AAAO,CACe;EACtB,IAAI,CAACJ,WAAA,EAAa;IAChB,OAAO;EACT;EAEA,IAAIK,eAAA,GAAiC,CAAC;EACtC,IAAIP,UAAA,EAAY;IACd,IAAI,OAAOA,UAAA,KAAe,YAAY;MACpCO,eAAA,GAAkBP,UAAA,CAAW;QAAEQ,iBAAA,EAAmBZ;MAAqB;IACzE,OAAO;MACLW,eAAA,GAAkBP,UAAA;IACpB;EACF,OAAO;IACLO,eAAA,GAAkBX,oBAAA;EACpB;EAEA,MAAMa,OAAA,GACJP,WAAA,IACA,CAACQ,KAAA,CAAMC,OAAO,CAACT,WAAA,KACf,OAAOA,WAAA,KAAgB,YACvB,UAAUA,WAAA,IACVL,mBAAA,CAAoB;IAClBG,UAAA,EAAYO,eAAA;IACZN,IAAA,EAAMC,WAAA;IACNE,aAAA;IACAC,gBAAA;IACAC;EACF;EAEF,IAAIH,gBAAA,EAAkB;IACpB,oBAAOS,IAAA,CAAAC,SAAA;gBAAGJ;;EACZ;EAEA,oBAAOG,IAAA,CAAC;IAAIb,SAAA,EAAWA,SAAA,IAAa;cAAqBU;;AAC3D","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","defaultJSXConverters","convertLexicalToJSX","RichText","className","converters","data","editorState","disableContainer","disableIndent","disableTextAlign","nodeMap","baseConverters","finalConverters","defaultConverters","content","Array","isArray","_jsx","_Fragment"],"sources":["../../../../../src/features/converters/lexicalToJSX/Component/index.tsx"],"sourcesContent":["import React from 'react'\n\nimport type { SerializedNodeBase } from '../../../../types/index.js'\nimport type {\n DefaultNodeTypes,\n SerializedBlockNode,\n SerializedInlineBlockNode,\n} from '../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../converter/types.js'\n\nimport { defaultJSXConverters } from '../converter/defaultConverters.js'\nimport { convertLexicalToJSX, type ConvertLexicalToJSXArgs } from '../converter/index.js'\n\nexport type JSXConvertersFunction<\n T extends SerializedNodeBase =\n | DefaultNodeTypes\n | SerializedBlockNode<{ blockName?: null | string; blockType: string }>\n | SerializedInlineBlockNode<{ blockName?: null | string; blockType: string }>,\n> = (args: { defaultConverters: JSXConverters<T> }) => JSXConverters<T>\n\ntype RichTextProps<TNodes extends SerializedNodeBase = SerializedNodeBase> = {\n /**\n * Override class names for the container.\n */\n className?: string\n /**\n * Custom converters to transform your nodes to JSX. Can be an object or a function that receives the default converters.\n */\n converters?: JSXConverters<TNodes> | JSXConvertersFunction<TNodes>\n\n /**\n * If true, removes the container div wrapper.\n */\n disableContainer?: boolean\n} & Pick<ConvertLexicalToJSXArgs<TNodes>, 'data' | 'disableIndent' | 'disableTextAlign' | 'nodeMap'>\n\nexport function RichText<TNodes extends SerializedNodeBase = SerializedNodeBase>({\n className,\n converters,\n data: editorState,\n disableContainer,\n disableIndent,\n disableTextAlign,\n nodeMap,\n}: RichTextProps<TNodes>): React.ReactNode {\n if (!editorState) {\n return null\n }\n\n const baseConverters = converters as JSXConverters | JSXConvertersFunction | undefined\n\n let finalConverters: JSXConverters = {}\n if (baseConverters) {\n if (typeof baseConverters === 'function') {\n finalConverters = baseConverters({ defaultConverters: defaultJSXConverters })\n } else {\n finalConverters = baseConverters\n }\n } else {\n finalConverters = defaultJSXConverters\n }\n\n const content =\n editorState &&\n !Array.isArray(editorState) &&\n typeof editorState === 'object' &&\n 'root' in editorState &&\n convertLexicalToJSX({\n converters: finalConverters,\n data: editorState,\n disableIndent,\n disableTextAlign,\n nodeMap,\n })\n\n if (disableContainer) {\n return <>{content}</>\n }\n\n return <div className={className ?? 'payload-richtext'}>{content}</div>\n}\n"],"mappings":";AAAA,OAAOA,KAAA,MAAW;AAUlB,SAASC,oBAAoB,QAAQ;AACrC,SAASC,mBAAmB,QAAsC;AAyBlE,OAAO,SAASC,SAAiE;EAC/EC,SAAS;EACTC,UAAU;EACVC,IAAA,EAAMC,WAAW;EACjBC,gBAAgB;EAChBC,aAAa;EACbC,gBAAgB;EAChBC;AAAO,CACe;EACtB,IAAI,CAACJ,WAAA,EAAa;IAChB,OAAO;EACT;EAEA,MAAMK,cAAA,GAAiBP,UAAA;EAEvB,IAAIQ,eAAA,GAAiC,CAAC;EACtC,IAAID,cAAA,EAAgB;IAClB,IAAI,OAAOA,cAAA,KAAmB,YAAY;MACxCC,eAAA,GAAkBD,cAAA,CAAe;QAAEE,iBAAA,EAAmBb;MAAqB;IAC7E,OAAO;MACLY,eAAA,GAAkBD,cAAA;IACpB;EACF,OAAO;IACLC,eAAA,GAAkBZ,oBAAA;EACpB;EAEA,MAAMc,OAAA,GACJR,WAAA,IACA,CAACS,KAAA,CAAMC,OAAO,CAACV,WAAA,KACf,OAAOA,WAAA,KAAgB,YACvB,UAAUA,WAAA,IACVL,mBAAA,CAAoB;IAClBG,UAAA,EAAYQ,eAAA;IACZP,IAAA,EAAMC,WAAA;IACNE,aAAA;IACAC,gBAAA;IACAC;EACF;EAEF,IAAIH,gBAAA,EAAkB;IACpB,oBAAOU,IAAA,CAAAC,SAAA;gBAAGJ;;EACZ;EAEA,oBAAOG,IAAA,CAAC;IAAId,SAAA,EAAWA,SAAA,IAAa;cAAqBW;;AAC3D","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedQuoteNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedQuoteNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const BlockquoteJSXConverter: JSXConverters<SerializedQuoteNode>;
4
4
  //# sourceMappingURL=blockquote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,mBAAmB,CAQrE,CAAA"}
1
+ {"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,mBAAmB,CAQrE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"blockquote.js","names":["BlockquoteJSXConverter","quote","node","nodesToJSX","children","nodes","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/blockquote.tsx"],"sourcesContent":["import type { SerializedQuoteNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const BlockquoteJSXConverter: JSXConverters<SerializedQuoteNode> = {\n quote: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n return <blockquote>{children}</blockquote>\n },\n}\n"],"mappings":";AAGA,OAAO,MAAMA,sBAAA,GAA6D;EACxEC,KAAA,EAAOA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC1B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,oBAAOE,IAAA,CAAC;gBAAYF;;EACtB;AACF","ignoreList":[]}
1
+ {"version":3,"file":"blockquote.js","names":["BlockquoteJSXConverter","quote","node","nodesToJSX","children","nodes","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/blockquote.tsx"],"sourcesContent":["import type { SerializedQuoteNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const BlockquoteJSXConverter: JSXConverters<SerializedQuoteNode> = {\n quote: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n return <blockquote>{children}</blockquote>\n },\n}\n"],"mappings":";AAGA,OAAO,MAAMA,sBAAA,GAA6D;EACxEC,KAAA,EAAOA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC1B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,oBAAOE,IAAA,CAAC;gBAAYF;;EACtB;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedHeadingNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedHeadingNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const HeadingJSXConverter: JSXConverters<SerializedHeadingNode>;
4
4
  //# sourceMappingURL=heading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAUpE,CAAA"}
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAUpE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","names":["HeadingJSXConverter","heading","node","nodesToJSX","children","nodes","NodeTag","tag","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/heading.tsx"],"sourcesContent":["import type { SerializedHeadingNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const HeadingJSXConverter: JSXConverters<SerializedHeadingNode> = {\n heading: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const NodeTag = node.tag\n\n return <NodeTag>{children}</NodeTag>\n },\n}\n"],"mappings":";AAGA,OAAO,MAAMA,mBAAA,GAA4D;EACvEC,OAAA,EAASA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC5B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,OAAA,GAAUJ,IAAA,CAAKK,GAAG;IAExB,oBAAOC,IAAA,CAACF,OAAA;gBAASF;;EACnB;AACF","ignoreList":[]}
1
+ {"version":3,"file":"heading.js","names":["HeadingJSXConverter","heading","node","nodesToJSX","children","nodes","NodeTag","tag","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/heading.tsx"],"sourcesContent":["import type { SerializedHeadingNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const HeadingJSXConverter: JSXConverters<SerializedHeadingNode> = {\n heading: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const NodeTag = node.tag\n\n return <NodeTag>{children}</NodeTag>\n },\n}\n"],"mappings":";AAGA,OAAO,MAAMA,mBAAA,GAA4D;EACvEC,OAAA,EAASA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC5B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,OAAA,GAAUJ,IAAA,CAAKK,GAAG;IAExB,oBAAOC,IAAA,CAACF,OAAA;gBAASF;;EACnB;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedHorizontalRuleNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedHorizontalRuleNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const HorizontalRuleJSXConverter: JSXConverters<SerializedHorizontalRuleNode>;
4
4
  //# sourceMappingURL=horizontalRule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"horizontalRule.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/horizontalRule.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,4BAA4B,CAElF,CAAA"}
1
+ {"version":3,"file":"horizontalRule.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/horizontalRule.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,4BAA4B,CAElF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"horizontalRule.js","names":["HorizontalRuleJSXConverter","horizontalrule","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/horizontalRule.tsx"],"sourcesContent":["import type { SerializedHorizontalRuleNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\nexport const HorizontalRuleJSXConverter: JSXConverters<SerializedHorizontalRuleNode> = {\n horizontalrule: <hr />,\n}\n"],"mappings":";AAEA,OAAO,MAAMA,0BAAA,GAA0E;EACrFC,cAAA,eAAgBC,IAAA,CAAC;AACnB","ignoreList":[]}
1
+ {"version":3,"file":"horizontalRule.js","names":["HorizontalRuleJSXConverter","horizontalrule","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/horizontalRule.tsx"],"sourcesContent":["import type { SerializedHorizontalRuleNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\nexport const HorizontalRuleJSXConverter: JSXConverters<SerializedHorizontalRuleNode> = {\n horizontalrule: <hr />,\n}\n"],"mappings":";AAEA,OAAO,MAAMA,0BAAA,GAA0E;EACrFC,cAAA,eAAgBC,IAAA,CAAC;AACnB","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedLineBreakNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedLineBreakNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const LinebreakJSXConverter: JSXConverters<SerializedLineBreakNode>;
4
4
  //# sourceMappingURL=linebreak.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"linebreak.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/linebreak.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,uBAAuB,CAExE,CAAA"}
1
+ {"version":3,"file":"linebreak.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/linebreak.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,uBAAuB,CAExE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"linebreak.js","names":["LinebreakJSXConverter","linebreak","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/linebreak.tsx"],"sourcesContent":["import type { SerializedLineBreakNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const LinebreakJSXConverter: JSXConverters<SerializedLineBreakNode> = {\n linebreak: <br />,\n}\n"],"mappings":";AAGA,OAAO,MAAMA,qBAAA,GAAgE;EAC3EC,SAAA,eAAWC,IAAA,CAAC;AACd","ignoreList":[]}
1
+ {"version":3,"file":"linebreak.js","names":["LinebreakJSXConverter","linebreak","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/linebreak.tsx"],"sourcesContent":["import type { SerializedLineBreakNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const LinebreakJSXConverter: JSXConverters<SerializedLineBreakNode> = {\n linebreak: <br />,\n}\n"],"mappings":";AAGA,OAAO,MAAMA,qBAAA,GAAgE;EAC3EC,SAAA,eAAWC,IAAA,CAAC;AACd","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const LinkJSXConverter: (args: {
4
4
  internalDocToHref?: (args: {
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,gBAAgB,EAAE,CAAC,IAAI,EAAE;IACpC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,kBAAkB,CAAA;KAAE,KAAK,MAAM,CAAA;CACvE,KAAK,aAAa,CAAC,sBAAsB,GAAG,kBAAkB,CAyC7D,CAAA"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,gBAAgB,EAAE,CAAC,IAAI,EAAE;IACpC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,kBAAkB,CAAA;KAAE,KAAK,MAAM,CAAA;CACvE,KAAK,aAAa,CAAC,sBAAsB,GAAG,kBAAkB,CAyC7D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","names":["LinkJSXConverter","internalDocToHref","autolink","node","nodesToJSX","children","nodes","rel","fields","newTab","undefined","target","_jsx","href","url","link","linkType","linkNode","console","error"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/link.tsx"],"sourcesContent":["import type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const LinkJSXConverter: (args: {\n internalDocToHref?: (args: { linkNode: SerializedLinkNode }) => string\n}) => JSXConverters<SerializedAutoLinkNode | SerializedLinkNode> = ({ internalDocToHref }) => ({\n autolink: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const rel: string | undefined = node.fields.newTab ? 'noopener noreferrer' : undefined\n const target: string | undefined = node.fields.newTab ? '_blank' : undefined\n\n return (\n <a href={node.fields.url} {...{ rel, target }}>\n {children}\n </a>\n )\n },\n link: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const rel: string | undefined = node.fields.newTab ? 'noopener noreferrer' : undefined\n const target: string | undefined = node.fields.newTab ? '_blank' : undefined\n\n let href: string = node.fields.url ?? ''\n if (node.fields.linkType === 'internal') {\n if (internalDocToHref) {\n href = internalDocToHref({ linkNode: node })\n } else {\n console.error(\n 'Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided',\n )\n href = '#' // fallback\n }\n }\n\n return (\n <a href={href} {...{ rel, target }}>\n {children}\n </a>\n )\n },\n})\n"],"mappings":";AAGA,OAAO,MAAMA,gBAAA,GAEsDA,CAAC;EAAEC;AAAiB,CAAE,MAAM;EAC7FC,QAAA,EAAUA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC7B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,GAAA,GAA0BJ,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC,SAAA;IAC7E,MAAMC,MAAA,GAA6BR,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC,SAAA;IAEnE,oBACEE,IAAA,CAAC;MAAEC,IAAA,EAAMV,IAAA,CAAKK,MAAM,CAACM,GAAG;MAAQP,GAAA;MAAKI,MAAA;gBAClCN;;EAGP;EACAU,IAAA,EAAMA,CAAC;IAAEZ,IAAI;IAAEC;EAAU,CAAE;IACzB,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,GAAA,GAA0BJ,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC,SAAA;IAC7E,MAAMC,MAAA,GAA6BR,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC,SAAA;IAEnE,IAAIG,IAAA,GAAeV,IAAA,CAAKK,MAAM,CAACM,GAAG,IAAI;IACtC,IAAIX,IAAA,CAAKK,MAAM,CAACQ,QAAQ,KAAK,YAAY;MACvC,IAAIf,iBAAA,EAAmB;QACrBY,IAAA,GAAOZ,iBAAA,CAAkB;UAAEgB,QAAA,EAAUd;QAAK;MAC5C,OAAO;QACLe,OAAA,CAAQC,KAAK,CACX;QAEFN,IAAA,GAAO,KAAI;MACb;IACF;IAEA,oBACED,IAAA,CAAC;MAAEC,IAAA,EAAMA,IAAA;MAAYN,GAAA;MAAKI,MAAA;gBACvBN;;EAGP;AACF","ignoreList":[]}
1
+ {"version":3,"file":"link.js","names":["LinkJSXConverter","internalDocToHref","autolink","node","nodesToJSX","children","nodes","rel","fields","newTab","undefined","target","_jsx","href","url","link","linkType","linkNode","console","error"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/link.tsx"],"sourcesContent":["import type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const LinkJSXConverter: (args: {\n internalDocToHref?: (args: { linkNode: SerializedLinkNode }) => string\n}) => JSXConverters<SerializedAutoLinkNode | SerializedLinkNode> = ({ internalDocToHref }) => ({\n autolink: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const rel: string | undefined = node.fields.newTab ? 'noopener noreferrer' : undefined\n const target: string | undefined = node.fields.newTab ? '_blank' : undefined\n\n return (\n <a href={node.fields.url} {...{ rel, target }}>\n {children}\n </a>\n )\n },\n link: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const rel: string | undefined = node.fields.newTab ? 'noopener noreferrer' : undefined\n const target: string | undefined = node.fields.newTab ? '_blank' : undefined\n\n let href: string = node.fields.url ?? ''\n if (node.fields.linkType === 'internal') {\n if (internalDocToHref) {\n href = internalDocToHref({ linkNode: node })\n } else {\n console.error(\n 'Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided',\n )\n href = '#' // fallback\n }\n }\n\n return (\n <a href={href} {...{ rel, target }}>\n {children}\n </a>\n )\n },\n})\n"],"mappings":";AAGA,OAAO,MAAMA,gBAAA,GAEsDA,CAAC;EAAEC;AAAiB,CAAE,MAAM;EAC7FC,QAAA,EAAUA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC7B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,GAAA,GAA0BJ,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC,SAAA;IAC7E,MAAMC,MAAA,GAA6BR,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC,SAAA;IAEnE,oBACEE,IAAA,CAAC;MAAEC,IAAA,EAAMV,IAAA,CAAKK,MAAM,CAACM,GAAG;MAAQP,GAAA;MAAKI,MAAA;gBAClCN;;EAGP;EACAU,IAAA,EAAMA,CAAC;IAAEZ,IAAI;IAAEC;EAAU,CAAE;IACzB,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,GAAA,GAA0BJ,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC,SAAA;IAC7E,MAAMC,MAAA,GAA6BR,IAAA,CAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC,SAAA;IAEnE,IAAIG,IAAA,GAAeV,IAAA,CAAKK,MAAM,CAACM,GAAG,IAAI;IACtC,IAAIX,IAAA,CAAKK,MAAM,CAACQ,QAAQ,KAAK,YAAY;MACvC,IAAIf,iBAAA,EAAmB;QACrBY,IAAA,GAAOZ,iBAAA,CAAkB;UAAEgB,QAAA,EAAUd;QAAK;MAC5C,OAAO;QACLe,OAAA,CAAQC,KAAK,CACX;QAEFN,IAAA,GAAO,KAAI;MACb;IACF;IAEA,oBACED,IAAA,CAAC;MAAEC,IAAA,EAAMA,IAAA;MAAYN,GAAA;MAAKI,MAAA;gBACvBN;;EAGP;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedListItemNode, SerializedListNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedListItemNode, SerializedListNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const ListJSXConverter: JSXConverters<SerializedListItemNode | SerializedListNode>;
4
4
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,sBAAsB,GAAG,kBAAkB,CAqDvF,CAAA"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,sBAAsB,GAAG,kBAAkB,CAqDvF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","names":["v4","uuidv4","ListJSXConverter","list","node","nodesToJSX","children","nodes","NodeTag","tag","_jsx","className","listType","listitem","parent","hasSubLists","some","child","type","uuid","checked","role","style","listStyleType","tabIndex","value","_jsxs","_Fragment","id","readOnly","htmlFor","undefined"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/list.tsx"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\n\nimport type { SerializedListItemNode, SerializedListNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ListJSXConverter: JSXConverters<SerializedListItemNode | SerializedListNode> = {\n list: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const NodeTag = node.tag\n\n return <NodeTag className={`list-${node?.listType}`}>{children}</NodeTag>\n },\n listitem: ({ node, nodesToJSX, parent }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if ('listType' in parent && parent?.listType === 'check') {\n const uuid = uuidv4()\n\n return (\n <li\n aria-checked={node.checked ? 'true' : 'false'}\n className={`list-item-checkbox${node.checked ? ' list-item-checkbox-checked' : ' list-item-checkbox-unchecked'}${hasSubLists ? ' nestedListItem' : ''}`}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"checkbox\"\n style={{ listStyleType: 'none' }}\n tabIndex={-1}\n value={node?.value}\n >\n {hasSubLists ? (\n children\n ) : (\n <>\n <input checked={node.checked} id={uuid} readOnly={true} type=\"checkbox\" />\n <label htmlFor={uuid}>{children}</label>\n <br />\n </>\n )}\n </li>\n )\n } else {\n return (\n <li\n className={`${hasSubLists ? 'nestedListItem' : ''}`}\n style={hasSubLists ? { listStyleType: 'none' } : undefined}\n value={node?.value}\n >\n {children}\n </li>\n )\n }\n },\n}\n"],"mappings":";AAAA,SAASA,EAAA,IAAMC,MAAM,QAAQ;AAK7B,OAAO,MAAMC,gBAAA,GAA+E;EAC1FC,IAAA,EAAMA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IACzB,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,OAAA,GAAUJ,IAAA,CAAKK,GAAG;IAExB,oBAAOC,IAAA,CAACF,OAAA;MAAQG,SAAA,EAAW,QAAQP,IAAA,EAAMQ,QAAA,EAAU;gBAAGN;;EACxD;EACAO,QAAA,EAAUA,CAAC;IAAET,IAAI;IAAEC,UAAU;IAAES;EAAM,CAAE;IACrC,MAAMC,WAAA,GAAcX,IAAA,CAAKE,QAAQ,CAACU,IAAI,CAAEC,KAAA,IAAUA,KAAA,CAAMC,IAAI,KAAK;IAEjE,MAAMZ,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,IAAI,cAAcQ,MAAA,IAAUA,MAAA,EAAQF,QAAA,KAAa,SAAS;MACxD,MAAMO,IAAA,GAAOlB,MAAA;MAEb,oBACES,IAAA,CAAC;QACC,gBAAcN,IAAA,CAAKgB,OAAO,GAAG,SAAS;QACtCT,SAAA,EAAW,qBAAqBP,IAAA,CAAKgB,OAAO,GAAG,gCAAgC,kCAAkCL,WAAA,GAAc,oBAAoB,IAAI;QACvJ;QACAM,IAAA,EAAK;QACLC,KAAA,EAAO;UAAEC,aAAA,EAAe;QAAO;QAC/BC,QAAA,EAAU,CAAC;QACXC,KAAA,EAAOrB,IAAA,EAAMqB,KAAA;kBAEZV,WAAA,GACCT,QAAA,gBAEAoB,KAAA,CAAAC,SAAA;kCACEjB,IAAA,CAAC;YAAMU,OAAA,EAAShB,IAAA,CAAKgB,OAAO;YAAEQ,EAAA,EAAIT,IAAA;YAAMU,QAAA,EAAU;YAAMX,IAAA,EAAK;2BAC7DR,IAAA,CAAC;YAAMoB,OAAA,EAASX,IAAA;sBAAOb;2BACvBI,IAAA,CAAC;;;IAKX,OAAO;MACL,oBACEA,IAAA,CAAC;QACCC,SAAA,EAAW,GAAGI,WAAA,GAAc,mBAAmB,IAAI;QACnDO,KAAA,EAAOP,WAAA,GAAc;UAAEQ,aAAA,EAAe;QAAO,IAAIQ,SAAA;QACjDN,KAAA,EAAOrB,IAAA,EAAMqB,KAAA;kBAEZnB;;IAGP;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"file":"list.js","names":["v4","uuidv4","ListJSXConverter","list","node","nodesToJSX","children","nodes","NodeTag","tag","_jsx","className","listType","listitem","parent","hasSubLists","some","child","type","uuid","checked","role","style","listStyleType","tabIndex","value","_jsxs","_Fragment","id","readOnly","htmlFor","undefined"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/list.tsx"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\n\nimport type { SerializedListItemNode, SerializedListNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ListJSXConverter: JSXConverters<SerializedListItemNode | SerializedListNode> = {\n list: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const NodeTag = node.tag\n\n return <NodeTag className={`list-${node?.listType}`}>{children}</NodeTag>\n },\n listitem: ({ node, nodesToJSX, parent }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if ('listType' in parent && parent?.listType === 'check') {\n const uuid = uuidv4()\n\n return (\n <li\n aria-checked={node.checked ? 'true' : 'false'}\n className={`list-item-checkbox${node.checked ? ' list-item-checkbox-checked' : ' list-item-checkbox-unchecked'}${hasSubLists ? ' nestedListItem' : ''}`}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"checkbox\"\n style={{ listStyleType: 'none' }}\n tabIndex={-1}\n value={node?.value}\n >\n {hasSubLists ? (\n children\n ) : (\n <>\n <input checked={node.checked} id={uuid} readOnly={true} type=\"checkbox\" />\n <label htmlFor={uuid}>{children}</label>\n <br />\n </>\n )}\n </li>\n )\n } else {\n return (\n <li\n className={`${hasSubLists ? 'nestedListItem' : ''}`}\n style={hasSubLists ? { listStyleType: 'none' } : undefined}\n value={node?.value}\n >\n {children}\n </li>\n )\n }\n },\n}\n"],"mappings":";AAAA,SAASA,EAAA,IAAMC,MAAM,QAAQ;AAK7B,OAAO,MAAMC,gBAAA,GAA+E;EAC1FC,IAAA,EAAMA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IACzB,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAME,OAAA,GAAUJ,IAAA,CAAKK,GAAG;IAExB,oBAAOC,IAAA,CAACF,OAAA;MAAQG,SAAA,EAAW,QAAQP,IAAA,EAAMQ,QAAA,EAAU;gBAAGN;;EACxD;EACAO,QAAA,EAAUA,CAAC;IAAET,IAAI;IAAEC,UAAU;IAAES;EAAM,CAAE;IACrC,MAAMC,WAAA,GAAcX,IAAA,CAAKE,QAAQ,CAACU,IAAI,CAAEC,KAAA,IAAUA,KAAA,CAAMC,IAAI,KAAK;IAEjE,MAAMZ,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,IAAI,cAAcQ,MAAA,IAAUA,MAAA,EAAQF,QAAA,KAAa,SAAS;MACxD,MAAMO,IAAA,GAAOlB,MAAA;MAEb,oBACES,IAAA,CAAC;QACC,gBAAcN,IAAA,CAAKgB,OAAO,GAAG,SAAS;QACtCT,SAAA,EAAW,qBAAqBP,IAAA,CAAKgB,OAAO,GAAG,gCAAgC,kCAAkCL,WAAA,GAAc,oBAAoB,IAAI;QACvJ;QACAM,IAAA,EAAK;QACLC,KAAA,EAAO;UAAEC,aAAA,EAAe;QAAO;QAC/BC,QAAA,EAAU,CAAC;QACXC,KAAA,EAAOrB,IAAA,EAAMqB,KAAA;kBAEZV,WAAA,GACCT,QAAA,gBAEAoB,KAAA,CAAAC,SAAA;kCACEjB,IAAA,CAAC;YAAMU,OAAA,EAAShB,IAAA,CAAKgB,OAAO;YAAEQ,EAAA,EAAIT,IAAA;YAAMU,QAAA,EAAU;YAAMX,IAAA,EAAK;2BAC7DR,IAAA,CAAC;YAAMoB,OAAA,EAASX,IAAA;sBAAOb;2BACvBI,IAAA,CAAC;;;IAKX,OAAO;MACL,oBACEA,IAAA,CAAC;QACCC,SAAA,EAAW,GAAGI,WAAA,GAAc,mBAAmB,IAAI;QACnDO,KAAA,EAAOP,WAAA,GAAc;UAAEQ,aAAA,EAAe;QAAO,IAAIQ,SAAA;QACjDN,KAAA,EAAOrB,IAAA,EAAMqB,KAAA;kBAEZnB;;IAGP;EACF;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedParagraphNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedParagraphNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const ParagraphJSXConverter: JSXConverters<SerializedParagraphNode>;
4
4
  //# sourceMappingURL=paragraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,uBAAuB,CAgBxE,CAAA"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,uBAAuB,CAgBxE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.js","names":["ParagraphJSXConverter","paragraph","node","nodesToJSX","children","nodes","length","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx"],"sourcesContent":["import type { SerializedParagraphNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ParagraphJSXConverter: JSXConverters<SerializedParagraphNode> = {\n paragraph: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if (!children?.length) {\n return (\n <p>\n <br />\n </p>\n )\n }\n\n return <p>{children}</p>\n },\n}\n"],"mappings":";AAGA,OAAO,MAAMA,qBAAA,GAAgE;EAC3EC,SAAA,EAAWA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC9B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,IAAI,CAACA,QAAA,EAAUE,MAAA,EAAQ;MACrB,oBACEC,IAAA,CAAC;kBACC,aAAAA,IAAA,CAAC;;IAGP;IAEA,oBAAOA,IAAA,CAAC;gBAAGH;;EACb;AACF","ignoreList":[]}
1
+ {"version":3,"file":"paragraph.js","names":["ParagraphJSXConverter","paragraph","node","nodesToJSX","children","nodes","length","_jsx"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx"],"sourcesContent":["import type { SerializedParagraphNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ParagraphJSXConverter: JSXConverters<SerializedParagraphNode> = {\n paragraph: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if (!children?.length) {\n return (\n <p>\n <br />\n </p>\n )\n }\n\n return <p>{children}</p>\n },\n}\n"],"mappings":";AAGA,OAAO,MAAMA,qBAAA,GAAgE;EAC3EC,SAAA,EAAWA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC9B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,IAAI,CAACA,QAAA,EAAUE,MAAA,EAAQ;MACrB,oBACEC,IAAA,CAAC;kBACC,aAAAA,IAAA,CAAC;;IAGP;IAEA,oBAAOA,IAAA,CAAC;gBAAGH;;EACb;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedTabNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedTabNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const TabJSXConverter: JSXConverters<SerializedTabNode>;
4
4
  //# sourceMappingURL=tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAE5D,CAAA"}
1
+ {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAE5D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tab.js","names":["TabJSXConverter","tab"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/tab.tsx"],"sourcesContent":["import type { SerializedTabNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const TabJSXConverter: JSXConverters<SerializedTabNode> = {\n tab: '\\t',\n}\n"],"mappings":"AAGA,OAAO,MAAMA,eAAA,GAAoD;EAC/DC,GAAA,EAAK;AACP","ignoreList":[]}
1
+ {"version":3,"file":"tab.js","names":["TabJSXConverter","tab"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/tab.tsx"],"sourcesContent":["import type { SerializedTabNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const TabJSXConverter: JSXConverters<SerializedTabNode> = {\n tab: '\\t',\n}\n"],"mappings":"AAGA,OAAO,MAAMA,eAAA,GAAoD;EAC/DC,GAAA,EAAK;AACP","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedTableCellNode, SerializedTableNode, SerializedTableRowNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedTableCellNode, SerializedTableNode, SerializedTableRowNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const TableJSXConverter: JSXConverters<SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode>;
4
4
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAC3C,uBAAuB,GAAG,mBAAmB,GAAG,sBAAsB,CAgDvE,CAAA"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAC3C,uBAAuB,GAAG,mBAAmB,GAAG,sBAAsB,CAgDvE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","names":["TableJSXConverter","table","node","nodesToJSX","children","nodes","_jsx","className","style","borderCollapse","tablecell","TagName","headerState","headerStateClass","backgroundColor","undefined","border","padding","colSpan","rowSpan","tablerow"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/table.tsx"],"sourcesContent":["import type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const TableJSXConverter: JSXConverters<\n SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode\n> = {\n table: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return (\n <div className=\"lexical-table-container\">\n <table className=\"lexical-table\" style={{ borderCollapse: 'collapse' }}>\n <tbody>{children}</tbody>\n </table>\n </div>\n )\n },\n tablecell: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const TagName = node.headerState > 0 ? 'th' : 'td' // Use capital letter to denote a component\n const headerStateClass = `lexical-table-cell-header-${node.headerState}`\n const style = {\n backgroundColor: node.backgroundColor || undefined, // Use undefined to avoid setting the style property if not needed\n border: '1px solid #ccc',\n padding: '8px',\n }\n\n // Note: JSX does not support setting attributes directly as strings, so you must convert the colSpan and rowSpan to numbers\n const colSpan = node.colSpan && node.colSpan > 1 ? node.colSpan : undefined\n const rowSpan = node.rowSpan && node.rowSpan > 1 ? node.rowSpan : undefined\n\n return (\n <TagName\n className={`lexical-table-cell ${headerStateClass}`}\n colSpan={colSpan} // colSpan and rowSpan will only be added if they are not null\n rowSpan={rowSpan}\n style={style}\n >\n {children}\n </TagName>\n )\n },\n tablerow: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return <tr className=\"lexical-table-row\">{children}</tr>\n },\n}\n"],"mappings":";AAOA,OAAO,MAAMA,iBAAA,GAET;EACFC,KAAA,EAAOA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC1B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IACA,oBACEE,IAAA,CAAC;MAAIC,SAAA,EAAU;gBACb,aAAAD,IAAA,CAAC;QAAMC,SAAA,EAAU;QAAgBC,KAAA,EAAO;UAAEC,cAAA,EAAgB;QAAW;kBACnE,aAAAH,IAAA,CAAC;oBAAOF;;;;EAIhB;EACAM,SAAA,EAAWA,CAAC;IAAER,IAAI;IAAEC;EAAU,CAAE;IAC9B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAMO,OAAA,GAAUT,IAAA,CAAKU,WAAW,GAAG,IAAI,OAAO,KAAK;AAAA;IACnD,MAAMC,gBAAA,GAAmB,6BAA6BX,IAAA,CAAKU,WAAW,EAAE;IACxE,MAAMJ,KAAA,GAAQ;MACZM,eAAA,EAAiBZ,IAAA,CAAKY,eAAe,IAAIC,SAAA;MACzCC,MAAA,EAAQ;MACRC,OAAA,EAAS;IACX;IAEA;IACA,MAAMC,OAAA,GAAUhB,IAAA,CAAKgB,OAAO,IAAIhB,IAAA,CAAKgB,OAAO,GAAG,IAAIhB,IAAA,CAAKgB,OAAO,GAAGH,SAAA;IAClE,MAAMI,OAAA,GAAUjB,IAAA,CAAKiB,OAAO,IAAIjB,IAAA,CAAKiB,OAAO,GAAG,IAAIjB,IAAA,CAAKiB,OAAO,GAAGJ,SAAA;IAElE,oBACET,IAAA,CAACK,OAAA;MACCJ,SAAA,EAAW,sBAAsBM,gBAAA,EAAkB;MACnDK,OAAA,EAASA,OAAA;MACTC,OAAA,EAASA,OAAA;MACTX,KAAA,EAAOA,KAAA;gBAENJ;;EAGP;EACAgB,QAAA,EAAUA,CAAC;IAAElB,IAAI;IAAEC;EAAU,CAAE;IAC7B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IACA,oBAAOE,IAAA,CAAC;MAAGC,SAAA,EAAU;gBAAqBH;;EAC5C;AACF","ignoreList":[]}
1
+ {"version":3,"file":"table.js","names":["TableJSXConverter","table","node","nodesToJSX","children","nodes","_jsx","className","style","borderCollapse","tablecell","TagName","headerState","headerStateClass","backgroundColor","undefined","border","padding","colSpan","rowSpan","tablerow"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/table.tsx"],"sourcesContent":["import type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const TableJSXConverter: JSXConverters<\n SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode\n> = {\n table: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return (\n <div className=\"lexical-table-container\">\n <table className=\"lexical-table\" style={{ borderCollapse: 'collapse' }}>\n <tbody>{children}</tbody>\n </table>\n </div>\n )\n },\n tablecell: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const TagName = node.headerState > 0 ? 'th' : 'td' // Use capital letter to denote a component\n const headerStateClass = `lexical-table-cell-header-${node.headerState}`\n const style = {\n backgroundColor: node.backgroundColor || undefined, // Use undefined to avoid setting the style property if not needed\n border: '1px solid #ccc',\n padding: '8px',\n }\n\n // Note: JSX does not support setting attributes directly as strings, so you must convert the colSpan and rowSpan to numbers\n const colSpan = node.colSpan && node.colSpan > 1 ? node.colSpan : undefined\n const rowSpan = node.rowSpan && node.rowSpan > 1 ? node.rowSpan : undefined\n\n return (\n <TagName\n className={`lexical-table-cell ${headerStateClass}`}\n colSpan={colSpan} // colSpan and rowSpan will only be added if they are not null\n rowSpan={rowSpan}\n style={style}\n >\n {children}\n </TagName>\n )\n },\n tablerow: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return <tr className=\"lexical-table-row\">{children}</tr>\n },\n}\n"],"mappings":";AAOA,OAAO,MAAMA,iBAAA,GAET;EACFC,KAAA,EAAOA,CAAC;IAAEC,IAAI;IAAEC;EAAU,CAAE;IAC1B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IACA,oBACEE,IAAA,CAAC;MAAIC,SAAA,EAAU;gBACb,aAAAD,IAAA,CAAC;QAAMC,SAAA,EAAU;QAAgBC,KAAA,EAAO;UAAEC,cAAA,EAAgB;QAAW;kBACnE,aAAAH,IAAA,CAAC;oBAAOF;;;;EAIhB;EACAM,SAAA,EAAWA,CAAC;IAAER,IAAI;IAAEC;EAAU,CAAE;IAC9B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IAEA,MAAMO,OAAA,GAAUT,IAAA,CAAKU,WAAW,GAAG,IAAI,OAAO,KAAK;AAAA;IACnD,MAAMC,gBAAA,GAAmB,6BAA6BX,IAAA,CAAKU,WAAW,EAAE;IACxE,MAAMJ,KAAA,GAAQ;MACZM,eAAA,EAAiBZ,IAAA,CAAKY,eAAe,IAAIC,SAAA;MACzCC,MAAA,EAAQ;MACRC,OAAA,EAAS;IACX;IAEA;IACA,MAAMC,OAAA,GAAUhB,IAAA,CAAKgB,OAAO,IAAIhB,IAAA,CAAKgB,OAAO,GAAG,IAAIhB,IAAA,CAAKgB,OAAO,GAAGH,SAAA;IAClE,MAAMI,OAAA,GAAUjB,IAAA,CAAKiB,OAAO,IAAIjB,IAAA,CAAKiB,OAAO,GAAG,IAAIjB,IAAA,CAAKiB,OAAO,GAAGJ,SAAA;IAElE,oBACET,IAAA,CAACK,OAAA;MACCJ,SAAA,EAAW,sBAAsBM,gBAAA,EAAkB;MACnDK,OAAA,EAASA,OAAA;MACTC,OAAA,EAASA,OAAA;MACTX,KAAA,EAAOA,KAAA;gBAENJ;;EAGP;EACAgB,QAAA,EAAUA,CAAC;IAAElB,IAAI;IAAEC;EAAU,CAAE;IAC7B,MAAMC,QAAA,GAAWD,UAAA,CAAW;MAC1BE,KAAA,EAAOH,IAAA,CAAKE;IACd;IACA,oBAAOE,IAAA,CAAC;MAAGC,SAAA,EAAU;gBAAqBH;;EAC5C;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedTextNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedTextNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const TextJSXConverter: JSXConverters<SerializedTextNode>;
4
4
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAIhD,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,CA4B9D,CAAA"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAIhD,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,CA4B9D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","names":["React","NodeFormat","TextJSXConverter","text","node","format","IS_BOLD","_jsx","IS_ITALIC","IS_STRIKETHROUGH","style","textDecoration","IS_UNDERLINE","IS_CODE","IS_SUBSCRIPT","IS_SUPERSCRIPT"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/text.tsx"],"sourcesContent":["import React from 'react'\n\nimport type { SerializedTextNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nimport { NodeFormat } from '../../../../../lexical/utils/nodeFormat.js'\n\nexport const TextJSXConverter: JSXConverters<SerializedTextNode> = {\n text: ({ node }) => {\n let text: React.ReactNode = node.text\n\n if (node.format & NodeFormat.IS_BOLD) {\n text = <strong>{text}</strong>\n }\n if (node.format & NodeFormat.IS_ITALIC) {\n text = <em>{text}</em>\n }\n if (node.format & NodeFormat.IS_STRIKETHROUGH) {\n text = <span style={{ textDecoration: 'line-through' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_UNDERLINE) {\n text = <span style={{ textDecoration: 'underline' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_CODE) {\n text = <code>{text}</code>\n }\n if (node.format & NodeFormat.IS_SUBSCRIPT) {\n text = <sub>{text}</sub>\n }\n if (node.format & NodeFormat.IS_SUPERSCRIPT) {\n text = <sup>{text}</sup>\n }\n\n return text\n },\n}\n"],"mappings":";AAAA,OAAOA,KAAA,MAAW;AAKlB,SAASC,UAAU,QAAQ;AAE3B,OAAO,MAAMC,gBAAA,GAAsD;EACjEC,IAAA,EAAMA,CAAC;IAAEC;EAAI,CAAE;IACb,IAAID,IAAA,GAAwBC,IAAA,CAAKD,IAAI;IAErC,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWK,OAAO,EAAE;MACpCH,IAAA,gBAAOI,IAAA,CAAC;kBAAQJ;;IAClB;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWO,SAAS,EAAE;MACtCL,IAAA,gBAAOI,IAAA,CAAC;kBAAIJ;;IACd;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWQ,gBAAgB,EAAE;MAC7CN,IAAA,gBAAOI,IAAA,CAAC;QAAKG,KAAA,EAAO;UAAEC,cAAA,EAAgB;QAAe;kBAAIR;;IAC3D;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWW,YAAY,EAAE;MACzCT,IAAA,gBAAOI,IAAA,CAAC;QAAKG,KAAA,EAAO;UAAEC,cAAA,EAAgB;QAAY;kBAAIR;;IACxD;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWY,OAAO,EAAE;MACpCV,IAAA,gBAAOI,IAAA,CAAC;kBAAMJ;;IAChB;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWa,YAAY,EAAE;MACzCX,IAAA,gBAAOI,IAAA,CAAC;kBAAKJ;;IACf;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWc,cAAc,EAAE;MAC3CZ,IAAA,gBAAOI,IAAA,CAAC;kBAAKJ;;IACf;IAEA,OAAOA,IAAA;EACT;AACF","ignoreList":[]}
1
+ {"version":3,"file":"text.js","names":["React","NodeFormat","TextJSXConverter","text","node","format","IS_BOLD","_jsx","IS_ITALIC","IS_STRIKETHROUGH","style","textDecoration","IS_UNDERLINE","IS_CODE","IS_SUBSCRIPT","IS_SUPERSCRIPT"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/text.tsx"],"sourcesContent":["import React from 'react'\n\nimport type { SerializedTextNode } from '../../../../../types/nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nimport { NodeFormat } from '../../../../../lexical/utils/nodeFormat.js'\n\nexport const TextJSXConverter: JSXConverters<SerializedTextNode> = {\n text: ({ node }) => {\n let text: React.ReactNode = node.text\n\n if (node.format & NodeFormat.IS_BOLD) {\n text = <strong>{text}</strong>\n }\n if (node.format & NodeFormat.IS_ITALIC) {\n text = <em>{text}</em>\n }\n if (node.format & NodeFormat.IS_STRIKETHROUGH) {\n text = <span style={{ textDecoration: 'line-through' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_UNDERLINE) {\n text = <span style={{ textDecoration: 'underline' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_CODE) {\n text = <code>{text}</code>\n }\n if (node.format & NodeFormat.IS_SUBSCRIPT) {\n text = <sub>{text}</sub>\n }\n if (node.format & NodeFormat.IS_SUPERSCRIPT) {\n text = <sup>{text}</sup>\n }\n\n return text\n },\n}\n"],"mappings":";AAAA,OAAOA,KAAA,MAAW;AAKlB,SAASC,UAAU,QAAQ;AAE3B,OAAO,MAAMC,gBAAA,GAAsD;EACjEC,IAAA,EAAMA,CAAC;IAAEC;EAAI,CAAE;IACb,IAAID,IAAA,GAAwBC,IAAA,CAAKD,IAAI;IAErC,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWK,OAAO,EAAE;MACpCH,IAAA,gBAAOI,IAAA,CAAC;kBAAQJ;;IAClB;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWO,SAAS,EAAE;MACtCL,IAAA,gBAAOI,IAAA,CAAC;kBAAIJ;;IACd;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWQ,gBAAgB,EAAE;MAC7CN,IAAA,gBAAOI,IAAA,CAAC;QAAKG,KAAA,EAAO;UAAEC,cAAA,EAAgB;QAAe;kBAAIR;;IAC3D;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWW,YAAY,EAAE;MACzCT,IAAA,gBAAOI,IAAA,CAAC;QAAKG,KAAA,EAAO;UAAEC,cAAA,EAAgB;QAAY;kBAAIR;;IACxD;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWY,OAAO,EAAE;MACpCV,IAAA,gBAAOI,IAAA,CAAC;kBAAMJ;;IAChB;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWa,YAAY,EAAE;MACzCX,IAAA,gBAAOI,IAAA,CAAC;kBAAKJ;;IACf;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWc,cAAc,EAAE;MAC3CZ,IAAA,gBAAOI,IAAA,CAAC;kBAAKJ;;IACf;IAEA,OAAOA,IAAA;EACT;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedUploadNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedUploadNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from '../types.js';
3
3
  export declare const UploadJSXConverter: JSXConverters<SerializedUploadNode>;
4
4
  //# sourceMappingURL=upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/upload.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,oBAAoB,CAuElE,CAAA"}
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/upload.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AAE7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,oBAAoB,CAuElE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"upload.js","names":["UploadJSXConverter","upload","node","uploadNode","value","uploadDoc","alt","fields","url","mimeType","startsWith","_jsx","href","rel","filename","sizes","Object","keys","length","height","src","width","pictureJSX","size","imageSize","filesize","imageSizeURL","push","media","srcSet","type"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/upload.tsx"],"sourcesContent":["import type { FileData, FileSizeImproved, TypeWithID } from 'payload'\n\nimport type { SerializedUploadNode } from '../../../../../nodeTypes.js'\nimport type { UploadDataImproved } from '../../../../upload/server/nodes/UploadNode.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const UploadJSXConverter: JSXConverters<SerializedUploadNode> = {\n upload: ({ node }) => {\n // TO-DO (v4): SerializedUploadNode should use UploadData_P4\n const uploadNode = node as UploadDataImproved\n if (typeof uploadNode.value !== 'object') {\n return null\n }\n\n const uploadDoc = uploadNode.value as FileData & TypeWithID\n\n const alt = (uploadNode.fields?.alt as string) || (uploadDoc as { alt?: string })?.alt || ''\n\n const url = uploadDoc.url\n\n /**\n * If the upload is not an image, return a link to the upload\n */\n if (!uploadDoc.mimeType.startsWith('image')) {\n return (\n <a href={url} rel=\"noopener noreferrer\">\n {uploadDoc.filename}\n </a>\n )\n }\n\n /**\n * If the upload is a simple image with no different sizes, return a simple img tag\n */\n if (!uploadDoc.sizes || !Object.keys(uploadDoc.sizes).length) {\n return <img alt={alt} height={uploadDoc.height} src={url} width={uploadDoc.width} />\n }\n\n /**\n * If the upload is an image with different sizes, return a picture element\n */\n const pictureJSX: React.ReactNode[] = []\n\n // Iterate through each size in the data.sizes object\n for (const size in uploadDoc.sizes) {\n const imageSize = uploadDoc.sizes[size] as FileSizeImproved\n\n // Skip if any property of the size object is null\n if (\n !imageSize ||\n !imageSize.width ||\n !imageSize.height ||\n !imageSize.mimeType ||\n !imageSize.filesize ||\n !imageSize.filename ||\n !imageSize.url\n ) {\n continue\n }\n const imageSizeURL = imageSize?.url\n\n pictureJSX.push(\n <source\n key={size}\n media={`(max-width: ${imageSize.width}px)`}\n srcSet={imageSizeURL}\n type={imageSize.mimeType}\n />,\n )\n }\n\n // Add the default img tag\n pictureJSX.push(\n <img alt={alt} height={uploadDoc?.height} key={'image'} src={url} width={uploadDoc?.width} />,\n )\n return <picture>{pictureJSX}</picture>\n },\n}\n"],"mappings":";AAMA,OAAO,MAAMA,kBAAA,GAA0D;EACrEC,MAAA,EAAQA,CAAC;IAAEC;EAAI,CAAE;IACf;IACA,MAAMC,UAAA,GAAaD,IAAA;IACnB,IAAI,OAAOC,UAAA,CAAWC,KAAK,KAAK,UAAU;MACxC,OAAO;IACT;IAEA,MAAMC,SAAA,GAAYF,UAAA,CAAWC,KAAK;IAElC,MAAME,GAAA,GAAMH,UAAC,CAAWI,MAAM,EAAED,GAAA,IAAmBD,SAAA,EAAgCC,GAAA,IAAO;IAE1F,MAAME,GAAA,GAAMH,SAAA,CAAUG,GAAG;IAEzB;;;IAGA,IAAI,CAACH,SAAA,CAAUI,QAAQ,CAACC,UAAU,CAAC,UAAU;MAC3C,oBACEC,IAAA,CAAC;QAAEC,IAAA,EAAMJ,GAAA;QAAKK,GAAA,EAAI;kBACfR,SAAA,CAAUS;;IAGjB;IAEA;;;IAGA,IAAI,CAACT,SAAA,CAAUU,KAAK,IAAI,CAACC,MAAA,CAAOC,IAAI,CAACZ,SAAA,CAAUU,KAAK,EAAEG,MAAM,EAAE;MAC5D,oBAAOP,IAAA,CAAC;QAAIL,GAAA,EAAKA,GAAA;QAAKa,MAAA,EAAQd,SAAA,CAAUc,MAAM;QAAEC,GAAA,EAAKZ,GAAA;QAAKa,KAAA,EAAOhB,SAAA,CAAUgB;;IAC7E;IAEA;;;IAGA,MAAMC,UAAA,GAAgC,EAAE;IAExC;IACA,KAAK,MAAMC,IAAA,IAAQlB,SAAA,CAAUU,KAAK,EAAE;MAClC,MAAMS,SAAA,GAAYnB,SAAA,CAAUU,KAAK,CAACQ,IAAA,CAAK;MAEvC;MACA,IACE,CAACC,SAAA,IACD,CAACA,SAAA,CAAUH,KAAK,IAChB,CAACG,SAAA,CAAUL,MAAM,IACjB,CAACK,SAAA,CAAUf,QAAQ,IACnB,CAACe,SAAA,CAAUC,QAAQ,IACnB,CAACD,SAAA,CAAUV,QAAQ,IACnB,CAACU,SAAA,CAAUhB,GAAG,EACd;QACA;MACF;MACA,MAAMkB,YAAA,GAAeF,SAAA,EAAWhB,GAAA;MAEhCc,UAAA,CAAWK,IAAI,cACbhB,IAAA,CAAC;QAECiB,KAAA,EAAO,eAAeJ,SAAA,CAAUH,KAAK,KAAK;QAC1CQ,MAAA,EAAQH,YAAA;QACRI,IAAA,EAAMN,SAAA,CAAUf;SAHXc,IAAA;IAMX;IAEA;IACAD,UAAA,CAAWK,IAAI,cACbhB,IAAA,CAAC;MAAIL,GAAA,EAAKA,GAAA;MAAKa,MAAA,EAAQd,SAAA,EAAWc,MAAA;MAAsBC,GAAA,EAAKZ,GAAA;MAAKa,KAAA,EAAOhB,SAAA,EAAWgB;OAArC;IAEjD,oBAAOV,IAAA,CAAC;gBAASW;;EACnB;AACF","ignoreList":[]}
1
+ {"version":3,"file":"upload.js","names":["UploadJSXConverter","upload","node","uploadNode","value","uploadDoc","alt","fields","url","mimeType","startsWith","_jsx","href","rel","filename","sizes","Object","keys","length","height","src","width","pictureJSX","size","imageSize","filesize","imageSizeURL","push","media","srcSet","type"],"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/upload.tsx"],"sourcesContent":["import type { FileData, FileSize, TypeWithID } from 'payload'\n\nimport type { SerializedUploadNode } from '../../../../../types/nodeTypes.js'\nimport type { UploadDataImproved } from '../../../../upload/server/schema.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const UploadJSXConverter: JSXConverters<SerializedUploadNode> = {\n upload: ({ node }) => {\n // TO-DO (v4): SerializedUploadNode should use UploadData_P4\n const uploadNode = node as UploadDataImproved\n if (typeof uploadNode.value !== 'object') {\n return null\n }\n\n const uploadDoc = uploadNode.value as FileData & TypeWithID\n\n const alt = (uploadNode.fields?.alt as string) || (uploadDoc as { alt?: string })?.alt || ''\n\n const url = uploadDoc.url\n\n /**\n * If the upload is not an image, return a link to the upload\n */\n if (!uploadDoc.mimeType.startsWith('image')) {\n return (\n <a href={url} rel=\"noopener noreferrer\">\n {uploadDoc.filename}\n </a>\n )\n }\n\n /**\n * If the upload is a simple image with no different sizes, return a simple img tag\n */\n if (!uploadDoc.sizes || !Object.keys(uploadDoc.sizes).length) {\n return <img alt={alt} height={uploadDoc.height} src={url} width={uploadDoc.width} />\n }\n\n /**\n * If the upload is an image with different sizes, return a picture element\n */\n const pictureJSX: React.ReactNode[] = []\n\n // Iterate through each size in the data.sizes object\n for (const size in uploadDoc.sizes) {\n const imageSize = uploadDoc.sizes[size] as FileSize\n\n // Skip if any property of the size object is null\n if (\n !imageSize ||\n !imageSize.width ||\n !imageSize.height ||\n !imageSize.mimeType ||\n !imageSize.filesize ||\n !imageSize.filename ||\n !imageSize.url\n ) {\n continue\n }\n const imageSizeURL = imageSize?.url\n\n pictureJSX.push(\n <source\n key={size}\n media={`(max-width: ${imageSize.width}px)`}\n srcSet={imageSizeURL}\n type={imageSize.mimeType}\n />,\n )\n }\n\n // Add the default img tag\n pictureJSX.push(\n <img alt={alt} height={uploadDoc?.height} key={'image'} src={url} width={uploadDoc?.width} />,\n )\n return <picture>{pictureJSX}</picture>\n },\n}\n"],"mappings":";AAMA,OAAO,MAAMA,kBAAA,GAA0D;EACrEC,MAAA,EAAQA,CAAC;IAAEC;EAAI,CAAE;IACf;IACA,MAAMC,UAAA,GAAaD,IAAA;IACnB,IAAI,OAAOC,UAAA,CAAWC,KAAK,KAAK,UAAU;MACxC,OAAO;IACT;IAEA,MAAMC,SAAA,GAAYF,UAAA,CAAWC,KAAK;IAElC,MAAME,GAAA,GAAMH,UAAC,CAAWI,MAAM,EAAED,GAAA,IAAmBD,SAAA,EAAgCC,GAAA,IAAO;IAE1F,MAAME,GAAA,GAAMH,SAAA,CAAUG,GAAG;IAEzB;;;IAGA,IAAI,CAACH,SAAA,CAAUI,QAAQ,CAACC,UAAU,CAAC,UAAU;MAC3C,oBACEC,IAAA,CAAC;QAAEC,IAAA,EAAMJ,GAAA;QAAKK,GAAA,EAAI;kBACfR,SAAA,CAAUS;;IAGjB;IAEA;;;IAGA,IAAI,CAACT,SAAA,CAAUU,KAAK,IAAI,CAACC,MAAA,CAAOC,IAAI,CAACZ,SAAA,CAAUU,KAAK,EAAEG,MAAM,EAAE;MAC5D,oBAAOP,IAAA,CAAC;QAAIL,GAAA,EAAKA,GAAA;QAAKa,MAAA,EAAQd,SAAA,CAAUc,MAAM;QAAEC,GAAA,EAAKZ,GAAA;QAAKa,KAAA,EAAOhB,SAAA,CAAUgB;;IAC7E;IAEA;;;IAGA,MAAMC,UAAA,GAAgC,EAAE;IAExC;IACA,KAAK,MAAMC,IAAA,IAAQlB,SAAA,CAAUU,KAAK,EAAE;MAClC,MAAMS,SAAA,GAAYnB,SAAA,CAAUU,KAAK,CAACQ,IAAA,CAAK;MAEvC;MACA,IACE,CAACC,SAAA,IACD,CAACA,SAAA,CAAUH,KAAK,IAChB,CAACG,SAAA,CAAUL,MAAM,IACjB,CAACK,SAAA,CAAUf,QAAQ,IACnB,CAACe,SAAA,CAAUC,QAAQ,IACnB,CAACD,SAAA,CAAUV,QAAQ,IACnB,CAACU,SAAA,CAAUhB,GAAG,EACd;QACA;MACF;MACA,MAAMkB,YAAA,GAAeF,SAAA,EAAWhB,GAAA;MAEhCc,UAAA,CAAWK,IAAI,cACbhB,IAAA,CAAC;QAECiB,KAAA,EAAO,eAAeJ,SAAA,CAAUH,KAAK,KAAK;QAC1CQ,MAAA,EAAQH,YAAA;QACRI,IAAA,EAAMN,SAAA,CAAUf;SAHXc,IAAA;IAMX;IAEA;IACAD,UAAA,CAAWK,IAAI,cACbhB,IAAA,CAAC;MAAIL,GAAA,EAAKA,GAAA;MAAKa,MAAA,EAAQd,SAAA,EAAWc,MAAA;MAAsBC,GAAA,EAAKZ,GAAA;MAAKa,KAAA,EAAOhB,SAAA,EAAWgB;OAArC;IAEjD,oBAAOV,IAAA,CAAC;gBAASW;;EACnB;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { DefaultNodeTypes } from '../../../../nodeTypes.js';
1
+ import type { DefaultNodeTypes } from '../../../../types/nodeTypes.js';
2
2
  import type { JSXConverters } from './types.js';
3
3
  export declare const defaultJSXConverters: JSXConverters<DefaultNodeTypes>;
4
4
  //# sourceMappingURL=defaultConverters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultConverters.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToJSX/converter/defaultConverters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAc/C,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,gBAAgB,CAYhE,CAAA"}
1
+ {"version":3,"file":"defaultConverters.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToJSX/converter/defaultConverters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAc/C,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,gBAAgB,CAYhE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaultConverters.js","names":["BlockquoteJSXConverter","HeadingJSXConverter","HorizontalRuleJSXConverter","LinebreakJSXConverter","LinkJSXConverter","ListJSXConverter","ParagraphJSXConverter","TabJSXConverter","TableJSXConverter","TextJSXConverter","UploadJSXConverter","defaultJSXConverters"],"sources":["../../../../../src/features/converters/lexicalToJSX/converter/defaultConverters.ts"],"sourcesContent":["import type { DefaultNodeTypes } from '../../../../nodeTypes.js'\nimport type { JSXConverters } from './types.js'\n\nimport { BlockquoteJSXConverter } from './converters/blockquote.js'\nimport { HeadingJSXConverter } from './converters/heading.js'\nimport { HorizontalRuleJSXConverter } from './converters/horizontalRule.js'\nimport { LinebreakJSXConverter } from './converters/linebreak.js'\nimport { LinkJSXConverter } from './converters/link.js'\nimport { ListJSXConverter } from './converters/list.js'\nimport { ParagraphJSXConverter } from './converters/paragraph.js'\nimport { TabJSXConverter } from './converters/tab.js'\nimport { TableJSXConverter } from './converters/table.js'\nimport { TextJSXConverter } from './converters/text.js'\nimport { UploadJSXConverter } from './converters/upload.js'\n\nexport const defaultJSXConverters: JSXConverters<DefaultNodeTypes> = {\n ...ParagraphJSXConverter,\n ...TextJSXConverter,\n ...LinebreakJSXConverter,\n ...BlockquoteJSXConverter,\n ...TableJSXConverter,\n ...HeadingJSXConverter,\n ...HorizontalRuleJSXConverter,\n ...ListJSXConverter,\n ...LinkJSXConverter({}),\n ...UploadJSXConverter,\n ...TabJSXConverter,\n}\n"],"mappings":"AAGA,SAASA,sBAAsB,QAAQ;AACvC,SAASC,mBAAmB,QAAQ;AACpC,SAASC,0BAA0B,QAAQ;AAC3C,SAASC,qBAAqB,QAAQ;AACtC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,qBAAqB,QAAQ;AACtC,SAASC,eAAe,QAAQ;AAChC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,kBAAkB,QAAQ;AAEnC,OAAO,MAAMC,oBAAA,GAAwD;EACnE,GAAGL,qBAAqB;EACxB,GAAGG,gBAAgB;EACnB,GAAGN,qBAAqB;EACxB,GAAGH,sBAAsB;EACzB,GAAGQ,iBAAiB;EACpB,GAAGP,mBAAmB;EACtB,GAAGC,0BAA0B;EAC7B,GAAGG,gBAAgB;EACnB,GAAGD,gBAAA,CAAiB,CAAC,EAAE;EACvB,GAAGM,kBAAkB;EACrB,GAAGH;AACL","ignoreList":[]}
1
+ {"version":3,"file":"defaultConverters.js","names":["BlockquoteJSXConverter","HeadingJSXConverter","HorizontalRuleJSXConverter","LinebreakJSXConverter","LinkJSXConverter","ListJSXConverter","ParagraphJSXConverter","TabJSXConverter","TableJSXConverter","TextJSXConverter","UploadJSXConverter","defaultJSXConverters"],"sources":["../../../../../src/features/converters/lexicalToJSX/converter/defaultConverters.ts"],"sourcesContent":["import type { DefaultNodeTypes } from '../../../../types/nodeTypes.js'\nimport type { JSXConverters } from './types.js'\n\nimport { BlockquoteJSXConverter } from './converters/blockquote.js'\nimport { HeadingJSXConverter } from './converters/heading.js'\nimport { HorizontalRuleJSXConverter } from './converters/horizontalRule.js'\nimport { LinebreakJSXConverter } from './converters/linebreak.js'\nimport { LinkJSXConverter } from './converters/link.js'\nimport { ListJSXConverter } from './converters/list.js'\nimport { ParagraphJSXConverter } from './converters/paragraph.js'\nimport { TabJSXConverter } from './converters/tab.js'\nimport { TableJSXConverter } from './converters/table.js'\nimport { TextJSXConverter } from './converters/text.js'\nimport { UploadJSXConverter } from './converters/upload.js'\n\nexport const defaultJSXConverters: JSXConverters<DefaultNodeTypes> = {\n ...ParagraphJSXConverter,\n ...TextJSXConverter,\n ...LinebreakJSXConverter,\n ...BlockquoteJSXConverter,\n ...TableJSXConverter,\n ...HeadingJSXConverter,\n ...HorizontalRuleJSXConverter,\n ...ListJSXConverter,\n ...LinkJSXConverter({}),\n ...UploadJSXConverter,\n ...TabJSXConverter,\n}\n"],"mappings":"AAGA,SAASA,sBAAsB,QAAQ;AACvC,SAASC,mBAAmB,QAAQ;AACpC,SAASC,0BAA0B,QAAQ;AAC3C,SAASC,qBAAqB,QAAQ;AACtC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,qBAAqB,QAAQ;AACtC,SAASC,eAAe,QAAQ;AAChC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,kBAAkB,QAAQ;AAEnC,OAAO,MAAMC,oBAAA,GAAwD;EACnE,GAAGL,qBAAqB;EACxB,GAAGG,gBAAgB;EACnB,GAAGN,qBAAqB;EACxB,GAAGH,sBAAsB;EACzB,GAAGQ,iBAAiB;EACpB,GAAGP,mBAAmB;EACtB,GAAGC,0BAA0B;EAC7B,GAAGG,gBAAgB;EACnB,GAAGD,gBAAA,CAAiB,CAAC,EAAE;EACvB,GAAGM,kBAAkB;EACrB,GAAGH;AACL","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import type { SerializedEditorState, SerializedLexicalNode } from 'lexical';
2
2
  import React from 'react';
3
- import type { LexicalEditorNodeMap, SerializedNodeBase } from '../../../../types.js';
3
+ import type { LexicalEditorNodeMap, SerializedNodeBase } from '../../../../types/index.js';
4
4
  import type { JSXConverters, SerializedLexicalNodeWithParent } from './types.js';
5
5
  export type ConvertLexicalToJSXArgs<TNodes extends SerializedNodeBase = SerializedNodeBase> = {
6
6
  converters: JSXConverters;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToJSX/converter/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE3E,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,oBAAoB,EAGpB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAgB,aAAa,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;AAkI9F,MAAM,MAAM,uBAAuB,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,IAAI;IAC5F,UAAU,EAAE,aAAa,CAAA;IACzB;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAA;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAClC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;CACvC,CAAA;AAED,wBAAgB,mBAAmB,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EAAE,EAC1F,UAAU,EACV,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,OAAO,GACR,EAAE,uBAAuB,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,CAuBnD;AAED,wBAAgB,wBAAwB,CAAC,EACvC,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,MAAM,GACP,EAAE;IACD,UAAU,EAAE,aAAa,CAAA;IACzB,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAClC,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IACrC,KAAK,EAAE,qBAAqB,EAAE,CAAA;IAC9B,MAAM,EAAE,+BAA+B,CAAA;CACxC,GAAG,KAAK,CAAC,SAAS,EAAE,CAmIpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToJSX/converter/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE3E,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,oBAAoB,EAGpB,kBAAkB,EAEnB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAgB,aAAa,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;AAkI9F,MAAM,MAAM,uBAAuB,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,IAAI;IAC5F,UAAU,EAAE,aAAa,CAAA;IACzB;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAA;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAClC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;CACvC,CAAA;AAED,wBAAgB,mBAAmB,CAAC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EAAE,EAC1F,UAAU,EACV,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,OAAO,GACR,EAAE,uBAAuB,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,CAuBnD;AAED,wBAAgB,wBAAwB,CAAC,EACvC,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,MAAM,GACP,EAAE;IACD,UAAU,EAAE,aAAa,CAAA;IACzB,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAClC,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IACrC,KAAK,EAAE,qBAAqB,EAAE,CAAA;IAC9B,MAAM,EAAE,+BAA+B,CAAA;CACxC,GAAG,KAAK,CAAC,SAAS,EAAE,CAmIpB"}