@payloadcms/richtext-lexical 3.68.0-internal-debug.e9b66ee → 3.68.0-internal-debug.654e4ad

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 (313) hide show
  1. package/dist/cell/rscEntry.js +21 -2
  2. package/dist/cell/rscEntry.js.map +1 -1
  3. package/dist/exports/client/index.d.ts +1 -0
  4. package/dist/exports/client/index.d.ts.map +1 -1
  5. package/dist/exports/client/index.js +1 -0
  6. package/dist/exports/client/index.js.map +1 -1
  7. package/dist/exports/client/internal-client.d.ts +3 -0
  8. package/dist/exports/client/internal-client.d.ts.map +1 -0
  9. package/dist/exports/client/internal-client.js +4 -0
  10. package/dist/exports/client/internal-client.js.map +1 -0
  11. package/dist/exports/react/index.d.ts +1 -1
  12. package/dist/exports/react/index.d.ts.map +1 -1
  13. package/dist/exports/react/index.js.map +1 -1
  14. package/dist/features/blocks/client/component/BlockContent.js +48 -13
  15. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  16. package/dist/features/blocks/client/component/components/BlockCollapsible.js +10 -1
  17. package/dist/features/blocks/client/component/components/BlockCollapsible.js.map +1 -1
  18. package/dist/features/blocks/client/component/components/BlockEditButton.js +7 -1
  19. package/dist/features/blocks/client/component/components/BlockEditButton.js.map +1 -1
  20. package/dist/features/blocks/client/component/components/BlockRemoveButton.js +7 -1
  21. package/dist/features/blocks/client/component/components/BlockRemoveButton.js.map +1 -1
  22. package/dist/features/blocks/client/component/index.js +247 -81
  23. package/dist/features/blocks/client/component/index.js.map +1 -1
  24. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js +9 -1
  25. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js.map +1 -1
  26. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js +7 -1
  27. package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js.map +1 -1
  28. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js +7 -1
  29. package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js.map +1 -1
  30. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js +7 -1
  31. package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js.map +1 -1
  32. package/dist/features/blocks/client/componentInline/index.js +217 -68
  33. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  34. package/dist/features/blocks/client/getBlockImageComponent.js +15 -4
  35. package/dist/features/blocks/client/getBlockImageComponent.js.map +1 -1
  36. package/dist/features/blocks/client/nodes/BlocksNode.js +12 -1
  37. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  38. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +12 -2
  39. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  40. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +127 -26
  41. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  42. package/dist/features/blocks/premade/CodeBlock/Component/Code.js +65 -49
  43. package/dist/features/blocks/premade/CodeBlock/Component/Code.js.map +1 -1
  44. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +16 -3
  45. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  46. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +25 -4
  47. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  48. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +2 -14
  49. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  50. package/dist/features/converters/lexicalToJSX/Component/index.js +16 -10
  51. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  52. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js +8 -1
  53. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  54. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +8 -1
  55. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  56. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js +6 -1
  57. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  58. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js +6 -1
  59. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  60. package/dist/features/converters/lexicalToJSX/converter/converters/link.js +19 -10
  61. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  62. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +63 -16
  63. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  64. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js +19 -4
  65. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  66. package/dist/features/converters/lexicalToJSX/converter/converters/table.js +45 -12
  67. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  68. package/dist/features/converters/lexicalToJSX/converter/converters/text.js +57 -11
  69. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  70. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +46 -7
  71. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  72. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +16 -1
  73. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  74. package/dist/features/converters/lexicalToJSX/converter/index.js +98 -9
  75. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  76. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +14 -10
  77. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  78. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  79. package/dist/features/debug/jsxConverter/client/plugin/index.js +17 -4
  80. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  81. package/dist/features/debug/testRecorder/client/plugin/index.js +113 -38
  82. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  83. package/dist/features/debug/treeView/client/plugin/index.js +15 -1
  84. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  85. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +357 -79
  86. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  87. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +41 -7
  88. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  89. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +39 -9
  90. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  91. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +59 -28
  92. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
  93. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +1 -0
  94. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  95. package/dist/features/indent/client/IndentPlugin.js +6 -1
  96. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  97. package/dist/features/link/client/plugins/clickableLink/index.js +7 -1
  98. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -1
  99. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +151 -59
  100. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  101. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +9 -1
  102. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  103. package/dist/features/lists/checklist/client/plugin/index.js +7 -1
  104. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -1
  105. package/dist/features/lists/plugin/index.js +7 -1
  106. package/dist/features/lists/plugin/index.js.map +1 -1
  107. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +18 -3
  108. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  109. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +9 -2
  110. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  111. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +18 -3
  112. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  113. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +9 -2
  114. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  115. package/dist/features/relationship/client/components/RelationshipComponent.js +100 -31
  116. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  117. package/dist/features/relationship/client/drawer/index.js +21 -4
  118. package/dist/features/relationship/client/drawer/index.js.map +1 -1
  119. package/dist/features/relationship/client/nodes/RelationshipNode.js +12 -2
  120. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  121. package/dist/features/relationship/client/plugins/index.js +8 -1
  122. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  123. package/dist/features/textState/feature.client.js +22 -5
  124. package/dist/features/textState/feature.client.js.map +1 -1
  125. package/dist/features/toolbars/fixed/client/Toolbar/index.js +123 -27
  126. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  127. package/dist/features/toolbars/inline/client/Toolbar/index.js +111 -18
  128. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  129. package/dist/features/toolbars/shared/ToolbarButton/index.js +14 -4
  130. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  131. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +135 -56
  132. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  133. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +70 -16
  134. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  135. package/dist/features/upload/client/component/index.js +167 -43
  136. package/dist/features/upload/client/component/index.js.map +1 -1
  137. package/dist/features/upload/client/component/pending/index.js +16 -3
  138. package/dist/features/upload/client/component/pending/index.js.map +1 -1
  139. package/dist/features/upload/client/drawer/index.js +21 -4
  140. package/dist/features/upload/client/drawer/index.js.map +1 -1
  141. package/dist/features/upload/client/nodes/UploadNode.js +17 -3
  142. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  143. package/dist/features/upload/client/plugin/index.js +9 -2
  144. package/dist/features/upload/client/plugin/index.js.map +1 -1
  145. package/dist/field/Diff/converters/listitem/index.js +54 -11
  146. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  147. package/dist/field/Diff/converters/relationship/index.js +60 -18
  148. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  149. package/dist/field/Diff/converters/unknown/index.js +42 -7
  150. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  151. package/dist/field/Diff/converters/upload/index.js +91 -21
  152. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  153. package/dist/field/Diff/index.js +17 -4
  154. package/dist/field/Diff/index.js.map +1 -1
  155. package/dist/field/Field.d.ts.map +1 -1
  156. package/dist/field/Field.js +141 -26
  157. package/dist/field/Field.js.map +1 -1
  158. package/dist/field/RenderLexical/index.js +47 -15
  159. package/dist/field/RenderLexical/index.js.map +1 -1
  160. package/dist/field/RichTextViewProvider.d.ts +83 -0
  161. package/dist/field/RichTextViewProvider.d.ts.map +1 -0
  162. package/dist/field/RichTextViewProvider.js +102 -0
  163. package/dist/field/RichTextViewProvider.js.map +1 -0
  164. package/dist/field/ViewSelector.d.ts +4 -0
  165. package/dist/field/ViewSelector.d.ts.map +1 -0
  166. package/dist/field/ViewSelector.js +90 -0
  167. package/dist/field/ViewSelector.js.map +1 -0
  168. package/dist/field/ViewSelector.scss +34 -0
  169. package/dist/field/index.d.ts +1 -0
  170. package/dist/field/index.d.ts.map +1 -1
  171. package/dist/field/index.js +56 -12
  172. package/dist/field/index.js.map +1 -1
  173. package/dist/field/index.scss +12 -0
  174. package/dist/field/rscEntry.d.ts +1 -1
  175. package/dist/field/rscEntry.d.ts.map +1 -1
  176. package/dist/field/rscEntry.js +21 -1
  177. package/dist/field/rscEntry.js.map +1 -1
  178. package/dist/index.d.ts +1 -1
  179. package/dist/index.d.ts.map +1 -1
  180. package/dist/index.js +3 -1
  181. package/dist/index.js.map +1 -1
  182. package/dist/lexical/EditorPlugin.js +17 -2
  183. package/dist/lexical/EditorPlugin.js.map +1 -1
  184. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  185. package/dist/lexical/LexicalEditor.js +238 -69
  186. package/dist/lexical/LexicalEditor.js.map +1 -1
  187. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  188. package/dist/lexical/LexicalProvider.js +74 -15
  189. package/dist/lexical/LexicalProvider.js.map +1 -1
  190. package/dist/lexical/config/client/EditorConfigProvider.js +11 -2
  191. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  192. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  193. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  194. package/dist/lexical/config/client/sanitize.js +3 -2
  195. package/dist/lexical/config/client/sanitize.js.map +1 -1
  196. package/dist/lexical/config/types.d.ts +4 -0
  197. package/dist/lexical/config/types.d.ts.map +1 -1
  198. package/dist/lexical/config/types.js +3 -1
  199. package/dist/lexical/config/types.js.map +1 -1
  200. package/dist/lexical/nodes/index.d.ts +12 -2
  201. package/dist/lexical/nodes/index.d.ts.map +1 -1
  202. package/dist/lexical/nodes/index.js +187 -2
  203. package/dist/lexical/nodes/index.js.map +1 -1
  204. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +28 -5
  205. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  206. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts +2 -0
  207. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -0
  208. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +31 -0
  209. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -0
  210. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +14 -1
  211. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
  212. package/dist/lexical/plugins/SlashMenu/index.js +98 -31
  213. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  214. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +27 -7
  215. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  216. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +45 -7
  217. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  218. package/dist/lexical/ui/ContentEditable.js +18 -3
  219. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  220. package/dist/lexical/ui/icons/AI/index.js +58 -10
  221. package/dist/lexical/ui/icons/AI/index.js.map +1 -1
  222. package/dist/lexical/ui/icons/Add/index.js +31 -4
  223. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  224. package/dist/lexical/ui/icons/AlignCenter/index.js +45 -5
  225. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  226. package/dist/lexical/ui/icons/AlignJustify/index.js +45 -5
  227. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  228. package/dist/lexical/ui/icons/AlignLeft/index.js +45 -5
  229. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  230. package/dist/lexical/ui/icons/AlignRight/index.js +45 -5
  231. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  232. package/dist/lexical/ui/icons/Block/index.js +54 -5
  233. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  234. package/dist/lexical/ui/icons/Blockquote/index.js +24 -3
  235. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  236. package/dist/lexical/ui/icons/Bold/index.js +24 -3
  237. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  238. package/dist/lexical/ui/icons/Checklist/index.js +39 -4
  239. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  240. package/dist/lexical/ui/icons/Code/index.js +34 -4
  241. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  242. package/dist/lexical/ui/icons/CodeBlock/index.js +22 -3
  243. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  244. package/dist/lexical/ui/icons/Collapse/index.js +23 -3
  245. package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
  246. package/dist/lexical/ui/icons/H1/index.js +24 -3
  247. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  248. package/dist/lexical/ui/icons/H2/index.js +24 -3
  249. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  250. package/dist/lexical/ui/icons/H3/index.js +24 -3
  251. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  252. package/dist/lexical/ui/icons/H4/index.js +24 -3
  253. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  254. package/dist/lexical/ui/icons/H5/index.js +24 -3
  255. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  256. package/dist/lexical/ui/icons/H6/index.js +24 -3
  257. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  258. package/dist/lexical/ui/icons/HorizontalRule/index.js +27 -3
  259. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  260. package/dist/lexical/ui/icons/IndentDecrease/index.js +53 -6
  261. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  262. package/dist/lexical/ui/icons/IndentIncrease/index.js +53 -6
  263. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  264. package/dist/lexical/ui/icons/InlineBlocks/index.js +26 -3
  265. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
  266. package/dist/lexical/ui/icons/Italic/index.js +24 -3
  267. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  268. package/dist/lexical/ui/icons/Link/index.js +25 -3
  269. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  270. package/dist/lexical/ui/icons/Meatballs/index.js +39 -5
  271. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
  272. package/dist/lexical/ui/icons/OrderedList/index.js +61 -7
  273. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  274. package/dist/lexical/ui/icons/Relationship/index.js +58 -10
  275. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  276. package/dist/lexical/ui/icons/Strikethrough/index.js +34 -4
  277. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  278. package/dist/lexical/ui/icons/Subscript/index.js +24 -3
  279. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  280. package/dist/lexical/ui/icons/Superscript/index.js +24 -3
  281. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  282. package/dist/lexical/ui/icons/Table/index.js +24 -3
  283. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  284. package/dist/lexical/ui/icons/Text/index.js +24 -3
  285. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  286. package/dist/lexical/ui/icons/TextState/index.js +18 -12
  287. package/dist/lexical/ui/icons/TextState/index.js.map +1 -1
  288. package/dist/lexical/ui/icons/Underline/index.js +34 -4
  289. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  290. package/dist/lexical/ui/icons/UnorderedList/index.js +81 -8
  291. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  292. package/dist/lexical/ui/icons/Upload/index.js +48 -5
  293. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  294. package/dist/types.d.ts +152 -2
  295. package/dist/types.d.ts.map +1 -1
  296. package/dist/types.js +55 -0
  297. package/dist/types.js.map +1 -1
  298. package/dist/utilities/fieldsDrawer/Drawer.js +41 -16
  299. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  300. package/dist/utilities/fieldsDrawer/DrawerContent.js +42 -10
  301. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  302. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +9 -1
  303. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  304. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js +11 -3
  305. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js.map +1 -1
  306. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  307. package/dist/utilities/generateImportMap.js +1 -0
  308. package/dist/utilities/generateImportMap.js.map +1 -1
  309. package/dist/validate/hasText.d.ts +6 -1
  310. package/dist/validate/hasText.d.ts.map +1 -1
  311. package/dist/validate/hasText.js +10 -4
  312. package/dist/validate/hasText.js.map +1 -1
  313. package/package.json +12 -7
