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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1036) hide show
  1. package/dist/cell/rscEntry.d.ts +1 -1
  2. package/dist/cell/rscEntry.d.ts.map +1 -1
  3. package/dist/cell/rscEntry.js.map +1 -1
  4. package/dist/exports/client/Field-G5Z2HM5Y.js +2 -0
  5. package/dist/exports/client/Field-G5Z2HM5Y.js.map +7 -0
  6. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js +2 -0
  7. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js.map +7 -0
  8. package/dist/exports/client/bundled.css +1 -1
  9. package/dist/exports/client/{chunk-QJ5EETIB.js → chunk-6QWQ7JV4.js} +2 -2
  10. package/dist/exports/client/{chunk-FTT5KJ6W.js → chunk-LH634DPU.js} +1 -1
  11. package/dist/exports/client/chunk-LH634DPU.js.map +7 -0
  12. package/dist/exports/client/{chunk-BZZVLW4U.js → chunk-RJ5MAOKZ.js} +1 -1
  13. package/dist/exports/client/chunk-RJ5MAOKZ.js.map +7 -0
  14. package/dist/exports/client/chunk-UAKNDD6R.js +2 -0
  15. package/dist/exports/client/chunk-UAKNDD6R.js.map +7 -0
  16. package/dist/exports/client/chunk-WSAPGI3Z.js +2 -0
  17. package/dist/exports/client/chunk-WSAPGI3Z.js.map +7 -0
  18. package/dist/exports/client/component-HKTAZ77E.js +2 -0
  19. package/dist/exports/client/component-HKTAZ77E.js.map +7 -0
  20. package/dist/exports/client/componentInline-D3A6OW76.js +2 -0
  21. package/dist/exports/client/index.d.ts +0 -2
  22. package/dist/exports/client/index.d.ts.map +1 -1
  23. package/dist/exports/client/index.js +30 -30
  24. package/dist/exports/client/index.js.map +4 -4
  25. package/dist/exports/react/index.d.ts +1 -1
  26. package/dist/exports/react/index.d.ts.map +1 -1
  27. package/dist/exports/react/index.js.map +1 -1
  28. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  29. package/dist/features/align/client/toolbarAlignGroup.js +1 -0
  30. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -1
  31. package/dist/features/blockquote/server/index.d.ts +1 -4
  32. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  33. package/dist/features/blockquote/server/index.js +2 -39
  34. package/dist/features/blockquote/server/index.js.map +1 -1
  35. package/dist/features/blockquote/server/schema.d.ts +8 -0
  36. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  37. package/dist/features/blockquote/server/schema.js +15 -0
  38. package/dist/features/blockquote/server/schema.js.map +1 -0
  39. package/dist/features/blocks/client/component/BlockContent.d.ts +10 -0
  40. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -1
  41. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  42. package/dist/features/blocks/client/component/index.css +178 -0
  43. package/dist/features/blocks/client/component/index.d.ts +3 -3
  44. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  45. package/dist/features/blocks/client/component/index.js +90 -18
  46. package/dist/features/blocks/client/component/index.js.map +1 -1
  47. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  48. package/dist/features/blocks/client/componentInline/index.css +85 -0
  49. package/dist/features/blocks/client/componentInline/index.d.ts +3 -3
  50. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  51. package/dist/features/blocks/client/componentInline/index.js +31 -8
  52. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  53. package/dist/features/blocks/client/index.d.ts.map +1 -1
  54. package/dist/features/blocks/client/index.js +0 -2
  55. package/dist/features/blocks/client/index.js.map +1 -1
  56. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  57. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  58. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  59. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  60. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  61. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  62. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  63. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  64. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  65. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  66. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  67. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  68. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +1 -1
  69. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  70. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +3 -0
  71. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  72. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +26 -0
  73. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +1 -1
  74. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -1
  75. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +4 -1
  76. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  77. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +40 -0
  78. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +1 -1
  79. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -1
  80. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +7 -8
  81. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  82. package/dist/features/blocks/premade/CodeBlock/Component/index.css +171 -0
  83. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  84. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  85. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  86. package/dist/features/blocks/server/index.d.ts +1 -0
  87. package/dist/features/blocks/server/index.d.ts.map +1 -1
  88. package/dist/features/blocks/server/index.js +20 -66
  89. package/dist/features/blocks/server/index.js.map +1 -1
  90. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  91. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  92. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  93. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  94. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  95. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  96. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  97. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  98. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  99. package/dist/features/blocks/server/schema.d.ts +45 -0
  100. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  101. package/dist/features/blocks/server/schema.js +136 -0
  102. package/dist/features/blocks/server/schema.js.map +1 -0
  103. package/dist/features/blocks/server/validate.d.ts +1 -2
  104. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  105. package/dist/features/blocks/server/validate.js.map +1 -1
  106. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  107. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  108. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  109. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  110. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  111. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  112. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  113. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  114. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  115. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  116. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  117. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  118. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  119. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  120. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  121. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  122. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  123. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  124. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  125. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  136. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  138. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  139. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  140. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  143. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  145. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/types.d.ts +2 -1
  147. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  148. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  150. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  151. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  152. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  153. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  155. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  156. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  158. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  159. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  160. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  161. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  162. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  163. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  164. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  165. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  166. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  167. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  168. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  169. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  170. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  171. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  178. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  180. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  181. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  183. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  184. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +2 -1
  189. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  190. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  191. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +4 -2
  192. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  193. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  194. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  195. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  196. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  197. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  198. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  199. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  200. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  201. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  202. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  203. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  204. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  205. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  206. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  207. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  208. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  209. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  210. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  211. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  212. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  213. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  214. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  215. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  216. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  217. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  223. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  224. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  226. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  227. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  228. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  229. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  236. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  237. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -1
  238. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  239. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +1 -1
  240. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  241. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  242. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  243. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  244. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  245. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +1 -1
  246. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -1
  247. package/dist/features/debug/jsxConverter/client/plugin/index.js +1 -0
  248. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  249. package/dist/features/debug/jsxConverter/client/plugin/style.css +9 -0
  250. package/dist/features/debug/testRecorder/client/plugin/index.css +51 -0
  251. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +1 -1
  252. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -1
  253. package/dist/features/debug/testRecorder/client/plugin/index.js +1 -0
  254. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  255. package/dist/features/debug/treeView/client/plugin/index.css +81 -0
  256. package/dist/features/debug/treeView/client/plugin/index.d.ts +1 -1
  257. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -1
  258. package/dist/features/debug/treeView/client/plugin/index.js +1 -0
  259. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  260. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.css +91 -0
  261. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +1 -1
  262. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -1
  263. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +3 -2
  264. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  265. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.css +11 -0
  266. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +1 -1
  267. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -1
  268. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +1 -0
  269. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  270. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +1 -1
  271. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  272. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.css +166 -0
  273. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts +17 -0
  274. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  275. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js +219 -0
  276. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  277. package/dist/features/experimental_table/client/plugins/TablePlugin/index.css +235 -0
  278. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +1 -1
  279. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -1
  280. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +95 -104
  281. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
  282. package/dist/features/experimental_table/server/index.d.ts +1 -6
  283. package/dist/features/experimental_table/server/index.d.ts.map +1 -1
  284. package/dist/features/experimental_table/server/index.js +4 -102
  285. package/dist/features/experimental_table/server/index.js.map +1 -1
  286. package/dist/features/experimental_table/server/schema.d.ts +27 -0
  287. package/dist/features/experimental_table/server/schema.d.ts.map +1 -0
  288. package/dist/features/experimental_table/server/schema.js +104 -0
  289. package/dist/features/experimental_table/server/schema.js.map +1 -0
  290. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  291. package/dist/features/heading/server/index.d.ts +2 -4
  292. package/dist/features/heading/server/index.d.ts.map +1 -1
  293. package/dist/features/heading/server/index.js +2 -39
  294. package/dist/features/heading/server/index.js.map +1 -1
  295. package/dist/features/heading/server/schema.d.ts +10 -0
  296. package/dist/features/heading/server/schema.d.ts.map +1 -0
  297. package/dist/features/heading/server/schema.js +37 -0
  298. package/dist/features/heading/server/schema.js.map +1 -0
  299. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +1 -1
  300. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  301. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  302. package/dist/features/horizontalRule/client/plugin/index.css +25 -0
  303. package/dist/features/horizontalRule/client/plugin/index.d.ts +1 -1
  304. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -1
  305. package/dist/features/horizontalRule/client/plugin/index.js +73 -4
  306. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
  307. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  308. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  309. package/dist/features/horizontalRule/server/index.js +2 -8
  310. package/dist/features/horizontalRule/server/index.js.map +1 -1
  311. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +1 -5
  312. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  313. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  314. package/dist/features/horizontalRule/server/schema.d.ts +7 -0
  315. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  316. package/dist/features/horizontalRule/server/schema.js +25 -0
  317. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  318. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  319. package/dist/features/link/client/index.d.ts.map +1 -1
  320. package/dist/features/link/client/index.js.map +1 -1
  321. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  322. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  323. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  324. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  325. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +28 -8
  326. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  327. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +112 -0
  328. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +1 -1
  329. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  330. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +1 -0
  331. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  332. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  333. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  334. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  335. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  336. package/dist/features/link/markdownTransformer.d.ts +1 -1
  337. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  338. package/dist/features/link/markdownTransformer.js.map +1 -1
  339. package/dist/features/link/markdownTransformer.spec.js.map +1 -1
  340. package/dist/features/link/nodes/AutoLinkNode.d.ts +3 -3
  341. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  342. package/dist/features/link/nodes/AutoLinkNode.js +2 -1
  343. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  344. package/dist/features/link/nodes/LinkNode.d.ts +3 -3
  345. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  346. package/dist/features/link/nodes/LinkNode.js +2 -1
  347. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  348. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  349. package/dist/features/link/server/baseFields.js.map +1 -1
  350. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  351. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  352. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  353. package/dist/features/link/server/index.d.ts +2 -1
  354. package/dist/features/link/server/index.d.ts.map +1 -1
  355. package/dist/features/link/server/index.js +3 -71
  356. package/dist/features/link/server/index.js.map +1 -1
  357. package/dist/features/link/server/schema.d.ts +32 -0
  358. package/dist/features/link/server/schema.d.ts.map +1 -0
  359. package/dist/features/link/server/schema.js +166 -0
  360. package/dist/features/link/server/schema.js.map +1 -0
  361. package/dist/features/link/server/validate.d.ts +1 -1
  362. package/dist/features/link/server/validate.d.ts.map +1 -1
  363. package/dist/features/link/server/validate.js.map +1 -1
  364. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  365. package/dist/features/lists/checklist/server/index.js +3 -7
  366. package/dist/features/lists/checklist/server/index.js.map +1 -1
  367. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  368. package/dist/features/lists/orderedList/server/index.js +3 -7
  369. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  370. package/dist/features/lists/plugin/index.d.ts +0 -9
  371. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  372. package/dist/features/lists/plugin/index.js.map +1 -1
  373. package/dist/features/lists/shared/markdown.d.ts.map +1 -1
  374. package/dist/features/lists/shared/schema.d.ts +18 -0
  375. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  376. package/dist/features/lists/shared/schema.js +62 -0
  377. package/dist/features/lists/shared/schema.js.map +1 -0
  378. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  379. package/dist/features/lists/unorderedList/server/index.js +3 -7
  380. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  381. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +2 -2
  382. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  383. package/dist/features/relationship/client/components/RelationshipComponent.js +29 -4
  384. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  385. package/dist/features/relationship/client/components/index.css +112 -0
  386. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  387. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  388. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  389. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  390. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  391. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  392. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  393. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  394. package/dist/features/relationship/client/utils/useEnabledRelationships.js +9 -40
  395. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  396. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  397. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  398. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  399. package/dist/features/relationship/server/index.d.ts +1 -0
  400. package/dist/features/relationship/server/index.d.ts.map +1 -1
  401. package/dist/features/relationship/server/index.js +2 -0
  402. package/dist/features/relationship/server/index.js.map +1 -1
  403. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  404. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  405. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  406. package/dist/features/relationship/server/schema.d.ts +28 -0
  407. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  408. package/dist/features/relationship/server/schema.js +83 -0
  409. package/dist/features/relationship/server/schema.js.map +1 -0
  410. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +23 -0
  411. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  412. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +34 -0
  413. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  414. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  415. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  416. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  417. package/dist/features/toolbars/fixed/client/Toolbar/index.css +87 -0
  418. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +1 -1
  419. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  420. package/dist/features/toolbars/fixed/client/Toolbar/index.js +1 -0
  421. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  422. package/dist/features/toolbars/inline/client/Toolbar/index.css +43 -0
  423. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +1 -1
  424. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  425. package/dist/features/toolbars/inline/client/Toolbar/index.js +1 -0
  426. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  427. package/dist/features/toolbars/shared/ToolbarButton/index.css +57 -0
  428. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
  429. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  430. package/dist/features/toolbars/shared/ToolbarButton/index.js +80 -74
  431. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  432. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  433. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +5 -2
  434. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  435. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +214 -0
  436. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
  437. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  438. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +11 -7
  439. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  440. package/dist/features/toolbars/types.d.ts +5 -1
  441. package/dist/features/toolbars/types.d.ts.map +1 -1
  442. package/dist/features/toolbars/types.js.map +1 -1
  443. package/dist/features/typesClient.d.ts +1 -1
  444. package/dist/features/typesClient.d.ts.map +1 -1
  445. package/dist/features/typesClient.js.map +1 -1
  446. package/dist/features/typesServer.d.ts +18 -58
  447. package/dist/features/typesServer.d.ts.map +1 -1
  448. package/dist/features/typesServer.js.map +1 -1
  449. package/dist/features/upload/client/component/index.css +214 -0
  450. package/dist/features/upload/client/component/index.d.ts +2 -2
  451. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  452. package/dist/features/upload/client/component/index.js +86 -63
  453. package/dist/features/upload/client/component/index.js.map +1 -1
  454. package/dist/features/upload/client/component/pending/index.d.ts +0 -1
  455. package/dist/features/upload/client/component/pending/index.d.ts.map +1 -1
  456. package/dist/features/upload/client/component/pending/index.js.map +1 -1
  457. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  458. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  459. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  460. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  461. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  462. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  463. package/dist/features/upload/client/plugin/index.js.map +1 -1
  464. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  465. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  466. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  467. package/dist/features/upload/server/index.d.ts +1 -0
  468. package/dist/features/upload/server/index.d.ts.map +1 -1
  469. package/dist/features/upload/server/index.js +3 -80
  470. package/dist/features/upload/server/index.js.map +1 -1
  471. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  472. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  473. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  474. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  475. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  476. package/dist/features/upload/server/schema.d.ts +52 -0
  477. package/dist/features/upload/server/schema.d.ts.map +1 -0
  478. package/dist/features/upload/server/schema.js +113 -0
  479. package/dist/features/upload/server/schema.js.map +1 -0
  480. package/dist/features/upload/server/validate.d.ts +1 -1
  481. package/dist/features/upload/server/validate.d.ts.map +1 -1
  482. package/dist/features/upload/server/validate.js.map +1 -1
  483. package/dist/field/Diff/converters/link.d.ts +1 -1
  484. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  485. package/dist/field/Diff/converters/link.js.map +1 -1
  486. package/dist/field/Diff/converters/listitem/index.css +80 -0
  487. package/dist/field/Diff/converters/listitem/index.d.ts +2 -2
  488. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  489. package/dist/field/Diff/converters/listitem/index.js +1 -0
  490. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  491. package/dist/field/Diff/converters/relationship/index.css +108 -0
  492. package/dist/field/Diff/converters/relationship/index.d.ts +2 -2
  493. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  494. package/dist/field/Diff/converters/relationship/index.js +11 -28
  495. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  496. package/dist/field/Diff/converters/unknown/index.css +37 -0
  497. package/dist/field/Diff/converters/unknown/index.d.ts +1 -1
  498. package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -1
  499. package/dist/field/Diff/converters/unknown/index.js +1 -0
  500. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  501. package/dist/field/Diff/converters/upload/index.css +175 -0
  502. package/dist/field/Diff/converters/upload/index.d.ts +2 -2
  503. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  504. package/dist/field/Diff/converters/upload/index.js +7 -2
  505. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  506. package/dist/field/Diff/index.css +156 -0
  507. package/dist/field/Diff/index.d.ts +1 -1
  508. package/dist/field/Diff/index.d.ts.map +1 -1
  509. package/dist/field/Diff/index.js +1 -0
  510. package/dist/field/Diff/index.js.map +1 -1
  511. package/dist/field/Field.d.ts +3 -3
  512. package/dist/field/Field.d.ts.map +1 -1
  513. package/dist/field/Field.js +13 -12
  514. package/dist/field/Field.js.map +1 -1
  515. package/dist/field/RenderLexical/index.d.ts +2 -2
  516. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  517. package/dist/field/RenderLexical/index.js.map +1 -1
  518. package/dist/field/RichTextViewProvider.d.ts +1 -1
  519. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  520. package/dist/field/RichTextViewProvider.js.map +1 -1
  521. package/dist/field/ViewSelector.css +32 -0
  522. package/dist/field/ViewSelector.d.ts +1 -1
  523. package/dist/field/ViewSelector.d.ts.map +1 -1
  524. package/dist/field/ViewSelector.js +1 -0
  525. package/dist/field/ViewSelector.js.map +1 -1
  526. package/dist/field/bundled.css +1 -1
  527. package/dist/field/index.css +60 -0
  528. package/dist/field/index.d.ts +1 -1
  529. package/dist/field/index.d.ts.map +1 -1
  530. package/dist/field/index.js.map +1 -1
  531. package/dist/field/rscEntry.d.ts +1 -1
  532. package/dist/field/rscEntry.d.ts.map +1 -1
  533. package/dist/field/rscEntry.js.map +1 -1
  534. package/dist/hooks.d.ts +6 -0
  535. package/dist/hooks.d.ts.map +1 -0
  536. package/dist/hooks.js +548 -0
  537. package/dist/hooks.js.map +1 -0
  538. package/dist/index.d.ts +11 -18
  539. package/dist/index.d.ts.map +1 -1
  540. package/dist/index.js +20 -628
  541. package/dist/index.js.map +1 -1
  542. package/dist/lexical/LexicalEditor.css +50 -0
  543. package/dist/lexical/LexicalEditor.d.ts +1 -1
  544. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  545. package/dist/lexical/LexicalEditor.js +1 -0
  546. package/dist/lexical/LexicalEditor.js.map +1 -1
  547. package/dist/lexical/LexicalProvider.d.ts +1 -1
  548. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  549. package/dist/lexical/LexicalProvider.js.map +1 -1
  550. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  551. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  552. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  553. package/dist/lexical/config/client/loader.d.ts +1 -1
  554. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  555. package/dist/lexical/config/client/loader.js.map +1 -1
  556. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  557. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  558. package/dist/lexical/config/client/sanitize.js.map +1 -1
  559. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  560. package/dist/lexical/config/server/loader.js +12 -9
  561. package/dist/lexical/config/server/loader.js.map +1 -1
  562. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  563. package/dist/lexical/config/server/sanitize.js +9 -17
  564. package/dist/lexical/config/server/sanitize.js.map +1 -1
  565. package/dist/lexical/config/types.d.ts +1 -1
  566. package/dist/lexical/config/types.d.ts.map +1 -1
  567. package/dist/lexical/config/types.js.map +1 -1
  568. package/dist/lexical/nodes/index.d.ts +1 -1
  569. package/dist/lexical/nodes/index.d.ts.map +1 -1
  570. package/dist/lexical/nodes/index.js.map +1 -1
  571. package/dist/lexical/plugins/DecoratorPlugin/index.css +11 -0
  572. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +1 -1
  573. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  574. package/dist/lexical/plugins/DecoratorPlugin/index.js +1 -0
  575. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  576. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +52 -0
  577. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +1 -1
  578. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  579. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +1 -0
  580. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  581. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  582. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  583. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  584. package/dist/lexical/plugins/SlashMenu/index.css +65 -0
  585. package/dist/lexical/plugins/SlashMenu/index.d.ts +1 -1
  586. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  587. package/dist/lexical/plugins/SlashMenu/index.js +2 -0
  588. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  589. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +40 -0
  590. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +1 -1
  591. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  592. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +1 -0
  593. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  594. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  595. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +84 -0
  596. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +1 -1
  597. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  598. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +15 -8
  599. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  600. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +1 -1
  601. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  602. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  603. package/dist/lexical/theme/EditorTheme.css +359 -0
  604. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  605. package/dist/lexical/theme/EditorTheme.js +1 -0
  606. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  607. package/dist/lexical/ui/ContentEditable.css +95 -0
  608. package/dist/lexical/ui/ContentEditable.d.ts +1 -1
  609. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  610. package/dist/lexical/ui/ContentEditable.js +1 -0
  611. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  612. package/dist/lexical/ui/icons/Add/index.d.ts +4 -1
  613. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -1
  614. package/dist/lexical/ui/icons/Add/index.js +19 -12
  615. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  616. package/dist/lexical/ui/icons/Add/index.svg +2 -3
  617. package/dist/lexical/ui/icons/Add/light.svg +2 -3
  618. package/dist/lexical/ui/icons/AlignCenter/index.d.ts +3 -1
  619. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -1
  620. package/dist/lexical/ui/icons/AlignCenter/index.js +15 -19
  621. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  622. package/dist/lexical/ui/icons/AlignJustify/index.d.ts +3 -1
  623. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -1
  624. package/dist/lexical/ui/icons/AlignJustify/index.js +15 -19
  625. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  626. package/dist/lexical/ui/icons/AlignLeft/index.d.ts +3 -1
  627. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -1
  628. package/dist/lexical/ui/icons/AlignLeft/index.js +15 -19
  629. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  630. package/dist/lexical/ui/icons/AlignRight/index.d.ts +3 -1
  631. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -1
  632. package/dist/lexical/ui/icons/AlignRight/index.js +15 -19
  633. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  634. package/dist/lexical/ui/icons/Block/index.d.ts +3 -1
  635. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -1
  636. package/dist/lexical/ui/icons/Block/index.js +13 -28
  637. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  638. package/dist/lexical/ui/icons/Blockquote/index.d.ts +3 -1
  639. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -1
  640. package/dist/lexical/ui/icons/Blockquote/index.js +9 -6
  641. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  642. package/dist/lexical/ui/icons/Bold/index.d.ts +3 -1
  643. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -1
  644. package/dist/lexical/ui/icons/Bold/index.js +13 -8
  645. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  646. package/dist/lexical/ui/icons/Checklist/index.d.ts +4 -1
  647. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -1
  648. package/dist/lexical/ui/icons/Checklist/index.js +17 -18
  649. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  650. package/dist/lexical/ui/icons/Code/index.d.ts +3 -1
  651. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -1
  652. package/dist/lexical/ui/icons/Code/index.js +15 -13
  653. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  654. package/dist/lexical/ui/icons/CodeBlock/index.d.ts +4 -1
  655. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -1
  656. package/dist/lexical/ui/icons/CodeBlock/index.js +18 -7
  657. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  658. package/dist/lexical/ui/icons/Collapse/index.d.ts +3 -1
  659. package/dist/lexical/ui/icons/Collapse/index.d.ts.map +1 -1
  660. package/dist/lexical/ui/icons/Collapse/index.js +10 -8
  661. package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
  662. package/dist/lexical/ui/icons/DraggableBlock/index.svg +7 -7
  663. package/dist/lexical/ui/icons/DraggableBlock/light.svg +7 -7
  664. package/dist/lexical/ui/icons/Expand/index.d.ts +5 -0
  665. package/dist/lexical/ui/icons/Expand/index.d.ts.map +1 -0
  666. package/dist/lexical/ui/icons/Expand/index.js +22 -0
  667. package/dist/lexical/ui/icons/Expand/index.js.map +1 -0
  668. package/dist/lexical/ui/icons/H1/index.d.ts +3 -1
  669. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -1
  670. package/dist/lexical/ui/icons/H1/index.js +9 -6
  671. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  672. package/dist/lexical/ui/icons/H2/index.d.ts +3 -1
  673. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -1
  674. package/dist/lexical/ui/icons/H2/index.js +9 -6
  675. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  676. package/dist/lexical/ui/icons/H3/index.d.ts +3 -1
  677. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  678. package/dist/lexical/ui/icons/H3/index.js +9 -6
  679. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  680. package/dist/lexical/ui/icons/H4/index.d.ts +3 -1
  681. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  682. package/dist/lexical/ui/icons/H4/index.js +9 -6
  683. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  684. package/dist/lexical/ui/icons/H5/index.d.ts +3 -1
  685. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  686. package/dist/lexical/ui/icons/H5/index.js +9 -6
  687. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  688. package/dist/lexical/ui/icons/H6/index.d.ts +3 -1
  689. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  690. package/dist/lexical/ui/icons/H6/index.js +9 -6
  691. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  692. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts +3 -1
  693. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -1
  694. package/dist/lexical/ui/icons/HorizontalRule/index.js +11 -11
  695. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  696. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts +3 -1
  697. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -1
  698. package/dist/lexical/ui/icons/IndentDecrease/index.js +18 -22
  699. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  700. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts +3 -1
  701. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -1
  702. package/dist/lexical/ui/icons/IndentIncrease/index.js +15 -22
  703. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  704. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -1
  705. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -1
  706. package/dist/lexical/ui/icons/InlineBlocks/index.js +9 -6
  707. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
  708. package/dist/lexical/ui/icons/Italic/index.d.ts +3 -1
  709. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -1
  710. package/dist/lexical/ui/icons/Italic/index.js +13 -8
  711. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  712. package/dist/lexical/ui/icons/Link/index.d.ts +4 -1
  713. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -1
  714. package/dist/lexical/ui/icons/Link/index.js +14 -9
  715. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  716. package/dist/lexical/ui/icons/Meatballs/index.d.ts +4 -1
  717. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -1
  718. package/dist/lexical/ui/icons/Meatballs/index.js +19 -15
  719. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
  720. package/dist/lexical/ui/icons/OrderedList/index.d.ts +4 -1
  721. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -1
  722. package/dist/lexical/ui/icons/OrderedList/index.js +19 -25
  723. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  724. package/dist/lexical/ui/icons/Page/index.d.ts +5 -0
  725. package/dist/lexical/ui/icons/Page/index.d.ts.map +1 -0
  726. package/dist/lexical/ui/icons/Page/index.js +21 -0
  727. package/dist/lexical/ui/icons/Page/index.js.map +1 -0
  728. package/dist/lexical/ui/icons/Relationship/index.d.ts +3 -1
  729. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -1
  730. package/dist/lexical/ui/icons/Relationship/index.js +13 -25
  731. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  732. package/dist/lexical/ui/icons/Strikethrough/index.d.ts +3 -1
  733. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -1
  734. package/dist/lexical/ui/icons/Strikethrough/index.js +13 -13
  735. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  736. package/dist/lexical/ui/icons/Subscript/index.d.ts +3 -1
  737. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -1
  738. package/dist/lexical/ui/icons/Subscript/index.js +10 -7
  739. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  740. package/dist/lexical/ui/icons/Superscript/index.d.ts +3 -1
  741. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -1
  742. package/dist/lexical/ui/icons/Superscript/index.js +10 -7
  743. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  744. package/dist/lexical/ui/icons/Table/index.d.ts +4 -1
  745. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
  746. package/dist/lexical/ui/icons/Table/index.js +20 -15
  747. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  748. package/dist/lexical/ui/icons/Text/index.d.ts +4 -1
  749. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -1
  750. package/dist/lexical/ui/icons/Text/index.js +17 -8
  751. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  752. package/dist/lexical/ui/icons/Trash/index.d.ts +10 -0
  753. package/dist/lexical/ui/icons/Trash/index.d.ts.map +1 -0
  754. package/dist/lexical/ui/icons/Trash/index.js +29 -0
  755. package/dist/lexical/ui/icons/Trash/index.js.map +1 -0
  756. package/dist/lexical/ui/icons/Underline/index.d.ts +3 -1
  757. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -1
  758. package/dist/lexical/ui/icons/Underline/index.js +16 -14
  759. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  760. package/dist/lexical/ui/icons/UnorderedList/index.d.ts +3 -1
  761. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -1
  762. package/dist/lexical/ui/icons/UnorderedList/index.js +13 -40
  763. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  764. package/dist/lexical/ui/icons/Upload/index.d.ts +3 -1
  765. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -1
  766. package/dist/lexical/ui/icons/Upload/index.js +15 -22
  767. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  768. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  769. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  770. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  771. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  772. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  773. package/dist/types/builtInNodes.d.ts +14 -0
  774. package/dist/types/builtInNodes.d.ts.map +1 -0
  775. package/dist/types/builtInNodes.js +203 -0
  776. package/dist/types/builtInNodes.js.map +1 -0
  777. package/dist/{types.d.ts → types/index.d.ts} +9 -10
  778. package/dist/types/index.d.ts.map +1 -0
  779. package/dist/types/index.js +2 -0
  780. package/dist/types/index.js.map +1 -0
  781. package/dist/types/jsonSchemaHelpers.d.ts +28 -0
  782. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  783. package/dist/types/jsonSchemaHelpers.js +54 -0
  784. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  785. package/dist/types/nodeTypes.d.ts +86 -0
  786. package/dist/types/nodeTypes.d.ts.map +1 -0
  787. package/dist/types/nodeTypes.js +6 -0
  788. package/dist/types/nodeTypes.js.map +1 -0
  789. package/dist/types/schema.d.ts +6 -0
  790. package/dist/types/schema.d.ts.map +1 -0
  791. package/dist/types/schema.js +73 -0
  792. package/dist/types/schema.js.map +1 -0
  793. package/dist/utilities/buildEditorState.d.ts +1 -1
  794. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  795. package/dist/utilities/buildEditorState.js +13 -0
  796. package/dist/utilities/buildEditorState.js.map +1 -1
  797. package/dist/utilities/buildInitialState.js.map +1 -1
  798. package/dist/utilities/createClientFeature.d.ts +1 -1
  799. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  800. package/dist/utilities/createClientFeature.js.map +1 -1
  801. package/dist/utilities/editorConfigFactory.d.ts +1 -1
  802. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  803. package/dist/utilities/editorConfigFactory.js.map +1 -1
  804. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +1 -0
  805. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  806. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +34 -18
  807. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  808. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  809. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  810. package/dist/utilities/generateImportMap.d.ts +1 -1
  811. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  812. package/dist/utilities/generateImportMap.js.map +1 -1
  813. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  814. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  815. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  816. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  817. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  818. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  819. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  820. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  821. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  822. package/dist/validate/index.d.ts.map +1 -1
  823. package/package.json +17 -22
  824. package/dist/exports/client/Component-DOSSWC76.js +0 -2
  825. package/dist/exports/client/Component-DOSSWC76.js.map +0 -7
  826. package/dist/exports/client/Component-MBLHTKDK.js +0 -2
  827. package/dist/exports/client/Component-MBLHTKDK.js.map +0 -7
  828. package/dist/exports/client/Field-4UEGQMIN.js +0 -2
  829. package/dist/exports/client/Field-4UEGQMIN.js.map +0 -7
  830. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js +0 -2
  831. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js.map +0 -7
  832. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  833. package/dist/exports/client/chunk-F26IQ5RE.js +0 -2
  834. package/dist/exports/client/chunk-F26IQ5RE.js.map +0 -7
  835. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  836. package/dist/exports/client/chunk-YWIZCGSY.js +0 -2
  837. package/dist/exports/client/chunk-YWIZCGSY.js.map +0 -7
  838. package/dist/exports/client/component-XIHC3W6W.js +0 -2
  839. package/dist/exports/client/component-XIHC3W6W.js.map +0 -7
  840. package/dist/exports/client/componentInline-CBBUBQ7P.js +0 -2
  841. package/dist/exports/server/migrate.d.ts +0 -16
  842. package/dist/exports/server/migrate.d.ts.map +0 -1
  843. package/dist/exports/server/migrate.js +0 -16
  844. package/dist/exports/server/migrate.js.map +0 -1
  845. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +0 -4
  846. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +0 -1
  847. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +0 -7
  848. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +0 -1
  849. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +0 -4
  850. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +0 -1
  851. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +0 -38
  852. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +0 -1
  853. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +0 -4
  854. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +0 -1
  855. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +0 -9
  856. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +0 -1
  857. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +0 -4
  858. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +0 -1
  859. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +0 -33
  860. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +0 -1
  861. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +0 -6
  862. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +0 -1
  863. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +0 -9
  864. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +0 -1
  865. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +0 -70
  866. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +0 -1
  867. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +0 -104
  868. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +0 -1
  869. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +0 -27
  870. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +0 -1
  871. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +0 -2
  872. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +0 -1
  873. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +0 -39
  874. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +0 -1
  875. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +0 -122
  876. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +0 -1
  877. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +0 -12
  878. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +0 -1
  879. package/dist/features/converters/lexicalToHtml_deprecated/index.js +0 -11
  880. package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +0 -1
  881. package/dist/features/link/nodes/types.d.ts +0 -27
  882. package/dist/features/link/nodes/types.d.ts.map +0 -1
  883. package/dist/features/link/nodes/types.js +0 -2
  884. package/dist/features/link/nodes/types.js.map +0 -1
  885. package/dist/features/lists/htmlConverter.d.ts +0 -5
  886. package/dist/features/lists/htmlConverter.d.ts.map +0 -1
  887. package/dist/features/lists/htmlConverter.js +0 -81
  888. package/dist/features/lists/htmlConverter.js.map +0 -1
  889. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -3
  890. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  891. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -22
  892. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  893. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -3
  894. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  895. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -33
  896. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  897. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -3
  898. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  899. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -24
  900. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  901. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -3
  902. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  903. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -25
  904. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  905. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -3
  906. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  907. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -22
  908. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  909. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -3
  910. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  911. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -28
  912. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  913. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -3
  914. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  915. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -22
  916. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  917. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  918. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  919. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -9
  920. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  921. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -19
  922. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  923. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +0 -78
  924. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  925. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -23
  926. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  927. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +0 -2
  928. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  929. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -2
  930. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  931. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +0 -10
  932. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  933. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -10
  934. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  935. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +0 -49
  936. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  937. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  938. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  939. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  940. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  941. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  942. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  943. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -74
  944. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  945. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -3
  946. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  947. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -23
  948. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  949. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -3
  950. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  951. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +0 -24
  952. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  953. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -3
  954. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  955. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +0 -33
  956. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  957. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -3
  958. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  959. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +0 -30
  960. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  961. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -3
  962. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  963. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -26
  964. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  965. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -3
  966. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  967. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -26
  968. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  969. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -3
  970. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  971. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -15
  972. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  973. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -3
  974. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  975. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -27
  976. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  977. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -3
  978. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  979. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -26
  980. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  981. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -3
  982. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  983. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -18
  984. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  985. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -3
  986. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  987. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +0 -12
  988. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  989. package/dist/features/migrations/slateToLexical/converter/index.d.ts +0 -19
  990. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  991. package/dist/features/migrations/slateToLexical/converter/index.js +0 -130
  992. package/dist/features/migrations/slateToLexical/converter/index.js.map +0 -1
  993. package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -16
  994. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  995. package/dist/features/migrations/slateToLexical/converter/types.js +0 -2
  996. package/dist/features/migrations/slateToLexical/converter/types.js.map +0 -1
  997. package/dist/features/migrations/slateToLexical/feature.client.d.ts +0 -2
  998. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  999. package/dist/features/migrations/slateToLexical/feature.client.js +0 -10
  1000. package/dist/features/migrations/slateToLexical/feature.client.js.map +0 -1
  1001. package/dist/features/migrations/slateToLexical/feature.server.d.ts +0 -40
  1002. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  1003. package/dist/features/migrations/slateToLexical/feature.server.js +0 -68
  1004. package/dist/features/migrations/slateToLexical/feature.server.js.map +0 -1
  1005. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  1006. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1007. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  1008. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1009. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  1010. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1011. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -74
  1012. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1013. package/dist/lexical/ui/icons/AI/index.d.ts +0 -3
  1014. package/dist/lexical/ui/icons/AI/index.d.ts.map +0 -1
  1015. package/dist/lexical/ui/icons/AI/index.js +0 -34
  1016. package/dist/lexical/ui/icons/AI/index.js.map +0 -1
  1017. package/dist/lexical/ui/icons/Caret/index.svg +0 -3
  1018. package/dist/lexical/ui/icons/Edit/index.svg +0 -10
  1019. package/dist/lexical/ui/icons/Remove/index.svg +0 -4
  1020. package/dist/nodeTypes.d.ts +0 -74
  1021. package/dist/nodeTypes.d.ts.map +0 -1
  1022. package/dist/nodeTypes.js +0 -5
  1023. package/dist/nodeTypes.js.map +0 -1
  1024. package/dist/types.d.ts.map +0 -1
  1025. package/dist/types.js +0 -2
  1026. package/dist/types.js.map +0 -1
  1027. package/dist/utilities/migrateSlateToLexical/index.d.ts +0 -15
  1028. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +0 -1
  1029. package/dist/utilities/migrateSlateToLexical/index.js +0 -152
  1030. package/dist/utilities/migrateSlateToLexical/index.js.map +0 -1
  1031. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +0 -10
  1032. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +0 -1
  1033. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +0 -85
  1034. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +0 -1
  1035. /package/dist/exports/client/{chunk-QJ5EETIB.js.map → chunk-6QWQ7JV4.js.map} +0 -0
  1036. /package/dist/exports/client/{componentInline-CBBUBQ7P.js.map → componentInline-D3A6OW76.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,12 +1,13 @@
1
- import { afterChangeTraverseFields, afterReadTraverseFields, beforeChangeTraverseFields, beforeValidateTraverseFields, checkDependencies, deepMergeSimple, withNullableJSONSchemaType } from 'payload';
1
+ import { checkDependencies, deepMergeSimple } from 'payload';
2
+ import { getLexicalHooks } from './hooks.js';
2
3
  import { i18n } from './i18n.js';
3
4
  import { defaultEditorFeatures } from './lexical/config/server/default.js';
4
5
  import { populateLexicalPopulationPromises } from './populateGraphQL/populateLexicalPopulationPromises.js';
6
+ import { getFieldToJSONSchema } from './types/schema.js';
5
7
  import { featuresInputToEditorConfig } from './utilities/editorConfigFactory.js';
6
8
  import { getGenerateImportMap } from './utilities/generateImportMap.js';
7
9
  import { getGenerateSchemaMap } from './utilities/generateSchemaMap.js';
8
10
  import { getDefaultSanitizedEditorConfig } from './utilities/getDefaultSanitizedEditorConfig.js';
9
- import { recurseNodeTree } from './utilities/recurseNodeTree.js';
10
11
  import { richTextValidateHOC } from './validate/index.js';
11
12
  let checkedDependencies = false;
12
13
  export const lexicalTargetVersion = '0.41.0';
@@ -50,12 +51,21 @@ export function lexicalEditor(args) {
50
51
  resolvedFeatureMap = result.resolvedFeatureMap;
51
52
  }
52
53
  const featureI18n = finalSanitizedEditorConfig.features.i18n;
53
- for (const _lang in i18n) {
54
+ const supportedLanguages = config.i18n?.supportedLanguages;
55
+ const supportedLanguagesToMerge = {};
56
+ for (const _lang in supportedLanguages) {
57
+ if (!(_lang in i18n)) {
58
+ if (featureI18n[_lang]) {
59
+ supportedLanguagesToMerge[_lang] = featureI18n[_lang];
60
+ }
61
+ continue;
62
+ }
54
63
  const lang = _lang;
55
64
  const lexicalI18nForLang = (featureI18n[lang] ??= {}).lexical ??= {};
56
65
  lexicalI18nForLang.general = i18n[lang] ?? {};
66
+ supportedLanguagesToMerge[lang] = featureI18n[lang];
57
67
  }
58
- config.i18n.translations = deepMergeSimple(config.i18n.translations, featureI18n);
68
+ config.i18n.translations = deepMergeSimple(config.i18n.translations, supportedLanguagesToMerge);
59
69
  return {
60
70
  CellComponent: '@payloadcms/richtext-lexical/rsc#RscEntryLexicalCell',
61
71
  DiffComponent: '@payloadcms/richtext-lexical/rsc#LexicalDiffComponent',
@@ -112,622 +122,12 @@ export function lexicalEditor(args) {
112
122
  });
113
123
  }
114
124
  },
