@payloadcms/richtext-lexical 4.0.0-internal.d28e9fb → 4.0.0-internal.dee5eab

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 (937) 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-QGSHF22S.js +2 -0
  7. package/dist/exports/client/Field-QGSHF22S.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/bundled.css +1 -1
  11. package/dist/exports/client/chunk-5VIL27GI.js +2 -0
  12. package/dist/exports/client/chunk-5VIL27GI.js.map +7 -0
  13. package/dist/exports/client/chunk-ESITTE3C.js +2 -0
  14. package/dist/exports/client/chunk-ESITTE3C.js.map +7 -0
  15. package/dist/exports/client/{chunk-BZZVLW4U.js → chunk-RJ5MAOKZ.js} +1 -1
  16. package/dist/exports/client/chunk-RJ5MAOKZ.js.map +7 -0
  17. package/dist/exports/client/chunk-UD4DQ4AK.js +2 -0
  18. package/dist/exports/client/chunk-UD4DQ4AK.js.map +7 -0
  19. package/dist/exports/client/chunk-WSAPGI3Z.js +2 -0
  20. package/dist/exports/client/chunk-WSAPGI3Z.js.map +7 -0
  21. package/dist/exports/client/chunk-X3D4LZS7.js +2 -0
  22. package/dist/exports/client/chunk-X3D4LZS7.js.map +7 -0
  23. package/dist/exports/client/component-PHZQBOJE.js +2 -0
  24. package/dist/exports/client/component-PHZQBOJE.js.map +7 -0
  25. package/dist/exports/client/componentInline-H24N7GUG.js +2 -0
  26. package/dist/exports/client/index.d.ts +0 -1
  27. package/dist/exports/client/index.d.ts.map +1 -1
  28. package/dist/exports/client/index.js +27 -28
  29. package/dist/exports/client/index.js.map +4 -4
  30. package/dist/exports/react/index.d.ts +1 -1
  31. package/dist/exports/react/index.d.ts.map +1 -1
  32. package/dist/exports/react/index.js.map +1 -1
  33. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
  34. package/dist/features/align/client/toolbarAlignGroup.js +1 -0
  35. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -1
  36. package/dist/features/blockquote/client/index.js +2 -2
  37. package/dist/features/blockquote/client/index.js.map +1 -1
  38. package/dist/features/blockquote/server/index.d.ts +1 -4
  39. package/dist/features/blockquote/server/index.d.ts.map +1 -1
  40. package/dist/features/blockquote/server/index.js +4 -41
  41. package/dist/features/blockquote/server/index.js.map +1 -1
  42. package/dist/features/blockquote/server/schema.d.ts +8 -0
  43. package/dist/features/blockquote/server/schema.d.ts.map +1 -0
  44. package/dist/features/blockquote/server/schema.js +15 -0
  45. package/dist/features/blockquote/server/schema.js.map +1 -0
  46. package/dist/features/blocks/client/component/BlockContent.d.ts +10 -0
  47. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -1
  48. package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
  49. package/dist/features/blocks/client/component/index.css +178 -0
  50. package/dist/features/blocks/client/component/index.d.ts +4 -3
  51. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  52. package/dist/features/blocks/client/component/index.js +89 -24
  53. package/dist/features/blocks/client/component/index.js.map +1 -1
  54. package/dist/features/blocks/client/componentInline/index.css +85 -0
  55. package/dist/features/blocks/client/componentInline/index.d.ts +4 -3
  56. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  57. package/dist/features/blocks/client/componentInline/index.js +33 -12
  58. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  59. package/dist/features/blocks/client/getBlockImageComponent.d.ts +1 -1
  60. package/dist/features/blocks/client/index.d.ts.map +1 -1
  61. package/dist/features/blocks/client/index.js +4 -4
  62. package/dist/features/blocks/client/index.js.map +1 -1
  63. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +1 -1
  64. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -1
  65. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +1 -1
  66. package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -1
  67. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +1 -1
  68. package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -1
  69. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +5 -2
  70. package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -1
  71. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +1 -2
  72. package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -1
  73. package/dist/features/blocks/client/markdown/markdownTransformer.js +4 -4
  74. package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
  75. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +2 -2
  76. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
  77. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
  78. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +2 -2
  79. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
  80. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
  81. package/dist/features/blocks/client/plugin/index.d.ts +1 -1
  82. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -1
  83. package/dist/features/blocks/client/plugin/index.js.map +1 -1
  84. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +1 -1
  85. package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -1
  86. package/dist/features/blocks/premade/CodeBlock/Component/Block.js +4 -0
  87. package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
  88. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.css +26 -0
  89. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +1 -1
  90. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -1
  91. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +4 -1
  92. package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
  93. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.css +38 -0
  94. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +1 -1
  95. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -1
  96. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +7 -8
  97. package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
  98. package/dist/features/blocks/premade/CodeBlock/Component/index.css +171 -0
  99. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +1 -2
  100. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -1
  101. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
  102. package/dist/features/blocks/server/index.d.ts +1 -0
  103. package/dist/features/blocks/server/index.d.ts.map +1 -1
  104. package/dist/features/blocks/server/index.js +24 -72
  105. package/dist/features/blocks/server/index.js.map +1 -1
  106. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +1 -1
  107. package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -1
  108. package/dist/features/blocks/server/markdown/markdownTransformer.js +4 -4
  109. package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
  110. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +1 -18
  111. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -1
  112. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
  113. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +2 -10
  114. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -1
  115. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
  116. package/dist/features/blocks/server/schema.d.ts +45 -0
  117. package/dist/features/blocks/server/schema.d.ts.map +1 -0
  118. package/dist/features/blocks/server/schema.js +140 -0
  119. package/dist/features/blocks/server/schema.js.map +1 -0
  120. package/dist/features/blocks/server/validate.d.ts +1 -2
  121. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  122. package/dist/features/blocks/server/validate.js.map +1 -1
  123. package/dist/features/converters/htmlToLexical/index.d.ts +1 -1
  124. package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -1
  125. package/dist/features/converters/htmlToLexical/index.js.map +1 -1
  126. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +1 -1
  127. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -1
  128. package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -1
  129. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +1 -1
  130. package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -1
  131. package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -1
  132. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +1 -1
  133. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -1
  134. package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -1
  135. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +1 -1
  136. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -1
  137. package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -1
  138. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +1 -1
  139. package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -1
  140. package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -1
  141. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +1 -1
  142. package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -1
  143. package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -1
  144. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +1 -1
  145. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -1
  146. package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -1
  147. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +1 -1
  148. package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -1
  149. package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -1
  150. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +1 -1
  151. package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -1
  152. package/dist/features/converters/lexicalToHtml/async/converters/table.js +1 -1
  153. package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -1
  154. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +1 -1
  155. package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -1
  156. package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -1
  157. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +1 -1
  158. package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -1
  159. package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -1
  160. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +1 -1
  161. package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -1
  162. package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -1
  163. package/dist/features/converters/lexicalToHtml/async/types.d.ts +15 -16
  164. package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -1
  165. package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -1
  166. package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -1
  167. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +1 -1
  168. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -1
  169. package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -1
  170. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +1 -1
  171. package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -1
  172. package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -1
  173. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +1 -1
  174. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -1
  175. package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -1
  176. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +1 -1
  177. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -1
  178. package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -1
  179. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +1 -1
  180. package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -1
  181. package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -1
  182. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +1 -1
  183. package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -1
  184. package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -1
  185. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +1 -1
  186. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -1
  187. package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -1
  188. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +1 -1
  189. package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -1
  190. package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -1
  191. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +1 -1
  192. package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -1
  193. package/dist/features/converters/lexicalToHtml/sync/converters/table.js +1 -1
  194. package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -1
  195. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +1 -1
  196. package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -1
  197. package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -1
  198. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +1 -1
  199. package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -1
  200. package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -1
  201. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +1 -1
  202. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -1
  203. package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -1
  204. package/dist/features/converters/lexicalToHtml/sync/types.d.ts +15 -16
  205. package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -1
  206. package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -1
  207. package/dist/features/converters/lexicalToJSX/Component/index.d.ts +6 -4
  208. package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
  209. package/dist/features/converters/lexicalToJSX/Component/index.js +5 -4
  210. package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
  211. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +1 -1
  212. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -1
  213. package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
  214. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +1 -1
  215. package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -1
  216. package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
  217. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +1 -1
  218. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -1
  219. package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
  220. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +1 -1
  221. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -1
  222. package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
  223. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +1 -1
  224. package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -1
  225. package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
  226. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +1 -1
  227. package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -1
  228. package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
  229. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +1 -1
  230. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -1
  231. package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
  232. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +1 -1
  233. package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -1
  234. package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -1
  235. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +1 -1
  236. package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -1
  237. package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
  238. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +1 -1
  239. package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -1
  240. package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
  241. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +1 -1
  242. package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -1
  243. package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
  244. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +1 -1
  245. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -1
  246. package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -1
  247. package/dist/features/converters/lexicalToJSX/converter/index.d.ts +1 -1
  248. package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
  249. package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
  250. package/dist/features/converters/lexicalToJSX/converter/types.d.ts +13 -15
  251. package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
  252. package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
  253. package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -1
  254. package/dist/features/converters/lexicalToMarkdown/index.js +1 -1
  255. package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -1
  256. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -1
  257. package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -1
  258. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +13 -15
  259. package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -1
  260. package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -1
  261. package/dist/features/converters/markdownToLexical/index.d.ts +1 -1
  262. package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -1
  263. package/dist/features/converters/markdownToLexical/index.js +5 -2
  264. package/dist/features/converters/markdownToLexical/index.js.map +1 -1
  265. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +1 -1
  266. package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -1
  267. package/dist/features/debug/jsxConverter/client/plugin/index.js +1 -0
  268. package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
  269. package/dist/features/debug/jsxConverter/client/plugin/style.css +9 -0
  270. package/dist/features/debug/testRecorder/client/plugin/index.css +51 -0
  271. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +1 -1
  272. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -1
  273. package/dist/features/debug/testRecorder/client/plugin/index.js +1 -0
  274. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
  275. package/dist/features/debug/treeView/client/plugin/index.css +81 -0
  276. package/dist/features/debug/treeView/client/plugin/index.d.ts +1 -1
  277. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -1
  278. package/dist/features/debug/treeView/client/plugin/index.js +1 -0
  279. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
  280. package/dist/features/experimental_table/client/index.js +2 -2
  281. package/dist/features/experimental_table/client/index.js.map +1 -1
  282. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.css +91 -0
  283. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +1 -1
  284. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -1
  285. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +3 -2
  286. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
  287. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.css +11 -0
  288. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +1 -1
  289. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -1
  290. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +1 -0
  291. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  292. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +1 -1
  293. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  294. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.css +166 -0
  295. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts +17 -0
  296. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.d.ts.map +1 -0
  297. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js +219 -0
  298. package/dist/features/experimental_table/client/plugins/TablePlugin/TableGridPopup/index.js.map +1 -0
  299. package/dist/features/experimental_table/client/plugins/TablePlugin/index.css +235 -0
  300. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +1 -1
  301. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -1
  302. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +95 -104
  303. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
  304. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -1
  305. package/dist/features/experimental_table/markdownTransformer.d.ts +2 -2
  306. package/dist/features/experimental_table/markdownTransformer.d.ts.map +1 -1
  307. package/dist/features/experimental_table/markdownTransformer.js +6 -3
  308. package/dist/features/experimental_table/markdownTransformer.js.map +1 -1
  309. package/dist/features/experimental_table/server/index.d.ts +1 -6
  310. package/dist/features/experimental_table/server/index.d.ts.map +1 -1
  311. package/dist/features/experimental_table/server/index.js +6 -104
  312. package/dist/features/experimental_table/server/index.js.map +1 -1
  313. package/dist/features/experimental_table/server/schema.d.ts +27 -0
  314. package/dist/features/experimental_table/server/schema.d.ts.map +1 -0
  315. package/dist/features/experimental_table/server/schema.js +107 -0
  316. package/dist/features/experimental_table/server/schema.js.map +1 -0
  317. package/dist/features/format/bold/feature.client.js +1 -1
  318. package/dist/features/format/bold/feature.client.js.map +1 -1
  319. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  320. package/dist/features/format/bold/feature.server.js +1 -1
  321. package/dist/features/format/bold/feature.server.js.map +1 -1
  322. package/dist/features/format/inlineCode/feature.client.js +1 -1
  323. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  324. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  325. package/dist/features/format/inlineCode/feature.server.js +1 -1
  326. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  327. package/dist/features/format/italic/feature.client.js +1 -1
  328. package/dist/features/format/italic/feature.client.js.map +1 -1
  329. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  330. package/dist/features/format/italic/feature.server.js +1 -1
  331. package/dist/features/format/italic/feature.server.js.map +1 -1
  332. package/dist/features/format/strikethrough/feature.client.js +1 -1
  333. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  334. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  335. package/dist/features/format/strikethrough/feature.server.js +1 -1
  336. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  337. package/dist/features/heading/client/index.js +2 -2
  338. package/dist/features/heading/client/index.js.map +1 -1
  339. package/dist/features/heading/markdownTransformer.d.ts +2 -2
  340. package/dist/features/heading/markdownTransformer.d.ts.map +1 -1
  341. package/dist/features/heading/markdownTransformer.js +6 -19
  342. package/dist/features/heading/markdownTransformer.js.map +1 -1
  343. package/dist/features/heading/server/index.d.ts +2 -4
  344. package/dist/features/heading/server/index.d.ts.map +1 -1
  345. package/dist/features/heading/server/index.js +4 -41
  346. package/dist/features/heading/server/index.js.map +1 -1
  347. package/dist/features/heading/server/schema.d.ts +10 -0
  348. package/dist/features/heading/server/schema.d.ts.map +1 -0
  349. package/dist/features/heading/server/schema.js +37 -0
  350. package/dist/features/heading/server/schema.js.map +1 -0
  351. package/dist/features/horizontalRule/client/index.js +2 -2
  352. package/dist/features/horizontalRule/client/index.js.map +1 -1
  353. package/dist/features/horizontalRule/client/markdownTransformer.d.ts +2 -2
  354. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -1
  355. package/dist/features/horizontalRule/client/markdownTransformer.js +1 -1
  356. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
  357. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +1 -1
  358. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
  359. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
  360. package/dist/features/horizontalRule/client/plugin/index.css +25 -0
  361. package/dist/features/horizontalRule/client/plugin/index.d.ts +1 -1
  362. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -1
  363. package/dist/features/horizontalRule/client/plugin/index.js +73 -4
  364. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
  365. package/dist/features/horizontalRule/server/index.d.ts +1 -0
  366. package/dist/features/horizontalRule/server/index.d.ts.map +1 -1
  367. package/dist/features/horizontalRule/server/index.js +4 -10
  368. package/dist/features/horizontalRule/server/index.js.map +1 -1
  369. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +2 -2
  370. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -1
  371. package/dist/features/horizontalRule/server/markdownTransformer.js +1 -1
  372. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
  373. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +1 -5
  374. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -1
  375. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
  376. package/dist/features/horizontalRule/server/schema.d.ts +7 -0
  377. package/dist/features/horizontalRule/server/schema.d.ts.map +1 -0
  378. package/dist/features/horizontalRule/server/schema.js +25 -0
  379. package/dist/features/horizontalRule/server/schema.js.map +1 -0
  380. package/dist/features/link/client/index.d.ts.map +1 -1
  381. package/dist/features/link/client/index.js +2 -2
  382. package/dist/features/link/client/index.js.map +1 -1
  383. package/dist/features/link/client/plugins/autoLink/index.d.ts +1 -1
  384. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  385. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  386. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  387. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +28 -8
  388. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  389. package/dist/features/link/client/plugins/floatingLinkEditor/index.css +108 -0
  390. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +1 -1
  391. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  392. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +1 -0
  393. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
  394. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +1 -1
  395. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -1
  396. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
  397. package/dist/features/link/client/plugins/link/index.js.map +1 -1
  398. package/dist/features/link/markdownTransformer.d.ts +5 -5
  399. package/dist/features/link/markdownTransformer.d.ts.map +1 -1
  400. package/dist/features/link/markdownTransformer.js +2 -2
  401. package/dist/features/link/markdownTransformer.js.map +1 -1
  402. package/dist/features/link/markdownTransformer.spec.js +10 -10
  403. package/dist/features/link/markdownTransformer.spec.js.map +1 -1
  404. package/dist/features/link/nodes/AutoLinkNode.d.ts +3 -3
  405. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  406. package/dist/features/link/nodes/AutoLinkNode.js +2 -1
  407. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  408. package/dist/features/link/nodes/LinkNode.d.ts +3 -3
  409. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  410. package/dist/features/link/nodes/LinkNode.js +2 -1
  411. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  412. package/dist/features/link/server/baseFields.js.map +1 -1
  413. package/dist/features/link/server/graphQLPopulationPromise.d.ts +1 -1
  414. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -1
  415. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
  416. package/dist/features/link/server/index.d.ts +2 -1
  417. package/dist/features/link/server/index.d.ts.map +1 -1
  418. package/dist/features/link/server/index.js +5 -73
  419. package/dist/features/link/server/index.js.map +1 -1
  420. package/dist/features/link/server/schema.d.ts +32 -0
  421. package/dist/features/link/server/schema.d.ts.map +1 -0
  422. package/dist/features/link/server/schema.js +171 -0
  423. package/dist/features/link/server/schema.js.map +1 -0
  424. package/dist/features/link/server/validate.d.ts +1 -1
  425. package/dist/features/link/server/validate.d.ts.map +1 -1
  426. package/dist/features/link/server/validate.js.map +1 -1
  427. package/dist/features/lists/checklist/client/index.js +1 -1
  428. package/dist/features/lists/checklist/client/index.js.map +1 -1
  429. package/dist/features/lists/checklist/server/index.d.ts.map +1 -1
  430. package/dist/features/lists/checklist/server/index.js +4 -8
  431. package/dist/features/lists/checklist/server/index.js.map +1 -1
  432. package/dist/features/lists/orderedList/client/index.js +1 -1
  433. package/dist/features/lists/orderedList/client/index.js.map +1 -1
  434. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -1
  435. package/dist/features/lists/orderedList/server/index.js +4 -8
  436. package/dist/features/lists/orderedList/server/index.js.map +1 -1
  437. package/dist/features/lists/plugin/index.d.ts +0 -9
  438. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  439. package/dist/features/lists/plugin/index.js.map +1 -1
  440. package/dist/features/lists/shared/schema.d.ts +18 -0
  441. package/dist/features/lists/shared/schema.d.ts.map +1 -0
  442. package/dist/features/lists/shared/schema.js +62 -0
  443. package/dist/features/lists/shared/schema.js.map +1 -0
  444. package/dist/features/lists/unorderedList/client/index.js +1 -1
  445. package/dist/features/lists/unorderedList/client/index.js.map +1 -1
  446. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -1
  447. package/dist/features/lists/unorderedList/server/index.js +4 -8
  448. package/dist/features/lists/unorderedList/server/index.js.map +1 -1
  449. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +2 -2
  450. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -1
  451. package/dist/features/relationship/client/components/RelationshipComponent.js +29 -4
  452. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
  453. package/dist/features/relationship/client/components/index.css +112 -0
  454. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +1 -1
  455. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
  456. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
  457. package/dist/features/relationship/client/plugins/index.d.ts +1 -1
  458. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -1
  459. package/dist/features/relationship/client/plugins/index.js.map +1 -1
  460. package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -1
  461. package/dist/features/relationship/client/utils/useEnabledRelationships.js +9 -40
  462. package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -1
  463. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +1 -1
  464. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -1
  465. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
  466. package/dist/features/relationship/server/index.d.ts +1 -0
  467. package/dist/features/relationship/server/index.d.ts.map +1 -1
  468. package/dist/features/relationship/server/index.js +2 -0
  469. package/dist/features/relationship/server/index.js.map +1 -1
  470. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +1 -10
  471. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -1
  472. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
  473. package/dist/features/relationship/server/schema.d.ts +28 -0
  474. package/dist/features/relationship/server/schema.d.ts.map +1 -0
  475. package/dist/features/relationship/server/schema.js +97 -0
  476. package/dist/features/relationship/server/schema.js.map +1 -0
  477. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts +23 -0
  478. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.d.ts.map +1 -0
  479. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js +34 -0
  480. package/dist/features/relationship/shared/filterEnabledRelationshipCollections.js.map +1 -0
  481. package/dist/features/textState/feature.client.js +1 -1
  482. package/dist/features/textState/feature.client.js.map +1 -1
  483. package/dist/features/toolbars/fixed/client/Toolbar/index.css +85 -0
  484. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +1 -1
  485. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -1
  486. package/dist/features/toolbars/fixed/client/Toolbar/index.js +1 -0
  487. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  488. package/dist/features/toolbars/inline/client/Toolbar/index.css +32 -0
  489. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +1 -1
  490. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -1
  491. package/dist/features/toolbars/inline/client/Toolbar/index.js +1 -0
  492. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  493. package/dist/features/toolbars/shared/ToolbarButton/index.css +57 -0
  494. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
  495. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  496. package/dist/features/toolbars/shared/ToolbarButton/index.js +80 -74
  497. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  498. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
  499. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +5 -2
  500. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  501. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +210 -0
  502. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
  503. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  504. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +11 -7
  505. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  506. package/dist/features/toolbars/shared/useToolbarStates.d.ts.map +1 -1
  507. package/dist/features/toolbars/shared/useToolbarStates.js +3 -1
  508. package/dist/features/toolbars/shared/useToolbarStates.js.map +1 -1
  509. package/dist/features/toolbars/types.d.ts +5 -1
  510. package/dist/features/toolbars/types.d.ts.map +1 -1
  511. package/dist/features/toolbars/types.js.map +1 -1
  512. package/dist/features/typesClient.d.ts +2 -2
  513. package/dist/features/typesClient.d.ts.map +1 -1
  514. package/dist/features/typesClient.js.map +1 -1
  515. package/dist/features/typesServer.d.ts +19 -59
  516. package/dist/features/typesServer.d.ts.map +1 -1
  517. package/dist/features/typesServer.js.map +1 -1
  518. package/dist/features/upload/client/component/index.css +214 -0
  519. package/dist/features/upload/client/component/index.d.ts +2 -2
  520. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  521. package/dist/features/upload/client/component/index.js +86 -63
  522. package/dist/features/upload/client/component/index.js.map +1 -1
  523. package/dist/features/upload/client/component/pending/index.d.ts +0 -1
  524. package/dist/features/upload/client/component/pending/index.d.ts.map +1 -1
  525. package/dist/features/upload/client/component/pending/index.js.map +1 -1
  526. package/dist/features/upload/client/nodes/UploadNode.d.ts +1 -1
  527. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  528. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  529. package/dist/features/upload/client/plugin/index.d.ts +1 -1
  530. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  531. package/dist/features/upload/client/plugin/index.js +5 -5
  532. package/dist/features/upload/client/plugin/index.js.map +1 -1
  533. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +1 -1
  534. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -1
  535. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
  536. package/dist/features/upload/server/index.d.ts +1 -0
  537. package/dist/features/upload/server/index.d.ts.map +1 -1
  538. package/dist/features/upload/server/index.js +5 -82
  539. package/dist/features/upload/server/index.js.map +1 -1
  540. package/dist/features/upload/server/markdownTransformer.d.ts +2 -2
  541. package/dist/features/upload/server/markdownTransformer.d.ts.map +1 -1
  542. package/dist/features/upload/server/markdownTransformer.js +1 -1
  543. package/dist/features/upload/server/markdownTransformer.js.map +1 -1
  544. package/dist/features/upload/server/nodes/UploadNode.d.ts +1 -55
  545. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  546. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  547. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  548. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  549. package/dist/features/upload/server/schema.d.ts +52 -0
  550. package/dist/features/upload/server/schema.d.ts.map +1 -0
  551. package/dist/features/upload/server/schema.js +149 -0
  552. package/dist/features/upload/server/schema.js.map +1 -0
  553. package/dist/features/upload/server/validate.d.ts +1 -1
  554. package/dist/features/upload/server/validate.d.ts.map +1 -1
  555. package/dist/features/upload/server/validate.js.map +1 -1
  556. package/dist/field/Diff/converters/link.d.ts +1 -1
  557. package/dist/field/Diff/converters/link.d.ts.map +1 -1
  558. package/dist/field/Diff/converters/link.js.map +1 -1
  559. package/dist/field/Diff/converters/listitem/index.css +80 -0
  560. package/dist/field/Diff/converters/listitem/index.d.ts +2 -2
  561. package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -1
  562. package/dist/field/Diff/converters/listitem/index.js +1 -0
  563. package/dist/field/Diff/converters/listitem/index.js.map +1 -1
  564. package/dist/field/Diff/converters/relationship/index.css +108 -0
  565. package/dist/field/Diff/converters/relationship/index.d.ts +2 -2
  566. package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -1
  567. package/dist/field/Diff/converters/relationship/index.js +11 -28
  568. package/dist/field/Diff/converters/relationship/index.js.map +1 -1
  569. package/dist/field/Diff/converters/unknown/index.css +37 -0
  570. package/dist/field/Diff/converters/unknown/index.d.ts +1 -1
  571. package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -1
  572. package/dist/field/Diff/converters/unknown/index.js +1 -0
  573. package/dist/field/Diff/converters/unknown/index.js.map +1 -1
  574. package/dist/field/Diff/converters/upload/index.css +175 -0
  575. package/dist/field/Diff/converters/upload/index.d.ts +2 -2
  576. package/dist/field/Diff/converters/upload/index.d.ts.map +1 -1
  577. package/dist/field/Diff/converters/upload/index.js +7 -2
  578. package/dist/field/Diff/converters/upload/index.js.map +1 -1
  579. package/dist/field/Diff/index.css +156 -0
  580. package/dist/field/Diff/index.d.ts +1 -1
  581. package/dist/field/Diff/index.d.ts.map +1 -1
  582. package/dist/field/Diff/index.js +1 -0
  583. package/dist/field/Diff/index.js.map +1 -1
  584. package/dist/field/Field.d.ts +3 -3
  585. package/dist/field/Field.d.ts.map +1 -1
  586. package/dist/field/Field.js +30 -26
  587. package/dist/field/Field.js.map +1 -1
  588. package/dist/field/RenderLexical/index.d.ts +2 -2
  589. package/dist/field/RenderLexical/index.d.ts.map +1 -1
  590. package/dist/field/RenderLexical/index.js.map +1 -1
  591. package/dist/field/RichTextViewProvider.d.ts +1 -1
  592. package/dist/field/RichTextViewProvider.d.ts.map +1 -1
  593. package/dist/field/RichTextViewProvider.js.map +1 -1
  594. package/dist/field/ViewSelector.css +32 -0
  595. package/dist/field/ViewSelector.d.ts +1 -1
  596. package/dist/field/ViewSelector.d.ts.map +1 -1
  597. package/dist/field/ViewSelector.js +1 -0
  598. package/dist/field/ViewSelector.js.map +1 -1
  599. package/dist/field/bundled.css +1 -1
  600. package/dist/field/index.css +60 -0
  601. package/dist/field/index.d.ts +1 -1
  602. package/dist/field/index.d.ts.map +1 -1
  603. package/dist/field/index.js +1 -1
  604. package/dist/field/index.js.map +1 -1
  605. package/dist/field/rscEntry.d.ts +1 -1
  606. package/dist/field/rscEntry.d.ts.map +1 -1
  607. package/dist/field/rscEntry.js +2 -0
  608. package/dist/field/rscEntry.js.map +1 -1
  609. package/dist/hooks.d.ts +6 -0
  610. package/dist/hooks.d.ts.map +1 -0
  611. package/dist/hooks.js +548 -0
  612. package/dist/hooks.js.map +1 -0
  613. package/dist/index.d.ts +13 -19
  614. package/dist/index.d.ts.map +1 -1
  615. package/dist/index.js +12 -629
  616. package/dist/index.js.map +1 -1
  617. package/dist/lexical/LexicalEditor.css +50 -0
  618. package/dist/lexical/LexicalEditor.d.ts +1 -1
  619. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  620. package/dist/lexical/LexicalEditor.js +1 -0
  621. package/dist/lexical/LexicalEditor.js.map +1 -1
  622. package/dist/lexical/LexicalProvider.d.ts +1 -1
  623. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  624. package/dist/lexical/LexicalProvider.js.map +1 -1
  625. package/dist/lexical/config/client/EditorConfigProvider.d.ts +1 -1
  626. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  627. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  628. package/dist/lexical/config/client/loader.d.ts +1 -1
  629. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  630. package/dist/lexical/config/client/loader.js +5 -1
  631. package/dist/lexical/config/client/loader.js.map +1 -1
  632. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  633. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  634. package/dist/lexical/config/client/sanitize.js.map +1 -1
  635. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  636. package/dist/lexical/config/server/sanitize.js +9 -17
  637. package/dist/lexical/config/server/sanitize.js.map +1 -1
  638. package/dist/lexical/config/types.d.ts +1 -1
  639. package/dist/lexical/config/types.d.ts.map +1 -1
  640. package/dist/lexical/config/types.js.map +1 -1
  641. package/dist/lexical/nodes/index.d.ts +1 -1
  642. package/dist/lexical/nodes/index.d.ts.map +1 -1
  643. package/dist/lexical/nodes/index.js.map +1 -1
  644. package/dist/lexical/plugins/DecoratorPlugin/index.css +11 -0
  645. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +1 -1
  646. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  647. package/dist/lexical/plugins/DecoratorPlugin/index.js +1 -0
  648. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  649. package/dist/lexical/plugins/InsertParagraphAtEnd/index.css +52 -0
  650. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +1 -1
  651. package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -1
  652. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +1 -0
  653. package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
  654. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  655. package/dist/lexical/plugins/MarkdownShortcut/index.js +1 -1
  656. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  657. package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -1
  658. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +21 -0
  659. package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -1
  660. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +1 -1
  661. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  662. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  663. package/dist/lexical/plugins/SlashMenu/index.css +61 -0
  664. package/dist/lexical/plugins/SlashMenu/index.d.ts +1 -1
  665. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  666. package/dist/lexical/plugins/SlashMenu/index.js +2 -0
  667. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  668. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.css +40 -0
  669. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +1 -1
  670. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  671. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +1 -0
  672. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  673. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.css +85 -0
  674. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +1 -1
  675. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  676. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +16 -9
  677. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  678. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +1 -1
  679. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  680. package/dist/lexical/theme/EditorTheme.css +358 -0
  681. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  682. package/dist/lexical/theme/EditorTheme.js +1 -0
  683. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  684. package/dist/lexical/ui/ContentEditable.css +104 -0
  685. package/dist/lexical/ui/ContentEditable.d.ts +1 -1
  686. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  687. package/dist/lexical/ui/ContentEditable.js +1 -0
  688. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  689. package/dist/lexical/ui/icons/Code/index.js +1 -1
  690. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  691. package/dist/lexical/ui/icons/CodeBlock/index.js +1 -1
  692. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  693. package/dist/lexical/ui/icons/Link/index.js +1 -1
  694. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  695. package/dist/lexical/ui/icons/Page/index.d.ts +5 -0
  696. package/dist/lexical/ui/icons/Page/index.d.ts.map +1 -0
  697. package/dist/lexical/ui/icons/Page/index.js +21 -0
  698. package/dist/lexical/ui/icons/Page/index.js.map +1 -0
  699. package/dist/lexical/ui/icons/Trash/index.d.ts +10 -0
  700. package/dist/lexical/ui/icons/Trash/index.d.ts.map +1 -0
  701. package/dist/lexical/ui/icons/Trash/index.js +29 -0
  702. package/dist/lexical/ui/icons/Trash/index.js.map +1 -0
  703. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts +17 -0
  704. package/dist/lexical/utils/markdown/convertFromMarkdownString.d.ts.map +1 -0
  705. package/dist/lexical/utils/markdown/convertFromMarkdownString.js +27 -0
  706. package/dist/lexical/utils/markdown/convertFromMarkdownString.js.map +1 -0
  707. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js +88 -0
  708. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js.map +1 -0
  709. package/dist/lexical/utils/markdown/createBlockNode.d.ts +2 -2
  710. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  711. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  712. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts +25 -0
  713. package/dist/lexical/utils/markdown/normalizeMarkdown.d.ts.map +1 -0
  714. package/dist/lexical/utils/markdown/normalizeMarkdown.js +91 -0
  715. package/dist/lexical/utils/markdown/normalizeMarkdown.js.map +1 -0
  716. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -1
  717. package/dist/lexical/utils/point.d.ts.map +1 -1
  718. package/dist/lexical/utils/rect.d.ts.map +1 -1
  719. package/dist/lexical-proxy/@lexical-markdown.d.ts +1 -1
  720. package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -1
  721. package/dist/lexical-proxy/@lexical-markdown.js +1 -1
  722. package/dist/lexical-proxy/@lexical-markdown.js.map +1 -1
  723. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  724. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  725. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  726. package/dist/types/builtInNodes.d.ts +14 -0
  727. package/dist/types/builtInNodes.d.ts.map +1 -0
  728. package/dist/types/builtInNodes.js +203 -0
  729. package/dist/types/builtInNodes.js.map +1 -0
  730. package/dist/{types.d.ts → types/index.d.ts} +25 -26
  731. package/dist/types/index.d.ts.map +1 -0
  732. package/dist/types/index.js +2 -0
  733. package/dist/types/index.js.map +1 -0
  734. package/dist/types/jsonSchemaHelpers.d.ts +30 -0
  735. package/dist/types/jsonSchemaHelpers.d.ts.map +1 -0
  736. package/dist/types/jsonSchemaHelpers.js +58 -0
  737. package/dist/types/jsonSchemaHelpers.js.map +1 -0
  738. package/dist/types/nodeTypes.d.ts +128 -0
  739. package/dist/types/nodeTypes.d.ts.map +1 -0
  740. package/dist/types/nodeTypes.js +6 -0
  741. package/dist/types/nodeTypes.js.map +1 -0
  742. package/dist/types/schema.d.ts +6 -0
  743. package/dist/types/schema.d.ts.map +1 -0
  744. package/dist/types/schema.js +90 -0
  745. package/dist/types/schema.js.map +1 -0
  746. package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -1
  747. package/dist/utilities/applyBaseFilterToFields.js +1 -2
  748. package/dist/utilities/applyBaseFilterToFields.js.map +1 -1
  749. package/dist/utilities/buildEditorState.d.ts +18 -4
  750. package/dist/utilities/buildEditorState.d.ts.map +1 -1
  751. package/dist/utilities/buildEditorState.js +8 -0
  752. package/dist/utilities/buildEditorState.js.map +1 -1
  753. package/dist/utilities/buildInitialState.d.ts +2 -1
  754. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  755. package/dist/utilities/buildInitialState.js.map +1 -1
  756. package/dist/utilities/createClientFeature.d.ts +1 -1
  757. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  758. package/dist/utilities/createClientFeature.js.map +1 -1
  759. package/dist/utilities/editorConfigFactory.d.ts +1 -1
  760. package/dist/utilities/editorConfigFactory.d.ts.map +1 -1
  761. package/dist/utilities/editorConfigFactory.js.map +1 -1
  762. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  763. package/dist/utilities/fieldsDrawer/Drawer.js +19 -10
  764. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  765. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -1
  766. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  767. package/dist/utilities/fieldsDrawer/DrawerContent.js +8 -7
  768. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  769. package/dist/utilities/fieldsDrawer/index.css +12 -0
  770. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts +29 -0
  771. package/dist/utilities/fieldsDrawer/useDrawerSubmit.d.ts.map +1 -0
  772. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js +97 -0
  773. package/dist/utilities/fieldsDrawer/useDrawerSubmit.js.map +1 -0
  774. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +1 -0
  775. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -1
  776. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +34 -18
  777. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
  778. package/dist/utilities/generateImportMap.d.ts +2 -2
  779. package/dist/utilities/generateImportMap.d.ts.map +1 -1
  780. package/dist/utilities/generateImportMap.js.map +1 -1
  781. package/dist/utilities/generateSchemaMap.d.ts +1 -1
  782. package/dist/utilities/initLexicalFeatures.d.ts +1 -1
  783. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -1
  784. package/dist/utilities/initLexicalFeatures.js.map +1 -1
  785. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +1 -1
  786. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  787. package/package.json +28 -33
  788. package/dist/exports/client/Field-NXLXFFLW.js +0 -2
  789. package/dist/exports/client/Field-NXLXFFLW.js.map +0 -7
  790. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js +0 -2
  791. package/dist/exports/client/RelationshipComponent-BG3DPV3T.js.map +0 -7
  792. package/dist/exports/client/chunk-BZZVLW4U.js.map +0 -7
  793. package/dist/exports/client/chunk-DZDHVMML.js +0 -2
  794. package/dist/exports/client/chunk-DZDHVMML.js.map +0 -7
  795. package/dist/exports/client/chunk-F26IQ5RE.js +0 -2
  796. package/dist/exports/client/chunk-F26IQ5RE.js.map +0 -7
  797. package/dist/exports/client/chunk-FTT5KJ6W.js +0 -12
  798. package/dist/exports/client/chunk-FTT5KJ6W.js.map +0 -7
  799. package/dist/exports/client/chunk-INBEEENE.js +0 -2
  800. package/dist/exports/client/chunk-INBEEENE.js.map +0 -7
  801. package/dist/exports/client/chunk-QJ5EETIB.js +0 -2
  802. package/dist/exports/client/chunk-QJ5EETIB.js.map +0 -7
  803. package/dist/exports/client/component-XIHC3W6W.js +0 -2
  804. package/dist/exports/client/component-XIHC3W6W.js.map +0 -7
  805. package/dist/exports/client/componentInline-LCHKRXOV.js +0 -2
  806. package/dist/features/blockquote/markdownTransformer.d.ts +0 -3
  807. package/dist/features/blockquote/markdownTransformer.d.ts.map +0 -1
  808. package/dist/features/blockquote/markdownTransformer.js +0 -33
  809. package/dist/features/blockquote/markdownTransformer.js.map +0 -1
  810. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +0 -4
  811. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +0 -1
  812. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +0 -7
  813. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +0 -1
  814. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +0 -4
  815. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +0 -1
  816. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +0 -38
  817. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +0 -1
  818. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +0 -4
  819. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +0 -1
  820. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +0 -9
  821. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +0 -1
  822. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +0 -4
  823. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +0 -1
  824. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +0 -33
  825. package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +0 -1
  826. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +0 -6
  827. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +0 -1
  828. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +0 -9
  829. package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +0 -1
  830. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +0 -70
  831. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +0 -1
  832. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +0 -104
  833. package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +0 -1
  834. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +0 -27
  835. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +0 -1
  836. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +0 -2
  837. package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +0 -1
  838. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +0 -39
  839. package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +0 -1
  840. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +0 -122
  841. package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +0 -1
  842. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +0 -12
  843. package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +0 -1
  844. package/dist/features/converters/lexicalToHtml_deprecated/index.js +0 -11
  845. package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +0 -1
  846. package/dist/features/format/bold/markdownTransformers.d.ts +0 -6
  847. package/dist/features/format/bold/markdownTransformers.d.ts.map +0 -1
  848. package/dist/features/format/bold/markdownTransformers.js +0 -23
  849. package/dist/features/format/bold/markdownTransformers.js.map +0 -1
  850. package/dist/features/format/inlineCode/markdownTransformers.d.ts +0 -3
  851. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  852. package/dist/features/format/inlineCode/markdownTransformers.js +0 -6
  853. package/dist/features/format/inlineCode/markdownTransformers.js.map +0 -1
  854. package/dist/features/format/italic/markdownTransformers.d.ts +0 -4
  855. package/dist/features/format/italic/markdownTransformers.d.ts.map +0 -1
  856. package/dist/features/format/italic/markdownTransformers.js +0 -12
  857. package/dist/features/format/italic/markdownTransformers.js.map +0 -1
  858. package/dist/features/format/strikethrough/markdownTransformers.d.ts +0 -3
  859. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  860. package/dist/features/format/strikethrough/markdownTransformers.js +0 -6
  861. package/dist/features/format/strikethrough/markdownTransformers.js.map +0 -1
  862. package/dist/features/link/nodes/types.d.ts +0 -27
  863. package/dist/features/link/nodes/types.d.ts.map +0 -1
  864. package/dist/features/link/nodes/types.js +0 -2
  865. package/dist/features/link/nodes/types.js.map +0 -1
  866. package/dist/features/lists/checklist/markdownTransformers.d.ts +0 -3
  867. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  868. package/dist/features/lists/checklist/markdownTransformers.js +0 -12
  869. package/dist/features/lists/checklist/markdownTransformers.js.map +0 -1
  870. package/dist/features/lists/htmlConverter.d.ts +0 -5
  871. package/dist/features/lists/htmlConverter.d.ts.map +0 -1
  872. package/dist/features/lists/htmlConverter.js +0 -81
  873. package/dist/features/lists/htmlConverter.js.map +0 -1
  874. package/dist/features/lists/orderedList/markdownTransformer.d.ts +0 -3
  875. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  876. package/dist/features/lists/orderedList/markdownTransformer.js +0 -12
  877. package/dist/features/lists/orderedList/markdownTransformer.js.map +0 -1
  878. package/dist/features/lists/shared/markdown.d.ts +0 -6
  879. package/dist/features/lists/shared/markdown.d.ts.map +0 -1
  880. package/dist/features/lists/shared/markdown.js +0 -57
  881. package/dist/features/lists/shared/markdown.js.map +0 -1
  882. package/dist/features/lists/unorderedList/markdownTransformer.d.ts +0 -3
  883. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  884. package/dist/features/lists/unorderedList/markdownTransformer.js +0 -12
  885. package/dist/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  886. package/dist/lexical/utils/guard.d.ts +0 -5
  887. package/dist/lexical/utils/guard.d.ts.map +0 -1
  888. package/dist/lexical/utils/guard.js +0 -9
  889. package/dist/lexical/utils/guard.js.map +0 -1
  890. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +0 -2
  891. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +0 -1
  892. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +0 -2
  893. package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +0 -1
  894. package/dist/nodeTypes.d.ts +0 -74
  895. package/dist/nodeTypes.d.ts.map +0 -1
  896. package/dist/nodeTypes.js +0 -5
  897. package/dist/nodeTypes.js.map +0 -1
  898. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +0 -14
  899. package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +0 -1
  900. package/dist/packages/@lexical/markdown/MarkdownExport.js +0 -213
  901. package/dist/packages/@lexical/markdown/MarkdownExport.js.map +0 -1
  902. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +0 -19
  903. package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +0 -1
  904. package/dist/packages/@lexical/markdown/MarkdownImport.js +0 -198
  905. package/dist/packages/@lexical/markdown/MarkdownImport.js.map +0 -1
  906. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +0 -11
  907. package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +0 -1
  908. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +0 -304
  909. package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +0 -1
  910. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +0 -147
  911. package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +0 -1
  912. package/dist/packages/@lexical/markdown/MarkdownTransformers.js +0 -268
  913. package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +0 -1
  914. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +0 -22
  915. package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +0 -1
  916. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +0 -91
  917. package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +0 -1
  918. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +0 -21
  919. package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +0 -1
  920. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +0 -54
  921. package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +0 -1
  922. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +0 -18
  923. package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +0 -1
  924. package/dist/packages/@lexical/markdown/importTextTransformers.js +0 -54
  925. package/dist/packages/@lexical/markdown/importTextTransformers.js.map +0 -1
  926. package/dist/packages/@lexical/markdown/index.d.ts +0 -29
  927. package/dist/packages/@lexical/markdown/index.d.ts.map +0 -1
  928. package/dist/packages/@lexical/markdown/index.js +0 -39
  929. package/dist/packages/@lexical/markdown/index.js.map +0 -1
  930. package/dist/packages/@lexical/markdown/utils.d.ts +0 -34
  931. package/dist/packages/@lexical/markdown/utils.d.ts.map +0 -1
  932. package/dist/packages/@lexical/markdown/utils.js +0 -267
  933. package/dist/packages/@lexical/markdown/utils.js.map +0 -1
  934. package/dist/types.d.ts.map +0 -1
  935. package/dist/types.js +0 -2
  936. package/dist/types.js.map +0 -1
  937. /package/dist/exports/client/{componentInline-LCHKRXOV.js.map → componentInline-H24N7GUG.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"graphQLPopulationPromise.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/server/graphQLPopulationPromise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAI7E,eAAO,MAAM,gCAAgC,UACpC,wBAAwB,KAC9B,iBAAiB,CAAC,0BAA0B,CAwC9C,CAAA"}