@@ -1,8 +1,29 @@
1
1
  'use client';
2
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
3
+ import React from 'react';
2
4
  export const TableIcon = ()=>{
3
- return <svg className="icon" fill="none" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg">
4
- <path clipRule="evenodd" d="M5.33333 4.5C4.8731 4.5 4.5 4.8731 4.5 5.33333V7.5H9.5V4.5H5.33333ZM5.33333 3.5C4.32081 3.5 3.5 4.32081 3.5 5.33333V14.6667C3.5 15.6792 4.32081 16.5 5.33333 16.5H14.6667C15.6792 16.5 16.5 15.6792 16.5 14.6667V5.33333C16.5 4.32081 15.6792 3.5 14.6667 3.5H5.33333ZM10.5 4.5V7.5H15.5V5.33333C15.5 4.8731 15.1269 4.5 14.6667 4.5H10.5ZM15.5 8.5H10.5V11.5H15.5V8.5ZM15.5 12.5H10.5V15.5H14.6667C15.1269 15.5 15.5 15.1269 15.5 14.6667V12.5ZM9.5 15.5V12.5H4.5V14.6667C4.5 15.1269 4.8731 15.5 5.33333 15.5H9.5ZM4.5 11.5H9.5V8.5H4.5V11.5Z" fill="currentColor" fillRule="evenodd"/>
5
- </svg>;
5
+ return /*#__PURE__*/ _jsxDEV("svg", {
6
+ className: "icon",
7
+ fill: "none",
8
+ height: "20",
9
+ viewBox: "0 0 20 20",
10
+ width: "20",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ children: /*#__PURE__*/ _jsxDEV("path", {
13
+ clipRule: "evenodd",
14
+ d: "M5.33333 4.5C4.8731 4.5 4.5 4.8731 4.5 5.33333V7.5H9.5V4.5H5.33333ZM5.33333 3.5C4.32081 3.5 3.5 4.32081 3.5 5.33333V14.6667C3.5 15.6792 4.32081 16.5 5.33333 16.5H14.6667C15.6792 16.5 16.5 15.6792 16.5 14.6667V5.33333C16.5 4.32081 15.6792 3.5 14.6667 3.5H5.33333ZM10.5 4.5V7.5H15.5V5.33333C15.5 4.8731 15.1269 4.5 14.6667 4.5H10.5ZM15.5 8.5H10.5V11.5H15.5V8.5ZM15.5 12.5H10.5V15.5H14.6667C15.1269 15.5 15.5 15.1269 15.5 14.6667V12.5ZM9.5 15.5V12.5H4.5V14.6667C4.5 15.1269 4.8731 15.5 5.33333 15.5H9.5ZM4.5 11.5H9.5V8.5H4.5V11.5Z",
15
+ fill: "currentColor",
16
+ fillRule: "evenodd"
17
+ }, void 0, false, {
18
+ fileName: "src/lexical/ui/icons/Table/index.tsx",
19
+ lineNumber: 14,
20
+ columnNumber: 7
21
+ }, this)
22
+ }, void 0, false, {
23
+ fileName: "src/lexical/ui/icons/Table/index.tsx",
24
+ lineNumber: 6,
25
+ columnNumber: 5
26
+ }, this);
6
27
  };
