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

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 (669) hide show
  1. package/dist/exports/client/Field-VMNLDBRS.js +2 -0
  2. package/dist/exports/client/Field-VMNLDBRS.js.map +7 -0
  3. package/dist/exports/client/RelationshipComponent-RZL743CS.js +2 -0
  4. package/dist/exports/client/RelationshipComponent-RZL743CS.js.map +7 -0
  5. package/dist/exports/client/bundled.css +1 -1
  6. package/dist/exports/client/chunk-74RUDY7K.js +2 -0
  7. package/dist/exports/client/chunk-74RUDY7K.js.map +7 -0
  8. package/dist/exports/client/chunk-WSAPGI3Z.js +2 -0
  9. package/dist/exports/client/chunk-WSAPGI3Z.js.map +7 -0
  10. package/dist/exports/client/component-2ZTDKRVK.js +2 -0
  11. package/dist/exports/client/component-2ZTDKRVK.js.map +7 -0
  12. package/dist/exports/client/componentInline-JYKBUUPZ.js +2 -0
  13. package/dist/exports/client/index.d.ts +0 -2
  14. package/dist/exports/client/index.d.ts.map +1 -1
  15. package/dist/exports/client/index.js +30 -30
  16. package/dist/exports/client/index.js.map +4 -4
  17. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  18. package/dist/features/align/client/toolbarAlignGroup.js +1 -0
  19. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -1
  20. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  21. package/dist/features/blockquote/server/index.js +0 -39
  22. package/dist/features/blockquote/server/index.js.map +1 -1
  23. package/dist/features/blocks/client/component/BlockContent.d.ts +10 -0
  24. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -1
  25. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  26. package/dist/features/blocks/client/component/index.css +178 -0
  27. package/dist/features/blocks/client/component/index.d.ts +1 -1
  28. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  29. package/dist/features/blocks/client/component/index.js +90 -18
  30. package/dist/features/blocks/client/component/index.js.map +1 -1
  31. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  32. package/dist/features/blocks/client/componentInline/index.css +85 -0
  33. package/dist/features/blocks/client/componentInline/index.d.ts +1 -1
  34. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  35. package/dist/features/blocks/client/componentInline/index.js +31 -8
  36. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  37. package/dist/features/blocks/client/index.d.ts.map +1 -1
  38. package/dist/features/blocks/client/index.js +0 -2
  39. package/dist/features/blocks/client/index.js.map +1 -1
  40. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  41. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +1 -1
  42. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  43. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +3 -0
  44. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  45. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +26 -0
  46. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +1 -1
  47. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -1
  48. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +4 -1
  49. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  50. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +40 -0
  51. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +1 -1
  52. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -1
  53. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +7 -8
  54. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  55. package/dist/features/blocks/premade/CodeBlock/Component/index.css +171 -0
  56. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  57. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  58. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  59. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  60. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  61. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  62. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  63. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  64. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  65. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  66. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  67. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  68. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  69. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  70. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +1 -1
  71. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -1
  72. package/dist/features/debug/jsxConverter/client/plugin/index.js +1 -0
  73. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  74. package/dist/features/debug/jsxConverter/client/plugin/style.css +9 -0
  75. package/dist/features/debug/testRecorder/client/plugin/index.css +51 -0
  76. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +1 -1
  77. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -1
  78. package/dist/features/debug/testRecorder/client/plugin/index.js +1 -0
  79. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  80. package/dist/features/debug/treeView/client/plugin/index.css +81 -0
  81. package/dist/features/debug/treeView/client/plugin/index.d.ts +1 -1
  82. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -1
  83. package/dist/features/debug/treeView/client/plugin/index.js +1 -0
  84. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  85. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.css +91 -0
  86. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +1 -1
  87. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -1
  88. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +3 -2
  89. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  90. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.css +11 -0
  91. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +1 -1
  92. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -1
  93. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +1 -0
  94. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  95. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +1 -1
  96. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  97. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.css +166 -0
  98. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts +17 -0
  99. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  100. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js +219 -0
  101. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  102. package/dist/features/experimental_table/client/plugins/TablePlugin/index.css +235 -0
  103. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +1 -1
  104. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -1
  105. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +95 -104
  106. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
  107. package/dist/features/experimental_table/server/index.d.ts.map +1 -1
  108. package/dist/features/experimental_table/server/index.js +0 -102
  109. package/dist/features/experimental_table/server/index.js.map +1 -1
  110. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  111. package/dist/features/heading/server/index.d.ts.map +1 -1
  112. package/dist/features/heading/server/index.js +0 -39
  113. package/dist/features/heading/server/index.js.map +1 -1
  114. package/dist/features/horizontalRule/client/plugin/index.css +25 -0
  115. package/dist/features/horizontalRule/client/plugin/index.d.ts +1 -1
  116. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -1
  117. package/dist/features/horizontalRule/client/plugin/index.js +73 -4
  118. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
  119. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  120. package/dist/features/horizontalRule/server/index.js +0 -8
  121. package/dist/features/horizontalRule/server/index.js.map +1 -1
  122. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  123. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  124. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  125. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +28 -8
  126. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  127. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +112 -0
  128. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +1 -1
  129. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  130. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +1 -0
  131. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  132. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  133. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  134. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  135. package/dist/features/link/server/index.d.ts.map +1 -1
  136. package/dist/features/link/server/index.js +0 -71
  137. package/dist/features/link/server/index.js.map +1 -1
  138. package/dist/features/link/server/validate.d.ts.map +1 -1
  139. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  140. package/dist/features/lists/checklist/server/index.js +0 -7
  141. package/dist/features/lists/checklist/server/index.js.map +1 -1
  142. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  143. package/dist/features/lists/orderedList/server/index.js +0 -7
  144. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  145. package/dist/features/lists/shared/markdown.d.ts.map +1 -1
  146. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  147. package/dist/features/lists/unorderedList/server/index.js +0 -7
  148. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  149. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +1 -1
  150. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  151. package/dist/features/relationship/client/components/RelationshipComponent.js +29 -4
  152. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  153. package/dist/features/relationship/client/components/index.css +112 -0
  154. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  155. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  156. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  157. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  158. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  159. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  160. package/dist/features/toolbars/fixed/client/Toolbar/index.css +87 -0
  161. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +1 -1
  162. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  163. package/dist/features/toolbars/fixed/client/Toolbar/index.js +1 -0
  164. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  165. package/dist/features/toolbars/inline/client/Toolbar/index.css +43 -0
  166. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +1 -1
  167. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  168. package/dist/features/toolbars/inline/client/Toolbar/index.js +1 -0
  169. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  170. package/dist/features/toolbars/shared/ToolbarButton/index.css +57 -0
  171. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
  172. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  173. package/dist/features/toolbars/shared/ToolbarButton/index.js +80 -74
  174. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  175. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  176. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +5 -2
  177. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  178. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +214 -0
  179. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
  180. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  181. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +11 -7
  182. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  183. package/dist/features/toolbars/types.d.ts +4 -0
  184. package/dist/features/toolbars/types.d.ts.map +1 -1
  185. package/dist/features/toolbars/types.js.map +1 -1
  186. package/dist/features/typesServer.d.ts +0 -17
  187. package/dist/features/typesServer.d.ts.map +1 -1
  188. package/dist/features/typesServer.js.map +1 -1
  189. package/dist/features/upload/client/component/index.css +220 -0
  190. package/dist/features/upload/client/component/index.d.ts +1 -1
  191. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  192. package/dist/features/upload/client/component/index.js +86 -63
  193. package/dist/features/upload/client/component/index.js.map +1 -1
  194. package/dist/features/upload/client/component/pending/index.d.ts +0 -1
  195. package/dist/features/upload/client/component/pending/index.d.ts.map +1 -1
  196. package/dist/features/upload/client/component/pending/index.js.map +1 -1
  197. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  198. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  199. package/dist/features/upload/server/index.d.ts.map +1 -1
  200. package/dist/features/upload/server/index.js +0 -78
  201. package/dist/features/upload/server/index.js.map +1 -1
  202. package/dist/features/upload/server/validate.d.ts.map +1 -1
  203. package/dist/field/Diff/converters/listitem/index.css +44 -0
  204. package/dist/field/Diff/converters/listitem/index.d.ts +1 -1
  205. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  206. package/dist/field/Diff/converters/listitem/index.js +1 -0
  207. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  208. package/dist/field/Diff/converters/relationship/index.css +68 -0
  209. package/dist/field/Diff/converters/relationship/index.d.ts +1 -1
  210. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  211. package/dist/field/Diff/converters/relationship/index.js +1 -0
  212. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  213. package/dist/field/Diff/converters/unknown/index.css +37 -0
  214. package/dist/field/Diff/converters/unknown/index.d.ts +1 -1
  215. package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -1
  216. package/dist/field/Diff/converters/unknown/index.js +1 -0
  217. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  218. package/dist/field/Diff/converters/upload/index.css +112 -0
  219. package/dist/field/Diff/converters/upload/index.d.ts +1 -1
  220. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  221. package/dist/field/Diff/converters/upload/index.js +1 -0
  222. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  223. package/dist/field/Diff/index.css +101 -0
  224. package/dist/field/Diff/index.d.ts +1 -1
  225. package/dist/field/Diff/index.d.ts.map +1 -1
  226. package/dist/field/Diff/index.js +1 -0
  227. package/dist/field/Diff/index.js.map +1 -1
  228. package/dist/field/Field.d.ts +2 -2
  229. package/dist/field/Field.d.ts.map +1 -1
  230. package/dist/field/Field.js +13 -12
  231. package/dist/field/Field.js.map +1 -1
  232. package/dist/field/ViewSelector.css +32 -0
  233. package/dist/field/ViewSelector.d.ts +1 -1
  234. package/dist/field/ViewSelector.d.ts.map +1 -1
  235. package/dist/field/ViewSelector.js +1 -0
  236. package/dist/field/ViewSelector.js.map +1 -1
  237. package/dist/field/bundled.css +1 -1
  238. package/dist/field/index.css +60 -0
  239. package/dist/index.d.ts +0 -10
  240. package/dist/index.d.ts.map +1 -1
  241. package/dist/index.js +11 -10
  242. package/dist/index.js.map +1 -1
  243. package/dist/lexical/LexicalEditor.css +50 -0
  244. package/dist/lexical/LexicalEditor.d.ts +1 -1
  245. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  246. package/dist/lexical/LexicalEditor.js +1 -0
  247. package/dist/lexical/LexicalEditor.js.map +1 -1
  248. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  249. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  250. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  251. package/dist/lexical/config/server/loader.js +12 -9
  252. package/dist/lexical/config/server/loader.js.map +1 -1
  253. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  254. package/dist/lexical/config/server/sanitize.js +0 -6
  255. package/dist/lexical/config/server/sanitize.js.map +1 -1
  256. package/dist/lexical/plugins/DecoratorPlugin/index.css +11 -0
  257. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +1 -1
  258. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  259. package/dist/lexical/plugins/DecoratorPlugin/index.js +1 -0
  260. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  261. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +52 -0
  262. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +1 -1
  263. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  264. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +1 -0
  265. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  266. package/dist/lexical/plugins/SlashMenu/index.css +65 -0
  267. package/dist/lexical/plugins/SlashMenu/index.d.ts +1 -1
  268. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  269. package/dist/lexical/plugins/SlashMenu/index.js +2 -0
  270. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  271. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +40 -0
  272. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +1 -1
  273. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  274. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +1 -0
  275. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  276. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  277. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +84 -0
  278. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +1 -1
  279. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  280. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +15 -8
  281. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  282. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +1 -1
  283. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  284. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  285. package/dist/lexical/theme/EditorTheme.css +359 -0
  286. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  287. package/dist/lexical/theme/EditorTheme.js +1 -0
  288. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  289. package/dist/lexical/ui/ContentEditable.css +95 -0
  290. package/dist/lexical/ui/ContentEditable.d.ts +1 -1
  291. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  292. package/dist/lexical/ui/ContentEditable.js +1 -0
  293. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  294. package/dist/lexical/ui/icons/Add/index.d.ts +4 -1
  295. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -1
  296. package/dist/lexical/ui/icons/Add/index.js +19 -12
  297. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  298. package/dist/lexical/ui/icons/Add/index.svg +2 -3
  299. package/dist/lexical/ui/icons/Add/light.svg +2 -3
  300. package/dist/lexical/ui/icons/AlignCenter/index.d.ts +3 -1
  301. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -1
  302. package/dist/lexical/ui/icons/AlignCenter/index.js +15 -19
  303. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  304. package/dist/lexical/ui/icons/AlignJustify/index.d.ts +3 -1
  305. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -1
  306. package/dist/lexical/ui/icons/AlignJustify/index.js +15 -19
  307. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  308. package/dist/lexical/ui/icons/AlignLeft/index.d.ts +3 -1
  309. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -1
  310. package/dist/lexical/ui/icons/AlignLeft/index.js +15 -19
  311. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  312. package/dist/lexical/ui/icons/AlignRight/index.d.ts +3 -1
  313. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -1
  314. package/dist/lexical/ui/icons/AlignRight/index.js +15 -19
  315. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  316. package/dist/lexical/ui/icons/Block/index.d.ts +3 -1
  317. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -1
  318. package/dist/lexical/ui/icons/Block/index.js +13 -28
  319. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  320. package/dist/lexical/ui/icons/Blockquote/index.d.ts +3 -1
  321. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -1
  322. package/dist/lexical/ui/icons/Blockquote/index.js +9 -6
  323. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  324. package/dist/lexical/ui/icons/Bold/index.d.ts +3 -1
  325. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -1
  326. package/dist/lexical/ui/icons/Bold/index.js +13 -8
  327. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  328. package/dist/lexical/ui/icons/Checklist/index.d.ts +4 -1
  329. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -1
  330. package/dist/lexical/ui/icons/Checklist/index.js +17 -18
  331. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  332. package/dist/lexical/ui/icons/Code/index.d.ts +3 -1
  333. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -1
  334. package/dist/lexical/ui/icons/Code/index.js +15 -13
  335. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  336. package/dist/lexical/ui/icons/CodeBlock/index.d.ts +4 -1
  337. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -1
  338. package/dist/lexical/ui/icons/CodeBlock/index.js +18 -7
  339. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  340. package/dist/lexical/ui/icons/Collapse/index.d.ts +3 -1
  341. package/dist/lexical/ui/icons/Collapse/index.d.ts.map +1 -1
  342. package/dist/lexical/ui/icons/Collapse/index.js +10 -8
  343. package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
  344. package/dist/lexical/ui/icons/DraggableBlock/index.svg +7 -7
  345. package/dist/lexical/ui/icons/DraggableBlock/light.svg +7 -7
  346. package/dist/lexical/ui/icons/Expand/index.d.ts +5 -0
  347. package/dist/lexical/ui/icons/Expand/index.d.ts.map +1 -0
  348. package/dist/lexical/ui/icons/Expand/index.js +22 -0
  349. package/dist/lexical/ui/icons/Expand/index.js.map +1 -0
  350. package/dist/lexical/ui/icons/H1/index.d.ts +3 -1
  351. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -1
  352. package/dist/lexical/ui/icons/H1/index.js +9 -6
  353. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  354. package/dist/lexical/ui/icons/H2/index.d.ts +3 -1
  355. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -1
  356. package/dist/lexical/ui/icons/H2/index.js +9 -6
  357. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  358. package/dist/lexical/ui/icons/H3/index.d.ts +3 -1
  359. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  360. package/dist/lexical/ui/icons/H3/index.js +9 -6
  361. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  362. package/dist/lexical/ui/icons/H4/index.d.ts +3 -1
  363. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  364. package/dist/lexical/ui/icons/H4/index.js +9 -6
  365. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  366. package/dist/lexical/ui/icons/H5/index.d.ts +3 -1
  367. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  368. package/dist/lexical/ui/icons/H5/index.js +9 -6
  369. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  370. package/dist/lexical/ui/icons/H6/index.d.ts +3 -1
  371. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  372. package/dist/lexical/ui/icons/H6/index.js +9 -6
  373. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  374. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts +3 -1
  375. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -1
  376. package/dist/lexical/ui/icons/HorizontalRule/index.js +11 -11
  377. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  378. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts +3 -1
  379. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -1
  380. package/dist/lexical/ui/icons/IndentDecrease/index.js +18 -22
  381. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  382. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts +3 -1
  383. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -1
  384. package/dist/lexical/ui/icons/IndentIncrease/index.js +15 -22
  385. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  386. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -1
  387. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -1
  388. package/dist/lexical/ui/icons/InlineBlocks/index.js +9 -6
  389. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
  390. package/dist/lexical/ui/icons/Italic/index.d.ts +3 -1
  391. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -1
  392. package/dist/lexical/ui/icons/Italic/index.js +13 -8
  393. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  394. package/dist/lexical/ui/icons/Link/index.d.ts +4 -1
  395. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -1
  396. package/dist/lexical/ui/icons/Link/index.js +14 -9
  397. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  398. package/dist/lexical/ui/icons/Meatballs/index.d.ts +4 -1
  399. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -1
  400. package/dist/lexical/ui/icons/Meatballs/index.js +19 -15
  401. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
  402. package/dist/lexical/ui/icons/OrderedList/index.d.ts +4 -1
  403. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -1
  404. package/dist/lexical/ui/icons/OrderedList/index.js +19 -25
  405. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  406. package/dist/lexical/ui/icons/Page/index.d.ts +5 -0
  407. package/dist/lexical/ui/icons/Page/index.d.ts.map +1 -0
  408. package/dist/lexical/ui/icons/Page/index.js +21 -0
  409. package/dist/lexical/ui/icons/Page/index.js.map +1 -0
  410. package/dist/lexical/ui/icons/Relationship/index.d.ts +3 -1
  411. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -1
  412. package/dist/lexical/ui/icons/Relationship/index.js +13 -25
  413. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  414. package/dist/lexical/ui/icons/Strikethrough/index.d.ts +3 -1
  415. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -1
  416. package/dist/lexical/ui/icons/Strikethrough/index.js +13 -13
  417. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  418. package/dist/lexical/ui/icons/Subscript/index.d.ts +3 -1
  419. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -1
  420. package/dist/lexical/ui/icons/Subscript/index.js +10 -7
  421. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  422. package/dist/lexical/ui/icons/Superscript/index.d.ts +3 -1
  423. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -1
  424. package/dist/lexical/ui/icons/Superscript/index.js +10 -7
  425. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  426. package/dist/lexical/ui/icons/Table/index.d.ts +4 -1
  427. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
  428. package/dist/lexical/ui/icons/Table/index.js +20 -15
  429. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  430. package/dist/lexical/ui/icons/Text/index.d.ts +4 -1
  431. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -1
  432. package/dist/lexical/ui/icons/Text/index.js +17 -8
  433. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  434. package/dist/lexical/ui/icons/Trash/index.d.ts +10 -0
  435. package/dist/lexical/ui/icons/Trash/index.d.ts.map +1 -0
  436. package/dist/lexical/ui/icons/Trash/index.js +29 -0
  437. package/dist/lexical/ui/icons/Trash/index.js.map +1 -0
  438. package/dist/lexical/ui/icons/Underline/index.d.ts +3 -1
  439. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -1
  440. package/dist/lexical/ui/icons/Underline/index.js +16 -14
  441. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  442. package/dist/lexical/ui/icons/UnorderedList/index.d.ts +3 -1
  443. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -1
  444. package/dist/lexical/ui/icons/UnorderedList/index.js +13 -40
  445. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  446. package/dist/lexical/ui/icons/Upload/index.d.ts +3 -1
  447. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -1
  448. package/dist/lexical/ui/icons/Upload/index.js +15 -22
  449. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  450. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  451. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  452. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  453. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  454. package/dist/utilities/buildEditorState.js +13 -0
  455. package/dist/utilities/buildEditorState.js.map +1 -1
  456. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  457. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +1 -0
  458. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  459. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +34 -18
  460. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  461. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  462. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  463. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  464. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  465. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  466. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  467. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  468. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  469. package/dist/validate/index.d.ts.map +1 -1
  470. package/package.json +16 -21
  471. package/dist/exports/client/Component-DOSSWC76.js +0 -2
  472. package/dist/exports/client/Component-DOSSWC76.js.map +0 -7
  473. package/dist/exports/client/Component-MBLHTKDK.js +0 -2
  474. package/dist/exports/client/Component-MBLHTKDK.js.map +0 -7
  475. package/dist/exports/client/Field-4UEGQMIN.js +0 -2
  476. package/dist/exports/client/Field-4UEGQMIN.js.map +0 -7
  477. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js +0 -2
  478. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js.map +0 -7
  479. package/dist/exports/client/chunk-F26IQ5RE.js +0 -2
  480. package/dist/exports/client/chunk-F26IQ5RE.js.map +0 -7
  481. package/dist/exports/client/chunk-YWIZCGSY.js +0 -2
  482. package/dist/exports/client/chunk-YWIZCGSY.js.map +0 -7
  483. package/dist/exports/client/component-XIHC3W6W.js +0 -2
  484. package/dist/exports/client/component-XIHC3W6W.js.map +0 -7
  485. package/dist/exports/client/componentInline-CBBUBQ7P.js +0 -2
  486. package/dist/exports/server/migrate.d.ts +0 -16
  487. package/dist/exports/server/migrate.d.ts.map +0 -1
  488. package/dist/exports/server/migrate.js +0 -16
  489. package/dist/exports/server/migrate.js.map +0 -1
  490. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +0 -4
  491. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +0 -1
  492. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +0 -7
  493. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +0 -1
  494. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +0 -4
  495. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +0 -1
  496. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +0 -38
  497. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +0 -1
  498. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +0 -4
  499. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +0 -1
  500. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +0 -9
  501. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +0 -1
  502. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +0 -4
  503. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +0 -1
  504. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +0 -33
  505. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +0 -1
  506. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +0 -6
  507. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +0 -1
  508. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +0 -9
  509. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +0 -1
  510. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +0 -70
  511. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +0 -1
  512. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +0 -104
  513. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +0 -1
  514. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +0 -27
  515. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +0 -1
  516. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +0 -2
  517. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +0 -1
  518. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +0 -39
  519. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +0 -1
  520. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +0 -122
  521. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +0 -1
  522. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +0 -12
  523. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +0 -1
  524. package/dist/features/converters/lexicalToHtml_deprecated/index.js +0 -11
  525. package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +0 -1
  526. package/dist/features/lists/htmlConverter.d.ts +0 -5
  527. package/dist/features/lists/htmlConverter.d.ts.map +0 -1
  528. package/dist/features/lists/htmlConverter.js +0 -81
  529. package/dist/features/lists/htmlConverter.js.map +0 -1
  530. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -3
  531. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  532. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -22
  533. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  534. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -3
  535. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  536. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -33
  537. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  538. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -3
  539. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  540. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -24
  541. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  542. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -3
  543. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  544. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -25
  545. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  546. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -3
  547. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  548. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -22
  549. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  550. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -3
  551. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  552. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -28
  553. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  554. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -3
  555. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  556. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -22
  557. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  558. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  559. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  560. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -9
  561. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  562. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -19
  563. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  564. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +0 -78
  565. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  566. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -23
  567. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  568. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +0 -2
  569. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  570. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -2
  571. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  572. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +0 -10
  573. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  574. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -10
  575. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  576. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +0 -49
  577. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  578. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  579. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  580. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  581. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  582. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  583. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  584. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -74
  585. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  586. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -3
  587. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  588. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -23
  589. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  590. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -3
  591. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  592. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +0 -24
  593. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  594. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -3
  595. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  596. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +0 -33
  597. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  598. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -3
  599. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  600. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +0 -30
  601. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  602. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -3
  603. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  604. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -26
  605. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  606. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -3
  607. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  608. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -26
  609. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  610. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -3
  611. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  612. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -15
  613. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  614. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -3
  615. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  616. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -27
  617. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  618. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -3
  619. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  620. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -26
  621. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  622. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -3
  623. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  624. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -18
  625. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  626. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -3
  627. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  628. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +0 -12
  629. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  630. package/dist/features/migrations/slateToLexical/converter/index.d.ts +0 -19
  631. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  632. package/dist/features/migrations/slateToLexical/converter/index.js +0 -130
  633. package/dist/features/migrations/slateToLexical/converter/index.js.map +0 -1
  634. package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -16
  635. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  636. package/dist/features/migrations/slateToLexical/converter/types.js +0 -2
  637. package/dist/features/migrations/slateToLexical/converter/types.js.map +0 -1
  638. package/dist/features/migrations/slateToLexical/feature.client.d.ts +0 -2
  639. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  640. package/dist/features/migrations/slateToLexical/feature.client.js +0 -10
  641. package/dist/features/migrations/slateToLexical/feature.client.js.map +0 -1
  642. package/dist/features/migrations/slateToLexical/feature.server.d.ts +0 -40
  643. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  644. package/dist/features/migrations/slateToLexical/feature.server.js +0 -68
  645. package/dist/features/migrations/slateToLexical/feature.server.js.map +0 -1
  646. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  647. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  648. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  649. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  650. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  651. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  652. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -74
  653. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  654. package/dist/lexical/ui/icons/AI/index.d.ts +0 -3
  655. package/dist/lexical/ui/icons/AI/index.d.ts.map +0 -1
  656. package/dist/lexical/ui/icons/AI/index.js +0 -34
  657. package/dist/lexical/ui/icons/AI/index.js.map +0 -1
  658. package/dist/lexical/ui/icons/Caret/index.svg +0 -3
  659. package/dist/lexical/ui/icons/Edit/index.svg +0 -10
  660. package/dist/lexical/ui/icons/Remove/index.svg +0 -4
  661. package/dist/utilities/migrateSlateToLexical/index.d.ts +0 -15
  662. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +0 -1
  663. package/dist/utilities/migrateSlateToLexical/index.js +0 -152
  664. package/dist/utilities/migrateSlateToLexical/index.js.map +0 -1
  665. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +0 -10
  666. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +0 -1
  667. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +0 -85
  668. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +0 -1
  669. /package/dist/exports/client/{componentInline-CBBUBQ7P.js.map → componentInline-JYKBUUPZ.js.map} +0 -0
