@payloadcms/richtext-lexical 3.68.0-internal-debug.185cc5f → 3.68.0-internal-debug.591ab42

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 (280) hide show
  1. package/dist/cell/rscEntry.js +13 -5
  2. package/dist/cell/rscEntry.js.map +1 -1
  3. package/dist/features/blocks/client/component/BlockContent.js +29 -9
  4. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  5. package/dist/features/blocks/client/component/components/BlockCollapsible.js +7 -3
  6. package/dist/features/blocks/client/component/components/BlockCollapsible.js.map +1 -1
  7. package/dist/features/blocks/client/component/components/BlockEditButton.js +6 -2
  8. package/dist/features/blocks/client/component/components/BlockEditButton.js.map +1 -1
  9. package/dist/features/blocks/client/component/components/BlockRemoveButton.js +6 -2
  10. package/dist/features/blocks/client/component/components/BlockRemoveButton.js.map +1 -1
  11. package/dist/features/blocks/client/component/index.js +123 -43
  12. package/dist/features/blocks/client/component/index.js.map +1 -1
  13. package/dist/features/blocks/client/component/index.scss +188 -0
  14. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js +7 -3
  15. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js.map +1 -1
  16. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js +6 -2
  17. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js.map +1 -1
  18. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js +6 -2
  19. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js.map +1 -1
  20. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js +6 -2
  21. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js.map +1 -1
  22. package/dist/features/blocks/client/componentInline/index.js +117 -37
  23. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  24. package/dist/features/blocks/client/componentInline/index.scss +90 -0
  25. package/dist/features/blocks/client/getBlockImageComponent.js +7 -3
  26. package/dist/features/blocks/client/getBlockImageComponent.js.map +1 -1
  27. package/dist/features/blocks/client/nodes/BlocksNode.js +7 -3
  28. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  29. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +7 -3
  30. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  31. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +87 -27
  32. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  33. package/dist/features/blocks/premade/CodeBlock/Component/Code.js +7 -3
  34. package/dist/features/blocks/premade/CodeBlock/Component/Code.js.map +1 -1
  35. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +12 -4
  36. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  37. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.scss +6 -0
  38. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +18 -6
  39. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  40. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.scss +29 -0
  41. package/dist/features/blocks/premade/CodeBlock/Component/index.scss +97 -0
  42. package/dist/features/converters/lexicalToJSX/Component/index.js +9 -5
  43. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  44. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js +7 -3
  45. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  46. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +7 -3
  47. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  48. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js +6 -2
  49. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  50. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js +6 -2
  51. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  52. package/dist/features/converters/lexicalToJSX/converter/converters/link.js +13 -5
  53. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  54. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +38 -14
  55. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  56. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js +18 -6
  57. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  58. package/dist/features/converters/lexicalToJSX/converter/converters/table.js +31 -11
  59. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  60. package/dist/features/converters/lexicalToJSX/converter/converters/text.js +43 -15
  61. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  62. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +31 -11
  63. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  64. package/dist/features/converters/lexicalToJSX/converter/index.js +8 -4
  65. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  66. package/dist/features/debug/jsxConverter/client/plugin/index.js +13 -5
  67. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  68. package/dist/features/debug/jsxConverter/client/plugin/style.scss +12 -0
  69. package/dist/features/debug/testRecorder/client/plugin/index.js +61 -21
  70. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  71. package/dist/features/debug/testRecorder/client/plugin/index.scss +53 -0
  72. package/dist/features/debug/treeView/client/plugin/index.js +7 -3
  73. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  74. package/dist/features/debug/treeView/client/plugin/index.scss +80 -0
  75. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +224 -72
  76. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  77. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.scss +87 -0
  78. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +31 -11
  79. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  80. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.scss +11 -0
  81. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +21 -9
  82. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  83. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +25 -9
  84. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
  85. package/dist/features/experimental_table/client/plugins/TablePlugin/index.scss +233 -0
  86. package/dist/features/horizontalRule/client/plugin/index.scss +23 -0
  87. package/dist/features/indent/client/IndentPlugin.js +6 -2
  88. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  89. package/dist/features/link/client/plugins/clickableLink/index.js +6 -2
  90. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -1
  91. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +76 -24
  92. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  93. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +7 -3
  94. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  95. package/dist/features/link/client/plugins/floatingLinkEditor/index.scss +92 -0
  96. package/dist/features/lists/checklist/client/plugin/index.js +6 -2
  97. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -1
  98. package/dist/features/lists/plugin/index.js +6 -2
  99. package/dist/features/lists/plugin/index.js.map +1 -1
  100. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +13 -5
  101. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  102. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +7 -3
  103. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  104. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +16 -0
  105. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +13 -5
  106. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  107. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +7 -3
  108. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  109. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +16 -0
  110. package/dist/features/relationship/client/components/RelationshipComponent.js +55 -19
  111. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  112. package/dist/features/relationship/client/components/index.scss +95 -0
  113. package/dist/features/relationship/client/drawer/index.js +18 -6
  114. package/dist/features/relationship/client/drawer/index.js.map +1 -1
  115. package/dist/features/relationship/client/nodes/RelationshipNode.js +7 -3
  116. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  117. package/dist/features/relationship/client/plugins/index.js +7 -3
  118. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  119. package/dist/features/textState/feature.client.js +18 -6
  120. package/dist/features/textState/feature.client.js.map +1 -1
  121. package/dist/features/toolbars/fixed/client/Toolbar/index.js +71 -23
  122. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  123. package/dist/features/toolbars/fixed/client/Toolbar/index.scss +113 -0
  124. package/dist/features/toolbars/inline/client/Toolbar/index.js +71 -23
  125. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  126. package/dist/features/toolbars/inline/client/Toolbar/index.scss +58 -0
  127. package/dist/features/toolbars/shared/ToolbarButton/index.js +7 -3
  128. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  129. package/dist/features/toolbars/shared/ToolbarButton/index.scss +46 -0
  130. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +60 -20
  131. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  132. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +36 -12
  133. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  134. package/dist/features/toolbars/shared/ToolbarDropdown/index.scss +129 -0
  135. package/dist/features/upload/client/component/index.js +91 -31
  136. package/dist/features/upload/client/component/index.js.map +1 -1
  137. package/dist/features/upload/client/component/index.scss +191 -0
  138. package/dist/features/upload/client/component/pending/index.js +13 -5
  139. package/dist/features/upload/client/component/pending/index.js.map +1 -1
  140. package/dist/features/upload/client/drawer/index.js +18 -6
  141. package/dist/features/upload/client/drawer/index.js.map +1 -1
  142. package/dist/features/upload/client/nodes/UploadNode.js +12 -4
  143. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  144. package/dist/features/upload/client/plugin/index.js +7 -3
  145. package/dist/features/upload/client/plugin/index.js.map +1 -1
  146. package/dist/field/Diff/converters/listitem/index.js +36 -12
  147. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  148. package/dist/field/Diff/converters/listitem/index.scss +47 -0
  149. package/dist/field/Diff/converters/relationship/index.js +36 -12
  150. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  151. package/dist/field/Diff/converters/relationship/index.scss +73 -0
  152. package/dist/field/Diff/converters/unknown/index.js +30 -10
  153. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  154. package/dist/field/Diff/converters/unknown/index.scss +40 -0
  155. package/dist/field/Diff/converters/upload/index.js +59 -19
  156. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  157. package/dist/field/Diff/converters/upload/index.scss +115 -0
  158. package/dist/field/Diff/index.js +7 -3
  159. package/dist/field/Diff/index.js.map +1 -1
  160. package/dist/field/Diff/index.scss +102 -0
  161. package/dist/field/Field.js +79 -27
  162. package/dist/field/Field.js.map +1 -1
  163. package/dist/field/RenderLexical/index.js +36 -12
  164. package/dist/field/RenderLexical/index.js.map +1 -1
  165. package/dist/field/index.js +19 -7
  166. package/dist/field/index.js.map +1 -1
  167. package/dist/field/index.scss +41 -0
  168. package/dist/field/rscEntry.js +7 -3
  169. package/dist/field/rscEntry.js.map +1 -1
  170. package/dist/lexical/EditorPlugin.js +13 -5
  171. package/dist/lexical/EditorPlugin.js.map +1 -1
  172. package/dist/lexical/LexicalEditor.js +162 -50
  173. package/dist/lexical/LexicalEditor.js.map +1 -1
  174. package/dist/lexical/LexicalEditor.scss +54 -0
  175. package/dist/lexical/LexicalProvider.js +49 -17
  176. package/dist/lexical/LexicalProvider.js.map +1 -1
  177. package/dist/lexical/config/client/EditorConfigProvider.js +7 -3
  178. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  179. package/dist/lexical/plugins/DecoratorPlugin/index.scss +13 -0
  180. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +19 -7
  181. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  182. package/dist/lexical/plugins/InsertParagraphAtEnd/index.scss +54 -0
  183. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +7 -3
  184. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
  185. package/dist/lexical/plugins/SlashMenu/index.js +48 -16
  186. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  187. package/dist/lexical/plugins/SlashMenu/index.scss +68 -0
  188. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +19 -7
  189. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  190. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +35 -0
  191. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +31 -11
  192. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  193. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.scss +80 -0
  194. package/dist/lexical/theme/EditorTheme.scss +357 -0
  195. package/dist/lexical/ui/ContentEditable.js +13 -5
  196. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  197. package/dist/lexical/ui/ContentEditable.scss +105 -0
  198. package/dist/lexical/ui/icons/AI/index.js +37 -13
  199. package/dist/lexical/ui/icons/AI/index.js.map +1 -1
  200. package/dist/lexical/ui/icons/Add/index.js +19 -7
  201. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  202. package/dist/lexical/ui/icons/AlignCenter/index.js +25 -9
  203. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  204. package/dist/lexical/ui/icons/AlignJustify/index.js +25 -9
  205. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  206. package/dist/lexical/ui/icons/AlignLeft/index.js +25 -9
  207. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  208. package/dist/lexical/ui/icons/AlignRight/index.js +25 -9
  209. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  210. package/dist/lexical/ui/icons/Block/index.js +25 -9
  211. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  212. package/dist/lexical/ui/icons/Blockquote/index.js +13 -5
  213. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  214. package/dist/lexical/ui/icons/Bold/index.js +13 -5
  215. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  216. package/dist/lexical/ui/icons/Checklist/index.js +19 -7
  217. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  218. package/dist/lexical/ui/icons/Code/index.js +19 -7
  219. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  220. package/dist/lexical/ui/icons/CodeBlock/index.js +13 -5
  221. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  222. package/dist/lexical/ui/icons/Collapse/index.js +13 -5
  223. package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
  224. package/dist/lexical/ui/icons/H1/index.js +13 -5
  225. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  226. package/dist/lexical/ui/icons/H2/index.js +13 -5
  227. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  228. package/dist/lexical/ui/icons/H3/index.js +13 -5
  229. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  230. package/dist/lexical/ui/icons/H4/index.js +13 -5
  231. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  232. package/dist/lexical/ui/icons/H5/index.js +13 -5
  233. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  234. package/dist/lexical/ui/icons/H6/index.js +13 -5
  235. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  236. package/dist/lexical/ui/icons/HorizontalRule/index.js +13 -5
  237. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  238. package/dist/lexical/ui/icons/IndentDecrease/index.js +31 -11
  239. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  240. package/dist/lexical/ui/icons/IndentIncrease/index.js +31 -11
  241. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  242. package/dist/lexical/ui/icons/InlineBlocks/index.js +13 -5
  243. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
  244. package/dist/lexical/ui/icons/Italic/index.js +13 -5
  245. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  246. package/dist/lexical/ui/icons/Link/index.js +13 -5
  247. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  248. package/dist/lexical/ui/icons/Meatballs/index.js +25 -9
  249. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
  250. package/dist/lexical/ui/icons/OrderedList/index.js +37 -13
  251. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  252. package/dist/lexical/ui/icons/Relationship/index.js +37 -13
  253. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  254. package/dist/lexical/ui/icons/Strikethrough/index.js +19 -7
  255. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  256. package/dist/lexical/ui/icons/Subscript/index.js +13 -5
  257. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  258. package/dist/lexical/ui/icons/Superscript/index.js +13 -5
  259. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  260. package/dist/lexical/ui/icons/Table/index.js +13 -5
  261. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  262. package/dist/lexical/ui/icons/Text/index.js +13 -5
  263. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  264. package/dist/lexical/ui/icons/TextState/index.js +7 -3
  265. package/dist/lexical/ui/icons/TextState/index.js.map +1 -1
  266. package/dist/lexical/ui/icons/Underline/index.js +19 -7
  267. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  268. package/dist/lexical/ui/icons/UnorderedList/index.js +43 -15
  269. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  270. package/dist/lexical/ui/icons/Upload/index.js +25 -9
  271. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  272. package/dist/utilities/fieldsDrawer/Drawer.js +19 -7
  273. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  274. package/dist/utilities/fieldsDrawer/DrawerContent.js +19 -7
  275. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  276. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +7 -3
  277. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  278. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js +7 -3
  279. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js.map +1 -1
  280. package/package.json +9 -8