7
28
 
8
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lexical/ui/icons/Table/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const TableIcon: React.FC = () => {\n return (\n <svg\n className=\"icon\"\n fill=\"none\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n width=\"20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n clipRule=\"evenodd\"\n d=\"M5.33333 4.5C4.8731 4.5 4.5 4.8731 4.5 5.33333V7.5H9.5V4.5H5.33333ZM5.33333 3.5C4.32081 3.5 3.5 4.32081 3.5 5.33333V14.6667C3.5 15.6792 4.32081 16.5 5.33333 16.5H14.6667C15.6792 16.5 16.5 15.6792 16.5 14.6667V5.33333C16.5 4.32081 15.6792 3.5 14.6667 3.5H5.33333ZM10.5 4.5V7.5H15.5V5.33333C15.5 4.8731 15.1269 4.5 14.6667 4.5H10.5ZM15.5 8.5H10.5V11.5H15.5V8.5ZM15.5 12.5H10.5V15.5H14.6667C15.1269 15.5 15.5 15.1269 15.5 14.6667V12.5ZM9.5 15.5V12.5H4.5V14.6667C4.5 15.1269 4.8731 15.5 5.33333 15.5H9.5ZM4.5 11.5H9.5V8.5H4.5V11.5Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n />\n </svg>\n )\n}\n"],"names":["TableIcon","svg","className","fill","height","viewBox","width","xmlns","path","clipRule","d","fillRule"],"mappings":"AAAA;AAGA,OAAO,MAAMA,YAAsB;IACjC,QACGC,IACCC,UAAU,OACVC,KAAK,OACLC,OAAO,KACPC,QAAQ,YACRC,MAAM,KACNC,MAAM,6BACP;MACC,CAACC,KACCC,SAAS,UACTC,EAAE,khBACFP,KAAK,eACLQ,SAAS,WACT;IACJ,EAAEV;AAEN,EAAC"}
1
+ {"version":3,"sources":["../../../../../src/lexical/ui/icons/Table/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const TableIcon: React.FC = () => {\n return (\n <svg\n className=\"icon\"\n fill=\"none\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n width=\"20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n clipRule=\"evenodd\"\n d=\"M5.33333 4.5C4.8731 4.5 4.5 4.8731 4.5 5.33333V7.5H9.5V4.5H5.33333ZM5.33333 3.5C4.32081 3.5 3.5 4.32081 3.5 5.33333V14.6667C3.5 15.6792 4.32081 16.5 5.33333 16.5H14.6667C15.6792 16.5 16.5 15.6792 16.5 14.6667V5.33333C16.5 4.32081 15.6792 3.5 14.6667 3.5H5.33333ZM10.5 4.5V7.5H15.5V5.33333C15.5 4.8731 15.1269 4.5 14.6667 4.5H10.5ZM15.5 8.5H10.5V11.5H15.5V8.5ZM15.5 12.5H10.5V15.5H14.6667C15.1269 15.5 15.5 15.1269 15.5 14.6667V12.5ZM9.5 15.5V12.5H4.5V14.6667C4.5 15.1269 4.8731 15.5 5.33333 15.5H9.5ZM4.5 11.5H9.5V8.5H4.5V11.5Z\"\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n />\n </svg>\n )\n}\n"],"names":["React","TableIcon","svg","className","fill","height","viewBox","width","xmlns","path","clipRule","d","fillRule"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,OAAO,MAAMC,YAAsB;IACjC,qBACE,QAACC;QACCC,WAAU;QACVC,MAAK;QACLC,QAAO;QACPC,SAAQ;QACRC,OAAM;QACNC,OAAM;kBAEN,cAAA,QAACC;YACCC,UAAS;YACTC,GAAE;YACFP,MAAK;YACLQ,UAAS;;;;;;;;;;;AAIjB,EAAC"}
@@ -1,6 +1,27 @@
1
1
  'use client';
2
- export const TextIcon = ()=><svg aria-hidden="true" className="icon" fill="currentColor" focusable="false" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg">
3
- <path d="M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z" fill="currentColor"/>
4
- </svg>;
2
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
3
+ import React from 'react';
4
+ export const TextIcon = ()=>/*#__PURE__*/ _jsxDEV("svg", {
5
+ "aria-hidden": "true",
6
+ className: "icon",
7
+ fill: "currentColor",
8
+ focusable: "false",
9
+ height: "20",
10
+ viewBox: "0 0 20 20",
11
+ width: "20",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ children: /*#__PURE__*/ _jsxDEV("path", {
14
+ d: "M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",
15
+ fill: "currentColor"
16
+ }, void 0, false, {
17
+ fileName: "src/lexical/ui/icons/Text/index.tsx",
18
+ lineNumber: 15,
19
+ columnNumber: 5
20
+ }, this)
21
+ }, void 0, false, {
22
+ fileName: "src/lexical/ui/icons/Text/index.tsx",
23
+ lineNumber: 5,
24
+ columnNumber: 3
25
+ }, this);
5
26
 
6
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lexical/ui/icons/Text/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const TextIcon: React.FC = () => (\n <svg\n aria-hidden=\"true\"\n className=\"icon\"\n fill=\"currentColor\"\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=\"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n"],"names":["TextIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","path","d"],"mappings":"AAAA;AAGA,OAAO,MAAMA,WAAqB,KAC/BC,IACCC,YAAY,OACZC,UAAU,OACVC,KAAK,eACLC,UAAU,QACVC,OAAO,KACPC,QAAQ,YACRC,MAAM,KACNC,MAAM,6BACP;IACC,CAACC,KACCC,EAAE,2UACFP,KAAK,gBACL;EACJ,EAAEH,KACH"}
1
+ {"version":3,"sources":["../../../../../src/lexical/ui/icons/Text/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const TextIcon: React.FC = () => (\n <svg\n aria-hidden=\"true\"\n className=\"icon\"\n fill=\"currentColor\"\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=\"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n"],"names":["React","TextIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","path","d"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,OAAO,MAAMC,WAAqB,kBAChC,QAACC;QACCC,eAAY;QACZC,WAAU;QACVC,MAAK;QACLC,WAAU;QACVC,QAAO;QACPC,SAAQ;QACRC,OAAM;QACNC,OAAM;kBAEN,cAAA,QAACC;YACCC,GAAE;YACFP,MAAK;;;;;;;;;;aAGV"}
@@ -1,3 +1,4 @@
1
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
1
2
  function kebabToCamelCase(str) {
2
3
  return str.replace(/-([a-z])/g, (_, letter)=>letter.toUpperCase());
3
4
  }
@@ -6,18 +7,23 @@ export const TextStateIcon = ({ css })=>{
6
7
  kebabToCamelCase(key),
7
8
  value
8
9
  ])) : {};
9
- return <span style={{
10
- ...convertedCss,
11
- alignItems: 'center',
12
- borderRadius: '4px',
13
- display: 'flex',
14
- fontSize: '16px',
15
- height: '20px',
16
- justifyContent: 'center',
17
- width: '20px'
18
- }}>
19
- A
20
- </span>;
10
+ return /*#__PURE__*/ _jsxDEV("span", {
11
+ style: {
12
+ ...convertedCss,
13
+ alignItems: 'center',
14
+ borderRadius: '4px',
15
+ display: 'flex',
16
+ fontSize: '16px',
17
+ height: '20px',
18
+ justifyContent: 'center',
19
+ width: '20px'
20
+ },
21
+ children: "A"
22
+ }, void 0, false, {
23
+ fileName: "src/lexical/ui/icons/TextState/index.tsx",
24
+ lineNumber: 15,
25
+ columnNumber: 5
26
+ }, this);
21
27
  };
