@payloadcms/richtext-lexical 4.0.0-internal.c2b57ce → 4.0.0-internal.c6494b5

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 (1065) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/cell/rscEntry.d.ts +1 -1
  3. package/dist/cell/rscEntry.d.ts.map +1 -1
  4. package/dist/cell/rscEntry.js +5 -5
  5. package/dist/cell/rscEntry.js.map +1 -1
  6. package/dist/exports/client/Field-W2ABOM7M.js +2 -0
  7. package/dist/exports/client/Field-W2ABOM7M.js.map +7 -0
  8. package/dist/exports/client/{RelationshipComponent-RZL743CS.js → RelationshipComponent-YCPAKOL7.js} +1 -1
  9. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js.map +7 -0
  10. package/dist/exports/client/chunk-3LRZDIIG.js +2 -0
  11. package/dist/exports/client/chunk-3LRZDIIG.js.map +7 -0
  12. package/dist/exports/client/chunk-5VIL27GI.js +2 -0
  13. package/dist/exports/client/chunk-5VIL27GI.js.map +7 -0
  14. package/dist/exports/client/chunk-E6LSRRP2.js +2 -0
  15. package/dist/exports/client/chunk-E6LSRRP2.js.map +7 -0
  16. package/dist/exports/client/{chunk-BZZVLW4U.js → chunk-RJ5MAOKZ.js} +1 -1
  17. package/dist/exports/client/chunk-RJ5MAOKZ.js.map +7 -0
  18. package/dist/exports/client/chunk-ZQX5HXUL.js +2 -0
  19. package/dist/exports/client/chunk-ZQX5HXUL.js.map +7 -0
  20. package/dist/exports/client/component-6DQLENIE.js +2 -0
  21. package/dist/exports/client/component-6DQLENIE.js.map +7 -0
  22. package/dist/exports/client/componentInline-HNE5G4TE.js +2 -0
  23. package/dist/exports/client/index.d.ts +1 -2
  24. package/dist/exports/client/index.d.ts.map +1 -1
  25. package/dist/exports/client/index.js +28 -29
  26. package/dist/exports/client/index.js.map +4 -4
  27. package/dist/exports/react/index.d.ts +1 -1
  28. package/dist/exports/react/index.d.ts.map +1 -1
  29. package/dist/exports/react/index.js.map +1 -1
  30. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  31. package/dist/features/blockquote/client/index.js +2 -2
  32. package/dist/features/blockquote/client/index.js.map +1 -1
  33. package/dist/features/blockquote/server/index.d.ts +1 -4
  34. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  35. package/dist/features/blockquote/server/index.js +4 -2
  36. package/dist/features/blockquote/server/index.js.map +1 -1
  37. package/dist/features/blockquote/server/schema.d.ts +8 -0
  38. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  39. package/dist/features/blockquote/server/schema.js +15 -0
  40. package/dist/features/blockquote/server/schema.js.map +1 -0
  41. package/dist/features/blocks/client/component/BlockReordering/index.d.ts +11 -0
  42. package/dist/features/blocks/client/component/BlockReordering/index.d.ts.map +1 -0
  43. package/dist/features/blocks/client/component/BlockReordering/index.js +18 -0
  44. package/dist/features/blocks/client/component/BlockReordering/index.js.map +1 -0
  45. package/dist/features/blocks/client/component/index.css +2 -2
  46. package/dist/features/blocks/client/component/index.d.ts +3 -8
  47. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  48. package/dist/features/blocks/client/component/index.js +181 -105
  49. package/dist/features/blocks/client/component/index.js.map +1 -1
  50. package/dist/features/blocks/client/component/useBlockReordering.d.ts +16 -0
  51. package/dist/features/blocks/client/component/useBlockReordering.d.ts.map +1 -0
  52. package/dist/features/blocks/client/component/useBlockReordering.js +178 -0
  53. package/dist/features/blocks/client/component/useBlockReordering.js.map +1 -0
  54. package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -1
  55. package/dist/features/blocks/client/componentInline/index.css +8 -9
  56. package/dist/features/blocks/client/componentInline/index.d.ts +3 -2
  57. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  58. package/dist/features/blocks/client/componentInline/index.js +45 -29
  59. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  60. package/dist/features/blocks/client/getBlockImageComponent.d.ts +1 -1
  61. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts +9 -0
  62. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts.map +1 -0
  63. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js +95 -0
  64. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js.map +1 -0
  65. package/dist/features/blocks/client/index.d.ts.map +1 -1
  66. package/dist/features/blocks/client/index.js +4 -2
  67. package/dist/features/blocks/client/index.js.map +1 -1
  68. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  69. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  70. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  71. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  72. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  73. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  74. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  75. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  76. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  77. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  78. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  79. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  80. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  81. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  82. package/dist/features/blocks/client/nodes/BlocksNode.js +0 -10
  83. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  84. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  85. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  86. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  87. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  88. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  89. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  90. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  91. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +1 -0
  92. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  93. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +1 -1
  94. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +2 -4
  95. package/dist/features/blocks/premade/CodeBlock/Component/index.css +5 -5
  96. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  97. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  98. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  99. package/dist/features/blocks/server/index.d.ts +1 -0
  100. package/dist/features/blocks/server/index.d.ts.map +1 -1
  101. package/dist/features/blocks/server/index.js +26 -74
  102. package/dist/features/blocks/server/index.js.map +1 -1
  103. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  104. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  105. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  106. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  107. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  108. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  109. package/dist/features/blocks/server/nodes/BlocksNode.js +1 -12
  110. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  111. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  112. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  113. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +2 -2
  114. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  115. package/dist/features/blocks/server/schema.d.ts +47 -0
  116. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  117. package/dist/features/blocks/server/schema.js +138 -0
  118. package/dist/features/blocks/server/schema.js.map +1 -0
  119. package/dist/features/blocks/server/validate.d.ts +1 -2
  120. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  121. package/dist/features/blocks/server/validate.js +1 -1
  122. package/dist/features/blocks/server/validate.js.map +1 -1
  123. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  124. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  125. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/heading.js +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  136. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  138. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  139. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  140. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  143. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/converters/list.js +4 -3
  145. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  147. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  148. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  150. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  151. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  152. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  153. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  155. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  156. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  158. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  159. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  160. package/dist/features/converters/lexicalToHtml/async/converters/upload.js +3 -3
  161. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  162. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  163. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  164. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  165. package/dist/features/converters/lexicalToHtml/async/types.d.ts +15 -16
  166. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  167. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  168. package/dist/features/converters/lexicalToHtml/shared/cssColors.d.ts.map +1 -1
  169. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts.map +1 -1
  170. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js +3 -2
  171. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js +1 -1
  178. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  180. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  181. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  183. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  184. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  189. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  190. package/dist/features/converters/lexicalToHtml/sync/converters/list.js +4 -3
  191. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  192. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  193. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  194. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  195. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  196. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  197. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  198. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  199. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  200. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  201. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  202. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  203. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  204. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  205. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  206. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js +3 -3
  207. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  208. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  209. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  210. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  211. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +15 -16
  212. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  213. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  214. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +6 -4
  215. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  216. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  217. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  223. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +2 -1
  224. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  226. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  227. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  228. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  229. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  236. package/dist/features/converters/lexicalToJSX/converter/converters/list.js +2 -1
  237. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  238. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  239. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  240. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  241. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  242. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  243. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  244. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  245. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  246. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  247. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  248. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  249. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  250. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  251. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  252. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +4 -5
  253. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  254. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  255. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  256. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  257. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  258. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  259. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  260. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +13 -15
  261. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  262. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  263. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  264. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  265. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  266. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  267. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +13 -15
  268. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  269. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  270. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  271. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  272. package/dist/features/converters/markdownToLexical/index.js +5 -2
  273. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  274. package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -1
  275. package/dist/features/converters/utilities/payloadPopulateFn.js +4 -2
  276. package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -1
  277. package/dist/features/debug/jsxConverter/client/plugin/style.css +2 -2
  278. package/dist/features/debug/testRecorder/client/plugin/index.css +0 -1
  279. package/dist/features/format/bold/feature.client.js +1 -1
  280. package/dist/features/format/bold/feature.client.js.map +1 -1
  281. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  282. package/dist/features/format/bold/feature.server.js +1 -1
  283. package/dist/features/format/bold/feature.server.js.map +1 -1
  284. package/dist/features/format/inlineCode/feature.client.js +1 -1
  285. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  286. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  287. package/dist/features/format/inlineCode/feature.server.js +1 -1
  288. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  289. package/dist/features/format/italic/feature.client.js +1 -1
  290. package/dist/features/format/italic/feature.client.js.map +1 -1
  291. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  292. package/dist/features/format/italic/feature.server.js +1 -1
  293. package/dist/features/format/italic/feature.server.js.map +1 -1
  294. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  295. package/dist/features/format/strikethrough/feature.client.js +1 -1
  296. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  297. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  298. package/dist/features/format/strikethrough/feature.server.js +1 -1
  299. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  300. package/dist/features/heading/client/index.js +2 -2
  301. package/dist/features/heading/client/index.js.map +1 -1
  302. package/dist/features/heading/constants.d.ts +2 -0
  303. package/dist/features/heading/constants.d.ts.map +1 -0
  304. package/dist/features/heading/constants.js +2 -0
  305. package/dist/features/heading/constants.js.map +1 -0
  306. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  307. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  308. package/dist/features/heading/markdownTransformer.js +6 -19
  309. package/dist/features/heading/markdownTransformer.js.map +1 -1
  310. package/dist/features/heading/server/index.d.ts +2 -4
  311. package/dist/features/heading/server/index.d.ts.map +1 -1
  312. package/dist/features/heading/server/index.js +9 -3
  313. package/dist/features/heading/server/index.js.map +1 -1
  314. package/dist/features/heading/server/schema.d.ts +10 -0
  315. package/dist/features/heading/server/schema.d.ts.map +1 -0
  316. package/dist/features/heading/server/schema.js +37 -0
  317. package/dist/features/heading/server/schema.js.map +1 -0
  318. package/dist/features/heading/server/validate.d.ts +6 -0
  319. package/dist/features/heading/server/validate.d.ts.map +1 -0
  320. package/dist/features/heading/server/validate.js +15 -0
  321. package/dist/features/heading/server/validate.js.map +1 -0
  322. package/dist/features/horizontalRule/client/index.js +2 -2
  323. package/dist/features/horizontalRule/client/index.js.map +1 -1
  324. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  325. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  326. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  327. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  328. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +13 -3
  329. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  330. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +18 -1
  331. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  332. package/dist/features/horizontalRule/client/plugin/index.css +2 -2
  333. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  334. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  335. package/dist/features/horizontalRule/server/index.js +4 -2
  336. package/dist/features/horizontalRule/server/index.js.map +1 -1
  337. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  338. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  339. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  340. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  341. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +2 -6
  342. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  343. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +3 -3
  344. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  345. package/dist/features/horizontalRule/server/schema.d.ts +8 -0
  346. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  347. package/dist/features/horizontalRule/server/schema.js +26 -0
  348. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  349. package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -1
  350. package/dist/features/indent/client/IndentPlugin.js +122 -1
  351. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  352. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
  353. package/dist/features/indent/server/i18n.d.ts.map +1 -1
  354. package/dist/features/indent/server/i18n.js +74 -37
  355. package/dist/features/indent/server/i18n.js.map +1 -1
  356. package/dist/features/link/client/index.d.ts.map +1 -1
  357. package/dist/features/link/client/index.js +2 -2
  358. package/dist/features/link/client/index.js.map +1 -1
  359. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  360. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  361. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  362. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  363. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +11 -8
  364. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  365. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +7 -13
  366. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  367. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  368. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  369. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  370. package/dist/features/link/markdownTransformer.d.ts +5 -5
  371. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  372. package/dist/features/link/markdownTransformer.js +2 -2
  373. package/dist/features/link/markdownTransformer.js.map +1 -1
  374. package/dist/features/link/nodes/AutoLinkNode.d.ts +4 -4
  375. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  376. package/dist/features/link/nodes/AutoLinkNode.js +4 -11
  377. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  378. package/dist/features/link/nodes/LinkNode.d.ts +4 -4
  379. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  380. package/dist/features/link/nodes/LinkNode.js +4 -16
  381. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  382. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  383. package/dist/features/link/server/baseFields.js.map +1 -1
  384. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  385. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  386. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  387. package/dist/features/link/server/index.d.ts +2 -1
  388. package/dist/features/link/server/index.d.ts.map +1 -1
  389. package/dist/features/link/server/index.js +7 -4
  390. package/dist/features/link/server/index.js.map +1 -1
  391. package/dist/features/link/server/schema.d.ts +32 -0
  392. package/dist/features/link/server/schema.d.ts.map +1 -0
  393. package/dist/features/link/server/schema.js +171 -0
  394. package/dist/features/link/server/schema.js.map +1 -0
  395. package/dist/features/link/server/validate.d.ts +1 -1
  396. package/dist/features/link/server/validate.d.ts.map +1 -1
  397. package/dist/features/link/server/validate.js +1 -1
  398. package/dist/features/link/server/validate.js.map +1 -1
  399. package/dist/features/lists/checklist/client/index.js +1 -1
  400. package/dist/features/lists/checklist/client/index.js.map +1 -1
  401. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  402. package/dist/features/lists/checklist/server/index.js +9 -3
  403. package/dist/features/lists/checklist/server/index.js.map +1 -1
  404. package/dist/features/lists/orderedList/client/index.js +1 -1
  405. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  406. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  407. package/dist/features/lists/orderedList/server/index.js +9 -3
  408. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  409. package/dist/features/lists/plugin/index.d.ts +0 -9
  410. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  411. package/dist/features/lists/plugin/index.js.map +1 -1
  412. package/dist/features/lists/shared/constants.d.ts +2 -0
  413. package/dist/features/lists/shared/constants.d.ts.map +1 -0
  414. package/dist/features/lists/shared/constants.js +2 -0
  415. package/dist/features/lists/shared/constants.js.map +1 -0
  416. package/dist/features/lists/shared/schema.d.ts +18 -0
  417. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  418. package/dist/features/lists/shared/schema.js +62 -0
  419. package/dist/features/lists/shared/schema.js.map +1 -0
  420. package/dist/features/lists/shared/validate.d.ts +5 -0
  421. package/dist/features/lists/shared/validate.d.ts.map +1 -0
  422. package/dist/features/lists/shared/validate.js +15 -0
  423. package/dist/features/lists/shared/validate.js.map +1 -0
  424. package/dist/features/lists/unorderedList/client/index.js +1 -1
  425. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  426. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  427. package/dist/features/lists/unorderedList/server/index.js +9 -3
  428. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  429. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +1 -1
  430. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  431. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  432. package/dist/features/relationship/client/components/index.css +3 -6
  433. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -1
  434. package/dist/features/relationship/client/index.d.ts +2 -2
  435. package/dist/features/relationship/client/index.d.ts.map +1 -1
  436. package/dist/features/relationship/client/index.js.map +1 -1
  437. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  438. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  439. package/dist/features/relationship/client/nodes/RelationshipNode.js +0 -3
  440. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  441. package/dist/features/relationship/client/plugins/index.d.ts +3 -3
  442. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  443. package/dist/features/relationship/client/plugins/index.js +27 -31
  444. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  445. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts +2 -4
  446. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  447. package/dist/features/relationship/client/utils/useEnabledRelationships.js +52 -50
  448. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  449. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +3 -3
  450. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  451. package/dist/features/relationship/server/graphQLPopulationPromise.js +2 -2
  452. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  453. package/dist/features/relationship/server/index.d.ts +9 -1
  454. package/dist/features/relationship/server/index.d.ts.map +1 -1
  455. package/dist/features/relationship/server/index.js +30 -11
  456. package/dist/features/relationship/server/index.js.map +1 -1
  457. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  458. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  459. package/dist/features/relationship/server/nodes/RelationshipNode.js +1 -5
  460. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  461. package/dist/features/relationship/server/schema.d.ts +29 -0
  462. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  463. package/dist/features/relationship/server/schema.js +94 -0
  464. package/dist/features/relationship/server/schema.js.map +1 -0
  465. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +18 -0
  466. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  467. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +30 -0
  468. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  469. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -1
  470. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -1
  471. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -1
  472. package/dist/features/table/client/index.d.ts.map +1 -0
  473. package/dist/features/{experimental_table → table}/client/index.js +2 -2
  474. package/dist/features/table/client/index.js.map +1 -0
  475. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts +8 -0
  476. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts.map +1 -0
  477. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js +19 -0
  478. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js.map +1 -0
  479. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.css +4 -5
  480. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  481. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.js +17 -44
  482. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  483. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  484. package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.js +41 -18
  485. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  486. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  487. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  488. package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.css +1 -4
  489. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  490. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  491. package/dist/features/table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  492. package/dist/features/table/client/plugins/TablePlugin/index.js.map +1 -0
  493. package/dist/features/table/client/utils/debounce.d.ts.map +1 -0
  494. package/dist/features/table/client/utils/debounce.js.map +1 -0
  495. package/dist/features/table/client/utils/useDebounce.d.ts.map +1 -0
  496. package/dist/features/table/client/utils/useDebounce.js.map +1 -0
  497. package/dist/features/table/markdownTransformer.d.ts +5 -0
  498. package/dist/features/table/markdownTransformer.d.ts.map +1 -0
  499. package/dist/features/{experimental_table → table}/markdownTransformer.js +6 -3
  500. package/dist/features/table/markdownTransformer.js.map +1 -0
  501. package/dist/features/table/server/index.d.ts +3 -0
  502. package/dist/features/table/server/index.d.ts.map +1 -0
  503. package/dist/features/{experimental_table → table}/server/index.js +10 -6
  504. package/dist/features/table/server/index.js.map +1 -0
  505. package/dist/features/table/server/schema.d.ts +27 -0
  506. package/dist/features/table/server/schema.d.ts.map +1 -0
  507. package/dist/features/table/server/schema.js +107 -0
  508. package/dist/features/table/server/schema.js.map +1 -0
  509. package/dist/features/textState/feature.client.js +1 -1
  510. package/dist/features/textState/feature.client.js.map +1 -1
  511. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts +8 -0
  512. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts.map +1 -0
  513. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js +80 -0
  514. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js.map +1 -0
  515. package/dist/features/toolbars/fixed/client/Toolbar/index.css +80 -8
  516. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  517. package/dist/features/toolbars/fixed/client/Toolbar/index.js +19 -1
  518. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  519. package/dist/features/toolbars/inline/client/Toolbar/index.css +2 -14
  520. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  521. package/dist/features/toolbars/inline/client/Toolbar/index.js +17 -2
  522. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  523. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  524. package/dist/features/toolbars/shared/ToolbarButton/index.js +1 -0
  525. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  526. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  527. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +85 -32
  528. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  529. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +23 -25
  530. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  531. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  532. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts +5 -0
  533. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts.map +1 -0
  534. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js +79 -0
  535. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js.map +1 -0
  536. package/dist/features/toolbars/shared/useToolbarStates.d.ts.map +1 -1
  537. package/dist/features/toolbars/shared/useToolbarStates.js +3 -1
  538. package/dist/features/toolbars/shared/useToolbarStates.js.map +1 -1
  539. package/dist/features/toolbars/types.d.ts +1 -1
  540. package/dist/features/toolbars/types.d.ts.map +1 -1
  541. package/dist/features/toolbars/types.js.map +1 -1
  542. package/dist/features/typesClient.d.ts +2 -2
  543. package/dist/features/typesClient.d.ts.map +1 -1
  544. package/dist/features/typesClient.js.map +1 -1
  545. package/dist/features/typesServer.d.ts +35 -53
  546. package/dist/features/typesServer.d.ts.map +1 -1
  547. package/dist/features/typesServer.js.map +1 -1
  548. package/dist/features/upload/client/component/index.css +18 -26
  549. package/dist/features/upload/client/component/index.d.ts +1 -1
  550. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  551. package/dist/features/upload/client/component/index.js +3 -2
  552. package/dist/features/upload/client/component/index.js.map +1 -1
  553. package/dist/features/upload/client/drawer/index.d.ts.map +1 -1
  554. package/dist/features/upload/client/index.d.ts +3 -2
  555. package/dist/features/upload/client/index.d.ts.map +1 -1
  556. package/dist/features/upload/client/index.js.map +1 -1
  557. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  558. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  559. package/dist/features/upload/client/nodes/UploadNode.js +0 -7
  560. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  561. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  562. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  563. package/dist/features/upload/client/plugin/index.js +53 -56
  564. package/dist/features/upload/client/plugin/index.js.map +1 -1
  565. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +3 -3
  566. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  567. package/dist/features/upload/server/graphQLPopulationPromise.js +1 -1
  568. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  569. package/dist/features/upload/server/index.d.ts +7 -2
  570. package/dist/features/upload/server/index.d.ts.map +1 -1
  571. package/dist/features/upload/server/index.js +25 -20
  572. package/dist/features/upload/server/index.js.map +1 -1
  573. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  574. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  575. package/dist/features/upload/server/markdownTransformer.js +1 -1
  576. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  577. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  578. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  579. package/dist/features/upload/server/nodes/UploadNode.js +1 -9
  580. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  581. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  582. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  583. package/dist/features/upload/server/schema.d.ts +40 -0
  584. package/dist/features/upload/server/schema.d.ts.map +1 -0
  585. package/dist/features/upload/server/schema.js +147 -0
  586. package/dist/features/upload/server/schema.js.map +1 -0
  587. package/dist/features/upload/server/validate.d.ts +3 -3
  588. package/dist/features/upload/server/validate.d.ts.map +1 -1
  589. package/dist/features/upload/server/validate.js +4 -1
  590. package/dist/features/upload/server/validate.js.map +1 -1
  591. package/dist/field/Diff/converters/link.d.ts +1 -1
  592. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  593. package/dist/field/Diff/converters/link.js.map +1 -1
  594. package/dist/field/Diff/converters/listitem/index.css +44 -8
  595. package/dist/field/Diff/converters/listitem/index.d.ts +1 -1
  596. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  597. package/dist/field/Diff/converters/listitem/index.js +2 -1
  598. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  599. package/dist/field/Diff/converters/relationship/index.css +75 -36
  600. package/dist/field/Diff/converters/relationship/index.d.ts +1 -1
  601. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  602. package/dist/field/Diff/converters/relationship/index.js +10 -28
  603. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  604. package/dist/field/Diff/converters/unknown/index.css +1 -2
  605. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  606. package/dist/field/Diff/converters/upload/index.css +105 -43
  607. package/dist/field/Diff/converters/upload/index.d.ts +1 -1
  608. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  609. package/dist/field/Diff/converters/upload/index.js +6 -2
  610. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  611. package/dist/field/Diff/index.css +114 -61
  612. package/dist/field/Diff/index.d.ts +3 -2
  613. package/dist/field/Diff/index.d.ts.map +1 -1
  614. package/dist/field/Diff/index.js +3 -2
  615. package/dist/field/Diff/index.js.map +1 -1
  616. package/dist/field/Field.d.ts +1 -1
  617. package/dist/field/Field.d.ts.map +1 -1
  618. package/dist/field/Field.js +26 -16
  619. package/dist/field/Field.js.map +1 -1
  620. package/dist/field/RenderLexical/index.d.ts +5 -3
  621. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  622. package/dist/field/RenderLexical/index.js +23 -23
  623. package/dist/field/RenderLexical/index.js.map +1 -1
  624. package/dist/field/RichTextViewProvider.d.ts +1 -1
  625. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  626. package/dist/field/RichTextViewProvider.js.map +1 -1
  627. package/dist/field/ViewSelector.css +1 -1
  628. package/dist/field/ViewSelector.d.ts.map +1 -1
  629. package/dist/field/ViewSelector.js +1 -0
  630. package/dist/field/ViewSelector.js.map +1 -1
  631. package/dist/field/bundled.css +1 -1
  632. package/dist/field/index.css +15 -16
  633. package/dist/field/index.d.ts +1 -1
  634. package/dist/field/index.d.ts.map +1 -1
  635. package/dist/field/index.js +1 -1
  636. package/dist/field/index.js.map +1 -1
  637. package/dist/field/rscEntry.d.ts +2 -2
  638. package/dist/field/rscEntry.d.ts.map +1 -1
  639. package/dist/field/rscEntry.js +2 -0
  640. package/dist/field/rscEntry.js.map +1 -1
  641. package/dist/hooks.d.ts +6 -0
  642. package/dist/hooks.d.ts.map +1 -0
  643. package/dist/hooks.js +548 -0
  644. package/dist/hooks.js.map +1 -0
  645. package/dist/i18n.d.ts.map +1 -1
  646. package/dist/i18n.js +68 -0
  647. package/dist/i18n.js.map +1 -1
  648. package/dist/index.d.ts +15 -12
  649. package/dist/index.d.ts.map +1 -1
  650. package/dist/index.js +37 -624
  651. package/dist/index.js.map +1 -1
  652. package/dist/lexical/LexicalEditor.css +30 -19
  653. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  654. package/dist/lexical/LexicalEditor.js +61 -64
  655. package/dist/lexical/LexicalEditor.js.map +1 -1
  656. package/dist/lexical/LexicalProvider.d.ts +1 -1
  657. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  658. package/dist/lexical/LexicalProvider.js.map +1 -1
  659. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  660. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  661. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  662. package/dist/lexical/config/client/loader.d.ts +1 -1
  663. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  664. package/dist/lexical/config/client/loader.js +5 -1
  665. package/dist/lexical/config/client/loader.js.map +1 -1
  666. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  667. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  668. package/dist/lexical/config/client/sanitize.js.map +1 -1
  669. package/dist/lexical/config/server/loader.d.ts +1 -1
  670. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  671. package/dist/lexical/config/server/loader.js +2 -2
  672. package/dist/lexical/config/server/loader.js.map +1 -1
  673. package/dist/lexical/config/server/sanitize.d.ts +1 -1
  674. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  675. package/dist/lexical/config/server/sanitize.js +11 -13
  676. package/dist/lexical/config/server/sanitize.js.map +1 -1
  677. package/dist/lexical/config/types.d.ts +1 -1
  678. package/dist/lexical/config/types.d.ts.map +1 -1
  679. package/dist/lexical/config/types.js.map +1 -1
  680. package/dist/lexical/nodes/index.d.ts +1 -1
  681. package/dist/lexical/nodes/index.d.ts.map +1 -1
  682. package/dist/lexical/nodes/index.js.map +1 -1
  683. package/dist/lexical/plugins/DecoratorPlugin/index.css +1 -1
  684. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  685. package/dist/lexical/plugins/DecoratorPlugin/index.js +24 -21
  686. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  687. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +18 -25
  688. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  689. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +27 -14
  690. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  691. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  692. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  693. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  694. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -1
  695. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +21 -0
  696. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -1
  697. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -1
  698. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  699. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +2 -21
  700. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  701. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  702. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  703. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  704. package/dist/lexical/plugins/SlashMenu/index.css +1 -7
  705. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +2 -1
  706. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +2 -2
  707. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  708. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  709. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +5 -3
  710. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  711. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +17 -3
  712. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  713. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts +7 -0
  714. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts.map +1 -0
  715. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js +65 -0
  716. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js.map +1 -0
  717. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  718. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  719. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +2 -0
  720. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  721. package/dist/lexical/theme/EditorTheme.css +18 -21
  722. package/dist/lexical/ui/ContentEditable.css +22 -17
  723. package/dist/lexical/ui/ContentEditable.d.ts +2 -1
  724. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  725. package/dist/lexical/ui/ContentEditable.js +32 -11
  726. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  727. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  728. package/dist/lexical/ui/icons/H3/index.js +13 -6
  729. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  730. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  731. package/dist/lexical/ui/icons/H4/index.js +13 -6
  732. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  733. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  734. package/dist/lexical/ui/icons/H5/index.js +13 -6
  735. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  736. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  737. package/dist/lexical/ui/icons/H6/index.js +13 -6
  738. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  739. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  740. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  741. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  742. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  743. package/dist/lexical/utils/markdown/createBlockNode.d.ts +2 -2
  744. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  745. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  746. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  747. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  748. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  749. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  750. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -1
  751. package/dist/lexical/utils/point.d.ts.map +1 -1
  752. package/dist/lexical/utils/rect.d.ts.map +1 -1
  753. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  754. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  755. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  756. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  757. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts +2 -0
  758. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts.map +1 -0
  759. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js +2 -0
  760. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js.map +1 -0
  761. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts +2 -0
  762. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts.map +1 -0
  763. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js +2 -0
  764. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js.map +1 -0
  765. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts +2 -0
  766. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts.map +1 -0
  767. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js +2 -0
  768. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js.map +1 -0
  769. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts +2 -0
  770. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts.map +1 -0
  771. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js +2 -0
  772. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js.map +1 -0
  773. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts +2 -0
  774. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts.map +1 -0
  775. package/dist/lexical-proxy/@lexical-react/ReactExtension.js +2 -0
  776. package/dist/lexical-proxy/@lexical-react/ReactExtension.js.map +1 -0
  777. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts +2 -0
  778. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts.map +1 -0
  779. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js +2 -0
  780. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js.map +1 -0
  781. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts +2 -0
  782. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts.map +1 -0
  783. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js +2 -0
  784. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js.map +1 -0
  785. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts +2 -0
  786. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts.map +1 -0
  787. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js +2 -0
  788. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js.map +1 -0
  789. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts +2 -0
  790. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts.map +1 -0
  791. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js +2 -0
  792. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js.map +1 -0
  793. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts +2 -0
  794. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.d.ts.map +1 -0
  795. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js +2 -0
  796. package/dist/lexical-proxy/@lexical-react/useExtensionSignalValue.js.map +1 -0
  797. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts +2 -0
  798. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.d.ts.map +1 -0
  799. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js +2 -0
  800. package/dist/lexical-proxy/@lexical-react/useLexicalAriaLiveRegion.js.map +1 -0
  801. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts +2 -0
  802. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.d.ts.map +1 -0
  803. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js +2 -0
  804. package/dist/lexical-proxy/@lexical-react/useLexicalFocusManagerRef.js.map +1 -0
  805. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts +2 -0
  806. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.d.ts.map +1 -0
  807. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js +2 -0
  808. package/dist/lexical-proxy/@lexical-react/useLexicalFocusTrapRef.js.map +1 -0
  809. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts +2 -0
  810. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.d.ts.map +1 -0
  811. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js +2 -0
  812. package/dist/lexical-proxy/@lexical-react/useLexicalRovingTabIndexRef.js.map +1 -0
  813. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts +2 -0
  814. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.d.ts.map +1 -0
  815. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js +2 -0
  816. package/dist/lexical-proxy/@lexical-react/useLexicalSlotRef.js.map +1 -0
  817. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  818. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  819. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  820. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  821. package/dist/presets/llmInstructions.d.ts +2 -0
  822. package/dist/presets/llmInstructions.d.ts.map +1 -0
  823. package/dist/presets/llmInstructions.js +13 -0
  824. package/dist/presets/llmInstructions.js.map +1 -0
  825. package/dist/types/builtInNodes.d.ts +14 -0
  826. package/dist/types/builtInNodes.d.ts.map +1 -0
  827. package/dist/types/builtInNodes.js +208 -0
  828. package/dist/types/builtInNodes.js.map +1 -0
  829. package/dist/{types.d.ts → types/index.d.ts} +29 -33
  830. package/dist/types/index.d.ts.map +1 -0
  831. package/dist/types/index.js +2 -0
  832. package/dist/types/index.js.map +1 -0
  833. package/dist/types/jsonSchemaHelpers.d.ts +34 -0
  834. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  835. package/dist/types/jsonSchemaHelpers.js +63 -0
  836. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  837. package/dist/types/nodeTypes.d.ts +133 -0
  838. package/dist/types/nodeTypes.d.ts.map +1 -0
  839. package/dist/types/nodeTypes.js +6 -0
  840. package/dist/types/nodeTypes.js.map +1 -0
  841. package/dist/types/schema.d.ts +6 -0
  842. package/dist/types/schema.d.ts.map +1 -0
  843. package/dist/types/schema.js +90 -0
  844. package/dist/types/schema.js.map +1 -0
  845. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  846. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  847. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  848. package/dist/utilities/buildEditorState.d.ts +18 -4
  849. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  850. package/dist/utilities/buildEditorState.js +8 -0
  851. package/dist/utilities/buildEditorState.js.map +1 -1
  852. package/dist/utilities/buildInitialState.d.ts +4 -2
  853. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  854. package/dist/utilities/buildInitialState.js +1 -0
  855. package/dist/utilities/buildInitialState.js.map +1 -1
  856. package/dist/utilities/createClientFeature.d.ts +1 -1
  857. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  858. package/dist/utilities/createClientFeature.js.map +1 -1
  859. package/dist/utilities/createServerFeature.d.ts +1 -1
  860. package/dist/utilities/createServerFeature.d.ts.map +1 -1
  861. package/dist/utilities/createServerFeature.js +2 -2
  862. package/dist/utilities/createServerFeature.js.map +1 -1
  863. package/dist/utilities/editorConfigFactory.d.ts +7 -7
  864. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  865. package/dist/utilities/editorConfigFactory.js +9 -9
  866. package/dist/utilities/editorConfigFactory.js.map +1 -1
  867. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  868. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  869. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  870. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  871. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  872. package/dist/utilities/fieldsDrawer/DrawerContent.js +8 -7
  873. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  874. package/dist/utilities/fieldsDrawer/index.css +12 -0
  875. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  876. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  877. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  878. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  879. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  880. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -1
  881. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -1
  882. package/dist/utilities/generateImportMap.d.ts +3 -3
  883. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  884. package/dist/utilities/generateImportMap.js.map +1 -1
  885. package/dist/utilities/generateSchemaMap.d.ts +1 -1
  886. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  887. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +2 -2
  888. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  889. package/dist/utilities/getDefaultSanitizedEditorConfig.js +6 -17
  890. package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -1
  891. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  892. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  893. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  894. package/dist/utilities/recurseNodeTree.d.ts.map +1 -1
  895. package/dist/utilities/upgradeLexicalData/index.js +6 -3
  896. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  897. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -1
  898. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  899. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  900. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  901. package/dist/validate/hasText.d.ts +2 -2
  902. package/dist/validate/hasText.d.ts.map +1 -1
  903. package/dist/validate/hasText.js.map +1 -1
  904. package/dist/validate/index.d.ts +1 -1
  905. package/dist/validate/index.d.ts.map +1 -1
  906. package/package.json +99 -30
  907. package/dist/dependencyChecker.spec.js +0 -16
  908. package/dist/dependencyChecker.spec.js.map +0 -1
  909. package/dist/exports/client/Field-VMNLDBRS.js +0 -2
  910. package/dist/exports/client/Field-VMNLDBRS.js.map +0 -7
  911. package/dist/exports/client/RelationshipComponent-RZL743CS.js.map +0 -7
  912. package/dist/exports/client/bundled.css +0 -1
  913. package/dist/exports/client/chunk-74RUDY7K.js +0 -2
  914. package/dist/exports/client/chunk-74RUDY7K.js.map +0 -7
  915. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  916. package/dist/exports/client/chunk-FTT5KJ6W.js +0 -12
  917. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  918. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  919. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  920. package/dist/exports/client/chunk-QJ5EETIB.js +0 -2
  921. package/dist/exports/client/chunk-QJ5EETIB.js.map +0 -7
  922. package/dist/exports/client/component-2ZTDKRVK.js +0 -2
  923. package/dist/exports/client/component-2ZTDKRVK.js.map +0 -7
  924. package/dist/exports/client/componentInline-JYKBUUPZ.js +0 -2
  925. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  926. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  927. package/dist/features/blockquote/markdownTransformer.js +0 -33
  928. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  929. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +0 -11
  930. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +0 -1
  931. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +0 -20
  932. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +0 -1
  933. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +0 -180
  934. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +0 -1
  935. package/dist/features/experimental_table/client/index.d.ts.map +0 -1
  936. package/dist/features/experimental_table/client/index.js.map +0 -1
  937. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  938. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +0 -1
  939. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  940. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +0 -1
  941. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
  942. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +0 -1
  943. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +0 -1
  944. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +0 -1
  945. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +0 -1
  946. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +0 -1
  947. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +0 -1
  948. package/dist/features/experimental_table/client/utils/debounce.js.map +0 -1
  949. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +0 -1
  950. package/dist/features/experimental_table/client/utils/useDebounce.js.map +0 -1
  951. package/dist/features/experimental_table/markdownTransformer.d.ts +0 -5
  952. package/dist/features/experimental_table/markdownTransformer.d.ts.map +0 -1
  953. package/dist/features/experimental_table/markdownTransformer.js.map +0 -1
  954. package/dist/features/experimental_table/server/index.d.ts +0 -8
  955. package/dist/features/experimental_table/server/index.d.ts.map +0 -1
  956. package/dist/features/experimental_table/server/index.js.map +0 -1
  957. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  958. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  959. package/dist/features/format/bold/markdownTransformers.js +0 -23
  960. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  961. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  962. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  963. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  964. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  965. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  966. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  967. package/dist/features/format/italic/markdownTransformers.js +0 -12
  968. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  969. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  970. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  971. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  972. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  973. package/dist/features/link/markdownTransformer.spec.js +0 -195
  974. package/dist/features/link/markdownTransformer.spec.js.map +0 -1
  975. package/dist/features/link/nodes/types.d.ts +0 -27
  976. package/dist/features/link/nodes/types.d.ts.map +0 -1
  977. package/dist/features/link/nodes/types.js +0 -2
  978. package/dist/features/link/nodes/types.js.map +0 -1
  979. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  980. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  981. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  982. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  983. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  984. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  985. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  986. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  987. package/dist/features/lists/shared/markdown.d.ts +0 -6
  988. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  989. package/dist/features/lists/shared/markdown.js +0 -57
  990. package/dist/features/lists/shared/markdown.js.map +0 -1
  991. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  992. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  993. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  994. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  995. package/dist/lexical/utils/guard.d.ts +0 -5
  996. package/dist/lexical/utils/guard.d.ts.map +0 -1
  997. package/dist/lexical/utils/guard.js +0 -9
  998. package/dist/lexical/utils/guard.js.map +0 -1
  999. package/dist/lexical/utils/url.spec.js +0 -114
  1000. package/dist/lexical/utils/url.spec.js.map +0 -1
  1001. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +0 -2
  1002. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +0 -1
  1003. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +0 -2
  1004. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +0 -1
  1005. package/dist/nodeTypes.d.ts +0 -74
  1006. package/dist/nodeTypes.d.ts.map +0 -1
  1007. package/dist/nodeTypes.js +0 -5
  1008. package/dist/nodeTypes.js.map +0 -1
  1009. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  1010. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  1011. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -213
  1012. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  1013. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  1014. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  1015. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -198
  1016. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  1017. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  1018. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  1019. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  1020. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  1021. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -147
  1022. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  1023. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -268
  1024. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  1025. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  1026. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  1027. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  1028. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  1029. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  1030. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  1031. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  1032. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  1033. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  1034. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  1035. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  1036. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  1037. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  1038. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  1039. package/dist/packages/@lexical/markdown/index.js +0 -39
  1040. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  1041. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  1042. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  1043. package/dist/packages/@lexical/markdown/utils.js +0 -267
  1044. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  1045. package/dist/types.d.ts.map +0 -1
  1046. package/dist/types.js +0 -2
  1047. package/dist/types.js.map +0 -1
  1048. package/dist/utilities/jsx/jsx.spec.js +0 -178
  1049. package/dist/utilities/jsx/jsx.spec.js.map +0 -1
  1050. /package/dist/exports/client/{componentInline-JYKBUUPZ.js.map → componentInline-HNE5G4TE.js.map} +0 -0
  1051. /package/dist/features/{experimental_table → table}/client/index.d.ts +0 -0
  1052. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.d.ts +0 -0
  1053. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.css +0 -0
  1054. /package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.d.ts +0 -0
  1055. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.d.ts +0 -0
  1056. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.js +0 -0
  1057. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.d.ts +0 -0
  1058. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/TableGridPopup/index.js +0 -0
  1059. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.css +0 -0
  1060. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.d.ts +0 -0
  1061. /package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.js +0 -0
  1062. /package/dist/features/{experimental_table → table}/client/utils/debounce.d.ts +0 -0
  1063. /package/dist/features/{experimental_table → table}/client/utils/debounce.js +0 -0
  1064. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.d.ts +0 -0
  1065. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.js +0 -0
