@payloadcms/richtext-lexical 4.0.0-internal.5b1e7cd → 4.0.0-internal.5f0cd13

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 (1036) hide show
  1. package/dist/cell/rscEntry.d.ts +1 -1
  2. package/dist/cell/rscEntry.d.ts.map +1 -1
  3. package/dist/cell/rscEntry.js.map +1 -1
  4. package/dist/exports/client/Field-G5Z2HM5Y.js +2 -0
  5. package/dist/exports/client/Field-G5Z2HM5Y.js.map +7 -0
  6. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js +2 -0
  7. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js.map +7 -0
  8. package/dist/exports/client/bundled.css +1 -1
  9. package/dist/exports/client/{chunk-QJ5EETIB.js → chunk-6QWQ7JV4.js} +2 -2
  10. package/dist/exports/client/{chunk-FTT5KJ6W.js → chunk-LH634DPU.js} +1 -1
  11. package/dist/exports/client/chunk-LH634DPU.js.map +7 -0
  12. package/dist/exports/client/{chunk-BZZVLW4U.js → chunk-RJ5MAOKZ.js} +1 -1
  13. package/dist/exports/client/chunk-RJ5MAOKZ.js.map +7 -0
  14. package/dist/exports/client/chunk-UAKNDD6R.js +2 -0
  15. package/dist/exports/client/chunk-UAKNDD6R.js.map +7 -0
  16. package/dist/exports/client/chunk-WSAPGI3Z.js +2 -0
  17. package/dist/exports/client/chunk-WSAPGI3Z.js.map +7 -0
  18. package/dist/exports/client/component-HKTAZ77E.js +2 -0
  19. package/dist/exports/client/component-HKTAZ77E.js.map +7 -0
  20. package/dist/exports/client/componentInline-D3A6OW76.js +2 -0
  21. package/dist/exports/client/index.d.ts +0 -2
  22. package/dist/exports/client/index.d.ts.map +1 -1
  23. package/dist/exports/client/index.js +30 -30
  24. package/dist/exports/client/index.js.map +4 -4
  25. package/dist/exports/react/index.d.ts +1 -1
  26. package/dist/exports/react/index.d.ts.map +1 -1
  27. package/dist/exports/react/index.js.map +1 -1
  28. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  29. package/dist/features/align/client/toolbarAlignGroup.js +1 -0
  30. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -1
  31. package/dist/features/blockquote/server/index.d.ts +1 -4
  32. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  33. package/dist/features/blockquote/server/index.js +2 -39
  34. package/dist/features/blockquote/server/index.js.map +1 -1
  35. package/dist/features/blockquote/server/schema.d.ts +8 -0
  36. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  37. package/dist/features/blockquote/server/schema.js +15 -0
  38. package/dist/features/blockquote/server/schema.js.map +1 -0
  39. package/dist/features/blocks/client/component/BlockContent.d.ts +10 -0
  40. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -1
  41. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  42. package/dist/features/blocks/client/component/index.css +178 -0
  43. package/dist/features/blocks/client/component/index.d.ts +3 -3
  44. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  45. package/dist/features/blocks/client/component/index.js +90 -18
  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 +85 -0
  49. package/dist/features/blocks/client/componentInline/index.d.ts +3 -3
  50. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  51. package/dist/features/blocks/client/componentInline/index.js +31 -8
  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 +0 -2
  55. package/dist/features/blocks/client/index.js.map +1 -1
  56. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  57. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  58. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  59. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  60. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  61. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  62. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  63. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  64. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  65. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  66. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  67. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  68. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +1 -1
  69. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  70. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +3 -0
  71. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  72. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +26 -0
  73. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +1 -1
  74. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -1
  75. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +4 -1
  76. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  77. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +40 -0
  78. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +1 -1
  79. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -1
  80. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +7 -8
  81. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  82. package/dist/features/blocks/premade/CodeBlock/Component/index.css +171 -0
  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 +20 -66
  89. package/dist/features/blocks/server/index.js.map +1 -1
  90. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  91. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  92. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  93. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  94. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  95. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  96. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  97. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  98. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  99. package/dist/features/blocks/server/schema.d.ts +45 -0
  100. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  101. package/dist/features/blocks/server/schema.js +136 -0
  102. package/dist/features/blocks/server/schema.js.map +1 -0
  103. package/dist/features/blocks/server/validate.d.ts +1 -2
  104. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  105. package/dist/features/blocks/server/validate.js.map +1 -1
  106. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  107. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  108. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  109. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  110. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  111. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  112. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  113. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  114. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  115. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  116. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  117. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  118. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  119. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  120. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  121. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  122. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  123. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  124. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  125. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  136. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  138. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  139. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  140. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  143. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  145. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/types.d.ts +2 -1
  147. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  148. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  150. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  151. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  152. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  153. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  155. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  156. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  158. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  159. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  160. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  161. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  162. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  163. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  164. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  165. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  166. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  167. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  168. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  169. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  170. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  171. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  178. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  180. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  181. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  183. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  184. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +2 -1
  189. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  190. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  191. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +4 -2
  192. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  193. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  194. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  195. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  196. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  197. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  198. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  199. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  200. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  201. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  202. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  203. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  204. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  205. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  206. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  207. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  208. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  209. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  210. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  211. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  212. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  213. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  214. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  215. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  216. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  217. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  223. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  224. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  226. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  227. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  228. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  229. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  236. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  237. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -1
  238. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  239. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +1 -1
  240. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  241. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  242. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  243. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  244. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  245. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +1 -1
  246. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -1
  247. package/dist/features/debug/jsxConverter/client/plugin/index.js +1 -0
  248. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  249. package/dist/features/debug/jsxConverter/client/plugin/style.css +9 -0
  250. package/dist/features/debug/testRecorder/client/plugin/index.css +51 -0
  251. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +1 -1
  252. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -1
  253. package/dist/features/debug/testRecorder/client/plugin/index.js +1 -0
  254. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  255. package/dist/features/debug/treeView/client/plugin/index.css +81 -0
  256. package/dist/features/debug/treeView/client/plugin/index.d.ts +1 -1
  257. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -1
  258. package/dist/features/debug/treeView/client/plugin/index.js +1 -0
  259. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  260. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.css +91 -0
  261. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +1 -1
  262. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -1
  263. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +3 -2
  264. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  265. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.css +11 -0
  266. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +1 -1
  267. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -1
  268. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +1 -0
  269. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  270. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +1 -1
  271. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  272. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.css +166 -0
  273. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts +17 -0
  274. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  275. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js +219 -0
  276. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  277. package/dist/features/experimental_table/client/plugins/TablePlugin/index.css +235 -0
  278. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +1 -1
  279. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -1
  280. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +95 -104
  281. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
  282. package/dist/features/experimental_table/server/index.d.ts +1 -6
  283. package/dist/features/experimental_table/server/index.d.ts.map +1 -1
  284. package/dist/features/experimental_table/server/index.js +4 -102
  285. package/dist/features/experimental_table/server/index.js.map +1 -1
  286. package/dist/features/experimental_table/server/schema.d.ts +27 -0
  287. package/dist/features/experimental_table/server/schema.d.ts.map +1 -0
  288. package/dist/features/experimental_table/server/schema.js +104 -0
  289. package/dist/features/experimental_table/server/schema.js.map +1 -0
  290. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  291. package/dist/features/heading/server/index.d.ts +2 -4
  292. package/dist/features/heading/server/index.d.ts.map +1 -1
  293. package/dist/features/heading/server/index.js +2 -39
  294. package/dist/features/heading/server/index.js.map +1 -1
  295. package/dist/features/heading/server/schema.d.ts +10 -0
  296. package/dist/features/heading/server/schema.d.ts.map +1 -0
  297. package/dist/features/heading/server/schema.js +37 -0
  298. package/dist/features/heading/server/schema.js.map +1 -0
  299. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +1 -1
  300. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  301. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  302. package/dist/features/horizontalRule/client/plugin/index.css +25 -0
  303. package/dist/features/horizontalRule/client/plugin/index.d.ts +1 -1
  304. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -1
  305. package/dist/features/horizontalRule/client/plugin/index.js +73 -4
  306. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
  307. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  308. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  309. package/dist/features/horizontalRule/server/index.js +2 -8
  310. package/dist/features/horizontalRule/server/index.js.map +1 -1
  311. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +1 -5
  312. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  313. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  314. package/dist/features/horizontalRule/server/schema.d.ts +7 -0
  315. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  316. package/dist/features/horizontalRule/server/schema.js +25 -0
  317. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  318. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  319. package/dist/features/link/client/index.d.ts.map +1 -1
  320. package/dist/features/link/client/index.js.map +1 -1
  321. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  322. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  323. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  324. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  325. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +28 -8
  326. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  327. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +112 -0
  328. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +1 -1
  329. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  330. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +1 -0
  331. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  332. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  333. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  334. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  335. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  336. package/dist/features/link/markdownTransformer.d.ts +1 -1
  337. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  338. package/dist/features/link/markdownTransformer.js.map +1 -1
  339. package/dist/features/link/markdownTransformer.spec.js.map +1 -1
  340. package/dist/features/link/nodes/AutoLinkNode.d.ts +3 -3
  341. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  342. package/dist/features/link/nodes/AutoLinkNode.js +2 -1
  343. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  344. package/dist/features/link/nodes/LinkNode.d.ts +3 -3
  345. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  346. package/dist/features/link/nodes/LinkNode.js +2 -1
  347. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  348. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  349. package/dist/features/link/server/baseFields.js.map +1 -1
  350. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  351. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  352. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  353. package/dist/features/link/server/index.d.ts +2 -1
  354. package/dist/features/link/server/index.d.ts.map +1 -1
  355. package/dist/features/link/server/index.js +3 -71
  356. package/dist/features/link/server/index.js.map +1 -1
  357. package/dist/features/link/server/schema.d.ts +32 -0
  358. package/dist/features/link/server/schema.d.ts.map +1 -0
  359. package/dist/features/link/server/schema.js +166 -0
  360. package/dist/features/link/server/schema.js.map +1 -0
  361. package/dist/features/link/server/validate.d.ts +1 -1
  362. package/dist/features/link/server/validate.d.ts.map +1 -1
  363. package/dist/features/link/server/validate.js.map +1 -1
  364. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  365. package/dist/features/lists/checklist/server/index.js +3 -7
  366. package/dist/features/lists/checklist/server/index.js.map +1 -1
  367. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  368. package/dist/features/lists/orderedList/server/index.js +3 -7
  369. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  370. package/dist/features/lists/plugin/index.d.ts +0 -9
  371. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  372. package/dist/features/lists/plugin/index.js.map +1 -1
  373. package/dist/features/lists/shared/markdown.d.ts.map +1 -1
  374. package/dist/features/lists/shared/schema.d.ts +18 -0
  375. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  376. package/dist/features/lists/shared/schema.js +62 -0
  377. package/dist/features/lists/shared/schema.js.map +1 -0
  378. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  379. package/dist/features/lists/unorderedList/server/index.js +3 -7
  380. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  381. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +2 -2
  382. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  383. package/dist/features/relationship/client/components/RelationshipComponent.js +29 -4
  384. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  385. package/dist/features/relationship/client/components/index.css +112 -0
  386. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  387. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  388. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  389. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  390. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  391. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  392. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  393. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  394. package/dist/features/relationship/client/utils/useEnabledRelationships.js +9 -40
  395. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  396. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  397. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  398. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  399. package/dist/features/relationship/server/index.d.ts +1 -0
  400. package/dist/features/relationship/server/index.d.ts.map +1 -1
  401. package/dist/features/relationship/server/index.js +2 -0
  402. package/dist/features/relationship/server/index.js.map +1 -1
  403. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  404. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  405. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  406. package/dist/features/relationship/server/schema.d.ts +28 -0
  407. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  408. package/dist/features/relationship/server/schema.js +83 -0
  409. package/dist/features/relationship/server/schema.js.map +1 -0
  410. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +23 -0
  411. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  412. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +34 -0
  413. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  414. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  415. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  416. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  417. package/dist/features/toolbars/fixed/client/Toolbar/index.css +87 -0
  418. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +1 -1
  419. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  420. package/dist/features/toolbars/fixed/client/Toolbar/index.js +1 -0
  421. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  422. package/dist/features/toolbars/inline/client/Toolbar/index.css +43 -0
  423. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +1 -1
  424. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  425. package/dist/features/toolbars/inline/client/Toolbar/index.js +1 -0
  426. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  427. package/dist/features/toolbars/shared/ToolbarButton/index.css +57 -0
  428. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
  429. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  430. package/dist/features/toolbars/shared/ToolbarButton/index.js +80 -74
  431. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  432. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  433. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +5 -2
  434. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  435. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +214 -0
  436. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
  437. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  438. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +11 -7
  439. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  440. package/dist/features/toolbars/types.d.ts +5 -1
  441. package/dist/features/toolbars/types.d.ts.map +1 -1
  442. package/dist/features/toolbars/types.js.map +1 -1
  443. package/dist/features/typesClient.d.ts +1 -1
  444. package/dist/features/typesClient.d.ts.map +1 -1
  445. package/dist/features/typesClient.js.map +1 -1
  446. package/dist/features/typesServer.d.ts +18 -58
  447. package/dist/features/typesServer.d.ts.map +1 -1
  448. package/dist/features/typesServer.js.map +1 -1
  449. package/dist/features/upload/client/component/index.css +214 -0
  450. package/dist/features/upload/client/component/index.d.ts +2 -2
  451. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  452. package/dist/features/upload/client/component/index.js +86 -63
  453. package/dist/features/upload/client/component/index.js.map +1 -1
  454. package/dist/features/upload/client/component/pending/index.d.ts +0 -1
  455. package/dist/features/upload/client/component/pending/index.d.ts.map +1 -1
  456. package/dist/features/upload/client/component/pending/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.map +1 -1
  464. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  465. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  466. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  467. package/dist/features/upload/server/index.d.ts +1 -0
  468. package/dist/features/upload/server/index.d.ts.map +1 -1
  469. package/dist/features/upload/server/index.js +3 -80
  470. package/dist/features/upload/server/index.js.map +1 -1
  471. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  472. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  473. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  474. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  475. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  476. package/dist/features/upload/server/schema.d.ts +52 -0
  477. package/dist/features/upload/server/schema.d.ts.map +1 -0
  478. package/dist/features/upload/server/schema.js +113 -0
  479. package/dist/features/upload/server/schema.js.map +1 -0
  480. package/dist/features/upload/server/validate.d.ts +1 -1
  481. package/dist/features/upload/server/validate.d.ts.map +1 -1
  482. package/dist/features/upload/server/validate.js.map +1 -1
  483. package/dist/field/Diff/converters/link.d.ts +1 -1
  484. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  485. package/dist/field/Diff/converters/link.js.map +1 -1
  486. package/dist/field/Diff/converters/listitem/index.css +80 -0
  487. package/dist/field/Diff/converters/listitem/index.d.ts +2 -2
  488. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  489. package/dist/field/Diff/converters/listitem/index.js +1 -0
  490. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  491. package/dist/field/Diff/converters/relationship/index.css +108 -0
  492. package/dist/field/Diff/converters/relationship/index.d.ts +2 -2
  493. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  494. package/dist/field/Diff/converters/relationship/index.js +11 -28
  495. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  496. package/dist/field/Diff/converters/unknown/index.css +37 -0
  497. package/dist/field/Diff/converters/unknown/index.d.ts +1 -1
  498. package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -1
  499. package/dist/field/Diff/converters/unknown/index.js +1 -0
  500. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  501. package/dist/field/Diff/converters/upload/index.css +175 -0
  502. package/dist/field/Diff/converters/upload/index.d.ts +2 -2
  503. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  504. package/dist/field/Diff/converters/upload/index.js +7 -2
  505. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  506. package/dist/field/Diff/index.css +156 -0
  507. package/dist/field/Diff/index.d.ts +1 -1
  508. package/dist/field/Diff/index.d.ts.map +1 -1
  509. package/dist/field/Diff/index.js +1 -0
  510. package/dist/field/Diff/index.js.map +1 -1
  511. package/dist/field/Field.d.ts +3 -3
  512. package/dist/field/Field.d.ts.map +1 -1
  513. package/dist/field/Field.js +13 -12
  514. package/dist/field/Field.js.map +1 -1
  515. package/dist/field/RenderLexical/index.d.ts +2 -2
  516. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  517. package/dist/field/RenderLexical/index.js.map +1 -1
  518. package/dist/field/RichTextViewProvider.d.ts +1 -1
  519. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  520. package/dist/field/RichTextViewProvider.js.map +1 -1
  521. package/dist/field/ViewSelector.css +32 -0
  522. package/dist/field/ViewSelector.d.ts +1 -1
  523. package/dist/field/ViewSelector.d.ts.map +1 -1
  524. package/dist/field/ViewSelector.js +1 -0
  525. package/dist/field/ViewSelector.js.map +1 -1
  526. package/dist/field/bundled.css +1 -1
  527. package/dist/field/index.css +60 -0
  528. package/dist/field/index.d.ts +1 -1
  529. package/dist/field/index.d.ts.map +1 -1
  530. package/dist/field/index.js.map +1 -1
  531. package/dist/field/rscEntry.d.ts +1 -1
  532. package/dist/field/rscEntry.d.ts.map +1 -1
  533. package/dist/field/rscEntry.js.map +1 -1
  534. package/dist/hooks.d.ts +6 -0
  535. package/dist/hooks.d.ts.map +1 -0
  536. package/dist/hooks.js +548 -0
  537. package/dist/hooks.js.map +1 -0
  538. package/dist/index.d.ts +11 -18
  539. package/dist/index.d.ts.map +1 -1
  540. package/dist/index.js +20 -628
  541. package/dist/index.js.map +1 -1
  542. package/dist/lexical/LexicalEditor.css +50 -0
  543. package/dist/lexical/LexicalEditor.d.ts +1 -1
  544. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  545. package/dist/lexical/LexicalEditor.js +1 -0
  546. package/dist/lexical/LexicalEditor.js.map +1 -1
  547. package/dist/lexical/LexicalProvider.d.ts +1 -1
  548. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  549. package/dist/lexical/LexicalProvider.js.map +1 -1
  550. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  551. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  552. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  553. package/dist/lexical/config/client/loader.d.ts +1 -1
  554. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  555. package/dist/lexical/config/client/loader.js.map +1 -1
  556. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  557. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  558. package/dist/lexical/config/client/sanitize.js.map +1 -1
  559. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  560. package/dist/lexical/config/server/loader.js +12 -9
  561. package/dist/lexical/config/server/loader.js.map +1 -1
  562. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  563. package/dist/lexical/config/server/sanitize.js +9 -17
  564. package/dist/lexical/config/server/sanitize.js.map +1 -1
  565. package/dist/lexical/config/types.d.ts +1 -1
  566. package/dist/lexical/config/types.d.ts.map +1 -1
  567. package/dist/lexical/config/types.js.map +1 -1
  568. package/dist/lexical/nodes/index.d.ts +1 -1
  569. package/dist/lexical/nodes/index.d.ts.map +1 -1
  570. package/dist/lexical/nodes/index.js.map +1 -1
  571. package/dist/lexical/plugins/DecoratorPlugin/index.css +11 -0
  572. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +1 -1
  573. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  574. package/dist/lexical/plugins/DecoratorPlugin/index.js +1 -0
  575. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  576. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +52 -0
  577. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +1 -1
  578. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  579. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +1 -0
  580. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  581. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  582. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  583. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  584. package/dist/lexical/plugins/SlashMenu/index.css +65 -0
  585. package/dist/lexical/plugins/SlashMenu/index.d.ts +1 -1
  586. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  587. package/dist/lexical/plugins/SlashMenu/index.js +2 -0
  588. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  589. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +40 -0
  590. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +1 -1
  591. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  592. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +1 -0
  593. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  594. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  595. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +84 -0
  596. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +1 -1
  597. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  598. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +15 -8
  599. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  600. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +1 -1
  601. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  602. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  603. package/dist/lexical/theme/EditorTheme.css +359 -0
  604. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  605. package/dist/lexical/theme/EditorTheme.js +1 -0
  606. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  607. package/dist/lexical/ui/ContentEditable.css +95 -0
  608. package/dist/lexical/ui/ContentEditable.d.ts +1 -1
  609. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  610. package/dist/lexical/ui/ContentEditable.js +1 -0
  611. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  612. package/dist/lexical/ui/icons/Add/index.d.ts +4 -1
  613. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -1
  614. package/dist/lexical/ui/icons/Add/index.js +19 -12
  615. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  616. package/dist/lexical/ui/icons/Add/index.svg +2 -3
  617. package/dist/lexical/ui/icons/Add/light.svg +2 -3
  618. package/dist/lexical/ui/icons/AlignCenter/index.d.ts +3 -1
  619. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -1
  620. package/dist/lexical/ui/icons/AlignCenter/index.js +15 -19
  621. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  622. package/dist/lexical/ui/icons/AlignJustify/index.d.ts +3 -1
  623. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -1
  624. package/dist/lexical/ui/icons/AlignJustify/index.js +15 -19
  625. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  626. package/dist/lexical/ui/icons/AlignLeft/index.d.ts +3 -1
  627. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -1
  628. package/dist/lexical/ui/icons/AlignLeft/index.js +15 -19
  629. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  630. package/dist/lexical/ui/icons/AlignRight/index.d.ts +3 -1
  631. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -1
  632. package/dist/lexical/ui/icons/AlignRight/index.js +15 -19
  633. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  634. package/dist/lexical/ui/icons/Block/index.d.ts +3 -1
  635. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -1
  636. package/dist/lexical/ui/icons/Block/index.js +13 -28
  637. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  638. package/dist/lexical/ui/icons/Blockquote/index.d.ts +3 -1
  639. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -1
  640. package/dist/lexical/ui/icons/Blockquote/index.js +9 -6
  641. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  642. package/dist/lexical/ui/icons/Bold/index.d.ts +3 -1
  643. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -1
  644. package/dist/lexical/ui/icons/Bold/index.js +13 -8
  645. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  646. package/dist/lexical/ui/icons/Checklist/index.d.ts +4 -1
  647. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -1
  648. package/dist/lexical/ui/icons/Checklist/index.js +17 -18
  649. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  650. package/dist/lexical/ui/icons/Code/index.d.ts +3 -1
  651. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -1
  652. package/dist/lexical/ui/icons/Code/index.js +15 -13
  653. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  654. package/dist/lexical/ui/icons/CodeBlock/index.d.ts +4 -1
  655. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -1
  656. package/dist/lexical/ui/icons/CodeBlock/index.js +18 -7
  657. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  658. package/dist/lexical/ui/icons/Collapse/index.d.ts +3 -1
  659. package/dist/lexical/ui/icons/Collapse/index.d.ts.map +1 -1
  660. package/dist/lexical/ui/icons/Collapse/index.js +10 -8
  661. package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
  662. package/dist/lexical/ui/icons/DraggableBlock/index.svg +7 -7
  663. package/dist/lexical/ui/icons/DraggableBlock/light.svg +7 -7
  664. package/dist/lexical/ui/icons/Expand/index.d.ts +5 -0
  665. package/dist/lexical/ui/icons/Expand/index.d.ts.map +1 -0
  666. package/dist/lexical/ui/icons/Expand/index.js +22 -0
  667. package/dist/lexical/ui/icons/Expand/index.js.map +1 -0
  668. package/dist/lexical/ui/icons/H1/index.d.ts +3 -1
  669. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -1
  670. package/dist/lexical/ui/icons/H1/index.js +9 -6
  671. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  672. package/dist/lexical/ui/icons/H2/index.d.ts +3 -1
  673. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -1
  674. package/dist/lexical/ui/icons/H2/index.js +9 -6
  675. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  676. package/dist/lexical/ui/icons/H3/index.d.ts +3 -1
  677. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  678. package/dist/lexical/ui/icons/H3/index.js +9 -6
  679. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  680. package/dist/lexical/ui/icons/H4/index.d.ts +3 -1
  681. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  682. package/dist/lexical/ui/icons/H4/index.js +9 -6
  683. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  684. package/dist/lexical/ui/icons/H5/index.d.ts +3 -1
  685. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  686. package/dist/lexical/ui/icons/H5/index.js +9 -6
  687. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  688. package/dist/lexical/ui/icons/H6/index.d.ts +3 -1
  689. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  690. package/dist/lexical/ui/icons/H6/index.js +9 -6
  691. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  692. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts +3 -1
  693. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -1
  694. package/dist/lexical/ui/icons/HorizontalRule/index.js +11 -11
  695. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  696. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts +3 -1
  697. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -1
  698. package/dist/lexical/ui/icons/IndentDecrease/index.js +18 -22
  699. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  700. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts +3 -1
  701. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -1
  702. package/dist/lexical/ui/icons/IndentIncrease/index.js +15 -22
  703. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  704. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -1
  705. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -1
  706. package/dist/lexical/ui/icons/InlineBlocks/index.js +9 -6
  707. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
  708. package/dist/lexical/ui/icons/Italic/index.d.ts +3 -1
  709. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -1
  710. package/dist/lexical/ui/icons/Italic/index.js +13 -8
  711. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  712. package/dist/lexical/ui/icons/Link/index.d.ts +4 -1
  713. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -1
  714. package/dist/lexical/ui/icons/Link/index.js +14 -9
  715. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  716. package/dist/lexical/ui/icons/Meatballs/index.d.ts +4 -1
  717. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -1
  718. package/dist/lexical/ui/icons/Meatballs/index.js +19 -15
  719. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
  720. package/dist/lexical/ui/icons/OrderedList/index.d.ts +4 -1
  721. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -1
  722. package/dist/lexical/ui/icons/OrderedList/index.js +19 -25
  723. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  724. package/dist/lexical/ui/icons/Page/index.d.ts +5 -0
  725. package/dist/lexical/ui/icons/Page/index.d.ts.map +1 -0
  726. package/dist/lexical/ui/icons/Page/index.js +21 -0
  727. package/dist/lexical/ui/icons/Page/index.js.map +1 -0
  728. package/dist/lexical/ui/icons/Relationship/index.d.ts +3 -1
  729. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -1
  730. package/dist/lexical/ui/icons/Relationship/index.js +13 -25
  731. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  732. package/dist/lexical/ui/icons/Strikethrough/index.d.ts +3 -1
  733. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -1
  734. package/dist/lexical/ui/icons/Strikethrough/index.js +13 -13
  735. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  736. package/dist/lexical/ui/icons/Subscript/index.d.ts +3 -1
  737. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -1
  738. package/dist/lexical/ui/icons/Subscript/index.js +10 -7
  739. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  740. package/dist/lexical/ui/icons/Superscript/index.d.ts +3 -1
  741. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -1
  742. package/dist/lexical/ui/icons/Superscript/index.js +10 -7
  743. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  744. package/dist/lexical/ui/icons/Table/index.d.ts +4 -1
  745. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
  746. package/dist/lexical/ui/icons/Table/index.js +20 -15
  747. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  748. package/dist/lexical/ui/icons/Text/index.d.ts +4 -1
  749. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -1
  750. package/dist/lexical/ui/icons/Text/index.js +17 -8
  751. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  752. package/dist/lexical/ui/icons/Trash/index.d.ts +10 -0
  753. package/dist/lexical/ui/icons/Trash/index.d.ts.map +1 -0
  754. package/dist/lexical/ui/icons/Trash/index.js +29 -0
  755. package/dist/lexical/ui/icons/Trash/index.js.map +1 -0
  756. package/dist/lexical/ui/icons/Underline/index.d.ts +3 -1
  757. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -1
  758. package/dist/lexical/ui/icons/Underline/index.js +16 -14
  759. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  760. package/dist/lexical/ui/icons/UnorderedList/index.d.ts +3 -1
  761. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -1
  762. package/dist/lexical/ui/icons/UnorderedList/index.js +13 -40
  763. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  764. package/dist/lexical/ui/icons/Upload/index.d.ts +3 -1
  765. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -1
  766. package/dist/lexical/ui/icons/Upload/index.js +15 -22
  767. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  768. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  769. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  770. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  771. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  772. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  773. package/dist/types/builtInNodes.d.ts +14 -0
  774. package/dist/types/builtInNodes.d.ts.map +1 -0
  775. package/dist/types/builtInNodes.js +203 -0
  776. package/dist/types/builtInNodes.js.map +1 -0
  777. package/dist/{types.d.ts → types/index.d.ts} +9 -10
  778. package/dist/types/index.d.ts.map +1 -0
  779. package/dist/types/index.js +2 -0
  780. package/dist/types/index.js.map +1 -0
  781. package/dist/types/jsonSchemaHelpers.d.ts +28 -0
  782. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  783. package/dist/types/jsonSchemaHelpers.js +54 -0
  784. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  785. package/dist/types/nodeTypes.d.ts +86 -0
  786. package/dist/types/nodeTypes.d.ts.map +1 -0
  787. package/dist/types/nodeTypes.js +6 -0
  788. package/dist/types/nodeTypes.js.map +1 -0
  789. package/dist/types/schema.d.ts +6 -0
  790. package/dist/types/schema.d.ts.map +1 -0
  791. package/dist/types/schema.js +73 -0
  792. package/dist/types/schema.js.map +1 -0
  793. package/dist/utilities/buildEditorState.d.ts +1 -1
  794. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  795. package/dist/utilities/buildEditorState.js +13 -0
  796. package/dist/utilities/buildEditorState.js.map +1 -1
  797. package/dist/utilities/buildInitialState.js.map +1 -1
  798. package/dist/utilities/createClientFeature.d.ts +1 -1
  799. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  800. package/dist/utilities/createClientFeature.js.map +1 -1
  801. package/dist/utilities/editorConfigFactory.d.ts +1 -1
  802. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  803. package/dist/utilities/editorConfigFactory.js.map +1 -1
  804. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +1 -0
  805. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  806. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +34 -18
  807. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  808. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  809. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  810. package/dist/utilities/generateImportMap.d.ts +1 -1
  811. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  812. package/dist/utilities/generateImportMap.js.map +1 -1
  813. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  814. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  815. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  816. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  817. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  818. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  819. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  820. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  821. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  822. package/dist/validate/index.d.ts.map +1 -1
  823. package/package.json +17 -22
  824. package/dist/exports/client/Component-DOSSWC76.js +0 -2
  825. package/dist/exports/client/Component-DOSSWC76.js.map +0 -7
  826. package/dist/exports/client/Component-MBLHTKDK.js +0 -2
  827. package/dist/exports/client/Component-MBLHTKDK.js.map +0 -7
  828. package/dist/exports/client/Field-4UEGQMIN.js +0 -2
  829. package/dist/exports/client/Field-4UEGQMIN.js.map +0 -7
  830. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js +0 -2
  831. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js.map +0 -7
  832. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  833. package/dist/exports/client/chunk-F26IQ5RE.js +0 -2
  834. package/dist/exports/client/chunk-F26IQ5RE.js.map +0 -7
  835. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  836. package/dist/exports/client/chunk-YWIZCGSY.js +0 -2
  837. package/dist/exports/client/chunk-YWIZCGSY.js.map +0 -7
  838. package/dist/exports/client/component-XIHC3W6W.js +0 -2
  839. package/dist/exports/client/component-XIHC3W6W.js.map +0 -7
  840. package/dist/exports/client/componentInline-CBBUBQ7P.js +0 -2
  841. package/dist/exports/server/migrate.d.ts +0 -16
  842. package/dist/exports/server/migrate.d.ts.map +0 -1
  843. package/dist/exports/server/migrate.js +0 -16
  844. package/dist/exports/server/migrate.js.map +0 -1
  845. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +0 -4
  846. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +0 -1
  847. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +0 -7
  848. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +0 -1
  849. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +0 -4
  850. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +0 -1
  851. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +0 -38
  852. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +0 -1
  853. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +0 -4
  854. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +0 -1
  855. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +0 -9
  856. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +0 -1
  857. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +0 -4
  858. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +0 -1
  859. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +0 -33
  860. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +0 -1
  861. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +0 -6
  862. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +0 -1
  863. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +0 -9
  864. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +0 -1
  865. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +0 -70
  866. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +0 -1
  867. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +0 -104
  868. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +0 -1
  869. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +0 -27
  870. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +0 -1
  871. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +0 -2
  872. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +0 -1
  873. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +0 -39
  874. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +0 -1
  875. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +0 -122
  876. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +0 -1
  877. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +0 -12
  878. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +0 -1
  879. package/dist/features/converters/lexicalToHtml_deprecated/index.js +0 -11
  880. package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +0 -1
  881. package/dist/features/link/nodes/types.d.ts +0 -27
  882. package/dist/features/link/nodes/types.d.ts.map +0 -1
  883. package/dist/features/link/nodes/types.js +0 -2
  884. package/dist/features/link/nodes/types.js.map +0 -1
  885. package/dist/features/lists/htmlConverter.d.ts +0 -5
  886. package/dist/features/lists/htmlConverter.d.ts.map +0 -1
  887. package/dist/features/lists/htmlConverter.js +0 -81
  888. package/dist/features/lists/htmlConverter.js.map +0 -1
  889. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -3
  890. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  891. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -22
  892. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  893. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -3
  894. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  895. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -33
  896. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  897. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -3
  898. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  899. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -24
  900. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  901. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -3
  902. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  903. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -25
  904. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  905. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -3
  906. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  907. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -22
  908. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  909. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -3
  910. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  911. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -28
  912. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  913. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -3
  914. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  915. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -22
  916. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  917. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  918. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  919. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -9
  920. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  921. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -19
  922. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  923. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +0 -78
  924. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  925. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -23
  926. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  927. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +0 -2
  928. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  929. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -2
  930. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  931. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +0 -10
  932. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  933. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -10
  934. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  935. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +0 -49
  936. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  937. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  938. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  939. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  940. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  941. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  942. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  943. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -74
  944. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  945. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -3
  946. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  947. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -23
  948. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  949. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -3
  950. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  951. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +0 -24
  952. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  953. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -3
  954. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  955. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +0 -33
  956. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  957. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -3
  958. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  959. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +0 -30
  960. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  961. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -3
  962. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  963. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -26
  964. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  965. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -3
  966. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  967. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -26
  968. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  969. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -3
  970. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  971. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -15
  972. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  973. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -3
  974. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  975. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -27
  976. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  977. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -3
  978. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  979. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -26
  980. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  981. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -3
  982. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  983. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -18
  984. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  985. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -3
  986. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  987. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +0 -12
  988. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  989. package/dist/features/migrations/slateToLexical/converter/index.d.ts +0 -19
  990. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  991. package/dist/features/migrations/slateToLexical/converter/index.js +0 -130
  992. package/dist/features/migrations/slateToLexical/converter/index.js.map +0 -1
  993. package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -16
  994. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  995. package/dist/features/migrations/slateToLexical/converter/types.js +0 -2
  996. package/dist/features/migrations/slateToLexical/converter/types.js.map +0 -1
  997. package/dist/features/migrations/slateToLexical/feature.client.d.ts +0 -2
  998. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  999. package/dist/features/migrations/slateToLexical/feature.client.js +0 -10
  1000. package/dist/features/migrations/slateToLexical/feature.client.js.map +0 -1
  1001. package/dist/features/migrations/slateToLexical/feature.server.d.ts +0 -40
  1002. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  1003. package/dist/features/migrations/slateToLexical/feature.server.js +0 -68
  1004. package/dist/features/migrations/slateToLexical/feature.server.js.map +0 -1
  1005. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  1006. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1007. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  1008. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1009. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  1010. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1011. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -74
  1012. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1013. package/dist/lexical/ui/icons/AI/index.d.ts +0 -3
  1014. package/dist/lexical/ui/icons/AI/index.d.ts.map +0 -1
  1015. package/dist/lexical/ui/icons/AI/index.js +0 -34
  1016. package/dist/lexical/ui/icons/AI/index.js.map +0 -1
  1017. package/dist/lexical/ui/icons/Caret/index.svg +0 -3
  1018. package/dist/lexical/ui/icons/Edit/index.svg +0 -10
  1019. package/dist/lexical/ui/icons/Remove/index.svg +0 -4
  1020. package/dist/nodeTypes.d.ts +0 -74
  1021. package/dist/nodeTypes.d.ts.map +0 -1
  1022. package/dist/nodeTypes.js +0 -5
  1023. package/dist/nodeTypes.js.map +0 -1
  1024. package/dist/types.d.ts.map +0 -1
  1025. package/dist/types.js +0 -2
  1026. package/dist/types.js.map +0 -1
  1027. package/dist/utilities/migrateSlateToLexical/index.d.ts +0 -15
  1028. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +0 -1
  1029. package/dist/utilities/migrateSlateToLexical/index.js +0 -152
  1030. package/dist/utilities/migrateSlateToLexical/index.js.map +0 -1
  1031. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +0 -10
  1032. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +0 -1
  1033. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +0 -85
  1034. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +0 -1
  1035. /package/dist/exports/client/{chunk-QJ5EETIB.js.map → chunk-6QWQ7JV4.js.map} +0 -0
  1036. /package/dist/exports/client/{componentInline-CBBUBQ7P.js.map → componentInline-D3A6OW76.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/heading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,qBAAqB,CAUtE,CAAA"}
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/heading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,qBAAqB,CAUtE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","names":["ALLOWED_HEADING_TAGS","Set","HeadingHTMLConverter","heading","node","nodesToHTML","providedStyleTag","children","nodes","join","tag","has"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/heading.ts"],"sourcesContent":["import type { SerializedHeadingNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nconst ALLOWED_HEADING_TAGS = new Set(['h1', 'h2', 'h3', 'h4', 'h5', 'h6'])\n\nexport const HeadingHTMLConverter: HTMLConverters<SerializedHeadingNode> = {\n heading: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const tag = ALLOWED_HEADING_TAGS.has(node.tag) ? node.tag : 'h1'\n\n return `<${tag}${providedStyleTag}>${children}</${tag}>`\n },\n}\n"],"mappings":"AAGA,MAAMA,oBAAA,GAAuB,IAAIC,GAAA,CAAI,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,KAAK;AAEzE,OAAO,MAAMC,oBAAA,GAA8D;EACzEC,OAAA,EAASA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAC/C,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,MAAMC,GAAA,GAAMV,oBAAA,CAAqBW,GAAG,CAACP,IAAA,CAAKM,GAAG,IAAIN,IAAA,CAAKM,GAAG,GAAG;IAE5D,OAAO,IAAIA,GAAA,GAAMJ,gBAAA,IAAoBC,QAAA,KAAaG,GAAA,GAAM;EAC1D;AACF","ignoreList":[]}
1
+ {"version":3,"file":"heading.js","names":["ALLOWED_HEADING_TAGS","Set","HeadingHTMLConverter","heading","node","nodesToHTML","providedStyleTag","children","nodes","join","tag","has"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/heading.ts"],"sourcesContent":["import type { SerializedHeadingNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nconst ALLOWED_HEADING_TAGS = new Set(['h1', 'h2', 'h3', 'h4', 'h5', 'h6'])\n\nexport const HeadingHTMLConverter: HTMLConverters<SerializedHeadingNode> = {\n heading: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const tag = ALLOWED_HEADING_TAGS.has(node.tag) ? node.tag : 'h1'\n\n return `<${tag}${providedStyleTag}>${children}</${tag}>`\n },\n}\n"],"mappings":"AAGA,MAAMA,oBAAA,GAAuB,IAAIC,GAAA,CAAI,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,KAAK;AAEzE,OAAO,MAAMC,oBAAA,GAA8D;EACzEC,OAAA,EAASA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAC/C,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,MAAMC,GAAA,GAAMV,oBAAA,CAAqBW,GAAG,CAACP,IAAA,CAAKM,GAAG,IAAIN,IAAA,CAAKM,GAAG,GAAG;IAE5D,OAAO,IAAIA,GAAA,GAAMJ,gBAAA,IAAoBC,QAAA,KAAaG,GAAA,GAAM;EAC1D;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 { HTMLConverters } from '../types.js';
3
3
  export declare const HorizontalRuleHTMLConverter: HTMLConverters<SerializedHorizontalRuleNode>;
4
4
  //# sourceMappingURL=horizontalRule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"horizontalRule.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/horizontalRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,4BAA4B,CAEpF,CAAA"}
1
+ {"version":3,"file":"horizontalRule.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/horizontalRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,4BAA4B,CAEpF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"horizontalRule.js","names":["HorizontalRuleHTMLConverter","horizontalrule"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/horizontalRule.ts"],"sourcesContent":["import type { SerializedHorizontalRuleNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\nexport const HorizontalRuleHTMLConverter: HTMLConverters<SerializedHorizontalRuleNode> = {\n horizontalrule: '<hr />',\n}\n"],"mappings":"AAEA,OAAO,MAAMA,2BAAA,GAA4E;EACvFC,cAAA,EAAgB;AAClB","ignoreList":[]}
1
+ {"version":3,"file":"horizontalRule.js","names":["HorizontalRuleHTMLConverter","horizontalrule"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/horizontalRule.ts"],"sourcesContent":["import type { SerializedHorizontalRuleNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\nexport const HorizontalRuleHTMLConverter: HTMLConverters<SerializedHorizontalRuleNode> = {\n horizontalrule: '<hr />',\n}\n"],"mappings":"AAEA,OAAO,MAAMA,2BAAA,GAA4E;EACvFC,cAAA,EAAgB;AAClB","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { SerializedLineBreakNode } from '../../../../../nodeTypes.js';
1
+ import type { SerializedLineBreakNode } from '../../../../../types/nodeTypes.js';
2
2
  import type { HTMLConverters } from '../types.js';
3
3
  export declare const LinebreakHTMLConverter: HTMLConverters<SerializedLineBreakNode>;
4
4
  //# sourceMappingURL=linebreak.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"linebreak.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/linebreak.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,uBAAuB,CAE1E,CAAA"}
1
+ {"version":3,"file":"linebreak.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/linebreak.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,uBAAuB,CAE1E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"linebreak.js","names":["LinebreakHTMLConverter","linebreak"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/linebreak.ts"],"sourcesContent":["import type { SerializedLineBreakNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const LinebreakHTMLConverter: HTMLConverters<SerializedLineBreakNode> = {\n linebreak: '<br />',\n}\n"],"mappings":"AAGA,OAAO,MAAMA,sBAAA,GAAkE;EAC7EC,SAAA,EAAW;AACb","ignoreList":[]}
1
+ {"version":3,"file":"linebreak.js","names":["LinebreakHTMLConverter","linebreak"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/linebreak.ts"],"sourcesContent":["import type { SerializedLineBreakNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const LinebreakHTMLConverter: HTMLConverters<SerializedLineBreakNode> = {\n linebreak: '<br />',\n}\n"],"mappings":"AAGA,OAAO,MAAMA,sBAAA,GAAkE;EAC7EC,SAAA,EAAW;AACb","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 { HTMLConverters } from '../types.js';
3
3
  export declare const LinkHTMLConverter: (args: {
4
4
  internalDocToHref?: (args: {
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/link.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,iBAAiB,EAAE,CAAC,IAAI,EAAE;IACrC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,kBAAkB,CAAA;KAAE,KAAK,MAAM,CAAA;CACvE,KAAK,cAAc,CAAC,sBAAsB,GAAG,kBAAkB,CAgC9D,CAAA"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/link.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,iBAAiB,EAAE,CAAC,IAAI,EAAE;IACrC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,kBAAkB,CAAA;KAAE,KAAK,MAAM,CAAA;CACvE,KAAK,cAAc,CAAC,sBAAsB,GAAG,kBAAkB,CAgC9D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","names":["escapeHTML","sanitizeUrl","LinkHTMLConverter","internalDocToHref","autolink","node","nodesToHTML","providedStyleTag","children","nodes","join","href","fields","url","newTab","link","linkType","linkNode","console","error","safeHref"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/link.ts"],"sourcesContent":["import escapeHTML from 'escape-html'\nimport { sanitizeUrl } from 'payload/shared'\n\nimport type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const LinkHTMLConverter: (args: {\n internalDocToHref?: (args: { linkNode: SerializedLinkNode }) => string\n}) => HTMLConverters<SerializedAutoLinkNode | SerializedLinkNode> = ({ internalDocToHref }) => ({\n autolink: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const href = escapeHTML(sanitizeUrl(node.fields.url ?? ''))\n\n return `<a${providedStyleTag} href=\"${href}\"${node.fields.newTab ? ' rel=\"noopener noreferrer\" target=\"_blank\"' : ''}>${children}</a>`\n },\n link: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\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 // eslint-disable-next-line no-console\n console.error(\n 'Lexical => HTML converter: Link converter: found internal link, but internalDocToHref is not provided',\n )\n href = '#' // fallback\n }\n }\n\n const safeHref = escapeHTML(sanitizeUrl(href))\n\n return `<a${providedStyleTag} href=\"${safeHref}\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;AACF","ignoreList":[]}
1
+ {"version":3,"file":"link.js","names":["escapeHTML","sanitizeUrl","LinkHTMLConverter","internalDocToHref","autolink","node","nodesToHTML","providedStyleTag","children","nodes","join","href","fields","url","newTab","link","linkType","linkNode","console","error","safeHref"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/link.ts"],"sourcesContent":["import escapeHTML from 'escape-html'\nimport { sanitizeUrl } from 'payload/shared'\n\nimport type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const LinkHTMLConverter: (args: {\n internalDocToHref?: (args: { linkNode: SerializedLinkNode }) => string\n}) => HTMLConverters<SerializedAutoLinkNode | SerializedLinkNode> = ({ internalDocToHref }) => ({\n autolink: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const href = escapeHTML(sanitizeUrl(node.fields.url ?? ''))\n\n return `<a${providedStyleTag} href=\"${href}\"${node.fields.newTab ? ' rel=\"noopener noreferrer\" target=\"_blank\"' : ''}>${children}</a>`\n },\n link: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\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 // eslint-disable-next-line no-console\n console.error(\n 'Lexical => HTML converter: Link converter: found internal link, but internalDocToHref is not provided',\n )\n href = '#' // fallback\n }\n }\n\n const safeHref = escapeHTML(sanitizeUrl(href))\n\n return `<a${providedStyleTag} href=\"${safeHref}\"${node.fields.newTab ? ' rel=\"noopener noreferrer\" target=\"_blank\"' : ''}>${children}</a>`\n },\n})\n"],"mappings":"AAAA,OAAOA,UAAA,MAAgB;AACvB,SAASC,WAAW,QAAQ;AAK5B,OAAO,MAAMC,iBAAA,GAEuDA,CAAC;EAAEC;AAAiB,CAAE,MAAM;EAC9FC,QAAA,EAAUA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAChD,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,MAAMC,IAAA,GAAOX,UAAA,CAAWC,WAAA,CAAYI,IAAA,CAAKO,MAAM,CAACC,GAAG,IAAI;IAEvD,OAAO,KAAKN,gBAAA,UAA0BI,IAAA,IAAQN,IAAA,CAAKO,MAAM,CAACE,MAAM,GAAG,+CAA+C,MAAMN,QAAA,MAAc;EACxI;EACAO,IAAA,EAAMA,CAAC;IAAEV,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAC5C,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,IAAIC,IAAA,GAAeN,IAAA,CAAKO,MAAM,CAACC,GAAG,IAAI;IACtC,IAAIR,IAAA,CAAKO,MAAM,CAACI,QAAQ,KAAK,YAAY;MACvC,IAAIb,iBAAA,EAAmB;QACrBQ,IAAA,GAAOR,iBAAA,CAAkB;UAAEc,QAAA,EAAUZ;QAAK;MAC5C,OAAO;QACL;QACAa,OAAA,CAAQC,KAAK,CACX;QAEFR,IAAA,GAAO,KAAI;MACb;IACF;IAEA,MAAMS,QAAA,GAAWpB,UAAA,CAAWC,WAAA,CAAYU,IAAA;IAExC,OAAO,KAAKJ,gBAAA,UAA0Ba,QAAA,IAAYf,IAAA,CAAKO,MAAM,CAACE,MAAM,GAAG,+CAA+C,MAAMN,QAAA,MAAc;EAC5I;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 { HTMLConverters } from '../types.js';
3
3
  export declare const ListHTMLConverter: HTMLConverters<SerializedListItemNode | SerializedListNode>;
4
4
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAKjD,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,sBAAsB,GAAG,kBAAkB,CA4CzF,CAAA"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAKjD,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,sBAAsB,GAAG,kBAAkB,CA4CzF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","names":["v4","uuidv4","ALLOWED_LIST_TAGS","Set","ALLOWED_LIST_TYPES","ListHTMLConverter","list","node","nodesToHTML","providedStyleTag","children","nodes","join","tag","has","listType","listitem","parent","providedCSSString","hasSubLists","some","child","type","uuid","checked","value"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/list.ts"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\n\nimport type { SerializedListItemNode, SerializedListNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nconst ALLOWED_LIST_TAGS = new Set(['ol', 'ul'])\nconst ALLOWED_LIST_TYPES = new Set(['bullet', 'check', 'number'])\n\nexport const ListHTMLConverter: HTMLConverters<SerializedListItemNode | SerializedListNode> = {\n list: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const tag = ALLOWED_LIST_TAGS.has(node.tag) ? node.tag : 'ul'\n const listType = ALLOWED_LIST_TYPES.has(node.listType) ? node.listType : 'bullet'\n\n return `<${tag}${providedStyleTag} class=\"list-${listType}\">${children}</${tag}>`\n },\n listitem: ({ node, nodesToHTML, parent, providedCSSString }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n if ('listType' in parent && parent?.listType === 'check') {\n const uuid = uuidv4()\n return `<li\n aria-checked=\"${node.checked ? 'true' : 'false'}\"\n class=\"list-item-checkbox${node.checked ? ' list-item-checkbox-checked' : ' list-item-checkbox-unchecked'}${hasSubLists ? ' nestedListItem' : ''}\"\n role=\"checkbox\"\n style=\"list-style-type: none;${providedCSSString}\"\n tabIndex=\"-1\"\n value=\"${node.value}\"\n >\n ${\n hasSubLists\n ? children\n : `<input${node.checked ? ' checked' : ''} id=\"${uuid}\" readOnly=\"true\" type=\"checkbox\" />\n <label htmlFor=\"${uuid}\">${children}</label>\n <br />`\n }\n </li>`\n } else {\n return `<li\n class=\"${hasSubLists ? 'nestedListItem' : ''}\"\n style=\"${hasSubLists ? `list-style-type: none;${providedCSSString}` : providedCSSString}\"\n value=\"${node.value}\"\n >${children}</li>`\n }\n },\n}\n"],"mappings":"AAAA,SAASA,EAAA,IAAMC,MAAM,QAAQ;AAK7B,MAAMC,iBAAA,GAAoB,IAAIC,GAAA,CAAI,CAAC,MAAM,KAAK;AAC9C,MAAMC,kBAAA,GAAqB,IAAID,GAAA,CAAI,CAAC,UAAU,SAAS,SAAS;AAEhE,OAAO,MAAME,iBAAA,GAAiF;EAC5FC,IAAA,EAAMA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAC5C,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,MAAMC,GAAA,GAAMX,iBAAA,CAAkBY,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node","nodesToHTML","providedStyleTag","children","nodes","join","tag","has","listType","listitem","parent","providedCSSString","hasSubLists","some","child","type","uuid","checked","value"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/list.ts"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\n\nimport type { SerializedListItemNode, SerializedListNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nconst ALLOWED_LIST_TAGS = new Set(['ol', 'ul'])\nconst ALLOWED_LIST_TYPES = new Set(['bullet', 'check', 'number'])\n\nexport const ListHTMLConverter: HTMLConverters<SerializedListItemNode | SerializedListNode> = {\n list: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const tag = ALLOWED_LIST_TAGS.has(node.tag) ? node.tag : 'ul'\n const listType = ALLOWED_LIST_TYPES.has(node.listType) ? node.listType : 'bullet'\n\n return `<${tag}${providedStyleTag} class=\"list-${listType}\">${children}</${tag}>`\n },\n listitem: ({ node, nodesToHTML, parent, providedCSSString }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n if ('listType' in parent && parent?.listType === 'check') {\n const uuid = uuidv4()\n return `<li\n aria-checked=\"${node.checked ? 'true' : 'false'}\"\n class=\"list-item-checkbox${node.checked ? ' list-item-checkbox-checked' : ' list-item-checkbox-unchecked'}${hasSubLists ? ' nestedListItem' : ''}\"\n role=\"checkbox\"\n style=\"list-style-type: none;${providedCSSString}\"\n tabIndex=\"-1\"\n value=\"${node.value}\"\n >\n ${\n hasSubLists\n ? children\n : `<input${node.checked ? ' checked' : ''} id=\"${uuid}\" readOnly=\"true\" type=\"checkbox\" />\n <label htmlFor=\"${uuid}\">${children}</label>\n <br />`\n }\n </li>`\n } else {\n return `<li\n class=\"${hasSubLists ? 'nestedListItem' : ''}\"\n style=\"${hasSubLists ? `list-style-type: none;${providedCSSString}` : providedCSSString}\"\n value=\"${node.value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Ac,oBAAoB;;yCAE/GD,iBAAA;;mBAEtBX,IAAA,CAAKkB,KAAK;;YAGjBN,WAAA,GACIT,QAAA,GACA,SAASH,IAAA,CAAKiB,OAAO,GAAG,aAAa,UAAUD,IAAA;8BACjCA,IAAA,KAASb,QAAA;mBACpB;cAEL;IACV,OAAO;MACL,OAAO;mBACMS,WAAA,GAAc,mBAAmB;mBACjCA,WAAA,GAAc,yBAAyBD,iBAAA,EAAmB,GAAGA,iBAAA;mBAC7DX,IAAA,CAAKkB,KAAK;WAClBf,QAAA,OAAe;IACtB;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 { HTMLConverters } from '../types.js';
3
3
  export declare const ParagraphHTMLConverter: HTMLConverters<SerializedParagraphNode>;
4
4
  //# sourceMappingURL=paragraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,uBAAuB,CAY1E,CAAA"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,uBAAuB,CAY1E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.js","names":["ParagraphHTMLConverter","paragraph","node","nodesToHTML","providedStyleTag","children","nodes","length","join"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/paragraph.ts"],"sourcesContent":["import type { SerializedParagraphNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const ParagraphHTMLConverter: HTMLConverters<SerializedParagraphNode> = {\n paragraph: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n })\n\n if (!children?.length) {\n return `<p${providedStyleTag}><br /></p>`\n }\n\n return `<p${providedStyleTag}>${children.join('')}</p>`\n },\n}\n"],"mappings":"AAGA,OAAO,MAAMA,sBAAA,GAAkE;EAC7EC,SAAA,EAAWA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IACjD,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd;IAEA,IAAI,CAACA,QAAA,EAAUE,MAAA,EAAQ;MACrB,OAAO,KAAKH,gBAAA,aAA6B;IAC3C;IAEA,OAAO,KAAKA,gBAAA,IAAoBC,QAAA,CAASG,IAAI,CAAC,SAAS;EACzD;AACF","ignoreList":[]}
1
+ {"version":3,"file":"paragraph.js","names":["ParagraphHTMLConverter","paragraph","node","nodesToHTML","providedStyleTag","children","nodes","length","join"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/paragraph.ts"],"sourcesContent":["import type { SerializedParagraphNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const ParagraphHTMLConverter: HTMLConverters<SerializedParagraphNode> = {\n paragraph: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n })\n\n if (!children?.length) {\n return `<p${providedStyleTag}><br /></p>`\n }\n\n return `<p${providedStyleTag}>${children.join('')}</p>`\n },\n}\n"],"mappings":"AAGA,OAAO,MAAMA,sBAAA,GAAkE;EAC7EC,SAAA,EAAWA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IACjD,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd;IAEA,IAAI,CAACA,QAAA,EAAUE,MAAA,EAAQ;MACrB,OAAO,KAAKH,gBAAA,aAA6B;IAC3C;IAEA,OAAO,KAAKA,gBAAA,IAAoBC,QAAA,CAASG,IAAI,CAAC,SAAS;EACzD;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 { HTMLConverters } from '../types.js';
3
3
  export declare const TabHTMLConverter: HTMLConverters<SerializedTabNode>;
4
4
  //# sourceMappingURL=tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/tab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,iBAAiB,CAE9D,CAAA"}
1
+ {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/tab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,iBAAiB,CAE9D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tab.js","names":["TabHTMLConverter","tab"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/tab.ts"],"sourcesContent":["import type { SerializedTabNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const TabHTMLConverter: HTMLConverters<SerializedTabNode> = {\n tab: '\\t',\n}\n"],"mappings":"AAGA,OAAO,MAAMA,gBAAA,GAAsD;EACjEC,GAAA,EAAK;AACP","ignoreList":[]}
1
+ {"version":3,"file":"tab.js","names":["TabHTMLConverter","tab"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/tab.ts"],"sourcesContent":["import type { SerializedTabNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const TabHTMLConverter: HTMLConverters<SerializedTabNode> = {\n tab: '\\t',\n}\n"],"mappings":"AAGA,OAAO,MAAMA,gBAAA,GAAsD;EACjEC,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 { HTMLConverters } from '../types.js';
3
3
  export declare const TableHTMLConverter: HTMLConverters<SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode>;
4
4
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAC7C,uBAAuB,GAAG,mBAAmB,GAAG,sBAAsB,CAkDvE,CAAA"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAC7C,uBAAuB,GAAG,mBAAmB,GAAG,sBAAsB,CAkDvE,CAAA"}
@@ -24,7 +24,7 @@ export const TableHTMLConverter = {
24
24
  }).join('');
25
25
  const TagName = node.headerState > 0 ? 'th' : 'td';
26
26
  const headerStateClass = `lexical-table-cell-header-${node.headerState}`;
27
- let style = 'border: 1px solid #ccc; padding: 8px;' + providedCSSString;
27
+ let style = 'border: var(--stroke-width-small) solid #ccc; padding: 8px;' + providedCSSString;
28
28
  if (node.backgroundColor && isSafeCssColor(node.backgroundColor)) {
29
29
  style += ` background-color: ${node.backgroundColor};`;
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","names":["isSafeCssColor","TableHTMLConverter","table","node","nodesToHTML","providedStyleTag","children","nodes","join","tablecell","providedCSSString","TagName","headerState","headerStateClass","style","backgroundColor","colSpanAttr","colSpan","rowSpanAttr","rowSpan","tablerow"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/table.ts"],"sourcesContent":["import type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nimport { isSafeCssColor } from '../../shared/cssColors.js'\n\nexport const TableHTMLConverter: HTMLConverters<\n SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode\n> = {\n table: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n return `<div${providedStyleTag} class=\"lexical-table-container\">\n <table class=\"lexical-table\" style=\"border-collapse: collapse;\">\n <tbody>${children}</tbody>\n </table>\n </div>`\n },\n\n tablecell: ({ node, nodesToHTML, providedCSSString }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const TagName = node.headerState > 0 ? 'th' : 'td'\n const headerStateClass = `lexical-table-cell-header-${node.headerState}`\n\n let style = 'border: 1px solid #ccc; padding: 8px;' + providedCSSString\n if (node.backgroundColor && isSafeCssColor(node.backgroundColor)) {\n style += ` background-color: ${node.backgroundColor};`\n }\n\n const colSpanAttr = node.colSpan && node.colSpan > 1 ? ` colspan=\"${node.colSpan}\"` : ''\n const rowSpanAttr = node.rowSpan && node.rowSpan > 1 ? ` rowspan=\"${node.rowSpan}\"` : ''\n\n return `<${TagName}\n class=\"lexical-table-cell ${headerStateClass}\"\n ${colSpanAttr}\n ${rowSpanAttr}\n style=\"${style}\"\n >\n ${children}\n </${TagName}>\n `\n },\n\n tablerow: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n return `<tr${providedStyleTag} class=\"lexical-table-row\">\n ${children}\n </tr>`\n },\n}\n"],"mappings":"AAOA,SAASA,cAAc,QAAQ;AAE/B,OAAO,MAAMC,kBAAA,GAET;EACFC,KAAA,EAAOA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAC7C,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,OAAO,OAAOH,gBAAA;;mBAECC,QAAA;;aAEN;EACX;EAEAG,SAAA,EAAWA,CAAC;IAAEN,IAAI;IAAEC,WAAW;IAAEM;EAAiB,CAAE;IAClD,MAAMJ,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,MAAMG,OAAA,GAAUR,IAAA,CAAKS,WAAW,GAAG,IAAI,OAAO;IAC9C,MAAMC,gBAAA,GAAmB,6BAA6BV,IAAA,CAAKS,WAAW,EAAE;IAExE,IAAIE,KAAA,GAAQ,0CAA0CJ,iBAAA;IACtD,IAAIP,IAAA,CAAKY,eAAe,IAAIf,cAAA,CAAeG,IAAA,CAAKY,eAAe,GAAG;MAChED,KAAA,IAAS,sBAAsBX,IAAA,CAAKY,eAAe,GAAG;IACxD;IAEA,MAAMC,WAAA,GAAcb,IAAA,CAAKc,OAAO,IAAId,IAAA,CAAKc,OAAO,GAAG,IAAI,aAAad,IAAA,CAAKc,OAAO,GAAG,GAAG;IACtF,MAAMC,WAAA,GAAcf,IAAA,CAAKgB,OAAO,IAAIhB,IAAA,CAAKgB,OAAO,GAAG,IAAI,aAAahB,IAAA,CAAKgB,OAAO,GAAG,GAAG;IAEtF,OAAO,IAAIR,OAAA;oCACqBE,gBAAA;UAC1BG,WAAA;UACAE,WAAA;iBACOJ,KAAA;;UAEPR,QAAA;UACAK,OAAA;KACL;EACH;EAEAS,QAAA,EAAUA,CAAC;IAAEjB,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAChD,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,OAAO,MAAMH,gBAAA;UACPC,QAAA;YACE;EACV;AACF","ignoreList":[]}
1
+ {"version":3,"file":"table.js","names":["isSafeCssColor","TableHTMLConverter","table","node","nodesToHTML","providedStyleTag","children","nodes","join","tablecell","providedCSSString","TagName","headerState","headerStateClass","style","backgroundColor","colSpanAttr","colSpan","rowSpanAttr","rowSpan","tablerow"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/table.ts"],"sourcesContent":["import type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nimport { isSafeCssColor } from '../../shared/cssColors.js'\n\nexport const TableHTMLConverter: HTMLConverters<\n SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode\n> = {\n table: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n return `<div${providedStyleTag} class=\"lexical-table-container\">\n <table class=\"lexical-table\" style=\"border-collapse: collapse;\">\n <tbody>${children}</tbody>\n </table>\n </div>`\n },\n\n tablecell: ({ node, nodesToHTML, providedCSSString }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n const TagName = node.headerState > 0 ? 'th' : 'td'\n const headerStateClass = `lexical-table-cell-header-${node.headerState}`\n\n let style = 'border: var(--stroke-width-small) solid #ccc; padding: 8px;' + providedCSSString\n if (node.backgroundColor && isSafeCssColor(node.backgroundColor)) {\n style += ` background-color: ${node.backgroundColor};`\n }\n\n const colSpanAttr = node.colSpan && node.colSpan > 1 ? ` colspan=\"${node.colSpan}\"` : ''\n const rowSpanAttr = node.rowSpan && node.rowSpan > 1 ? ` rowspan=\"${node.rowSpan}\"` : ''\n\n return `<${TagName}\n class=\"lexical-table-cell ${headerStateClass}\"\n ${colSpanAttr}\n ${rowSpanAttr}\n style=\"${style}\"\n >\n ${children}\n </${TagName}>\n `\n },\n\n tablerow: ({ node, nodesToHTML, providedStyleTag }) => {\n const children = nodesToHTML({\n nodes: node.children,\n }).join('')\n\n return `<tr${providedStyleTag} class=\"lexical-table-row\">\n ${children}\n </tr>`\n },\n}\n"],"mappings":"AAOA,SAASA,cAAc,QAAQ;AAE/B,OAAO,MAAMC,kBAAA,GAET;EACFC,KAAA,EAAOA,CAAC;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAC7C,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,OAAO,OAAOH,gBAAA;;mBAECC,QAAA;;aAEN;EACX;EAEAG,SAAA,EAAWA,CAAC;IAAEN,IAAI;IAAEC,WAAW;IAAEM;EAAiB,CAAE;IAClD,MAAMJ,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,MAAMG,OAAA,GAAUR,IAAA,CAAKS,WAAW,GAAG,IAAI,OAAO;IAC9C,MAAMC,gBAAA,GAAmB,6BAA6BV,IAAA,CAAKS,WAAW,EAAE;IAExE,IAAIE,KAAA,GAAQ,gEAAgEJ,iBAAA;IAC5E,IAAIP,IAAA,CAAKY,eAAe,IAAIf,cAAA,CAAeG,IAAA,CAAKY,eAAe,GAAG;MAChED,KAAA,IAAS,sBAAsBX,IAAA,CAAKY,eAAe,GAAG;IACxD;IAEA,MAAMC,WAAA,GAAcb,IAAA,CAAKc,OAAO,IAAId,IAAA,CAAKc,OAAO,GAAG,IAAI,aAAad,IAAA,CAAKc,OAAO,GAAG,GAAG;IACtF,MAAMC,WAAA,GAAcf,IAAA,CAAKgB,OAAO,IAAIhB,IAAA,CAAKgB,OAAO,GAAG,IAAI,aAAahB,IAAA,CAAKgB,OAAO,GAAG,GAAG;IAEtF,OAAO,IAAIR,OAAA;oCACqBE,gBAAA;UAC1BG,WAAA;UACAE,WAAA;iBACOJ,KAAA;;UAEPR,QAAA;UACAK,OAAA;KACL;EACH;EAEAS,QAAA,EAAUA,CAAC;IAAEjB,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IAChD,MAAMC,QAAA,GAAWF,WAAA,CAAY;MAC3BG,KAAA,EAAOJ,IAAA,CAAKG;IACd,GAAGE,IAAI,CAAC;IAER,OAAO,MAAMH,gBAAA;UACPC,QAAA;YACE;EACV;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 { HTMLConverters } from '../types.js';
3
3
  export declare const TextHTMLConverter: HTMLConverters<SerializedTextNode>;
4
4
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/text.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,kBAAkB,CA4BhE,CAAA"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/text.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,kBAAkB,CA4BhE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","names":["escapeHTML","NodeFormat","TextHTMLConverter","text","node","format","IS_BOLD","IS_ITALIC","IS_STRIKETHROUGH","IS_UNDERLINE","IS_CODE","IS_SUBSCRIPT","IS_SUPERSCRIPT"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/text.ts"],"sourcesContent":["import escapeHTML from 'escape-html'\n\nimport type { SerializedTextNode } from '../../../../../nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nimport { NodeFormat } from '../../../../../lexical/utils/nodeFormat.js'\n\nexport const TextHTMLConverter: HTMLConverters<SerializedTextNode> = {\n text: ({ node }) => {\n let text = escapeHTML(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=\"text-decoration: line-through;\">${text}</span>`\n }\n if (node.format & NodeFormat.IS_UNDERLINE) {\n text = `<span style=\"text-decoration: 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,UAAA,MAAgB;AAKvB,SAASC,UAAU,QAAQ;AAE3B,OAAO,MAAMC,iBAAA,GAAwD;EACnEC,IAAA,EAAMA,CAAC;IAAEC;EAAI,CAAE;IACb,IAAID,IAAA,GAAOH,UAAA,CAAWI,IAAA,CAAKD,IAAI;IAE/B,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWK,OAAO,EAAE;MACpCH,IAAA,GAAO,WAAWA,IAAA,WAAe;IACnC;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWM,SAAS,EAAE;MACtCJ,IAAA,GAAO,OAAOA,IAAA,OAAW;IAC3B;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWO,gBAAgB,EAAE;MAC7CL,IAAA,GAAO,gDAAgDA,IAAA,SAAa;IACtE;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWQ,YAAY,EAAE;MACzCN,IAAA,GAAO,6CAA6CA,IAAA,SAAa;IACnE;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWS,OAAO,EAAE;MACpCP,IAAA,GAAO,SAASA,IAAA,SAAa;IAC/B;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWU,YAAY,EAAE;MACzCR,IAAA,GAAO,QAAQA,IAAA,QAAY;IAC7B;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWW,cAAc,EAAE;MAC3CT,IAAA,GAAO,QAAQA,IAAA,QAAY;IAC7B;IAEA,OAAOA,IAAA;EACT;AACF","ignoreList":[]}
1
+ {"version":3,"file":"text.js","names":["escapeHTML","NodeFormat","TextHTMLConverter","text","node","format","IS_BOLD","IS_ITALIC","IS_STRIKETHROUGH","IS_UNDERLINE","IS_CODE","IS_SUBSCRIPT","IS_SUPERSCRIPT"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/text.ts"],"sourcesContent":["import escapeHTML from 'escape-html'\n\nimport type { SerializedTextNode } from '../../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from '../types.js'\n\nimport { NodeFormat } from '../../../../../lexical/utils/nodeFormat.js'\n\nexport const TextHTMLConverter: HTMLConverters<SerializedTextNode> = {\n text: ({ node }) => {\n let text = escapeHTML(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=\"text-decoration: line-through;\">${text}</span>`\n }\n if (node.format & NodeFormat.IS_UNDERLINE) {\n text = `<span style=\"text-decoration: 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,UAAA,MAAgB;AAKvB,SAASC,UAAU,QAAQ;AAE3B,OAAO,MAAMC,iBAAA,GAAwD;EACnEC,IAAA,EAAMA,CAAC;IAAEC;EAAI,CAAE;IACb,IAAID,IAAA,GAAOH,UAAA,CAAWI,IAAA,CAAKD,IAAI;IAE/B,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWK,OAAO,EAAE;MACpCH,IAAA,GAAO,WAAWA,IAAA,WAAe;IACnC;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWM,SAAS,EAAE;MACtCJ,IAAA,GAAO,OAAOA,IAAA,OAAW;IAC3B;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWO,gBAAgB,EAAE;MAC7CL,IAAA,GAAO,gDAAgDA,IAAA,SAAa;IACtE;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWQ,YAAY,EAAE;MACzCN,IAAA,GAAO,6CAA6CA,IAAA,SAAa;IACnE;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWS,OAAO,EAAE;MACpCP,IAAA,GAAO,SAASA,IAAA,SAAa;IAC/B;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWU,YAAY,EAAE;MACzCR,IAAA,GAAO,QAAQA,IAAA,QAAY;IAC7B;IACA,IAAIC,IAAA,CAAKC,MAAM,GAAGJ,UAAA,CAAWW,cAAc,EAAE;MAC3CT,IAAA,GAAO,QAAQA,IAAA,QAAY;IAC7B;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 { HTMLConverters } from '../types.js';
3
3
  export declare const UploadHTMLConverter: HTMLConverters<SerializedUploadNode>;
4
4
  //# sourceMappingURL=upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/upload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,oBAAoB,CA8EpE,CAAA"}
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/upload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,oBAAoB,CA8EpE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"upload.js","names":["escapeHTML","UploadHTMLConverter","upload","node","providedStyleTag","uploadNode","uploadDoc","undefined","value","alt","fields","url","mimeType","startsWith","filename","sizes","Object","keys","length","String","height","width","pictureHTML","size","imageSize","filesize"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/upload.ts"],"sourcesContent":["import type { FileData, FileSizeImproved, TypeWithID } from 'payload'\n\nimport escapeHTML from 'escape-html'\n\nimport type { SerializedUploadNode } from '../../../../../nodeTypes.js'\nimport type { UploadDataImproved } from '../../../../upload/server/nodes/UploadNode.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const UploadHTMLConverter: HTMLConverters<SerializedUploadNode> = {\n upload: ({ node, providedStyleTag }) => {\n const uploadNode = node as UploadDataImproved\n\n let uploadDoc: (FileData & TypeWithID) | undefined = undefined\n\n // If there's no valid upload data, populate return an empty string\n if (typeof uploadNode.value !== 'object') {\n return ''\n } else {\n uploadDoc = uploadNode.value as unknown as FileData & TypeWithID\n }\n\n if (!uploadDoc) {\n return ''\n }\n\n const alt = escapeHTML(\n (node.fields?.alt as string) || (uploadDoc as { alt?: string })?.alt || '',\n )\n\n const url = escapeHTML(uploadDoc.url ?? '')\n\n // 1) If upload is NOT an image, return a link\n if (!uploadDoc.mimeType.startsWith('image')) {\n return `<a${providedStyleTag} href=\"${url}\" rel=\"noopener noreferrer\">${escapeHTML(uploadDoc.filename ?? '')}</a>`\n }\n\n // 2) If image has no different sizes, return a simple <img />\n if (!uploadDoc.sizes || !Object.keys(uploadDoc.sizes).length) {\n return `\n <img${providedStyleTag}\n alt=\"${alt}\"\n height=\"${escapeHTML(String(uploadDoc.height ?? ''))}\"\n src=\"${url}\"\n width=\"${escapeHTML(String(uploadDoc.width ?? ''))}\"\n />\n `\n }\n\n // 3) If image has different sizes, build a <picture> element with <source> tags\n let pictureHTML = ''\n\n for (const size in uploadDoc.sizes) {\n const imageSize = uploadDoc.sizes[size] as FileSizeImproved\n\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\n pictureHTML += `\n <source\n media=\"(max-width: ${escapeHTML(String(imageSize.width))}px)\"\n srcset=\"${escapeHTML(imageSize.url)}\"\n type=\"${escapeHTML(imageSize.mimeType)}\"\n />\n `\n }\n\n pictureHTML += `\n <img\n alt=\"${alt}\"\n height=\"${escapeHTML(String(uploadDoc.height ?? ''))}\"\n src=\"${url}\"\n width=\"${escapeHTML(String(uploadDoc.width ?? ''))}\"\n />\n `\n\n return `<picture${providedStyleTag}>${pictureHTML}</picture>`\n },\n}\n"],"mappings":"AAEA,OAAOA,UAAA,MAAgB;AAMvB,OAAO,MAAMC,mBAAA,GAA4D;EACvEC,MAAA,EAAQA,CAAC;IAAEC,IAAI;IAAEC;EAAgB,CAAE;IACjC,MAAMC,UAAA,GAAaF,IAAA;IAEnB,IAAIG,SAAA,GAAiDC,SAAA;IAErD;IACA,IAAI,OAAOF,UAAA,CAAWG,KAAK,KAAK,UAAU;MACxC,OAAO;IACT,OAAO;MACLF,SAAA,GAAYD,UAAA,CAAWG,KAAK;IAC9B;IAEA,IAAI,CAACF,SAAA,EAAW;MACd,OAAO;IACT;IAEA,MAAMG,GAAA,GAAMT,UAAA,CACVG,IAAC,CAAKO,MAAM,EAAED,GAAA,IAAmBH,SAAA,EAAgCG,GAAA,IAAO;IAG1E,MAAME,GAAA,GAAMX,UAAA,CAAWM,SAAA,CAAUK,GAAG,IAAI;IAExC;IACA,IAAI,CAACL,SAAA,CAAUM,QAAQ,CAACC,UAAU,CAAC,UAAU;MAC3C,OAAO,KAAKT,gBAAA,UAA0BO,GAAA,+BAAkCX,UAAA,CAAWM,SAAA,CAAUQ,QAAQ,IAAI,SAAS;IACpH;IAEA;IACA,IAAI,CAACR,SAAA,CAAUS,KAAK,IAAI,CAACC,MAAA,CAAOC,IAAI,CAACX,SAAA,CAAUS,KAAK,EAAEG,MAAM,EAAE;MAC5D,OAAO;cACCd,gBAAA;iBACGK,GAAA;oBACGT,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUc,MAAM,IAAI;iBACzCT,GAAA;mBACEX,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUe,KAAK,IAAI;;OAEjD;IACH;IAEA;IACA,IAAIC,WAAA,GAAc;IAElB,KAAK,MAAMC,IAAA,IAAQjB,SAAA,CAAUS,KAAK,EAAE;MAClC,MAAMS,SAAA,GAAYlB,SAAA,CAAUS,KAAK,CAACQ,IAAA,CAAK;MAEvC,IACE,CAACC,SAAA,IACD,CAACA,SAAA,CAAUH,KAAK,IAChB,CAACG,SAAA,CAAUJ,MAAM,IACjB,CAACI,SAAA,CAAUZ,QAAQ,IACnB,CAACY,SAAA,CAAUC,QAAQ,IACnB,CAACD,SAAA,CAAUV,QAAQ,IACnB,CAACU,SAAA,CAAUb,GAAG,EACd;QACA;MACF;MAEAW,WAAA,IAAe;;+BAEUtB,UAAA,CAAWmB,MAAA,CAAOK,SAAA,CAAUH,KAAK;oBAC5CrB,UAAA,CAAWwB,SAAA,CAAUb,GAAG;kBAC1BX,UAAA,CAAWwB,SAAA,CAAUZ,QAAQ;;OAExC;IACH;IAEAU,WAAA,IAAe;;eAEJb,GAAA;kBACGT,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUc,MAAM,IAAI;eACzCT,GAAA;iBACEX,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUe,KAAK,IAAI;;KAEjD;IAED,OAAO,WAAWjB,gBAAA,IAAoBkB,WAAA,YAAuB;EAC/D;AACF","ignoreList":[]}
1
+ {"version":3,"file":"upload.js","names":["escapeHTML","UploadHTMLConverter","upload","node","providedStyleTag","uploadNode","uploadDoc","undefined","value","alt","fields","url","mimeType","startsWith","filename","sizes","Object","keys","length","String","height","width","pictureHTML","size","imageSize","filesize"],"sources":["../../../../../../src/features/converters/lexicalToHtml/sync/converters/upload.ts"],"sourcesContent":["import type { FileData, FileSize, TypeWithID } from 'payload'\n\nimport escapeHTML from 'escape-html'\n\nimport type { SerializedUploadNode } from '../../../../../types/nodeTypes.js'\nimport type { UploadDataImproved } from '../../../../upload/server/schema.js'\nimport type { HTMLConverters } from '../types.js'\n\nexport const UploadHTMLConverter: HTMLConverters<SerializedUploadNode> = {\n upload: ({ node, providedStyleTag }) => {\n const uploadNode = node as UploadDataImproved\n\n let uploadDoc: (FileData & TypeWithID) | undefined = undefined\n\n // If there's no valid upload data, populate return an empty string\n if (typeof uploadNode.value !== 'object') {\n return ''\n } else {\n uploadDoc = uploadNode.value as unknown as FileData & TypeWithID\n }\n\n if (!uploadDoc) {\n return ''\n }\n\n const alt = escapeHTML(\n (node.fields?.alt as string) || (uploadDoc as { alt?: string })?.alt || '',\n )\n\n const url = escapeHTML(uploadDoc.url ?? '')\n\n // 1) If upload is NOT an image, return a link\n if (!uploadDoc.mimeType.startsWith('image')) {\n return `<a${providedStyleTag} href=\"${url}\" rel=\"noopener noreferrer\">${escapeHTML(uploadDoc.filename ?? '')}</a>`\n }\n\n // 2) If image has no different sizes, return a simple <img />\n if (!uploadDoc.sizes || !Object.keys(uploadDoc.sizes).length) {\n return `\n <img${providedStyleTag}\n alt=\"${alt}\"\n height=\"${escapeHTML(String(uploadDoc.height ?? ''))}\"\n src=\"${url}\"\n width=\"${escapeHTML(String(uploadDoc.width ?? ''))}\"\n />\n `\n }\n\n // 3) If image has different sizes, build a <picture> element with <source> tags\n let pictureHTML = ''\n\n for (const size in uploadDoc.sizes) {\n const imageSize = uploadDoc.sizes[size] as FileSize\n\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\n pictureHTML += `\n <source\n media=\"(max-width: ${escapeHTML(String(imageSize.width))}px)\"\n srcset=\"${escapeHTML(imageSize.url)}\"\n type=\"${escapeHTML(imageSize.mimeType)}\"\n />\n `\n }\n\n pictureHTML += `\n <img\n alt=\"${alt}\"\n height=\"${escapeHTML(String(uploadDoc.height ?? ''))}\"\n src=\"${url}\"\n width=\"${escapeHTML(String(uploadDoc.width ?? ''))}\"\n />\n `\n\n return `<picture${providedStyleTag}>${pictureHTML}</picture>`\n },\n}\n"],"mappings":"AAEA,OAAOA,UAAA,MAAgB;AAMvB,OAAO,MAAMC,mBAAA,GAA4D;EACvEC,MAAA,EAAQA,CAAC;IAAEC,IAAI;IAAEC;EAAgB,CAAE;IACjC,MAAMC,UAAA,GAAaF,IAAA;IAEnB,IAAIG,SAAA,GAAiDC,SAAA;IAErD;IACA,IAAI,OAAOF,UAAA,CAAWG,KAAK,KAAK,UAAU;MACxC,OAAO;IACT,OAAO;MACLF,SAAA,GAAYD,UAAA,CAAWG,KAAK;IAC9B;IAEA,IAAI,CAACF,SAAA,EAAW;MACd,OAAO;IACT;IAEA,MAAMG,GAAA,GAAMT,UAAA,CACVG,IAAC,CAAKO,MAAM,EAAED,GAAA,IAAmBH,SAAA,EAAgCG,GAAA,IAAO;IAG1E,MAAME,GAAA,GAAMX,UAAA,CAAWM,SAAA,CAAUK,GAAG,IAAI;IAExC;IACA,IAAI,CAACL,SAAA,CAAUM,QAAQ,CAACC,UAAU,CAAC,UAAU;MAC3C,OAAO,KAAKT,gBAAA,UAA0BO,GAAA,+BAAkCX,UAAA,CAAWM,SAAA,CAAUQ,QAAQ,IAAI,SAAS;IACpH;IAEA;IACA,IAAI,CAACR,SAAA,CAAUS,KAAK,IAAI,CAACC,MAAA,CAAOC,IAAI,CAACX,SAAA,CAAUS,KAAK,EAAEG,MAAM,EAAE;MAC5D,OAAO;cACCd,gBAAA;iBACGK,GAAA;oBACGT,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUc,MAAM,IAAI;iBACzCT,GAAA;mBACEX,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUe,KAAK,IAAI;;OAEjD;IACH;IAEA;IACA,IAAIC,WAAA,GAAc;IAElB,KAAK,MAAMC,IAAA,IAAQjB,SAAA,CAAUS,KAAK,EAAE;MAClC,MAAMS,SAAA,GAAYlB,SAAA,CAAUS,KAAK,CAACQ,IAAA,CAAK;MAEvC,IACE,CAACC,SAAA,IACD,CAACA,SAAA,CAAUH,KAAK,IAChB,CAACG,SAAA,CAAUJ,MAAM,IACjB,CAACI,SAAA,CAAUZ,QAAQ,IACnB,CAACY,SAAA,CAAUC,QAAQ,IACnB,CAACD,SAAA,CAAUV,QAAQ,IACnB,CAACU,SAAA,CAAUb,GAAG,EACd;QACA;MACF;MAEAW,WAAA,IAAe;;+BAEUtB,UAAA,CAAWmB,MAAA,CAAOK,SAAA,CAAUH,KAAK;oBAC5CrB,UAAA,CAAWwB,SAAA,CAAUb,GAAG;kBAC1BX,UAAA,CAAWwB,SAAA,CAAUZ,QAAQ;;OAExC;IACH;IAEAU,WAAA,IAAe;;eAEJb,GAAA;kBACGT,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUc,MAAM,IAAI;eACzCT,GAAA;iBACEX,UAAA,CAAWmB,MAAA,CAAOb,SAAA,CAAUe,KAAK,IAAI;;KAEjD;IAED,OAAO,WAAWjB,gBAAA,IAAoBkB,WAAA,YAAuB;EAC/D;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 { HTMLConverters } from './types.js';
3
3
  export declare const defaultHTMLConverters: HTMLConverters<DefaultNodeTypes>;
4
4
  //# sourceMappingURL=defaultConverters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultConverters.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToHtml/sync/defaultConverters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAchD,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,gBAAgB,CAYlE,CAAA"}
1
+ {"version":3,"file":"defaultConverters.d.ts","sourceRoot":"","sources":["../../../../../src/features/converters/lexicalToHtml/sync/defaultConverters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAchD,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,gBAAgB,CAYlE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaultConverters.js","names":["BlockquoteHTMLConverter","HeadingHTMLConverter","HorizontalRuleHTMLConverter","LinebreakHTMLConverter","LinkHTMLConverter","ListHTMLConverter","ParagraphHTMLConverter","TabHTMLConverter","TableHTMLConverter","TextHTMLConverter","UploadHTMLConverter","defaultHTMLConverters"],"sources":["../../../../../src/features/converters/lexicalToHtml/sync/defaultConverters.ts"],"sourcesContent":["import type { DefaultNodeTypes } from '../../../../nodeTypes.js'\nimport type { HTMLConverters } from './types.js'\n\nimport { BlockquoteHTMLConverter } from './converters/blockquote.js'\nimport { HeadingHTMLConverter } from './converters/heading.js'\nimport { HorizontalRuleHTMLConverter } from './converters/horizontalRule.js'\nimport { LinebreakHTMLConverter } from './converters/linebreak.js'\nimport { LinkHTMLConverter } from './converters/link.js'\nimport { ListHTMLConverter } from './converters/list.js'\nimport { ParagraphHTMLConverter } from './converters/paragraph.js'\nimport { TabHTMLConverter } from './converters/tab.js'\nimport { TableHTMLConverter } from './converters/table.js'\nimport { TextHTMLConverter } from './converters/text.js'\nimport { UploadHTMLConverter } from './converters/upload.js'\n\nexport const defaultHTMLConverters: HTMLConverters<DefaultNodeTypes> = {\n ...ParagraphHTMLConverter,\n ...TextHTMLConverter,\n ...LinebreakHTMLConverter,\n ...BlockquoteHTMLConverter,\n ...TableHTMLConverter,\n ...HeadingHTMLConverter,\n ...HorizontalRuleHTMLConverter,\n ...ListHTMLConverter,\n ...LinkHTMLConverter({}),\n ...UploadHTMLConverter,\n ...TabHTMLConverter,\n}\n"],"mappings":"AAGA,SAASA,uBAAuB,QAAQ;AACxC,SAASC,oBAAoB,QAAQ;AACrC,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,sBAAsB,QAAQ;AACvC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,sBAAsB,QAAQ;AACvC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,kBAAkB,QAAQ;AACnC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,mBAAmB,QAAQ;AAEpC,OAAO,MAAMC,qBAAA,GAA0D;EACrE,GAAGL,sBAAsB;EACzB,GAAGG,iBAAiB;EACpB,GAAGN,sBAAsB;EACzB,GAAGH,uBAAuB;EAC1B,GAAGQ,kBAAkB;EACrB,GAAGP,oBAAoB;EACvB,GAAGC,2BAA2B;EAC9B,GAAGG,iBAAiB;EACpB,GAAGD,iBAAA,CAAkB,CAAC,EAAE;EACxB,GAAGM,mBAAmB;EACtB,GAAGH;AACL","ignoreList":[]}
1
+ {"version":3,"file":"defaultConverters.js","names":["BlockquoteHTMLConverter","HeadingHTMLConverter","HorizontalRuleHTMLConverter","LinebreakHTMLConverter","LinkHTMLConverter","ListHTMLConverter","ParagraphHTMLConverter","TabHTMLConverter","TableHTMLConverter","TextHTMLConverter","UploadHTMLConverter","defaultHTMLConverters"],"sources":["../../../../../src/features/converters/lexicalToHtml/sync/defaultConverters.ts"],"sourcesContent":["import type { DefaultNodeTypes } from '../../../../types/nodeTypes.js'\nimport type { HTMLConverters } from './types.js'\n\nimport { BlockquoteHTMLConverter } from './converters/blockquote.js'\nimport { HeadingHTMLConverter } from './converters/heading.js'\nimport { HorizontalRuleHTMLConverter } from './converters/horizontalRule.js'\nimport { LinebreakHTMLConverter } from './converters/linebreak.js'\nimport { LinkHTMLConverter } from './converters/link.js'\nimport { ListHTMLConverter } from './converters/list.js'\nimport { ParagraphHTMLConverter } from './converters/paragraph.js'\nimport { TabHTMLConverter } from './converters/tab.js'\nimport { TableHTMLConverter } from './converters/table.js'\nimport { TextHTMLConverter } from './converters/text.js'\nimport { UploadHTMLConverter } from './converters/upload.js'\n\nexport const defaultHTMLConverters: HTMLConverters<DefaultNodeTypes> = {\n ...ParagraphHTMLConverter,\n ...TextHTMLConverter,\n ...LinebreakHTMLConverter,\n ...BlockquoteHTMLConverter,\n ...TableHTMLConverter,\n ...HeadingHTMLConverter,\n ...HorizontalRuleHTMLConverter,\n ...ListHTMLConverter,\n ...LinkHTMLConverter({}),\n ...UploadHTMLConverter,\n ...TabHTMLConverter,\n}\n"],"mappings":"AAGA,SAASA,uBAAuB,QAAQ;AACxC,SAASC,oBAAoB,QAAQ;AACrC,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,sBAAsB,QAAQ;AACvC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,sBAAsB,QAAQ;AACvC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,kBAAkB,QAAQ;AACnC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,mBAAmB,QAAQ;AAEpC,OAAO,MAAMC,qBAAA,GAA0D;EACrE,GAAGL,sBAAsB;EACzB,GAAGG,iBAAiB;EACpB,GAAGN,sBAAsB;EACzB,GAAGH,uBAAuB;EAC1B,GAAGQ,kBAAkB;EACrB,GAAGP,oBAAoB;EACvB,GAAGC,2BAA2B;EAC9B,GAAGG,iBAAiB;EACpB,GAAGD,iBAAA,CAAkB,CAAC,EAAE;EACxB,GAAGM,mBAAmB;EACtB,GAAGH;AACL","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import type { SerializedLexicalNode } from 'lexical';
2
- import type { DefaultNodeTypes, SerializedBlockNode, SerializedInlineBlockNode } from '../../../../nodeTypes.js';
2
+ import type { DefaultNodeTypes, SerializedBlockNode, SerializedInlineBlockNode } from '../../../../types/nodeTypes.js';
3
3
  import type { SerializedLexicalNodeWithParent } from '../shared/types.js';
4
4
  export type HTMLConverter<T extends {
5
5
  [key: string]: any;
@@ -66,6 +66,7 @@ export type HTMLConvertersFunction<T extends {
66
66
  type?: string;
67
67
  } = DefaultNodeTypes | SerializedBlockNode<{
68
68
  blockName?: null | string;
69
+ blockType: string;
69
70
  }> | SerializedInlineBlockNode<{
70
71
  blockName?: null | string;
71
72
  blockType: string;
@@ -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,CA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C1E,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,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,gBAAgB,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<\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; blockType: string }>\n | SerializedInlineBlockNode<{ blockName?: null | string; blockType: string }>,\n> = (args: { defaultConverters: HTMLConverters<DefaultNodeTypes> }) => HTMLConverters<T>\n"],"mappings":"AA4EA","ignoreList":[]}
@@ -1,12 +1,14 @@
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
13
  defaultConverters: JSXConverters<DefaultNodeTypes>;
12
14
  }) => JSXConverters<T>;
@@ -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,y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R,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,CAkCzC"}
@@ -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","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<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,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',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AAKI,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"}