@@ -1,6 +1,10 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2
2
  export const HorizontalRuleJSXConverter = {
3
- horizontalrule: /*#__PURE__*/ _jsx("hr", {})
3
+ horizontalrule: /*#__PURE__*/ _jsxDEV("hr", {}, void 0, false, {
4
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/horizontalRule.tsx",
5
+ lineNumber: 4,
6
+ columnNumber: 19
7
+ }, this)
4
8
  };
5
9
 
6
10
  //# sourceMappingURL=horizontalRule.js.map
@@ -1 +1 @@
1
- {"version":3,"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"],"names":["HorizontalRuleJSXConverter","horizontalrule","hr"],"mappings":";AAEA,OAAO,MAAMA,6BAA0E;IACrFC,8BAAgB,KAACC;AACnB,EAAC"}
1
+ {"version":3,"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"],"names":["HorizontalRuleJSXConverter","horizontalrule","hr"],"mappings":";AAEA,OAAO,MAAMA,6BAA0E;IACrFC,8BAAgB,QAACC;;;;;AACnB,EAAC"}
@@ -1,6 +1,10 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2
2
  export const LinebreakJSXConverter = {
3
- linebreak: /*#__PURE__*/ _jsx("br", {})
3
+ linebreak: /*#__PURE__*/ _jsxDEV("br", {}, void 0, false, {
4
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/linebreak.tsx",
5
+ lineNumber: 5,
6
+ columnNumber: 14
7
+ }, this)
4
8
  };
5
9
 
6
10
  //# sourceMappingURL=linebreak.js.map