115
- hooks: {
116
- afterChange: [async args => {
117
- const {
118
- collection,
119
- context: _context,
120
- data,
121
- field,
122
- global,
123
- indexPath,
124
- operation,
125
- originalDoc,
126
- parentIsLocalized,
127
- path,
128
- previousDoc,
129
- previousValue,
130
- req,
131
- schemaPath
132
- } = args;
133
- let {
134
- value
135
- } = args;
136
- if (finalSanitizedEditorConfig?.features?.hooks?.afterChange?.length) {
137
- for (const hook of finalSanitizedEditorConfig.features.hooks.afterChange) {
138
- value = await hook(args);
139
- }
140
- }
141
- if (!finalSanitizedEditorConfig.features.nodeHooks?.afterChange?.size && !finalSanitizedEditorConfig.features.getSubFields?.size) {
142
- return value;
143
- }
144
- // TO-DO: We should not use context, as it is intended for external use only
145
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
146
- const context = _context;
147
- const nodeIDMap = {};
148
- const previousNodeIDMap = {};
149
- /**
150
- * Get the originalNodeIDMap from the beforeValidate hook, which is always run before this hook.
151
- */
152
- const originalNodeIDMap = context?.internal?.richText?.[path.join('.')]?.originalNodeIDMap;
153
- if (!originalNodeIDMap || !Object.keys(originalNodeIDMap).length || !value) {
154
- return value;
155
- }
156
- recurseNodeTree({
157
- nodeIDMap,
158
- nodes: value?.root?.children ?? []
159
- });
160
- recurseNodeTree({
161
- nodeIDMap: previousNodeIDMap,
162
- nodes: previousValue?.root?.children ?? []
163
- });
164
- // eslint-disable-next-line prefer-const
165
- for (let [id, node] of Object.entries(nodeIDMap)) {
166
- const afterChangeHooks = finalSanitizedEditorConfig.features.nodeHooks?.afterChange;
167
- const afterChangeHooksForNode = afterChangeHooks?.get(node.type);
168
- if (afterChangeHooksForNode) {
169
- for (const hook of afterChangeHooksForNode) {
170
- if (!originalNodeIDMap[id]) {
171
- console.warn('(afterChange) No original node found for node with id', id, 'node:', node, 'path', path.join('.'));
172
- continue;
173
- }
174
- node = await hook({
175
- context,
176
- node,
177
- operation,
178
- originalNode: originalNodeIDMap[id],
179
- parentRichTextFieldPath: path,
180
- parentRichTextFieldSchemaPath: schemaPath,
181
- previousNode: previousNodeIDMap[id],
182
- req
183
- });
184
- }
185
- }
186
- const subFieldFn = finalSanitizedEditorConfig.features.getSubFields?.get(node.type);
187
- const subFieldDataFn = finalSanitizedEditorConfig.features.getSubFieldsData?.get(node.type);
188
- if (subFieldFn && subFieldDataFn) {
189
- const subFields = subFieldFn({
190
- node,
191
- req
192
- });
193
- const nodeSiblingData = subFieldDataFn({
194
- node,
195
- req
196
- }) ?? {};
197
- const nodeSiblingDoc = subFieldDataFn({
198
- node: originalNodeIDMap[id],
199
- req
200
- }) ?? {};
201
- const nodePreviousSiblingDoc = subFieldDataFn({
202
- node: previousNodeIDMap[id],
203
- req
204
- }) ?? {};
205
- if (subFields?.length) {
206
- await afterChangeTraverseFields({
207
- blockData: nodeSiblingData,
208
- collection,
209
- context,
210
- data: data ?? {},
211
- doc: originalDoc,
212
- fields: subFields,
213
- global,
214
- operation,
215
- parentIndexPath: indexPath.join('-'),
216
- parentIsLocalized: parentIsLocalized || field.localized || false,
217
- parentPath: path.join('.'),
218
- parentSchemaPath: schemaPath.join('.'),
219
- previousDoc,
220
- previousSiblingDoc: {
221
- ...nodePreviousSiblingDoc
222
- },
223
- req,
224
- siblingData: nodeSiblingData || {},
225
- siblingDoc: {
226
- ...nodeSiblingDoc
227
- }
228
- });
229
- }
230
- }
231
- }
232
- return value;
233
- }],
234
- afterRead: [
235
- /**
236
- * afterRead hooks do not receive the originalNode. Thus, they can run on all nodes, not just nodes with an ID.
237
- */
238
- async args => {
239
- const {
240
- collection,
241
- context: context,
242
- currentDepth,
243
- depth,
244
- draft,
245
- fallbackLocale,
246
- field,
247
- fieldPromises,
248
- findMany,
249
- flattenLocales,
250
- global,
251
- indexPath,
252
- locale,
253
- originalDoc,
254
- overrideAccess,
255
- parentIsLocalized,
256
- path,
257
- populate,
258
- populationPromises,
259
- req,
260
- schemaPath,
261
- showHiddenFields,
262
- triggerAccessControl,
263
- triggerHooks
264
- } = args;
265
- let {
266
- value
267
- } = args;
268
- if (finalSanitizedEditorConfig?.features?.hooks?.afterRead?.length) {
269
- for (const hook of finalSanitizedEditorConfig.features.hooks.afterRead) {
270
- value = await hook(args);
271
- }
272
- }
273
- if (!finalSanitizedEditorConfig.features.nodeHooks?.afterRead?.size && !finalSanitizedEditorConfig.features.getSubFields?.size) {
274
- return value;
275
- }
276
- const flattenedNodes = [];
277
- recurseNodeTree({
278
- flattenedNodes,
279
- nodes: value?.root?.children ?? []
280
- });
281
- for (let node of flattenedNodes) {
282
- const afterReadHooks = finalSanitizedEditorConfig.features.nodeHooks?.afterRead;
283
- const afterReadHooksForNode = afterReadHooks?.get(node.type);
284
- if (afterReadHooksForNode) {
285
- for (const hook of afterReadHooksForNode) {
286
- node = await hook({
287
- context,
288
- currentDepth: currentDepth,
289
- depth: depth,
290
- draft: draft,
291
- fallbackLocale: fallbackLocale,
292
- fieldPromises: fieldPromises,
293
- findMany: findMany,
294
- flattenLocales: flattenLocales,
295
- locale: locale,
296
- node,
297
- overrideAccess: overrideAccess,
298
- parentRichTextFieldPath: path,
299
- parentRichTextFieldSchemaPath: schemaPath,
300
- populateArg: populate,
301
- populationPromises: populationPromises,
302
- req,
303
- showHiddenFields: showHiddenFields,
304
- triggerAccessControl: triggerAccessControl,
305
- triggerHooks: triggerHooks
306
- });
307
- }
308
- }
309
- const subFieldFn = finalSanitizedEditorConfig.features.getSubFields?.get(node.type);
310
- const subFieldDataFn = finalSanitizedEditorConfig.features.getSubFieldsData?.get(node.type);
311
- if (subFieldFn && subFieldDataFn) {
312
- const subFields = subFieldFn({
313
- node,
314
- req
315
- });
316
- const nodeSiblingData = subFieldDataFn({
317
- node,
318
- req
319
- }) ?? {};
320
- if (subFields?.length) {
321
- afterReadTraverseFields({
322
- blockData: nodeSiblingData,
323
- collection,
324
- context,
325
- currentDepth: currentDepth,
326
- depth: depth,
327
- doc: originalDoc,
328
- draft: draft,
329
- fallbackLocale: fallbackLocale,
330
- fieldPromises: fieldPromises,
331
- fields: subFields,
332
- findMany: findMany,
333
- flattenLocales: flattenLocales,
334
- global,
335
- locale: locale,
336
- overrideAccess: overrideAccess,
337
- parentIndexPath: indexPath.join('-'),
338
- parentIsLocalized: parentIsLocalized || field.localized || false,
339
- parentPath: path.join('.'),
340
- parentSchemaPath: schemaPath.join('.'),
341
- populate,
342
- populationPromises: populationPromises,
343
- req,
344
- showHiddenFields: showHiddenFields,
345
- siblingDoc: nodeSiblingData,
346
- triggerAccessControl,
347
- triggerHooks
348
- });
349
- }
350
- }
351
- }
352
- return value;
353
- }],
354
- beforeChange: [async args => {
355
- const {
356
- collection,
357
- context: _context,
358
- data,
359
- docWithLocales,
360
- errors,
361
- field,
362
- fieldLabelPath,
363
- global,
364
- indexPath,
365
- mergeLocaleActions,
366
- operation,
367
- originalDoc,
368
- overrideAccess,
369
- parentIsLocalized,
370
- path,
371
- previousValue,
372
- req,
373
- schemaPath,
374
- siblingData,
375
- siblingDocWithLocales,
376
- skipValidation
377
- } = args;
378
- let {
379
- value
380
- } = args;
381
- if (finalSanitizedEditorConfig?.features?.hooks?.beforeChange?.length) {
382
- for (const hook of finalSanitizedEditorConfig.features.hooks.beforeChange) {
383
- value = await hook(args);
384
- }
385
- }
386
- if (!finalSanitizedEditorConfig.features.nodeHooks?.beforeChange?.size && !finalSanitizedEditorConfig.features.getSubFields?.size) {
387
- return value;
388
- }
389
- // TO-DO: We should not use context, as it is intended for external use only
390
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
391
- const context = _context;
392
- const nodeIDMap = {};
393
- /**
394
- * Get the originalNodeIDMap from the beforeValidate hook, which is always run before this hook.
395
- */
396
- const originalNodeIDMap = context?.internal?.richText?.[path.join('.')]?.originalNodeIDMap;
397
- if (!originalNodeIDMap || !Object.keys(originalNodeIDMap).length || !value) {
398
- return value;
399
- }
400
- const previousNodeIDMap = {};
401
- const originalNodeWithLocalesIDMap = {};
402
- recurseNodeTree({
403
- nodeIDMap,
404
- nodes: value?.root?.children ?? []
405
- });
406
- recurseNodeTree({
407
- nodeIDMap: previousNodeIDMap,
408
- nodes: previousValue?.root?.children ?? []
409
- });
410
- if (field.name && siblingDocWithLocales?.[field.name]) {
411
- recurseNodeTree({
412
- nodeIDMap: originalNodeWithLocalesIDMap,
413
- nodes: siblingDocWithLocales[field.name]?.root?.children ?? []
414
- });
415
- }
416
- // eslint-disable-next-line prefer-const
417
- for (let [id, node] of Object.entries(nodeIDMap)) {
418
- const beforeChangeHooks = finalSanitizedEditorConfig.features.nodeHooks?.beforeChange;
419
- const beforeChangeHooksForNode = beforeChangeHooks?.get(node.type);
420
- if (beforeChangeHooksForNode) {
421
- for (const hook of beforeChangeHooksForNode) {
422
- if (!originalNodeIDMap[id]) {
423
- console.warn('(beforeChange) No original node found for node with id', id, 'node:', node, 'path', path.join('.'));
424
- continue;
425
- }
426
- node = await hook({
427
- context,
428
- errors: errors,
429
- mergeLocaleActions: mergeLocaleActions,
430
- node,
431
- operation: operation,
432
- originalNode: originalNodeIDMap[id],
433
- originalNodeWithLocales: originalNodeWithLocalesIDMap[id],
434
- parentRichTextFieldPath: path,
435
- parentRichTextFieldSchemaPath: schemaPath,
436
- previousNode: previousNodeIDMap[id],
437
- req,
438
- skipValidation: skipValidation
439
- });
440
- }
441
- }
442
- const subFieldFn = finalSanitizedEditorConfig.features.getSubFields?.get(node.type);
443
- const subFieldDataFn = finalSanitizedEditorConfig.features.getSubFieldsData?.get(node.type);
444
- if (subFieldFn && subFieldDataFn) {
445
- const subFields = subFieldFn({
446
- node,
447
- req
448
- });
449
- const nodeSiblingData = subFieldDataFn({
450
- node,
451
- req
452
- }) ?? {};
453
- const nodeSiblingDocWithLocales = subFieldDataFn({
454
- node: originalNodeWithLocalesIDMap[id],
455
- req
456
- }) ?? {};
457
- const nodePreviousSiblingDoc = subFieldDataFn({
458
- node: previousNodeIDMap[id],
459
- req
460
- }) ?? {};
461
- if (subFields?.length) {
462
- await beforeChangeTraverseFields({
463
- id,
464
- blockData: nodeSiblingData,
465
- collection,
466
- context,
467
- data: data ?? {},
468
- doc: originalDoc ?? {},
469
- docWithLocales: docWithLocales ?? {},
470
- errors: errors,
471
- fieldLabelPath,
472
- fields: subFields,
473
- global,
474
- mergeLocaleActions: mergeLocaleActions,
475
- operation: operation,
476
- overrideAccess,
477
- parentIndexPath: indexPath.join('-'),
478
- parentIsLocalized: parentIsLocalized || field.localized || false,
479
- parentPath: path.join('.'),
480
- parentSchemaPath: schemaPath.join('.'),
481
- req,
482
- siblingData: nodeSiblingData,
483
- siblingDoc: nodePreviousSiblingDoc,
484
- siblingDocWithLocales: nodeSiblingDocWithLocales ?? {},
485
- skipValidation
486
- });
487
- }
488
- }
489
- }
490
- /**
491
- * within the beforeChange hook, id's may be re-generated.
492
- * Example:
493
- * 1. Seed data contains IDs for block feature blocks.
494
- * 2. Those are used in beforeValidate
495
- * 3. in beforeChange, those IDs are regenerated, because you cannot provide IDs during document creation. See baseIDField beforeChange hook for reasoning
496
- * 4. Thus, in order for all post-beforeChange hooks to receive the correct ID, we need to update the originalNodeIDMap with the new ID's, by regenerating the nodeIDMap.
497
- * The reason this is not generated for every hook, is to save on performance. We know we only really have to generate it in beforeValidate, which is the first hook,
498
- * and in beforeChange, which is where modifications to the provided IDs can occur.
499
- */
500
- const newOriginalNodeIDMap = {};
501
- const previousOriginalValue = siblingData[field.name];
502
- recurseNodeTree({
503
- nodeIDMap: newOriginalNodeIDMap,
504
- nodes: previousOriginalValue?.root?.children ?? []
505
- });
506
- if (!context.internal) {
507
- // Add to context, for other hooks to use
508
- context.internal = {};
509
- }
510
- if (!context.internal.richText) {
511
- context.internal.richText = {};
512
- }
513
- context.internal.richText[path.join('.')] = {
514
- originalNodeIDMap: newOriginalNodeIDMap
515
- };
516
- return value;
517
- }],
518
- beforeValidate: [async args => {
519
- const {
520
- collection,
521
- context,
522
- data,
523
- field,
524
- global,
525
- indexPath,
526
- operation,
527
- originalDoc,
528
- overrideAccess,
529
- parentIsLocalized,
530
- path,
531
- previousValue,
532
- req,
533
- schemaPath
534
- } = args;
535
- let {
536
- value
537
- } = args;
538
- if (finalSanitizedEditorConfig?.features?.hooks?.beforeValidate?.length) {
539
- for (const hook of finalSanitizedEditorConfig.features.hooks.beforeValidate) {
540
- value = await hook(args);
541
- }
542
- }
543
- // return value if there are NO hooks
544
- if (!finalSanitizedEditorConfig.features.nodeHooks?.beforeValidate?.size && !finalSanitizedEditorConfig.features.nodeHooks?.afterChange?.size && !finalSanitizedEditorConfig.features.nodeHooks?.beforeChange?.size && !finalSanitizedEditorConfig.features.getSubFields?.size) {
545
- return value;
546
- }
547
- /**
548
- * beforeValidate is the first field hook which runs. This is where we can create the node map, which can then be used in the other hooks.
549
- *
550
- */ /**
551
- * flattenedNodes contains all nodes in the editor, in the order they appear in the editor. They will be used for the following hooks:
552
- * - afterRead
553
- *
554
- * The other hooks require nodes to have IDs, which is why those are ran only from the nodeIDMap. They require IDs because they have both doc/siblingDoc and data/siblingData, and
555
- * thus require a reliable way to match new node data to old node data. Given that node positions can change in between hooks, this is only reliably possible for nodes which are saved with
556
- * an ID.
557
- */ //const flattenedNodes: SerializedLexicalNode[] = []
558
- /**
559
- * Only nodes with id's (so, nodes with hooks added to them) will be added to the nodeIDMap. They will be used for the following hooks:
560
- * - afterChange
561
- * - beforeChange
562
- * - beforeValidate
563
- *
564
- * Other hooks are handled by the flattenedNodes. All nodes in the nodeIDMap are part of flattenedNodes.
565
- */
566
- const originalNodeIDMap = {};
567
- recurseNodeTree({
568
- nodeIDMap: originalNodeIDMap,
569
- nodes: previousValue?.root?.children ?? []
570
- });
571
- if (!context.internal) {
572
- // Add to context, for other hooks to use
573
- context.internal = {};
574
- }
575
- if (!context.internal.richText) {
576
- context.internal.richText = {};
577
- }
578
- context.internal.richText[path.join('.')] = {
579
- originalNodeIDMap
580
- };
581
- /**
582
- * Now that the maps for all hooks are set up, we can run the validate hook
583
- */
584
- if (!finalSanitizedEditorConfig.features.nodeHooks?.beforeValidate?.size) {
585
- return value;
586
- }
587
- const nodeIDMap = {};
588
- recurseNodeTree({
589
- //flattenedNodes,
590
- nodeIDMap,
591
- nodes: value?.root?.children ?? []
592
- });
593
- // eslint-disable-next-line prefer-const
594
- for (let [id, node] of Object.entries(nodeIDMap)) {
595
- const beforeValidateHooks = finalSanitizedEditorConfig.features.nodeHooks.beforeValidate;
596
- const beforeValidateHooksForNode = beforeValidateHooks?.get(node.type);
597
- if (beforeValidateHooksForNode) {
598
- for (const hook of beforeValidateHooksForNode) {
599
- if (!originalNodeIDMap[id]) {
600
- console.warn('(beforeValidate) No original node found for node with id', id, 'node:', node, 'path', path.join('.'));
601
- continue;
602
- }
603
- node = await hook({
604
- context,
605
- node,
606
- operation,
607
- originalNode: originalNodeIDMap[id],
608
- overrideAccess: overrideAccess,
609
- parentRichTextFieldPath: path,
610
- parentRichTextFieldSchemaPath: schemaPath,
611
- req
612
- });
613
- }
614
- }
615
- const subFieldFn = finalSanitizedEditorConfig.features.getSubFields?.get(node.type);
616
- const subFieldDataFn = finalSanitizedEditorConfig.features.getSubFieldsData?.get(node.type);
617
- if (subFieldFn && subFieldDataFn) {
618
- const subFields = subFieldFn({
619
- node,
620
- req
621
- });
622
- const nodeSiblingData = subFieldDataFn({
623
- node,
624
- req
625
- }) ?? {};
626
- const nodeSiblingDoc = subFieldDataFn({
627
- node: originalNodeIDMap[id],
628
- req
629
- }) ?? {};
630
- if (subFields?.length) {
631
- await beforeValidateTraverseFields({
632
- id,
633
- blockData: nodeSiblingData,
634
- collection,
635
- context,
636
- data,
637
- doc: originalDoc,
638
- fields: subFields,
639
- global,
640
- operation,
641
- overrideAccess: overrideAccess,
642
- parentIndexPath: indexPath.join('-'),
643
- parentIsLocalized: parentIsLocalized || field.localized || false,
644
- parentPath: path.join('.'),
645
- parentSchemaPath: schemaPath.join('.'),
646
- req,
647
- siblingData: nodeSiblingData,
648
- siblingDoc: nodeSiblingDoc
649
- });
650
- }
651
- }
652
- }
653
- return value;
654
- }]
655
- },
656
- outputSchema: ({
657
- collectionIDFieldTypes,
658
- config,
659
- field,
660
- i18n,
661
- interfaceNameDefinitions,
662
- isRequired
663
- }) => {
664
- let outputSchema = {
665
- // This schema matches the SerializedEditorState type so far, that it's possible to cast SerializedEditorState to this schema without any errors.
666
- // In the future, we should
667
- // 1) allow recursive children
668
- // 2) Pass in all the different types for every node added to the editorconfig. This can be done with refs in the schema.
669
- type: withNullableJSONSchemaType('object', isRequired),
670
- properties: {
671
- root: {
672
- type: 'object',
673
- additionalProperties: false,
674
- properties: {
675
- type: {
676
- type: 'string'
677
- },
678
- children: {
679
- type: 'array',
680
- items: {
681
- type: 'object',
682
- additionalProperties: true,
683
- properties: {
684
- type: {
685
- type: 'string',
686
- tsType: 'any'
687
- },
688
- version: {
689
- type: 'integer'
690
- }
691
- },
692
- required: ['type', 'version']
693
- }
694
- },
695
- direction: {
696
- oneOf: [{
697
- enum: ['ltr', 'rtl']
698
- }, {
699
- type: 'null'
700
- }]
701
- },
702
- format: {
703
- type: 'string',
704
- enum: ['left', 'start', 'center', 'right', 'end', 'justify', '']
705
- },
706
- indent: {
707
- type: 'integer'
708
- },
709
- version: {
710
- type: 'integer'
711
- }
712
- },
713
- required: ['children', 'direction', 'format', 'indent', 'type', 'version']
714
- }
715
- },
716
- required: ['root']
717
- };
718
- for (const modifyOutputSchema of finalSanitizedEditorConfig.features.generatedTypes.modifyOutputSchemas) {
719
- outputSchema = modifyOutputSchema({
720
- collectionIDFieldTypes,
721
- config,
722
- currentSchema: outputSchema,
723
- field,
724
- i18n,
725
- interfaceNameDefinitions,
726
- isRequired
727
- });
728
- }
729
- return outputSchema;
730
- },
125
+ hooks: getLexicalHooks({
126
+ editorConfig: finalSanitizedEditorConfig
127
+ }),
128
+ jsonSchema: getFieldToJSONSchema({
129
+ editorConfig: finalSanitizedEditorConfig
130
+ }),
731
131
  validate: richTextValidateHOC({
732
132
  editorConfig: finalSanitizedEditorConfig
733
133
  })