@@ -1,49 +1,22 @@
1
1
  'use client';
2
2
 
3
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import React from 'react';
5
- export const UnorderedListIcon = () => /*#__PURE__*/_jsxs("svg", {
5
+ const path = 'M7 16C7.55228 16 8 16.4477 8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16ZM17.5 16.5C17.7761 16.5 18 16.7239 18 17C18 17.2761 17.7761 17.5 17.5 17.5H10.5C10.2239 17.5 10 17.2761 10 17C10 16.7239 10.2239 16.5 10.5 16.5H17.5ZM7 11C7.55228 11 8 11.4477 8 12C8 12.5523 7.55228 13 7 13C6.44772 13 6 12.5523 6 12C6 11.4477 6.44772 11 7 11ZM17.5 11.5C17.7761 11.5 18 11.7239 18 12C18 12.2761 17.7761 12.5 17.5 12.5H10.5C10.2239 12.5 10 12.2761 10 12C10 11.7239 10.2239 11.5 10.5 11.5H17.5ZM7 6C7.55228 6 8 6.44772 8 7C8 7.55228 7.55228 8 7 8C6.44772 8 6 7.55228 6 7C6 6.44772 6.44772 6 7 6ZM17.5 6.5C17.7761 6.5 18 6.72386 18 7C18 7.27614 17.7761 7.5 17.5 7.5H10.5C10.2239 7.5 10 7.27614 10 7C10 6.72386 10.2239 6.5 10.5 6.5H17.5Z';
6
+ export const UnorderedListIcon = ({
7
+ className
8
+ }) => /*#__PURE__*/_jsx("svg", {
6
9
  "aria-hidden": "true",
7
- className: "icon",
10
+ className: ['icon', className].filter(Boolean).join(' '),
8
11
  fill: "none",
9
12
  focusable: "false",
10
- height: "20",
11
- viewBox: "0 0 20 20",
12
- width: "20",
13
+ height: 24,
14
+ viewBox: "0 0 24 24",
15
+ width: 24,
13
16
  xmlns: "http://www.w3.org/2000/svg",
14
- children: [/*#__PURE__*/_jsx("circle", {
15
- cx: "4",
16
- cy: "5",
17
- fill: "currentColor",
18
- r: "1.15",
19
- stroke: "currentColor",
20
- strokeWidth: "0.3"
21
- }), /*#__PURE__*/_jsx("circle", {
22
- cx: "4",
23
- cy: "10",
24
- fill: "currentColor",
25
- r: "1.15",
26
- stroke: "currentColor",
27
- strokeWidth: "0.3"
28
- }), /*#__PURE__*/_jsx("circle", {
29
- cx: "4",
30
- cy: "15",
31
- fill: "currentColor",
32
- r: "1.15",
33
- stroke: "currentColor",
34
- strokeWidth: "0.3"
35
- }), /*#__PURE__*/_jsx("path", {
36
- d: "M17 5H7",
37
- stroke: "currentColor",
38
- strokeWidth: "1.5"
39
- }), /*#__PURE__*/_jsx("path", {
40
- d: "M17 10H7",
41
- stroke: "currentColor",
42
- strokeWidth: "1.5"
43
- }), /*#__PURE__*/_jsx("path", {
44
- d: "M17 15H7",
45
- stroke: "currentColor",
46
- strokeWidth: "1.5"
47
- })]
17
+ children: /*#__PURE__*/_jsx("path", {
18
+ d: path,
19
+ fill: "currentColor"
20
+ })
48
21
  });
49
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","UnorderedListIcon","_jsxs","className","fill","focusable","height","viewBox","width","xmlns","_jsx","cx","cy","r","stroke","strokeWidth","d"],"sources":["../../../../../src/lexical/ui/icons/UnorderedList/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const UnorderedListIcon: React.FC = () => (\n <svg\n aria-hidden=\"true\"\n className=\"icon\"\n fill=\"none\"\n focusable=\"false\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n width=\"20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle cx=\"4\" cy=\"5\" fill=\"currentColor\" r=\"1.15\" stroke=\"currentColor\" strokeWidth=\"0.3\" />\n <circle cx=\"4\" cy=\"10\" fill=\"currentColor\" r=\"1.15\" stroke=\"currentColor\" strokeWidth=\"0.3\" />\n <circle cx=\"4\" cy=\"15\" fill=\"currentColor\" r=\"1.15\" stroke=\"currentColor\" strokeWidth=\"0.3\" />\n <path d=\"M17 5H7\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n <path d=\"M17 10H7\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n <path d=\"M17 15H7\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n </svg>\n)\n"],"mappings":"AAAA;;;AACA,OAAOA,KAAA,MAAW;AAElB,OAAO,MAAMC,iBAAA,GAA8BA,CAAA,kBACzCC,KAAA,CAAC;EACC,eAAY;EACZC,SAAA,EAAU;EACVC,IAAA,EAAK;EACLC,SAAA,EAAU;EACVC,MAAA,EAAO;EACPC,OAAA,EAAQ;EACRC,KAAA,EAAM;EACNC,KAAA,EAAM;0BAENC,IAAA,CAAC;IAAOC,EAAA,EAAG;IAAIC,EAAA,EAAG;IAAIR,IAAA,EAAK;IAAeS,CAAA,EAAE;IAAOC,MAAA,EAAO;IAAeC,WAAA,EAAY;mBACrFL,IAAA,CAAC;IAAOC,EAAA,EAAG;IAAIC,EAAA,EAAG;IAAKR,IAAA,EAAK;IAAeS,CAAA,EAAE;IAAOC,MAAA,EAAO;IAAeC,WAAA,EAAY;mBACtFL,IAAA,CAAC;IAAOC,EAAA,EAAG;IAAIC,EAAA,EAAG;IAAKR,IAAA,EAAK;IAAeS,CAAA,EAAE;IAAOC,MAAA,EAAO;IAAeC,WAAA,EAAY;mBACtFL,IAAA,CAAC;IAAKM,CAAA,EAAE;IAAUF,MAAA,EAAO;IAAeC,WAAA,EAAY;mBACpDL,IAAA,CAAC;IAAKM,CAAA,EAAE;IAAWF,MAAA,EAAO;IAAeC,WAAA,EAAY;mBACrDL,IAAA,CAAC;IAAKM,CAAA,EAAE;IAAWF,MAAA,EAAO;IAAeC,WAAA,EAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","path","UnorderedListIcon","className","_jsx","filter","Boolean","join","fill","focusable","height","viewBox","width","xmlns","d"],"sources":["../../../../../src/lexical/ui/icons/UnorderedList/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nconst path =\n 'M7 16C7.55228 16 8 16.4477 8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16ZM17.5 16.5C17.7761 16.5 18 16.7239 18 17C18 17.2761 17.7761 17.5 17.5 17.5H10.5C10.2239 17.5 10 17.2761 10 17C10 16.7239 10.2239 16.5 10.5 16.5H17.5ZM7 11C7.55228 11 8 11.4477 8 12C8 12.5523 7.55228 13 7 13C6.44772 13 6 12.5523 6 12C6 11.4477 6.44772 11 7 11ZM17.5 11.5C17.7761 11.5 18 11.7239 18 12C18 12.2761 17.7761 12.5 17.5 12.5H10.5C10.2239 12.5 10 12.2761 10 12C10 11.7239 10.2239 11.5 10.5 11.5H17.5ZM7 6C7.55228 6 8 6.44772 8 7C8 7.55228 7.55228 8 7 8C6.44772 8 6 7.55228 6 7C6 6.44772 6.44772 6 7 6ZM17.5 6.5C17.7761 6.5 18 6.72386 18 7C18 7.27614 17.7761 7.5 17.5 7.5H10.5C10.2239 7.5 10 7.27614 10 7C10 6.72386 10.2239 6.5 10.5 6.5H17.5Z'\n\nexport const UnorderedListIcon: React.FC<{\n readonly className?: string\n}> = ({ className }) => (\n <svg\n aria-hidden=\"true\"\n className={['icon', className].filter(Boolean).join(' ')}\n fill=\"none\"\n focusable=\"false\"\n height={24}\n viewBox=\"0 0 24 24\"\n width={24}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d={path} fill=\"currentColor\" />\n </svg>\n)\n"],"mappings":"AAAA;;;AACA,OAAOA,KAAA,MAAW;AAElB,MAAMC,IAAA,GACJ;AAEF,OAAO,MAAMC,iBAAA,GAERA,CAAC;EAAEC;AAAS,CAAE,kBACjBC,IAAA,CAAC;EACC,eAAY;EACZD,SAAA,EAAW,CAAC,QAAQA,SAAA,CAAU,CAACE,MAAM,CAACC,OAAA,EAASC,IAAI,CAAC;EACpDC,IAAA,EAAK;EACLC,SAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,OAAA,EAAQ;EACRC,KAAA,EAAO;EACPC,KAAA,EAAM;YAEN,aAAAT,IAAA,CAAC;IAAKU,CAAA,EAAGb,IAAA;IAAMO,IAAA,EAAK","ignoreList":[]}
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
- export declare const UploadIcon: React.FC;
2
+ export declare const UploadIcon: React.FC<{
3
+ readonly className?: string;
4
+ }>;
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lexical/ui/icons/Upload/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA8B9B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lexical/ui/icons/Upload/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,CAaA,CAAA"}
@@ -1,31 +1,24 @@
1
1
  'use client';