@@ -1 +1 @@
1
- {"version":3,"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"],"names":["LinebreakJSXConverter","linebreak","br"],"mappings":";AAGA,OAAO,MAAMA,wBAAgE;IAC3EC,yBAAW,KAACC;AACd,EAAC"}
1
+ {"version":3,"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"],"names":["LinebreakJSXConverter","linebreak","br"],"mappings":";AAGA,OAAO,MAAMA,wBAAgE;IAC3EC,yBAAW,QAACC;;;;;AACd,EAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2
2
  export const LinkJSXConverter = ({ internalDocToHref })=>({
3
3
  autolink: ({ node, nodesToJSX })=>{
4
4
  const children = nodesToJSX({
@@ -6,12 +6,16 @@ export const LinkJSXConverter = ({ internalDocToHref })=>({
6
6
  });
7
7
  const rel = node.fields.newTab ? 'noopener noreferrer' : undefined;
8
8
  const target = node.fields.newTab ? '_blank' : undefined;
9
- return /*#__PURE__*/ _jsx("a", {
9
+ return /*#__PURE__*/ _jsxDEV("a", {
10
10
  href: node.fields.url,
11
11
  rel,
12
12
  target,
13
13
  children: children
14
- });
14
+ }, void 0, false, {
15
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/link.tsx",
16
+ lineNumber: 16,
17
+ columnNumber: 7
18
+ }, this);
15
19
  },
16
20
  link: ({ node, nodesToJSX })=>{
17
21
  const children = nodesToJSX({
@@ -31,12 +35,16 @@ export const LinkJSXConverter = ({ internalDocToHref })=>({
31
35
  }
32
36
  }
33
37
  // fallback
34
- return /*#__PURE__*/ _jsx("a", {
38
+ return /*#__PURE__*/ _jsxDEV("a", {
35
39
  href: href,
36
40
  rel,
37
41
  target,
38
42
  children: children
39
- });
43
+ }, void 0, false, {
44
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/link.tsx",
45
+ lineNumber: 42,
46
+ columnNumber: 7
47
+ }, this);
40
48
  }
41
49
  });
42
50
 
@@ -1 +1 @@
1
- {"version":3,"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"],"names":["LinkJSXConverter","internalDocToHref","autolink","node","nodesToJSX","children","nodes","rel","fields","newTab","undefined","target","a","href","url","link","linkType","linkNode","console","error"],"mappings":";AAGA,OAAO,MAAMA,mBAEsD,CAAC,EAAEC,iBAAiB,EAAE,GAAM,CAAA;QAC7FC,UAAU,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;YAC7B,MAAMC,WAAWD,WAAW;gBAC1BE,OAAOH,KAAKE,QAAQ;YACtB;YAEA,MAAME,MAA0BJ,KAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC;YAC7E,MAAMC,SAA6BR,KAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC;YAEnE,qBACE,KAACE;gBAAEC,MAAMV,KAAKK,MAAM,CAACM,GAAG;gBAAQP;gBAAKI;0BAClCN;;QAGP;QACAU,MAAM,CAAC,EAAEZ,IAAI,EAAEC,UAAU,EAAE;YACzB,MAAMC,WAAWD,WAAW;gBAC1BE,OAAOH,KAAKE,QAAQ;YACtB;YAEA,MAAME,MAA0BJ,KAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC;YAC7E,MAAMC,SAA6BR,KAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC;YAEnE,IAAIG,OAAeV,KAAKK,MAAM,CAACM,GAAG,IAAI;YACtC,IAAIX,KAAKK,MAAM,CAACQ,QAAQ,KAAK,YAAY;gBACvC,IAAIf,mBAAmB;oBACrBY,OAAOZ,kBAAkB;wBAAEgB,UAAUd;oBAAK;gBAC5C,OAAO;oBACLe,QAAQC,KAAK,CACX;oBAEFN,OAAO;gBACT;YACF;YAFe,WAAW;YAI1B,qBACE,KAACD;gBAAEC,MAAMA;gBAAYN;gBAAKI;0BACvBN;;QAGP;IACF,CAAA,EAAE"}
1
+ {"version":3,"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"],"names":["LinkJSXConverter","internalDocToHref","autolink","node","nodesToJSX","children","nodes","rel","fields","newTab","undefined","target","a","href","url","link","linkType","linkNode","console","error"],"mappings":";AAGA,OAAO,MAAMA,mBAEsD,CAAC,EAAEC,iBAAiB,EAAE,GAAM,CAAA;QAC7FC,UAAU,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;YAC7B,MAAMC,WAAWD,WAAW;gBAC1BE,OAAOH,KAAKE,QAAQ;YACtB;YAEA,MAAME,MAA0BJ,KAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC;YAC7E,MAAMC,SAA6BR,KAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC;YAEnE,qBACE,QAACE;gBAAEC,MAAMV,KAAKK,MAAM,CAACM,GAAG;gBAAQP;gBAAKI;0BAClCN;;;;;;QAGP;QACAU,MAAM,CAAC,EAAEZ,IAAI,EAAEC,UAAU,EAAE;YACzB,MAAMC,WAAWD,WAAW;gBAC1BE,OAAOH,KAAKE,QAAQ;YACtB;YAEA,MAAME,MAA0BJ,KAAKK,MAAM,CAACC,MAAM,GAAG,wBAAwBC;YAC7E,MAAMC,SAA6BR,KAAKK,MAAM,CAACC,MAAM,GAAG,WAAWC;YAEnE,IAAIG,OAAeV,KAAKK,MAAM,CAACM,GAAG,IAAI;YACtC,IAAIX,KAAKK,MAAM,CAACQ,QAAQ,KAAK,YAAY;gBACvC,IAAIf,mBAAmB;oBACrBY,OAAOZ,kBAAkB;wBAAEgB,UAAUd;oBAAK;gBAC5C,OAAO;oBACLe,QAAQC,KAAK,CACX;oBAEFN,OAAO;gBACT;YACF;YAFe,WAAW;YAI1B,qBACE,QAACD;gBAAEC,MAAMA;gBAAYN;gBAAKI;0BACvBN;;;;;;QAGP;IACF,CAAA,EAAE"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
2
2
  import { v4 as uuidv4 } from 'uuid';
3
3
  export const ListJSXConverter = {
4
4
  list: ({ node, nodesToJSX })=>{
@@ -6,10 +6,14 @@ export const ListJSXConverter = {
6
6
  nodes: node.children
7
7
  });
8
8
  const NodeTag = node.tag;
9
- return /*#__PURE__*/ _jsx(NodeTag, {
9
+ return /*#__PURE__*/ _jsxDEV(NodeTag, {
10
10
  className: `list-${node?.listType}`,
11
11
  children: children
12
- });
12
+ }, void 0, false, {
13
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/list.tsx",
14
+ lineNumber: 14,
15
+ columnNumber: 12
16
+ }, this);
13
17
  },
14
18
  listitem: ({ node, nodesToJSX, parent })=>{
15
19
  const hasSubLists = node.children.some((child)=>child.type === 'list');
@@ -18,7 +22,7 @@ export const ListJSXConverter = {
18
22
  });
19
23
  if ('listType' in parent && parent?.listType === 'check') {
20
24
  const uuid = uuidv4();
21
- return /*#__PURE__*/ _jsx("li", {
25
+ return /*#__PURE__*/ _jsxDEV("li", {
22
26
  "aria-checked": node.checked ? 'true' : 'false',
23
27
  className: `list-item-checkbox${node.checked ? ' list-item-checkbox-checked' : ' list-item-checkbox-unchecked'}${hasSubLists ? ' nestedListItem' : ''}`,
24
28
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
@@ -28,31 +32,51 @@ export const ListJSXConverter = {
28
32
  },
29
33
  tabIndex: -1,
30
34
  value: node?.value,
31
- children: hasSubLists ? children : /*#__PURE__*/ _jsxs(_Fragment, {
35
+ children: hasSubLists ? children : /*#__PURE__*/ _jsxDEV(_Fragment, {
32
36
  children: [
33
- /*#__PURE__*/ _jsx("input", {
37
+ /*#__PURE__*/ _jsxDEV("input", {
34
38
  checked: node.checked,
35
39
  id: uuid,
36
40
  readOnly: true,
37
41
  type: "checkbox"
38
- }),
39
- /*#__PURE__*/ _jsx("label", {
42
+ }, void 0, false, {
43
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/list.tsx",
44
+ lineNumber: 40,
45
+ columnNumber: 15
46
+ }, this),
47
+ /*#__PURE__*/ _jsxDEV("label", {
40
48
  htmlFor: uuid,
41
49
  children: children
42
- }),
43
- /*#__PURE__*/ _jsx("br", {})
50
+ }, void 0, false, {
51
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/list.tsx",
52
+ lineNumber: 41,
53
+ columnNumber: 15
54
+ }, this),
55
+ /*#__PURE__*/ _jsxDEV("br", {}, void 0, false, {
56
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/list.tsx",
57
+ lineNumber: 42,
58
+ columnNumber: 15
59
+ }, this)
44
60
  ]
45
- })
46
- });
61
+ }, void 0, true)
62
+ }, void 0, false, {
63
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/list.tsx",
64
+ lineNumber: 27,
65
+ columnNumber: 9
66
+ }, this);
47
67
  } else {
48
- return /*#__PURE__*/ _jsx("li", {
68
+ return /*#__PURE__*/ _jsxDEV("li", {
49
69
  className: `${hasSubLists ? 'nestedListItem' : ''}`,
50
70
  style: hasSubLists ? {
51
71
  listStyleType: 'none'
52
72
  } : undefined,
53
73
  value: node?.value,
54
74
  children: children
55
- });
75
+ }, void 0, false, {
76
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/list.tsx",
77
+ lineNumber: 49,
78
+ columnNumber: 9
79
+ }, this);
56
80
  }
57
81
  }
58
82
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/list.tsx"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\n\nimport type { SerializedListItemNode, SerializedListNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ListJSXConverter: JSXConverters<SerializedListItemNode | SerializedListNode> = {\n list: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const NodeTag = node.tag\n\n return <NodeTag className={`list-${node?.listType}`}>{children}</NodeTag>\n },\n listitem: ({ node, nodesToJSX, parent }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if ('listType' in parent && parent?.listType === 'check') {\n const uuid = uuidv4()\n\n return (\n <li\n aria-checked={node.checked ? 'true' : 'false'}\n className={`list-item-checkbox${node.checked ? ' list-item-checkbox-checked' : ' list-item-checkbox-unchecked'}${hasSubLists ? ' nestedListItem' : ''}`}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"checkbox\"\n style={{ listStyleType: 'none' }}\n tabIndex={-1}\n value={node?.value}\n >\n {hasSubLists ? (\n children\n ) : (\n <>\n <input checked={node.checked} id={uuid} readOnly={true} type=\"checkbox\" />\n <label htmlFor={uuid}>{children}</label>\n <br />\n </>\n )}\n </li>\n )\n } else {\n return (\n <li\n className={`${hasSubLists ? 'nestedListItem' : ''}`}\n style={hasSubLists ? { listStyleType: 'none' } : undefined}\n value={node?.value}\n >\n {children}\n </li>\n )\n }\n },\n}\n"],"names":["v4","uuidv4","ListJSXConverter","list","node","nodesToJSX","children","nodes","NodeTag","tag","className","listType","listitem","parent","hasSubLists","some","child","type","uuid","li","aria-checked","checked","role","style","listStyleType","tabIndex","value","input","id","readOnly","label","htmlFor","br","undefined"],"mappings":";AAAA,SAASA,MAAMC,MAAM,QAAQ,OAAM;AAKnC,OAAO,MAAMC,mBAA+E;IAC1FC,MAAM,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;QACzB,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,MAAME,UAAUJ,KAAKK,GAAG;QAExB,qBAAO,KAACD;YAAQE,WAAW,CAAC,KAAK,EAAEN,MAAMO,UAAU;sBAAGL;;IACxD;IACAM,UAAU,CAAC,EAAER,IAAI,EAAEC,UAAU,EAAEQ,MAAM,EAAE;QACrC,MAAMC,cAAcV,KAAKE,QAAQ,CAACS,IAAI,CAAC,CAACC,QAAUA,MAAMC,IAAI,KAAK;QAEjE,MAAMX,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,IAAI,cAAcO,UAAUA,QAAQF,aAAa,SAAS;YACxD,MAAMO,OAAOjB;YAEb,qBACE,KAACkB;gBACCC,gBAAchB,KAAKiB,OAAO,GAAG,SAAS;gBACtCX,WAAW,CAAC,kBAAkB,EAAEN,KAAKiB,OAAO,GAAG,gCAAgC,kCAAkCP,cAAc,oBAAoB,IAAI;gBACvJ,kFAAkF;gBAClFQ,MAAK;gBACLC,OAAO;oBAAEC,eAAe;gBAAO;gBAC/BC,UAAU,CAAC;gBACXC,OAAOtB,MAAMsB;0BAEZZ,cACCR,yBAEA;;sCACE,KAACqB;4BAAMN,SAASjB,KAAKiB,OAAO;4BAAEO,IAAIV;4BAAMW,UAAU;4BAAMZ,MAAK;;sCAC7D,KAACa;4BAAMC,SAASb;sCAAOZ;;sCACvB,KAAC0B;;;;QAKX,OAAO;YACL,qBACE,KAACb;gBACCT,WAAW,GAAGI,cAAc,mBAAmB,IAAI;gBACnDS,OAAOT,cAAc;oBAAEU,eAAe;gBAAO,IAAIS;gBACjDP,OAAOtB,MAAMsB;0BAEZpB;;QAGP;IACF;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/list.tsx"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\n\nimport type { SerializedListItemNode, SerializedListNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ListJSXConverter: JSXConverters<SerializedListItemNode | SerializedListNode> = {\n list: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const NodeTag = node.tag\n\n return <NodeTag className={`list-${node?.listType}`}>{children}</NodeTag>\n },\n listitem: ({ node, nodesToJSX, parent }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if ('listType' in parent && parent?.listType === 'check') {\n const uuid = uuidv4()\n\n return (\n <li\n aria-checked={node.checked ? 'true' : 'false'}\n className={`list-item-checkbox${node.checked ? ' list-item-checkbox-checked' : ' list-item-checkbox-unchecked'}${hasSubLists ? ' nestedListItem' : ''}`}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"checkbox\"\n style={{ listStyleType: 'none' }}\n tabIndex={-1}\n value={node?.value}\n >\n {hasSubLists ? (\n children\n ) : (\n <>\n <input checked={node.checked} id={uuid} readOnly={true} type=\"checkbox\" />\n <label htmlFor={uuid}>{children}</label>\n <br />\n </>\n )}\n </li>\n )\n } else {\n return (\n <li\n className={`${hasSubLists ? 'nestedListItem' : ''}`}\n style={hasSubLists ? { listStyleType: 'none' } : undefined}\n value={node?.value}\n >\n {children}\n </li>\n )\n }\n },\n}\n"],"names":["v4","uuidv4","ListJSXConverter","list","node","nodesToJSX","children","nodes","NodeTag","tag","className","listType","listitem","parent","hasSubLists","some","child","type","uuid","li","aria-checked","checked","role","style","listStyleType","tabIndex","value","input","id","readOnly","label","htmlFor","br","undefined"],"mappings":";AAAA,SAASA,MAAMC,MAAM,QAAQ,OAAM;AAKnC,OAAO,MAAMC,mBAA+E;IAC1FC,MAAM,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;QACzB,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,MAAME,UAAUJ,KAAKK,GAAG;QAExB,qBAAO,QAACD;YAAQE,WAAW,CAAC,KAAK,EAAEN,MAAMO,UAAU;sBAAGL;;;;;;IACxD;IACAM,UAAU,CAAC,EAAER,IAAI,EAAEC,UAAU,EAAEQ,MAAM,EAAE;QACrC,MAAMC,cAAcV,KAAKE,QAAQ,CAACS,IAAI,CAAC,CAACC,QAAUA,MAAMC,IAAI,KAAK;QAEjE,MAAMX,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,IAAI,cAAcO,UAAUA,QAAQF,aAAa,SAAS;YACxD,MAAMO,OAAOjB;YAEb,qBACE,QAACkB;gBACCC,gBAAchB,KAAKiB,OAAO,GAAG,SAAS;gBACtCX,WAAW,CAAC,kBAAkB,EAAEN,KAAKiB,OAAO,GAAG,gCAAgC,kCAAkCP,cAAc,oBAAoB,IAAI;gBACvJ,kFAAkF;gBAClFQ,MAAK;gBACLC,OAAO;oBAAEC,eAAe;gBAAO;gBAC/BC,UAAU,CAAC;gBACXC,OAAOtB,MAAMsB;0BAEZZ,cACCR,yBAEA;;sCACE,QAACqB;4BAAMN,SAASjB,KAAKiB,OAAO;4BAAEO,IAAIV;4BAAMW,UAAU;4BAAMZ,MAAK;;;;;;sCAC7D,QAACa;4BAAMC,SAASb;sCAAOZ;;;;;;sCACvB,QAAC0B;;;;;;;;;;;;QAKX,OAAO;YACL,qBACE,QAACb;gBACCT,WAAW,GAAGI,cAAc,mBAAmB,IAAI;gBACnDS,OAAOT,cAAc;oBAAEU,eAAe;gBAAO,IAAIS;gBACjDP,OAAOtB,MAAMsB;0BAEZpB;;;;;;QAGP;IACF;AACF,EAAC"}
@@ -1,17 +1,29 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2
2
  export const ParagraphJSXConverter = {
3
3
  paragraph: ({ node, nodesToJSX })=>{
4
4
  const children = nodesToJSX({
5
5
  nodes: node.children
6
6
  });
7
7
  if (!children?.length) {
8
- return /*#__PURE__*/ _jsx("p", {
9
- children: /*#__PURE__*/ _jsx("br", {})
10
- });
8
+ return /*#__PURE__*/ _jsxDEV("p", {
9
+ children: /*#__PURE__*/ _jsxDEV("br", {}, void 0, false, {
10
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx",
11
+ lineNumber: 13,
12
+ columnNumber: 11
13
+ }, this)
14
+ }, void 0, false, {
15
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx",
16
+ lineNumber: 12,
17
+ columnNumber: 9
18
+ }, this);
11
19
  }
12
- return /*#__PURE__*/ _jsx("p", {
20
+ return /*#__PURE__*/ _jsxDEV("p", {
13
21
  children: children
14
- });
22
+ }, void 0, false, {
23
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx",
24
+ lineNumber: 18,
25
+ columnNumber: 12
26
+ }, this);
15
27
  }
16
28
  };
17
29
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx"],"sourcesContent":["import type { SerializedParagraphNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ParagraphJSXConverter: JSXConverters<SerializedParagraphNode> = {\n paragraph: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if (!children?.length) {\n return (\n <p>\n <br />\n </p>\n )\n }\n\n return <p>{children}</p>\n },\n}\n"],"names":["ParagraphJSXConverter","paragraph","node","nodesToJSX","children","nodes","length","p","br"],"mappings":";AAGA,OAAO,MAAMA,wBAAgE;IAC3EC,WAAW,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;QAC9B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,IAAI,CAACA,UAAUE,QAAQ;YACrB,qBACE,KAACC;0BACC,cAAA,KAACC;;QAGP;QAEA,qBAAO,KAACD;sBAAGH;;IACb;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/paragraph.tsx"],"sourcesContent":["import type { SerializedParagraphNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const ParagraphJSXConverter: JSXConverters<SerializedParagraphNode> = {\n paragraph: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n if (!children?.length) {\n return (\n <p>\n <br />\n </p>\n )\n }\n\n return <p>{children}</p>\n },\n}\n"],"names":["ParagraphJSXConverter","paragraph","node","nodesToJSX","children","nodes","length","p","br"],"mappings":";AAGA,OAAO,MAAMA,wBAAgE;IAC3EC,WAAW,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;QAC9B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,IAAI,CAACA,UAAUE,QAAQ;YACrB,qBACE,QAACC;0BACC,cAAA,QAACC;;;;;;;;;;QAGP;QAEA,qBAAO,QAACD;sBAAGH;;;;;;IACb;AACF,EAAC"}
@@ -1,21 +1,33 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2
2
  export const TableJSXConverter = {
3
3
  table: ({ node, nodesToJSX })=>{
4
4
  const children = nodesToJSX({
5
5
  nodes: node.children
6
6
  });
7
- return /*#__PURE__*/ _jsx("div", {
7
+ return /*#__PURE__*/ _jsxDEV("div", {
8
8
  className: "lexical-table-container",
9
- children: /*#__PURE__*/ _jsx("table", {
9
+ children: /*#__PURE__*/ _jsxDEV("table", {
10
10
  className: "lexical-table",
11
11
  style: {
12
12
  borderCollapse: 'collapse'
13
13
  },
14
- children: /*#__PURE__*/ _jsx("tbody", {
14
+ children: /*#__PURE__*/ _jsxDEV("tbody", {
15
15
  children: children
16
- })
17
- })
18
- });
16
+ }, void 0, false, {
17
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/table.tsx",
18
+ lineNumber: 18,
19
+ columnNumber: 11
20
+ }, this)
21
+ }, void 0, false, {
22
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/table.tsx",
23
+ lineNumber: 17,
24
+ columnNumber: 9
25
+ }, this)
26
+ }, void 0, false, {
27
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/table.tsx",
28
+ lineNumber: 16,
29
+ columnNumber: 7
30
+ }, this);
19
31
  },
20
32
  tablecell: ({ node, nodesToJSX })=>{
21
33
  const children = nodesToJSX({
@@ -33,23 +45,31 @@ export const TableJSXConverter = {
33
45
  // Note: JSX does not support setting attributes directly as strings, so you must convert the colSpan and rowSpan to numbers
34
46
  const colSpan = node.colSpan && node.colSpan > 1 ? node.colSpan : undefined;
35
47
  const rowSpan = node.rowSpan && node.rowSpan > 1 ? node.rowSpan : undefined;
36
- return /*#__PURE__*/ _jsx(TagName, {
48
+ return /*#__PURE__*/ _jsxDEV(TagName, {
37
49
  className: `lexical-table-cell ${headerStateClass}`,
38
50
  colSpan: colSpan,
39
51
  // colSpan and rowSpan will only be added if they are not null
40
52
  rowSpan: rowSpan,
41
53
  style: style,
42
54
  children: children
43
- });
55
+ }, void 0, false, {
56
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/table.tsx",
57
+ lineNumber: 41,
58
+ columnNumber: 7
59
+ }, this);
44
60
  },
45
61
  tablerow: ({ node, nodesToJSX })=>{
46
62
  const children = nodesToJSX({
47
63
  nodes: node.children
48
64
  });
49
- return /*#__PURE__*/ _jsx("tr", {
65
+ return /*#__PURE__*/ _jsxDEV("tr", {
50
66
  className: "lexical-table-row",
51
67
  children: children
52
- });
68
+ }, void 0, false, {
69
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/table.tsx",
70
+ lineNumber: 55,
71
+ columnNumber: 12
72
+ }, this);
53
73
  }
54
74
  };
55
75
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/table.tsx"],"sourcesContent":["import type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const TableJSXConverter: JSXConverters<\n SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode\n> = {\n table: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return (\n <div className=\"lexical-table-container\">\n <table className=\"lexical-table\" style={{ borderCollapse: 'collapse' }}>\n <tbody>{children}</tbody>\n </table>\n </div>\n )\n },\n tablecell: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const TagName = node.headerState > 0 ? 'th' : 'td' // Use capital letter to denote a component\n const headerStateClass = `lexical-table-cell-header-${node.headerState}`\n const style = {\n backgroundColor: node.backgroundColor || undefined, // Use undefined to avoid setting the style property if not needed\n border: '1px solid #ccc',\n padding: '8px',\n }\n\n // Note: JSX does not support setting attributes directly as strings, so you must convert the colSpan and rowSpan to numbers\n const colSpan = node.colSpan && node.colSpan > 1 ? node.colSpan : undefined\n const rowSpan = node.rowSpan && node.rowSpan > 1 ? node.rowSpan : undefined\n\n return (\n <TagName\n className={`lexical-table-cell ${headerStateClass}`}\n colSpan={colSpan} // colSpan and rowSpan will only be added if they are not null\n rowSpan={rowSpan}\n style={style}\n >\n {children}\n </TagName>\n )\n },\n tablerow: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return <tr className=\"lexical-table-row\">{children}</tr>\n },\n}\n"],"names":["TableJSXConverter","table","node","nodesToJSX","children","nodes","div","className","style","borderCollapse","tbody","tablecell","TagName","headerState","headerStateClass","backgroundColor","undefined","border","padding","colSpan","rowSpan","tablerow","tr"],"mappings":";AAOA,OAAO,MAAMA,oBAET;IACFC,OAAO,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;QAC1B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QACA,qBACE,KAACE;YAAIC,WAAU;sBACb,cAAA,KAACN;gBAAMM,WAAU;gBAAgBC,OAAO;oBAAEC,gBAAgB;gBAAW;0BACnE,cAAA,KAACC;8BAAON;;;;IAIhB;IACAO,WAAW,CAAC,EAAET,IAAI,EAAEC,UAAU,EAAE;QAC9B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,MAAMQ,UAAUV,KAAKW,WAAW,GAAG,IAAI,OAAO;QAAK,2CAA2C;QAC9F,MAAMC,mBAAmB,CAAC,0BAA0B,EAAEZ,KAAKW,WAAW,EAAE;QACxE,MAAML,QAAQ;YACZO,iBAAiBb,KAAKa,eAAe,IAAIC;YAAW,kEAAkE;YACtHC,QAAQ;YACRC,SAAS;QACX;QAEA,4HAA4H;QAC5H,MAAMC,UAAUjB,KAAKiB,OAAO,IAAIjB,KAAKiB,OAAO,GAAG,IAAIjB,KAAKiB,OAAO,GAAGH;QAClE,MAAMI,UAAUlB,KAAKkB,OAAO,IAAIlB,KAAKkB,OAAO,GAAG,IAAIlB,KAAKkB,OAAO,GAAGJ;QAElE,qBACE,KAACJ;YACCL,WAAW,CAAC,mBAAmB,EAAEO,kBAAkB;YACnDK,SAASA;YAAS,8DAA8D;YAChFC,SAASA;YACTZ,OAAOA;sBAENJ;;IAGP;IACAiB,UAAU,CAAC,EAAEnB,IAAI,EAAEC,UAAU,EAAE;QAC7B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QACA,qBAAO,KAACkB;YAAGf,WAAU;sBAAqBH;;IAC5C;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/table.tsx"],"sourcesContent":["import type {\n SerializedTableCellNode,\n SerializedTableNode,\n SerializedTableRowNode,\n} from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const TableJSXConverter: JSXConverters<\n SerializedTableCellNode | SerializedTableNode | SerializedTableRowNode\n> = {\n table: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return (\n <div className=\"lexical-table-container\">\n <table className=\"lexical-table\" style={{ borderCollapse: 'collapse' }}>\n <tbody>{children}</tbody>\n </table>\n </div>\n )\n },\n tablecell: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n\n const TagName = node.headerState > 0 ? 'th' : 'td' // Use capital letter to denote a component\n const headerStateClass = `lexical-table-cell-header-${node.headerState}`\n const style = {\n backgroundColor: node.backgroundColor || undefined, // Use undefined to avoid setting the style property if not needed\n border: '1px solid #ccc',\n padding: '8px',\n }\n\n // Note: JSX does not support setting attributes directly as strings, so you must convert the colSpan and rowSpan to numbers\n const colSpan = node.colSpan && node.colSpan > 1 ? node.colSpan : undefined\n const rowSpan = node.rowSpan && node.rowSpan > 1 ? node.rowSpan : undefined\n\n return (\n <TagName\n className={`lexical-table-cell ${headerStateClass}`}\n colSpan={colSpan} // colSpan and rowSpan will only be added if they are not null\n rowSpan={rowSpan}\n style={style}\n >\n {children}\n </TagName>\n )\n },\n tablerow: ({ node, nodesToJSX }) => {\n const children = nodesToJSX({\n nodes: node.children,\n })\n return <tr className=\"lexical-table-row\">{children}</tr>\n },\n}\n"],"names":["TableJSXConverter","table","node","nodesToJSX","children","nodes","div","className","style","borderCollapse","tbody","tablecell","TagName","headerState","headerStateClass","backgroundColor","undefined","border","padding","colSpan","rowSpan","tablerow","tr"],"mappings":";AAOA,OAAO,MAAMA,oBAET;IACFC,OAAO,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAE;QAC1B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QACA,qBACE,QAACE;YAAIC,WAAU;sBACb,cAAA,QAACN;gBAAMM,WAAU;gBAAgBC,OAAO;oBAAEC,gBAAgB;gBAAW;0BACnE,cAAA,QAACC;8BAAON;;;;;;;;;;;;;;;;IAIhB;IACAO,WAAW,CAAC,EAAET,IAAI,EAAEC,UAAU,EAAE;QAC9B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QAEA,MAAMQ,UAAUV,KAAKW,WAAW,GAAG,IAAI,OAAO;QAAK,2CAA2C;QAC9F,MAAMC,mBAAmB,CAAC,0BAA0B,EAAEZ,KAAKW,WAAW,EAAE;QACxE,MAAML,QAAQ;YACZO,iBAAiBb,KAAKa,eAAe,IAAIC;YAAW,kEAAkE;YACtHC,QAAQ;YACRC,SAAS;QACX;QAEA,4HAA4H;QAC5H,MAAMC,UAAUjB,KAAKiB,OAAO,IAAIjB,KAAKiB,OAAO,GAAG,IAAIjB,KAAKiB,OAAO,GAAGH;QAClE,MAAMI,UAAUlB,KAAKkB,OAAO,IAAIlB,KAAKkB,OAAO,GAAG,IAAIlB,KAAKkB,OAAO,GAAGJ;QAElE,qBACE,QAACJ;YACCL,WAAW,CAAC,mBAAmB,EAAEO,kBAAkB;YACnDK,SAASA;YAAS,8DAA8D;YAChFC,SAASA;YACTZ,OAAOA;sBAENJ;;;;;;IAGP;IACAiB,UAAU,CAAC,EAAEnB,IAAI,EAAEC,UAAU,EAAE;QAC7B,MAAMC,WAAWD,WAAW;YAC1BE,OAAOH,KAAKE,QAAQ;QACtB;QACA,qBAAO,QAACkB;YAAGf,WAAU;sBAAqBH;;;;;;IAC5C;AACF,EAAC"}
@@ -1,49 +1,77 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2
2
  import React from 'react';
3
3
  import { NodeFormat } from '../../../../../lexical/utils/nodeFormat.js';
4
4
  export const TextJSXConverter = {
5
5
  text: ({ node })=>{
6
6
  let text = node.text;
7
7
  if (node.format & NodeFormat.IS_BOLD) {
8
- text = /*#__PURE__*/ _jsx("strong", {
8
+ text = /*#__PURE__*/ _jsxDEV("strong", {
9
9
  children: text
10
- });
10
+ }, void 0, false, {
11
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/text.tsx",
12
+ lineNumber: 13,
13
+ columnNumber: 14
14
+ }, this);
11
15
  }
12
16
  if (node.format & NodeFormat.IS_ITALIC) {
13
- text = /*#__PURE__*/ _jsx("em", {
17
+ text = /*#__PURE__*/ _jsxDEV("em", {
14
18
  children: text
15
- });
19
+ }, void 0, false, {
20
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/text.tsx",
21
+ lineNumber: 16,
22
+ columnNumber: 14
23
+ }, this);
16
24
  }
17
25
  if (node.format & NodeFormat.IS_STRIKETHROUGH) {
18
- text = /*#__PURE__*/ _jsx("span", {
26
+ text = /*#__PURE__*/ _jsxDEV("span", {
19
27
  style: {
20
28
  textDecoration: 'line-through'
21
29
  },
22
30
  children: text
23
- });
31
+ }, void 0, false, {
32
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/text.tsx",
33
+ lineNumber: 19,
34
+ columnNumber: 14
35
+ }, this);
24
36
  }
25
37
  if (node.format & NodeFormat.IS_UNDERLINE) {
26
- text = /*#__PURE__*/ _jsx("span", {
38
+ text = /*#__PURE__*/ _jsxDEV("span", {
27
39
  style: {
28
40
  textDecoration: 'underline'
29
41
  },
30
42
  children: text
31
- });
43
+ }, void 0, false, {
44
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/text.tsx",
45
+ lineNumber: 22,
46
+ columnNumber: 14
47
+ }, this);
32
48
  }
33
49
  if (node.format & NodeFormat.IS_CODE) {
34
- text = /*#__PURE__*/ _jsx("code", {
50
+ text = /*#__PURE__*/ _jsxDEV("code", {
35
51
  children: text
36
- });
52
+ }, void 0, false, {
53
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/text.tsx",
54
+ lineNumber: 25,
55
+ columnNumber: 14
56
+ }, this);
37
57
  }
38
58
  if (node.format & NodeFormat.IS_SUBSCRIPT) {
39
- text = /*#__PURE__*/ _jsx("sub", {
59
+ text = /*#__PURE__*/ _jsxDEV("sub", {
40
60
  children: text
41
- });
61
+ }, void 0, false, {
62
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/text.tsx",
63
+ lineNumber: 28,
64
+ columnNumber: 14
65
+ }, this);
42
66
  }
43
67
  if (node.format & NodeFormat.IS_SUPERSCRIPT) {
44
- text = /*#__PURE__*/ _jsx("sup", {
68
+ text = /*#__PURE__*/ _jsxDEV("sup", {
45
69
  children: text
46
- });
70
+ }, void 0, false, {
71
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/text.tsx",
72
+ lineNumber: 31,
73
+ columnNumber: 14
74
+ }, this);
47
75
  }
48
76
  return text;
49
77
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/text.tsx"],"sourcesContent":["import React from 'react'\n\nimport type { SerializedTextNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nimport { NodeFormat } from '../../../../../lexical/utils/nodeFormat.js'\n\nexport const TextJSXConverter: JSXConverters<SerializedTextNode> = {\n text: ({ node }) => {\n let text: React.ReactNode = node.text\n\n if (node.format & NodeFormat.IS_BOLD) {\n text = <strong>{text}</strong>\n }\n if (node.format & NodeFormat.IS_ITALIC) {\n text = <em>{text}</em>\n }\n if (node.format & NodeFormat.IS_STRIKETHROUGH) {\n text = <span style={{ textDecoration: 'line-through' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_UNDERLINE) {\n text = <span style={{ textDecoration: 'underline' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_CODE) {\n text = <code>{text}</code>\n }\n if (node.format & NodeFormat.IS_SUBSCRIPT) {\n text = <sub>{text}</sub>\n }\n if (node.format & NodeFormat.IS_SUPERSCRIPT) {\n text = <sup>{text}</sup>\n }\n\n return text\n },\n}\n"],"names":["React","NodeFormat","TextJSXConverter","text","node","format","IS_BOLD","strong","IS_ITALIC","em","IS_STRIKETHROUGH","span","style","textDecoration","IS_UNDERLINE","IS_CODE","code","IS_SUBSCRIPT","sub","IS_SUPERSCRIPT","sup"],"mappings":";AAAA,OAAOA,WAAW,QAAO;AAKzB,SAASC,UAAU,QAAQ,6CAA4C;AAEvE,OAAO,MAAMC,mBAAsD;IACjEC,MAAM,CAAC,EAAEC,IAAI,EAAE;QACb,IAAID,OAAwBC,KAAKD,IAAI;QAErC,IAAIC,KAAKC,MAAM,GAAGJ,WAAWK,OAAO,EAAE;YACpCH,qBAAO,KAACI;0BAAQJ;;QAClB;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWO,SAAS,EAAE;YACtCL,qBAAO,KAACM;0BAAIN;;QACd;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWS,gBAAgB,EAAE;YAC7CP,qBAAO,KAACQ;gBAAKC,OAAO;oBAAEC,gBAAgB;gBAAe;0BAAIV;;QAC3D;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWa,YAAY,EAAE;YACzCX,qBAAO,KAACQ;gBAAKC,OAAO;oBAAEC,gBAAgB;gBAAY;0BAAIV;;QACxD;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWc,OAAO,EAAE;YACpCZ,qBAAO,KAACa;0BAAMb;;QAChB;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWgB,YAAY,EAAE;YACzCd,qBAAO,KAACe;0BAAKf;;QACf;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWkB,cAAc,EAAE;YAC3ChB,qBAAO,KAACiB;0BAAKjB;;QACf;QAEA,OAAOA;IACT;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/text.tsx"],"sourcesContent":["import React from 'react'\n\nimport type { SerializedTextNode } from '../../../../../nodeTypes.js'\nimport type { JSXConverters } from '../types.js'\n\nimport { NodeFormat } from '../../../../../lexical/utils/nodeFormat.js'\n\nexport const TextJSXConverter: JSXConverters<SerializedTextNode> = {\n text: ({ node }) => {\n let text: React.ReactNode = node.text\n\n if (node.format & NodeFormat.IS_BOLD) {\n text = <strong>{text}</strong>\n }\n if (node.format & NodeFormat.IS_ITALIC) {\n text = <em>{text}</em>\n }\n if (node.format & NodeFormat.IS_STRIKETHROUGH) {\n text = <span style={{ textDecoration: 'line-through' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_UNDERLINE) {\n text = <span style={{ textDecoration: 'underline' }}>{text}</span>\n }\n if (node.format & NodeFormat.IS_CODE) {\n text = <code>{text}</code>\n }\n if (node.format & NodeFormat.IS_SUBSCRIPT) {\n text = <sub>{text}</sub>\n }\n if (node.format & NodeFormat.IS_SUPERSCRIPT) {\n text = <sup>{text}</sup>\n }\n\n return text\n },\n}\n"],"names":["React","NodeFormat","TextJSXConverter","text","node","format","IS_BOLD","strong","IS_ITALIC","em","IS_STRIKETHROUGH","span","style","textDecoration","IS_UNDERLINE","IS_CODE","code","IS_SUBSCRIPT","sub","IS_SUPERSCRIPT","sup"],"mappings":";AAAA,OAAOA,WAAW,QAAO;AAKzB,SAASC,UAAU,QAAQ,6CAA4C;AAEvE,OAAO,MAAMC,mBAAsD;IACjEC,MAAM,CAAC,EAAEC,IAAI,EAAE;QACb,IAAID,OAAwBC,KAAKD,IAAI;QAErC,IAAIC,KAAKC,MAAM,GAAGJ,WAAWK,OAAO,EAAE;YACpCH,qBAAO,QAACI;0BAAQJ;;;;;;QAClB;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWO,SAAS,EAAE;YACtCL,qBAAO,QAACM;0BAAIN;;;;;;QACd;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWS,gBAAgB,EAAE;YAC7CP,qBAAO,QAACQ;gBAAKC,OAAO;oBAAEC,gBAAgB;gBAAe;0BAAIV;;;;;;QAC3D;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWa,YAAY,EAAE;YACzCX,qBAAO,QAACQ;gBAAKC,OAAO;oBAAEC,gBAAgB;gBAAY;0BAAIV;;;;;;QACxD;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWc,OAAO,EAAE;YACpCZ,qBAAO,QAACa;0BAAMb;;;;;;QAChB;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWgB,YAAY,EAAE;YACzCd,qBAAO,QAACe;0BAAKf;;;;;;QACf;QACA,IAAIC,KAAKC,MAAM,GAAGJ,WAAWkB,cAAc,EAAE;YAC3ChB,qBAAO,QAACiB;0BAAKjB;;;;;;QACf;QAEA,OAAOA;IACT;AACF,EAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2
2
  export const UploadJSXConverter = {
3
3
  upload: ({ node })=>{
4
4
  // TO-DO (v4): SerializedUploadNode should use UploadData_P4
@@ -11,21 +11,29 @@ export const UploadJSXConverter = {
11
11
  /**
12
12
  * If the upload is not an image, return a link to the upload
13
13
  */ if (!uploadDoc.mimeType.startsWith('image')) {
14
- return /*#__PURE__*/ _jsx("a", {
14
+ return /*#__PURE__*/ _jsxDEV("a", {
15
15
  href: url,
16
16
  rel: "noopener noreferrer",
17
17
  children: uploadDoc.filename
18
- });
18
+ }, void 0, false, {
19
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/upload.tsx",
20
+ lineNumber: 24,
21
+ columnNumber: 9
22
+ }, this);
19
23
  }
20
24
  /**
21
25
  * If the upload is a simple image with no different sizes, return a simple img tag
22
26
  */ if (!uploadDoc.sizes || !Object.keys(uploadDoc.sizes).length) {
23
- return /*#__PURE__*/ _jsx("img", {
27
+ return /*#__PURE__*/ _jsxDEV("img", {
24
28
  alt: uploadDoc.filename,
25
29
  height: uploadDoc.height,
26
30
  src: url,
27
31
  width: uploadDoc.width
28
- });
32
+ }, void 0, false, {
33
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/upload.tsx",
34
+ lineNumber: 35,
35
+ columnNumber: 9
36
+ }, this);
29
37
  }
30
38
  /**
31
39
  * If the upload is an image with different sizes, return a picture element
@@ -38,22 +46,34 @@ export const UploadJSXConverter = {
38
46
  continue;
39
47
  }
40
48
  const imageSizeURL = imageSize?.url;
41
- pictureJSX.push(/*#__PURE__*/ _jsx("source", {
49
+ pictureJSX.push(/*#__PURE__*/ _jsxDEV("source", {
42
50
  media: `(max-width: ${imageSize.width}px)`,
43
51
  srcSet: imageSizeURL,
44
52
  type: imageSize.mimeType
45
- }, size));
53
+ }, size, false, {
54
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/upload.tsx",
55
+ lineNumber: 63,
56
+ columnNumber: 9
57
+ }, this));
46
58
  }
47
59
  // Add the default img tag
48
- pictureJSX.push(/*#__PURE__*/ _jsx("img", {
60
+ pictureJSX.push(/*#__PURE__*/ _jsxDEV("img", {
49
61
  alt: uploadDoc?.filename,
50
62
  height: uploadDoc?.height,
51
63
  src: url,
52
64
  width: uploadDoc?.width
53
- }, 'image'));
54
- return /*#__PURE__*/ _jsx("picture", {
65
+ }, 'image', false, {
66
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/upload.tsx",
67
+ lineNumber: 74,
68
+ columnNumber: 7
69
+ }, this));
70
+ return /*#__PURE__*/ _jsxDEV("picture", {
55
71
  children: pictureJSX
56
- });
72
+ }, void 0, false, {
73
+ fileName: "src/features/converters/lexicalToJSX/converter/converters/upload.tsx",
74
+ lineNumber: 82,
75
+ columnNumber: 12
76
+ }, this);
57
77
  }
58
78
  };
59
79
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/upload.tsx"],"sourcesContent":["import type { FileData, FileSizeImproved, TypeWithID } from 'payload'\n\nimport type { SerializedUploadNode } from '../../../../../nodeTypes.js'\nimport type { UploadDataImproved } from '../../../../upload/server/nodes/UploadNode.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const UploadJSXConverter: JSXConverters<SerializedUploadNode> = {\n upload: ({ node }) => {\n // TO-DO (v4): SerializedUploadNode should use UploadData_P4\n const uploadNode = node as UploadDataImproved\n if (typeof uploadNode.value !== 'object') {\n return null\n }\n\n const uploadDoc = uploadNode.value as FileData & TypeWithID\n\n const url = uploadDoc.url\n\n /**\n * If the upload is not an image, return a link to the upload\n */\n if (!uploadDoc.mimeType.startsWith('image')) {\n return (\n <a href={url} rel=\"noopener noreferrer\">\n {uploadDoc.filename}\n </a>\n )\n }\n\n /**\n * If the upload is a simple image with no different sizes, return a simple img tag\n */\n if (!uploadDoc.sizes || !Object.keys(uploadDoc.sizes).length) {\n return (\n <img alt={uploadDoc.filename} height={uploadDoc.height} src={url} width={uploadDoc.width} />\n )\n }\n\n /**\n * If the upload is an image with different sizes, return a picture element\n */\n const pictureJSX: React.ReactNode[] = []\n\n // Iterate through each size in the data.sizes object\n for (const size in uploadDoc.sizes) {\n const imageSize = uploadDoc.sizes[size] as FileSizeImproved\n\n // Skip if any property of the size object is null\n if (\n !imageSize ||\n !imageSize.width ||\n !imageSize.height ||\n !imageSize.mimeType ||\n !imageSize.filesize ||\n !imageSize.filename ||\n !imageSize.url\n ) {\n continue\n }\n const imageSizeURL = imageSize?.url\n\n pictureJSX.push(\n <source\n key={size}\n media={`(max-width: ${imageSize.width}px)`}\n srcSet={imageSizeURL}\n type={imageSize.mimeType}\n />,\n )\n }\n\n // Add the default img tag\n pictureJSX.push(\n <img\n alt={uploadDoc?.filename}\n height={uploadDoc?.height}\n key={'image'}\n src={url}\n width={uploadDoc?.width}\n />,\n )\n return <picture>{pictureJSX}</picture>\n },\n}\n"],"names":["UploadJSXConverter","upload","node","uploadNode","value","uploadDoc","url","mimeType","startsWith","a","href","rel","filename","sizes","Object","keys","length","img","alt","height","src","width","pictureJSX","size","imageSize","filesize","imageSizeURL","push","source","media","srcSet","type","picture"],"mappings":";AAMA,OAAO,MAAMA,qBAA0D;IACrEC,QAAQ,CAAC,EAAEC,IAAI,EAAE;QACf,4DAA4D;QAC5D,MAAMC,aAAaD;QACnB,IAAI,OAAOC,WAAWC,KAAK,KAAK,UAAU;YACxC,OAAO;QACT;QAEA,MAAMC,YAAYF,WAAWC,KAAK;QAElC,MAAME,MAAMD,UAAUC,GAAG;QAEzB;;KAEC,GACD,IAAI,CAACD,UAAUE,QAAQ,CAACC,UAAU,CAAC,UAAU;YAC3C,qBACE,KAACC;gBAAEC,MAAMJ;gBAAKK,KAAI;0BACfN,UAAUO,QAAQ;;QAGzB;QAEA;;KAEC,GACD,IAAI,CAACP,UAAUQ,KAAK,IAAI,CAACC,OAAOC,IAAI,CAACV,UAAUQ,KAAK,EAAEG,MAAM,EAAE;YAC5D,qBACE,KAACC;gBAAIC,KAAKb,UAAUO,QAAQ;gBAAEO,QAAQd,UAAUc,MAAM;gBAAEC,KAAKd;gBAAKe,OAAOhB,UAAUgB,KAAK;;QAE5F;QAEA;;KAEC,GACD,MAAMC,aAAgC,EAAE;QAExC,qDAAqD;QACrD,IAAK,MAAMC,QAAQlB,UAAUQ,KAAK,CAAE;YAClC,MAAMW,YAAYnB,UAAUQ,KAAK,CAACU,KAAK;YAEvC,kDAAkD;YAClD,IACE,CAACC,aACD,CAACA,UAAUH,KAAK,IAChB,CAACG,UAAUL,MAAM,IACjB,CAACK,UAAUjB,QAAQ,IACnB,CAACiB,UAAUC,QAAQ,IACnB,CAACD,UAAUZ,QAAQ,IACnB,CAACY,UAAUlB,GAAG,EACd;gBACA;YACF;YACA,MAAMoB,eAAeF,WAAWlB;YAEhCgB,WAAWK,IAAI,eACb,KAACC;gBAECC,OAAO,CAAC,YAAY,EAAEL,UAAUH,KAAK,CAAC,GAAG,CAAC;gBAC1CS,QAAQJ;gBACRK,MAAMP,UAAUjB,QAAQ;eAHnBgB;QAMX;QAEA,0BAA0B;QAC1BD,WAAWK,IAAI,eACb,KAACV;YACCC,KAAKb,WAAWO;YAChBO,QAAQd,WAAWc;YAEnBC,KAAKd;YACLe,OAAOhB,WAAWgB;WAFb;QAKT,qBAAO,KAACW;sBAASV;;IACnB;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../../../src/features/converters/lexicalToJSX/converter/converters/upload.tsx"],"sourcesContent":["import type { FileData, FileSizeImproved, TypeWithID } from 'payload'\n\nimport type { SerializedUploadNode } from '../../../../../nodeTypes.js'\nimport type { UploadDataImproved } from '../../../../upload/server/nodes/UploadNode.js'\nimport type { JSXConverters } from '../types.js'\n\nexport const UploadJSXConverter: JSXConverters<SerializedUploadNode> = {\n upload: ({ node }) => {\n // TO-DO (v4): SerializedUploadNode should use UploadData_P4\n const uploadNode = node as UploadDataImproved\n if (typeof uploadNode.value !== 'object') {\n return null\n }\n\n const uploadDoc = uploadNode.value as FileData & TypeWithID\n\n const url = uploadDoc.url\n\n /**\n * If the upload is not an image, return a link to the upload\n */\n if (!uploadDoc.mimeType.startsWith('image')) {\n return (\n <a href={url} rel=\"noopener noreferrer\">\n {uploadDoc.filename}\n </a>\n )\n }\n\n /**\n * If the upload is a simple image with no different sizes, return a simple img tag\n */\n if (!uploadDoc.sizes || !Object.keys(uploadDoc.sizes).length) {\n return (\n <img alt={uploadDoc.filename} height={uploadDoc.height} src={url} width={uploadDoc.width} />\n )\n }\n\n /**\n * If the upload is an image with different sizes, return a picture element\n */\n const pictureJSX: React.ReactNode[] = []\n\n // Iterate through each size in the data.sizes object\n for (const size in uploadDoc.sizes) {\n const imageSize = uploadDoc.sizes[size] as FileSizeImproved\n\n // Skip if any property of the size object is null\n if (\n !imageSize ||\n !imageSize.width ||\n !imageSize.height ||\n !imageSize.mimeType ||\n !imageSize.filesize ||\n !imageSize.filename ||\n !imageSize.url\n ) {\n continue\n }\n const imageSizeURL = imageSize?.url\n\n pictureJSX.push(\n <source\n key={size}\n media={`(max-width: ${imageSize.width}px)`}\n srcSet={imageSizeURL}\n type={imageSize.mimeType}\n />,\n )\n }\n\n // Add the default img tag\n pictureJSX.push(\n <img\n alt={uploadDoc?.filename}\n height={uploadDoc?.height}\n key={'image'}\n src={url}\n width={uploadDoc?.width}\n />,\n )\n return <picture>{pictureJSX}</picture>\n },\n}\n"],"names":["UploadJSXConverter","upload","node","uploadNode","value","uploadDoc","url","mimeType","startsWith","a","href","rel","filename","sizes","Object","keys","length","img","alt","height","src","width","pictureJSX","size","imageSize","filesize","imageSizeURL","push","source","media","srcSet","type","picture"],"mappings":";AAMA,OAAO,MAAMA,qBAA0D;IACrEC,QAAQ,CAAC,EAAEC,IAAI,EAAE;QACf,4DAA4D;QAC5D,MAAMC,aAAaD;QACnB,IAAI,OAAOC,WAAWC,KAAK,KAAK,UAAU;YACxC,OAAO;QACT;QAEA,MAAMC,YAAYF,WAAWC,KAAK;QAElC,MAAME,MAAMD,UAAUC,GAAG;QAEzB;;KAEC,GACD,IAAI,CAACD,UAAUE,QAAQ,CAACC,UAAU,CAAC,UAAU;YAC3C,qBACE,QAACC;gBAAEC,MAAMJ;gBAAKK,KAAI;0BACfN,UAAUO,QAAQ;;;;;;QAGzB;QAEA;;KAEC,GACD,IAAI,CAACP,UAAUQ,KAAK,IAAI,CAACC,OAAOC,IAAI,CAACV,UAAUQ,KAAK,EAAEG,MAAM,EAAE;YAC5D,qBACE,QAACC;gBAAIC,KAAKb,UAAUO,QAAQ;gBAAEO,QAAQd,UAAUc,MAAM;gBAAEC,KAAKd;gBAAKe,OAAOhB,UAAUgB,KAAK;;;;;;QAE5F;QAEA;;KAEC,GACD,MAAMC,aAAgC,EAAE;QAExC,qDAAqD;QACrD,IAAK,MAAMC,QAAQlB,UAAUQ,KAAK,CAAE;YAClC,MAAMW,YAAYnB,UAAUQ,KAAK,CAACU,KAAK;YAEvC,kDAAkD;YAClD,IACE,CAACC,aACD,CAACA,UAAUH,KAAK,IAChB,CAACG,UAAUL,MAAM,IACjB,CAACK,UAAUjB,QAAQ,IACnB,CAACiB,UAAUC,QAAQ,IACnB,CAACD,UAAUZ,QAAQ,IACnB,CAACY,UAAUlB,GAAG,EACd;gBACA;YACF;YACA,MAAMoB,eAAeF,WAAWlB;YAEhCgB,WAAWK,IAAI,eACb,QAACC;gBAECC,OAAO,CAAC,YAAY,EAAEL,UAAUH,KAAK,CAAC,GAAG,CAAC;gBAC1CS,QAAQJ;gBACRK,MAAMP,UAAUjB,QAAQ;eAHnBgB;;;;;QAMX;QAEA,0BAA0B;QAC1BD,WAAWK,IAAI,eACb,QAACV;YACCC,KAAKb,WAAWO;YAChBO,QAAQd,WAAWc;YAEnBC,KAAKd;YACLe,OAAOhB,WAAWgB;WAFb;;;;;QAKT,qBAAO,QAACW;sBAASV;;;;;;IACnB;AACF,EAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
2
2
  /* eslint-disable no-console */ import React from 'react';
3
3
  import { hasText } from '../../../../validate/hasText.js';
4
4
  export function convertLexicalToJSX({ converters, data, disableIndent, disableTextAlign }) {
@@ -11,7 +11,7 @@ export function convertLexicalToJSX({ converters, data, disableIndent, disableTe
11
11
  parent: data?.root
12
12
  });
13
13
  }
14
- return /*#__PURE__*/ _jsx(_Fragment, {});
14
+ return /*#__PURE__*/ _jsxDEV(_Fragment, {}, void 0, false);
15
15
  }
16
16
  export function convertLexicalNodesToJSX({ converters, disableIndent, disableTextAlign, nodes, parent }) {
17
17
  const unknownConverter = converters.unknown;
@@ -56,9 +56,13 @@ export function convertLexicalNodesToJSX({ converters, disableIndent, disableTex
56
56
  }) : converterForNode;
57
57
  reactNode = converted;
58
58
  } else {
59
- reactNode = /*#__PURE__*/ _jsx("span", {
59
+ reactNode = /*#__PURE__*/ _jsxDEV("span", {
60
60
  children: "unknown node"
61
- }, i);
61
+ }, i, false, {
62
+ fileName: "src/features/converters/lexicalToJSX/converter/index.tsx",
63
+ lineNumber: 102,
64
+ columnNumber: 21
65
+ }, this);
62
66
  }
63
67
  const style = {};
64
68
  // Check if disableTextAlign is not true and does not include node type