22
28
 
23
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lexical/ui/icons/TextState/index.tsx"],"sourcesContent":["import type { StyleObject } from '../../../../features/textState/feature.server.js'\n\nfunction kebabToCamelCase(str: string): string {\n return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase())\n}\n\nexport const TextStateIcon: React.FC<{\n css?: StyleObject\n}> = ({ css }) => {\n const convertedCss = css\n ? Object.fromEntries(Object.entries(css).map(([key, value]) => [kebabToCamelCase(key), value]))\n : {}\n\n return (\n <span\n style={{\n ...convertedCss,\n alignItems: 'center',\n borderRadius: '4px',\n display: 'flex',\n fontSize: '16px',\n height: '20px',\n justifyContent: 'center',\n width: '20px',\n }}\n >\n A\n </span>\n )\n}\n"],"names":["kebabToCamelCase","str","replace","_","letter","toUpperCase","TextStateIcon","css","convertedCss","Object","fromEntries","entries","map","key","value","span","style","alignItems","borderRadius","display","fontSize","height","justifyContent","width"],"mappings":"AAEA,SAASA,iBAAiBC,GAAW;IACnC,OAAOA,IAAIC,OAAO,CAAC,aAAa,CAACC,GAAGC,SAAWA,OAAOC,WAAW;AACnE;AAEA,OAAO,MAAMC,gBAER,CAAC,EAAEC,GAAG,EAAE;IACX,MAAMC,eAAeD,MACjBE,OAAOC,WAAW,CAACD,OAAOE,OAAO,CAACJ,KAAKK,GAAG,CAAC,CAAC,CAACC,KAAKC,MAAM,GAAK;YAACd,iBAAiBa;YAAMC;SAAM,KAC3F,CAAC;IAEL,QACGC,KACCC,OAAO;QACL,GAAGR,YAAY;QACfS,YAAY;QACZC,cAAc;QACdC,SAAS;QACTC,UAAU;QACVC,QAAQ;QACRC,gBAAgB;QAChBC,OAAO;IACT,GACD;;IAED,EAAER;AAEN,EAAC"}
1
+ {"version":3,"sources":["../../../../../src/lexical/ui/icons/TextState/index.tsx"],"sourcesContent":["import type { StyleObject } from '../../../../features/textState/feature.server.js'\n\nfunction kebabToCamelCase(str: string): string {\n return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase())\n}\n\nexport const TextStateIcon: React.FC<{\n css?: StyleObject\n}> = ({ css }) => {\n const convertedCss = css\n ? Object.fromEntries(Object.entries(css).map(([key, value]) => [kebabToCamelCase(key), value]))\n : {}\n\n return (\n <span\n style={{\n ...convertedCss,\n alignItems: 'center',\n borderRadius: '4px',\n display: 'flex',\n fontSize: '16px',\n height: '20px',\n justifyContent: 'center',\n width: '20px',\n }}\n >\n A\n </span>\n )\n}\n"],"names":["kebabToCamelCase","str","replace","_","letter","toUpperCase","TextStateIcon","css","convertedCss","Object","fromEntries","entries","map","key","value","span","style","alignItems","borderRadius","display","fontSize","height","justifyContent","width"],"mappings":";AAEA,SAASA,iBAAiBC,GAAW;IACnC,OAAOA,IAAIC,OAAO,CAAC,aAAa,CAACC,GAAGC,SAAWA,OAAOC,WAAW;AACnE;AAEA,OAAO,MAAMC,gBAER,CAAC,EAAEC,GAAG,EAAE;IACX,MAAMC,eAAeD,MACjBE,OAAOC,WAAW,CAACD,OAAOE,OAAO,CAACJ,KAAKK,GAAG,CAAC,CAAC,CAACC,KAAKC,MAAM,GAAK;YAACd,iBAAiBa;YAAMC;SAAM,KAC3F,CAAC;IAEL,qBACE,QAACC;QACCC,OAAO;YACL,GAAGR,YAAY;YACfS,YAAY;YACZC,cAAc;YACdC,SAAS;YACTC,UAAU;YACVC,QAAQ;YACRC,gBAAgB;YAChBC,OAAO;QACT;kBACD;;;;;;AAIL,EAAC"}
@@ -1,7 +1,37 @@
1
1
  'use client';
