@payloadcms/richtext-lexical 3.91.0-internal.c1569dc → 4.0.0-beta.1

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 (1375) 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-MT4FK3IP.js +2 -0
  7. package/dist/exports/client/Field-MT4FK3IP.js.map +7 -0
  8. package/dist/exports/client/RelationshipComponent-YCPAKOL7.js +2 -0
  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-WSAPGI3Z.js +2 -0
  19. package/dist/exports/client/chunk-WSAPGI3Z.js.map +7 -0
  20. package/dist/exports/client/chunk-ZQX5HXUL.js +2 -0
  21. package/dist/exports/client/chunk-ZQX5HXUL.js.map +7 -0
  22. package/dist/exports/client/component-6DQLENIE.js +2 -0
  23. package/dist/exports/client/component-6DQLENIE.js.map +7 -0
  24. package/dist/exports/client/componentInline-HNE5G4TE.js +2 -0
  25. package/dist/exports/client/index.d.ts +1 -4
  26. package/dist/exports/client/index.d.ts.map +1 -1
  27. package/dist/exports/client/index.js +34 -35
  28. package/dist/exports/client/index.js.map +4 -4
  29. package/dist/exports/react/index.d.ts +1 -1
  30. package/dist/exports/react/index.d.ts.map +1 -1
  31. package/dist/exports/react/index.js.map +1 -1
  32. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  33. package/dist/features/align/client/toolbarAlignGroup.js +1 -0
  34. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -1
  35. package/dist/features/blockquote/client/index.js +2 -2
  36. package/dist/features/blockquote/client/index.js.map +1 -1
  37. package/dist/features/blockquote/server/index.d.ts +1 -4
  38. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  39. package/dist/features/blockquote/server/index.js +4 -41
  40. package/dist/features/blockquote/server/index.js.map +1 -1
  41. package/dist/features/blockquote/server/schema.d.ts +8 -0
  42. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  43. package/dist/features/blockquote/server/schema.js +15 -0
  44. package/dist/features/blockquote/server/schema.js.map +1 -0
  45. package/dist/features/blocks/client/component/BlockContent.d.ts +10 -0
  46. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -1
  47. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  48. package/dist/features/blocks/client/component/BlockReordering/index.d.ts +11 -0
  49. package/dist/features/blocks/client/component/BlockReordering/index.d.ts.map +1 -0
  50. package/dist/features/blocks/client/component/BlockReordering/index.js +18 -0
  51. package/dist/features/blocks/client/component/BlockReordering/index.js.map +1 -0
  52. package/dist/features/blocks/client/component/index.css +178 -0
  53. package/dist/features/blocks/client/component/index.d.ts +4 -9
  54. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  55. package/dist/features/blocks/client/component/index.js +215 -82
  56. package/dist/features/blocks/client/component/index.js.map +1 -1
  57. package/dist/features/blocks/client/component/useBlockReordering.d.ts +16 -0
  58. package/dist/features/blocks/client/component/useBlockReordering.d.ts.map +1 -0
  59. package/dist/features/blocks/client/component/useBlockReordering.js +178 -0
  60. package/dist/features/blocks/client/component/useBlockReordering.js.map +1 -0
  61. package/dist/features/blocks/client/componentInline/index.css +84 -0
  62. package/dist/features/blocks/client/componentInline/index.d.ts +4 -3
  63. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  64. package/dist/features/blocks/client/componentInline/index.js +65 -36
  65. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  66. package/dist/features/blocks/client/getBlockImageComponent.d.ts +1 -1
  67. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts +9 -0
  68. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.d.ts.map +1 -0
  69. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js +95 -0
  70. package/dist/features/blocks/client/getCachedFormStateIfDataMatches.js.map +1 -0
  71. package/dist/features/blocks/client/index.d.ts.map +1 -1
  72. package/dist/features/blocks/client/index.js +4 -4
  73. package/dist/features/blocks/client/index.js.map +1 -1
  74. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  75. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  76. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  77. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  78. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  79. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  80. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  81. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  82. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  83. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  84. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  85. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  86. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  87. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  88. package/dist/features/blocks/client/nodes/BlocksNode.js +0 -10
  89. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  90. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  91. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  92. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  93. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  94. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  95. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  96. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +1 -1
  97. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  98. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +4 -0
  99. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  100. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +26 -0
  101. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +1 -1
  102. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -1
  103. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +4 -1
  104. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  105. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +38 -0
  106. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +1 -1
  107. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -1
  108. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +7 -8
  109. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  110. package/dist/features/blocks/premade/CodeBlock/Component/index.css +171 -0
  111. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  112. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  113. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  114. package/dist/features/blocks/server/index.d.ts +1 -0
  115. package/dist/features/blocks/server/index.d.ts.map +1 -1
  116. package/dist/features/blocks/server/index.js +26 -74
  117. package/dist/features/blocks/server/index.js.map +1 -1
  118. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  119. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  120. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  121. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  122. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  123. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  124. package/dist/features/blocks/server/nodes/BlocksNode.js +1 -12
  125. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  126. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  127. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  128. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +2 -2
  129. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  130. package/dist/features/blocks/server/schema.d.ts +47 -0
  131. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  132. package/dist/features/blocks/server/schema.js +138 -0
  133. package/dist/features/blocks/server/schema.js.map +1 -0
  134. package/dist/features/blocks/server/validate.d.ts +1 -2
  135. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  136. package/dist/features/blocks/server/validate.js +1 -1
  137. package/dist/features/blocks/server/validate.js.map +1 -1
  138. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  139. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  140. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  143. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  145. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  147. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  148. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  150. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  151. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  152. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  153. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  154. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  155. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  156. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  157. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  158. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  159. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  160. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  161. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  162. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  163. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  164. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  165. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  166. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  167. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  168. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  169. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  170. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  171. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  172. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  173. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  174. package/dist/features/converters/lexicalToHtml/async/converters/upload.js +3 -3
  175. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  176. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  177. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  178. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/async/types.d.ts +15 -16
  180. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  181. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts.map +1 -1
  183. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js +3 -2
  184. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  189. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  190. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  191. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  192. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  193. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  194. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  195. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  196. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  197. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  198. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  199. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  200. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  201. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  202. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  203. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  204. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  205. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  206. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  207. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  208. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  209. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  210. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  211. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  212. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  213. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  214. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  215. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  216. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  217. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  218. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js +3 -3
  219. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  220. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  221. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  222. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  223. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +15 -16
  224. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  225. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  226. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +6 -4
  227. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  228. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  229. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  236. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  237. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  238. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  239. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  240. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  241. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  242. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  243. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  244. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  245. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  246. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  247. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  248. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  249. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  250. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  251. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  252. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  253. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  254. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  255. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  256. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  257. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  258. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  259. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  260. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  261. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  262. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +4 -5
  263. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  264. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  265. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  266. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  267. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  268. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  269. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  270. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +13 -15
  271. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  272. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  273. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  274. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  275. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  276. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  277. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +13 -15
  278. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  279. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  280. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  281. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  282. package/dist/features/converters/markdownToLexical/index.js +5 -2
  283. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  284. package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -1
  285. package/dist/features/converters/utilities/payloadPopulateFn.js +4 -2
  286. package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -1
  287. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +1 -1
  288. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -1
  289. package/dist/features/debug/jsxConverter/client/plugin/index.js +1 -0
  290. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  291. package/dist/features/debug/jsxConverter/client/plugin/style.css +9 -0
  292. package/dist/features/debug/testRecorder/client/plugin/index.css +50 -0
  293. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +1 -1
  294. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -1
  295. package/dist/features/debug/testRecorder/client/plugin/index.js +1 -0
  296. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  297. package/dist/features/debug/treeView/client/plugin/index.css +81 -0
  298. package/dist/features/debug/treeView/client/plugin/index.d.ts +1 -1
  299. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -1
  300. package/dist/features/debug/treeView/client/plugin/index.js +1 -0
  301. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  302. package/dist/features/format/bold/feature.client.js +1 -1
  303. package/dist/features/format/bold/feature.client.js.map +1 -1
  304. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  305. package/dist/features/format/bold/feature.server.js +1 -1
  306. package/dist/features/format/bold/feature.server.js.map +1 -1
  307. package/dist/features/format/inlineCode/feature.client.js +1 -1
  308. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  309. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  310. package/dist/features/format/inlineCode/feature.server.js +1 -1
  311. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  312. package/dist/features/format/italic/feature.client.js +1 -1
  313. package/dist/features/format/italic/feature.client.js.map +1 -1
  314. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  315. package/dist/features/format/italic/feature.server.js +1 -1
  316. package/dist/features/format/italic/feature.server.js.map +1 -1
  317. package/dist/features/format/strikethrough/feature.client.js +1 -1
  318. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  319. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  320. package/dist/features/format/strikethrough/feature.server.js +1 -1
  321. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  322. package/dist/features/heading/client/index.js +2 -2
  323. package/dist/features/heading/client/index.js.map +1 -1
  324. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  325. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  326. package/dist/features/heading/markdownTransformer.js +6 -19
  327. package/dist/features/heading/markdownTransformer.js.map +1 -1
  328. package/dist/features/heading/server/index.d.ts +2 -4
  329. package/dist/features/heading/server/index.d.ts.map +1 -1
  330. package/dist/features/heading/server/index.js +4 -43
  331. package/dist/features/heading/server/index.js.map +1 -1
  332. package/dist/features/heading/server/schema.d.ts +10 -0
  333. package/dist/features/heading/server/schema.d.ts.map +1 -0
  334. package/dist/features/heading/server/schema.js +37 -0
  335. package/dist/features/heading/server/schema.js.map +1 -0
  336. package/dist/features/horizontalRule/client/index.js +2 -2
  337. package/dist/features/horizontalRule/client/index.js.map +1 -1
  338. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  339. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  340. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  341. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  342. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +13 -3
  343. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  344. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +18 -1
  345. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  346. package/dist/features/horizontalRule/client/plugin/index.css +25 -0
  347. package/dist/features/horizontalRule/client/plugin/index.d.ts +1 -1
  348. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -1
  349. package/dist/features/horizontalRule/client/plugin/index.js +73 -4
  350. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
  351. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  352. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  353. package/dist/features/horizontalRule/server/index.js +4 -10
  354. package/dist/features/horizontalRule/server/index.js.map +1 -1
  355. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  356. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  357. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  358. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  359. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +2 -6
  360. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  361. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +3 -3
  362. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  363. package/dist/features/horizontalRule/server/schema.d.ts +8 -0
  364. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  365. package/dist/features/horizontalRule/server/schema.js +26 -0
  366. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  367. package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -1
  368. package/dist/features/indent/client/IndentPlugin.js +122 -1
  369. package/dist/features/indent/client/IndentPlugin.js.map +1 -1
  370. package/dist/features/indent/server/i18n.d.ts.map +1 -1
  371. package/dist/features/indent/server/i18n.js +74 -37
  372. package/dist/features/indent/server/i18n.js.map +1 -1
  373. package/dist/features/link/client/index.d.ts.map +1 -1
  374. package/dist/features/link/client/index.js +2 -2
  375. package/dist/features/link/client/index.js.map +1 -1
  376. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  377. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  378. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  379. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  380. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +43 -31
  381. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  382. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +106 -0
  383. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +1 -1
  384. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  385. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +1 -0
  386. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  387. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  388. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  389. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  390. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  391. package/dist/features/link/markdownTransformer.d.ts +5 -5
  392. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  393. package/dist/features/link/markdownTransformer.js +2 -2
  394. package/dist/features/link/markdownTransformer.js.map +1 -1
  395. package/dist/features/link/nodes/AutoLinkNode.d.ts +4 -4
  396. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  397. package/dist/features/link/nodes/AutoLinkNode.js +4 -11
  398. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  399. package/dist/features/link/nodes/LinkNode.d.ts +4 -4
  400. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  401. package/dist/features/link/nodes/LinkNode.js +4 -16
  402. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  403. package/dist/features/link/server/baseFields.js.map +1 -1
  404. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  405. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  406. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  407. package/dist/features/link/server/index.d.ts +2 -1
  408. package/dist/features/link/server/index.d.ts.map +1 -1
  409. package/dist/features/link/server/index.js +7 -75
  410. package/dist/features/link/server/index.js.map +1 -1
  411. package/dist/features/link/server/schema.d.ts +32 -0
  412. package/dist/features/link/server/schema.d.ts.map +1 -0
  413. package/dist/features/link/server/schema.js +171 -0
  414. package/dist/features/link/server/schema.js.map +1 -0
  415. package/dist/features/link/server/validate.d.ts +1 -1
  416. package/dist/features/link/server/validate.d.ts.map +1 -1
  417. package/dist/features/link/server/validate.js +1 -1
  418. package/dist/features/link/server/validate.js.map +1 -1
  419. package/dist/features/lists/checklist/client/index.js +1 -1
  420. package/dist/features/lists/checklist/client/index.js.map +1 -1
  421. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  422. package/dist/features/lists/checklist/server/index.js +4 -8
  423. package/dist/features/lists/checklist/server/index.js.map +1 -1
  424. package/dist/features/lists/orderedList/client/index.js +1 -1
  425. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  426. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  427. package/dist/features/lists/orderedList/server/index.js +4 -8
  428. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  429. package/dist/features/lists/plugin/index.d.ts +0 -9
  430. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  431. package/dist/features/lists/plugin/index.js.map +1 -1
  432. package/dist/features/lists/shared/schema.d.ts +18 -0
  433. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  434. package/dist/features/lists/shared/schema.js +62 -0
  435. package/dist/features/lists/shared/schema.js.map +1 -0
  436. package/dist/features/lists/unorderedList/client/index.js +1 -1
  437. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  438. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  439. package/dist/features/lists/unorderedList/server/index.js +4 -8
  440. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  441. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +2 -2
  442. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  443. package/dist/features/relationship/client/components/RelationshipComponent.js +29 -4
  444. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  445. package/dist/features/relationship/client/components/index.css +109 -0
  446. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  447. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  448. package/dist/features/relationship/client/nodes/RelationshipNode.js +0 -3
  449. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  450. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  451. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  452. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  453. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  454. package/dist/features/relationship/client/utils/useEnabledRelationships.js +5 -5
  455. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  456. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  457. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  458. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  459. package/dist/features/relationship/server/index.d.ts +1 -0
  460. package/dist/features/relationship/server/index.d.ts.map +1 -1
  461. package/dist/features/relationship/server/index.js +2 -0
  462. package/dist/features/relationship/server/index.js.map +1 -1
  463. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  464. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  465. package/dist/features/relationship/server/nodes/RelationshipNode.js +1 -5
  466. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  467. package/dist/features/relationship/server/schema.d.ts +29 -0
  468. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  469. package/dist/features/relationship/server/schema.js +94 -0
  470. package/dist/features/relationship/server/schema.js.map +1 -0
  471. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +16 -5
  472. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -1
  473. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +15 -8
  474. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -1
  475. package/dist/features/table/client/index.d.ts.map +1 -0
  476. package/dist/features/{experimental_table → table}/client/index.js +2 -2
  477. package/dist/features/table/client/index.js.map +1 -0
  478. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts.map +1 -0
  479. package/dist/features/table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js.map +1 -0
  480. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.css +90 -0
  481. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.d.ts +1 -1
  482. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  483. package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/index.js +4 -3
  484. package/dist/features/table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  485. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.css +11 -0
  486. package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.d.ts +1 -1
  487. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  488. package/dist/features/{experimental_table → table}/client/plugins/TableCellResizerPlugin/index.js +42 -18
  489. package/dist/features/table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  490. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  491. package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.js +1 -1
  492. package/dist/features/table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  493. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.css +163 -0
  494. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.d.ts +17 -0
  495. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  496. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.js +219 -0
  497. package/dist/features/table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  498. package/dist/features/table/client/plugins/TablePlugin/index.css +235 -0
  499. package/dist/features/{experimental_table → table}/client/plugins/TablePlugin/index.d.ts +1 -1
  500. package/dist/features/table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  501. package/dist/features/table/client/plugins/TablePlugin/index.js +143 -0
  502. package/dist/features/table/client/plugins/TablePlugin/index.js.map +1 -0
  503. package/dist/features/table/client/utils/debounce.d.ts.map +1 -0
  504. package/dist/features/table/client/utils/debounce.js.map +1 -0
  505. package/dist/features/table/client/utils/useDebounce.d.ts.map +1 -0
  506. package/dist/features/table/client/utils/useDebounce.js.map +1 -0
  507. package/dist/features/table/markdownTransformer.d.ts +5 -0
  508. package/dist/features/table/markdownTransformer.d.ts.map +1 -0
  509. package/dist/features/{experimental_table → table}/markdownTransformer.js +6 -3
  510. package/dist/features/table/markdownTransformer.js.map +1 -0
  511. package/dist/features/table/server/index.d.ts +3 -0
  512. package/dist/features/table/server/index.d.ts.map +1 -0
  513. package/dist/features/table/server/index.js +56 -0
  514. package/dist/features/table/server/index.js.map +1 -0
  515. package/dist/features/table/server/schema.d.ts +27 -0
  516. package/dist/features/table/server/schema.d.ts.map +1 -0
  517. package/dist/features/table/server/schema.js +107 -0
  518. package/dist/features/table/server/schema.js.map +1 -0
  519. package/dist/features/textState/feature.client.js +1 -1
  520. package/dist/features/textState/feature.client.js.map +1 -1
  521. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts +8 -0
  522. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.d.ts.map +1 -0
  523. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js +80 -0
  524. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.js.map +1 -0
  525. package/dist/features/toolbars/fixed/client/Toolbar/index.css +159 -0
  526. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +1 -1
  527. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  528. package/dist/features/toolbars/fixed/client/Toolbar/index.js +20 -1
  529. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  530. package/dist/features/toolbars/inline/client/Toolbar/index.css +31 -0
  531. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +1 -1
  532. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  533. package/dist/features/toolbars/inline/client/Toolbar/index.js +18 -2
  534. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  535. package/dist/features/toolbars/shared/ToolbarButton/index.css +57 -0
  536. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
  537. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  538. package/dist/features/toolbars/shared/ToolbarButton/index.js +81 -74
  539. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  540. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  541. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +89 -33
  542. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  543. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +212 -0
  544. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
  545. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  546. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +11 -7
  547. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  548. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts +5 -0
  549. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.d.ts.map +1 -0
  550. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js +79 -0
  551. package/dist/features/toolbars/shared/useToolbarKeyboardNavigation.js.map +1 -0
  552. package/dist/features/toolbars/types.d.ts +5 -1
  553. package/dist/features/toolbars/types.d.ts.map +1 -1
  554. package/dist/features/toolbars/types.js.map +1 -1
  555. package/dist/features/typesClient.d.ts +2 -2
  556. package/dist/features/typesClient.d.ts.map +1 -1
  557. package/dist/features/typesClient.js.map +1 -1
  558. package/dist/features/typesServer.d.ts +35 -70
  559. package/dist/features/typesServer.d.ts.map +1 -1
  560. package/dist/features/typesServer.js.map +1 -1
  561. package/dist/features/upload/client/component/index.css +212 -0
  562. package/dist/features/upload/client/component/index.d.ts +2 -2
  563. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  564. package/dist/features/upload/client/component/index.js +86 -63
  565. package/dist/features/upload/client/component/index.js.map +1 -1
  566. package/dist/features/upload/client/component/pending/index.d.ts +0 -1
  567. package/dist/features/upload/client/component/pending/index.d.ts.map +1 -1
  568. package/dist/features/upload/client/component/pending/index.js.map +1 -1
  569. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  570. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  571. package/dist/features/upload/client/nodes/UploadNode.js +0 -7
  572. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  573. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  574. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  575. package/dist/features/upload/client/plugin/index.js +8 -6
  576. package/dist/features/upload/client/plugin/index.js.map +1 -1
  577. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  578. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  579. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  580. package/dist/features/upload/server/index.d.ts +1 -0
  581. package/dist/features/upload/server/index.d.ts.map +1 -1
  582. package/dist/features/upload/server/index.js +7 -87
  583. package/dist/features/upload/server/index.js.map +1 -1
  584. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  585. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  586. package/dist/features/upload/server/markdownTransformer.js +1 -1
  587. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  588. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  589. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  590. package/dist/features/upload/server/nodes/UploadNode.js +1 -9
  591. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  592. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  593. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  594. package/dist/features/upload/server/schema.d.ts +40 -0
  595. package/dist/features/upload/server/schema.d.ts.map +1 -0
  596. package/dist/features/upload/server/schema.js +147 -0
  597. package/dist/features/upload/server/schema.js.map +1 -0
  598. package/dist/features/upload/server/validate.d.ts +1 -1
  599. package/dist/features/upload/server/validate.d.ts.map +1 -1
  600. package/dist/features/upload/server/validate.js +1 -1
  601. package/dist/features/upload/server/validate.js.map +1 -1
  602. package/dist/field/Diff/converters/link.d.ts +1 -1
  603. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  604. package/dist/field/Diff/converters/link.js.map +1 -1
  605. package/dist/field/Diff/converters/listitem/index.css +80 -0
  606. package/dist/field/Diff/converters/listitem/index.d.ts +2 -2
  607. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  608. package/dist/field/Diff/converters/listitem/index.js +1 -0
  609. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  610. package/dist/field/Diff/converters/relationship/index.css +107 -0
  611. package/dist/field/Diff/converters/relationship/index.d.ts +2 -2
  612. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  613. package/dist/field/Diff/converters/relationship/index.js +11 -28
  614. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  615. package/dist/field/Diff/converters/unknown/index.css +36 -0
  616. package/dist/field/Diff/converters/unknown/index.d.ts +1 -1
  617. package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -1
  618. package/dist/field/Diff/converters/unknown/index.js +1 -0
  619. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  620. package/dist/field/Diff/converters/upload/index.css +174 -0
  621. package/dist/field/Diff/converters/upload/index.d.ts +2 -2
  622. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  623. package/dist/field/Diff/converters/upload/index.js +7 -2
  624. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  625. package/dist/field/Diff/index.css +154 -0
  626. package/dist/field/Diff/index.d.ts +4 -3
  627. package/dist/field/Diff/index.d.ts.map +1 -1
  628. package/dist/field/Diff/index.js +3 -2
  629. package/dist/field/Diff/index.js.map +1 -1
  630. package/dist/field/Field.d.ts +3 -3
  631. package/dist/field/Field.d.ts.map +1 -1
  632. package/dist/field/Field.js +38 -27
  633. package/dist/field/Field.js.map +1 -1
  634. package/dist/field/RenderLexical/index.d.ts +2 -2
  635. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  636. package/dist/field/RenderLexical/index.js.map +1 -1
  637. package/dist/field/RichTextViewProvider.d.ts +1 -1
  638. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  639. package/dist/field/RichTextViewProvider.js.map +1 -1
  640. package/dist/field/ViewSelector.css +32 -0
  641. package/dist/field/ViewSelector.d.ts +1 -1
  642. package/dist/field/ViewSelector.d.ts.map +1 -1
  643. package/dist/field/ViewSelector.js +2 -0
  644. package/dist/field/ViewSelector.js.map +1 -1
  645. package/dist/field/bundled.css +1 -1
  646. package/dist/field/index.css +59 -0
  647. package/dist/field/index.d.ts +1 -1
  648. package/dist/field/index.d.ts.map +1 -1
  649. package/dist/field/index.js +1 -1
  650. package/dist/field/index.js.map +1 -1
  651. package/dist/field/rscEntry.d.ts +2 -2
  652. package/dist/field/rscEntry.d.ts.map +1 -1
  653. package/dist/field/rscEntry.js +2 -0
  654. package/dist/field/rscEntry.js.map +1 -1
  655. package/dist/hooks.d.ts +6 -0
  656. package/dist/hooks.d.ts.map +1 -0
  657. package/dist/hooks.js +548 -0
  658. package/dist/hooks.js.map +1 -0
  659. package/dist/i18n.d.ts.map +1 -1
  660. package/dist/i18n.js +68 -0
  661. package/dist/i18n.js.map +1 -1
  662. package/dist/index.d.ts +15 -22
  663. package/dist/index.d.ts.map +1 -1
  664. package/dist/index.js +48 -634
  665. package/dist/index.js.map +1 -1
  666. package/dist/lexical/LexicalEditor.css +61 -0
  667. package/dist/lexical/LexicalEditor.d.ts +1 -1
  668. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  669. package/dist/lexical/LexicalEditor.js +62 -64
  670. package/dist/lexical/LexicalEditor.js.map +1 -1
  671. package/dist/lexical/LexicalProvider.d.ts +1 -1
  672. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  673. package/dist/lexical/LexicalProvider.js.map +1 -1
  674. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  675. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  676. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  677. package/dist/lexical/config/client/loader.d.ts +1 -1
  678. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  679. package/dist/lexical/config/client/loader.js +5 -1
  680. package/dist/lexical/config/client/loader.js.map +1 -1
  681. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  682. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  683. package/dist/lexical/config/client/sanitize.js.map +1 -1
  684. package/dist/lexical/config/server/loader.d.ts +1 -1
  685. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  686. package/dist/lexical/config/server/loader.js +14 -11
  687. package/dist/lexical/config/server/loader.js.map +1 -1
  688. package/dist/lexical/config/server/sanitize.d.ts +1 -1
  689. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  690. package/dist/lexical/config/server/sanitize.js +11 -19
  691. package/dist/lexical/config/server/sanitize.js.map +1 -1
  692. package/dist/lexical/config/types.d.ts +1 -1
  693. package/dist/lexical/config/types.d.ts.map +1 -1
  694. package/dist/lexical/config/types.js.map +1 -1
  695. package/dist/lexical/nodes/index.d.ts +1 -1
  696. package/dist/lexical/nodes/index.d.ts.map +1 -1
  697. package/dist/lexical/nodes/index.js.map +1 -1
  698. package/dist/lexical/plugins/DecoratorPlugin/index.css +11 -0
  699. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +1 -1
  700. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  701. package/dist/lexical/plugins/DecoratorPlugin/index.js +25 -21
  702. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  703. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +45 -0
  704. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +1 -1
  705. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  706. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +28 -14
  707. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  708. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  709. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  710. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  711. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -1
  712. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +21 -0
  713. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -1
  714. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -1
  715. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  716. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +2 -21
  717. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  718. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  719. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  720. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  721. package/dist/lexical/plugins/SlashMenu/index.css +59 -0
  722. package/dist/lexical/plugins/SlashMenu/index.d.ts +1 -1
  723. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  724. package/dist/lexical/plugins/SlashMenu/index.js +2 -0
  725. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  726. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +41 -0
  727. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +1 -1
  728. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  729. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +3 -2
  730. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  731. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +86 -0
  732. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +1 -1
  733. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  734. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +32 -11
  735. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  736. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +1 -1
  737. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  738. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts +7 -0
  739. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.d.ts.map +1 -0
  740. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js +65 -0
  741. package/dist/lexical/plugins/handles/DraggableBlockPlugin/useKeyboardReordering.js.map +1 -0
  742. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  743. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +2 -0
  744. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  745. package/dist/lexical/theme/EditorTheme.css +356 -0
  746. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  747. package/dist/lexical/theme/EditorTheme.js +1 -0
  748. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  749. package/dist/lexical/ui/ContentEditable.css +100 -0
  750. package/dist/lexical/ui/ContentEditable.d.ts +3 -2
  751. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  752. package/dist/lexical/ui/ContentEditable.js +22 -7
  753. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  754. package/dist/lexical/ui/icons/Add/index.d.ts +4 -1
  755. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -1
  756. package/dist/lexical/ui/icons/Add/index.js +19 -12
  757. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  758. package/dist/lexical/ui/icons/Add/index.svg +2 -3
  759. package/dist/lexical/ui/icons/Add/light.svg +2 -3
  760. package/dist/lexical/ui/icons/AlignCenter/index.d.ts +3 -1
  761. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -1
  762. package/dist/lexical/ui/icons/AlignCenter/index.js +15 -19
  763. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  764. package/dist/lexical/ui/icons/AlignJustify/index.d.ts +3 -1
  765. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -1
  766. package/dist/lexical/ui/icons/AlignJustify/index.js +15 -19
  767. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  768. package/dist/lexical/ui/icons/AlignLeft/index.d.ts +3 -1
  769. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -1
  770. package/dist/lexical/ui/icons/AlignLeft/index.js +15 -19
  771. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  772. package/dist/lexical/ui/icons/AlignRight/index.d.ts +3 -1
  773. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -1
  774. package/dist/lexical/ui/icons/AlignRight/index.js +15 -19
  775. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  776. package/dist/lexical/ui/icons/Block/index.d.ts +3 -1
  777. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -1
  778. package/dist/lexical/ui/icons/Block/index.js +13 -28
  779. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  780. package/dist/lexical/ui/icons/Blockquote/index.d.ts +3 -1
  781. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -1
  782. package/dist/lexical/ui/icons/Blockquote/index.js +9 -6
  783. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  784. package/dist/lexical/ui/icons/Bold/index.d.ts +3 -1
  785. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -1
  786. package/dist/lexical/ui/icons/Bold/index.js +13 -8
  787. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  788. package/dist/lexical/ui/icons/Checklist/index.d.ts +4 -1
  789. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -1
  790. package/dist/lexical/ui/icons/Checklist/index.js +17 -18
  791. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  792. package/dist/lexical/ui/icons/Code/index.d.ts +3 -1
  793. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -1
  794. package/dist/lexical/ui/icons/Code/index.js +15 -13
  795. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  796. package/dist/lexical/ui/icons/CodeBlock/index.d.ts +4 -1
  797. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -1
  798. package/dist/lexical/ui/icons/CodeBlock/index.js +18 -7
  799. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  800. package/dist/lexical/ui/icons/Collapse/index.d.ts +3 -1
  801. package/dist/lexical/ui/icons/Collapse/index.d.ts.map +1 -1
  802. package/dist/lexical/ui/icons/Collapse/index.js +10 -8
  803. package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
  804. package/dist/lexical/ui/icons/DraggableBlock/index.svg +7 -7
  805. package/dist/lexical/ui/icons/DraggableBlock/light.svg +7 -7
  806. package/dist/lexical/ui/icons/Expand/index.d.ts +5 -0
  807. package/dist/lexical/ui/icons/Expand/index.d.ts.map +1 -0
  808. package/dist/lexical/ui/icons/Expand/index.js +22 -0
  809. package/dist/lexical/ui/icons/Expand/index.js.map +1 -0
  810. package/dist/lexical/ui/icons/H1/index.d.ts +3 -1
  811. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -1
  812. package/dist/lexical/ui/icons/H1/index.js +9 -6
  813. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  814. package/dist/lexical/ui/icons/H2/index.d.ts +3 -1
  815. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -1
  816. package/dist/lexical/ui/icons/H2/index.js +9 -6
  817. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  818. package/dist/lexical/ui/icons/H3/index.d.ts +3 -1
  819. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  820. package/dist/lexical/ui/icons/H3/index.js +19 -9
  821. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  822. package/dist/lexical/ui/icons/H4/index.d.ts +3 -1
  823. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  824. package/dist/lexical/ui/icons/H4/index.js +19 -9
  825. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  826. package/dist/lexical/ui/icons/H5/index.d.ts +3 -1
  827. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  828. package/dist/lexical/ui/icons/H5/index.js +19 -9
  829. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  830. package/dist/lexical/ui/icons/H6/index.d.ts +3 -1
  831. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  832. package/dist/lexical/ui/icons/H6/index.js +19 -9
  833. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  834. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts +3 -1
  835. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -1
  836. package/dist/lexical/ui/icons/HorizontalRule/index.js +11 -11
  837. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  838. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts +3 -1
  839. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -1
  840. package/dist/lexical/ui/icons/IndentDecrease/index.js +18 -22
  841. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  842. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts +3 -1
  843. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -1
  844. package/dist/lexical/ui/icons/IndentIncrease/index.js +15 -22
  845. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  846. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -1
  847. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -1
  848. package/dist/lexical/ui/icons/InlineBlocks/index.js +9 -6
  849. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
  850. package/dist/lexical/ui/icons/Italic/index.d.ts +3 -1
  851. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -1
  852. package/dist/lexical/ui/icons/Italic/index.js +13 -8
  853. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  854. package/dist/lexical/ui/icons/Link/index.d.ts +4 -1
  855. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -1
  856. package/dist/lexical/ui/icons/Link/index.js +14 -9
  857. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  858. package/dist/lexical/ui/icons/Meatballs/index.d.ts +4 -1
  859. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -1
  860. package/dist/lexical/ui/icons/Meatballs/index.js +19 -15
  861. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
  862. package/dist/lexical/ui/icons/OrderedList/index.d.ts +4 -1
  863. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -1
  864. package/dist/lexical/ui/icons/OrderedList/index.js +19 -25
  865. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  866. package/dist/lexical/ui/icons/Page/index.d.ts +5 -0
  867. package/dist/lexical/ui/icons/Page/index.d.ts.map +1 -0
  868. package/dist/lexical/ui/icons/Page/index.js +21 -0
  869. package/dist/lexical/ui/icons/Page/index.js.map +1 -0
  870. package/dist/lexical/ui/icons/Relationship/index.d.ts +3 -1
  871. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -1
  872. package/dist/lexical/ui/icons/Relationship/index.js +13 -25
  873. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  874. package/dist/lexical/ui/icons/Strikethrough/index.d.ts +3 -1
  875. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -1
  876. package/dist/lexical/ui/icons/Strikethrough/index.js +13 -13
  877. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  878. package/dist/lexical/ui/icons/Subscript/index.d.ts +3 -1
  879. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -1
  880. package/dist/lexical/ui/icons/Subscript/index.js +10 -7
  881. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  882. package/dist/lexical/ui/icons/Superscript/index.d.ts +3 -1
  883. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -1
  884. package/dist/lexical/ui/icons/Superscript/index.js +10 -7
  885. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  886. package/dist/lexical/ui/icons/Table/index.d.ts +4 -1
  887. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
  888. package/dist/lexical/ui/icons/Table/index.js +20 -15
  889. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  890. package/dist/lexical/ui/icons/Text/index.d.ts +4 -1
  891. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -1
  892. package/dist/lexical/ui/icons/Text/index.js +17 -8
  893. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  894. package/dist/lexical/ui/icons/Trash/index.d.ts +10 -0
  895. package/dist/lexical/ui/icons/Trash/index.d.ts.map +1 -0
  896. package/dist/lexical/ui/icons/Trash/index.js +29 -0
  897. package/dist/lexical/ui/icons/Trash/index.js.map +1 -0
  898. package/dist/lexical/ui/icons/Underline/index.d.ts +3 -1
  899. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -1
  900. package/dist/lexical/ui/icons/Underline/index.js +16 -14
  901. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  902. package/dist/lexical/ui/icons/UnorderedList/index.d.ts +3 -1
  903. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -1
  904. package/dist/lexical/ui/icons/UnorderedList/index.js +13 -40
  905. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  906. package/dist/lexical/ui/icons/Upload/index.d.ts +3 -1
  907. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -1
  908. package/dist/lexical/ui/icons/Upload/index.js +15 -22
  909. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  910. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  911. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  912. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  913. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  914. package/dist/lexical/utils/markdown/createBlockNode.d.ts +2 -2
  915. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  916. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  917. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  918. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  919. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  920. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  921. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -1
  922. package/dist/lexical/utils/point.d.ts.map +1 -1
  923. package/dist/lexical/utils/rect.d.ts.map +1 -1
  924. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  925. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  926. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  927. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  928. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.d.ts.map +1 -1
  929. package/dist/lexical-proxy/@lexical-react/ExtensionComponent.js.map +1 -1
  930. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.d.ts.map +1 -1
  931. package/dist/lexical-proxy/@lexical-react/LexicalExtensionComposer.js.map +1 -1
  932. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.d.ts.map +1 -1
  933. package/dist/lexical-proxy/@lexical-react/LexicalExtensionEditorComposer.js.map +1 -1
  934. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.d.ts.map +1 -1
  935. package/dist/lexical-proxy/@lexical-react/LexicalSelectionAlwaysOnDisplay.js.map +1 -1
  936. package/dist/lexical-proxy/@lexical-react/ReactExtension.d.ts.map +1 -1
  937. package/dist/lexical-proxy/@lexical-react/ReactExtension.js.map +1 -1
  938. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.d.ts.map +1 -1
  939. package/dist/lexical-proxy/@lexical-react/ReactPluginHostExtension.js.map +1 -1
  940. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.d.ts.map +1 -1
  941. package/dist/lexical-proxy/@lexical-react/ReactProviderExtension.js.map +1 -1
  942. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.d.ts.map +1 -1
  943. package/dist/lexical-proxy/@lexical-react/TreeViewExtension.js.map +1 -1
  944. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.d.ts.map +1 -1
  945. package/dist/lexical-proxy/@lexical-react/useExtensionComponent.js.map +1 -1
  946. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  947. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  948. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  949. package/dist/presets/llmInstructions.d.ts +2 -0
  950. package/dist/presets/llmInstructions.d.ts.map +1 -0
  951. package/dist/presets/llmInstructions.js +13 -0
  952. package/dist/presets/llmInstructions.js.map +1 -0
  953. package/dist/types/builtInNodes.d.ts +14 -0
  954. package/dist/types/builtInNodes.d.ts.map +1 -0
  955. package/dist/types/builtInNodes.js +208 -0
  956. package/dist/types/builtInNodes.js.map +1 -0
  957. package/dist/{types.d.ts → types/index.d.ts} +29 -33
  958. package/dist/types/index.d.ts.map +1 -0
  959. package/dist/types/index.js +2 -0
  960. package/dist/types/index.js.map +1 -0
  961. package/dist/types/jsonSchemaHelpers.d.ts +34 -0
  962. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  963. package/dist/types/jsonSchemaHelpers.js +63 -0
  964. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  965. package/dist/types/nodeTypes.d.ts +133 -0
  966. package/dist/types/nodeTypes.d.ts.map +1 -0
  967. package/dist/types/nodeTypes.js +6 -0
  968. package/dist/types/nodeTypes.js.map +1 -0
  969. package/dist/types/schema.d.ts +6 -0
  970. package/dist/types/schema.d.ts.map +1 -0
  971. package/dist/types/schema.js +90 -0
  972. package/dist/types/schema.js.map +1 -0
  973. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  974. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  975. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  976. package/dist/utilities/buildEditorState.d.ts +18 -4
  977. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  978. package/dist/utilities/buildEditorState.js +21 -0
  979. package/dist/utilities/buildEditorState.js.map +1 -1
  980. package/dist/utilities/buildInitialState.d.ts +4 -2
  981. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  982. package/dist/utilities/buildInitialState.js +1 -0
  983. package/dist/utilities/buildInitialState.js.map +1 -1
  984. package/dist/utilities/createClientFeature.d.ts +1 -1
  985. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  986. package/dist/utilities/createClientFeature.js.map +1 -1
  987. package/dist/utilities/createServerFeature.d.ts +1 -1
  988. package/dist/utilities/createServerFeature.d.ts.map +1 -1
  989. package/dist/utilities/createServerFeature.js +2 -2
  990. package/dist/utilities/createServerFeature.js.map +1 -1
  991. package/dist/utilities/editorConfigFactory.d.ts +7 -7
  992. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  993. package/dist/utilities/editorConfigFactory.js +9 -9
  994. package/dist/utilities/editorConfigFactory.js.map +1 -1
  995. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  996. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  997. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  998. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  999. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  1000. package/dist/utilities/fieldsDrawer/DrawerContent.js +39 -40
  1001. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  1002. package/dist/utilities/fieldsDrawer/index.css +12 -0
  1003. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  1004. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  1005. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  1006. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  1007. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +1 -0
  1008. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  1009. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +34 -18
  1010. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  1011. package/dist/utilities/generateImportMap.d.ts +3 -3
  1012. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  1013. package/dist/utilities/generateImportMap.js.map +1 -1
  1014. package/dist/utilities/generateSchemaMap.d.ts +1 -1
  1015. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +2 -2
  1016. package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -1
  1017. package/dist/utilities/getDefaultSanitizedEditorConfig.js +6 -17
  1018. package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -1
  1019. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  1020. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  1021. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  1022. package/dist/utilities/upgradeLexicalData/index.js +6 -3
  1023. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  1024. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  1025. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  1026. package/dist/validate/hasText.d.ts +2 -2
  1027. package/dist/validate/hasText.d.ts.map +1 -1
  1028. package/dist/validate/hasText.js.map +1 -1
  1029. package/dist/validate/index.d.ts +1 -1
  1030. package/dist/validate/index.d.ts.map +1 -1
  1031. package/package.json +80 -86
  1032. package/dist/dependencyChecker.spec.js +0 -16
  1033. package/dist/dependencyChecker.spec.js.map +0 -1
  1034. package/dist/exports/client/Component-DOSSWC76.js +0 -2
  1035. package/dist/exports/client/Component-DOSSWC76.js.map +0 -7
  1036. package/dist/exports/client/Component-MBLHTKDK.js +0 -2
  1037. package/dist/exports/client/Component-MBLHTKDK.js.map +0 -7
  1038. package/dist/exports/client/Field-YZR46UCY.js +0 -2
  1039. package/dist/exports/client/Field-YZR46UCY.js.map +0 -7
  1040. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js +0 -2
  1041. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js.map +0 -7
  1042. package/dist/exports/client/bundled.css +0 -1
  1043. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  1044. package/dist/exports/client/chunk-F26IQ5RE.js +0 -2
  1045. package/dist/exports/client/chunk-F26IQ5RE.js.map +0 -7
  1046. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  1047. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  1048. package/dist/exports/client/chunk-OSMEE5HW.js +0 -2
  1049. package/dist/exports/client/chunk-OSMEE5HW.js.map +0 -7
  1050. package/dist/exports/client/chunk-QAW5QKEM.js +0 -12
  1051. package/dist/exports/client/chunk-QAW5QKEM.js.map +0 -7
  1052. package/dist/exports/client/chunk-XFA5M7FY.js +0 -2
  1053. package/dist/exports/client/chunk-XFA5M7FY.js.map +0 -7
  1054. package/dist/exports/client/component-UBRNPIQ6.js +0 -2
  1055. package/dist/exports/client/component-UBRNPIQ6.js.map +0 -7
  1056. package/dist/exports/client/componentInline-A4H3EY3L.js +0 -2
  1057. package/dist/exports/server/migrate.d.ts +0 -16
  1058. package/dist/exports/server/migrate.d.ts.map +0 -1
  1059. package/dist/exports/server/migrate.js +0 -16
  1060. package/dist/exports/server/migrate.js.map +0 -1
  1061. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  1062. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  1063. package/dist/features/blockquote/markdownTransformer.js +0 -33
  1064. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  1065. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +0 -11
  1066. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +0 -1
  1067. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +0 -20
  1068. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +0 -1
  1069. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +0 -4
  1070. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +0 -1
  1071. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +0 -7
  1072. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +0 -1
  1073. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +0 -4
  1074. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +0 -1
  1075. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +0 -38
  1076. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +0 -1
  1077. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +0 -4
  1078. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +0 -1
  1079. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +0 -9
  1080. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +0 -1
  1081. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +0 -4
  1082. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +0 -1
  1083. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +0 -33
  1084. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +0 -1
  1085. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +0 -6
  1086. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +0 -1
  1087. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +0 -9
  1088. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +0 -1
  1089. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +0 -70
  1090. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +0 -1
  1091. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +0 -104
  1092. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +0 -1
  1093. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +0 -27
  1094. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +0 -1
  1095. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +0 -2
  1096. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +0 -1
  1097. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +0 -39
  1098. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +0 -1
  1099. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +0 -122
  1100. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +0 -1
  1101. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +0 -12
  1102. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +0 -1
  1103. package/dist/features/converters/lexicalToHtml_deprecated/index.js +0 -11
  1104. package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +0 -1
  1105. package/dist/features/converters/lexicalToJSX/Component/nodeTags.spec.js +0 -114
  1106. package/dist/features/converters/lexicalToJSX/Component/nodeTags.spec.js.map +0 -1
  1107. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +0 -180
  1108. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +0 -1
  1109. package/dist/features/experimental_table/client/index.d.ts.map +0 -1
  1110. package/dist/features/experimental_table/client/index.js.map +0 -1
  1111. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts.map +0 -1
  1112. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/computeSelectionCount.js.map +0 -1
  1113. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  1114. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +0 -1
  1115. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  1116. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +0 -1
  1117. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
  1118. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +0 -1
  1119. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +0 -1
  1120. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +0 -152
  1121. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +0 -1
  1122. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +0 -1
  1123. package/dist/features/experimental_table/client/utils/debounce.js.map +0 -1
  1124. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +0 -1
  1125. package/dist/features/experimental_table/client/utils/useDebounce.js.map +0 -1
  1126. package/dist/features/experimental_table/markdownTransformer.d.ts +0 -5
  1127. package/dist/features/experimental_table/markdownTransformer.d.ts.map +0 -1
  1128. package/dist/features/experimental_table/markdownTransformer.js.map +0 -1
  1129. package/dist/features/experimental_table/server/index.d.ts +0 -8
  1130. package/dist/features/experimental_table/server/index.d.ts.map +0 -1
  1131. package/dist/features/experimental_table/server/index.js +0 -154
  1132. package/dist/features/experimental_table/server/index.js.map +0 -1
  1133. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  1134. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  1135. package/dist/features/format/bold/markdownTransformers.js +0 -23
  1136. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  1137. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  1138. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  1139. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  1140. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  1141. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  1142. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  1143. package/dist/features/format/italic/markdownTransformers.js +0 -12
  1144. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  1145. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  1146. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  1147. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  1148. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  1149. package/dist/features/link/markdownTransformer.spec.js +0 -195
  1150. package/dist/features/link/markdownTransformer.spec.js.map +0 -1
  1151. package/dist/features/link/nodes/types.d.ts +0 -27
  1152. package/dist/features/link/nodes/types.d.ts.map +0 -1
  1153. package/dist/features/link/nodes/types.js +0 -2
  1154. package/dist/features/link/nodes/types.js.map +0 -1
  1155. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  1156. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  1157. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  1158. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  1159. package/dist/features/lists/htmlConverter.d.ts +0 -5
  1160. package/dist/features/lists/htmlConverter.d.ts.map +0 -1
  1161. package/dist/features/lists/htmlConverter.js +0 -84
  1162. package/dist/features/lists/htmlConverter.js.map +0 -1
  1163. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  1164. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  1165. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  1166. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  1167. package/dist/features/lists/shared/markdown.d.ts +0 -6
  1168. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  1169. package/dist/features/lists/shared/markdown.js +0 -57
  1170. package/dist/features/lists/shared/markdown.js.map +0 -1
  1171. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  1172. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  1173. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  1174. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  1175. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -3
  1176. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1177. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -22
  1178. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  1179. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -3
  1180. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1181. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -33
  1182. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  1183. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -3
  1184. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  1185. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -24
  1186. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  1187. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -3
  1188. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1189. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -25
  1190. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  1191. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -3
  1192. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  1193. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -22
  1194. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  1195. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -3
  1196. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1197. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -28
  1198. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  1199. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -3
  1200. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1201. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -22
  1202. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  1203. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  1204. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  1205. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -9
  1206. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  1207. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -19
  1208. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  1209. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +0 -78
  1210. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  1211. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -23
  1212. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  1213. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +0 -2
  1214. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  1215. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -2
  1216. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  1217. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +0 -10
  1218. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  1219. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -10
  1220. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  1221. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +0 -49
  1222. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  1223. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  1224. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1225. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  1226. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1227. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  1228. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1229. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -74
  1230. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1231. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -3
  1232. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  1233. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -23
  1234. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  1235. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -3
  1236. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1237. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +0 -24
  1238. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  1239. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -3
  1240. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  1241. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +0 -33
  1242. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  1243. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -3
  1244. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1245. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +0 -30
  1246. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  1247. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -3
  1248. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1249. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -26
  1250. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  1251. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -3
  1252. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  1253. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -26
  1254. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  1255. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -3
  1256. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  1257. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -15
  1258. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  1259. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -3
  1260. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1261. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -27
  1262. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  1263. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -3
  1264. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  1265. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -26
  1266. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  1267. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -3
  1268. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1269. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -18
  1270. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  1271. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -3
  1272. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  1273. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +0 -12
  1274. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  1275. package/dist/features/migrations/slateToLexical/converter/index.d.ts +0 -19
  1276. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  1277. package/dist/features/migrations/slateToLexical/converter/index.js +0 -130
  1278. package/dist/features/migrations/slateToLexical/converter/index.js.map +0 -1
  1279. package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -16
  1280. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  1281. package/dist/features/migrations/slateToLexical/converter/types.js +0 -2
  1282. package/dist/features/migrations/slateToLexical/converter/types.js.map +0 -1
  1283. package/dist/features/migrations/slateToLexical/feature.client.d.ts +0 -2
  1284. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  1285. package/dist/features/migrations/slateToLexical/feature.client.js +0 -10
  1286. package/dist/features/migrations/slateToLexical/feature.client.js.map +0 -1
  1287. package/dist/features/migrations/slateToLexical/feature.server.d.ts +0 -40
  1288. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  1289. package/dist/features/migrations/slateToLexical/feature.server.js +0 -68
  1290. package/dist/features/migrations/slateToLexical/feature.server.js.map +0 -1
  1291. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
  1292. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1293. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -15
  1294. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1295. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
  1296. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1297. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -74
  1298. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1299. package/dist/lexical/ui/icons/AI/index.d.ts +0 -3
  1300. package/dist/lexical/ui/icons/AI/index.d.ts.map +0 -1
  1301. package/dist/lexical/ui/icons/AI/index.js +0 -34
  1302. package/dist/lexical/ui/icons/AI/index.js.map +0 -1
  1303. package/dist/lexical/ui/icons/Caret/index.svg +0 -3
  1304. package/dist/lexical/ui/icons/Edit/index.svg +0 -10
  1305. package/dist/lexical/ui/icons/Remove/index.svg +0 -4
  1306. package/dist/lexical/utils/guard.d.ts +0 -5
  1307. package/dist/lexical/utils/guard.d.ts.map +0 -1
  1308. package/dist/lexical/utils/guard.js +0 -9
  1309. package/dist/lexical/utils/guard.js.map +0 -1
  1310. package/dist/lexical/utils/url.spec.js +0 -114
  1311. package/dist/lexical/utils/url.spec.js.map +0 -1
  1312. package/dist/nodeTypes.d.ts +0 -74
  1313. package/dist/nodeTypes.d.ts.map +0 -1
  1314. package/dist/nodeTypes.js +0 -5
  1315. package/dist/nodeTypes.js.map +0 -1
  1316. package/dist/packages/@lexical/markdown/LexicalMarkdownHardLineBreak.spec.js +0 -160
  1317. package/dist/packages/@lexical/markdown/LexicalMarkdownHardLineBreak.spec.js.map +0 -1
  1318. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  1319. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  1320. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -220
  1321. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  1322. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  1323. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  1324. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -199
  1325. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  1326. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  1327. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  1328. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  1329. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  1330. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -173
  1331. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  1332. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -352
  1333. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  1334. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  1335. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  1336. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  1337. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  1338. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  1339. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  1340. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  1341. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  1342. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  1343. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  1344. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  1345. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  1346. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  1347. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  1348. package/dist/packages/@lexical/markdown/index.js +0 -39
  1349. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  1350. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  1351. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  1352. package/dist/packages/@lexical/markdown/utils.js +0 -267
  1353. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  1354. package/dist/types.d.ts.map +0 -1
  1355. package/dist/types.js +0 -2
  1356. package/dist/types.js.map +0 -1
  1357. package/dist/utilities/jsx/jsx.spec.js +0 -178
  1358. package/dist/utilities/jsx/jsx.spec.js.map +0 -1
  1359. package/dist/utilities/migrateSlateToLexical/index.d.ts +0 -15
  1360. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +0 -1
  1361. package/dist/utilities/migrateSlateToLexical/index.js +0 -152
  1362. package/dist/utilities/migrateSlateToLexical/index.js.map +0 -1
  1363. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +0 -10
  1364. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +0 -1
  1365. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +0 -85
  1366. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +0 -1
  1367. /package/dist/exports/client/{componentInline-A4H3EY3L.js.map → componentInline-HNE5G4TE.js.map} +0 -0
  1368. /package/dist/features/{experimental_table → table}/client/index.d.ts +0 -0
  1369. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/computeSelectionCount.d.ts +0 -0
  1370. /package/dist/features/{experimental_table → table}/client/plugins/TableActionMenuPlugin/computeSelectionCount.js +0 -0
  1371. /package/dist/features/{experimental_table → table}/client/plugins/TableHoverActionsPlugin/index.d.ts +0 -0
  1372. /package/dist/features/{experimental_table → table}/client/utils/debounce.d.ts +0 -0
  1373. /package/dist/features/{experimental_table → table}/client/utils/debounce.js +0 -0
  1374. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.d.ts +0 -0
  1375. /package/dist/features/{experimental_table → table}/client/utils/useDebounce.js +0 -0