2
2
 
3
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import React from 'react';
5
- export const UploadIcon = () => /*#__PURE__*/_jsxs("svg", {
5
+ const path = 'M16.2041 6.01074C17.2128 6.113 18 6.96435 18 8V16L17.9893 16.2041C17.8938 17.1457 17.1457 17.8938 16.2041 17.9893L16 18H8C6.96435 18 6.113 17.2128 6.01074 16.2041L6 16V8C6 6.89543 6.89543 6 8 6H16L16.2041 6.01074ZM8 7C7.44772 7 7 7.44772 7 8V16C7 16.5523 7.44772 17 8 17H16C16.5523 17 17 16.5523 17 16V8C17 7.44772 16.5523 7 16 7H8ZM9.72461 11.582C9.91869 11.4539 10.1827 11.4756 10.3535 11.6465L13.8535 15.1465C14.0488 15.3417 14.0488 15.6583 13.8535 15.8535C13.6583 16.0488 13.3417 16.0488 13.1465 15.8535L10 12.707L8.85352 13.8535C8.65825 14.0488 8.34175 14.0488 8.14648 13.8535C7.95122 13.6583 7.95122 13.3417 8.14648 13.1465L9.64648 11.6465L9.72461 11.582ZM14 8C15.1046 8 16 8.89543 16 10C16 11.1046 15.1046 12 14 12C12.8954 12 12 11.1046 12 10C12 8.89543 12.8954 8 14 8ZM14 9C13.4477 9 13 9.44772 13 10C13 10.5523 13.4477 11 14 11C14.5523 11 15 10.5523 15 10C15 9.44772 14.5523 9 14 9Z';
6
+ export const UploadIcon = ({
7
+ className
8
+ }) => /*#__PURE__*/_jsx("svg", {
6
9
  "aria-hidden": "true",
7
- className: "icon",
10
+ className: ['icon', className].filter(Boolean).join(' '),
8
11
  fill: "none",
9
12
  focusable: "false",
10
- height: "20",
11
- viewBox: "0 0 20 20",
12
- width: "20",
13
+ height: 24,
14
+ viewBox: "0 0 24 24",
15
+ width: 24,
13
16
  xmlns: "http://www.w3.org/2000/svg",
14
- children: [/*#__PURE__*/_jsx("path", {
15
- d: "M14.6667 4H5.33333C4.59695 4 4 4.59695 4 5.33333V14.6667C4 15.403 4.59695 16 5.33333 16H14.6667C15.403 16 16 15.403 16 14.6667V5.33333C16 4.59695 15.403 4 14.6667 4Z",
16
- stroke: "currentColor",
17
- strokeLinecap: "round",
18
- strokeLinejoin: "round"
19
- }), /*#__PURE__*/_jsx("path", {
20
- d: "M7.99984 9.33366C8.73622 9.33366 9.33317 8.73671 9.33317 8.00033C9.33317 7.26395 8.73622 6.66699 7.99984 6.66699C7.26346 6.66699 6.6665 7.26395 6.6665 8.00033C6.6665 8.73671 7.26346 9.33366 7.99984 9.33366Z",
21
- stroke: "currentColor",
22
- strokeLinecap: "round",
23
- strokeLinejoin: "round"
24
- }), /*#__PURE__*/_jsx("path", {
25
- d: "M16 11.9995L13.9427 9.94214C13.6926 9.69218 13.3536 9.55176 13 9.55176C12.6464 9.55176 12.3074 9.69218 12.0573 9.94214L6 15.9995",
26
- stroke: "currentColor",
27
- strokeLinecap: "round",
28
- strokeLinejoin: "round"
29
- })]
17
+ children: /*#__PURE__*/_jsx("path", {
18
+ clipRule: "evenodd",
19
+ d: path,
20
+ fill: "currentColor",
21
+ fillRule: "evenodd"
22
+ })
30
23
  });
31
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","UploadIcon","_jsxs","className","fill","focusable","height","viewBox","width","xmlns","_jsx","d","stroke","strokeLinecap","strokeLinejoin"],"sources":["../../../../../src/lexical/ui/icons/Upload/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const UploadIcon: React.FC = () => (\n <svg\n aria-hidden=\"true\"\n className=\"icon\"\n fill=\"none\"\n focusable=\"false\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n width=\"20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M14.6667 4H5.33333C4.59695 4 4 4.59695 4 5.33333V14.6667C4 15.403 4.59695 16 5.33333 16H14.6667C15.403 16 16 15.403 16 14.6667V5.33333C16 4.59695 15.403 4 14.6667 4Z\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M7.99984 9.33366C8.73622 9.33366 9.33317 8.73671 9.33317 8.00033C9.33317 7.26395 8.73622 6.66699 7.99984 6.66699C7.26346 6.66699 6.6665 7.26395 6.6665 8.00033C6.6665 8.73671 7.26346 9.33366 7.99984 9.33366Z\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M16 11.9995L13.9427 9.94214C13.6926 9.69218 13.3536 9.55176 13 9.55176C12.6464 9.55176 12.3074 9.69218 12.0573 9.94214L6 15.9995\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n)\n"],"mappings":"AAAA;;;AACA,OAAOA,KAAA,MAAW;AAElB,OAAO,MAAMC,UAAA,GAAuBA,CAAA,kBAClCC,KAAA,CAAC;EACC,eAAY;EACZC,SAAA,EAAU;EACVC,IAAA,EAAK;EACLC,SAAA,EAAU;EACVC,MAAA,EAAO;EACPC,OAAA,EAAQ;EACRC,KAAA,EAAM;EACNC,KAAA,EAAM;0BAENC,IAAA,CAAC;IACCC,CAAA,EAAE;IACFC,MAAA,EAAO;IACPC,aAAA,EAAc;IACdC,cAAA,EAAe;mBAEjBJ,IAAA,CAAC;IACCC,CAAA,EAAE;IACFC,MAAA,EAAO;IACPC,aAAA,EAAc;IACdC,cAAA,EAAe;mBAEjBJ,IAAA,CAAC;IACCC,CAAA,EAAE;IACFC,MAAA,EAAO;IACPC,aAAA,EAAc;IACdC,cAAA,EAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","path","UploadIcon","className","_jsx","filter","Boolean","join","fill","focusable","height","viewBox","width","xmlns","clipRule","d","fillRule"],"sources":["../../../../../src/lexical/ui/icons/Upload/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nconst path =\n 'M16.2041 6.01074C17.2128 6.113 18 6.96435 18 8V16L17.9893 16.2041C17.8938 17.1457 17.1457 17.8938 16.2041 17.9893L16 18H8C6.96435 18 6.113 17.2128 6.01074 16.2041L6 16V8C6 6.89543 6.89543 6 8 6H16L16.2041 6.01074ZM8 7C7.44772 7 7 7.44772 7 8V16C7 16.5523 7.44772 17 8 17H16C16.5523 17 17 16.5523 17 16V8C17 7.44772 16.5523 7 16 7H8ZM9.72461 11.582C9.91869 11.4539 10.1827 11.4756 10.3535 11.6465L13.8535 15.1465C14.0488 15.3417 14.0488 15.6583 13.8535 15.8535C13.6583 16.0488 13.3417 16.0488 13.1465 15.8535L10 12.707L8.85352 13.8535C8.65825 14.0488 8.34175 14.0488 8.14648 13.8535C7.95122 13.6583 7.95122 13.3417 8.14648 13.1465L9.64648 11.6465L9.72461 11.582ZM14 8C15.1046 8 16 8.89543 16 10C16 11.1046 15.1046 12 14 12C12.8954 12 12 11.1046 12 10C12 8.89543 12.8954 8 14 8ZM14 9C13.4477 9 13 9.44772 13 10C13 10.5523 13.4477 11 14 11C14.5523 11 15 10.5523 15 10C15 9.44772 14.5523 9 14 9Z'\n\nexport const UploadIcon: React.FC<{\n readonly className?: string\n}> = ({ className }) => (\n <svg\n aria-hidden=\"true\"\n className={['icon', className].filter(Boolean).join(' ')}\n fill=\"none\"\n focusable=\"false\"\n height={24}\n viewBox=\"0 0 24 24\"\n width={24}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path clipRule=\"evenodd\" d={path} fill=\"currentColor\" fillRule=\"evenodd\" />\n </svg>\n)\n"],"mappings":"AAAA;;;AACA,OAAOA,KAAA,MAAW;AAElB,MAAMC,IAAA,GACJ;AAEF,OAAO,MAAMC,UAAA,GAERA,CAAC;EAAEC;AAAS,CAAE,kBACjBC,IAAA,CAAC;EACC,eAAY;EACZD,SAAA,EAAW,CAAC,QAAQA,SAAA,CAAU,CAACE,MAAM,CAACC,OAAA,EAASC,IAAI,CAAC;EACpDC,IAAA,EAAK;EACLC,SAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,OAAA,EAAQ;EACRC,KAAA,EAAO;EACPC,KAAA,EAAM;YAEN,aAAAT,IAAA,CAAC;IAAKU,QAAA,EAAS;IAAUC,CAAA,EAAGd,IAAA;IAAMO,IAAA,EAAK;IAAeQ,QAAA,EAAS","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"createBlockNode.d.ts","sourceRoot":"","sources":["../../../../src/lexical/utils/markdown/createBlockNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAA;AAErG,eAAO,MAAM,eAAe,eACd,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,WAAW,KAChD,kBAAkB,CAAC,SAAS,CAS9B,CAAA"}
1
+ {"version":3,"file":"createBlockNode.d.ts","sourceRoot":"","sources":["../../../../src/lexical/utils/markdown/createBlockNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAA;AAErG,eAAO,MAAM,eAAe,GAC1B,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,WAAW,KAChD,kBAAkB,CAAC,SAAS,CAS9B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"populateLexicalPopulationPromises.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/populateLexicalPopulationPromises.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C,MAAM,MAAM,IAAI,GAAG;IACjB,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D,iBAAiB,EAAE,OAAO,CAAA;CAC3B,GAAG,UAAU,CACZ,WAAW,CAAC,eAAe,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAC/F,CAAC,CAAC,CAAC,CAAA;AAEJ;;GAEG;AACH,eAAO,MAAM,iCAAiC,iNAgB3C,IAAI,SAoCN,CAAA"}
1
+ {"version":3,"file":"populateLexicalPopulationPromises.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/populateLexicalPopulationPromises.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C,MAAM,MAAM,IAAI,GAAG;IACjB,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D,iBAAiB,EAAE,OAAO,CAAA;CAC3B,GAAG,UAAU,CACZ,WAAW,CAAC,eAAe,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAC/F,CAAC,CAAC,CAAC,CAAA;AAEJ;;GAEG;AACH,eAAO,MAAM,iCAAiC,GAAI,8MAgB/C,IAAI,SAoCN,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"recursivelyPopulateFieldsForGraphQL.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIhF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,cAAc,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,OAAO,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IACnC,GAAG,EAAE,cAAc,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,mCAAmC,8LAgB7C,wBAAwB,KAAG,IA0B7B,CAAA"}
1
+ {"version":3,"file":"recursivelyPopulateFieldsForGraphQL.d.ts","sourceRoot":"","sources":["../../src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIhF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,cAAc,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC/D;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,cAAc,EAAE,OAAO,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAA;IACnC,GAAG,EAAE,cAAc,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,mCAAmC,GAAI,2LAgBjD,wBAAwB,KAAG,IA0B7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildEditorState.d.ts","sourceRoot":"","sources":["../../src/utilities/buildEditorState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAA2B,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,qBAAqB,EAAE,EAChE,KAAK,EACL,IAAI,GACL,EAAE;IACD,KAAK,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAA;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAyCtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,gBAAgB,CAAC,gBAAgB,CAC1C,CAAA"}
1
+ {"version":3,"file":"buildEditorState.d.ts","sourceRoot":"","sources":["../../src/utilities/buildEditorState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAA2B,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,qBAAqB,EAAE,EAChE,KAAK,EACL,IAAI,GACL,EAAE;IACD,KAAK,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAA;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAuDtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,gBAAgB,CAAC,gBAAgB,CAC1C,CAAA"}
@@ -72,6 +72,19 @@
72
72
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
73
73
  editorJSON.root.children.push(...nodes);
74
74
  }
75
+ if (editorJSON.root.children.length === 0) {
76
+ // An error will be thrown if the root node has no children
77
+ editorJSON.root.children.push({
78
+ type: 'paragraph',
79
+ children: [],
80
+ direction: 'ltr',
81
+ format: '',
82
+ indent: 0,
83
+ textFormat: 0,
84
+ textStyle: '',
85
+ version: 1
86
+ });
87
+ }
75
88
  return editorJSON;
76
89
  }
77
90
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"buildEditorState.js","names":["buildEditorState","nodes","text","editorJSON","root","type","children","direction","format","indent","version","push","detail","mode","style","textFormat","textStyle","length","buildDefaultEditorState"],"sources":["../../src/utilities/buildEditorState.ts"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport type { DefaultNodeTypes, DefaultTypedEditorState, TypedEditorState } from '../nodeTypes.js'\n\n/**\n * Helper to build lexical editor state JSON from text and/or nodes.\n *\n * @param nodes - The nodes to include in the editor state. If you pass the `text` argument, this will append your nodes after the first paragraph node.\n * @param text - The text content to include in the editor state. This will create a paragraph node with a text node for you and set that as the first node.\n * @returns The constructed editor state JSON.\n *\n * @example\n *\n * just passing text:\n *\n * ```ts\n * const editorState = buildEditorState<DefaultNodeTypes>({ text: 'Hello world' }) // result typed as DefaultTypedEditorState\n * ```\n *\n * @example\n *\n * passing nodes:\n *\n * ```ts\n * const editorState = // result typed as TypedEditorState<DefaultNodeTypes | SerializedBlockNode> (or TypedEditorState<SerializedBlockNode>)\n * buildEditorState<DefaultNodeTypes | SerializedBlockNode>({ // or just buildEditorState<SerializedBlockNode> if you *only* want to allow block nodes\n * nodes: [\n * {\n * type: 'block',\n * fields: {\n * id: 'id',\n * blockName: 'Cool block',\n * blockType: 'myBlock',\n * },\n * format: 'left',\n * version: 1,\n * }\n * ],\n * })\n * ```\n */\nexport function buildEditorState<T extends SerializedLexicalNode>({\n nodes,\n text,\n}: {\n nodes?: TypedEditorState<T>['root']['children']\n text?: string\n}): TypedEditorState<T> {\n const editorJSON: DefaultTypedEditorState = {\n root: {\n type: 'root',\n children: [],\n direction: 'ltr',\n format: '',\n indent: 0,\n version: 1,\n },\n }\n\n if (text) {\n editorJSON.root.children.push({\n type: 'paragraph',\n children: [\n {\n type: 'text',\n detail: 0,\n format: 0,\n mode: 'normal',\n style: '',\n text,\n version: 1,\n },\n ],\n direction: 'ltr',\n format: '',\n indent: 0,\n textFormat: 0,\n textStyle: '',\n version: 1,\n })\n }\n\n if (nodes?.length) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n editorJSON.root.children.push(...(nodes as any))\n }\n\n return editorJSON as TypedEditorState<T>\n}\n\n/**\n *\n * Alias for `buildEditorState<DefaultNodeTypes>`\n *\n * @experimental this API may change or be removed in a minor release\n * @internal\n */\nexport const buildDefaultEditorState: typeof buildEditorState<DefaultNodeTypes> =\n buildEditorState<DefaultNodeTypes>\n"],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCA,OAAO,SAASA,iBAAkD;EAChEC,KAAK;EACLC;AAAI,CAIL;EACC,MAAMC,UAAA,GAAsC;IAC1CC,IAAA,EAAM;MACJC,IAAA,EAAM;MACNC,QAAA,EAAU,EAAE;MACZC,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,OAAA,EAAS;IACX;EACF;EAEA,IAAIR,IAAA,EAAM;IACRC,UAAA,CAAWC,IAAI,CAACE,QAAQ,CAACK,IAAI,CAAC;MAC5BN,IAAA,EAAM;MACNC,QAAA,EAAU,CACR;QACED,IAAA,EAAM;QACNO,MAAA,EAAQ;QACRJ,MAAA,EAAQ;QACRK,IAAA,EAAM;QACNC,KAAA,EAAO;QACPZ,IAAA;QACAQ,OAAA,EAAS;MACX,EACD;MACDH,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRM,UAAA,EAAY;MACZC,SAAA,EAAW;MACXN,OAAA,EAAS;IACX;EACF;EAEA,IAAIT,KAAA,EAAOgB,MAAA,EAAQ;IACjB;IACAd,UAAA,CAAWC,IAAI,CAACE,QAAQ,CAACK,IAAI,IAAKV,KAAA;EACpC;EAEA,OAAOE,UAAA;AACT;AAEA;;;;;;;AAOA,OAAO,MAAMe,uBAAA,GACXlB,gBAAA","ignoreList":[]}
1
+ {"version":3,"file":"buildEditorState.js","names":["buildEditorState","nodes","text","editorJSON","root","type","children","direction","format","indent","version","push","detail","mode","style","textFormat","textStyle","length","buildDefaultEditorState"],"sources":["../../src/utilities/buildEditorState.ts"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport type { DefaultNodeTypes, DefaultTypedEditorState, TypedEditorState } from '../nodeTypes.js'\n\n/**\n * Helper to build lexical editor state JSON from text and/or nodes.\n *\n * @param nodes - The nodes to include in the editor state. If you pass the `text` argument, this will append your nodes after the first paragraph node.\n * @param text - The text content to include in the editor state. This will create a paragraph node with a text node for you and set that as the first node.\n * @returns The constructed editor state JSON.\n *\n * @example\n *\n * just passing text:\n *\n * ```ts\n * const editorState = buildEditorState<DefaultNodeTypes>({ text: 'Hello world' }) // result typed as DefaultTypedEditorState\n * ```\n *\n * @example\n *\n * passing nodes:\n *\n * ```ts\n * const editorState = // result typed as TypedEditorState<DefaultNodeTypes | SerializedBlockNode> (or TypedEditorState<SerializedBlockNode>)\n * buildEditorState<DefaultNodeTypes | SerializedBlockNode>({ // or just buildEditorState<SerializedBlockNode> if you *only* want to allow block nodes\n * nodes: [\n * {\n * type: 'block',\n * fields: {\n * id: 'id',\n * blockName: 'Cool block',\n * blockType: 'myBlock',\n * },\n * format: 'left',\n * version: 1,\n * }\n * ],\n * })\n * ```\n */\nexport function buildEditorState<T extends SerializedLexicalNode>({\n nodes,\n text,\n}: {\n nodes?: TypedEditorState<T>['root']['children']\n text?: string\n}): TypedEditorState<T> {\n const editorJSON: DefaultTypedEditorState = {\n root: {\n type: 'root',\n children: [],\n direction: 'ltr',\n format: '',\n indent: 0,\n version: 1,\n },\n }\n\n if (text) {\n editorJSON.root.children.push({\n type: 'paragraph',\n children: [\n {\n type: 'text',\n detail: 0,\n format: 0,\n mode: 'normal',\n style: '',\n text,\n version: 1,\n },\n ],\n direction: 'ltr',\n format: '',\n indent: 0,\n textFormat: 0,\n textStyle: '',\n version: 1,\n })\n }\n\n if (nodes?.length) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n editorJSON.root.children.push(...(nodes as any))\n }\n\n if (editorJSON.root.children.length === 0) {\n // An error will be thrown if the root node has no children\n editorJSON.root.children.push({\n type: 'paragraph',\n children: [],\n direction: 'ltr',\n format: '',\n indent: 0,\n textFormat: 0,\n textStyle: '',\n version: 1,\n })\n }\n\n return editorJSON as TypedEditorState<T>\n}\n\n/**\n *\n * Alias for `buildEditorState<DefaultNodeTypes>`\n *\n * @experimental this API may change or be removed in a minor release\n * @internal\n */\nexport const buildDefaultEditorState: typeof buildEditorState<DefaultNodeTypes> =\n buildEditorState<DefaultNodeTypes>\n"],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCA,OAAO,SAASA,iBAAkD;EAChEC,KAAK;EACLC;AAAI,CAIL;EACC,MAAMC,UAAA,GAAsC;IAC1CC,IAAA,EAAM;MACJC,IAAA,EAAM;MACNC,QAAA,EAAU,EAAE;MACZC,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,OAAA,EAAS;IACX;EACF;EAEA,IAAIR,IAAA,EAAM;IACRC,UAAA,CAAWC,IAAI,CAACE,QAAQ,CAACK,IAAI,CAAC;MAC5BN,IAAA,EAAM;MACNC,QAAA,EAAU,CACR;QACED,IAAA,EAAM;QACNO,MAAA,EAAQ;QACRJ,MAAA,EAAQ;QACRK,IAAA,EAAM;QACNC,KAAA,EAAO;QACPZ,IAAA;QACAQ,OAAA,EAAS;MACX,EACD;MACDH,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRM,UAAA,EAAY;MACZC,SAAA,EAAW;MACXN,OAAA,EAAS;IACX;EACF;EAEA,IAAIT,KAAA,EAAOgB,MAAA,EAAQ;IACjB;IACAd,UAAA,CAAWC,IAAI,CAACE,QAAQ,CAACK,IAAI,IAAKV,KAAA;EACpC;EAEA,IAAIE,UAAA,CAAWC,IAAI,CAACE,QAAQ,CAACW,MAAM,KAAK,GAAG;IACzC;IACAd,UAAA,CAAWC,IAAI,CAACE,QAAQ,CAACK,IAAI,CAAC;MAC5BN,IAAA,EAAM;MACNC,QAAA,EAAU,EAAE;MACZC,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRM,UAAA,EAAY;MACZC,SAAA,EAAW;MACXN,OAAA,EAAS;IACX;EACF;EAEA,OAAOP,UAAA;AACT;AAEA;;;;;;;AAOA,OAAO,MAAMe,uBAAA,GACXlB,gBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"editorConfigFactory.d.ts","sourceRoot":"","sources":["../../src/utilities/editorConfigFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,KAAK,EAA2B,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACjG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,KAAK,EACV,aAAa,EAEb,8BAA8B,EAC/B,MAAM,aAAa,CAAA;AAOpB,eAAO,MAAM,mBAAmB;oBACR;QACpB,MAAM,EAAE,eAAe,CAAA;QACvB,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;IAMxC;;;;;;;OAOG;uBACsB;QACvB,MAAM,EAAE,eAAe,CAAA;QACvB,MAAM,EAAE,8BAA8B,CAAA;QACtC,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,OAAO,CAAC,EAAE,mBAAmB,CAAA;QAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;IAUxC;;OAEG;yBACwB;QACzB,MAAM,EAAE,eAAe,CAAA;QACvB,QAAQ,CAAC,EAAE,aAAa,CAAA;QACxB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,OAAO,CAAC,EAAE,mBAAmB,CAAA;QAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;sBAGtB;QAAE,KAAK,EAAE,aAAa,CAAA;KAAE,KAAG,2BAA2B;iCAMrC;QACjC,MAAM,EAAE,eAAe,CAAA;QACvB,KAAK,EAAE,aAAa,CAAA;QACpB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;CAazC,CAAA;AAED,eAAO,MAAM,2BAA2B,SAAgB;IACtD,MAAM,EAAE,eAAe,CAAA;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,KAAG,OAAO,CAAC;IACV,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,CAAA;IAC5D,kBAAkB,EAAE,wBAAwB,CAAA;IAC5C,eAAe,EAAE,2BAA2B,CAAA;CAC7C,CAyCA,CAAA"}
1
+ {"version":3,"file":"editorConfigFactory.d.ts","sourceRoot":"","sources":["../../src/utilities/editorConfigFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,KAAK,EAA2B,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACjG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,KAAK,EACV,aAAa,EAEb,8BAA8B,EAC/B,MAAM,aAAa,CAAA;AAOpB,eAAO,MAAM,mBAAmB;oBACR;QACpB,MAAM,EAAE,eAAe,CAAA;QACvB,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;IAMxC;;;;;;;OAOG;uBACsB;QACvB,MAAM,EAAE,eAAe,CAAA;QACvB,MAAM,EAAE,8BAA8B,CAAA;QACtC,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,OAAO,CAAC,EAAE,mBAAmB,CAAA;QAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;IAUxC;;OAEG;yBACwB;QACzB,MAAM,EAAE,eAAe,CAAA;QACvB,QAAQ,CAAC,EAAE,aAAa,CAAA;QACxB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,OAAO,CAAC,EAAE,mBAAmB,CAAA;QAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;sBAGtB;QAAE,KAAK,EAAE,aAAa,CAAA;KAAE,KAAG,2BAA2B;iCAMrC;QACjC,MAAM,EAAE,eAAe,CAAA;QACvB,KAAK,EAAE,aAAa,CAAA;QACpB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAC5B,KAAG,OAAO,CAAC,2BAA2B,CAAC;CAazC,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAU,MAAM;IACtD,MAAM,EAAE,eAAe,CAAA;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,KAAG,OAAO,CAAC;IACV,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,CAAA;IAC5D,kBAAkB,EAAE,wBAAwB,CAAA;IAC5C,eAAe,EAAE,2BAA2B,CAAA;CAC7C,CAyCA,CAAA"}
@@ -9,5 +9,6 @@ export declare const useLexicalDocumentDrawer: (args: Parameters<UseDocumentDraw
9
9
  DocumentDrawer: ReturnType<UseDocumentDrawer>[0];
10
10
  documentDrawerSlug: string;
11
11
  DocumentDrawerToggler: ReturnType<UseDocumentDrawer>[1];
12
+ openDocumentDrawer: () => void;
12
13
  };
13
14
  //# sourceMappingURL=useLexicalDocumentDrawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLexicalDocumentDrawer.d.ts","sourceRoot":"","sources":["../../../src/utilities/fieldsDrawer/useLexicalDocumentDrawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAQvD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,KACrC;IACD,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,cAAc,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAChD,kBAAkB,EAAE,MAAM,CAAA;IAC1B,qBAAqB,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;CA4DxD,CAAA"}
1
+ {"version":3,"file":"useLexicalDocumentDrawer.d.ts","sourceRoot":"","sources":["../../../src/utilities/fieldsDrawer/useLexicalDocumentDrawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAQvD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,KACrC;IACD,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,cAAc,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAChD,kBAAkB,EAAE,MAAM,CAAA;IAC1B,qBAAqB,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IACvD,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAkE/B,CAAA"}
@@ -12,14 +12,15 @@ import { useCallback, useEffect, useState } from 'react';
12
12
  * By default, the lexical cursor position may be lost when opening a drawer and clicking somewhere on that drawer.
13
13
  */
14
14
  export const useLexicalDocumentDrawer = args => {
15
- const $ = _c(21);
15
+ const $ = _c(25);
16
16
  const [editor] = useLexicalComposerContext();
17
17
  const [selectionState, setSelectionState] = useState(null);
18
18
  const [wasOpen, setWasOpen] = useState(false);
19
19
  const [DocumentDrawer, DocumentDrawerToggler, t0] = useDocumentDrawer(args);
20
20
  const {
21
21
  closeDrawer,
22
- drawerSlug: documentDrawerSlug
22
+ drawerSlug: documentDrawerSlug,
23
+ openDrawer
23
24
  } = t0;
24
25
  const {
25
26
  modalState
@@ -97,33 +98,48 @@ export const useLexicalDocumentDrawer = args => {
97
98
  }
98
99
  useEffect(t4, t5);
99
100
  let t6;
100
- if ($[13] !== DocumentDrawerToggler || $[14] !== storeSelection) {
101
- t6 = props => _jsx(DocumentDrawerToggler, {
102
- ...props,
103
- onClick: storeSelection
104
- });
105
- $[13] = DocumentDrawerToggler;
101
+ if ($[13] !== openDrawer || $[14] !== storeSelection) {
102
+ t6 = () => {
103
+ storeSelection();
104
+ openDrawer();
105
+ };
106
+ $[13] = openDrawer;
106
107
  $[14] = storeSelection;
107
108
  $[15] = t6;
108
109
  } else {
109
110
  t6 = $[15];
110
111
  }
112
+ const openDocumentDrawer = t6;
111
113
  let t7;
112
- if ($[16] !== DocumentDrawer || $[17] !== closeDocumentDrawer || $[18] !== documentDrawerSlug || $[19] !== t6) {
113
- t7 = {
114
+ if ($[16] !== DocumentDrawerToggler || $[17] !== storeSelection) {
115
+ t7 = props => _jsx(DocumentDrawerToggler, {
116
+ ...props,
117
+ onClick: storeSelection
118
+ });
119
+ $[16] = DocumentDrawerToggler;
120
+ $[17] = storeSelection;
121
+ $[18] = t7;
122
+ } else {
123
+ t7 = $[18];
124
+ }
125
+ let t8;
126
+ if ($[19] !== DocumentDrawer || $[20] !== closeDocumentDrawer || $[21] !== documentDrawerSlug || $[22] !== openDocumentDrawer || $[23] !== t7) {
127
+ t8 = {
114
128
  closeDocumentDrawer,
115
129
  DocumentDrawer,
116
130
  documentDrawerSlug,
117
- DocumentDrawerToggler: t6
131
+ DocumentDrawerToggler: t7,
132
+ openDocumentDrawer
118
133
  };
119
- $[16] = DocumentDrawer;
120
- $[17] = closeDocumentDrawer;
121
- $[18] = documentDrawerSlug;
122
- $[19] = t6;
123
- $[20] = t7;
134
+ $[19] = DocumentDrawer;
135
+ $[20] = closeDocumentDrawer;
136
+ $[21] = documentDrawerSlug;
137
+ $[22] = openDocumentDrawer;
138
+ $[23] = t7;
139
+ $[24] = t8;
124
140
  } else {
125
- t7 = $[20];
141
+ t8 = $[24];
126
142
  }
127
- return t7;
143
+ return t8;
128
144
  };
129
145
  //# sourceMappingURL=useLexicalDocumentDrawer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLexicalDocumentDrawer.js","names":["c","_c","useLexicalComposerContext","useDocumentDrawer","useModal","$getPreviousSelection","$getSelection","$setSelection","useCallback","useEffect","useState","useLexicalDocumentDrawer","args","$","editor","selectionState","setSelectionState","wasOpen","setWasOpen","DocumentDrawer","DocumentDrawerToggler","t0","closeDrawer","drawerSlug","documentDrawerSlug","modalState","t1","read","selection","storeSelection","t2","update","clone","discrete","skipTransforms","restoreSelection","t3","closeDocumentDrawer","t4","t5","thisModalState","isOpen","setTimeout","t6","props","_jsx","onClick","t7"],"sources":["../../../src/utilities/fieldsDrawer/useLexicalDocumentDrawer.tsx"],"sourcesContent":["'use client'\nimport type { UseDocumentDrawer } from '@payloadcms/ui'\nimport type { BaseSelection } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\nimport { useDocumentDrawer, useModal } from '@payloadcms/ui'\nimport { $getPreviousSelection, $getSelection, $setSelection } from 'lexical'\nimport { useCallback, useEffect, useState } from 'react'\n\n/**\n *\n * Wrapper around useDocumentDrawer that restores and saves selection state (cursor position) when opening and closing the drawer.\n * By default, the lexical cursor position may be lost when opening a drawer and clicking somewhere on that drawer.\n */\nexport const useLexicalDocumentDrawer = (\n args: Parameters<UseDocumentDrawer>[0],\n): {\n closeDocumentDrawer: () => void\n DocumentDrawer: ReturnType<UseDocumentDrawer>[0]\n documentDrawerSlug: string\n DocumentDrawerToggler: ReturnType<UseDocumentDrawer>[1]\n} => {\n const [editor] = useLexicalComposerContext()\n const [selectionState, setSelectionState] = useState<BaseSelection | null>(null)\n const [wasOpen, setWasOpen] = useState<boolean>(false)\n\n const [\n DocumentDrawer,\n DocumentDrawerToggler,\n { closeDrawer: closeDrawer, drawerSlug: documentDrawerSlug },\n ] = useDocumentDrawer(args)\n const { modalState } = useModal()\n\n const storeSelection = useCallback(() => {\n editor.read(() => {\n const selection = $getSelection() ?? $getPreviousSelection()\n setSelectionState(selection)\n })\n setWasOpen(true)\n }, [editor])\n\n const restoreSelection = useCallback(() => {\n if (selectionState) {\n editor.update(\n () => {\n $setSelection(selectionState.clone())\n },\n { discrete: true, skipTransforms: true },\n )\n }\n }, [editor, selectionState])\n\n const closeDocumentDrawer = () => {\n //restoreSelection() // Should already be stored by the useEffect below\n closeDrawer()\n }\n\n // We need to handle drawer closing via a useEffect, as toggleDrawer / closeDrawer will not be triggered if the drawer\n // is closed by clicking outside of the drawer. This useEffect will handle everything.\n useEffect(() => {\n if (!wasOpen) {\n return\n }\n\n const thisModalState = modalState[documentDrawerSlug]\n // Exists in modalState (thus has opened at least once before) and is closed\n if (thisModalState && !thisModalState?.isOpen) {\n setWasOpen(false)\n setTimeout(() => {\n restoreSelection()\n }, 1)\n }\n }, [modalState, documentDrawerSlug, restoreSelection, wasOpen])\n\n return {\n closeDocumentDrawer,\n DocumentDrawer,\n documentDrawerSlug,\n DocumentDrawerToggler: (props) => <DocumentDrawerToggler {...props} onClick={storeSelection} />,\n }\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AAIA,SAASC,yBAAyB,QAAQ;AAC1C,SAASC,iBAAiB,EAAEC,QAAQ,QAAQ;AAC5C,SAASC,qBAAqB,EAAEC,aAAa,EAAEC,aAAa,QAAQ;AACpE,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ;AAEjD;;;;;AAKA,OAAO,MAAMC,wBAAA,GAA2BC,IAAA;EAAA,MAAAC,CAAA,GAAAZ,EAAA;EAQtC,OAAAa,MAAA,IAAiBZ,yBAAA;EACjB,OAAAa,cAAA,EAAAC,iBAAA,IAA4CN,QAAA,KAA+B;EAC3E,OAAAO,OAAA,EAAAC,UAAA,IAA8BR,QAAA,MAAkB;EAEhD,OAAAS,cAAA,EAAAC,qBAAA,EAAAC,EAAA,IAIIlB,iBAAA,CAAkBS,IAAA;EADpB;IAAAU,WAAA;IAAAC,UAAA,EAAAC;EAAA,IAAAH,EAA4D;EAE9D;IAAAI;EAAA,IAAuBrB,QAAA;EAAA,IAAAsB,EAAA;EAAA,IAAAb,CAAA,QAAAC,MAAA;IAEYY,EAAA,GAAAA,CAAA;MACjCZ,MAAA,CAAAa,IAAA;QACE,MAAAC,SAAA,GAAkBtB,aAAA,MAAmBD,qBAAA;QACrCW,iBAAA,CAAkBY,SAAA;MAAA,CACpB;MACAV,UAAA,KAAW;IAAA;IACbL,CAAA,MAAAC,MAAA;IAAAD,CAAA,MAAAa,EAAA;EAAA;IAAAA,EAAA,GAAAb,CAAA;EAAA;EANA,MAAAgB,cAAA,GAAuBH,EAMZ;EAAA,IAAAI,EAAA;EAAA,IAAAjB,CAAA,QAAAC,MAAA,IAAAD,CAAA,QAAAE,cAAA;IAE0Be,EAAA,GAAAA,CAAA;MAAA,IAC/Bf,cAAA;QACFD,MAAA,CAAAiB,MAAA;UAEIxB,aAAA,CAAcQ,cAAA,CAAAiB,KAAA,CAAoB;QAAA;UAAAC,QAAA;UAAAC,cAAA;QAAA,CAEG;MAAA;IAAA;IAG7CrB,CAAA,MAAAC,MAAA;IAAAD,CAAA,MAAAE,cAAA;IAAAF,CAAA,MAAAiB,EAAA;EAAA;IAAAA,EAAA,GAAAjB,CAAA;EAAA;EATA,MAAAsB,gBAAA,GAAyBL,EASE;EAAA,IAAAM,EAAA;EAAA,IAAAvB,CAAA,QAAAS,WAAA;IAECc,EAAA,GAAAA,CAAA;MAE1Bd,WAAA;IAAA;IACFT,CAAA,MAAAS,WAAA;IAAAT,CAAA,MAAAuB,EAAA;EAAA;IAAAA,EAAA,GAAAvB,CAAA;EAAA;EAHA,MAAAwB,mBAAA,GAA4BD,EAG5B;EAAA,IAAAE,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAA1B,CAAA,QAAAW,kBAAA,IAAAX,CAAA,QAAAY,UAAA,IAAAZ,CAAA,QAAAsB,gBAAA,IAAAtB,CAAA,SAAAI,OAAA;IAIUqB,EAAA,GAAAA,CAAA;MAAA,KACHrB,OAAA;QAAA;MAAA;MAIL,MAAAuB,cAAA,GAAuBf,UAAU,CAACD,kBAAA;MAAmB,IAEjDgB,cAAA,KAAmBA,cAAA,EAAAC,MAAgB;QACrCvB,UAAA,MAAW;QACXwB,UAAA;UACEP,gBAAA;QAAA,IACC;MAAA;IAAA;IAEJI,EAAA,IAACd,UAAA,EAAYD,kBAAA,EAAoBW,gBAAA,EAAkBlB,OAAA;IAAQJ,CAAA,MAAAW,kBAAA;IAAAX,CAAA,MAAAY,UAAA;IAAAZ,CAAA,MAAAsB,gBAAA;IAAAtB,CAAA,OAAAI,OAAA;IAAAJ,CAAA,OAAAyB,EAAA;IAAAzB,CAAA,OAAA0B,EAAA;EAAA;IAAAD,EAAA,GAAAzB,CAAA;IAAA0B,EAAA,GAAA1B,CAAA;EAAA;EAb9DJ,SAAA,CAAU6B,EAaV,EAAGC,EAA2D;EAAA,IAAAI,EAAA;EAAA,IAAA9B,CAAA,SAAAO,qBAAA,IAAAP,CAAA,SAAAgB,cAAA;IAMrCc,EAAA,GAAAC,KAAA,IAAWC,IAAA,CAACzB,qBAAA;MAAA,GAA0BwB,KAAK;MAAAE,OAAA,EAAWjB;IAAA,C;;;;;;;;;IAJxEkB,EAAA;MAAAV,mBAAA;MAAAlB,cAAA;MAAAK,kBAAA;MAAAJ,qBAAA,EAIkBuB;;IACzB9B,CAAA,OAAAM,cAAA;IAAAN,CAAA,OAAAwB,mBAAA;IAAAxB,CAAA,OAAAW,kBAAA;IAAAX,CAAA,OAAA8B,EAAA;IAAA9B,CAAA,OAAAkC,EAAA;EAAA;IAAAA,EAAA,GAAAlC,CAAA;EAAA;EAAA,OALOkC,EAKP;AAAA,CACF","ignoreList":[]}
1
+ {"version":3,"file":"useLexicalDocumentDrawer.js","names":["c","_c","useLexicalComposerContext","useDocumentDrawer","useModal","$getPreviousSelection","$getSelection","$setSelection","useCallback","useEffect","useState","useLexicalDocumentDrawer","args","$","editor","selectionState","setSelectionState","wasOpen","setWasOpen","DocumentDrawer","DocumentDrawerToggler","t0","closeDrawer","drawerSlug","documentDrawerSlug","openDrawer","modalState","t1","read","selection","storeSelection","t2","update","clone","discrete","skipTransforms","restoreSelection","t3","closeDocumentDrawer","t4","t5","thisModalState","isOpen","setTimeout","t6","openDocumentDrawer","t7","props","_jsx","onClick","t8"],"sources":["../../../src/utilities/fieldsDrawer/useLexicalDocumentDrawer.tsx"],"sourcesContent":["'use client'\nimport type { UseDocumentDrawer } from '@payloadcms/ui'\nimport type { BaseSelection } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\nimport { useDocumentDrawer, useModal } from '@payloadcms/ui'\nimport { $getPreviousSelection, $getSelection, $setSelection } from 'lexical'\nimport { useCallback, useEffect, useState } from 'react'\n\n/**\n *\n * Wrapper around useDocumentDrawer that restores and saves selection state (cursor position) when opening and closing the drawer.\n * By default, the lexical cursor position may be lost when opening a drawer and clicking somewhere on that drawer.\n */\nexport const useLexicalDocumentDrawer = (\n args: Parameters<UseDocumentDrawer>[0],\n): {\n closeDocumentDrawer: () => void\n DocumentDrawer: ReturnType<UseDocumentDrawer>[0]\n documentDrawerSlug: string\n DocumentDrawerToggler: ReturnType<UseDocumentDrawer>[1]\n openDocumentDrawer: () => void\n} => {\n const [editor] = useLexicalComposerContext()\n const [selectionState, setSelectionState] = useState<BaseSelection | null>(null)\n const [wasOpen, setWasOpen] = useState<boolean>(false)\n\n const [\n DocumentDrawer,\n DocumentDrawerToggler,\n { closeDrawer: closeDrawer, drawerSlug: documentDrawerSlug, openDrawer },\n ] = useDocumentDrawer(args)\n const { modalState } = useModal()\n\n const storeSelection = useCallback(() => {\n editor.read(() => {\n const selection = $getSelection() ?? $getPreviousSelection()\n setSelectionState(selection)\n })\n setWasOpen(true)\n }, [editor])\n\n const restoreSelection = useCallback(() => {\n if (selectionState) {\n editor.update(\n () => {\n $setSelection(selectionState.clone())\n },\n { discrete: true, skipTransforms: true },\n )\n }\n }, [editor, selectionState])\n\n const closeDocumentDrawer = () => {\n //restoreSelection() // Should already be stored by the useEffect below\n closeDrawer()\n }\n\n // We need to handle drawer closing via a useEffect, as toggleDrawer / closeDrawer will not be triggered if the drawer\n // is closed by clicking outside of the drawer. This useEffect will handle everything.\n useEffect(() => {\n if (!wasOpen) {\n return\n }\n\n const thisModalState = modalState[documentDrawerSlug]\n // Exists in modalState (thus has opened at least once before) and is closed\n if (thisModalState && !thisModalState?.isOpen) {\n setWasOpen(false)\n setTimeout(() => {\n restoreSelection()\n }, 1)\n }\n }, [modalState, documentDrawerSlug, restoreSelection, wasOpen])\n\n const openDocumentDrawer = useCallback(() => {\n storeSelection()\n openDrawer()\n }, [storeSelection, openDrawer])\n\n return {\n closeDocumentDrawer,\n DocumentDrawer,\n documentDrawerSlug,\n DocumentDrawerToggler: (props) => <DocumentDrawerToggler {...props} onClick={storeSelection} />,\n openDocumentDrawer,\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"useLexicalDrawer.d.ts","sourceRoot":"","sources":["../../../src/utilities/fieldsDrawer/useLexicalDrawer.tsx"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAU,MAAM,gBAAgB,OAAO;;;CAoEnE,CAAA"}
1
+ {"version":3,"file":"useLexicalDrawer.d.ts","sourceRoot":"","sources":["../../../src/utilities/fieldsDrawer/useLexicalDrawer.tsx"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,cAAc,OAAO;;;CAoEnE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLexicalListDrawer.d.ts","sourceRoot":"","sources":["../../../src/utilities/fieldsDrawer/useLexicalListDrawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAc5C;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KACjC;IACD,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IACxC,cAAc,EAAE,MAAM,CAAA;IACtB,iBAAiB,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,cAAc,EAAE,CAAC,SAAS,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;CAsFpD,CAAA"}
1
+ {"version":3,"file":"useLexicalListDrawer.d.ts","sourceRoot":"","sources":["../../../src/utilities/fieldsDrawer/useLexicalListDrawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAc5C;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KACjC;IACD,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IACxC,cAAc,EAAE,MAAM,CAAA;IACtB,iBAAiB,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,cAAc,EAAE,CAAC,SAAS,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;CAsFpD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"generateImportMap.d.ts","sourceRoot":"","sources":["../../src/utilities/generateImportMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,eAAO,MAAM,oBAAoB,SACxB;IACL,iBAAiB,CAAC,EAAE,kBAAkB,CAAA;IACtC,kBAAkB,EAAE,wBAAwB,CAAA;CAC7C,KAAG,eAAe,CAAC,mBAAmB,CAiDtC,CAAA"}
1
+ {"version":3,"file":"generateImportMap.d.ts","sourceRoot":"","sources":["../../src/utilities/generateImportMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,eAAO,MAAM,oBAAoB,GAC9B,MAAM;IACL,iBAAiB,CAAC,EAAE,kBAAkB,CAAA;IACtC,kBAAkB,EAAE,wBAAwB,CAAA;CAC7C,KAAG,eAAe,CAAC,mBAAmB,CAiDtC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"generateSchemaMap.d.ts","sourceRoot":"","sources":["../../src/utilities/generateSchemaMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAE1E,eAAO,MAAM,oBAAoB,SACxB;IAAE,kBAAkB,EAAE,wBAAwB,CAAA;CAAE,KAAG,eAAe,CAAC,mBAAmB,CAsC5F,CAAA"}
1
+ {"version":3,"file":"generateSchemaMap.d.ts","sourceRoot":"","sources":["../../src/utilities/generateSchemaMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAE1E,eAAO,MAAM,oBAAoB,GAC9B,MAAM;IAAE,kBAAkB,EAAE,wBAAwB,CAAA;CAAE,KAAG,eAAe,CAAC,mBAAmB,CAsC5F,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultSanitizedEditorConfig.d.ts","sourceRoot":"","sources":["../../src/utilities/getDefaultSanitizedEditorConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAgB9D,eAAO,MAAM,+BAA+B,SAAgB;IAC1D,MAAM,EAAE,eAAe,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KAAG,OAAO,CAAC,2BAA2B,CAoBtC,CAAA"}
1
+ {"version":3,"file":"getDefaultSanitizedEditorConfig.d.ts","sourceRoot":"","sources":["../../src/utilities/getDefaultSanitizedEditorConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAgB9D,eAAO,MAAM,+BAA+B,GAAU,MAAM;IAC1D,MAAM,EAAE,eAAe,CAAA;IACvB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KAAG,OAAO,CAAC,2BAA2B,CAoBtC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"recurseNodeTree.d.ts","sourceRoot":"","sources":["../../src/utilities/recurseNodeTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAGpD,eAAO,MAAM,eAAe,0CAIzB;IACD,cAAc,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACxC,SAAS,CAAC,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAA;KACrC,CAAA;IACD,KAAK,EAAE,qBAAqB,EAAE,CAAA;CAC/B,KAAG,IA+BH,CAAA"}
1
+ {"version":3,"file":"recurseNodeTree.d.ts","sourceRoot":"","sources":["../../src/utilities/recurseNodeTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAGpD,eAAO,MAAM,eAAe,GAAI,uCAI7B;IACD,cAAc,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACxC,SAAS,CAAC,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAA;KACrC,CAAA;IACD,KAAK,EAAE,qBAAqB,EAAE,CAAA;CAC/B,KAAG,IA+BH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"upgradeDocumentFieldsRecursively.d.ts","sourceRoot":"","sources":["../../../src/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAkB,OAAO,EAAE,MAAM,SAAS,CAAA;AAS7D,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE7B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,gCAAgC,sCAK1C,wBAAwB,KAAG,MAgG7B,CAAA"}
1
+ {"version":3,"file":"upgradeDocumentFieldsRecursively.d.ts","sourceRoot":"","sources":["../../../src/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAkB,OAAO,EAAE,MAAM,SAAS,CAAA;AAS7D,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE7B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,gCAAgC,GAAI,mCAK9C,wBAAwB,KAAG,MAgG7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLexicalFeature.d.ts","sourceRoot":"","sources":["../../src/utilities/useLexicalFeature.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAIvE,eAAO,MAAM,iBAAiB,GAAI,kBAAkB,cACtC,MAAM,WACT,qBAAqB,CAAC,kBAAkB,CAAC,SAenD,CAAA"}
1
+ {"version":3,"file":"useLexicalFeature.d.ts","sourceRoot":"","sources":["../../src/utilities/useLexicalFeature.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAIvE,eAAO,MAAM,iBAAiB,GAAI,kBAAkB,EAClD,YAAY,MAAM,EAClB,SAAS,qBAAqB,CAAC,kBAAkB,CAAC,SAenD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAK7E,eAAO,MAAM,mBAAmB,sBAE7B;IACD,YAAY,EAAE,2BAA2B,CAAA;CAC1C,8GAiCA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAK7E,eAAO,MAAM,mBAAmB,GAAI,mBAEjC;IACD,YAAY,EAAE,2BAA2B,CAAA;CAC1C,8GAiCA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/richtext-lexical",
3
- "version": "4.0.0-internal.5b1e7cd",
3
+ "version": "4.0.0-internal.c2b57ce",
4
4
  "description": "The officially supported Lexical richtext adapter for Payload",
5
5
  "homepage": "https://payloadcms.com",
6
6
  "repository": {
@@ -63,11 +63,6 @@
63
63
  "types": "./dist/exports/server/rsc.d.ts",
64
64
  "default": "./dist/exports/server/rsc.js"
65
65
  },
66
- "./migrate": {
67
- "import": "./dist/exports/server/migrate.js",
68
- "types": "./dist/exports/server/migrate.d.ts",
69
- "default": "./dist/exports/server/migrate.js"
70
- },
71
66
  "./lexical": {
72
67
  "import": "./dist/lexical-proxy/lexical.js",
73
68
  "types": "./dist/lexical-proxy/lexical.d.ts",
@@ -366,20 +361,20 @@
366
361
  "@lexical/utils": "0.41.0",
367
362
  "acorn": "8.16.0",
368
363
  "bson-objectid": "2.0.4",
369
- "csstype": "3.1.3",
364
+ "csstype": "3.2.3",
370
365
  "dequal": "2.0.3",
371
366
  "escape-html": "1.0.3",
372
- "jsox": "1.2.121",
367
+ "jsox": "1.2.125",
373
368
  "lexical": "0.41.0",
374
- "mdast-util-from-markdown": "2.0.2",
375
- "mdast-util-mdx-jsx": "3.1.3",
376
- "micromark-extension-mdx-jsx": "3.0.1",
369
+ "mdast-util-from-markdown": "2.0.3",
370
+ "mdast-util-mdx-jsx": "3.2.0",
371
+ "micromark-extension-mdx-jsx": "3.0.2",
377
372
  "qs-esm": "8.0.1",
378
- "react-error-boundary": "4.1.2",
373
+ "react-error-boundary": "6.1.1",
379
374
  "ts-essentials": "10.0.3",
380
- "uuid": "11.1.0",
381
- "@payloadcms/translations": "4.0.0-internal.5b1e7cd",
382
- "@payloadcms/ui": "4.0.0-internal.5b1e7cd"
375
+ "uuid": "14.0.0",
376
+ "@payloadcms/translations": "4.0.0-internal.c2b57ce",
377
+ "@payloadcms/ui": "4.0.0-internal.c2b57ce"
383
378
  },
384
379
  "devDependencies": {
385
380
  "@babel/cli": "7.27.2",
@@ -390,8 +385,8 @@
390
385
  "@lexical/eslint-plugin": "0.41.0",
391
386
  "@types/escape-html": "1.0.4",
392
387
  "@types/json-schema": "7.0.15",
393
- "@types/node": "22.15.30",
394
- "@types/react": "19.2.9",
388
+ "@types/node": "24.12.3",
389
+ "@types/react": "19.2.14",
395
390
  "@types/react-dom": "19.2.3",
396
391
  "babel-plugin-react-compiler": "19.1.0-rc.3",
397
392
  "babel-plugin-transform-remove-imports": "^1.8.0",
@@ -399,18 +394,18 @@
399
394
  "esbuild-sass-plugin": "3.3.1",
400
395
  "swc-plugin-transform-remove-imports": "8.3.0",
401
396
  "@payloadcms/eslint-config": "3.28.0",
402
- "payload": "4.0.0-internal.5b1e7cd"
397
+ "payload": "4.0.0-internal.c2b57ce"
403
398
  },
404
399
  "peerDependencies": {
405
400
  "@faceless-ui/modal": "3.0.0",
406
401
  "@faceless-ui/scroll-info": "2.0.0",
407
402
  "react": "^19.0.1 || ^19.1.2 || ^19.2.1",
408
403
  "react-dom": "^19.0.1 || ^19.1.2 || ^19.2.1",
409
- "@payloadcms/next": "4.0.0-internal.5b1e7cd",
410
- "payload": "4.0.0-internal.5b1e7cd"
404
+ "@payloadcms/next": "4.0.0-internal.c2b57ce",
405
+ "payload": "4.0.0-internal.c2b57ce"
411
406
  },
412
407
  "engines": {
413
- "node": "^18.20.2 || >=20.9.0"
408
+ "node": ">=24.15.0"
414
409
  },
415
410
  "publishConfig": {
416
411
  "registry": "https://registry.npmjs.org/"
@@ -1,2 +0,0 @@
1
- "use client";import{jsx as o,jsxs as t}from"react/jsx-runtime";import"react";var c=n=>{let{data:e}=n;return t("div",{children:["Unknown converted Slate node: ",o("strong",{children:e?.nodeType})]})};export{c as UnknownConvertedNodeComponent};
2
- //# sourceMappingURL=Component-DOSSWC76.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx"],
4
- "sourcesContent": ["'use client'\nimport React from 'react'\n\nimport type { UnknownConvertedNodeData } from './index.js'\n\nimport './index.scss'\n\ntype Props = {\n data: UnknownConvertedNodeData\n}\n\nexport const UnknownConvertedNodeComponent: React.FC<Props> = (props) => {\n const { data } = props\n\n return (\n <div>\n Unknown converted Slate node: <strong>{data?.nodeType}</strong>\n </div>\n )\n}\n"],
5
- "mappings": "+DACA,MAAkB,QAUX,IAAMA,EAAkDC,GAAA,CAC7D,GAAM,CAAEC,KAAAA,CAAI,EAAKD,EAEjB,OACEE,EAAC,MAAA,WAAI,iCAC2BC,EAAC,SAAA,UAAQF,GAAMG,aAGnD",
6
- "names": ["UnknownConvertedNodeComponent", "props", "data", "_jsxs", "_jsx", "nodeType"]
7
- }
@@ -1,2 +0,0 @@
1
- "use client";import{jsx as e,jsxs as t}from"react/jsx-runtime";import"react";var a=n=>{let{data:o}=n;return t("div",{children:["Unknown converted payload-plugin-lexical node: ",e("strong",{children:o?.nodeType})]})};export{a as UnknownConvertedNodeComponent};
2
- //# sourceMappingURL=Component-MBLHTKDK.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx"],
4
- "sourcesContent": ["'use client'\nimport React from 'react'\n\nimport type { UnknownConvertedNodeData } from './index.js'\n\nimport './index.scss'\n\ntype Props = {\n data: UnknownConvertedNodeData\n}\n\nexport const UnknownConvertedNodeComponent: React.FC<Props> = (props) => {\n const { data } = props\n\n return (\n <div>\n Unknown converted payload-plugin-lexical node: <strong>{data?.nodeType}</strong>\n </div>\n )\n}\n"],
5
- "mappings": "+DACA,MAAkB,QAUX,IAAMA,EAAkDC,GAAA,CAC7D,GAAM,CAAEC,KAAAA,CAAI,EAAKD,EAEjB,OACEE,EAAC,MAAA,WAAI,kDAC4CC,EAAC,SAAA,UAAQF,GAAMG,aAGpE",
6
- "names": ["UnknownConvertedNodeComponent", "props", "data", "_jsxs", "_jsx", "nodeType"]
7
- }