2
- export const UnderlineIcon = ()=><svg aria-hidden="true" className="icon" fill="currentColor" focusable="false" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg">
3
- <path d="M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z" fill="currentColor"/>
4
- <path d="M5.09961 16.3H14.9016V16.95H5.09961V16.3Z" fill="currentColor"/>
5
- </svg>;
2
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
3
+ import React from 'react';
4
+ export const UnderlineIcon = ()=>/*#__PURE__*/ _jsxDEV("svg", {
5
+ "aria-hidden": "true",
6
+ className: "icon",
7
+ fill: "currentColor",
8
+ focusable: "false",
9
+ height: "20",
10
+ viewBox: "0 0 20 20",
11
+ width: "20",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ children: [
14
+ /*#__PURE__*/ _jsxDEV("path", {
15
+ d: "M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",
16
+ fill: "currentColor"
17
+ }, void 0, false, {
18
+ fileName: "src/lexical/ui/icons/Underline/index.tsx",
19
+ lineNumber: 15,
20
+ columnNumber: 5
21
+ }, this),
22
+ /*#__PURE__*/ _jsxDEV("path", {
23
+ d: "M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",
24
+ fill: "currentColor"
25
+ }, void 0, false, {
26
+ fileName: "src/lexical/ui/icons/Underline/index.tsx",
27
+ lineNumber: 19,
28
+ columnNumber: 5
29
+ }, this)
30
+ ]
31
+ }, void 0, true, {
32
+ fileName: "src/lexical/ui/icons/Underline/index.tsx",
33
+ lineNumber: 5,
34
+ columnNumber: 3
35
+ }, this);
6
36
 