@@ -0,0 +1,147 @@
1
+ import { createHash } from 'crypto';
2
+ import { fieldsToJSONSchema, flattenAllFields } from 'payload';
3
+ import { formatSchema, versionSchema } from '../../../types/jsonSchemaHelpers.js';
4
+ /** MUST stay byte-for-byte in sync with the runtime `SerializedUploadNode` declared above. */
5
+ const SERIALIZED_UPLOAD_NODE_TS = `export type SerializedUploadNode<TSlugs extends keyof Config['collections'], TFields = { [k: string]: unknown }> = {
6
+ type: 'upload';
7
+ format: LexicalElementFormat;
8
+ id: string;
9
+ /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */
10
+ version: number;
11
+ fields: TFields;
12
+ } & {
13
+ [TSlug in TSlugs]: {
14
+ relationTo: TSlug;
15
+ value: Config['collections'][TSlug]['id'] | Config['collections'][TSlug];
16
+ };
17
+ }[TSlugs];`;
18
+ /** Input variant of `SerializedUploadNode`: `value` is ID-only (you only ever write an ID). */
19
+ const SERIALIZED_UPLOAD_NODE_INPUT_TS = `export type SerializedUploadNodeInput<TSlugs extends keyof Config['collections'], TFields = { [k: string]: unknown }> = {
20
+ type: 'upload';
21
+ format: LexicalElementFormat;
22
+ id: string;
23
+ /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */
24
+ version: number;
25
+ fields: TFields;
26
+ } & {
27
+ [TSlug in TSlugs]: {
28
+ relationTo: TSlug;
29
+ value: Config['collections'][TSlug]['id'];
30
+ };
31
+ }[TSlugs];`;
32
+ const hashUploadFields = schema => createHash('sha256').update(JSON.stringify(schema)).digest('hex').slice(0, 8).toUpperCase();
33
+ export const createUploadNodeJSONSchema = props => ({
34
+ collectionIDFieldTypes,
35
+ config,
36
+ i18n,
37
+ interfaceNameDefinitions,
38
+ typeStringDefinitions,
39
+ variant
40
+ }) => {
41
+ const isInput = variant === 'input';
42
+ typeStringDefinitions.add(isInput ? SERIALIZED_UPLOAD_NODE_INPUT_TS : SERIALIZED_UPLOAD_NODE_TS);
43
+ const {
44
+ enabledCollectionSlugs
45
+ } = props;
46
+ // Configured extra fields are registered as their own interface and referenced here, so the
47
+ // generated TypeScript keeps them - the node-level `tsType` would otherwise erase `fields` to
48
+ // `{ [k: string]: unknown }`. Mirrors how LinkFeature handles custom link fields.
49
+ //
50
+ // Each collection gets its own `SerializedUploadNode<'slug', Fields>` instantiation so the
51
+ // generated union correctly pairs each `relationTo` with its own fields type. A single
52
+ // `SerializedUploadNode<'a' | 'b', AFields | BFields>` would lose that pairing.
53
+ const perCollectionTsTypes = [];
54
+ const collectionVariants = enabledCollectionSlugs.map(slug => {
55
+ const idType = collectionIDFieldTypes[slug] ?? 'string';
56
+ const extraFields = props?.collections?.[slug]?.fields ?? [];
57
+ const flattenedExtra = flattenAllFields({
58
+ fields: extraFields
59
+ });
60
+ const extraFieldsSchema = flattenedExtra.length > 0 && config ? fieldsToJSONSchema({
61
+ collectionIDFieldTypes,
62
+ config,
63
+ fields: flattenedExtra,
64
+ i18n,
65
+ interfaceNameDefinitions,
66
+ typeStringDefinitions,
67
+ variant
68
+ }) : {
69
+ properties: {},
70
+ required: []
71
+ };
72
+ let fieldsSchema = {
73
+ type: 'object',
74
+ additionalProperties: false,
75
+ properties: extraFieldsSchema.properties,
76
+ required: extraFieldsSchema.required
77
+ };
78
+ let fieldsTypeName;
79
+ if (flattenedExtra.length > 0) {
80
+ fieldsTypeName = `LexicalUploadFields_${hashUploadFields(fieldsSchema)}`;
81
+ interfaceNameDefinitions.set(fieldsTypeName, fieldsSchema);
82
+ fieldsSchema = {
83
+ $ref: `#/$defs/${fieldsTypeName}`
84
+ };
85
+ }
86
+ const uploadTsName = isInput ? 'SerializedUploadNodeInput' : 'SerializedUploadNode';
87
+ perCollectionTsTypes.push(fieldsTypeName ? `${uploadTsName}<'${slug}', ${fieldsTypeName}>` : `${uploadTsName}<'${slug}'>`);
88
+ return {
89
+ type: 'object',
90
+ additionalProperties: false,
91
+ properties: {
92
+ id: {
93
+ type: 'string'
94
+ },
95
+ type: {
96
+ type: 'string',
97
+ const: 'upload'
98
+ },
99
+ fields: fieldsSchema,
100
+ format: formatSchema,
101
+ relationTo: {
102
+ type: 'string',
103
+ const: slug
104
+ },
105
+ value: isInput ? {
106
+ type: idType,
107
+ description: 'The uploaded file ID.'
108
+ } : {
109
+ description: 'The uploaded file by ID (string or number). Populated to the full upload document when read at depth > 0.',
110
+ oneOf: [{
111
+ type: idType
112
+ }, {
113
+ $ref: `#/$defs/${slug}`
114
+ }]
115
+ },
116
+ version: versionSchema
117
+ },
118
+ required: ['fields', 'format', 'id', 'relationTo', 'type', 'value']
119
+ };
120
+ });
121
+ let schema;
122
+ if (collectionVariants.length === 0) {
123
+ // Fallback when no enabled upload collections.
124
+ schema = {
125
+ type: 'object',
126
+ additionalProperties: true,
127
+ properties: {
128
+ type: {
129
+ type: 'string',
130
+ const: 'upload'
131
+ },
132
+ version: versionSchema
133
+ },
134
+ required: ['type']
135
+ };
136
+ } else {
137
+ const baseSchema = collectionVariants.length === 1 ? collectionVariants[0] : {
138
+ oneOf: collectionVariants
139
+ };
140
+ schema = {
141
+ ...baseSchema,
142
+ tsType: perCollectionTsTypes.join(' | ')
143
+ };
144
+ }
145
+ return schema;
146
+ };
147
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","names":["createHash","fieldsToJSONSchema","flattenAllFields","formatSchema","versionSchema","SERIALIZED_UPLOAD_NODE_TS","SERIALIZED_UPLOAD_NODE_INPUT_TS","hashUploadFields","schema","update","JSON","stringify","digest","slice","toUpperCase","createUploadNodeJSONSchema","props","collectionIDFieldTypes","config","i18n","interfaceNameDefinitions","typeStringDefinitions","variant","isInput","add","enabledCollectionSlugs","perCollectionTsTypes","collectionVariants","map","slug","idType","extraFields","collections","fields","flattenedExtra","extraFieldsSchema","length","properties","required","fieldsSchema","type","additionalProperties","fieldsTypeName","set","$ref","uploadTsName","push","id","const","format","relationTo","value","description","oneOf","version","baseSchema","tsType","join"],"sources":["../../../../src/features/upload/server/schema.ts"],"sourcesContent":["import type { JSONSchema4 } from 'json-schema'\nimport type {\n DataFromCollectionSlug,\n IDTypeForCollectionSlug,\n JsonObject,\n TypedUploadCollection,\n UploadCollectionSlug,\n} from 'payload'\n\nimport { createHash } from 'crypto'\nimport { fieldsToJSONSchema, flattenAllFields } from 'payload'\n\nimport type { LexicalElementFormat } from '../../../types/nodeTypes.js'\nimport type { JSONSchemaFn } from '../../typesServer.js'\nimport type { UploadFeatureServerProps } from './index.js'\n\nimport { formatSchema, versionSchema } from '../../../types/jsonSchemaHelpers.js'\n\nexport type UploadData<TFields extends JsonObject = JsonObject> = {\n [TCollectionSlug in UploadCollectionSlug]: {\n fields: TFields\n /** ID of this upload node — NOT the linked document's ID. */\n id: string\n relationTo: TCollectionSlug\n /** Either the document ID or the full populated document. */\n value: IDTypeForCollectionSlug<TCollectionSlug> | TypedUploadCollection[TCollectionSlug]\n }\n}[UploadCollectionSlug]\n\n/** @internal Adds a pending state to `UploadData`. */\nexport type Internal_UploadData<TFields extends JsonObject = JsonObject> = {\n pending?: {\n /** Bulk upload form ID. */\n formID: string\n /** `src` of the image DOM element. */\n src: string\n }\n} & UploadData<TFields>\n\nexport type SerializedUploadNode<\n TSlugs extends UploadCollectionSlug = UploadCollectionSlug,\n TFields = { [k: string]: unknown },\n> = {\n [TSlug in TSlugs]: {\n relationTo: TSlug\n value: DataFromCollectionSlug<TSlug> | IDTypeForCollectionSlug<TSlug>\n }\n}[TSlugs] & {\n fields: TFields\n format: LexicalElementFormat\n id: string\n type: 'upload'\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number\n}\n\n/** MUST stay byte-for-byte in sync with the runtime `SerializedUploadNode` declared above. */\nconst SERIALIZED_UPLOAD_NODE_TS = `export type SerializedUploadNode<TSlugs extends keyof Config['collections'], TFields = { [k: string]: unknown }> = {\n type: 'upload';\n format: LexicalElementFormat;\n id: string;\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n fields: TFields;\n} & {\n [TSlug in TSlugs]: {\n relationTo: TSlug;\n value: Config['collections'][TSlug]['id'] | Config['collections'][TSlug];\n };\n}[TSlugs];`\n\n/** Input variant of `SerializedUploadNode`: `value` is ID-only (you only ever write an ID). */\nconst SERIALIZED_UPLOAD_NODE_INPUT_TS = `export type SerializedUploadNodeInput<TSlugs extends keyof Config['collections'], TFields = { [k: string]: unknown }> = {\n type: 'upload';\n format: LexicalElementFormat;\n id: string;\n /** @deprecated Ignored when loading. Typed as required only to match Lexical's types: rich text sent through the API, CLI or MCP may not contain it. */\n version: number;\n fields: TFields;\n} & {\n [TSlug in TSlugs]: {\n relationTo: TSlug;\n value: Config['collections'][TSlug]['id'];\n };\n}[TSlugs];`\n\nconst hashUploadFields = (schema: JSONSchema4): string =>\n createHash('sha256').update(JSON.stringify(schema)).digest('hex').slice(0, 8).toUpperCase()\n\nexport const createUploadNodeJSONSchema =\n (props: UploadFeatureServerProps): JSONSchemaFn =>\n ({\n collectionIDFieldTypes,\n config,\n i18n,\n interfaceNameDefinitions,\n typeStringDefinitions,\n variant,\n }) => {\n const isInput = variant === 'input'\n typeStringDefinitions.add(isInput ? SERIALIZED_UPLOAD_NODE_INPUT_TS : SERIALIZED_UPLOAD_NODE_TS)\n const { enabledCollectionSlugs } = props\n\n // Configured extra fields are registered as their own interface and referenced here, so the\n // generated TypeScript keeps them - the node-level `tsType` would otherwise erase `fields` to\n // `{ [k: string]: unknown }`. Mirrors how LinkFeature handles custom link fields.\n //\n // Each collection gets its own `SerializedUploadNode<'slug', Fields>` instantiation so the\n // generated union correctly pairs each `relationTo` with its own fields type. A single\n // `SerializedUploadNode<'a' | 'b', AFields | BFields>` would lose that pairing.\n const perCollectionTsTypes: string[] = []\n const collectionVariants: JSONSchema4[] = enabledCollectionSlugs.map((slug) => {\n const idType: 'number' | 'string' = collectionIDFieldTypes[slug] ?? 'string'\n const extraFields = props?.collections?.[slug]?.fields ?? []\n const flattenedExtra = flattenAllFields({ fields: extraFields })\n const extraFieldsSchema =\n flattenedExtra.length > 0 && config\n ? fieldsToJSONSchema({\n collectionIDFieldTypes,\n config,\n fields: flattenedExtra,\n i18n,\n interfaceNameDefinitions,\n typeStringDefinitions,\n variant,\n })\n : { properties: {}, required: [] }\n\n let fieldsSchema: JSONSchema4 = {\n type: 'object',\n additionalProperties: false,\n properties: extraFieldsSchema.properties,\n required: extraFieldsSchema.required,\n }\n let fieldsTypeName: string | undefined\n if (flattenedExtra.length > 0) {\n fieldsTypeName = `LexicalUploadFields_${hashUploadFields(fieldsSchema)}`\n interfaceNameDefinitions.set(fieldsTypeName, fieldsSchema)\n fieldsSchema = { $ref: `#/$defs/${fieldsTypeName}` }\n }\n\n const uploadTsName = isInput ? 'SerializedUploadNodeInput' : 'SerializedUploadNode'\n perCollectionTsTypes.push(\n fieldsTypeName\n ? `${uploadTsName}<'${slug}', ${fieldsTypeName}>`\n : `${uploadTsName}<'${slug}'>`,\n )\n\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n id: { type: 'string' },\n type: { type: 'string', const: 'upload' },\n fields: fieldsSchema,\n format: formatSchema,\n relationTo: { type: 'string', const: slug },\n value: isInput\n ? { type: idType, description: 'The uploaded file ID.' }\n : {\n description:\n 'The uploaded file by ID (string or number). Populated to the full upload document when read at depth > 0.',\n oneOf: [{ type: idType }, { $ref: `#/$defs/${slug}` }],\n },\n version: versionSchema,\n },\n required: ['fields', 'format', 'id', 'relationTo', 'type', 'value'],\n }\n })\n\n let schema: JSONSchema4\n if (collectionVariants.length === 0) {\n // Fallback when no enabled upload collections.\n schema = {\n type: 'object',\n additionalProperties: true,\n properties: {\n type: { type: 'string', const: 'upload' },\n version: versionSchema,\n },\n required: ['type'],\n }\n } else {\n const baseSchema: JSONSchema4 =\n collectionVariants.length === 1 ? collectionVariants[0]! : { oneOf: collectionVariants }\n schema = { ...baseSchema, tsType: perCollectionTsTypes.join(' | ') }\n }\n\n return schema\n }\n"],"mappings":"AASA,SAASA,UAAU,QAAQ;AAC3B,SAASC,kBAAkB,EAAEC,gBAAgB,QAAQ;AAMrD,SAASC,YAAY,EAAEC,aAAa,QAAQ;AAwC5C;AACA,MAAMC,yBAAA,GAA4B;;;;;;;;;;;;WAYvB;AAEX;AACA,MAAMC,+BAAA,GAAkC;;;;;;;;;;;;WAY7B;AAEX,MAAMC,gBAAA,GAAoBC,MAAA,IACxBR,UAAA,CAAW,UAAUS,MAAM,CAACC,IAAA,CAAKC,SAAS,CAACH,MAAA,GAASI,MAAM,CAAC,OAAOC,KAAK,CAAC,GAAG,GAAGC,WAAW;AAE3F,OAAO,MAAMC,0BAAA,GACVC,KAAA,IACD,CAAC;EACCC,sBAAsB;EACtBC,MAAM;EACNC,IAAI;EACJC,wBAAwB;EACxBC,qBAAqB;EACrBC;AAAO,CACR;EACC,MAAMC,OAAA,GAAUD,OAAA,KAAY;EAC5BD,qBAAA,CAAsBG,GAAG,CAACD,OAAA,GAAUjB,+BAAA,GAAkCD,yBAAA;EACtE,MAAM;IAAEoB;EAAsB,CAAE,GAAGT,KAAA;EAEnC;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAMU,oBAAA,GAAiC,EAAE;EACzC,MAAMC,kBAAA,GAAoCF,sBAAA,CAAuBG,GAAG,CAAEC,IAAA;IACpE,MAAMC,MAAA,GAA8Bb,sBAAsB,CAACY,IAAA,CAAK,IAAI;IACpE,MAAME,WAAA,GAAcf,KAAA,EAAOgB,WAAA,GAAcH,IAAA,CAAK,EAAEI,MAAA,IAAU,EAAE;IAC5D,MAAMC,cAAA,GAAiBhC,gBAAA,CAAiB;MAAE+B,MAAA,EAAQF;IAAY;IAC9D,MAAMI,iBAAA,GACJD,cAAA,CAAeE,MAAM,GAAG,KAAKlB,MAAA,GACzBjB,kBAAA,CAAmB;MACjBgB,sBAAA;MACAC,MAAA;MACAe,MAAA,EAAQC,cAAA;MACRf,IAAA;MACAC,wBAAA;MACAC,qBAAA;MACAC;IACF,KACA;MAAEe,UAAA,EAAY,CAAC;MAAGC,QAAA,EAAU;IAAG;IAErC,IAAIC,YAAA,GAA4B;MAC9BC,IAAA,EAAM;MACNC,oBAAA,EAAsB;MACtBJ,UAAA,EAAYF,iBAAA,CAAkBE,UAAU;MACxCC,QAAA,EAAUH,iBAAA,CAAkBG;IAC9B;IACA,IAAII,cAAA;IACJ,IAAIR,cAAA,CAAeE,MAAM,GAAG,GAAG;MAC7BM,cAAA,GAAiB,uBAAuBnC,gBAAA,CAAiBgC,YAAA,GAAe;MACxEnB,wBAAA,CAAyBuB,GAAG,CAACD,cAAA,EAAgBH,YAAA;MAC7CA,YAAA,GAAe;QAAEK,IAAA,EAAM,WAAWF,cAAA;MAAiB;IACrD;IAEA,MAAMG,YAAA,GAAetB,OAAA,GAAU,8BAA8B;IAC7DG,oBAAA,CAAqBoB,IAAI,CACvBJ,cAAA,GACI,GAAGG,YAAA,KAAiBhB,IAAA,MAAUa,cAAA,GAAiB,GAC/C,GAAGG,YAAA,KAAiBhB,IAAA,IAAQ;IAGlC,OAAO;MACLW,IAAA,EAAM;MACNC,oBAAA,EAAsB;MACtBJ,UAAA,EAAY;QACVU,EAAA,EAAI;UAAEP,IAAA,EAAM;QAAS;QACrBA,IAAA,EAAM;UAAEA,IAAA,EAAM;UAAUQ,KAAA,EAAO;QAAS;QACxCf,MAAA,EAAQM,YAAA;QACRU,MAAA,EAAQ9C,YAAA;QACR+C,UAAA,EAAY;UAAEV,IAAA,EAAM;UAAUQ,KAAA,EAAOnB;QAAK;QAC1CsB,KAAA,EAAO5B,OAAA,GACH;UAAEiB,IAAA,EAAMV,MAAA;UAAQsB,WAAA,EAAa;QAAwB,IACrD;UACEA,WAAA,EACE;UACFC,KAAA,EAAO,CAAC;YAAEb,IAAA,EAAMV;UAAO,GAAG;YAAEc,IAAA,EAAM,WAAWf,IAAA;UAAO;QACtD;QACJyB,OAAA,EAASlD;MACX;MACAkC,QAAA,EAAU,CAAC,UAAU,UAAU,MAAM,cAAc,QAAQ;IAC7D;EACF;EAEA,IAAI9B,MAAA;EACJ,IAAImB,kBAAA,CAAmBS,MAAM,KAAK,GAAG;IACnC;IACA5B,MAAA,GAAS;MACPgC,IAAA,EAAM;MACNC,oBAAA,EAAsB;MACtBJ,UAAA,EAAY;QACVG,IAAA,EAAM;UAAEA,IAAA,EAAM;UAAUQ,KAAA,EAAO;QAAS;QACxCM,OAAA,EAASlD;MACX;MACAkC,QAAA,EAAU,CAAC;IACb;EACF,OAAO;IACL,MAAMiB,UAAA,GACJ5B,kBAAA,CAAmBS,MAAM,KAAK,IAAIT,kBAAkB,CAAC,EAAE,GAAI;MAAE0B,KAAA,EAAO1B;IAAmB;IACzFnB,MAAA,GAAS;MAAE,GAAG+C,UAAU;MAAEC,MAAA,EAAQ9B,oBAAA,CAAqB+B,IAAI,CAAC;IAAO;EACrE;EAEA,OAAOjD,MAAA;AACT","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import type { NodeValidation } from '../../typesServer.js';
2
2
  import type { UploadFeatureServerProps } from './index.js';
3
- import type { SerializedUploadNode } from './nodes/UploadNode.js';
3
+ import type { SerializedUploadNode } from './schema.js';
4
4
  export declare const uploadValidation: (props: UploadFeatureServerProps) => NodeValidation<SerializedUploadNode>;
5
5
  //# sourceMappingURL=validate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../src/features/upload/server/validate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,eAAO,MAAM,gBAAgB,UACpB,wBAAwB,KAC9B,cAAc,CAAC,oBAAoB,CAyErC,CAAA"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../src/features/upload/server/validate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAEvD,eAAO,MAAM,gBAAgB,UACpB,wBAAwB,KAC9B,cAAc,CAAC,oBAAoB,CAyErC,CAAA"}
@@ -45,7 +45,7 @@ export const uploadValidation = props => {
45
45
  fields: collection.fields,
46
46
  fieldSchemaMap: undefined,
47
47
  initialBlockData: node?.fields ?? {},
48
- operation: operation === 'create' || operation === 'update' ? operation : 'update',
48
+ operation,
49
49
  permissions: {},
50
50
  preferences,
51
51
  renderAllFields: false,
@@ -1 +1 @@
1
- {"version":3,"file":"validate.js","names":["fieldSchemasToFormState","isValidID","uploadValidation","props","node","validation","options","id","data","operation","preferences","req","payload","t","enabledCollectionSlugs","includes","relationTo","idType","collections","customIDType","db","defaultIDType","nodeID","value","Object","keys","length","collection","fields","result","collectionSlug","documentData","fieldSchemaMap","undefined","initialBlockData","permissions","renderAllFields","schemaPath","errorPathsSet","Set","fieldKey","fieldState","errorPaths","errorPath","add","Array","from","join"],"sources":["../../../../src/features/upload/server/validate.ts"],"sourcesContent":["import { fieldSchemasToFormState } from '@payloadcms/ui/forms/fieldSchemasToFormState'\nimport { isValidID } from 'payload'\n\nimport type { NodeValidation } from '../../typesServer.js'\nimport type { UploadFeatureServerProps } from './index.js'\nimport type { SerializedUploadNode } from './nodes/UploadNode.js'\n\nexport const uploadValidation = (\n props: UploadFeatureServerProps,\n): NodeValidation<SerializedUploadNode> => {\n return async ({\n node,\n validation: {\n options: {\n id,\n data,\n operation,\n preferences,\n req,\n req: { payload, t },\n },\n },\n }) => {\n if (!props.enabledCollectionSlugs.includes(node.relationTo)) {\n return t('validation:invalidSelection')\n }\n\n const idType = payload.collections[node.relationTo]?.customIDType || payload.db.defaultIDType\n // @ts-expect-error - Fix in Payload v4\n const nodeID = node?.value?.id || node?.value // for backwards-compatibility\n\n if (!isValidID(nodeID, idType)) {\n return t('validation:validUploadID')\n }\n\n if (!props?.collections) {\n return true\n }\n\n if (Object.keys(props?.collections).length === 0) {\n return true\n }\n\n const collection = props?.collections[node.relationTo]\n\n if (!collection?.fields?.length) {\n return true\n }\n\n const result = await fieldSchemasToFormState({\n id,\n collectionSlug: node.relationTo,\n data: node?.fields ?? {},\n documentData: data,\n fields: collection.fields,\n fieldSchemaMap: undefined,\n initialBlockData: node?.fields ?? {},\n operation: operation === 'create' || operation === 'update' ? operation : 'update',\n permissions: {},\n preferences,\n renderAllFields: false,\n req,\n schemaPath: '',\n })\n\n const errorPathsSet = new Set<string>()\n for (const fieldKey in result) {\n const fieldState = result[fieldKey]\n if (fieldState?.errorPaths?.length) {\n for (const errorPath of fieldState.errorPaths) {\n errorPathsSet.add(errorPath)\n }\n }\n }\n const errorPaths = Array.from(errorPathsSet)\n\n if (errorPaths.length) {\n return 'The following fields are invalid: ' + errorPaths.join(', ')\n }\n\n return true\n }\n}\n"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ;AACxC,SAASC,SAAS,QAAQ;AAM1B,OAAO,MAAMC,gBAAA,GACXC,KAAA;EAEA,OAAO,OAAO;IACZC,IAAI;IACJC,UAAA,EAAY;MACVC,OAAA,EAAS;QACPC,EAAE;QACFC,IAAI;QACJC,SAAS;QACTC,WAAW;QACXC,GAAG;QACHA,GAAA,EAAK;UAAEC,OAAO;UAAEC;QAAC;MAAE;IACpB;EACF,CACF;IACC,IAAI,CAACV,KAAA,CAAMW,sBAAsB,CAACC,QAAQ,CAACX,IAAA,CAAKY,UAAU,GAAG;MAC3D,OAAOH,CAAA,CAAE;IACX;IAEA,MAAMI,MAAA,GAASL,OAAA,CAAQM,WAAW,CAACd,IAAA,CAAKY,UAAU,CAAC,EAAEG,YAAA,IAAgBP,OAAA,CAAQQ,EAAE,CAACC,aAAa;IAC7F;IACA,MAAMC,MAAA,GAASlB,IAAA,EAAMmB,KAAA,EAAOhB,EAAA,IAAMH,IAAA,EAAMmB,KAAA,CAAM;AAAA;IAE9C,IAAI,CAACtB,SAAA,CAAUqB,MAAA,EAAQL,MAAA,GAAS;MAC9B,OAAOJ,CAAA,CAAE;IACX;IAEA,IAAI,CAACV,KAAA,EAAOe,WAAA,EAAa;MACvB,OAAO;IACT;IAEA,IAAIM,MAAA,CAAOC,IAAI,CAACtB,KAAA,EAAOe,WAAA,EAAaQ,MAAM,KAAK,GAAG;MAChD,OAAO;IACT;IAEA,MAAMC,UAAA,GAAaxB,KAAA,EAAOe,WAAW,CAACd,IAAA,CAAKY,UAAU,CAAC;IAEtD,IAAI,CAACW,UAAA,EAAYC,MAAA,EAAQF,MAAA,EAAQ;MAC/B,OAAO;IACT;IAEA,MAAMG,MAAA,GAAS,MAAM7B,uBAAA,CAAwB;MAC3CO,EAAA;MACAuB,cAAA,EAAgB1B,IAAA,CAAKY,UAAU;MAC/BR,IAAA,EAAMJ,IAAA,EAAMwB,MAAA,IAAU,CAAC;MACvBG,YAAA,EAAcvB,IAAA;MACdoB,MAAA,EAAQD,UAAA,CAAWC,MAAM;MACzBI,cAAA,EAAgBC,SAAA;MAChBC,gBAAA,EAAkB9B,IAAA,EAAMwB,MAAA,IAAU,CAAC;MACnCnB,SAAA,EAAWA,SAAA,KAAc,YAAYA,SAAA,KAAc,WAAWA,SAAA,GAAY;MAC1E0B,WAAA,EAAa,CAAC;MACdzB,WAAA;MACA0B,eAAA,EAAiB;MACjBzB,GAAA;MACA0B,UAAA,EAAY;IACd;IAEA,MAAMC,aAAA,GAAgB,IAAIC,GAAA;IAC1B,KAAK,MAAMC,QAAA,IAAYX,MAAA,EAAQ;MAC7B,MAAMY,UAAA,GAAaZ,MAAM,CAACW,QAAA,CAAS;MACnC,IAAIC,UAAA,EAAYC,UAAA,EAAYhB,MAAA,EAAQ;QAClC,KAAK,MAAMiB,SAAA,IAAaF,UAAA,CAAWC,UAAU,EAAE;UAC7CJ,aAAA,CAAcM,GAAG,CAACD,SAAA;QACpB;MACF;IACF;IACA,MAAMD,UAAA,GAAaG,KAAA,CAAMC,IAAI,CAACR,aAAA;IAE9B,IAAII,UAAA,CAAWhB,MAAM,EAAE;MACrB,OAAO,uCAAuCgB,UAAA,CAAWK,IAAI,CAAC;IAChE;IAEA,OAAO;EACT;AACF","ignoreList":[]}
1
+ {"version":3,"file":"validate.js","names":["fieldSchemasToFormState","isValidID","uploadValidation","props","node","validation","options","id","data","operation","preferences","req","payload","t","enabledCollectionSlugs","includes","relationTo","idType","collections","customIDType","db","defaultIDType","nodeID","value","Object","keys","length","collection","fields","result","collectionSlug","documentData","fieldSchemaMap","undefined","initialBlockData","permissions","renderAllFields","schemaPath","errorPathsSet","Set","fieldKey","fieldState","errorPaths","errorPath","add","Array","from","join"],"sources":["../../../../src/features/upload/server/validate.ts"],"sourcesContent":["import { fieldSchemasToFormState } from '@payloadcms/ui/forms/fieldSchemasToFormState'\nimport { isValidID } from 'payload'\n\nimport type { NodeValidation } from '../../typesServer.js'\nimport type { UploadFeatureServerProps } from './index.js'\nimport type { SerializedUploadNode } from './schema.js'\n\nexport const uploadValidation = (\n props: UploadFeatureServerProps,\n): NodeValidation<SerializedUploadNode> => {\n return async ({\n node,\n validation: {\n options: {\n id,\n data,\n operation,\n preferences,\n req,\n req: { payload, t },\n },\n },\n }) => {\n if (!props.enabledCollectionSlugs.includes(node.relationTo)) {\n return t('validation:invalidSelection')\n }\n\n const idType = payload.collections[node.relationTo]?.customIDType || payload.db.defaultIDType\n // @ts-expect-error - Fix in Payload v4\n const nodeID = node?.value?.id || node?.value // for backwards-compatibility\n\n if (!isValidID(nodeID, idType)) {\n return t('validation:validUploadID')\n }\n\n if (!props?.collections) {\n return true\n }\n\n if (Object.keys(props?.collections).length === 0) {\n return true\n }\n\n const collection = props?.collections[node.relationTo]\n\n if (!collection?.fields?.length) {\n return true\n }\n\n const result = await fieldSchemasToFormState({\n id,\n collectionSlug: node.relationTo,\n data: node?.fields ?? {},\n documentData: data,\n fields: collection.fields,\n fieldSchemaMap: undefined,\n initialBlockData: node?.fields ?? {},\n operation,\n permissions: {},\n preferences,\n renderAllFields: false,\n req,\n schemaPath: '',\n })\n\n const errorPathsSet = new Set<string>()\n for (const fieldKey in result) {\n const fieldState = result[fieldKey]\n if (fieldState?.errorPaths?.length) {\n for (const errorPath of fieldState.errorPaths) {\n errorPathsSet.add(errorPath)\n }\n }\n }\n const errorPaths = Array.from(errorPathsSet)\n\n if (errorPaths.length) {\n return 'The following fields are invalid: ' + errorPaths.join(', ')\n }\n\n return true\n }\n}\n"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ;AACxC,SAASC,SAAS,QAAQ;AAM1B,OAAO,MAAMC,gBAAA,GACXC,KAAA;EAEA,OAAO,OAAO;IACZC,IAAI;IACJC,UAAA,EAAY;MACVC,OAAA,EAAS;QACPC,EAAE;QACFC,IAAI;QACJC,SAAS;QACTC,WAAW;QACXC,GAAG;QACHA,GAAA,EAAK;UAAEC,OAAO;UAAEC;QAAC;MAAE;IACpB;EACF,CACF;IACC,IAAI,CAACV,KAAA,CAAMW,sBAAsB,CAACC,QAAQ,CAACX,IAAA,CAAKY,UAAU,GAAG;MAC3D,OAAOH,CAAA,CAAE;IACX;IAEA,MAAMI,MAAA,GAASL,OAAA,CAAQM,WAAW,CAACd,IAAA,CAAKY,UAAU,CAAC,EAAEG,YAAA,IAAgBP,OAAA,CAAQQ,EAAE,CAACC,aAAa;IAC7F;IACA,MAAMC,MAAA,GAASlB,IAAA,EAAMmB,KAAA,EAAOhB,EAAA,IAAMH,IAAA,EAAMmB,KAAA,CAAM;AAAA;IAE9C,IAAI,CAACtB,SAAA,CAAUqB,MAAA,EAAQL,MAAA,GAAS;MAC9B,OAAOJ,CAAA,CAAE;IACX;IAEA,IAAI,CAACV,KAAA,EAAOe,WAAA,EAAa;MACvB,OAAO;IACT;IAEA,IAAIM,MAAA,CAAOC,IAAI,CAACtB,KAAA,EAAOe,WAAA,EAAaQ,MAAM,KAAK,GAAG;MAChD,OAAO;IACT;IAEA,MAAMC,UAAA,GAAaxB,KAAA,EAAOe,WAAW,CAACd,IAAA,CAAKY,UAAU,CAAC;IAEtD,IAAI,CAACW,UAAA,EAAYC,MAAA,EAAQF,MAAA,EAAQ;MAC/B,OAAO;IACT;IAEA,MAAMG,MAAA,GAAS,MAAM7B,uBAAA,CAAwB;MAC3CO,EAAA;MACAuB,cAAA,EAAgB1B,IAAA,CAAKY,UAAU;MAC/BR,IAAA,EAAMJ,IAAA,EAAMwB,MAAA,IAAU,CAAC;MACvBG,YAAA,EAAcvB,IAAA;MACdoB,MAAA,EAAQD,UAAA,CAAWC,MAAM;MACzBI,cAAA,EAAgBC,SAAA;MAChBC,gBAAA,EAAkB9B,IAAA,EAAMwB,MAAA,IAAU,CAAC;MACnCnB,SAAA;MACA0B,WAAA,EAAa,CAAC;MACdzB,WAAA;MACA0B,eAAA,EAAiB;MACjBzB,GAAA;MACA0B,UAAA,EAAY;IACd;IAEA,MAAMC,aAAA,GAAgB,IAAIC,GAAA;IAC1B,KAAK,MAAMC,QAAA,IAAYX,MAAA,EAAQ;MAC7B,MAAMY,UAAA,GAAaZ,MAAM,CAACW,QAAA,CAAS;MACnC,IAAIC,UAAA,EAAYC,UAAA,EAAYhB,MAAA,EAAQ;QAClC,KAAK,MAAMiB,SAAA,IAAaF,UAAA,CAAWC,UAAU,EAAE;UAC7CJ,aAAA,CAAcM,GAAG,CAACD,SAAA;QACpB;MACF;IACF;IACA,MAAMD,UAAA,GAAaG,KAAA,CAAMC,IAAI,CAACR,aAAA;IAE9B,IAAII,UAAA,CAAWhB,MAAM,EAAE;MACrB,OAAO,uCAAuCgB,UAAA,CAAWK,IAAI,CAAC;IAChE;IAEA,OAAO;EACT;AACF","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import type { HTMLConvertersAsync, HTMLPopulateFn } from '../../../features/converters/lexicalToHtml/async/types.js';
2
- import type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../nodeTypes.js';
2
+ import type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../types/nodeTypes.js';
3
3
  export declare const LinkDiffHTMLConverterAsync: (args: {
4
4
  internalDocToHref?: (args: {
5
5
  linkNode: SerializedLinkNode;
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/field/Diff/converters/link.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2DAA2D,CAAA;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAEvF,eAAO,MAAM,0BAA0B,EAAE,CAAC,IAAI,EAAE;IAC9C,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QACzB,QAAQ,EAAE,kBAAkB,CAAA;QAC5B,QAAQ,CAAC,EAAE,cAAc,CAAA;KAC1B,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;CAC/B,KAAK,mBAAmB,CAAC,sBAAsB,GAAG,kBAAkB,CAkDnE,CAAA"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/field/Diff/converters/link.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2DAA2D,CAAA;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAE7F,eAAO,MAAM,0BAA0B,EAAE,CAAC,IAAI,EAAE;IAC9C,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QACzB,QAAQ,EAAE,kBAAkB,CAAA;QAC5B,QAAQ,CAAC,EAAE,cAAc,CAAA;KAC1B,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;CAC/B,KAAK,mBAAmB,CAAC,sBAAsB,GAAG,kBAAkB,CAkDnE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","names":["createHash","escapeHTML","sanitizeUrl","LinkDiffHTMLConverterAsync","internalDocToHref","autolink","node","nodesToHTML","providedStyleTag","children","nodes","join","nodeFieldsHash","update","JSON","stringify","fields","digest","href","url","newTab","link","populate","linkType","linkNode","console","error","safeHref"],"sources":["../../../../src/field/Diff/converters/link.ts"],"sourcesContent":["import { createHash } from 'crypto'\nimport escapeHTML from 'escape-html'\nimport { sanitizeUrl } from 'payload/shared'\n\nimport type {\n HTMLConvertersAsync,\n HTMLPopulateFn,\n} from '../../../features/converters/lexicalToHtml/async/types.js'\nimport type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../nodeTypes.js'\n\nexport const LinkDiffHTMLConverterAsync: (args: {\n internalDocToHref?: (args: {\n linkNode: SerializedLinkNode\n populate?: HTMLPopulateFn\n }) => Promise<string> | string\n}) => HTMLConvertersAsync<SerializedAutoLinkNode | SerializedLinkNode> = ({\n internalDocToHref,\n}) => ({\n autolink: async ({ node, nodesToHTML, providedStyleTag }) => {\n const children = (\n await nodesToHTML({\n nodes: node.children,\n })\n ).join('')\n\n // hash fields to ensure they are diffed if they change\n const nodeFieldsHash = createHash('sha256').update(JSON.stringify(node.fields)).digest('hex')\n\n const href = escapeHTML(sanitizeUrl(node.fields.url ?? ''))\n\n return `<a${providedStyleTag} data-fields-hash=\"${nodeFieldsHash}\" data-enable-match=\"true\" href=\"${href}\"${node.fields.newTab ? ' rel=\"noopener noreferrer\" target=\"_blank\"' : ''}>\n ${children}\n </a>`\n },\n link: async ({ node, nodesToHTML, populate, providedStyleTag }) => {\n const children = (\n await nodesToHTML({\n nodes: node.children,\n })\n ).join('')\n\n let href: string = node.fields.url ?? ''\n if (node.fields.linkType === 'internal') {\n if (internalDocToHref) {\n href = await internalDocToHref({ linkNode: node, populate })\n } else {\n // eslint-disable-next-line no-console\n console.error(\n 'Lexical => HTML converter: Link converter: found internal link, but internalDocToHref is not provided',\n )\n href = '#' // fallback\n }\n }\n\n // hash fields to ensure they are diffed if they change\n const nodeFieldsHash = createHash('sha256')\n .update(JSON.stringify(node.fields ?? {}))\n .digest('hex')\n\n const safeHref = escapeHTML(sanitizeUrl(href))\n\n return `<a${providedStyleTag} data-fields-hash=\"${nodeFieldsHash}\" data-enable-match=\"true\" href=\"${safeHref}\"${node.fields.newTab ? ' rel=\"noopener noreferrer\" target=\"_blank\"' : ''}>\n ${children}\n </a>`\n },\n})\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ;AAC3B,OAAOC,UAAA,MAAgB;AACvB,SAASC,WAAW,QAAQ;AAQ5B,OAAO,MAAMC,0BAAA,GAK4DA,CAAC;EACxEC;AAAiB,CAClB,MAAM;EACLC,QAAA,EAAU,MAAAA,CAAO;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IACtD,MAAMC,QAAA,GAAW,CACf,MAAMF,WAAA,CAAY;MAChBG,KAAA,EAAOJ,IAAA,CAAKG;IACd,EAAC,EACDE,IAAI,CAAC;IAEP;IACA,MAAMC,cAAA,GAAiBZ,UAAA,CAAW,UAAUa,MAAM,CAACC,IAAA,CAAKC,SAAS,CAACT,IAAA,CAAKU,MAAM,GAAGC,MAAM,CAAC;IAEvF,MAAMC,IAAA,GAAOjB,UAAA,CAAWC,WAAA,CAAYI,IAAA,CAAKU,MAAM,CAACG,GAAG,IAAI;IAEvD,OAAO,KAAKX,gBAAA,sBAAsCI,cAAA,oCAAkDM,IAAA,IAAQZ,IAAA,CAAKU,MAAM,CAACI,MAAM,GAAG,+CAA+C;UAC1KX,QAAA;WACC;EACT;EACAY,IAAA,EAAM,MAAAA,CAAO;IAAEf,IAAI;IAAEC,WAAW;IAAEe,QAAQ;IAAEd;EAAgB,CAAE;IAC5D,MAAMC,QAAA,GAAW,CACf,MAAMF,WAAA,CAAY;MAChBG,KAAA,EAAOJ,IAAA,CAAKG;IACd,EAAC,EACDE,IAAI,CAAC;IAEP,IAAIO,IAAA,GAAeZ,IAAA,CAAKU,MAAM,CAACG,GAAG,IAAI;IACtC,IAAIb,IAAA,CAAKU,MAAM,CAACO,QAAQ,KAAK,YAAY;MACvC,IAAInB,iBAAA,EAAmB;QACrBc,IAAA,GAAO,MAAMd,iBAAA,CAAkB;UAAEoB,QAAA,EAAUlB,IAAA;UAAMgB;QAAS;MAC5D,OAAO;QACL;QACAG,OAAA,CAAQC,KAAK,CACX;QAEFR,IAAA,GAAO,KAAI;MACb;IACF;IAEA;IACA,MAAMN,cAAA,GAAiBZ,UAAA,CAAW,UAC/Ba,MAAM,CAACC,IAAA,CAAKC,SAAS,CAACT,IAAA,CAAKU,MAAM,IAAI,CAAC,IACtCC,MAAM,CAAC;IAEV,MAAMU,QAAA,GAAW1B,UAAA,CAAWC,WAAA,CAAYgB,IAAA;IAExC,OAAO,KAAKV,gBAAA,sBAAsCI,cAAA,oCAAkDe,QAAA,IAAYrB,IAAA,CAAKU,MAAM,CAACI,MAAM,GAAG,+CAA+C;UAC9KX,QAAA;WACC;EACT;AACF","ignoreList":[]}
1
+ {"version":3,"file":"link.js","names":["createHash","escapeHTML","sanitizeUrl","LinkDiffHTMLConverterAsync","internalDocToHref","autolink","node","nodesToHTML","providedStyleTag","children","nodes","join","nodeFieldsHash","update","JSON","stringify","fields","digest","href","url","newTab","link","populate","linkType","linkNode","console","error","safeHref"],"sources":["../../../../src/field/Diff/converters/link.ts"],"sourcesContent":["import { createHash } from 'crypto'\nimport escapeHTML from 'escape-html'\nimport { sanitizeUrl } from 'payload/shared'\n\nimport type {\n HTMLConvertersAsync,\n HTMLPopulateFn,\n} from '../../../features/converters/lexicalToHtml/async/types.js'\nimport type { SerializedAutoLinkNode, SerializedLinkNode } from '../../../types/nodeTypes.js'\n\nexport const LinkDiffHTMLConverterAsync: (args: {\n internalDocToHref?: (args: {\n linkNode: SerializedLinkNode\n populate?: HTMLPopulateFn\n }) => Promise<string> | string\n}) => HTMLConvertersAsync<SerializedAutoLinkNode | SerializedLinkNode> = ({\n internalDocToHref,\n}) => ({\n autolink: async ({ node, nodesToHTML, providedStyleTag }) => {\n const children = (\n await nodesToHTML({\n nodes: node.children,\n })\n ).join('')\n\n // hash fields to ensure they are diffed if they change\n const nodeFieldsHash = createHash('sha256').update(JSON.stringify(node.fields)).digest('hex')\n\n const href = escapeHTML(sanitizeUrl(node.fields.url ?? ''))\n\n return `<a${providedStyleTag} data-fields-hash=\"${nodeFieldsHash}\" data-enable-match=\"true\" href=\"${href}\"${node.fields.newTab ? ' rel=\"noopener noreferrer\" target=\"_blank\"' : ''}>\n ${children}\n </a>`\n },\n link: async ({ node, nodesToHTML, populate, providedStyleTag }) => {\n const children = (\n await nodesToHTML({\n nodes: node.children,\n })\n ).join('')\n\n let href: string = node.fields.url ?? ''\n if (node.fields.linkType === 'internal') {\n if (internalDocToHref) {\n href = await internalDocToHref({ linkNode: node, populate })\n } else {\n // eslint-disable-next-line no-console\n console.error(\n 'Lexical => HTML converter: Link converter: found internal link, but internalDocToHref is not provided',\n )\n href = '#' // fallback\n }\n }\n\n // hash fields to ensure they are diffed if they change\n const nodeFieldsHash = createHash('sha256')\n .update(JSON.stringify(node.fields ?? {}))\n .digest('hex')\n\n const safeHref = escapeHTML(sanitizeUrl(href))\n\n return `<a${providedStyleTag} data-fields-hash=\"${nodeFieldsHash}\" data-enable-match=\"true\" href=\"${safeHref}\"${node.fields.newTab ? ' rel=\"noopener noreferrer\" target=\"_blank\"' : ''}>\n ${children}\n </a>`\n },\n})\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ;AAC3B,OAAOC,UAAA,MAAgB;AACvB,SAASC,WAAW,QAAQ;AAQ5B,OAAO,MAAMC,0BAAA,GAK4DA,CAAC;EACxEC;AAAiB,CAClB,MAAM;EACLC,QAAA,EAAU,MAAAA,CAAO;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAE;IACtD,MAAMC,QAAA,GAAW,CACf,MAAMF,WAAA,CAAY;MAChBG,KAAA,EAAOJ,IAAA,CAAKG;IACd,EAAC,EACDE,IAAI,CAAC;IAEP;IACA,MAAMC,cAAA,GAAiBZ,UAAA,CAAW,UAAUa,MAAM,CAACC,IAAA,CAAKC,SAAS,CAACT,IAAA,CAAKU,MAAM,GAAGC,MAAM,CAAC;IAEvF,MAAMC,IAAA,GAAOjB,UAAA,CAAWC,WAAA,CAAYI,IAAA,CAAKU,MAAM,CAACG,GAAG,IAAI;IAEvD,OAAO,KAAKX,gBAAA,sBAAsCI,cAAA,oCAAkDM,IAAA,IAAQZ,IAAA,CAAKU,MAAM,CAACI,MAAM,GAAG,+CAA+C;UAC1KX,QAAA;WACC;EACT;EACAY,IAAA,EAAM,MAAAA,CAAO;IAAEf,IAAI;IAAEC,WAAW;IAAEe,QAAQ;IAAEd;EAAgB,CAAE;IAC5D,MAAMC,QAAA,GAAW,CACf,MAAMF,WAAA,CAAY;MAChBG,KAAA,EAAOJ,IAAA,CAAKG;IACd,EAAC,EACDE,IAAI,CAAC;IAEP,IAAIO,IAAA,GAAeZ,IAAA,CAAKU,MAAM,CAACG,GAAG,IAAI;IACtC,IAAIb,IAAA,CAAKU,MAAM,CAACO,QAAQ,KAAK,YAAY;MACvC,IAAInB,iBAAA,EAAmB;QACrBc,IAAA,GAAO,MAAMd,iBAAA,CAAkB;UAAEoB,QAAA,EAAUlB,IAAA;UAAMgB;QAAS;MAC5D,OAAO;QACL;QACAG,OAAA,CAAQC,KAAK,CACX;QAEFR,IAAA,GAAO,KAAI;MACb;IACF;IAEA;IACA,MAAMN,cAAA,GAAiBZ,UAAA,CAAW,UAC/Ba,MAAM,CAACC,IAAA,CAAKC,SAAS,CAACT,IAAA,CAAKU,MAAM,IAAI,CAAC,IACtCC,MAAM,CAAC;IAEV,MAAMU,QAAA,GAAW1B,UAAA,CAAWC,WAAA,CAAYgB,IAAA;IAExC,OAAO,KAAKV,gBAAA,sBAAsCI,cAAA,oCAAkDe,QAAA,IAAYrB,IAAA,CAAKU,MAAM,CAACI,MAAM,GAAG,+CAA+C;UAC9KX,QAAA;WACC;EACT;AACF","ignoreList":[]}
@@ -0,0 +1,80 @@
1
+ @layer payload-default {
2
+ .lexical-diff {
3
+ ul.list-check {
4
+ padding-inline-start: 0;
5
+ }
6
+
7
+ .checkboxItem {
8
+ list-style-type: none;
9
+ }
10
+
11
+ .checkboxItem__wrapper {
12
+ display: flex;
13
+ align-items: center;
14
+ }
15
+
16
+ .checkboxItem__icon {
17
+ width: var(--spacer-3);
18
+ height: var(--spacer-3);
19
+ margin-inline-end: var(--spacer-2);
20
+ border: var(--stroke-width-small) solid var(--color-text);
21
+ border-radius: var(--radius-medium);
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ pointer-events: none;
26
+
27
+ &[data-match-type='create'] {
28
+ background-color: var(--color-bg-brand-tertiary);
29
+ border-color: var(--color-border-brand-strong);
30
+ color: var(--color-text-brand);
31
+ }
32
+
33
+ &[data-match-type='delete'] {
34
+ border-color: var(--diff-delete-pill-color);
35
+ }
36
+ }
37
+
38
+ /* Override HTMLDiff generic [data-match-type] styles - specificity must beat 0,4,1 from HTMLDiff */
39
+ .checkboxItem__icon.checkboxItem__icon[data-enable-match='true'][data-match-type='create'],
40
+ .checkboxItem__icon.checkboxItem__icon[data-enable-match='true'][data-match-type='delete'] {
41
+ border-radius: var(--radius-medium);
42
+ padding: 0;
43
+ }
44
+
45
+ .checkboxItem__icon.checkboxItem__icon[data-enable-match='true'][data-match-type='create'] {
46
+ background-color: var(--color-bg-brand-tertiary);
47
+ color: var(--color-text-brand);
48
+ }
49
+
50
+ .checkboxItem__icon.checkboxItem__icon[data-enable-match='true'][data-match-type='delete'] {
51
+ background-color: transparent;
52
+ color: var(--diff-delete-pill-color);
53
+ }
54
+
55
+ .checkboxItem--nested {
56
+ margin-inline-start: var(--spacer-4);
57
+ }
58
+
59
+ /* Match editor's hierarchical ordered list numbering (1, A, a, I, i) */
60
+ ol.list-number {
61
+ list-style-type: decimal;
62
+ }
63
+
64
+ ol.list-number ol.list-number {
65
+ list-style-type: upper-alpha;
66
+ }
67
+
68
+ ol.list-number ol.list-number ol.list-number {
69
+ list-style-type: lower-alpha;
70
+ }
71
+
72
+ ol.list-number ol.list-number ol.list-number ol.list-number {
73
+ list-style-type: upper-roman;
74
+ }
75
+
76
+ ol.list-number ol.list-number ol.list-number ol.list-number ol.list-number {
77
+ list-style-type: lower-roman;
78
+ }
79
+ }
80
+ }
@@ -1,5 +1,5 @@
1
1
  import type { HTMLConvertersAsync } from '../../../../features/converters/lexicalToHtml/async/types.js';
2
- import type { SerializedListItemNode } from '../../../../nodeTypes.js';
3
- import './index.scss';
2
+ import type { SerializedListItemNode } from '../../../../types/nodeTypes.js';
3
+ import './index.css';
4
4
  export declare const ListItemDiffHTMLConverterAsync: HTMLConvertersAsync<SerializedListItemNode>;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/field/Diff/converters/listitem/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AACvG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEtE,OAAO,cAAc,CAAA;AAErB,eAAO,MAAM,8BAA8B,EAAE,mBAAmB,CAAC,sBAAsB,CA+DtF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/field/Diff/converters/listitem/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AACvG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAE5E,OAAO,aAAa,CAAA;AAEpB,eAAO,MAAM,8BAA8B,EAAE,mBAAmB,CAAC,sBAAsB,CA+DtF,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CheckIcon } from '@payloadcms/ui/rsc';
3
3
  import escapeHTML from 'escape-html';
4
+ import './index.css';
4
5
  export const ListItemDiffHTMLConverterAsync = {
5
6
  listitem: async ({
6
7
  node,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["CheckIcon","escapeHTML","ListItemDiffHTMLConverterAsync","listitem","node","nodesToHTML","parent","providedCSSString","hasSubLists","children","some","child","type","nodes","join","listType","ReactDOMServer","default","JSX","_jsx","checked","className","role","tabIndex","value","dangerouslySetInnerHTML","__html","_jsxs","html","renderToStaticMarkup","styleIndex","indexOf","classIndex","classEndIndex","substring","classNameWithStyle","htmlWithStyle","replace","String"],"sources":["../../../../../src/field/Diff/converters/listitem/index.tsx"],"sourcesContent":["import { CheckIcon } from '@payloadcms/ui/rsc'\nimport escapeHTML from 'escape-html'\n\nimport type { HTMLConvertersAsync } from '../../../../features/converters/lexicalToHtml/async/types.js'\nimport type { SerializedListItemNode } from '../../../../nodeTypes.js'\n\nimport './index.scss'\n\nexport const ListItemDiffHTMLConverterAsync: HTMLConvertersAsync<SerializedListItemNode> = {\n listitem: async ({ node, nodesToHTML, parent, providedCSSString }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = (\n await nodesToHTML({\n nodes: node.children,\n })\n ).join('')\n\n if ('listType' in parent && parent?.listType === 'check') {\n const ReactDOMServer = (await import('react-dom/server')).default\n\n const JSX = (\n <li\n aria-checked={node.checked ? true : false}\n className={`checkboxItem ${node.checked ? 'checkboxItem--checked' : 'checkboxItem--unchecked'}${\n hasSubLists ? ' checkboxItem--nested' : ''\n }`}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"checkbox\"\n tabIndex={-1}\n value={node.value}\n >\n {hasSubLists ? (\n // When sublists exist, just render them safely as HTML\n <div dangerouslySetInnerHTML={{ __html: children }} />\n ) : (\n // Otherwise, show our custom styled checkbox\n <div className=\"checkboxItem__wrapper\">\n <div\n className=\"checkboxItem__icon\"\n data-checked={node.checked}\n data-enable-match=\"true\"\n >\n {node.checked && <CheckIcon />}\n </div>\n <span className=\"checkboxItem__label\">{children}</span>\n </div>\n )}\n </li>\n )\n\n const html = ReactDOMServer.renderToStaticMarkup(JSX)\n\n // Add style=\"list-style-type: none;${providedCSSString}\" to html\n const styleIndex = html.indexOf('class=\"list-item-checkbox')\n const classIndex = html.indexOf('class=\"list-item-checkbox', styleIndex)\n const classEndIndex = html.indexOf('\"', classIndex + 6)\n const className = html.substring(classIndex, classEndIndex)\n const classNameWithStyle = `${className} style=\"list-style-type: none;${providedCSSString}\"`\n const htmlWithStyle = html.replace(className, classNameWithStyle)\n\n return htmlWithStyle\n } else {\n return `<li\n class=\"${hasSubLists ? 'nestedListItem' : ''}\"\n style=\"${hasSubLists ? `list-style-type: none;${providedCSSString}` : providedCSSString}\"\n value=\"${escapeHTML(String(node.value))}\"\n data-enable-match=\"true\"\n >${children}</li>`\n }\n },\n}\n"],"mappings":";AAAA,SAASA,SAAS,QAAQ;AAC1B,OAAOC,UAAA,MAAgB;AAOvB,OAAO,MAAMC,8BAAA,GAA8E;EACzFC,QAAA,EAAU,MAAAA,CAAO;IAAEC,IAAI;IAAEC,WAAW;IAAEC,MAAM;IAAEC;EAAiB,CAAE;IAC/D,MAAMC,WAAA,GAAcJ,IAAA,CAAKK,QAAQ,CAACC,IAAI,CAAEC,KAAA,IAAUA,KAAA,CAAMC,IAAI,KAAK;IAEjE,MAAMH,QAAA,GAAW,CACf,MAAMJ,WAAA,CAAY;MAChBQ,KAAA,EAAOT,IAAA,CAAKK;IACd,EAAC,EACDK,IAAI,CAAC;IAEP,IAAI,cAAcR,MAAA,IAAUA,MAAA,EAAQS,QAAA,KAAa,SAAS;MACxD,MAAMC,cAAA,GAAiB,CAAC,MAAM,MAAM,CAAC,mBAAkB,EAAGC,OAAO;MAEjE,MAAMC,GAAA,gBACJC,IAAA,CAAC;QACC,gBAAcf,IAAA,CAAKgB,OAAO,GAAG,OAAO;QACpCC,SAAA,EAAW,gBAAgBjB,IAAA,CAAKgB,OAAO,GAAG,0BAA0B,4BAClEZ,WAAA,GAAc,0BAA0B,IACxC;QACF;QACAc,IAAA,EAAK;QACLC,QAAA,EAAU,CAAC;QACXC,KAAA,EAAOpB,IAAA,CAAKoB,KAAK;kBAEhBhB,WAAA;QACC;;QACAW,IAAA,CAAC;UAAIM,uBAAA,EAAyB;YAAEC,MAAA,EAAQjB;UAAS;;QAEjD;;QACAkB,KAAA,CAAC;UAAIN,SAAA,EAAU;kCACbF,IAAA,CAAC;YACCE,SAAA,EAAU;YACV,gBAAcjB,IAAA,CAAKgB,OAAO;YAC1B,qBAAkB;sBAEjBhB,IAAA,CAAKgB,OAAO,iBAAID,IAAA,CAACnB,SAAA;2BAEpBmB,IAAA,CAAC;YAAKE,SAAA,EAAU;sBAAuBZ;;;;MAM/C,MAAMmB,IAAA,GAAOZ,cAAA,CAAea,oBAAoB,CAACX,GAAA;MAEjD;MACA,MAAMY,UAAA,GAAaF,IAAA,CAAKG,OAAO,CAAC;MAChC,MAAMC,UAAA,GAAaJ,IAAA,CAAKG,OAAO,CAAC,6BAA6BD,UAAA;MAC7D,MAAMG,aAAA,GAAgBL,IAAA,CAAKG,OAAO,CAAC,KAAKC,UAAA,GAAa;MACrD,MAAMX,SAAA,GAAYO,IAAA,CAAKM,SAAS,CAACF,UAAA,EAAYC,aAAA;MAC7C,MAAME,kBAAA,GAAqB,GAAGd,SAAA,iCAA0Cd,iBAAA,GAAoB;MAC5F,MAAM6B,aAAA,GAAgBR,IAAA,CAAKS,OAAO,CAAChB,SAAA,EAAWc,kBAAA;MAE9C,OAAOC,aAAA;IACT,OAAO;MACL,OAAO;mBACM5B,WAAA,GAAc,mBAAmB;mBACjCA,WAAA,GAAc,yBAAyBD,iBAAA,EAAmB,GAAGA,iBAAA;mBAC7DN,UAAA,CAAWqC,MAAA,CAAOlC,IAAA,CAAKoB,KAAK;;WAEpCf,QAAA,OAAe;IACtB;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["CheckIcon","escapeHTML","ListItemDiffHTMLConverterAsync","listitem","node","nodesToHTML","parent","providedCSSString","hasSubLists","children","some","child","type","nodes","join","listType","ReactDOMServer","default","JSX","_jsx","checked","className","role","tabIndex","value","dangerouslySetInnerHTML","__html","_jsxs","html","renderToStaticMarkup","styleIndex","indexOf","classIndex","classEndIndex","substring","classNameWithStyle","htmlWithStyle","replace","String"],"sources":["../../../../../src/field/Diff/converters/listitem/index.tsx"],"sourcesContent":["import { CheckIcon } from '@payloadcms/ui/rsc'\nimport escapeHTML from 'escape-html'\n\nimport type { HTMLConvertersAsync } from '../../../../features/converters/lexicalToHtml/async/types.js'\nimport type { SerializedListItemNode } from '../../../../types/nodeTypes.js'\n\nimport './index.css'\n\nexport const ListItemDiffHTMLConverterAsync: HTMLConvertersAsync<SerializedListItemNode> = {\n listitem: async ({ node, nodesToHTML, parent, providedCSSString }) => {\n const hasSubLists = node.children.some((child) => child.type === 'list')\n\n const children = (\n await nodesToHTML({\n nodes: node.children,\n })\n ).join('')\n\n if ('listType' in parent && parent?.listType === 'check') {\n const ReactDOMServer = (await import('react-dom/server')).default\n\n const JSX = (\n <li\n aria-checked={node.checked ? true : false}\n className={`checkboxItem ${node.checked ? 'checkboxItem--checked' : 'checkboxItem--unchecked'}${\n hasSubLists ? ' checkboxItem--nested' : ''\n }`}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"checkbox\"\n tabIndex={-1}\n value={node.value}\n >\n {hasSubLists ? (\n // When sublists exist, just render them safely as HTML\n <div dangerouslySetInnerHTML={{ __html: children }} />\n ) : (\n // Otherwise, show our custom styled checkbox\n <div className=\"checkboxItem__wrapper\">\n <div\n className=\"checkboxItem__icon\"\n data-checked={node.checked}\n data-enable-match=\"true\"\n >\n {node.checked && <CheckIcon />}\n </div>\n <span className=\"checkboxItem__label\">{children}</span>\n </div>\n )}\n </li>\n )\n\n const html = ReactDOMServer.renderToStaticMarkup(JSX)\n\n // Add style=\"list-style-type: none;${providedCSSString}\" to html\n const styleIndex = html.indexOf('class=\"list-item-checkbox')\n const classIndex = html.indexOf('class=\"list-item-checkbox', styleIndex)\n const classEndIndex = html.indexOf('\"', classIndex + 6)\n const className = html.substring(classIndex, classEndIndex)\n const classNameWithStyle = `${className} style=\"list-style-type: none;${providedCSSString}\"`\n const htmlWithStyle = html.replace(className, classNameWithStyle)\n\n return htmlWithStyle\n } else {\n return `<li\n class=\"${hasSubLists ? 'nestedListItem' : ''}\"\n style=\"${hasSubLists ? `list-style-type: none;${providedCSSString}` : providedCSSString}\"\n value=\"${escapeHTML(String(node.value))}\"\n data-enable-match=\"true\"\n >${children}</li>`\n }\n },\n}\n"],"mappings":";AAAA,SAASA,SAAS,QAAQ;AAC1B,OAAOC,UAAA,MAAgB;AAKvB,OAAO;AAEP,OAAO,MAAMC,8BAAA,GAA8E;EACzFC,QAAA,EAAU,MAAAA,CAAO;IAAEC,IAAI;IAAEC,WAAW;IAAEC,MAAM;IAAEC;EAAiB,CAAE;IAC/D,MAAMC,WAAA,GAAcJ,IAAA,CAAKK,QAAQ,CAACC,IAAI,CAAEC,KAAA,IAAUA,KAAA,CAAMC,IAAI,KAAK;IAEjE,MAAMH,QAAA,GAAW,CACf,MAAMJ,WAAA,CAAY;MAChBQ,KAAA,EAAOT,IAAA,CAAKK;IACd,EAAC,EACDK,IAAI,CAAC;IAEP,IAAI,cAAcR,MAAA,IAAUA,MAAA,EAAQS,QAAA,KAAa,SAAS;MACxD,MAAMC,cAAA,GAAiB,CAAC,MAAM,MAAM,CAAC,mBAAkB,EAAGC,OAAO;MAEjE,MAAMC,GAAA,gBACJC,IAAA,CAAC;QACC,gBAAcf,IAAA,CAAKgB,OAAO,GAAG,OAAO;QACpCC,SAAA,EAAW,gBAAgBjB,IAAA,CAAKgB,OAAO,GAAG,0BAA0B,4BAClEZ,WAAA,GAAc,0BAA0B,IACxC;QACF;QACAc,IAAA,EAAK;QACLC,QAAA,EAAU,CAAC;QACXC,KAAA,EAAOpB,IAAA,CAAKoB,KAAK;kBAEhBhB,WAAA;QACC;;QACAW,IAAA,CAAC;UAAIM,uBAAA,EAAyB;YAAEC,MAAA,EAAQjB;UAAS;;QAEjD;;QACAkB,KAAA,CAAC;UAAIN,SAAA,EAAU;kCACbF,IAAA,CAAC;YACCE,SAAA,EAAU;YACV,gBAAcjB,IAAA,CAAKgB,OAAO;YAC1B,qBAAkB;sBAEjBhB,IAAA,CAAKgB,OAAO,iBAAID,IAAA,CAACnB,SAAA;2BAEpBmB,IAAA,CAAC;YAAKE,SAAA,EAAU;sBAAuBZ;;;;MAM/C,MAAMmB,IAAA,GAAOZ,cAAA,CAAea,oBAAoB,CAACX,GAAA;MAEjD;MACA,MAAMY,UAAA,GAAaF,IAAA,CAAKG,OAAO,CAAC;MAChC,MAAMC,UAAA,GAAaJ,IAAA,CAAKG,OAAO,CAAC,6BAA6BD,UAAA;MAC7D,MAAMG,aAAA,GAAgBL,IAAA,CAAKG,OAAO,CAAC,KAAKC,UAAA,GAAa;MACrD,MAAMX,SAAA,GAAYO,IAAA,CAAKM,SAAS,CAACF,UAAA,EAAYC,aAAA;MAC7C,MAAME,kBAAA,GAAqB,GAAGd,SAAA,iCAA0Cd,iBAAA,GAAoB;MAC5F,MAAM6B,aAAA,GAAgBR,IAAA,CAAKS,OAAO,CAAChB,SAAA,EAAWc,kBAAA;MAE9C,OAAOC,aAAA;IACT,OAAO;MACL,OAAO;mBACM5B,WAAA,GAAc,mBAAmB;mBACjCA,WAAA,GAAc,yBAAyBD,iBAAA,EAAmB,GAAGA,iBAAA;mBAC7DN,UAAA,CAAWqC,MAAA,CAAOlC,IAAA,CAAKoB,KAAK;;WAEpCf,QAAA,OAAe;IACtB;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,107 @@
1
+ @layer payload-default {
2
+ .lexical-diff .lexical-relationship-diff {
3
+ max-width: fit-content;
4
+ display: inline-flex;
5
+ align-items: center;
6
+ background-color: var(--color-bg-brand-tertiary);
7
+ outline: var(--stroke-width-small) solid var(--color-border-brand);
8
+ outline-offset: calc(var(--stroke-width-small) * -1);
9
+ border-radius: var(--radius-medium);
10
+ position: relative;
11
+ z-index: 2;
12
+ font-size: var(--text-body-medium-font-size);
13
+ font-weight: var(--text-body-medium-font-weight);
14
+ line-height: var(--text-body-medium-line-height);
15
+ margin-block: var(--spacer-2);
16
+ padding: var(--spacer-1);
17
+
18
+ &[data-match-type='create'] {
19
+ background-color: var(--diff-create-parent-bg);
20
+ outline-color: var(--diff-create-pill-border);
21
+
22
+ .lexical-relationship-diff__pill {
23
+ background-color: var(--color-bg-brand);
24
+ color: var(--color-text-onbrand);
25
+ }
26
+
27
+ .lexical-relationship-diff__info {
28
+ color: var(--diff-create-parent-color);
29
+ }
30
+ }
31
+
32
+ &[data-match-type='delete'] {
33
+ background-color: var(--diff-delete-parent-bg);
34
+ outline-color: var(--diff-delete-pill-border);
35
+ text-decoration-line: none;
36
+
37
+ .lexical-relationship-diff__pill {
38
+ background-color: var(--color-bg-danger);
39
+ color: var(--color-text-oncomponent);
40
+
41
+ * {
42
+ text-decoration-line: none;
43
+ color: var(--color-text-oncomponent);
44
+ background-color: transparent;
45
+ }
46
+ }
47
+
48
+ .lexical-relationship-diff__info {
49
+ color: var(--color-text-danger);
50
+ text-decoration-line: line-through;
51
+ }
52
+ }
53
+ }
54
+
55
+ /* Override HTMLDiff generic [data-match-type] styles - specificity must beat 0,4,1 from HTMLDiff */
56
+ .html-diff
57
+ .lexical-relationship-diff.lexical-relationship-diff[data-enable-match='true'][data-match-type='create'],
58
+ .html-diff
59
+ .lexical-relationship-diff.lexical-relationship-diff[data-enable-match='true'][data-match-type='delete'] {
60
+ border-radius: var(--radius-medium);
61
+ padding: var(--spacer-1);
62
+ text-decoration-line: none;
63
+ }
64
+
65
+ .html-diff
66
+ .lexical-relationship-diff.lexical-relationship-diff[data-enable-match='true'][data-match-type='create'] {
67
+ background-color: var(--diff-create-parent-bg);
68
+ outline-color: var(--diff-create-pill-border);
69
+ color: var(--diff-create-parent-color);
70
+ }
71
+
72
+ .html-diff
73
+ .lexical-relationship-diff.lexical-relationship-diff[data-enable-match='true'][data-match-type='delete'] {
74
+ background-color: var(--diff-delete-parent-bg);
75
+ outline-color: var(--diff-delete-pill-border);
76
+ }
77
+
78
+ .lexical-diff .lexical-relationship-diff__pill {
79
+ display: inline-flex;
80
+ align-items: center;
81
+ border-radius: var(--radius-medium);
82
+ padding-inline: var(--spacer-1);
83
+ background-color: var(--color-bg-brand);
84
+ color: var(--color-text-onbrand);
85
+ white-space: nowrap;
86
+ flex-shrink: 0;
87
+ }
88
+
89
+ .lexical-diff .lexical-relationship-diff__info {
90
+ padding-inline: var(--spacer-1);
91
+ font-weight: var(--text-body-medium-font-weight);
92
+ color: var(--color-text-brand);
93
+ white-space: nowrap;
94
+ overflow: hidden;
95
+ text-overflow: ellipsis;
96
+ }
97
+
98
+ @media (max-width: 768px) {
99
+ .lexical-diff .html-diff .lexical-relationship-diff {
100
+ max-width: unset;
101
+ display: flex;
102
+ border-radius: 0;
103
+ outline: none;
104
+ margin: 0;
105
+ }
106
+ }
107
+ }
@@ -1,8 +1,8 @@
1
1
  import type { PayloadRequest } from 'payload';
2
2
  import { type I18nClient } from '@payloadcms/translations';
3
- import './index.scss';
3
+ import './index.css';
4
4
  import type { HTMLConvertersAsync } from '../../../../features/converters/lexicalToHtml/async/types.js';
5
- import type { SerializedRelationshipNode } from '../../../../nodeTypes.js';
5
+ import type { SerializedRelationshipNode } from '../../../../types/nodeTypes.js';
6
6
  export declare const RelationshipDiffHTMLConverterAsync: (args: {
7
7
  i18n: I18nClient;
8
8
  req: PayloadRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/field/Diff/converters/relationship/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,cAAc,EAAc,MAAM,SAAS,CAAA;AAEnE,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1E,OAAO,cAAc,CAAA;AAIrB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AACvG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAA;AAI1E,eAAO,MAAM,kCAAkC,EAAE,CAAC,IAAI,EAAE;IACtD,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAK,mBAAmB,CAAC,0BAA0B,CAsEnD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/field/Diff/converters/relationship/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,cAAc,EAAc,MAAM,SAAS,CAAA;AAEnE,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1E,OAAO,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AACvG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAIhF,eAAO,MAAM,kCAAkC,EAAE,CAAC,IAAI,EAAE;IACtD,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,EAAE,cAAc,CAAA;CACpB,KAAK,mBAAmB,CAAC,0BAA0B,CAoDnD,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getTranslation } from '@payloadcms/translations';
3
- import { formatAdminURL } from 'payload/shared';
3
+ import './index.css';
4
4
  const baseClass = 'lexical-relationship-diff';
5
5
  export const RelationshipDiffHTMLConverterAsync = ({
6
6
  i18n,
@@ -28,37 +28,20 @@ export const RelationshipDiffHTMLConverterAsync = ({
28
28
  }
29
29
  const relatedCollection = req.payload.collections[node.relationTo]?.config;
30
30
  const ReactDOMServer = (await import('react-dom/server')).default;
31
- const JSX = /*#__PURE__*/_jsx("div", {
31
+ const JSX = /*#__PURE__*/_jsxs("div", {
32
32
  className: `${baseClass}${providedCSSString}`,
33
33
  "data-enable-match": "true",
34
34
  "data-id": id,
35
35
  "data-slug": node.relationTo,
36
- children: /*#__PURE__*/_jsxs("div", {
37
- className: `${baseClass}__card`,
38
- children: [/*#__PURE__*/_jsx("div", {
39
- className: `${baseClass}__collectionLabel`,
40
- children: i18n.t('fields:labelRelationship', {
41
- label: relatedCollection?.labels?.singular ? getTranslation(relatedCollection?.labels?.singular, i18n) : relatedCollection?.slug
42
- })
43
- }), data && relatedCollection?.admin?.useAsTitle && data[relatedCollection.admin.useAsTitle] ? /*#__PURE__*/_jsx("strong", {
44
- className: `${baseClass}__title`,
45
- "data-enable-match": "false",
46
- children: /*#__PURE__*/_jsx("a", {
47
- className: `${baseClass}__link`,
48
- "data-enable-match": "false",
49
- href: formatAdminURL({
50
- adminRoute: req.payload.config.routes.admin,
51
- path: `/collections/${relatedCollection?.slug}/${data.id}`,
52
- serverURL: req.payload.config.serverURL
53
- }),
54
- rel: "noopener noreferrer",
55
- target: "_blank",
56
- children: data[relatedCollection.admin.useAsTitle]
57
- })
58
- }) : /*#__PURE__*/_jsx("strong", {
59
- children: id
60
- })]
61
- })
36
+ children: [relatedCollection?.labels?.singular && /*#__PURE__*/_jsx("span", {
37
+ className: `${baseClass}__pill`,
38
+ "data-enable-match": "false",
39
+ children: getTranslation(relatedCollection.labels.singular, i18n)
40
+ }), /*#__PURE__*/_jsx("strong", {
41
+ className: `${baseClass}__info`,
42
+ "data-enable-match": "false",
43
+ children: data && relatedCollection?.admin?.useAsTitle && data[relatedCollection.admin.useAsTitle] ? data[relatedCollection.admin.useAsTitle] : id
44
+ })]
62
45
  });
63
46
  // Render to HTML
64
47
  const html = ReactDOMServer.renderToStaticMarkup(JSX);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["getTranslation","formatAdminURL","baseClass","RelationshipDiffHTMLConverterAsync","i18n","req","relationship","node","populate","providedCSSString","data","undefined","id","value","collectionSlug","relationTo","relatedCollection","payload","collections","config","ReactDOMServer","default","JSX","_jsx","className","_jsxs","t","label","labels","singular","slug","admin","useAsTitle","href","adminRoute","routes","path","serverURL","rel","target","html","renderToStaticMarkup"],"sources":["../../../../../src/field/Diff/converters/relationship/index.tsx"],"sourcesContent":["import type { FileData, PayloadRequest, TypeWithID } from 'payload'\n\nimport { getTranslation, type I18nClient } from '@payloadcms/translations'\n\nimport './index.scss'\n\nimport { formatAdminURL } from 'payload/shared'\n\nimport type { HTMLConvertersAsync } from '../../../../features/converters/lexicalToHtml/async/types.js'\nimport type { SerializedRelationshipNode } from '../../../../nodeTypes.js'\n\nconst baseClass = 'lexical-relationship-diff'\n\nexport const RelationshipDiffHTMLConverterAsync: (args: {\n i18n: I18nClient\n req: PayloadRequest\n}) => HTMLConvertersAsync<SerializedRelationshipNode> = ({ i18n, req }) => {\n return {\n relationship: async ({ node, populate, providedCSSString }) => {\n let data: (Record<string, any> & TypeWithID) | undefined = undefined\n\n const id = typeof node.value === 'object' ? node.value.id : node.value\n\n // If there's no valid upload data, populate return an empty string\n if (typeof node.value !== 'object') {\n if (!populate) {\n return ''\n }\n data = await populate<FileData & TypeWithID>({\n id,\n collectionSlug: node.relationTo,\n })\n } else {\n data = node.value as unknown as FileData & TypeWithID\n }\n\n const relatedCollection = req.payload.collections[node.relationTo]?.config\n\n const ReactDOMServer = (await import('react-dom/server')).default\n\n const JSX = (\n <div\n className={`${baseClass}${providedCSSString}`}\n data-enable-match=\"true\"\n data-id={id}\n data-slug={node.relationTo}\n >\n <div className={`${baseClass}__card`}>\n <div className={`${baseClass}__collectionLabel`}>\n {i18n.t('fields:labelRelationship', {\n label: relatedCollection?.labels?.singular\n ? getTranslation(relatedCollection?.labels?.singular, i18n)\n : relatedCollection?.slug,\n })}\n </div>\n {data &&\n relatedCollection?.admin?.useAsTitle &&\n data[relatedCollection.admin.useAsTitle] ? (\n <strong className={`${baseClass}__title`} data-enable-match=\"false\">\n <a\n className={`${baseClass}__link`}\n data-enable-match=\"false\"\n href={formatAdminURL({\n adminRoute: req.payload.config.routes.admin,\n path: `/collections/${relatedCollection?.slug}/${data.id}`,\n serverURL: req.payload.config.serverURL,\n })}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n {data[relatedCollection.admin.useAsTitle]}\n </a>\n </strong>\n ) : (\n <strong>{id as string}</strong>\n )}\n </div>\n </div>\n )\n\n // Render to HTML\n const html = ReactDOMServer.renderToStaticMarkup(JSX)\n\n return html\n },\n }\n}\n"],"mappings":";AAEA,SAASA,cAAc,QAAyB;AAIhD,SAASC,cAAc,QAAQ;AAK/B,MAAMC,SAAA,GAAY;AAElB,OAAO,MAAMC,kCAAA,GAG2CA,CAAC;EAAEC,IAAI;EAAEC;AAAG,CAAE;EACpE,OAAO;IACLC,YAAA,EAAc,MAAAA,CAAO;MAAEC,IAAI;MAAEC,QAAQ;MAAEC;IAAiB,CAAE;MACxD,IAAIC,IAAA,GAAuDC,SAAA;MAE3D,MAAMC,EAAA,GAAK,OAAOL,IAAA,CAAKM,KAAK,KAAK,WAAWN,IAAA,CAAKM,KAAK,CAACD,EAAE,GAAGL,IAAA,CAAKM,KAAK;MAEtE;MACA,IAAI,OAAON,IAAA,CAAKM,KAAK,KAAK,UAAU;QAClC,IAAI,CAACL,QAAA,EAAU;UACb,OAAO;QACT;QACAE,IAAA,GAAO,MAAMF,QAAA,CAAgC;UAC3CI,EAAA;UACAE,cAAA,EAAgBP,IAAA,CAAKQ;QACvB;MACF,OAAO;QACLL,IAAA,GAAOH,IAAA,CAAKM,KAAK;MACnB;MAEA,MAAMG,iBAAA,GAAoBX,GAAA,CAAIY,OAAO,CAACC,WAAW,CAACX,IAAA,CAAKQ,UAAU,CAAC,EAAEI,MAAA;MAEpE,MAAMC,cAAA,GAAiB,CAAC,MAAM,MAAM,CAAC,mBAAkB,EAAGC,OAAO;MAEjE,MAAMC,GAAA,gBACJC,IAAA,CAAC;QACCC,SAAA,EAAW,GAAGtB,SAAA,GAAYO,iBAAA,EAAmB;QAC7C,qBAAkB;QAClB,WAASG,EAAA;QACT,aAAWL,IAAA,CAAKQ,UAAU;kBAE1B,aAAAU,KAAA,CAAC;UAAID,SAAA,EAAW,GAAGtB,SAAA,QAAiB;kCAClCqB,IAAA,CAAC;YAAIC,SAAA,EAAW,GAAGtB,SAAA,mBAA4B;sBAC5CE,IAAA,CAAKsB,CAAC,CAAC,4BAA4B;cAClCC,KAAA,EAAOX,iBAAA,EAAmBY,MAAA,EAAQC,QAAA,GAC9B7B,cAAA,CAAegB,iBAAA,EAAmBY,MAAA,EAAQC,QAAA,EAAUzB,IAAA,IACpDY,iBAAA,EAAmBc;YACzB;cAEDpB,IAAA,IACDM,iBAAA,EAAmBe,KAAA,EAAOC,UAAA,IAC1BtB,IAAI,CAACM,iBAAA,CAAkBe,KAAK,CAACC,UAAU,CAAC,gBACtCT,IAAA,CAAC;YAAOC,SAAA,EAAW,GAAGtB,SAAA,SAAkB;YAAE,qBAAkB;sBAC1D,aAAAqB,IAAA,CAAC;cACCC,SAAA,EAAW,GAAGtB,SAAA,QAAiB;cAC/B,qBAAkB;cAClB+B,IAAA,EAAMhC,cAAA,CAAe;gBACnBiC,UAAA,EAAY7B,GAAA,CAAIY,OAAO,CAACE,MAAM,CAACgB,MAAM,CAACJ,KAAK;gBAC3CK,IAAA,EAAM,gBAAgBpB,iBAAA,EAAmBc,IAAA,IAAQpB,IAAA,CAAKE,EAAE,EAAE;gBAC1DyB,SAAA,EAAWhC,GAAA,CAAIY,OAAO,CAACE,MAAM,CAACkB;cAChC;cACAC,GAAA,EAAI;cACJC,MAAA,EAAO;wBAEN7B,IAAI,CAACM,iBAAA,CAAkBe,KAAK,CAACC,UAAU;;4BAI5CT,IAAA,CAAC;sBAAQX;;;;MAMjB;MACA,MAAM4B,IAAA,GAAOpB,cAAA,CAAeqB,oBAAoB,CAACnB,GAAA;MAEjD,OAAOkB,IAAA;IACT;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["getTranslation","baseClass","RelationshipDiffHTMLConverterAsync","i18n","req","relationship","node","populate","providedCSSString","data","undefined","id","value","collectionSlug","relationTo","relatedCollection","payload","collections","config","ReactDOMServer","default","JSX","_jsxs","className","labels","singular","_jsx","admin","useAsTitle","html","renderToStaticMarkup"],"sources":["../../../../../src/field/Diff/converters/relationship/index.tsx"],"sourcesContent":["import type { FileData, PayloadRequest, TypeWithID } from 'payload'\n\nimport { getTranslation, type I18nClient } from '@payloadcms/translations'\n\nimport './index.css'\n\nimport type { HTMLConvertersAsync } from '../../../../features/converters/lexicalToHtml/async/types.js'\nimport type { SerializedRelationshipNode } from '../../../../types/nodeTypes.js'\n\nconst baseClass = 'lexical-relationship-diff'\n\nexport const RelationshipDiffHTMLConverterAsync: (args: {\n i18n: I18nClient\n req: PayloadRequest\n}) => HTMLConvertersAsync<SerializedRelationshipNode> = ({ i18n, req }) => {\n return {\n relationship: async ({ node, populate, providedCSSString }) => {\n let data: (Record<string, any> & TypeWithID) | undefined = undefined\n\n const id = typeof node.value === 'object' ? node.value.id : node.value\n\n // If there's no valid upload data, populate return an empty string\n if (typeof node.value !== 'object') {\n if (!populate) {\n return ''\n }\n data = await populate<FileData & TypeWithID>({\n id,\n collectionSlug: node.relationTo,\n })\n } else {\n data = node.value as unknown as FileData & TypeWithID\n }\n\n const relatedCollection = req.payload.collections[node.relationTo]?.config\n\n const ReactDOMServer = (await import('react-dom/server')).default\n\n const JSX = (\n <div\n className={`${baseClass}${providedCSSString}`}\n data-enable-match=\"true\"\n data-id={id}\n data-slug={node.relationTo}\n >\n {relatedCollection?.labels?.singular && (\n <span className={`${baseClass}__pill`} data-enable-match=\"false\">\n {getTranslation(relatedCollection.labels.singular, i18n)}\n </span>\n )}\n <strong className={`${baseClass}__info`} data-enable-match=\"false\">\n {data &&\n relatedCollection?.admin?.useAsTitle &&\n data[relatedCollection.admin.useAsTitle]\n ? data[relatedCollection.admin.useAsTitle]\n : (id as string)}\n </strong>\n </div>\n )\n\n // Render to HTML\n const html = ReactDOMServer.renderToStaticMarkup(JSX)\n\n return html\n },\n }\n}\n"],"mappings":";AAEA,SAASA,cAAc,QAAyB;AAEhD,OAAO;AAKP,MAAMC,SAAA,GAAY;AAElB,OAAO,MAAMC,kCAAA,GAG2CA,CAAC;EAAEC,IAAI;EAAEC;AAAG,CAAE;EACpE,OAAO;IACLC,YAAA,EAAc,MAAAA,CAAO;MAAEC,IAAI;MAAEC,QAAQ;MAAEC;IAAiB,CAAE;MACxD,IAAIC,IAAA,GAAuDC,SAAA;MAE3D,MAAMC,EAAA,GAAK,OAAOL,IAAA,CAAKM,KAAK,KAAK,WAAWN,IAAA,CAAKM,KAAK,CAACD,EAAE,GAAGL,IAAA,CAAKM,KAAK;MAEtE;MACA,IAAI,OAAON,IAAA,CAAKM,KAAK,KAAK,UAAU;QAClC,IAAI,CAACL,QAAA,EAAU;UACb,OAAO;QACT;QACAE,IAAA,GAAO,MAAMF,QAAA,CAAgC;UAC3CI,EAAA;UACAE,cAAA,EAAgBP,IAAA,CAAKQ;QACvB;MACF,OAAO;QACLL,IAAA,GAAOH,IAAA,CAAKM,KAAK;MACnB;MAEA,MAAMG,iBAAA,GAAoBX,GAAA,CAAIY,OAAO,CAACC,WAAW,CAACX,IAAA,CAAKQ,UAAU,CAAC,EAAEI,MAAA;MAEpE,MAAMC,cAAA,GAAiB,CAAC,MAAM,MAAM,CAAC,mBAAkB,EAAGC,OAAO;MAEjE,MAAMC,GAAA,gBACJC,KAAA,CAAC;QACCC,SAAA,EAAW,GAAGtB,SAAA,GAAYO,iBAAA,EAAmB;QAC7C,qBAAkB;QAClB,WAASG,EAAA;QACT,aAAWL,IAAA,CAAKQ,UAAU;mBAEzBC,iBAAA,EAAmBS,MAAA,EAAQC,QAAA,iBAC1BC,IAAA,CAAC;UAAKH,SAAA,EAAW,GAAGtB,SAAA,QAAiB;UAAE,qBAAkB;oBACtDD,cAAA,CAAee,iBAAA,CAAkBS,MAAM,CAACC,QAAQ,EAAEtB,IAAA;yBAGvDuB,IAAA,CAAC;UAAOH,SAAA,EAAW,GAAGtB,SAAA,QAAiB;UAAE,qBAAkB;oBACxDQ,IAAA,IACDM,iBAAA,EAAmBY,KAAA,EAAOC,UAAA,IAC1BnB,IAAI,CAACM,iBAAA,CAAkBY,KAAK,CAACC,UAAU,CAAC,GACpCnB,IAAI,CAACM,iBAAA,CAAkBY,KAAK,CAACC,UAAU,CAAC,GACvCjB;;;MAKX;MACA,MAAMkB,IAAA,GAAOV,cAAA,CAAeW,oBAAoB,CAACT,GAAA;MAEjD,OAAOQ,IAAA;IACT;EACF;AACF","ignoreList":[]}