1
+ {"version":3,"file":"graphQLPopulationPromise.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/server/graphQLPopulationPromise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAI7D,eAAO,MAAM,gCAAgC,UACpC,wBAAwB,KAC9B,iBAAiB,CAAC,0BAA0B,CAwC9C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"graphQLPopulationPromise.js","names":["populate","relationshipPopulationPromiseHOC","props","relationshipPopulationPromise","currentDepth","depth","draft","node","overrideAccess","populationPromises","req","showHiddenFields","value","id","collection","payload","collections","relationTo","populateDepth","maxDepth","undefined","push","collectionSlug","config","slug","data","key"],"sources":["../../../../src/features/relationship/server/graphQLPopulationPromise.ts"],"sourcesContent":["import type { PopulationPromise } from '../../typesServer.js'\nimport type { RelationshipFeatureProps } from './index.js'\nimport type { SerializedRelationshipNode } from './nodes/RelationshipNode.js'\n\nimport { populate } from '../../../populateGraphQL/populate.js'\n\nexport const relationshipPopulationPromiseHOC = (\n props: RelationshipFeatureProps,\n): PopulationPromise<SerializedRelationshipNode> => {\n const relationshipPopulationPromise: PopulationPromise<SerializedRelationshipNode> = ({\n currentDepth,\n depth,\n draft,\n node,\n overrideAccess,\n populationPromises,\n req,\n showHiddenFields,\n }) => {\n if (node?.value) {\n // @ts-expect-error\n const id = node?.value?.id || node?.value // for backwards-compatibility\n\n const collection = req.payload.collections[node?.relationTo]\n\n if (collection) {\n const populateDepth =\n props?.maxDepth !== undefined && props?.maxDepth < depth ? props?.maxDepth : depth\n\n populationPromises.push(\n populate({\n id,\n collectionSlug: collection.config.slug,\n currentDepth,\n data: node,\n depth: populateDepth,\n draft,\n key: 'value',\n overrideAccess,\n req,\n showHiddenFields,\n }),\n )\n }\n }\n }\n\n return relationshipPopulationPromise\n}\n"],"mappings":"AAIA,SAASA,QAAQ,QAAQ;AAEzB,OAAO,MAAMC,gCAAA,GACXC,KAAA;EAEA,MAAMC,6BAAA,GAA+EA,CAAC;IACpFC,YAAY;IACZC,KAAK;IACLC,KAAK;IACLC,IAAI;IACJC,cAAc;IACdC,kBAAkB;IAClBC,GAAG;IACHC;EAAgB,CACjB;IACC,IAAIJ,IAAA,EAAMK,KAAA,EAAO;MACf;MACA,MAAMC,EAAA,GAAKN,IAAA,EAAMK,KAAA,EAAOC,EAAA,IAAMN,IAAA,EAAMK,KAAA,CAAM;AAAA;MAE1C,MAAME,UAAA,GAAaJ,GAAA,CAAIK,OAAO,CAACC,WAAW,CAACT,IAAA,EAAMU,UAAA,CAAW;MAE5D,IAAIH,UAAA,EAAY;QACd,MAAMI,aAAA,GACJhB,KAAA,EAAOiB,QAAA,KAAaC,SAAA,IAAalB,KAAA,EAAOiB,QAAA,GAAWd,KAAA,GAAQH,KAAA,EAAOiB,QAAA,GAAWd,KAAA;QAE/EI,kBAAA,CAAmBY,IAAI,CACrBrB,QAAA,CAAS;UACPa,EAAA;UACAS,cAAA,EAAgBR,UAAA,CAAWS,MAAM,CAACC,IAAI;UACtCpB,YAAA;UACAqB,IAAA,EAAMlB,IAAA;UACNF,KAAA,EAAOa,aAAA;UACPZ,KAAA;UACAoB,GAAA,EAAK;UACLlB,cAAA;UACAE,GAAA;UACAC;QACF;MAEJ;IACF;EACF;EAEA,OAAOR,6BAAA;AACT","ignoreList":[]}
1
+ {"version":3,"file":"graphQLPopulationPromise.js","names":["populate","relationshipPopulationPromiseHOC","props","relationshipPopulationPromise","currentDepth","depth","draft","node","overrideAccess","populationPromises","req","showHiddenFields","value","id","collection","payload","collections","relationTo","populateDepth","maxDepth","undefined","push","collectionSlug","config","slug","data","key"],"sources":["../../../../src/features/relationship/server/graphQLPopulationPromise.ts"],"sourcesContent":["import type { PopulationPromise } from '../../typesServer.js'\nimport type { RelationshipFeatureProps } from './index.js'\nimport type { SerializedRelationshipNode } from './schema.js'\n\nimport { populate } from '../../../populateGraphQL/populate.js'\n\nexport const relationshipPopulationPromiseHOC = (\n props: RelationshipFeatureProps,\n): PopulationPromise<SerializedRelationshipNode> => {\n const relationshipPopulationPromise: PopulationPromise<SerializedRelationshipNode> = ({\n currentDepth,\n depth,\n draft,\n node,\n overrideAccess,\n populationPromises,\n req,\n showHiddenFields,\n }) => {\n if (node?.value) {\n // @ts-expect-error\n const id = node?.value?.id || node?.value // for backwards-compatibility\n\n const collection = req.payload.collections[node?.relationTo]\n\n if (collection) {\n const populateDepth =\n props?.maxDepth !== undefined && props?.maxDepth < depth ? props?.maxDepth : depth\n\n populationPromises.push(\n populate({\n id,\n collectionSlug: collection.config.slug,\n currentDepth,\n data: node,\n depth: populateDepth,\n draft,\n key: 'value',\n overrideAccess,\n req,\n showHiddenFields,\n }),\n )\n }\n }\n }\n\n return relationshipPopulationPromise\n}\n"],"mappings":"AAIA,SAASA,QAAQ,QAAQ;AAEzB,OAAO,MAAMC,gCAAA,GACXC,KAAA;EAEA,MAAMC,6BAAA,GAA+EA,CAAC;IACpFC,YAAY;IACZC,KAAK;IACLC,KAAK;IACLC,IAAI;IACJC,cAAc;IACdC,kBAAkB;IAClBC,GAAG;IACHC;EAAgB,CACjB;IACC,IAAIJ,IAAA,EAAMK,KAAA,EAAO;MACf;MACA,MAAMC,EAAA,GAAKN,IAAA,EAAMK,KAAA,EAAOC,EAAA,IAAMN,IAAA,EAAMK,KAAA,CAAM;AAAA;MAE1C,MAAME,UAAA,GAAaJ,GAAA,CAAIK,OAAO,CAACC,WAAW,CAACT,IAAA,EAAMU,UAAA,CAAW;MAE5D,IAAIH,UAAA,EAAY;QACd,MAAMI,aAAA,GACJhB,KAAA,EAAOiB,QAAA,KAAaC,SAAA,IAAalB,KAAA,EAAOiB,QAAA,GAAWd,KAAA,GAAQH,KAAA,EAAOiB,QAAA,GAAWd,KAAA;QAE/EI,kBAAA,CAAmBY,IAAI,CACrBrB,QAAA,CAAS;UACPa,EAAA;UACAS,cAAA,EAAgBR,UAAA,CAAWS,MAAM,CAACC,IAAI;UACtCpB,YAAA;UACAqB,IAAA,EAAMlB,IAAA;UACNF,KAAA,EAAOa,aAAA;UACPZ,KAAA;UACAoB,GAAA,EAAK;UACLlB,cAAA;UACAE,GAAA;UACAC;QACF;MAEJ;IACF;EACF;EAEA,OAAOR,6BAAA;AACT","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import type { CollectionSlug } from 'payload';
2
+ export type { RelationshipData, SerializedRelationshipNode } from './schema.js';
2
3
  export type ExclusiveRelationshipFeatureProps = {
3
4
  /**
4
5
  * The collections that should be disabled. Overrides the `enableRichTextRelationship` property in the collection config.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAS7C,MAAM,MAAM,iCAAiC,GACzC;IACE;;;QAGI;IACJ,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAA;IAGtC,kBAAkB,CAAC,EAAE,KAAK,CAAA;CAC3B,GACD;IAEE,mBAAmB,CAAC,EAAE,KAAK,CAAA;IAE3B;;;QAGI;IACJ,kBAAkB,CAAC,EAAE,cAAc,EAAE,CAAA;CACtC,CAAA;AAEL,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,iCAAiC,CAAA;AAErC,eAAO,MAAM,mBAAmB,qJAoE9B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAU7C,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAE/E,MAAM,MAAM,iCAAiC,GACzC;IACE;;;QAGI;IACJ,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAA;IAGtC,kBAAkB,CAAC,EAAE,KAAK,CAAA;CAC3B,GACD;IAEE,mBAAmB,CAAC,EAAE,KAAK,CAAA;IAE3B;;;QAGI;IACJ,kBAAkB,CAAC,EAAE,cAAc,EAAE,CAAA;CACtC,CAAA;AAEL,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,iCAAiC,CAAA;AAErC,eAAO,MAAM,mBAAmB,qJAqE9B,CAAA"}
@@ -4,6 +4,7 @@ import { createNode } from '../../typeUtilities.js';
4
4
  import { relationshipPopulationPromiseHOC } from './graphQLPopulationPromise.js';
5
5
  import { i18n } from './i18n.js';
6
6
  import { RelationshipServerNode } from './nodes/RelationshipNode.js';
7
+ import { createRelationshipNodeJSONSchema } from './schema.js';
7
8
  export const RelationshipFeature = createServerFeature({
8
9
  feature: ({
9
10
  props
@@ -58,6 +59,7 @@ export const RelationshipFeature = createServerFeature({
58
59
  return node;
59
60
  }]
60
61
  },
62
+ jsonSchema: createRelationshipNodeJSONSchema(props),
61
63
  node: RelationshipServerNode
62
64
  })]
63
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["populate","createServerFeature","createNode","relationshipPopulationPromiseHOC","i18n","RelationshipServerNode","RelationshipFeature","feature","props","maxDepth","clientFeatureProps","ClientFeature","nodes","graphQLPopulationPromises","hooks","afterRead","currentDepth","depth","draft","node","overrideAccess","populateArg","populationPromises","req","showHiddenFields","value","collection","payload","collections","relationTo","id","populateDepth","undefined","push","collectionSlug","config","slug","data","key","select","defaultPopulate"],"sources":["../../../../src/features/relationship/server/index.ts"],"sourcesContent":["import type { CollectionSlug } from 'payload'\n\nimport { populate } from '../../../populateGraphQL/populate.js'\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { relationshipPopulationPromiseHOC } from './graphQLPopulationPromise.js'\nimport { i18n } from './i18n.js'\nimport { RelationshipServerNode } from './nodes/RelationshipNode.js'\n\nexport type ExclusiveRelationshipFeatureProps =\n | {\n /**\n * The collections that should be disabled. Overrides the `enableRichTextRelationship` property in the collection config.\n * When this property is set, `enabledCollections` will not be available.\n **/\n disabledCollections?: CollectionSlug[]\n\n // Ensures that enabledCollections is not available when disabledCollections is set\n enabledCollections?: never\n }\n | {\n // Ensures that disabledCollections is not available when enabledCollections is set\n disabledCollections?: never\n\n /**\n * The collections that should be enabled. Overrides the `enableRichTextRelationship` property in the collection config\n * When this property is set, `disabledCollections` will not be available.\n **/\n enabledCollections?: CollectionSlug[]\n }\n\nexport type RelationshipFeatureProps = {\n /**\n * Sets a maximum population depth for this relationship, regardless of the remaining depth when the respective field is reached.\n * This behaves exactly like the maxDepth properties of relationship and upload fields.\n *\n * {@link https://payloadcms.com/docs/getting-started/concepts#field-level-max-depth}\n */\n maxDepth?: number\n} & ExclusiveRelationshipFeatureProps\n\nexport const RelationshipFeature = createServerFeature<\n RelationshipFeatureProps,\n RelationshipFeatureProps,\n ExclusiveRelationshipFeatureProps\n>({\n feature: ({ props }) => {\n // we don't need to pass maxDepth to the client, it's only used on the server\n const { maxDepth, ...clientFeatureProps } = props ?? {}\n return {\n ClientFeature: '@payloadcms/richtext-lexical/client#RelationshipFeatureClient',\n clientFeatureProps,\n i18n,\n nodes: [\n createNode({\n graphQLPopulationPromises: [relationshipPopulationPromiseHOC(props)],\n hooks: {\n afterRead: [\n ({\n currentDepth,\n depth,\n draft,\n node,\n overrideAccess,\n populateArg,\n populationPromises,\n req,\n showHiddenFields,\n }) => {\n if (!node?.value) {\n return node\n }\n const collection = req.payload.collections[node?.relationTo]\n\n if (!collection) {\n return node\n }\n // @ts-expect-error\n const id = node?.value?.id || node?.value // for backwards-compatibility\n\n const populateDepth = maxDepth !== undefined && maxDepth < depth ? maxDepth : depth\n\n populationPromises.push(\n populate({\n id,\n collectionSlug: collection.config.slug,\n currentDepth,\n data: node,\n depth: populateDepth,\n draft,\n key: 'value',\n overrideAccess,\n req,\n select:\n populateArg?.[collection.config.slug] ?? collection.config.defaultPopulate,\n showHiddenFields,\n }),\n )\n\n return node\n },\n ],\n },\n node: RelationshipServerNode,\n }),\n ],\n }\n },\n key: 'relationship',\n})\n"],"mappings":"AAEA,SAASA,QAAQ,QAAQ;AACzB,SAASC,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,gCAAgC,QAAQ;AACjD,SAASC,IAAI,QAAQ;AACrB,SAASC,sBAAsB,QAAQ;AAkCvC,OAAO,MAAMC,mBAAA,GAAsBL,mBAAA,CAIjC;EACAM,OAAA,EAASA,CAAC;IAAEC;EAAK,CAAE;IACjB;IACA,MAAM;MAAEC,QAAQ;MAAE,GAAGC;IAAA,CAAoB,GAAGF,KAAA,IAAS,CAAC;IACtD,OAAO;MACLG,aAAA,EAAe;MACfD,kBAAA;MACAN,IAAA;MACAQ,KAAA,EAAO,CACLV,UAAA,CAAW;QACTW,yBAAA,EAA2B,CAACV,gCAAA,CAAiCK,KAAA,EAAO;QACpEM,KAAA,EAAO;UACLC,SAAA,EAAW,CACT,CAAC;YACCC,YAAY;YACZC,KAAK;YACLC,KAAK;YACLC,IAAI;YACJC,cAAc;YACdC,WAAW;YACXC,kBAAkB;YAClBC,GAAG;YACHC;UAAgB,CACjB;YACC,IAAI,CAACL,IAAA,EAAMM,KAAA,EAAO;cAChB,OAAON,IAAA;YACT;YACA,MAAMO,UAAA,GAAaH,GAAA,CAAII,OAAO,CAACC,WAAW,CAACT,IAAA,EAAMU,UAAA,CAAW;YAE5D,IAAI,CAACH,UAAA,EAAY;cACf,OAAOP,IAAA;YACT;YACA;YACA,MAAMW,EAAA,GAAKX,IAAA,EAAMM,KAAA,EAAOK,EAAA,IAAMX,IAAA,EAAMM,KAAA,CAAM;AAAA;YAE1C,MAAMM,aAAA,GAAgBtB,QAAA,KAAauB,SAAA,IAAavB,QAAA,GAAWQ,KAAA,GAAQR,QAAA,GAAWQ,KAAA;YAE9EK,kBAAA,CAAmBW,IAAI,CACrBjC,QAAA,CAAS;cACP8B,EAAA;cACAI,cAAA,EAAgBR,UAAA,CAAWS,MAAM,CAACC,IAAI;cACtCpB,YAAA;cACAqB,IAAA,EAAMlB,IAAA;cACNF,KAAA,EAAOc,aAAA;cACPb,KAAA;cACAoB,GAAA,EAAK;cACLlB,cAAA;cACAG,GAAA;cACAgB,MAAA,EACElB,WAAA,GAAcK,UAAA,CAAWS,MAAM,CAACC,IAAI,CAAC,IAAIV,UAAA,CAAWS,MAAM,CAACK,eAAe;cAC5EhB;YACF;YAGF,OAAOL,IAAA;UACT;QAEJ;QACAA,IAAA,EAAMd;MACR;IAEJ;EACF;EACAiC,GAAA,EAAK;AACP","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["populate","createServerFeature","createNode","relationshipPopulationPromiseHOC","i18n","RelationshipServerNode","createRelationshipNodeJSONSchema","RelationshipFeature","feature","props","maxDepth","clientFeatureProps","ClientFeature","nodes","graphQLPopulationPromises","hooks","afterRead","currentDepth","depth","draft","node","overrideAccess","populateArg","populationPromises","req","showHiddenFields","value","collection","payload","collections","relationTo","id","populateDepth","undefined","push","collectionSlug","config","slug","data","key","select","defaultPopulate","jsonSchema"],"sources":["../../../../src/features/relationship/server/index.ts"],"sourcesContent":["import type { CollectionSlug } from 'payload'\n\nimport { populate } from '../../../populateGraphQL/populate.js'\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { createNode } from '../../typeUtilities.js'\nimport { relationshipPopulationPromiseHOC } from './graphQLPopulationPromise.js'\nimport { i18n } from './i18n.js'\nimport { RelationshipServerNode } from './nodes/RelationshipNode.js'\nimport { createRelationshipNodeJSONSchema } from './schema.js'\n\nexport type { RelationshipData, SerializedRelationshipNode } from './schema.js'\n\nexport type ExclusiveRelationshipFeatureProps =\n | {\n /**\n * The collections that should be disabled. Overrides the `enableRichTextRelationship` property in the collection config.\n * When this property is set, `enabledCollections` will not be available.\n **/\n disabledCollections?: CollectionSlug[]\n\n // Ensures that enabledCollections is not available when disabledCollections is set\n enabledCollections?: never\n }\n | {\n // Ensures that disabledCollections is not available when enabledCollections is set\n disabledCollections?: never\n\n /**\n * The collections that should be enabled. Overrides the `enableRichTextRelationship` property in the collection config\n * When this property is set, `disabledCollections` will not be available.\n **/\n enabledCollections?: CollectionSlug[]\n }\n\nexport type RelationshipFeatureProps = {\n /**\n * Sets a maximum population depth for this relationship, regardless of the remaining depth when the respective field is reached.\n * This behaves exactly like the maxDepth properties of relationship and upload fields.\n *\n * {@link https://payloadcms.com/docs/getting-started/concepts#field-level-max-depth}\n */\n maxDepth?: number\n} & ExclusiveRelationshipFeatureProps\n\nexport const RelationshipFeature = createServerFeature<\n RelationshipFeatureProps,\n RelationshipFeatureProps,\n ExclusiveRelationshipFeatureProps\n>({\n feature: ({ props }) => {\n // we don't need to pass maxDepth to the client, it's only used on the server\n const { maxDepth, ...clientFeatureProps } = props ?? {}\n return {\n ClientFeature: '@payloadcms/richtext-lexical/client#RelationshipFeatureClient',\n clientFeatureProps,\n i18n,\n nodes: [\n createNode({\n graphQLPopulationPromises: [relationshipPopulationPromiseHOC(props)],\n hooks: {\n afterRead: [\n ({\n currentDepth,\n depth,\n draft,\n node,\n overrideAccess,\n populateArg,\n populationPromises,\n req,\n showHiddenFields,\n }) => {\n if (!node?.value) {\n return node\n }\n const collection = req.payload.collections[node?.relationTo]\n\n if (!collection) {\n return node\n }\n // @ts-expect-error\n const id = node?.value?.id || node?.value // for backwards-compatibility\n\n const populateDepth = maxDepth !== undefined && maxDepth < depth ? maxDepth : depth\n\n populationPromises.push(\n populate({\n id,\n collectionSlug: collection.config.slug,\n currentDepth,\n data: node,\n depth: populateDepth,\n draft,\n key: 'value',\n overrideAccess,\n req,\n select:\n populateArg?.[collection.config.slug] ?? collection.config.defaultPopulate,\n showHiddenFields,\n }),\n )\n\n return node\n },\n ],\n },\n jsonSchema: createRelationshipNodeJSONSchema(props),\n node: RelationshipServerNode,\n }),\n ],\n }\n },\n key: 'relationship',\n})\n"],"mappings":"AAEA,SAASA,QAAQ,QAAQ;AACzB,SAASC,mBAAmB,QAAQ;AACpC,SAASC,UAAU,QAAQ;AAC3B,SAASC,gCAAgC,QAAQ;AACjD,SAASC,IAAI,QAAQ;AACrB,SAASC,sBAAsB,QAAQ;AACvC,SAASC,gCAAgC,QAAQ;AAoCjD,OAAO,MAAMC,mBAAA,GAAsBN,mBAAA,CAIjC;EACAO,OAAA,EAASA,CAAC;IAAEC;EAAK,CAAE;IACjB;IACA,MAAM;MAAEC,QAAQ;MAAE,GAAGC;IAAA,CAAoB,GAAGF,KAAA,IAAS,CAAC;IACtD,OAAO;MACLG,aAAA,EAAe;MACfD,kBAAA;MACAP,IAAA;MACAS,KAAA,EAAO,CACLX,UAAA,CAAW;QACTY,yBAAA,EAA2B,CAACX,gCAAA,CAAiCM,KAAA,EAAO;QACpEM,KAAA,EAAO;UACLC,SAAA,EAAW,CACT,CAAC;YACCC,YAAY;YACZC,KAAK;YACLC,KAAK;YACLC,IAAI;YACJC,cAAc;YACdC,WAAW;YACXC,kBAAkB;YAClBC,GAAG;YACHC;UAAgB,CACjB;YACC,IAAI,CAACL,IAAA,EAAMM,KAAA,EAAO;cAChB,OAAON,IAAA;YACT;YACA,MAAMO,UAAA,GAAaH,GAAA,CAAII,OAAO,CAACC,WAAW,CAACT,IAAA,EAAMU,UAAA,CAAW;YAE5D,IAAI,CAACH,UAAA,EAAY;cACf,OAAOP,IAAA;YACT;YACA;YACA,MAAMW,EAAA,GAAKX,IAAA,EAAMM,KAAA,EAAOK,EAAA,IAAMX,IAAA,EAAMM,KAAA,CAAM;AAAA;YAE1C,MAAMM,aAAA,GAAgBtB,QAAA,KAAauB,SAAA,IAAavB,QAAA,GAAWQ,KAAA,GAAQR,QAAA,GAAWQ,KAAA;YAE9EK,kBAAA,CAAmBW,IAAI,CACrBlC,QAAA,CAAS;cACP+B,EAAA;cACAI,cAAA,EAAgBR,UAAA,CAAWS,MAAM,CAACC,IAAI;cACtCpB,YAAA;cACAqB,IAAA,EAAMlB,IAAA;cACNF,KAAA,EAAOc,aAAA;cACPb,KAAA;cACAoB,GAAA,EAAK;cACLlB,cAAA;cACAG,GAAA;cACAgB,MAAA,EACElB,WAAA,GAAcK,UAAA,CAAWS,MAAM,CAACC,IAAI,CAAC,IAAIV,UAAA,CAAWS,MAAM,CAACK,eAAe;cAC5EhB;YACF;YAGF,OAAOL,IAAA;UACT;QAEJ;QACAsB,UAAA,EAAYpC,gCAAA,CAAiCG,KAAA;QAC7CW,IAAA,EAAMf;MACR;IAEJ;EACF;EACAkC,GAAA,EAAK;AACP","ignoreList":[]}
@@ -1,16 +1,7 @@
1
- import type { SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js';
2
- import type { CollectionSlug, DataFromCollectionSlug } from 'payload';
3
1
  import type { JSX } from 'react';
4
2
  import { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js';
5
3
  import { type DOMConversionMap, type DOMExportOutput, type EditorConfig, type ElementFormatType, type LexicalEditor, type LexicalNode, type NodeKey } from 'lexical';
6
- import type { StronglyTypedLeafNode } from '../../../../nodeTypes.js';
7
- export type RelationshipData = {
8
- [TCollectionSlug in CollectionSlug]: {
9
- relationTo: TCollectionSlug;
10
- value: DataFromCollectionSlug<TCollectionSlug> | number | string;
11
- };
12
- }[CollectionSlug];
13
- export type SerializedRelationshipNode = RelationshipData & StronglyTypedLeafNode<SerializedDecoratorBlockNode, 'relationship'>;
4
+ import type { RelationshipData, SerializedRelationshipNode } from '../schema.js';
14
5
  export declare class RelationshipServerNode extends DecoratorBlockNode {
15
6
  __data: RelationshipData;
16
7
  constructor({ data, format, key, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipNode.d.ts","sourceRoot":"","sources":["../../../../../src/features/relationship/server/nodes/RelationshipNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAA;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAEhF,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,OAAO,EACb,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAErE,MAAM,MAAM,gBAAgB,GAAG;KAC5B,eAAe,IAAI,cAAc,GAAG;QACnC,UAAU,EAAE,eAAe,CAAA;QAC3B,KAAK,EAAE,sBAAsB,CAAC,eAAe,CAAC,GAAG,MAAM,GAAG,MAAM,CAAA;KACjE;CACF,CAAC,cAAc,CAAC,CAAA;AAEjB,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GACvD,qBAAqB,CAAC,4BAA4B,EAAE,cAAc,CAAC,CAAA;AAgBrE,qBAAa,sBAAuB,SAAQ,kBAAkB;IAC5D,MAAM,EAAE,gBAAgB,CAAA;gBAEZ,EACV,IAAI,EACJ,MAAM,EACN,GAAG,GACJ,EAAE;QACD,IAAI,EAAE,gBAAgB,CAAA;QACtB,MAAM,CAAC,EAAE,iBAAiB,CAAA;QAC1B,GAAG,CAAC,EAAE,OAAO,CAAA;KACd;WAKe,KAAK,CAAC,IAAI,EAAE,sBAAsB,GAAG,sBAAsB;WAQ3D,OAAO,IAAI,MAAM;WAIjB,SAAS,IAAI,gBAAgB,CAAC,cAAc,CAAC,GAAG,IAAI;WAiBpD,UAAU,CAAC,cAAc,EAAE,0BAA0B,GAAG,sBAAsB;IAc9F,MAAM,CAAC,QAAQ,IAAI,KAAK;IAIf,SAAS,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,WAAW;IAM7C,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO;IAIpE,SAAS,IAAI,eAAe;IAa5B,UAAU,IAAI,0BAA0B;IASjD,OAAO,IAAI,gBAAgB;IAIlB,cAAc,IAAI,MAAM;IAIjC,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;CAItC;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,GAAG,sBAAsB,CAM5F;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,sBAAsB,GAAG,SAAS,GAC5D,IAAI,IAAI,sBAAsB,CAEhC"}
1
+ {"version":3,"file":"RelationshipNode.d.ts","sourceRoot":"","sources":["../../../../../src/features/relationship/server/nodes/RelationshipNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAEhF,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,OAAO,EACb,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAgBhF,qBAAa,sBAAuB,SAAQ,kBAAkB;IAC5D,MAAM,EAAE,gBAAgB,CAAA;IAExB,YAAY,EACV,IAAI,EACJ,MAAM,EACN,GAAG,GACJ,EAAE;QACD,IAAI,EAAE,gBAAgB,CAAA;QACtB,MAAM,CAAC,EAAE,iBAAiB,CAAA;QAC1B,GAAG,CAAC,EAAE,OAAO,CAAA;KACd,EAGA;IAED,OAAgB,KAAK,CAAC,IAAI,EAAE,sBAAsB,GAAG,sBAAsB,CAM1E;IAED,OAAgB,OAAO,IAAI,MAAM,CAEhC;IAED,OAAgB,SAAS,IAAI,gBAAgB,CAAC,cAAc,CAAC,GAAG,IAAI,CAenE;IAED,OAAgB,UAAU,CAAC,cAAc,EAAE,0BAA0B,GAAG,sBAAsB,CAY7F;IAED,MAAM,CAAC,QAAQ,IAAI,KAAK,CAEvB;IAEQ,SAAS,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,WAAW,CAIrD;IAEQ,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAE5E;IAEQ,SAAS,IAAI,eAAe,CAWpC;IAEQ,UAAU,IAAI,0BAA0B,CAOhD;IAED,OAAO,IAAI,gBAAgB,CAE1B;IAEQ,cAAc,IAAI,MAAM,CAEhC;IAED,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAGpC;CACF;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,GAAG,sBAAsB,CAM5F;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,sBAAsB,GAAG,SAAS,GAC5D,IAAI,IAAI,sBAAsB,CAEhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipNode.js","names":["DecoratorBlockNode","addClassNamesToElement","$applyNodeReplacement","$relationshipElementToServerNode","domNode","id","getAttribute","relationTo","node","$createServerRelationshipNode","value","RelationshipServerNode","__data","constructor","data","format","key","clone","__format","__key","getType","importDOM","div","hasAttribute","conversion","priority","importJSON","serializedNode","version","importedData","setFormat","isInline","createDOM","config","element","document","createElement","theme","relationship","decorate","_editor","_config","exportDOM","setAttribute","String","text","createTextNode","getTextContent","append","exportJSON","getData","type","getLatest","setData","writable","getWritable","$isServerRelationshipNode"],"sources":["../../../../../src/features/relationship/server/nodes/RelationshipNode.tsx"],"sourcesContent":["import type { SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport type { CollectionSlug, DataFromCollectionSlug } from 'payload'\nimport type { JSX } from 'react'\n\nimport { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport { addClassNamesToElement } from '@lexical/utils'\nimport {\n $applyNodeReplacement,\n type DOMConversionMap,\n type DOMConversionOutput,\n type DOMExportOutput,\n type EditorConfig,\n type ElementFormatType,\n type LexicalEditor,\n type LexicalNode,\n type NodeKey,\n} from 'lexical'\n\nimport type { StronglyTypedLeafNode } from '../../../../nodeTypes.js'\n\nexport type RelationshipData = {\n [TCollectionSlug in CollectionSlug]: {\n relationTo: TCollectionSlug\n value: DataFromCollectionSlug<TCollectionSlug> | number | string\n }\n}[CollectionSlug]\n\nexport type SerializedRelationshipNode = RelationshipData &\n StronglyTypedLeafNode<SerializedDecoratorBlockNode, 'relationship'>\n\nfunction $relationshipElementToServerNode(domNode: HTMLDivElement): DOMConversionOutput | null {\n const id = domNode.getAttribute('data-lexical-relationship-id')\n const relationTo = domNode.getAttribute('data-lexical-relationship-relationTo')\n\n if (id != null && relationTo != null) {\n const node = $createServerRelationshipNode({\n relationTo,\n value: id,\n })\n return { node }\n }\n return null\n}\n\nexport class RelationshipServerNode extends DecoratorBlockNode {\n __data: RelationshipData\n\n constructor({\n data,\n format,\n key,\n }: {\n data: RelationshipData\n format?: ElementFormatType\n key?: NodeKey\n }) {\n super(format, key)\n this.__data = data\n }\n\n static override clone(node: RelationshipServerNode): RelationshipServerNode {\n return new this({\n data: node.__data,\n format: node.__format,\n key: node.__key,\n })\n }\n\n static override getType(): string {\n return 'relationship'\n }\n\n static override importDOM(): DOMConversionMap<HTMLDivElement> | null {\n return {\n div: (domNode: HTMLDivElement) => {\n if (\n !domNode.hasAttribute('data-lexical-relationship-relationTo') ||\n !domNode.hasAttribute('data-lexical-relationship-id')\n ) {\n return null\n }\n return {\n conversion: $relationshipElementToServerNode,\n priority: 2,\n }\n },\n }\n }\n\n static override importJSON(serializedNode: SerializedRelationshipNode): RelationshipServerNode {\n if (serializedNode.version === 1 && (serializedNode?.value as unknown as { id: string })?.id) {\n serializedNode.value = (serializedNode.value as unknown as { id: string }).id\n }\n\n const importedData: RelationshipData = {\n relationTo: serializedNode.relationTo,\n value: serializedNode.value,\n }\n const node = $createServerRelationshipNode(importedData)\n node.setFormat(serializedNode.format)\n return node\n }\n\n static isInline(): false {\n return false\n }\n\n override createDOM(config?: EditorConfig): HTMLElement {\n const element = document.createElement('div')\n addClassNamesToElement(element, config?.theme?.relationship)\n return element\n }\n\n override decorate(_editor: LexicalEditor, _config: EditorConfig): JSX.Element {\n return null as unknown as JSX.Element\n }\n\n override exportDOM(): DOMExportOutput {\n const element = document.createElement('div')\n element.setAttribute(\n 'data-lexical-relationship-id',\n String(typeof this.__data?.value === 'object' ? this.__data?.value?.id : this.__data?.value),\n )\n element.setAttribute('data-lexical-relationship-relationTo', this.__data?.relationTo)\n\n const text = document.createTextNode(this.getTextContent())\n element.append(text)\n return { element }\n }\n\n override exportJSON(): SerializedRelationshipNode {\n return {\n ...super.exportJSON(),\n ...this.getData(),\n type: 'relationship',\n version: 2,\n }\n }\n\n getData(): RelationshipData {\n return this.getLatest().__data\n }\n\n override getTextContent(): string {\n return `${this.__data?.relationTo} relation to ${typeof this.__data?.value === 'object' ? this.__data?.value?.id : this.__data?.value}`\n }\n\n setData(data: RelationshipData): void {\n const writable = this.getWritable()\n writable.__data = data\n }\n}\n\nexport function $createServerRelationshipNode(data: RelationshipData): RelationshipServerNode {\n return $applyNodeReplacement(\n new RelationshipServerNode({\n data,\n }),\n )\n}\n\nexport function $isServerRelationshipNode(\n node: LexicalNode | null | RelationshipServerNode | undefined,\n): node is RelationshipServerNode {\n return node instanceof RelationshipServerNode\n}\n"],"mappings":"AAIA,SAASA,kBAAkB,QAAQ;AACnC,SAASC,sBAAsB,QAAQ;AACvC,SACEC,qBAAqB,QAShB;AAcP,SAASC,iCAAiCC,OAAuB;EAC/D,MAAMC,EAAA,GAAKD,OAAA,CAAQE,YAAY,CAAC;EAChC,MAAMC,UAAA,GAAaH,OAAA,CAAQE,YAAY,CAAC;EAExC,IAAID,EAAA,IAAM,QAAQE,UAAA,IAAc,MAAM;IACpC,MAAMC,IAAA,GAAOC,6BAAA,CAA8B;MACzCF,UAAA;MACAG,KAAA,EAAOL;IACT;IACA,OAAO;MAAEG;IAAK;EAChB;EACA,OAAO;AACT;AAEA,OAAO,MAAMG,sBAAA,SAA+BX,kBAAA;EAC1CY,MAAA;EAEAC,YAAY;IACVC,IAAI;IACJC,MAAM;IACNC;EAAG,CAKJ,EAAE;IACD,KAAK,CAACD,MAAA,EAAQC,GAAA;IACd,IAAI,CAACJ,MAAM,GAAGE,IAAA;EAChB;EAEA,OAAgBG,MAAMT,IAA4B,EAA0B;IAC1E,OAAO,IAAI,IAAI,CAAC;MACdM,IAAA,EAAMN,IAAA,CAAKI,MAAM;MACjBG,MAAA,EAAQP,IAAA,CAAKU,QAAQ;MACrBF,GAAA,EAAKR,IAAA,CAAKW;IACZ;EACF;EAEA,OAAgBC,QAAA,EAAkB;IAChC,OAAO;EACT;EAEA,OAAgBC,UAAA,EAAqD;IACnE,OAAO;MACLC,GAAA,EAAMlB,OAAA;QACJ,IACE,CAACA,OAAA,CAAQmB,YAAY,CAAC,2CACtB,CAACnB,OAAA,CAAQmB,YAAY,CAAC,iCACtB;UACA,OAAO;QACT;QACA,OAAO;UACLC,UAAA,EAAYrB,gCAAA;UACZsB,QAAA,EAAU;QACZ;MACF;IACF;EACF;EAEA,OAAgBC,WAAWC,cAA0C,EAA0B;IAC7F,IAAIA,cAAA,CAAeC,OAAO,KAAK,KAAMD,cAAA,EAAgBjB,KAAA,EAAqCL,EAAA,EAAI;MAC5FsB,cAAA,CAAejB,KAAK,GAAGiB,cAAC,CAAejB,KAAK,CAA+BL,EAAE;IAC/E;IAEA,MAAMwB,YAAA,GAAiC;MACrCtB,UAAA,EAAYoB,cAAA,CAAepB,UAAU;MACrCG,KAAA,EAAOiB,cAAA,CAAejB;IACxB;IACA,MAAMF,IAAA,GAAOC,6BAAA,CAA8BoB,YAAA;IAC3CrB,IAAA,CAAKsB,SAAS,CAACH,cAAA,CAAeZ,MAAM;IACpC,OAAOP,IAAA;EACT;EAEA,OAAOuB,SAAA,EAAkB;IACvB,OAAO;EACT;EAESC,UAAUC,MAAqB,EAAe;IACrD,MAAMC,OAAA,GAAUC,QAAA,CAASC,aAAa,CAAC;IACvCnC,sBAAA,CAAuBiC,OAAA,EAASD,MAAA,EAAQI,KAAA,EAAOC,YAAA;IAC/C,OAAOJ,OAAA;EACT;EAESK,SAASC,OAAsB,EAAEC,OAAqB,EAAe;IAC5E,OAAO;EACT;EAESC,UAAA,EAA6B;IACpC,MAAMR,OAAA,GAAUC,QAAA,CAASC,aAAa,CAAC;IACvCF,OAAA,CAAQS,YAAY,CAClB,gCACAC,MAAA,CAAO,OAAO,IAAI,CAAChC,MAAM,EAAEF,KAAA,KAAU,WAAW,IAAI,CAACE,MAAM,EAAEF,KAAA,EAAOL,EAAA,GAAK,IAAI,CAACO,MAAM,EAAEF,KAAA;IAExFwB,OAAA,CAAQS,YAAY,CAAC,wCAAwC,IAAI,CAAC/B,MAAM,EAAEL,UAAA;IAE1E,MAAMsC,IAAA,GAAOV,QAAA,CAASW,cAAc,CAAC,IAAI,CAACC,cAAc;IACxDb,OAAA,CAAQc,MAAM,CAACH,IAAA;IACf,OAAO;MAAEX;IAAQ;EACnB;EAESe,WAAA,EAAyC;IAChD,OAAO;MACL,GAAG,KAAK,CAACA,UAAA,EAAY;MACrB,GAAG,IAAI,CAACC,OAAO,EAAE;MACjBC,IAAA,EAAM;MACNvB,OAAA,EAAS;IACX;EACF;EAEAsB,QAAA,EAA4B;IAC1B,OAAO,IAAI,CAACE,SAAS,GAAGxC,MAAM;EAChC;EAESmC,eAAA,EAAyB;IAChC,OAAO,GAAG,IAAI,CAACnC,MAAM,EAAEL,UAAA,gBAA0B,OAAO,IAAI,CAACK,MAAM,EAAEF,KAAA,KAAU,WAAW,IAAI,CAACE,MAAM,EAAEF,KAAA,EAAOL,EAAA,GAAK,IAAI,CAACO,MAAM,EAAEF,KAAA,EAAO;EACzI;EAEA2C,QAAQvC,IAAsB,EAAQ;IACpC,MAAMwC,QAAA,GAAW,IAAI,CAACC,WAAW;IACjCD,QAAA,CAAS1C,MAAM,GAAGE,IAAA;EACpB;AACF;AAEA,OAAO,SAASL,8BAA8BK,IAAsB;EAClE,OAAOZ,qBAAA,CACL,IAAIS,sBAAA,CAAuB;IACzBG;EACF;AAEJ;AAEA,OAAO,SAAS0C,0BACdhD,IAA6D;EAE7D,OAAOA,IAAA,YAAgBG,sBAAA;AACzB","ignoreList":[]}
1
+ {"version":3,"file":"RelationshipNode.js","names":["DecoratorBlockNode","addClassNamesToElement","$applyNodeReplacement","$relationshipElementToServerNode","domNode","id","getAttribute","relationTo","node","$createServerRelationshipNode","value","RelationshipServerNode","__data","constructor","data","format","key","clone","__format","__key","getType","importDOM","div","hasAttribute","conversion","priority","importJSON","serializedNode","version","importedData","setFormat","isInline","createDOM","config","element","document","createElement","theme","relationship","decorate","_editor","_config","exportDOM","setAttribute","String","text","createTextNode","getTextContent","append","exportJSON","getData","type","getLatest","setData","writable","getWritable","$isServerRelationshipNode"],"sources":["../../../../../src/features/relationship/server/nodes/RelationshipNode.tsx"],"sourcesContent":["import type { JSX } from 'react'\n\nimport { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport { addClassNamesToElement } from '@lexical/utils'\nimport {\n $applyNodeReplacement,\n type DOMConversionMap,\n type DOMConversionOutput,\n type DOMExportOutput,\n type EditorConfig,\n type ElementFormatType,\n type LexicalEditor,\n type LexicalNode,\n type NodeKey,\n} from 'lexical'\n\nimport type { RelationshipData, SerializedRelationshipNode } from '../schema.js'\n\nfunction $relationshipElementToServerNode(domNode: HTMLDivElement): DOMConversionOutput | null {\n const id = domNode.getAttribute('data-lexical-relationship-id')\n const relationTo = domNode.getAttribute('data-lexical-relationship-relationTo')\n\n if (id != null && relationTo != null) {\n const node = $createServerRelationshipNode({\n relationTo,\n value: id,\n })\n return { node }\n }\n return null\n}\n\nexport class RelationshipServerNode extends DecoratorBlockNode {\n __data: RelationshipData\n\n constructor({\n data,\n format,\n key,\n }: {\n data: RelationshipData\n format?: ElementFormatType\n key?: NodeKey\n }) {\n super(format, key)\n this.__data = data\n }\n\n static override clone(node: RelationshipServerNode): RelationshipServerNode {\n return new this({\n data: node.__data,\n format: node.__format,\n key: node.__key,\n })\n }\n\n static override getType(): string {\n return 'relationship'\n }\n\n static override importDOM(): DOMConversionMap<HTMLDivElement> | null {\n return {\n div: (domNode: HTMLDivElement) => {\n if (\n !domNode.hasAttribute('data-lexical-relationship-relationTo') ||\n !domNode.hasAttribute('data-lexical-relationship-id')\n ) {\n return null\n }\n return {\n conversion: $relationshipElementToServerNode,\n priority: 2,\n }\n },\n }\n }\n\n static override importJSON(serializedNode: SerializedRelationshipNode): RelationshipServerNode {\n if (serializedNode.version === 1 && (serializedNode?.value as unknown as { id: string })?.id) {\n serializedNode.value = (serializedNode.value as unknown as { id: string }).id\n }\n\n const importedData: RelationshipData = {\n relationTo: serializedNode.relationTo,\n value: serializedNode.value,\n }\n const node = $createServerRelationshipNode(importedData)\n node.setFormat(serializedNode.format)\n return node\n }\n\n static isInline(): false {\n return false\n }\n\n override createDOM(config?: EditorConfig): HTMLElement {\n const element = document.createElement('div')\n addClassNamesToElement(element, config?.theme?.relationship)\n return element\n }\n\n override decorate(_editor: LexicalEditor, _config: EditorConfig): JSX.Element {\n return null as unknown as JSX.Element\n }\n\n override exportDOM(): DOMExportOutput {\n const element = document.createElement('div')\n element.setAttribute(\n 'data-lexical-relationship-id',\n String(typeof this.__data?.value === 'object' ? this.__data?.value?.id : this.__data?.value),\n )\n element.setAttribute('data-lexical-relationship-relationTo', this.__data?.relationTo)\n\n const text = document.createTextNode(this.getTextContent())\n element.append(text)\n return { element }\n }\n\n override exportJSON(): SerializedRelationshipNode {\n return {\n ...super.exportJSON(),\n ...this.getData(),\n type: 'relationship',\n version: 2,\n }\n }\n\n getData(): RelationshipData {\n return this.getLatest().__data\n }\n\n override getTextContent(): string {\n return `${this.__data?.relationTo} relation to ${typeof this.__data?.value === 'object' ? this.__data?.value?.id : this.__data?.value}`\n }\n\n setData(data: RelationshipData): void {\n const writable = this.getWritable()\n writable.__data = data\n }\n}\n\nexport function $createServerRelationshipNode(data: RelationshipData): RelationshipServerNode {\n return $applyNodeReplacement(\n new RelationshipServerNode({\n data,\n }),\n )\n}\n\nexport function $isServerRelationshipNode(\n node: LexicalNode | null | RelationshipServerNode | undefined,\n): node is RelationshipServerNode {\n return node instanceof RelationshipServerNode\n}\n"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ;AACnC,SAASC,sBAAsB,QAAQ;AACvC,SACEC,qBAAqB,QAShB;AAIP,SAASC,iCAAiCC,OAAuB;EAC/D,MAAMC,EAAA,GAAKD,OAAA,CAAQE,YAAY,CAAC;EAChC,MAAMC,UAAA,GAAaH,OAAA,CAAQE,YAAY,CAAC;EAExC,IAAID,EAAA,IAAM,QAAQE,UAAA,IAAc,MAAM;IACpC,MAAMC,IAAA,GAAOC,6BAAA,CAA8B;MACzCF,UAAA;MACAG,KAAA,EAAOL;IACT;IACA,OAAO;MAAEG;IAAK;EAChB;EACA,OAAO;AACT;AAEA,OAAO,MAAMG,sBAAA,SAA+BX,kBAAA;EAC1CY,MAAA;EAEAC,YAAY;IACVC,IAAI;IACJC,MAAM;IACNC;EAAG,CAKJ,EAAE;IACD,KAAK,CAACD,MAAA,EAAQC,GAAA;IACd,IAAI,CAACJ,MAAM,GAAGE,IAAA;EAChB;EAEA,OAAgBG,MAAMT,IAA4B,EAA0B;IAC1E,OAAO,IAAI,IAAI,CAAC;MACdM,IAAA,EAAMN,IAAA,CAAKI,MAAM;MACjBG,MAAA,EAAQP,IAAA,CAAKU,QAAQ;MACrBF,GAAA,EAAKR,IAAA,CAAKW;IACZ;EACF;EAEA,OAAgBC,QAAA,EAAkB;IAChC,OAAO;EACT;EAEA,OAAgBC,UAAA,EAAqD;IACnE,OAAO;MACLC,GAAA,EAAMlB,OAAA;QACJ,IACE,CAACA,OAAA,CAAQmB,YAAY,CAAC,2CACtB,CAACnB,OAAA,CAAQmB,YAAY,CAAC,iCACtB;UACA,OAAO;QACT;QACA,OAAO;UACLC,UAAA,EAAYrB,gCAAA;UACZsB,QAAA,EAAU;QACZ;MACF;IACF;EACF;EAEA,OAAgBC,WAAWC,cAA0C,EAA0B;IAC7F,IAAIA,cAAA,CAAeC,OAAO,KAAK,KAAMD,cAAA,EAAgBjB,KAAA,EAAqCL,EAAA,EAAI;MAC5FsB,cAAA,CAAejB,KAAK,GAAGiB,cAAC,CAAejB,KAAK,CAA+BL,EAAE;IAC/E;IAEA,MAAMwB,YAAA,GAAiC;MACrCtB,UAAA,EAAYoB,cAAA,CAAepB,UAAU;MACrCG,KAAA,EAAOiB,cAAA,CAAejB;IACxB;IACA,MAAMF,IAAA,GAAOC,6BAAA,CAA8BoB,YAAA;IAC3CrB,IAAA,CAAKsB,SAAS,CAACH,cAAA,CAAeZ,MAAM;IACpC,OAAOP,IAAA;EACT;EAEA,OAAOuB,SAAA,EAAkB;IACvB,OAAO;EACT;EAESC,UAAUC,MAAqB,EAAe;IACrD,MAAMC,OAAA,GAAUC,QAAA,CAASC,aAAa,CAAC;IACvCnC,sBAAA,CAAuBiC,OAAA,EAASD,MAAA,EAAQI,KAAA,EAAOC,YAAA;IAC/C,OAAOJ,OAAA;EACT;EAESK,SAASC,OAAsB,EAAEC,OAAqB,EAAe;IAC5E,OAAO;EACT;EAESC,UAAA,EAA6B;IACpC,MAAMR,OAAA,GAAUC,QAAA,CAASC,aAAa,CAAC;IACvCF,OAAA,CAAQS,YAAY,CAClB,gCACAC,MAAA,CAAO,OAAO,IAAI,CAAChC,MAAM,EAAEF,KAAA,KAAU,WAAW,IAAI,CAACE,MAAM,EAAEF,KAAA,EAAOL,EAAA,GAAK,IAAI,CAACO,MAAM,EAAEF,KAAA;IAExFwB,OAAA,CAAQS,YAAY,CAAC,wCAAwC,IAAI,CAAC/B,MAAM,EAAEL,UAAA;IAE1E,MAAMsC,IAAA,GAAOV,QAAA,CAASW,cAAc,CAAC,IAAI,CAACC,cAAc;IACxDb,OAAA,CAAQc,MAAM,CAACH,IAAA;IACf,OAAO;MAAEX;IAAQ;EACnB;EAESe,WAAA,EAAyC;IAChD,OAAO;MACL,GAAG,KAAK,CAACA,UAAA,EAAY;MACrB,GAAG,IAAI,CAACC,OAAO,EAAE;MACjBC,IAAA,EAAM;MACNvB,OAAA,EAAS;IACX;EACF;EAEAsB,QAAA,EAA4B;IAC1B,OAAO,IAAI,CAACE,SAAS,GAAGxC,MAAM;EAChC;EAESmC,eAAA,EAAyB;IAChC,OAAO,GAAG,IAAI,CAACnC,MAAM,EAAEL,UAAA,gBAA0B,OAAO,IAAI,CAACK,MAAM,EAAEF,KAAA,KAAU,WAAW,IAAI,CAACE,MAAM,EAAEF,KAAA,EAAOL,EAAA,GAAK,IAAI,CAACO,MAAM,EAAEF,KAAA,EAAO;EACzI;EAEA2C,QAAQvC,IAAsB,EAAQ;IACpC,MAAMwC,QAAA,GAAW,IAAI,CAACC,WAAW;IACjCD,QAAA,CAAS1C,MAAM,GAAGE,IAAA;EACpB;AACF;AAEA,OAAO,SAASL,8BAA8BK,IAAsB;EAClE,OAAOZ,qBAAA,CACL,IAAIS,sBAAA,CAAuB;IACzBG;EACF;AAEJ;AAEA,OAAO,SAAS0C,0BACdhD,IAA6D;EAE7D,OAAOA,IAAA,YAAgBG,sBAAA;AACzB","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ import type { CollectionSlug, DataFromCollectionSlug, IDTypeForCollectionSlug, UploadCollectionSlug } from 'payload';
2
+ import type { LexicalElementFormat } from '../../../types/nodeTypes.js';
3
+ import type { JSONSchemaFn } from '../../typesServer.js';
4
+ import type { RelationshipFeatureProps } from './index.js';
5
+ export type RelationshipData = {
6
+ [TCollectionSlug in CollectionSlug]: {
7
+ relationTo: TCollectionSlug;
8
+ value: DataFromCollectionSlug<TCollectionSlug> | IDTypeForCollectionSlug<TCollectionSlug>;
9
+ };
10
+ }[CollectionSlug];
11
+ /**
12
+ * Exclude upload collection slugs. This matches runtime behavior, as well as the json schema.
13
+ */
14
+ export type NonUploadCollectionSlug = [Exclude<CollectionSlug, UploadCollectionSlug>] extends [
15
+ never
16
+ ] ? CollectionSlug : Exclude<CollectionSlug, UploadCollectionSlug>;
17
+ export type SerializedRelationshipNode<TSlugs extends CollectionSlug = NonUploadCollectionSlug> = {
18
+ [TSlug in TSlugs]: {
19
+ relationTo: TSlug;
20
+ value: DataFromCollectionSlug<TSlug> | IDTypeForCollectionSlug<TSlug>;
21
+ };
22
+ }[TSlugs] & {
23
+ format: LexicalElementFormat;
24
+ type: 'relationship';
25
+ version: number;
26
+ };
27
+ export declare const createRelationshipNodeJSONSchema: (props: RelationshipFeatureProps | undefined) => JSONSchemaFn;
28
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/server/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAK1D,MAAM,MAAM,gBAAgB,GAAG;KAC5B,eAAe,IAAI,cAAc,GAAG;QACnC,UAAU,EAAE,eAAe,CAAA;QAC3B,KAAK,EAAE,sBAAsB,CAAC,eAAe,CAAC,GAAG,uBAAuB,CAAC,eAAe,CAAC,CAAA;KAC1F;CACF,CAAC,cAAc,CAAC,CAAA;AAEjB;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC,SAAS;IAC5F,KAAK;CACN,GACG,cAAc,GACd,OAAO,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAA;AAEjD,MAAM,MAAM,0BAA0B,CAAC,MAAM,SAAS,cAAc,GAAG,uBAAuB,IAAI;KAC/F,KAAK,IAAI,MAAM,GAAG;QACjB,UAAU,EAAE,KAAK,CAAA;QACjB,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAA;KACtE;CACF,CAAC,MAAM,CAAC,GAAG;IACV,MAAM,EAAE,oBAAoB,CAAA;IAC5B,IAAI,EAAE,cAAc,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AA0BD,eAAO,MAAM,gCAAgC,UACnC,wBAAwB,GAAG,SAAS,KAAG,YAwD9C,CAAA"}
@@ -0,0 +1,97 @@
1
+ import { formatSchema, versionSchema } from '../../../types/jsonSchemaHelpers.js';
2
+ import { filterEnabledRelationshipCollections } from '../shared/filterEnabledRelationshipCollections.js';
3
+ /** MUST stay byte-for-byte in sync with the runtime `SerializedRelationshipNode` declared above. */
4
+ const SERIALIZED_RELATIONSHIP_NODE_TS = `export type SerializedRelationshipNode<TSlugs extends keyof Config['collections']> = {
5
+ type: 'relationship';
6
+ format: LexicalElementFormat;
7
+ version: number;
8
+ } & {
9
+ [TSlug in TSlugs]: {
10
+ relationTo: TSlug;
11
+ value: Config['collections'][TSlug]['id'] | Config['collections'][TSlug];
12
+ };
13
+ }[TSlugs];`;
14
+ /** Input variant of `SerializedRelationshipNode`: `value` is ID-only (you only ever write an ID). */
15
+ const SERIALIZED_RELATIONSHIP_NODE_INPUT_TS = `export type SerializedRelationshipNodeInput<TSlugs extends keyof Config['collections']> = {
16
+ type: 'relationship';
17
+ format: LexicalElementFormat;
18
+ version: number;
19
+ } & {
20
+ [TSlug in TSlugs]: {
21
+ relationTo: TSlug;
22
+ value: Config['collections'][TSlug]['id'];
23
+ };
24
+ }[TSlugs];`;
25
+ export const createRelationshipNodeJSONSchema = props => ({
26
+ collectionIDFieldTypes,
27
+ config,
28
+ typeStringDefinitions,
29
+ variant
30
+ }) => {
31
+ const isInput = variant === 'input';
32
+ typeStringDefinitions.add(isInput ? SERIALIZED_RELATIONSHIP_NODE_INPUT_TS : SERIALIZED_RELATIONSHIP_NODE_TS);
33
+ const enabledCollections = config?.collections ? filterEnabledRelationshipCollections(config.collections, {
34
+ disabledCollections: props?.disabledCollections,
35
+ enabledCollections: props?.enabledCollections,
36
+ uploads: false
37
+ }) : [];
38
+ const variants = enabledCollections.map(collection => {
39
+ const slug = collection.slug;
40
+ const idType = collectionIDFieldTypes[slug] ?? 'string';
41
+ return {
42
+ type: 'object',
43
+ additionalProperties: false,
44
+ properties: {
45
+ type: {
46
+ type: 'string',
47
+ const: 'relationship'
48
+ },
49
+ format: formatSchema,
50
+ relationTo: {
51
+ type: 'string',
52
+ const: slug
53
+ },
54
+ value: isInput ? {
55
+ type: idType,
56
+ description: 'The related document ID.'
57
+ } : {
58
+ description: 'The related document by ID (string or number). Populated to the full document when read at depth > 0.',
59
+ oneOf: [{
60
+ type: idType
61
+ }, {
62
+ $ref: `#/$defs/${slug}`
63
+ }]
64
+ },
65
+ version: versionSchema
66
+ },
67
+ required: ['format', 'relationTo', 'type', 'value', 'version']
68
+ };
69
+ });
70
+ let schema;
71
+ if (variants.length === 0) {
72
+ schema = {
73
+ type: 'object',
74
+ additionalProperties: true,
75
+ properties: {
76
+ type: {
77
+ type: 'string',
78
+ const: 'relationship'
79
+ },
80
+ version: versionSchema
81
+ },
82
+ required: ['type', 'version']
83
+ };
84
+ } else {
85
+ const slugUnion = enabledCollections.map(c => `'${c.slug}'`).join(' | ');
86
+ const baseSchema = variants.length === 1 ? variants[0] : {
87
+ oneOf: variants
88
+ };
89
+ const tsName = isInput ? 'SerializedRelationshipNodeInput' : 'SerializedRelationshipNode';
90
+ schema = {
91
+ ...baseSchema,
92
+ tsType: `${tsName}<${slugUnion}>`
93
+ };
94
+ }
95
+ return schema;
96
+ };
97
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","names":["formatSchema","versionSchema","filterEnabledRelationshipCollections","SERIALIZED_RELATIONSHIP_NODE_TS","SERIALIZED_RELATIONSHIP_NODE_INPUT_TS","createRelationshipNodeJSONSchema","props","collectionIDFieldTypes","config","typeStringDefinitions","variant","isInput","add","enabledCollections","collections","disabledCollections","uploads","variants","map","collection","slug","idType","type","additionalProperties","properties","const","format","relationTo","value","description","oneOf","$ref","version","required","schema","length","slugUnion","c","join","baseSchema","tsName","tsType"],"sources":["../../../../src/features/relationship/server/schema.ts"],"sourcesContent":["import type { JSONSchema4 } from 'json-schema'\nimport type {\n CollectionSlug,\n DataFromCollectionSlug,\n IDTypeForCollectionSlug,\n UploadCollectionSlug,\n} from 'payload'\n\nimport type { LexicalElementFormat } from '../../../types/nodeTypes.js'\nimport type { JSONSchemaFn } from '../../typesServer.js'\nimport type { RelationshipFeatureProps } from './index.js'\n\nimport { formatSchema, versionSchema } from '../../../types/jsonSchemaHelpers.js'\nimport { filterEnabledRelationshipCollections } from '../shared/filterEnabledRelationshipCollections.js'\n\nexport type RelationshipData = {\n [TCollectionSlug in CollectionSlug]: {\n relationTo: TCollectionSlug\n value: DataFromCollectionSlug<TCollectionSlug> | IDTypeForCollectionSlug<TCollectionSlug>\n }\n}[CollectionSlug]\n\n/**\n * Exclude upload collection slugs. This matches runtime behavior, as well as the json schema.\n */\nexport type NonUploadCollectionSlug = [Exclude<CollectionSlug, UploadCollectionSlug>] extends [\n never,\n]\n ? CollectionSlug\n : Exclude<CollectionSlug, UploadCollectionSlug>\n\nexport type SerializedRelationshipNode<TSlugs extends CollectionSlug = NonUploadCollectionSlug> = {\n [TSlug in TSlugs]: {\n relationTo: TSlug\n value: DataFromCollectionSlug<TSlug> | IDTypeForCollectionSlug<TSlug>\n }\n}[TSlugs] & {\n format: LexicalElementFormat\n type: 'relationship'\n version: number\n}\n\n/** MUST stay byte-for-byte in sync with the runtime `SerializedRelationshipNode` declared above. */\nconst SERIALIZED_RELATIONSHIP_NODE_TS = `export type SerializedRelationshipNode<TSlugs extends keyof Config['collections']> = {\n type: 'relationship';\n format: LexicalElementFormat;\n version: number;\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 `SerializedRelationshipNode`: `value` is ID-only (you only ever write an ID). */\nconst SERIALIZED_RELATIONSHIP_NODE_INPUT_TS = `export type SerializedRelationshipNodeInput<TSlugs extends keyof Config['collections']> = {\n type: 'relationship';\n format: LexicalElementFormat;\n version: number;\n} & {\n [TSlug in TSlugs]: {\n relationTo: TSlug;\n value: Config['collections'][TSlug]['id'];\n };\n}[TSlugs];`\n\nexport const createRelationshipNodeJSONSchema =\n (props: RelationshipFeatureProps | undefined): JSONSchemaFn =>\n ({ collectionIDFieldTypes, config, typeStringDefinitions, variant }) => {\n const isInput = variant === 'input'\n typeStringDefinitions.add(\n isInput ? SERIALIZED_RELATIONSHIP_NODE_INPUT_TS : SERIALIZED_RELATIONSHIP_NODE_TS,\n )\n const enabledCollections = config?.collections\n ? filterEnabledRelationshipCollections(config.collections, {\n disabledCollections: props?.disabledCollections,\n enabledCollections: props?.enabledCollections,\n uploads: false,\n })\n : []\n\n const variants: JSONSchema4[] = enabledCollections.map((collection) => {\n const slug = collection.slug\n const idType: 'number' | 'string' = collectionIDFieldTypes[slug] ?? 'string'\n return {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: { type: 'string', const: 'relationship' },\n format: formatSchema,\n relationTo: { type: 'string', const: slug },\n value: isInput\n ? { type: idType, description: 'The related document ID.' }\n : {\n description:\n 'The related document by ID (string or number). Populated to the full document when read at depth > 0.',\n oneOf: [{ type: idType }, { $ref: `#/$defs/${slug}` }],\n },\n version: versionSchema,\n },\n required: ['format', 'relationTo', 'type', 'value', 'version'],\n }\n })\n\n let schema: JSONSchema4\n if (variants.length === 0) {\n schema = {\n type: 'object',\n additionalProperties: true,\n properties: {\n type: { type: 'string', const: 'relationship' },\n version: versionSchema,\n },\n required: ['type', 'version'],\n }\n } else {\n const slugUnion = enabledCollections.map((c) => `'${c.slug}'`).join(' | ')\n const baseSchema: JSONSchema4 = variants.length === 1 ? variants[0]! : { oneOf: variants }\n const tsName = isInput ? 'SerializedRelationshipNodeInput' : 'SerializedRelationshipNode'\n schema = { ...baseSchema, tsType: `${tsName}<${slugUnion}>` }\n }\n\n return schema\n }\n"],"mappings":"AAYA,SAASA,YAAY,EAAEC,aAAa,QAAQ;AAC5C,SAASC,oCAAoC,QAAQ;AA6BrD;AACA,MAAMC,+BAAA,GAAkC;;;;;;;;;WAS7B;AAEX;AACA,MAAMC,qCAAA,GAAwC;;;;;;;;;WASnC;AAEX,OAAO,MAAMC,gCAAA,GACVC,KAAA,IACD,CAAC;EAAEC,sBAAsB;EAAEC,MAAM;EAAEC,qBAAqB;EAAEC;AAAO,CAAE;EACjE,MAAMC,OAAA,GAAUD,OAAA,KAAY;EAC5BD,qBAAA,CAAsBG,GAAG,CACvBD,OAAA,GAAUP,qCAAA,GAAwCD,+BAAA;EAEpD,MAAMU,kBAAA,GAAqBL,MAAA,EAAQM,WAAA,GAC/BZ,oCAAA,CAAqCM,MAAA,CAAOM,WAAW,EAAE;IACvDC,mBAAA,EAAqBT,KAAA,EAAOS,mBAAA;IAC5BF,kBAAA,EAAoBP,KAAA,EAAOO,kBAAA;IAC3BG,OAAA,EAAS;EACX,KACA,EAAE;EAEN,MAAMC,QAAA,GAA0BJ,kBAAA,CAAmBK,GAAG,CAAEC,UAAA;IACtD,MAAMC,IAAA,GAAOD,UAAA,CAAWC,IAAI;IAC5B,MAAMC,MAAA,GAA8Bd,sBAAsB,CAACa,IAAA,CAAK,IAAI;IACpE,OAAO;MACLE,IAAA,EAAM;MACNC,oBAAA,EAAsB;MACtBC,UAAA,EAAY;QACVF,IAAA,EAAM;UAAEA,IAAA,EAAM;UAAUG,KAAA,EAAO;QAAe;QAC9CC,MAAA,EAAQ1B,YAAA;QACR2B,UAAA,EAAY;UAAEL,IAAA,EAAM;UAAUG,KAAA,EAAOL;QAAK;QAC1CQ,KAAA,EAAOjB,OAAA,GACH;UAAEW,IAAA,EAAMD,MAAA;UAAQQ,WAAA,EAAa;QAA2B,IACxD;UACEA,WAAA,EACE;UACFC,KAAA,EAAO,CAAC;YAAER,IAAA,EAAMD;UAAO,GAAG;YAAEU,IAAA,EAAM,WAAWX,IAAA;UAAO;QACtD;QACJY,OAAA,EAAS/B;MACX;MACAgC,QAAA,EAAU,CAAC,UAAU,cAAc,QAAQ,SAAS;IACtD;EACF;EAEA,IAAIC,MAAA;EACJ,IAAIjB,QAAA,CAASkB,MAAM,KAAK,GAAG;IACzBD,MAAA,GAAS;MACPZ,IAAA,EAAM;MACNC,oBAAA,EAAsB;MACtBC,UAAA,EAAY;QACVF,IAAA,EAAM;UAAEA,IAAA,EAAM;UAAUG,KAAA,EAAO;QAAe;QAC9CO,OAAA,EAAS/B;MACX;MACAgC,QAAA,EAAU,CAAC,QAAQ;IACrB;EACF,OAAO;IACL,MAAMG,SAAA,GAAYvB,kBAAA,CAAmBK,GAAG,CAAEmB,CAAA,IAAM,IAAIA,CAAA,CAAEjB,IAAI,GAAG,EAAEkB,IAAI,CAAC;IACpE,MAAMC,UAAA,GAA0BtB,QAAA,CAASkB,MAAM,KAAK,IAAIlB,QAAQ,CAAC,EAAE,GAAI;MAAEa,KAAA,EAAOb;IAAS;IACzF,MAAMuB,MAAA,GAAS7B,OAAA,GAAU,oCAAoC;IAC7DuB,MAAA,GAAS;MAAE,GAAGK,UAAU;MAAEE,MAAA,EAAQ,GAAGD,MAAA,IAAUJ,SAAA;IAAa;EAC9D;EAEA,OAAOF,MAAA;AACT","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ type CollectionLike = {
2
+ admin?: {
3
+ enableRichTextRelationship?: boolean;
4
+ };
5
+ slug: string;
6
+ upload?: unknown;
7
+ };
8
+ export type FilterEnabledRelationshipCollectionsOptions = {
9
+ /** `disabledCollections` feature prop — slug blacklist. */
10
+ disabledCollections?: readonly string[];
11
+ /** `enabledCollections` feature prop — slug whitelist. */
12
+ enabledCollections?: readonly string[];
13
+ /** When `true`, only upload-enabled collections; when `false`, only non-upload ones. */
14
+ uploads: boolean;
15
+ /**
16
+ * Slugs the current user can see, supplied by the client at runtime.
17
+ * Server-side type generation passes `undefined` to skip the check.
18
+ */
19
+ visibleSlugs?: readonly string[];
20
+ };
21
+ export declare const filterEnabledRelationshipCollections: <TCollection extends CollectionLike>(collections: readonly TCollection[], { disabledCollections, enabledCollections, uploads, visibleSlugs, }: FilterEnabledRelationshipCollectionsOptions) => TCollection[];
22
+ export {};
23
+ //# sourceMappingURL=filterEnabledRelationshipCollections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterEnabledRelationshipCollections.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/shared/filterEnabledRelationshipCollections.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE;QACN,0BAA0B,CAAC,EAAE,OAAO,CAAA;KACrC,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,2CAA2C,GAAG;IACxD,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACvC,0DAA0D;IAC1D,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,wFAAwF;IACxF,OAAO,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,oCAAoC,GAAI,WAAW,SAAS,cAAc,eACxE,SAAS,WAAW,EAAE,uEAMhC,2CAA2C,KAC7C,WAAW,EA4Bb,CAAA"}
@@ -0,0 +1,34 @@
1
+ export const filterEnabledRelationshipCollections = (collections, {
2
+ disabledCollections,
3
+ enabledCollections,
4
+ uploads,
5
+ visibleSlugs
6
+ }) => {
7
+ const whitelistSet = enabledCollections?.length ? new Set(enabledCollections) : null;
8
+ const blacklistSet = disabledCollections?.length ? new Set(disabledCollections) : null;
9
+ return collections.filter(collection => {
10
+ const {
11
+ slug,
12
+ admin,
13
+ upload
14
+ } = collection;
15
+ if (visibleSlugs && !visibleSlugs.includes(slug)) {
16
+ return false;
17
+ }
18
+ if (uploads) {
19
+ if (!admin?.enableRichTextRelationship || !upload) {
20
+ return false;
21
+ }
22
+ } else if (upload || !admin?.enableRichTextRelationship) {
23
+ return false;
24
+ }
25
+ if (whitelistSet && !whitelistSet.has(slug)) {
26
+ return false;
27
+ }
28
+ if (blacklistSet && blacklistSet.has(slug)) {
29
+ return false;
30
+ }
31
+ return true;
32
+ });
33
+ };
34
+ //# sourceMappingURL=filterEnabledRelationshipCollections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterEnabledRelationshipCollections.js","names":["filterEnabledRelationshipCollections","collections","disabledCollections","enabledCollections","uploads","visibleSlugs","whitelistSet","length","Set","blacklistSet","filter","collection","slug","admin","upload","includes","enableRichTextRelationship","has"],"sources":["../../../../src/features/relationship/shared/filterEnabledRelationshipCollections.ts"],"sourcesContent":["type CollectionLike = {\n admin?: {\n enableRichTextRelationship?: boolean\n }\n slug: string\n upload?: unknown\n}\n\nexport type FilterEnabledRelationshipCollectionsOptions = {\n /** `disabledCollections` feature prop — slug blacklist. */\n disabledCollections?: readonly string[]\n /** `enabledCollections` feature prop — slug whitelist. */\n enabledCollections?: readonly string[]\n /** When `true`, only upload-enabled collections; when `false`, only non-upload ones. */\n uploads: boolean\n /**\n * Slugs the current user can see, supplied by the client at runtime.\n * Server-side type generation passes `undefined` to skip the check.\n */\n visibleSlugs?: readonly string[]\n}\n\nexport const filterEnabledRelationshipCollections = <TCollection extends CollectionLike>(\n collections: readonly TCollection[],\n {\n disabledCollections,\n enabledCollections,\n uploads,\n visibleSlugs,\n }: FilterEnabledRelationshipCollectionsOptions,\n): TCollection[] => {\n const whitelistSet = enabledCollections?.length ? new Set(enabledCollections) : null\n const blacklistSet = disabledCollections?.length ? new Set(disabledCollections) : null\n\n return collections.filter((collection) => {\n const { slug, admin, upload } = collection\n\n if (visibleSlugs && !visibleSlugs.includes(slug)) {\n return false\n }\n\n if (uploads) {\n if (!admin?.enableRichTextRelationship || !upload) {\n return false\n }\n } else if (upload || !admin?.enableRichTextRelationship) {\n return false\n }\n\n if (whitelistSet && !whitelistSet.has(slug)) {\n return false\n }\n if (blacklistSet && blacklistSet.has(slug)) {\n return false\n }\n\n return true\n })\n}\n"],"mappings":"AAsBA,OAAO,MAAMA,oCAAA,GAAuCA,CAClDC,WAAA,EACA;EACEC,mBAAmB;EACnBC,kBAAkB;EAClBC,OAAO;EACPC;AAAY,CACgC;EAE9C,MAAMC,YAAA,GAAeH,kBAAA,EAAoBI,MAAA,GAAS,IAAIC,GAAA,CAAIL,kBAAA,IAAsB;EAChF,MAAMM,YAAA,GAAeP,mBAAA,EAAqBK,MAAA,GAAS,IAAIC,GAAA,CAAIN,mBAAA,IAAuB;EAElF,OAAOD,WAAA,CAAYS,MAAM,CAAEC,UAAA;IACzB,MAAM;MAAEC,IAAI;MAAEC,KAAK;MAAEC;IAAM,CAAE,GAAGH,UAAA;IAEhC,IAAIN,YAAA,IAAgB,CAACA,YAAA,CAAaU,QAAQ,CAACH,IAAA,GAAO;MAChD,OAAO;IACT;IAEA,IAAIR,OAAA,EAAS;MACX,IAAI,CAACS,KAAA,EAAOG,0BAAA,IAA8B,CAACF,MAAA,EAAQ;QACjD,OAAO;MACT;IACF,OAAO,IAAIA,MAAA,IAAU,CAACD,KAAA,EAAOG,0BAAA,EAA4B;MACvD,OAAO;IACT;IAEA,IAAIV,YAAA,IAAgB,CAACA,YAAA,CAAaW,GAAG,CAACL,IAAA,GAAO;MAC3C,OAAO;IACT;IACA,IAAIH,YAAA,IAAgBA,YAAA,CAAaQ,GAAG,CAACL,IAAA,GAAO;MAC1C,OAAO;IACT;IAEA,OAAO;EACT;AACF","ignoreList":[]}
@@ -43,7 +43,7 @@ const toolbarGroups = (props, stateMap) => {
43
43
  type: 'dropdown',
44
44
  ChildComponent: () => /*#__PURE__*/_jsx(TextStateIcon, {
45
45
  css: {
46
- color: 'var(--theme-elevation-600)'
46
+ color: 'var(--color-icon-secondary)'
47
47
  }
48
48
  }),
49
49
  items: [...clearStyle, ...items],
@@ -1 +1 @@
1
- {"version":3,"file":"feature.client.js","names":["TextStateIcon","createClientFeature","registerTextStates","setTextState","StatePlugin","toolbarGroups","props","stateMap","items","stateKey","state","key","stateValue","meta","push","ChildComponent","_jsx","css","label","onSelect","editor","clearStyle","i18n","t","undefined","order","type","color","TextStateFeatureClient","plugins","Component","position","toolbarFixed","groups","toolbarInline"],"sources":["../../../src/features/textState/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport type { ToolbarDropdownGroup, ToolbarGroup } from '../toolbars/types.js'\nimport type { TextStateFeatureProps } from './feature.server.js'\n\nimport { TextStateIcon } from '../../lexical/ui/icons/TextState/index.js'\nimport { createClientFeature } from '../../utilities/createClientFeature.js'\nimport { registerTextStates, setTextState, type StateMap, StatePlugin } from './textState.js'\n\nconst toolbarGroups = (props: TextStateFeatureProps, stateMap: StateMap): ToolbarGroup[] => {\n const items: ToolbarDropdownGroup['items'] = []\n\n for (const stateKey in props.state) {\n const key = props.state[stateKey]!\n for (const stateValue in key) {\n const meta = key[stateValue]!\n items.push({\n ChildComponent: () => <TextStateIcon css={meta.css} />,\n key: stateValue,\n label: meta.label,\n onSelect: ({ editor }) => {\n setTextState(editor, stateMap, stateKey, stateValue)\n },\n })\n }\n }\n\n const clearStyle: ToolbarDropdownGroup['items'] = [\n {\n ChildComponent: () => <TextStateIcon />,\n key: `clear-style`,\n label: ({ i18n }) => i18n.t('lexical:textState:defaultStyle'),\n onSelect: ({ editor }) => {\n for (const stateKey in props.state) {\n setTextState(editor, stateMap, stateKey, undefined)\n }\n },\n order: 1,\n },\n ]\n\n return [\n {\n type: 'dropdown',\n ChildComponent: () => <TextStateIcon css={{ color: 'var(--theme-elevation-600)' }} />,\n items: [...clearStyle, ...items],\n key: 'textState',\n order: 30,\n },\n ]\n}\n\nexport const TextStateFeatureClient = createClientFeature<TextStateFeatureProps>(({ props }) => {\n const stateMap = registerTextStates(props.state)\n return {\n plugins: [\n {\n Component: () => StatePlugin({ stateMap }),\n position: 'normal',\n },\n ],\n toolbarFixed: {\n groups: toolbarGroups(props, stateMap),\n },\n toolbarInline: {\n groups: toolbarGroups(props, stateMap),\n },\n }\n})\n"],"mappings":"AAAA;;;AAKA,SAASA,aAAa,QAAQ;AAC9B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,kBAAkB,EAAEC,YAAY,EAAiBC,WAAW,QAAQ;AAE7E,MAAMC,aAAA,GAAgBA,CAACC,KAAA,EAA8BC,QAAA;EACnD,MAAMC,KAAA,GAAuC,EAAE;EAE/C,KAAK,MAAMC,QAAA,IAAYH,KAAA,CAAMI,KAAK,EAAE;IAClC,MAAMC,GAAA,GAAML,KAAA,CAAMI,KAAK,CAACD,QAAA,CAAS;IACjC,KAAK,MAAMG,UAAA,IAAcD,GAAA,EAAK;MAC5B,MAAME,IAAA,GAAOF,GAAG,CAACC,UAAA,CAAW;MAC5BJ,KAAA,CAAMM,IAAI,CAAC;QACTC,cAAA,EAAgBA,CAAA,kBAAMC,IAAA,CAAChB,aAAA;UAAciB,GAAA,EAAKJ,IAAA,CAAKI;;QAC/CN,GAAA,EAAKC,UAAA;QACLM,KAAA,EAAOL,IAAA,CAAKK,KAAK;QACjBC,QAAA,EAAUA,CAAC;UAAEC;QAAM,CAAE;UACnBjB,YAAA,CAAaiB,MAAA,EAAQb,QAAA,EAAUE,QAAA,EAAUG,UAAA;QAC3C;MACF;IACF;EACF;EAEA,MAAMS,UAAA,GAA4C,CAChD;IACEN,cAAA,EAAgBA,CAAA,kBAAMC,IAAA,CAAChB,aAAA;IACvBW,GAAA,EAAK,aAAa;IAClBO,KAAA,EAAOA,CAAC;MAAEI;IAAI,CAAE,KAAKA,IAAA,CAAKC,CAAC,CAAC;IAC5BJ,QAAA,EAAUA,CAAC;MAAEC;IAAM,CAAE;MACnB,KAAK,MAAMX,QAAA,IAAYH,KAAA,CAAMI,KAAK,EAAE;QAClCP,YAAA,CAAaiB,MAAA,EAAQb,QAAA,EAAUE,QAAA,EAAUe,SAAA;MAC3C;IACF;IACAC,KAAA,EAAO;EACT,EACD;EAED,OAAO,CACL;IACEC,IAAA,EAAM;IACNX,cAAA,EAAgBA,CAAA,kBAAMC,IAAA,CAAChB,aAAA;MAAciB,GAAA,EAAK;QAAEU,KAAA,EAAO;MAA6B;;IAChFnB,KAAA,EAAO,C,GAAIa,UAAA,E,GAAeb,KAAA,CAAM;IAChCG,GAAA,EAAK;IACLc,KAAA,EAAO;EACT,EACD;AACH;AAEA,OAAO,MAAMG,sBAAA,GAAyB3B,mBAAA,CAA2C,CAAC;EAAEK;AAAK,CAAE;EACzF,MAAMC,QAAA,GAAWL,kBAAA,CAAmBI,KAAA,CAAMI,KAAK;EAC/C,OAAO;IACLmB,OAAA,EAAS,CACP;MACEC,SAAA,EAAWA,CAAA,KAAM1B,WAAA,CAAY;QAAEG;MAAS;MACxCwB,QAAA,EAAU;IACZ,EACD;IACDC,YAAA,EAAc;MACZC,MAAA,EAAQ5B,aAAA,CAAcC,KAAA,EAAOC,QAAA;IAC/B;IACA2B,aAAA,EAAe;MACbD,MAAA,EAAQ5B,aAAA,CAAcC,KAAA,EAAOC,QAAA;IAC/B;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"file":"feature.client.js","names":["TextStateIcon","createClientFeature","registerTextStates","setTextState","StatePlugin","toolbarGroups","props","stateMap","items","stateKey","state","key","stateValue","meta","push","ChildComponent","_jsx","css","label","onSelect","editor","clearStyle","i18n","t","undefined","order","type","color","TextStateFeatureClient","plugins","Component","position","toolbarFixed","groups","toolbarInline"],"sources":["../../../src/features/textState/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport type { ToolbarDropdownGroup, ToolbarGroup } from '../toolbars/types.js'\nimport type { TextStateFeatureProps } from './feature.server.js'\n\nimport { TextStateIcon } from '../../lexical/ui/icons/TextState/index.js'\nimport { createClientFeature } from '../../utilities/createClientFeature.js'\nimport { registerTextStates, setTextState, type StateMap, StatePlugin } from './textState.js'\n\nconst toolbarGroups = (props: TextStateFeatureProps, stateMap: StateMap): ToolbarGroup[] => {\n const items: ToolbarDropdownGroup['items'] = []\n\n for (const stateKey in props.state) {\n const key = props.state[stateKey]!\n for (const stateValue in key) {\n const meta = key[stateValue]!\n items.push({\n ChildComponent: () => <TextStateIcon css={meta.css} />,\n key: stateValue,\n label: meta.label,\n onSelect: ({ editor }) => {\n setTextState(editor, stateMap, stateKey, stateValue)\n },\n })\n }\n }\n\n const clearStyle: ToolbarDropdownGroup['items'] = [\n {\n ChildComponent: () => <TextStateIcon />,\n key: `clear-style`,\n label: ({ i18n }) => i18n.t('lexical:textState:defaultStyle'),\n onSelect: ({ editor }) => {\n for (const stateKey in props.state) {\n setTextState(editor, stateMap, stateKey, undefined)\n }\n },\n order: 1,\n },\n ]\n\n return [\n {\n type: 'dropdown',\n ChildComponent: () => <TextStateIcon css={{ color: 'var(--color-icon-secondary)' }} />,\n items: [...clearStyle, ...items],\n key: 'textState',\n order: 30,\n },\n ]\n}\n\nexport const TextStateFeatureClient = createClientFeature<TextStateFeatureProps>(({ props }) => {\n const stateMap = registerTextStates(props.state)\n return {\n plugins: [\n {\n Component: () => StatePlugin({ stateMap }),\n position: 'normal',\n },\n ],\n toolbarFixed: {\n groups: toolbarGroups(props, stateMap),\n },\n toolbarInline: {\n groups: toolbarGroups(props, stateMap),\n },\n }\n})\n"],"mappings":"AAAA;;;AAKA,SAASA,aAAa,QAAQ;AAC9B,SAASC,mBAAmB,QAAQ;AACpC,SAASC,kBAAkB,EAAEC,YAAY,EAAiBC,WAAW,QAAQ;AAE7E,MAAMC,aAAA,GAAgBA,CAACC,KAAA,EAA8BC,QAAA;EACnD,MAAMC,KAAA,GAAuC,EAAE;EAE/C,KAAK,MAAMC,QAAA,IAAYH,KAAA,CAAMI,KAAK,EAAE;IAClC,MAAMC,GAAA,GAAML,KAAA,CAAMI,KAAK,CAACD,QAAA,CAAS;IACjC,KAAK,MAAMG,UAAA,IAAcD,GAAA,EAAK;MAC5B,MAAME,IAAA,GAAOF,GAAG,CAACC,UAAA,CAAW;MAC5BJ,KAAA,CAAMM,IAAI,CAAC;QACTC,cAAA,EAAgBA,CAAA,kBAAMC,IAAA,CAAChB,aAAA;UAAciB,GAAA,EAAKJ,IAAA,CAAKI;;QAC/CN,GAAA,EAAKC,UAAA;QACLM,KAAA,EAAOL,IAAA,CAAKK,KAAK;QACjBC,QAAA,EAAUA,CAAC;UAAEC;QAAM,CAAE;UACnBjB,YAAA,CAAaiB,MAAA,EAAQb,QAAA,EAAUE,QAAA,EAAUG,UAAA;QAC3C;MACF;IACF;EACF;EAEA,MAAMS,UAAA,GAA4C,CAChD;IACEN,cAAA,EAAgBA,CAAA,kBAAMC,IAAA,CAAChB,aAAA;IACvBW,GAAA,EAAK,aAAa;IAClBO,KAAA,EAAOA,CAAC;MAAEI;IAAI,CAAE,KAAKA,IAAA,CAAKC,CAAC,CAAC;IAC5BJ,QAAA,EAAUA,CAAC;MAAEC;IAAM,CAAE;MACnB,KAAK,MAAMX,QAAA,IAAYH,KAAA,CAAMI,KAAK,EAAE;QAClCP,YAAA,CAAaiB,MAAA,EAAQb,QAAA,EAAUE,QAAA,EAAUe,SAAA;MAC3C;IACF;IACAC,KAAA,EAAO;EACT,EACD;EAED,OAAO,CACL;IACEC,IAAA,EAAM;IACNX,cAAA,EAAgBA,CAAA,kBAAMC,IAAA,CAAChB,aAAA;MAAciB,GAAA,EAAK;QAAEU,KAAA,EAAO;MAA8B;;IACjFnB,KAAA,EAAO,C,GAAIa,UAAA,E,GAAeb,KAAA,CAAM;IAChCG,GAAA,EAAK;IACLc,KAAA,EAAO;EACT,EACD;AACH;AAEA,OAAO,MAAMG,sBAAA,GAAyB3B,mBAAA,CAA2C,CAAC;EAAEK;AAAK,CAAE;EACzF,MAAMC,QAAA,GAAWL,kBAAA,CAAmBI,KAAA,CAAMI,KAAK;EAC/C,OAAO;IACLmB,OAAA,EAAS,CACP;MACEC,SAAA,EAAWA,CAAA,KAAM1B,WAAA,CAAY;QAAEG;MAAS;MACxCwB,QAAA,EAAU;IACZ,EACD;IACDC,YAAA,EAAc;MACZC,MAAA,EAAQ5B,aAAA,CAAcC,KAAA,EAAOC,QAAA;IAC/B;IACA2B,aAAA,EAAe;MACbD,MAAA,EAAQ5B,aAAA,CAAcC,KAAA,EAAOC,QAAA;IAC/B;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,85 @@
1
+ @layer payload-default {
2
+ .fixed-toolbar.fixed-toolbar--hide {
3
+ visibility: hidden;
4
+ pointer-events: none;
5
+ user-select: none;
6
+ }
7
+
8
+ .fixed-toolbar {
9
+ display: flex;
10
+ flex-wrap: wrap;
11
+ align-items: center;
12
+ padding: 0 var(--spacer-2);
13
+ gap: var(--spacer-2);
14
+ vertical-align: middle;
15
+ position: sticky;
16
+ z-index: 2;
17
+ top: var(--doc-controls-height);
18
+ border: var(--stroke-width-small) solid var(--lexical-border-color);
19
+ border-collapse: unset;
20
+ border-radius: var(--radius-medium) var(--radius-medium) 0 0;
21
+ transform: translateY(var(--stroke-width-small));
22
+
23
+ min-height: var(--spacer-6);
24
+
25
+ &:before,
26
+ &:after {
27
+ content: ' ';
28
+ position: absolute;
29
+ top: 0;
30
+ inset-inline-end: 0;
31
+ bottom: 0;
32
+ inset-inline-start: 0;
33
+ border-radius: inherit;
34
+ }
35
+
36
+ &:before {
37
+ background: var(--color-bg);
38
+ opacity: 0.75;
39
+ }
40
+
41
+ &:after {
42
+ backdrop-filter: blur(8px);
43
+ }
44
+
45
+ + .editor-container {
46
+ border-radius: 0 0 var(--radius-medium) var(--radius-medium) !important;
47
+
48
+ > .editor-scroller > .editor {
49
+ --content-editable-padding-block-start: var(--spacer-2);
50
+
51
+ > .ContentEditable__root {
52
+ padding-top: var(--spacer-2);
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ .fixed-toolbar__group {
59
+ display: flex;
60
+ flex-wrap: wrap;
61
+ align-items: center;
62
+ gap: var(--spacer-2);
63
+ align-self: stretch;
64
+ z-index: 1;
65
+
66
+ .divider {
67
+ width: var(--stroke-width-small);
68
+ align-self: stretch;
69
+ background-color: var(--lexical-border-color);
70
+ }
71
+ }
72
+
73
+ .rich-text-lexical--show-gutter {
74
+ .fixed-toolbar {
75
+ + .editor-container {
76
+ > .editor-scroller > .editor {
77
+ > .ContentEditable__root::before {
78
+ top: var(--spacer-4) !important;
79
+ height: calc(100% - var(--spacer-4) - 8px) !important;
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
@@ -1,5 +1,5 @@
1
1
  import type { PluginComponent } from '../../../../typesClient.js';
2
2
  import type { FixedToolbarFeatureProps } from '../../server/index.js';
3
- import './index.scss';
3
+ import './index.css';
4
4
  export declare const FixedToolbarPlugin: PluginComponent<FixedToolbarFeatureProps>;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/toolbars/fixed/client/Toolbar/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAGjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAMrE,OAAO,cAAc,CAAA;AA2PrB,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,wBAAwB,CAuCxE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/toolbars/fixed/client/Toolbar/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAGjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAMrE,OAAO,aAAa,CAAA;AA2PpB,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,wBAAwB,CAuCxE,CAAA"}
@@ -11,6 +11,7 @@ import { useEditorConfigContext } from '../../../../../lexical/config/client/Edi
11
11
  import { ToolbarButton } from '../../../shared/ToolbarButton/index.js';
12
12
  import { ToolbarDropdown } from '../../../shared/ToolbarDropdown/index.js';
13
13
  import { useToolbarStates } from '../../../shared/useToolbarStates.js';
14
+ import './index.css';
14
15
  function ButtonGroupItem({
15
16
  active,
16
17
  anchorElem,