7
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lexical/ui/icons/Underline/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const UnderlineIcon: React.FC = () => (\n <svg\n aria-hidden=\"true\"\n className=\"icon\"\n fill=\"currentColor\"\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=\"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z\"\n fill=\"currentColor\"\n />\n <path d=\"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z\" fill=\"currentColor\" />\n </svg>\n)\n"],"names":["UnderlineIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","path","d"],"mappings":"AAAA;AAGA,OAAO,MAAMA,gBAA0B,KACpCC,IACCC,YAAY,OACZC,UAAU,OACVC,KAAK,eACLC,UAAU,QACVC,OAAO,KACPC,QAAQ,YACRC,MAAM,KACNC,MAAM,6BACP;IACC,CAACC,KACCC,EAAE,gPACFP,KAAK,gBACL;IACF,CAACM,KAAKC,EAAE,4CAA4CP,KAAK,gBAAiB;EAC5E,EAAEH,KACH"}
1
+ {"version":3,"sources":["../../../../../src/lexical/ui/icons/Underline/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const UnderlineIcon: React.FC = () => (\n <svg\n aria-hidden=\"true\"\n className=\"icon\"\n fill=\"currentColor\"\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=\"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z\"\n fill=\"currentColor\"\n />\n <path d=\"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z\" fill=\"currentColor\" />\n </svg>\n)\n"],"names":["React","UnderlineIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","path","d"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,OAAO,MAAMC,gBAA0B,kBACrC,QAACC;QACCC,eAAY;QACZC,WAAU;QACVC,MAAK;QACLC,WAAU;QACVC,QAAO;QACPC,SAAQ;QACRC,OAAM;QACNC,OAAM;;0BAEN,QAACC;gBACCC,GAAE;gBACFP,MAAK;;;;;;0BAEP,QAACM;gBAAKC,GAAE;gBAA4CP,MAAK;;;;;;;;;;;aAE5D"}
@@ -1,11 +1,84 @@
1
1
  'use client';
2
- export const UnorderedListIcon = ()=><svg aria-hidden="true" className="icon" fill="none" focusable="false" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg">
3
- <circle cx="4" cy="5" fill="currentColor" r="1.15" stroke="currentColor" strokeWidth="0.3"/>
4
- <circle cx="4" cy="10" fill="currentColor" r="1.15" stroke="currentColor" strokeWidth="0.3"/>
5
- <circle cx="4" cy="15" fill="currentColor" r="1.15" stroke="currentColor" strokeWidth="0.3"/>
6
- <path d="M17 5H7" stroke="currentColor" strokeWidth="1.5"/>
7
- <path d="M17 10H7" stroke="currentColor" strokeWidth="1.5"/>
8
- <path d="M17 15H7" stroke="currentColor" strokeWidth="1.5"/>
9
- </svg>;
2
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
3
+ import React from 'react';
4
+ export const UnorderedListIcon = ()=>/*#__PURE__*/ _jsxDEV("svg", {
5
+ "aria-hidden": "true",
6
+ className: "icon",
7
+ fill: "none",
8
+ focusable: "false",
9
+ height: "20",
10
+ viewBox: "0 0 20 20",
11
+ width: "20",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ children: [
14
+ /*#__PURE__*/ _jsxDEV("circle", {
15
+ cx: "4",
16
+ cy: "5",
17
+ fill: "currentColor",
18
+ r: "1.15",
19
+ stroke: "currentColor",
20
+ strokeWidth: "0.3"
21
+ }, void 0, false, {
22
+ fileName: "src/lexical/ui/icons/UnorderedList/index.tsx",
23
+ lineNumber: 15,
24
+ columnNumber: 5
25
+ }, this),
26
+ /*#__PURE__*/ _jsxDEV("circle", {
27
+ cx: "4",
28
+ cy: "10",
29
+ fill: "currentColor",
30
+ r: "1.15",
31
+ stroke: "currentColor",
32
+ strokeWidth: "0.3"
33
+ }, void 0, false, {
34
+ fileName: "src/lexical/ui/icons/UnorderedList/index.tsx",
35
+ lineNumber: 16,
36
+ columnNumber: 5
37
+ }, this),
38
+ /*#__PURE__*/ _jsxDEV("circle", {
39
+ cx: "4",
40
+ cy: "15",
41
+ fill: "currentColor",
42
+ r: "1.15",
43
+ stroke: "currentColor",
44
+ strokeWidth: "0.3"
45
+ }, void 0, false, {
46
+ fileName: "src/lexical/ui/icons/UnorderedList/index.tsx",
47
+ lineNumber: 17,
48
+ columnNumber: 5
49
+ }, this),
50
+ /*#__PURE__*/ _jsxDEV("path", {
51
+ d: "M17 5H7",
52
+ stroke: "currentColor",
53
+ strokeWidth: "1.5"
54
+ }, void 0, false, {
55
+ fileName: "src/lexical/ui/icons/UnorderedList/index.tsx",
56
+ lineNumber: 18,
57
+ columnNumber: 5
58
+ }, this),
59
+ /*#__PURE__*/ _jsxDEV("path", {
60
+ d: "M17 10H7",
61
+ stroke: "currentColor",
62
+ strokeWidth: "1.5"
63
+ }, void 0, false, {
64
+ fileName: "src/lexical/ui/icons/UnorderedList/index.tsx",
65
+ lineNumber: 19,
66
+ columnNumber: 5
67
+ }, this),
68
+ /*#__PURE__*/ _jsxDEV("path", {
69
+ d: "M17 15H7",
70
+ stroke: "currentColor",
71
+ strokeWidth: "1.5"
72
+ }, void 0, false, {
73
+ fileName: "src/lexical/ui/icons/UnorderedList/index.tsx",
74
+ lineNumber: 20,
75
+ columnNumber: 5
76
+ }, this)
77
+ ]
78
+ }, void 0, true, {
79
+ fileName: "src/lexical/ui/icons/UnorderedList/index.tsx",
80
+ lineNumber: 5,
81
+ columnNumber: 3
82
+ }, this);
10
83
 
11
84
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"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"],"names":["UnorderedListIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","circle","cx","cy","r","stroke","strokeWidth","path","d"],"mappings":"AAAA;AAGA,OAAO,MAAMA,oBAA8B,KACxCC,IACCC,YAAY,OACZC,UAAU,OACVC,KAAK,OACLC,UAAU,QACVC,OAAO,KACPC,QAAQ,YACRC,MAAM,KACNC,MAAM,6BACP;IACC,CAACC,OAAOC,GAAG,IAAIC,GAAG,IAAIR,KAAK,eAAeS,EAAE,OAAOC,OAAO,eAAeC,YAAY,OAAQ;IAC7F,CAACL,OAAOC,GAAG,IAAIC,GAAG,KAAKR,KAAK,eAAeS,EAAE,OAAOC,OAAO,eAAeC,YAAY,OAAQ;IAC9F,CAACL,OAAOC,GAAG,IAAIC,GAAG,KAAKR,KAAK,eAAeS,EAAE,OAAOC,OAAO,eAAeC,YAAY,OAAQ;IAC9F,CAACC,KAAKC,EAAE,UAAUH,OAAO,eAAeC,YAAY,OAAQ;IAC5D,CAACC,KAAKC,EAAE,WAAWH,OAAO,eAAeC,YAAY,OAAQ;IAC7D,CAACC,KAAKC,EAAE,WAAWH,OAAO,eAAeC,YAAY,OAAQ;EAC/D,EAAEd,KACH"}
1
+ {"version":3,"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"],"names":["React","UnorderedListIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","circle","cx","cy","r","stroke","strokeWidth","path","d"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,OAAO,MAAMC,oBAA8B,kBACzC,QAACC;QACCC,eAAY;QACZC,WAAU;QACVC,MAAK;QACLC,WAAU;QACVC,QAAO;QACPC,SAAQ;QACRC,OAAM;QACNC,OAAM;;0BAEN,QAACC;gBAAOC,IAAG;gBAAIC,IAAG;gBAAIR,MAAK;gBAAeS,GAAE;gBAAOC,QAAO;gBAAeC,aAAY;;;;;;0BACrF,QAACL;gBAAOC,IAAG;gBAAIC,IAAG;gBAAKR,MAAK;gBAAeS,GAAE;gBAAOC,QAAO;gBAAeC,aAAY;;;;;;0BACtF,QAACL;gBAAOC,IAAG;gBAAIC,IAAG;gBAAKR,MAAK;gBAAeS,GAAE;gBAAOC,QAAO;gBAAeC,aAAY;;;;;;0BACtF,QAACC;gBAAKC,GAAE;gBAAUH,QAAO;gBAAeC,aAAY;;;;;;0BACpD,QAACC;gBAAKC,GAAE;gBAAWH,QAAO;gBAAeC,aAAY;;;;;;0BACrD,QAACC;gBAAKC,GAAE;gBAAWH,QAAO;gBAAeC,aAAY;;;;;;;;;;;aAExD"}
@@ -1,8 +1,51 @@
1
1
  'use client';
2
- export const UploadIcon = ()=><svg aria-hidden="true" className="icon" fill="none" focusable="false" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg">
3
- <path 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" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
4
- <path 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" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
5
- <path 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" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
6
- </svg>;
2
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
3
+ import React from 'react';
4
+ export const UploadIcon = ()=>/*#__PURE__*/ _jsxDEV("svg", {
5
+ "aria-hidden": "true",
6
+ className: "icon",
7
+ fill: "none",
8
+ focusable: "false",
9
+ height: "20",
10
+ viewBox: "0 0 20 20",
11
+ width: "20",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ children: [
14
+ /*#__PURE__*/ _jsxDEV("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
+ }, void 0, false, {
20
+ fileName: "src/lexical/ui/icons/Upload/index.tsx",
21
+ lineNumber: 15,
22
+ columnNumber: 5
23
+ }, this),
24
+ /*#__PURE__*/ _jsxDEV("path", {
25
+ 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",
26
+ stroke: "currentColor",
27
+ strokeLinecap: "round",
28
+ strokeLinejoin: "round"
29
+ }, void 0, false, {
30
+ fileName: "src/lexical/ui/icons/Upload/index.tsx",
31
+ lineNumber: 21,
32
+ columnNumber: 5
33
+ }, this),
34
+ /*#__PURE__*/ _jsxDEV("path", {
35
+ 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",
36
+ stroke: "currentColor",
37
+ strokeLinecap: "round",
38
+ strokeLinejoin: "round"
39
+ }, void 0, false, {
40
+ fileName: "src/lexical/ui/icons/Upload/index.tsx",
41
+ lineNumber: 27,
42
+ columnNumber: 5
43
+ }, this)
44
+ ]
45
+ }, void 0, true, {
46
+ fileName: "src/lexical/ui/icons/Upload/index.tsx",
47
+ lineNumber: 5,
48
+ columnNumber: 3
49
+ }, this);
7
50
 