@@ -4,18 +4,21 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
4
4
  import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
5
5
  import { useLexicalEditable } from '@lexical/react/useLexicalEditable';
6
6
  import { getTranslation } from '@payloadcms/translations';
7
- import { Button, Collapsible, Drawer, EditDepthProvider, ErrorPill, Form, formatDrawerSlug, FormSubmit, MoreIcon, Pill, Popup, PopupList, RenderFields, SectionTitle, useConfig, useDocumentForm, useDocumentInfo, useEditDepth, useFormSubmitted, useServerFunctions, useTranslation, XIcon } from '@payloadcms/ui';
7
+ import { Button, Collapsible, Drawer, EditDepthProvider, ErrorPill, Form, formatDrawerSlug, MoreIcon, Pill, Popup, PopupList, RenderFields, SectionTitle, useConfig, useDocumentForm, useDocumentInfo, useEditDepth, useFormSubmitted, useServerFunctions, useTranslation, XIcon } from '@payloadcms/ui';
8
8
  import { abortAndIgnore } from '@payloadcms/ui/shared';
9
9
  import { $getNodeByKey, $getRoot, SKIP_DOM_SELECTION_TAG } from 'lexical';
10
- import { deepCopyObjectSimpleWithoutReactComponents, reduceFieldsToValues } from 'payload/shared';
10
+ import { deepCopyObjectSimpleWithoutReactComponents } from 'payload/shared';
11
11
  import React, { useCallback, useEffect, useMemo, useRef } from 'react';