@@ -742,14 +142,6 @@ export { $createServerBlockNode, $isServerBlockNode, ServerBlockNode } from './f
742
142
  export { $createServerInlineBlockNode, $isServerInlineBlockNode, ServerInlineBlockNode } from './features/blocks/server/nodes/InlineBlocksNode.js';
743
143
  export { convertHTMLToLexical } from './features/converters/htmlToLexical/index.js';
744
144
  export { lexicalHTMLField } from './features/converters/lexicalToHtml/async/field/index.js';
745
- export { LinebreakHTMLConverter } from './features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js';
746
- export { ParagraphHTMLConverter } from './features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js';
747
- export { TabHTMLConverter } from './features/converters/lexicalToHtml_deprecated/converter/converters/tab.js';
748
- export { TextHTMLConverter } from './features/converters/lexicalToHtml_deprecated/converter/converters/text.js';
749
- export { defaultHTMLConverters } from './features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js';
750
- export { convertLexicalNodesToHTML, convertLexicalToHTML } from './features/converters/lexicalToHtml_deprecated/converter/index.js';
751
- export { consolidateHTMLConverters, lexicalHTML } from './features/converters/lexicalToHtml_deprecated/field/index.js';
752
- export { HTMLConverterFeature } from './features/converters/lexicalToHtml_deprecated/index.js';
753
145
  export { convertLexicalToMarkdown } from './features/converters/lexicalToMarkdown/index.js';
754
146
  export { convertMarkdownToLexical } from './features/converters/markdownToLexical/index.js';
755
147
  export { getPayloadPopulateFn } from './features/converters/utilities/payloadPopulateFn.js';