8
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"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"],"names":["UploadIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","path","d","stroke","strokeLinecap","strokeLinejoin"],"mappings":"AAAA;AAGA,OAAO,MAAMA,aAAuB,KACjCC,IACCC,YAAY,OACZC,UAAU,OACVC,KAAK,OACLC,UAAU,QACVC,OAAO,KACPC,QAAQ,YACRC,MAAM,KACNC,MAAM,6BACP;IACC,CAACC,KACCC,EAAE,wKACFC,OAAO,eACPC,cAAc,QACdC,eAAe,SACf;IACF,CAACJ,KACCC,EAAE,iNACFC,OAAO,eACPC,cAAc,QACdC,eAAe,SACf;IACF,CAACJ,KACCC,EAAE,mIACFC,OAAO,eACPC,cAAc,QACdC,eAAe,SACf;EACJ,EAAEb,KACH"}
1
+ {"version":3,"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"],"names":["React","UploadIcon","svg","aria-hidden","className","fill","focusable","height","viewBox","width","xmlns","path","d","stroke","strokeLinecap","strokeLinejoin"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,OAAO,MAAMC,aAAuB,kBAClC,QAACC;QACCC,eAAY;QACZC,WAAU;QACVC,MAAK;QACLC,WAAU;QACVC,QAAO;QACPC,SAAQ;QACRC,OAAM;QACNC,OAAM;;0BAEN,QAACC;gBACCC,GAAE;gBACFC,QAAO;gBACPC,eAAc;gBACdC,gBAAe;;;;;;0BAEjB,QAACJ;gBACCC,GAAE;gBACFC,QAAO;gBACPC,eAAc;gBACdC,gBAAe;;;;;;0BAEjB,QAACJ;gBACCC,GAAE;gBACFC,QAAO;gBACPC,eAAc;gBACdC,gBAAe;;;;;;;;;;;aAGpB"}
package/dist/types.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- import type { EditorConfig as LexicalEditorConfig, SerializedEditorState } from 'lexical';
2
- import type { ClientField, DefaultServerCellComponentProps, LabelFunction, RichTextAdapter, RichTextField, RichTextFieldClient, RichTextFieldClientProps, SanitizedConfig, ServerFieldBase, StaticLabel } from 'payload';
1
+ import type { DecoratorNode, EditorConfig, LexicalEditor, EditorConfig as LexicalEditorConfig, LexicalNode, SerializedEditorState, SerializedLexicalNode } from 'lexical';
2
+ import type { ClientField, DefaultServerCellComponentProps, LabelFunction, PayloadComponent, RichTextAdapter, RichTextField, RichTextFieldClient, RichTextFieldClientProps, SanitizedConfig, ServerFieldBase, StaticLabel } from 'payload';
3
+ import type { JSXConverterArgs } from './features/converters/lexicalToJSX/converter/types.js';
3
4
  import type { BaseClientFeatureProps, FeatureProviderProviderClient } from './features/typesClient.js';
4
5
  import type { FeatureProviderServer } from './features/typesServer.js';
5
6
  import type { SanitizedServerEditorConfig } from './lexical/config/types.js';
7
+ import type { DefaultNodeTypes, SerializedBlockNode, SerializedInlineBlockNode } from './nodeTypes.js';
6
8
  import type { InitialLexicalFormState } from './utilities/buildInitialState.js';
7
9
  export type LexicalFieldAdminProps = {
8
10
  /**
@@ -56,10 +58,156 @@ export type FeaturesInput = (({ defaultFeatures, rootFeatures, }: {
56
58
  */
57
59
  rootFeatures: FeatureProviderServer<any, any, any>[];
58
60
  }) => FeatureProviderServer<any, any, any>[]) | FeatureProviderServer<any, any, any>[];