12
12
  import { v4 as uuid } from 'uuid';
13
13
  import './index.css';
14
+ import '../../../../utilities/fieldsDrawer/index.css';
14
15
  import { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js';
16
+ import { RegisterFormSubmit, useDrawerSubmit } from '../../../../utilities/fieldsDrawer/useDrawerSubmit.js';
15
17
  import { useLexicalDrawer } from '../../../../utilities/fieldsDrawer/useLexicalDrawer.js';
18
+ import { getCachedFormStateIfDataMatches, reduceFormStateToBlockData } from '../getCachedFormStateIfDataMatches.js';
16
19
  import { $isBlockNode } from '../nodes/BlocksNode.js';
17
20
  import { BlockContent, useBlockComponentContext } from './BlockContent.js';
18
- import { removeEmptyArrayValues } from './removeEmptyArrayValues.js';
21
+ import { BlockReordering } from './BlockReordering/index.js';
19
22
  export const BlockComponent = props => {
20
23
  const {
21
24
  cacheBuster,
@@ -66,31 +69,43 @@ export const BlockComponent = props => {
66
69
  const [editor] = useLexicalComposerContext();
67
70
  const isEditable = useLexicalEditable();
68
71
  const blockType = formData.blockType;
72
+ const formDataRef = useRef(formData);
73
+ formDataRef.current = formData;
74
+ const componentMapRenderedBlockPath = `${schemaPath}.lexical_internal_feature.blocks.lexical_blocks.${blockType}`;
75
+ const clientSchemaMap = featureClientSchemaMap['blocks'];
76
+ const blocksField = clientSchemaMap?.[componentMapRenderedBlockPath]?.[0];
77
+ const blockOrSlug = blocksField?.blocks?.[0];
78
+ const clientBlock = typeof blockOrSlug === 'string' ? config.blocksMap[blockOrSlug] : blockOrSlug;
69
79
  const {
70
80
  getFormState
71
81
  } = useServerFunctions();
72
82
  const schemaFieldsPath = `${schemaPath}.lexical_internal_feature.blocks.lexical_blocks.${blockType}.fields`;
73
83
  const [initialState, setInitialState] = React.useState(() => {
74
84
  // Initial form state that was calculated server-side. May have stale values
75
- const cachedFormState = initialLexicalFormState?.[formData.id]?.formState;
85
+ const cachedState = initialLexicalFormState?.[formData.id];
86
+ const cachedFormState = cachedState?.formState;
76
87
  if (!cachedFormState) {
77
88
  return false;
78
89
  }
79
- // Merge current formData values into the cached form state
80
- // This ensures that when the component remounts (e.g., due to view changes), we don't lose user edits
81
- const mergedState = Object.fromEntries(Object.entries(cachedFormState).map(([fieldName, fieldState]) => [fieldName, fieldName in formData ? {
82
- ...fieldState,
83
- initialValue: formData[fieldName],
84
- value: formData[fieldName]
85
- } : fieldState]));
90
+ const matchingCachedState = getCachedFormStateIfDataMatches({
91
+ cachedFormState,
92
+ cachedSchemaPath: cachedState.schemaPath,
93
+ currentSchemaPath: schemaFieldsPath,
94
+ formData
95
+ });
96
+ if (!matchingCachedState) {
97
+ return false;
98
+ }
86
99
  // Manually add blockName, as it's not part of cachedFormState
87
- mergedState.blockName = {
88
- initialValue: formData.blockName,
89
- passesCondition: true,
90
- valid: true,
91
- value: formData.blockName
100
+ return {
101
+ ...matchingCachedState,
102
+ blockName: {
103
+ initialValue: formData.blockName,
104
+ passesCondition: true,
105
+ valid: true,
106
+ value: formData.blockName
107
+ }
92
108
  };
93
- return mergedState;
94
109
  });
95
110
  const hasMounted = useRef(false);
96
111
  const prevCacheBuster = useRef(cacheBuster);
@@ -189,9 +204,9 @@ export const BlockComponent = props => {
189
204
  valid: true,
190
205
  value: formData.blockName
191
206
  };
192
- const newFormStateData = reduceFieldsToValues(deepCopyObjectSimpleWithoutReactComponents(state, {
207
+ const newFormStateData = reduceFormStateToBlockData(deepCopyObjectSimpleWithoutReactComponents(state, {
193
208
  excludeFiles: true
194
- }), true);
209
+ }));
195
210
  // Things like default values may come back from the server => update the node with the new data
196
211
  editor.update(() => {
197
212
  const node = $getNodeByKey(nodeKey);
@@ -215,18 +230,14 @@ export const BlockComponent = props => {
215
230
  }
216
231
  }
217
232
  };
218
- if (formData && !initialState) {
233
+ if (clientBlock && formData && !initialState) {
219
234
  void awaitInitialState();
220
235
  }
221
236
  return () => {
222
237
  abortAndIgnore(abortController);
223
238
  };
224
- }, [getFormState, schemaFieldsPath, isEditable, id, CustomLabelFromProps, CustomBlockFromProps, formData, editor, nodeKey, initialState, collectionSlug, globalSlug, getDocPreferences, parentDocumentFields, blockType]);
239
+ }, [getFormState, schemaFieldsPath, isEditable, id, CustomLabelFromProps, CustomBlockFromProps, formData, editor, nodeKey, initialState, collectionSlug, globalSlug, getDocPreferences, parentDocumentFields, blockType, clientBlock]);
225
240
  const [isCollapsed, setIsCollapsed] = React.useState(initialLexicalFormState?.[formData.id]?.collapsed ?? false);
226
- const componentMapRenderedBlockPath = `${schemaPath}.lexical_internal_feature.blocks.lexical_blocks.${blockType}`;
227
- const clientSchemaMap = featureClientSchemaMap['blocks'];
228
- const blocksField = clientSchemaMap?.[componentMapRenderedBlockPath]?.[0];
229
- const clientBlock = blocksField.blockReferences ? typeof blocksField?.blockReferences?.[0] === 'string' ? config.blocksMap[blocksField?.blockReferences?.[0]] : blocksField?.blockReferences?.[0] : blocksField?.blocks?.[0];
230
241
  const {
231
242
  i18n,
232
243
  t
@@ -238,11 +249,15 @@ export const BlockComponent = props => {
238
249
  abortAndIgnore(onChangeAbortControllerRef.current);
239
250
  const controller = new AbortController();
240
251
  onChangeAbortControllerRef.current = controller;
252
+ const blockData = reduceFormStateToBlockData(deepCopyObjectSimpleWithoutReactComponents(prevFormState, {
253
+ excludeFiles: true
254
+ }), formDataRef.current);
241
255
  const {
242
256
  state: newFormState
243
257
  } = await getFormState({
244
258
  id,
245
259
  collectionSlug,
260
+ data: blockData,
246
261
  docPermissions: {
247
262
  fields: true
248
263
  },
@@ -252,7 +267,7 @@ export const BlockComponent = props => {
252
267
  }),
253
268
  formState: prevFormState,
254
269
  globalSlug,
255
- initialBlockFormState: prevFormState,
270
+ initialBlockData: blockData,
256
271
  operation: 'update',
257
272
  readOnly: !isEditable,
258
273
  renderAllFields: submit ? true : false,
@@ -265,11 +280,9 @@ export const BlockComponent = props => {
265
280
  if (prevFormState.blockName) {
266
281
  newFormState.blockName = prevFormState.blockName;
267
282
  }
268
- const newFormStateData_0 = reduceFieldsToValues(removeEmptyArrayValues({
269
- fields: deepCopyObjectSimpleWithoutReactComponents(newFormState, {
270
- excludeFiles: true
271
- })
272
- }), true);
283
+ const newFormStateData_0 = reduceFormStateToBlockData(deepCopyObjectSimpleWithoutReactComponents(newFormState, {
284
+ excludeFiles: true
285
+ }), blockData);
273
286
  setTimeout(() => {
274
287
  editor.update(() => {
275
288
  const node_0 = $getNodeByKey(nodeKey);
@@ -391,7 +404,7 @@ export const BlockComponent = props => {
391
404
  round: true,
392
405
  tooltip: "Remove Block"
393
406
  }), [baseClass, isEditable, removeBlock]);
394
- const BlockCollapsible = useMemo(() => ({
407
+ const BlockCollapsible = useMemo(() => function BlockCollapsible({
395
408
  Actions,
396
409
  children: children_0,
397
410
  className,
@@ -405,86 +418,149 @@ export const BlockComponent = props => {
405
418
  removeButton,
406
419
  showDragHandle = true,
407
420
  showRowNumber = true
408
- }) => {
409
- return /*#__PURE__*/_jsx("div", {
410
- className: `${baseClass}__container ${baseClass}-${blockType}`,
411
- children: /*#__PURE__*/_jsx(Collapsible, {
412
- actions: typeof Actions !== 'undefined' ? Actions : isEditable ? /*#__PURE__*/_jsx(Popup, {
413
- button: /*#__PURE__*/_jsx(MoreIcon, {}),
414
- buttonClassName: `${baseClass}__actions-button`,
415
- caret: false,
416
- horizontalAlign: "right",
417
- render: ({
418
- close
419
- }) => /*#__PURE__*/_jsxs(PopupList.ButtonGroup, {
420
- buttonSize: "medium",
421
- children: [(resolvedCustomBlock && editButton !== false || !resolvedCustomBlock && editButton) && /*#__PURE__*/_jsx(PopupList.Button, {
422
- onClick: () => {
423
- toggleDrawer();
424
- close();
425
- },
426
- children: t('general:edit')
427
- }), removeButton !== false && /*#__PURE__*/_jsxs(PopupList.Button, {
428
- onClick: () => {
429
- removeBlock();
430
- close();
431
- },
432
- children: [/*#__PURE__*/_jsx(XIcon, {}), t('general:remove')]
433
- })]
421
+ }) {
422
+ return /*#__PURE__*/_jsx(BlockReordering, {
423
+ editor: editor,
424
+ nodeKey: nodeKey,
425
+ children: ({
426
+ isReordering,
427
+ move,
428
+ onBlur,
429
+ onKeyDown,
430
+ reorderInstructionsID,
431
+ targetIndex
432
+ }) => /*#__PURE__*/_jsx("div", {
433
+ className: `${baseClass}__container ${baseClass}-${blockType}`,
434
+ onKeyDownCapture: event => {
435
+ const target = event.target;
436
+ if (event.altKey || event.ctrlKey || event.metaKey || target.closest('.collapsible')?.parentElement !== event.currentTarget) {
437
+ return;
438
+ }
439
+ // Handle controls before Lexical consumes keys using its retained text selection.
440
+ if (target.matches('.collapsible__drag') && (event.key !== 'Escape' || isReordering) && [' ', 'ArrowDown', 'ArrowUp', 'Enter', 'Escape', 'Tab'].includes(event.key)) {
441
+ onKeyDown(event);
442
+ event.stopPropagation();
443
+ } else if (event.key === 'Tab' && target.matches('.collapsible__toggle')) {
444
+ event.stopPropagation();
445
+ }
446
+ },
447
+ children: /*#__PURE__*/_jsxs(Collapsible, {
448
+ actions: typeof Actions !== 'undefined' ? Actions : isEditable ? /*#__PURE__*/_jsx(Popup, {
449
+ button: /*#__PURE__*/_jsx(MoreIcon, {}),
450
+ buttonAriaLabel: t('general:moreOptions'),
451
+ buttonClassName: `${baseClass}__actions-button`,
452
+ caret: false,
453
+ horizontalAlign: "right",
454
+ popupType: "menu",
455
+ render: ({
456
+ close
457
+ }) => /*#__PURE__*/_jsxs(PopupList.ButtonGroup, {
458
+ buttonSize: "medium",
459
+ children: [/*#__PURE__*/_jsx(PopupList.Button, {
460
+ onClick: () => {
461
+ close();
462
+ move({
463
+ direction: -1
464
+ });
465
+ },
466
+ children: t('general:moveUp')
467
+ }), /*#__PURE__*/_jsx(PopupList.Button, {
468
+ onClick: () => {
469
+ close();
470
+ move({
471
+ direction: 1
472
+ });
473
+ },
474
+ children: t('general:moveDown')
475
+ }), (resolvedCustomBlock && editButton !== false || !resolvedCustomBlock && editButton) && /*#__PURE__*/_jsx(PopupList.Button, {
476
+ onClick: () => {
477
+ toggleDrawer();
478
+ close();
479
+ },
480
+ children: t('general:edit')
481
+ }), removeButton !== false && /*#__PURE__*/_jsxs(PopupList.Button, {
482
+ onClick: () => {
483
+ removeBlock();
484
+ close();
485
+ },
486
+ children: [/*#__PURE__*/_jsx(XIcon, {}), t('general:remove')]
487
+ })]
488
+ }),
489
+ size: "large"
490
+ }) : null,
491
+ className: [`${baseClass}__row`, fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`, className].filter(Boolean).join(' '),
492
+ collapsibleStyle: fieldHasErrors ? 'error' : 'default',
493
+ dragHandleProps: showDragHandle && isEditable ? {
494
+ id: nodeKey,
495
+ attributes: {
496
+ 'aria-describedby': reorderInstructionsID,
497
+ 'aria-pressed': isReordering,
498
+ role: 'button',
499
+ tabIndex: 0
500
+ },
501
+ listeners: {
502
+ onBlur
503
+ }
504
+ } : undefined,
505
+ header: /*#__PURE__*/_jsx("div", {
506
+ className: `${baseClass}__block-header`,
507
+ children: typeof Label !== 'undefined' ? Label : typeof resolvedCustomLabel !== 'undefined' ? resolvedCustomLabel : /*#__PURE__*/_jsxs("div", {
508
+ className: `${baseClass}__block-label`,
509
+ children: [showRowNumber && /*#__PURE__*/_jsx("span", {
510
+ className: `${baseClass}__block-number`,
511
+ children: String(rowIndex + 1).padStart(2, '0')
512
+ }), typeof CustomPill !== 'undefined' ? CustomPill : /*#__PURE__*/_jsx(Pill, {
513
+ className: `${baseClass}__block-pill ${baseClass}__block-pill-${blockType}`,
514
+ pillStyle: "white",
515
+ size: "small",
516
+ children: blockDisplayName ?? blockType
517
+ }), !disableBlockName && !clientBlock?.admin?.disableBlockName && /*#__PURE__*/_jsx(SectionTitle, {
518
+ path: "blockName",
519
+ readOnly: !isEditable
520
+ }), fieldHasErrors && /*#__PURE__*/_jsx(ErrorPill, {
521
+ count: errorCount_0 ?? 0,
522
+ i18n: i18n,
523
+ withMessage: true
524
+ })]
525
+ })
434
526
  }),
435
- size: "large"
436
- }) : null,
437
- className: [`${baseClass}__row`, fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`, className].filter(Boolean).join(' '),
438
- collapsibleStyle: fieldHasErrors ? 'error' : 'default',
439
- dragHandleProps: showDragHandle ? {
440
- id: nodeKey,
441
- attributes: {
442
- role: 'button',
443
- tabIndex: 0
527
+ isCollapsed: isCollapsed,
528
+ onToggle: incomingCollapsedState => {
529
+ onCollapsedChange(incomingCollapsedState);
530
+ setIsCollapsed(incomingCollapsedState);
444
531
  },
445
- listeners: {}
446
- } : undefined,
447
- header: /*#__PURE__*/_jsx("div", {
448
- className: `${baseClass}__block-header`,
449
- children: typeof Label !== 'undefined' ? Label : typeof resolvedCustomLabel !== 'undefined' ? resolvedCustomLabel : /*#__PURE__*/_jsxs("div", {
450
- className: `${baseClass}__block-label`,
451
- children: [showRowNumber && /*#__PURE__*/_jsx("span", {
452
- className: `${baseClass}__block-number`,
453
- children: String(rowIndex + 1).padStart(2, '0')
454
- }), typeof CustomPill !== 'undefined' ? CustomPill : /*#__PURE__*/_jsx(Pill, {
455
- className: `${baseClass}__block-pill ${baseClass}__block-pill-${blockType}`,
456
- pillStyle: "white",
457
- size: "small",
458
- children: blockDisplayName ?? blockType
459
- }), !disableBlockName && !clientBlock?.admin?.disableBlockName && /*#__PURE__*/_jsx(SectionTitle, {
460
- path: "blockName",
461
- readOnly: !isEditable
462
- }), fieldHasErrors && /*#__PURE__*/_jsx(ErrorPill, {
463
- count: errorCount_0 ?? 0,
464
- i18n: i18n,
465
- withMessage: true
532
+ ...(collapsibleProps || {}),
533
+ AfterCollapsible: /*#__PURE__*/_jsxs(_Fragment, {
534
+ children: [collapsibleProps?.AfterCollapsible, /*#__PURE__*/_jsx("span", {
535
+ className: "sr-only",
536
+ role: "status",
537
+ children: isReordering ? `${t('general:order')}: ${(targetIndex ?? 0) + 1}` : ''
466
538
  })]
467
- })
468
- }),
469
- isCollapsed: isCollapsed,
470
- onToggle: incomingCollapsedState => {
471
- onCollapsedChange(incomingCollapsedState);
472
- setIsCollapsed(incomingCollapsedState);
473
- },
474
- ...(collapsibleProps || {}),
475
- children: children_0
476
- }, 0)
539
+ }),
540
+ children: [/*#__PURE__*/_jsxs("span", {
541
+ className: "sr-only",
542
+ id: reorderInstructionsID,
543
+ children: ["Space / Enter · ", t('general:moveUp'), " ↑ · ", t('general:moveDown'), " ↓ ·", ' ', t('general:cancel'), " Escape"]
544
+ }), children_0]
545
+ }, 0)
546
+ })
477
547
  });
478
- }, [resolvedCustomBlock, resolvedCustomLabel, blockDisplayName, baseClass, clientBlock?.admin?.disableBlockName, blockType, i18n, isCollapsed, onCollapsedChange, isEditable, nodeKey, removeBlock, rowIndex, t, toggleDrawer]);
548
+ }, [editor, resolvedCustomBlock, resolvedCustomLabel, blockDisplayName, baseClass, clientBlock?.admin?.disableBlockName, blockType, i18n, isCollapsed, onCollapsedChange, isEditable, nodeKey, removeBlock, rowIndex, t, toggleDrawer]);
479
549
  const blockID = formData?.id;
550
+ const {
551
+ headerActions,
552
+ submitRef
553
+ } = useDrawerSubmit();
480
554
  const BlockDrawer = useMemo(() => () => /*#__PURE__*/_jsx(EditDepthProvider, {
481
555
  children: /*#__PURE__*/_jsx(Drawer, {
482
556
  className: '',
557
+ headerActions: headerActions,
483
558
  slug: drawerSlug,
484
559
  title: t(`lexical:blocks:inlineBlocks:${blockID ? 'edit' : 'create'}`, {
485
560
  label: blockDisplayName ?? t('lexical:blocks:inlineBlocks:label')
486
561
  }),
487
- children: initialState ? /*#__PURE__*/_jsxs(_Fragment, {
562
+ children: initialState ? /*#__PURE__*/_jsxs("div", {
563
+ className: "fields-drawer",
488
564
  children: [/*#__PURE__*/_jsx(RenderFields, {
489
565
  fields: clientBlock?.fields ?? [],
490
566
  forceRender: true,
@@ -493,13 +569,12 @@ export const BlockComponent = props => {
493
569
  parentSchemaPath: schemaFieldsPath,
494
570
  permissions: true,
495
571
  readOnly: !isEditable
496
- }), /*#__PURE__*/_jsx(FormSubmit, {
497
- programmaticSubmit: true,
498
- children: t('fields:saveChanges')
572
+ }), /*#__PURE__*/_jsx(RegisterFormSubmit, {
573
+ submitRef: submitRef
499
574
  })]
500
575
  }) : null
501
576
  })
502
- }), [initialState, drawerSlug, blockID, blockDisplayName, t, isEditable, clientBlock?.fields, schemaFieldsPath]);
577
+ }), [initialState, drawerSlug, blockID, blockDisplayName, t, isEditable, clientBlock?.fields, schemaFieldsPath, headerActions, submitRef]);
503
578
  // Memoized Form JSX
504
579
  const Block = useMemo(() => {
505
580
  if (!initialState) {
@@ -524,8 +599,9 @@ export const BlockComponent = props => {
524
599
  fields: clientBlock?.fields ?? [],
525
600
  initialState: initialState,
526
601
  onChange: [onChange],
527
- onSubmit: (formState_0, newData_1) => {
602
+ onSubmit: formState_0 => {
528
603
  // This is only called when form is submitted from drawer - usually only the case if the block has a custom Block component
604
+ const newData_1 = reduceFormStateToBlockData(formState_0, formDataRef.current);
529
605
  newData_1.blockType = blockType;
530
606
  editor.update(() => {
531
607
  const node_1 = $getNodeByKey(nodeKey);