61
+ type WithinEditorArgs = {
62
+ config: EditorConfig;
63
+ editor: LexicalEditor;
64
+ node: LexicalNode;
65
+ };
66
+ /**
67
+ *
68
+ * @experimental - This API is experimental and may change in a minor release.
69
+ * @internal
70
+ */
71
+ export type NodeMapValue<TNode extends {
72
+ [key: string]: any;
73
+ type?: string;
74
+ } = SerializedLexicalNode> = {
75
+ /**
76
+ * Provide a react component to render the node.
77
+ *
78
+ * **JSX Converter:** Always works. Takes priority over `html`.
79
+ *
80
+ * **Lexical Editor:** Only works for DecoratorNodes (renders in `decorate` method). Takes priority over `html` and `createDOM`.
81
+ */
82
+ Component?: (args: ({
83
+ isEditor: false;
84
+ isJSXConverter: true;
85
+ } & JSXConverterArgs<TNode>) | ({
86
+ isEditor: true;
87
+ isJSXConverter: false;
88
+ node: {
89
+ _originalDecorate?: (editor: LexicalEditor, config: EditorConfig) => React.ReactNode;
90
+ } & DecoratorNode<React.ReactNode>;
91
+ } & Omit<WithinEditorArgs, 'node'>)) => React.ReactNode;
92
+ /**
93
+ * Provide a function to create the DOM element for the node.
94
+ *
95
+ * **JSX Converter:** Not used (only `Component` and `html` work).
96
+ *
97
+ * **Lexical Editor:** Always works (renders in `createDOM` method).
98
+ * - For ElementNodes: This is the standard way to customize rendering.
99
+ * - For DecoratorNodes: When combined with `html`, the DOM gets custom structure while `decorate` renders the `html` content.
100
+ */
101
+ createDOM?: (args: WithinEditorArgs) => HTMLElement;
102
+ /**
103
+ * Provide HTML string or function to render the node.
104
+ *
105
+ * **JSX Converter:** Always works (ignored if `Component` is provided).
106
+ *
107
+ * **Lexical Editor behavior depends on node type:**
108
+ *
109
+ * - **ElementNodes:** `html` is used in `createDOM` to generate the DOM structure.
110
+ *
111
+ * - **DecoratorNodes (have both `createDOM` and `decorate`):**
112
+ * - If only `html` is provided: `createDOM` uses `html` to create DOM, `decorate` returns `null`
113
+ * - If `html` + `Component`: `createDOM` uses `html`, `decorate` uses `Component`
114
+ * - If `html` + `createDOM`: Custom `createDOM` creates structure, `decorate` renders `html` content
115
+ * - If `html` + `Component` + `createDOM`: Custom `createDOM` creates structure, `decorate` uses `Component` (html ignored in editor)
116
+ */
117
+ html?: (args: ({
118
+ isEditor: false;
119
+ isJSXConverter: true;
120
+ } & JSXConverterArgs<TNode>) | ({
121
+ isEditor: true;
122
+ isJSXConverter: false;
123
+ } & WithinEditorArgs)) => string;
124
+ };
125
+ /**
126
+ * @experimental - This API is experimental and may change in a minor release.
127
+ * @internal
128
+ */
129
+ export type LexicalEditorNodeMap<TNodes extends {
130
+ [key: string]: any;
131
+ type?: string;
132
+ } = DefaultNodeTypes | SerializedBlockNode<{
133
+ blockName?: null | string;
134
+ blockType: string;
135
+ }> | SerializedInlineBlockNode<{
136
+ blockName?: null | string;
137
+ blockType: string;
138
+ }>> = {
139
+ [key: string]: {
140
+ [blockSlug: string]: NodeMapValue<any>;
141
+ } | NodeMapValue<any> | undefined;
142
+ } & {
143
+ [nodeType in Exclude<NonNullable<TNodes['type']>, 'block' | 'inlineBlock'>]?: NodeMapValue<Extract<TNodes, {
144
+ type: nodeType;
145
+ }>>;
146
+ } & {
147
+ blocks?: {
148
+ [K in Extract<Extract<TNodes, {
149
+ type: 'block';
150
+ }> extends SerializedBlockNode<infer B> ? B extends {
151
+ blockType: string;
152
+ } ? B['blockType'] : never : never, string>]?: NodeMapValue<Extract<TNodes, {
153
+ type: 'block';
154
+ }> extends SerializedBlockNode<infer B> ? SerializedBlockNode<Extract<B, {
155
+ blockType: K;
156
+ }>> : SerializedBlockNode>;
157
+ };
158
+ inlineBlocks?: {
159
+ [K in Extract<Extract<TNodes, {
160
+ type: 'inlineBlock';
161
+ }> extends SerializedInlineBlockNode<infer B> ? B extends {
162
+ blockType: string;
163
+ } ? B['blockType'] : never : never, string>]?: NodeMapValue<Extract<TNodes, {
164
+ type: 'inlineBlock';
165
+ }> extends SerializedInlineBlockNode<infer B> ? SerializedInlineBlockNode<Extract<B, {
166
+ blockType: K;
167
+ }>> : SerializedInlineBlockNode>;
168
+ };
169
+ unknown?: NodeMapValue<SerializedLexicalNode>;
170
+ };
171
+ /**
172
+ * A map of views, which can be used to render the editor in different ways.
173
+ *
174
+ * In order to override the default view, you can add a `default` key to the map.
175
+ *
176
+ * @experimental - This API is experimental and may change in a minor release.
177
+ * @internal
178
+ */
179
+ export type LexicalEditorViewMap<TNodes extends {
180
+ [key: string]: any;
181
+ type?: string;
182
+ } = DefaultNodeTypes | SerializedBlockNode<{
183
+ blockName?: null | string;
184
+ blockType: string;
185
+ }> | SerializedInlineBlockNode<{
186
+ blockName?: null | string;
187
+ blockType: string;
188
+ }>> = {
189
+ [viewKey: string]: {
190
+ admin?: LexicalFieldAdminClientProps;
191
+ lexical?: LexicalEditorConfig;
192
+ nodes: LexicalEditorNodeMap<TNodes>;
193
+ };
194
+ };
195
+ /**
196
+ * @todo rename to LexicalEditorArgs in 4.0, since these are arguments for the lexicalEditor function
197
+ */
59
198
  export type LexicalEditorProps = {
60
199
  admin?: LexicalFieldAdminProps;
61
200
  features?: FeaturesInput;
62
201
  lexical?: LexicalEditorConfig;
202
+ /**
203
+ * A path to a LexicalEditorViewMap, which can be used to render the editor in different ways.
204
+ *
205
+ * In order to override the default view, you can add a `default` key to the map.
206
+ *
207
+ * @experimental - This API is experimental and may change in a minor release.
208
+ * @internal
209
+ */
210
+ views?: PayloadComponent;
63
211
  };
64
212
  export type LexicalRichTextAdapter = {
65
213
  editorConfig: SanitizedServerEditorConfig;
@@ -96,6 +244,7 @@ export type LexicalRichTextFieldProps = {
96
244
  featureClientSchemaMap: FeatureClientSchemaMap;
97
245
  initialLexicalFormState: InitialLexicalFormState;
98
246
  lexicalEditorConfig: LexicalEditorConfig | undefined;
247
+ views?: LexicalEditorViewMap;
99
248
  } & Pick<ServerFieldBase, 'permissions'> & RichTextFieldClientProps<SerializedEditorState, AdapterProps, object>;
100
249
  export type LexicalRichTextCellProps = DefaultServerCellComponentProps<RichTextFieldClient<SerializedEditorState, AdapterProps, object>, SerializedEditorState>;
101
250
  export type AdapterProps = {
@@ -106,4 +255,5 @@ export type GeneratedFeatureProviderComponent = {
106
255
  clientFeatureProps: BaseClientFeatureProps<object>;
107
256
  };
108
257
  export type LexicalRichTextField = RichTextField<SerializedEditorState, AdapterProps>;
258
+ export {};
109
259
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACzF,OAAO,KAAK,EACV,WAAW,EACX,+BAA+B,EAC/B,aAAa,EACb,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,WAAW,EACZ,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EACV,sBAAsB,EACtB,6BAA6B,EAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACtE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAA;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAE/E,MAAM,MAAM,sBAAsB,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