@payloadcms/richtext-lexical 3.0.0-canary.95fcd13 → 3.0.0-canary.98cbdb9

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 (1212) hide show
  1. package/dist/cell/index.d.ts +2 -2
  2. package/dist/cell/index.d.ts.map +1 -1
  3. package/dist/cell/index.js +5 -5
  4. package/dist/cell/index.js.map +1 -1
  5. package/dist/exports/client/Field-BYB3WX7J.js +2 -0
  6. package/dist/exports/client/Field-BYB3WX7J.js.map +7 -0
  7. package/dist/exports/client/RelationshipComponent-GYUTPDNG.js +2 -0
  8. package/dist/exports/client/RelationshipComponent-GYUTPDNG.js.map +7 -0
  9. package/dist/exports/client/bundled.css +1 -1
  10. package/dist/exports/client/chunk-4EX7W4UX.js +2 -0
  11. package/dist/exports/client/chunk-4EX7W4UX.js.map +7 -0
  12. package/dist/exports/client/chunk-E4HH5PS6.js +2 -0
  13. package/dist/exports/client/chunk-E4HH5PS6.js.map +7 -0
  14. package/dist/exports/client/chunk-LTR7V74A.js +2 -0
  15. package/dist/exports/client/chunk-LTR7V74A.js.map +7 -0
  16. package/dist/exports/client/chunk-SQHN3N6E.js +2 -0
  17. package/dist/exports/client/chunk-SQHN3N6E.js.map +7 -0
  18. package/dist/exports/client/chunk-VMCQSR3T.js +3 -0
  19. package/dist/exports/client/chunk-VMCQSR3T.js.map +7 -0
  20. package/dist/exports/client/component-6C5JERGA.js +2 -0
  21. package/dist/exports/client/component-6C5JERGA.js.map +7 -0
  22. package/dist/exports/client/component-GUWIGB77.js +2 -0
  23. package/dist/exports/client/component-GUWIGB77.js.map +7 -0
  24. package/dist/exports/client/component-UQ2BKD5X.js +2 -0
  25. package/dist/exports/client/component-UQ2BKD5X.js.map +7 -0
  26. package/dist/exports/client/componentInline-C2XIK5VZ.js +2 -0
  27. package/dist/exports/client/componentInline-C2XIK5VZ.js.map +7 -0
  28. package/dist/exports/client/index.d.ts +21 -22
  29. package/dist/exports/client/index.d.ts.map +1 -1
  30. package/dist/exports/client/index.js +12 -12
  31. package/dist/exports/client/index.js.map +4 -4
  32. package/dist/exports/server/migrate.d.ts +16 -0
  33. package/dist/exports/server/migrate.d.ts.map +1 -0
  34. package/dist/exports/server/migrate.js +17 -0
  35. package/dist/exports/server/migrate.js.map +1 -0
  36. package/dist/features/align/client/index.d.ts +5 -0
  37. package/dist/features/align/client/index.d.ts.map +1 -0
  38. package/dist/features/align/client/index.js +146 -0
  39. package/dist/features/align/client/index.js.map +1 -0
  40. package/dist/features/align/client/toolbarAlignGroup.d.ts +3 -0
  41. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -0
  42. package/dist/features/align/client/toolbarAlignGroup.js +12 -0
  43. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -0
  44. package/dist/features/align/server/i18n.d.ts.map +1 -0
  45. package/dist/features/align/server/i18n.js.map +1 -0
  46. package/dist/features/align/server/index.d.ts +2 -0
  47. package/dist/features/align/server/index.d.ts.map +1 -0
  48. package/dist/features/align/server/index.js +11 -0
  49. package/dist/features/align/server/index.js.map +1 -0
  50. package/dist/features/blockquote/client/index.d.ts +5 -0
  51. package/dist/features/blockquote/client/index.d.ts.map +1 -0
  52. package/dist/features/blockquote/client/index.js +77 -0
  53. package/dist/features/blockquote/client/index.js.map +1 -0
  54. package/dist/features/blockquote/server/i18n.d.ts.map +1 -0
  55. package/dist/features/blockquote/server/i18n.js.map +1 -0
  56. package/dist/features/blockquote/server/index.d.ts +7 -0
  57. package/dist/features/blockquote/server/index.d.ts.map +1 -0
  58. package/dist/features/blockquote/server/index.js +46 -0
  59. package/dist/features/blockquote/server/index.js.map +1 -0
  60. package/dist/features/blocks/client/component/BlockContent.d.ts +22 -0
  61. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -0
  62. package/dist/features/blocks/client/component/BlockContent.js +198 -0
  63. package/dist/features/blocks/client/component/BlockContent.js.map +1 -0
  64. package/dist/features/blocks/client/component/FormSavePlugin.d.ts.map +1 -0
  65. package/dist/features/blocks/client/component/FormSavePlugin.js.map +1 -0
  66. package/dist/features/blocks/client/component/index.d.ts +11 -0
  67. package/dist/features/blocks/client/component/index.d.ts.map +1 -0
  68. package/dist/features/blocks/client/component/index.js +157 -0
  69. package/dist/features/blocks/client/component/index.js.map +1 -0
  70. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -0
  71. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -0
  72. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -0
  73. package/dist/features/blocks/client/componentInline/index.js +138 -0
  74. package/dist/features/blocks/client/componentInline/index.js.map +1 -0
  75. package/dist/features/blocks/client/index.d.ts +9 -0
  76. package/dist/features/blocks/client/index.d.ts.map +1 -0
  77. package/dist/features/blocks/client/index.js +152 -0
  78. package/dist/features/blocks/client/index.js.map +1 -0
  79. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +14 -0
  80. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -0
  81. package/dist/features/blocks/client/nodes/BlocksNode.js +52 -0
  82. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -0
  83. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +25 -0
  84. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -0
  85. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +41 -0
  86. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -0
  87. package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -0
  88. package/dist/features/blocks/client/plugin/commands.js.map +1 -0
  89. package/dist/features/blocks/client/plugin/index.d.ts +6 -0
  90. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -0
  91. package/dist/features/blocks/client/plugin/index.js +129 -0
  92. package/dist/features/blocks/client/plugin/index.js.map +1 -0
  93. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +6 -0
  94. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -0
  95. package/dist/features/blocks/server/graphQLPopulationPromise.js +31 -0
  96. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -0
  97. package/dist/features/blocks/server/i18n.d.ts.map +1 -0
  98. package/dist/features/blocks/server/i18n.js.map +1 -0
  99. package/dist/features/blocks/server/index.d.ts +8 -0
  100. package/dist/features/blocks/server/index.d.ts.map +1 -0
  101. package/dist/features/blocks/server/index.js +162 -0
  102. package/dist/features/blocks/server/index.js.map +1 -0
  103. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +38 -0
  104. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -0
  105. package/dist/features/blocks/server/nodes/BlocksNode.js +84 -0
  106. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -0
  107. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +40 -0
  108. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -0
  109. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +86 -0
  110. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -0
  111. package/dist/features/blocks/server/validate.d.ts +6 -0
  112. package/dist/features/blocks/server/validate.d.ts.map +1 -0
  113. package/dist/features/blocks/server/validate.js.map +1 -0
  114. package/dist/features/converters/html/converter/converters/paragraph.d.ts.map +1 -1
  115. package/dist/features/converters/html/converter/converters/paragraph.js +5 -2
  116. package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -1
  117. package/dist/features/converters/html/converter/index.d.ts +8 -2
  118. package/dist/features/converters/html/converter/index.d.ts.map +1 -1
  119. package/dist/features/converters/html/converter/index.js +14 -5
  120. package/dist/features/converters/html/converter/index.js.map +1 -1
  121. package/dist/features/converters/html/converter/types.d.ts +5 -2
  122. package/dist/features/converters/html/converter/types.d.ts.map +1 -1
  123. package/dist/features/converters/html/converter/types.js.map +1 -1
  124. package/dist/features/converters/html/field/index.d.ts.map +1 -1
  125. package/dist/features/converters/html/field/index.js +5 -2
  126. package/dist/features/converters/html/field/index.js.map +1 -1
  127. package/dist/features/converters/html/index.d.ts +8 -0
  128. package/dist/features/converters/html/index.d.ts.map +1 -0
  129. package/dist/features/converters/html/index.js +8 -0
  130. package/dist/features/converters/html/index.js.map +1 -0
  131. package/dist/features/createClientComponent.d.ts +3 -3
  132. package/dist/features/createClientComponent.d.ts.map +1 -1
  133. package/dist/features/createClientComponent.js.map +1 -1
  134. package/dist/features/createFeaturePropComponent.js +1 -1
  135. package/dist/features/createFeaturePropComponent.js.map +1 -1
  136. package/dist/features/debug/testRecorder/client/index.d.ts +5 -0
  137. package/dist/features/debug/testRecorder/client/index.d.ts.map +1 -0
  138. package/dist/features/debug/testRecorder/client/index.js +13 -0
  139. package/dist/features/debug/testRecorder/client/index.js.map +1 -0
  140. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +5 -0
  141. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -0
  142. package/dist/features/debug/testRecorder/client/plugin/index.js +471 -0
  143. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -0
  144. package/dist/features/debug/testRecorder/server/index.d.ts +2 -0
  145. package/dist/features/debug/testRecorder/server/index.d.ts.map +1 -0
  146. package/dist/features/debug/testRecorder/server/index.js +9 -0
  147. package/dist/features/debug/testRecorder/server/index.js.map +1 -0
  148. package/dist/features/debug/treeView/client/index.d.ts +5 -0
  149. package/dist/features/debug/treeView/client/index.d.ts.map +1 -0
  150. package/dist/features/debug/treeView/client/index.js +13 -0
  151. package/dist/features/debug/treeView/client/index.js.map +1 -0
  152. package/dist/features/debug/treeView/client/plugin/index.d.ts +4 -0
  153. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -0
  154. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -0
  155. package/dist/features/debug/treeView/server/index.d.ts +2 -0
  156. package/dist/features/debug/treeView/server/index.d.ts.map +1 -0
  157. package/dist/features/debug/treeView/server/index.js +9 -0
  158. package/dist/features/debug/treeView/server/index.js.map +1 -0
  159. package/dist/features/experimental_table/client/index.d.ts +2 -0
  160. package/dist/features/experimental_table/client/index.d.ts.map +1 -0
  161. package/dist/features/experimental_table/client/index.js +71 -0
  162. package/dist/features/experimental_table/client/index.js.map +1 -0
  163. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +4 -0
  164. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  165. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +605 -0
  166. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  167. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +3 -0
  168. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  169. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +327 -0
  170. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  171. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +12 -0
  172. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  173. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +181 -0
  174. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  175. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +24 -0
  176. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  177. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +103 -0
  178. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -0
  179. package/dist/features/experimental_table/client/utils/debounce.d.ts +61 -0
  180. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -0
  181. package/dist/features/experimental_table/client/utils/debounce.js +202 -0
  182. package/dist/features/experimental_table/client/utils/debounce.js.map +1 -0
  183. package/dist/features/experimental_table/client/utils/useDebounce.d.ts +6 -0
  184. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -0
  185. package/dist/features/experimental_table/client/utils/useDebounce.js +18 -0
  186. package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -0
  187. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.d.ts +12 -0
  188. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  189. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js +181 -0
  190. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  191. package/dist/features/experimental_table/server/index.d.ts +13 -0
  192. package/dist/features/experimental_table/server/index.d.ts.map +1 -0
  193. package/dist/features/experimental_table/server/index.js +123 -0
  194. package/dist/features/experimental_table/server/index.js.map +1 -0
  195. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  196. package/dist/features/format/bold/feature.server.js +1 -3
  197. package/dist/features/format/bold/feature.server.js.map +1 -1
  198. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  199. package/dist/features/format/inlineCode/feature.server.js +1 -3
  200. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  201. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  202. package/dist/features/format/italic/feature.server.js +1 -3
  203. package/dist/features/format/italic/feature.server.js.map +1 -1
  204. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  205. package/dist/features/format/strikethrough/feature.server.js +1 -3
  206. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  207. package/dist/features/format/subscript/feature.server.d.ts.map +1 -1
  208. package/dist/features/format/subscript/feature.server.js +1 -3
  209. package/dist/features/format/subscript/feature.server.js.map +1 -1
  210. package/dist/features/format/superscript/feature.server.d.ts.map +1 -1
  211. package/dist/features/format/superscript/feature.server.js +1 -3
  212. package/dist/features/format/superscript/feature.server.js.map +1 -1
  213. package/dist/features/format/underline/feature.server.d.ts.map +1 -1
  214. package/dist/features/format/underline/feature.server.js +1 -3
  215. package/dist/features/format/underline/feature.server.js.map +1 -1
  216. package/dist/features/heading/client/index.d.ts +6 -0
  217. package/dist/features/heading/client/index.d.ts.map +1 -0
  218. package/dist/features/heading/client/index.js +112 -0
  219. package/dist/features/heading/client/index.js.map +1 -0
  220. package/dist/features/heading/server/i18n.d.ts.map +1 -0
  221. package/dist/features/heading/server/i18n.js.map +1 -0
  222. package/dist/features/heading/server/index.d.ts +10 -0
  223. package/dist/features/heading/server/index.d.ts.map +1 -0
  224. package/dist/features/heading/server/index.js +60 -0
  225. package/dist/features/heading/server/index.js.map +1 -0
  226. package/dist/features/horizontalRule/client/component/index.d.ts.map +1 -0
  227. package/dist/features/horizontalRule/client/component/index.js.map +1 -0
  228. package/dist/features/horizontalRule/client/index.d.ts +5 -0
  229. package/dist/features/horizontalRule/client/index.d.ts.map +1 -0
  230. package/dist/features/horizontalRule/client/index.js +71 -0
  231. package/dist/features/horizontalRule/client/index.js.map +1 -0
  232. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -0
  233. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -0
  234. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +20 -0
  235. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -0
  236. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +43 -0
  237. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -0
  238. package/dist/features/horizontalRule/client/plugin/index.d.ts +7 -0
  239. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -0
  240. package/dist/features/horizontalRule/client/plugin/index.js +31 -0
  241. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -0
  242. package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -0
  243. package/dist/features/horizontalRule/server/i18n.js.map +1 -0
  244. package/dist/features/horizontalRule/server/index.d.ts +2 -0
  245. package/dist/features/horizontalRule/server/index.d.ts.map +1 -0
  246. package/dist/features/horizontalRule/server/index.js +32 -0
  247. package/dist/features/horizontalRule/server/index.js.map +1 -0
  248. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +3 -0
  249. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -0
  250. package/dist/features/horizontalRule/server/markdownTransformer.js +23 -0
  251. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -0
  252. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +53 -0
  253. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -0
  254. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +83 -0
  255. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -0
  256. package/dist/features/indent/client/index.d.ts +5 -0
  257. package/dist/features/indent/client/index.d.ts.map +1 -0
  258. package/dist/features/indent/client/index.js +56 -0
  259. package/dist/features/indent/client/index.js.map +1 -0
  260. package/dist/features/indent/client/toolbarIndentGroup.d.ts +3 -0
  261. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -0
  262. package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -0
  263. package/dist/features/indent/server/i18n.d.ts.map +1 -0
  264. package/dist/features/indent/server/i18n.js.map +1 -0
  265. package/dist/features/indent/server/index.d.ts +2 -0
  266. package/dist/features/indent/server/index.d.ts.map +1 -0
  267. package/dist/features/indent/server/index.js +11 -0
  268. package/dist/features/indent/server/index.js.map +1 -0
  269. package/dist/features/link/client/index.d.ts +16 -0
  270. package/dist/features/link/client/index.d.ts.map +1 -0
  271. package/dist/features/link/client/index.js +101 -0
  272. package/dist/features/link/client/index.js.map +1 -0
  273. package/dist/features/link/client/plugins/autoLink/index.d.ts +20 -0
  274. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -0
  275. package/dist/features/link/client/plugins/autoLink/index.js +335 -0
  276. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -0
  277. package/dist/features/link/client/plugins/clickableLink/index.d.ts +4 -0
  278. package/dist/features/link/client/plugins/clickableLink/index.d.ts.map +1 -0
  279. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -0
  280. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  281. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  282. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  283. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +299 -0
  284. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  285. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +5 -0
  286. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  287. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -0
  288. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +15 -0
  289. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  290. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -0
  291. package/dist/features/link/client/plugins/link/index.d.ts +4 -0
  292. package/dist/features/link/client/plugins/link/index.d.ts.map +1 -0
  293. package/dist/features/link/client/plugins/link/index.js +51 -0
  294. package/dist/features/link/client/plugins/link/index.js.map +1 -0
  295. package/dist/features/link/nodes/LinkNode.d.ts +1 -1
  296. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  297. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  298. package/dist/features/link/server/baseFields.d.ts.map +1 -0
  299. package/dist/features/link/server/baseFields.js.map +1 -0
  300. package/dist/features/link/server/graphQLPopulationPromise.d.ts +5 -0
  301. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -0
  302. package/dist/features/link/server/graphQLPopulationPromise.js +31 -0
  303. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -0
  304. package/dist/features/link/server/i18n.d.ts.map +1 -0
  305. package/dist/features/link/server/i18n.js.map +1 -0
  306. package/dist/features/link/server/index.d.ts +35 -0
  307. package/dist/features/link/server/index.d.ts.map +1 -0
  308. package/dist/features/link/server/index.js +132 -0
  309. package/dist/features/link/server/index.js.map +1 -0
  310. package/dist/features/link/server/transformExtraFields.d.ts +9 -0
  311. package/dist/features/link/server/transformExtraFields.d.ts.map +1 -0
  312. package/dist/features/link/server/transformExtraFields.js +20 -0
  313. package/dist/features/link/server/transformExtraFields.js.map +1 -0
  314. package/dist/features/link/server/validate.d.ts +6 -0
  315. package/dist/features/link/server/validate.d.ts.map +1 -0
  316. package/dist/features/link/server/validate.js.map +1 -0
  317. package/dist/features/lists/checklist/client/index.d.ts +5 -0
  318. package/dist/features/lists/checklist/client/index.d.ts.map +1 -0
  319. package/dist/features/lists/checklist/client/index.js +100 -0
  320. package/dist/features/lists/checklist/client/index.js.map +1 -0
  321. package/dist/features/lists/checklist/client/plugin/index.d.ts +3 -0
  322. package/dist/features/lists/checklist/client/plugin/index.d.ts.map +1 -0
  323. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -0
  324. package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -0
  325. package/dist/features/lists/checklist/server/i18n.js.map +1 -0
  326. package/dist/features/lists/checklist/server/index.d.ts +2 -0
  327. package/dist/features/lists/checklist/server/index.d.ts.map +1 -0
  328. package/dist/features/lists/checklist/server/index.js +34 -0
  329. package/dist/features/lists/checklist/server/index.js.map +1 -0
  330. package/dist/features/lists/htmlConverter.d.ts.map +1 -1
  331. package/dist/features/lists/htmlConverter.js +10 -4
  332. package/dist/features/lists/htmlConverter.js.map +1 -1
  333. package/dist/features/lists/orderedList/client/index.d.ts +5 -0
  334. package/dist/features/lists/orderedList/client/index.d.ts.map +1 -0
  335. package/dist/features/lists/orderedList/client/index.js +90 -0
  336. package/dist/features/lists/orderedList/client/index.js.map +1 -0
  337. package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -0
  338. package/dist/features/lists/orderedList/server/i18n.js.map +1 -0
  339. package/dist/features/lists/orderedList/server/index.d.ts +2 -0
  340. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -0
  341. package/dist/features/lists/orderedList/server/index.js +34 -0
  342. package/dist/features/lists/orderedList/server/index.js.map +1 -0
  343. package/dist/features/lists/unorderedList/client/index.d.ts +5 -0
  344. package/dist/features/lists/unorderedList/client/index.d.ts.map +1 -0
  345. package/dist/features/lists/unorderedList/client/index.js +88 -0
  346. package/dist/features/lists/unorderedList/client/index.js.map +1 -0
  347. package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -0
  348. package/dist/features/lists/unorderedList/server/i18n.js.map +1 -0
  349. package/dist/features/lists/unorderedList/server/index.d.ts +2 -0
  350. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -0
  351. package/dist/features/lists/unorderedList/server/index.js +32 -0
  352. package/dist/features/lists/unorderedList/server/index.js.map +1 -0
  353. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +1 -1
  354. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -1
  355. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +4 -3
  356. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -1
  357. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +1 -1
  358. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -1
  359. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +4 -3
  360. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -1
  361. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +1 -1
  362. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -1
  363. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +4 -3
  364. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -1
  365. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +1 -1
  366. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -1
  367. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +4 -3
  368. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -1
  369. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +1 -1
  370. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -1
  371. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +4 -3
  372. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -1
  373. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +1 -1
  374. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -1
  375. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +4 -3
  376. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -1
  377. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +1 -1
  378. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  379. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +1 -1
  380. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
  381. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +2 -2
  382. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -1
  383. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +7 -7
  384. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -1
  385. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +5 -3
  386. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -1
  387. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +15 -9
  388. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -1
  389. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +1 -9
  390. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -1
  391. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -1
  392. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -1
  393. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +1 -16
  394. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -1
  395. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +4 -3
  396. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -1
  397. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +16 -11
  398. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -1
  399. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +1 -1
  400. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -1
  401. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +1 -1
  402. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -1
  403. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +1 -1
  404. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -1
  405. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +1 -1
  406. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -1
  407. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +1 -1
  408. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -1
  409. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +1 -1
  410. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -1
  411. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +1 -1
  412. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -1
  413. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +1 -1
  414. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -1
  415. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +1 -1
  416. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -1
  417. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +1 -1
  418. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -1
  419. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +1 -1
  420. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -1
  421. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +1 -1
  422. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -1
  423. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +1 -1
  424. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -1
  425. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +1 -1
  426. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
  427. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +1 -1
  428. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -1
  429. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +1 -1
  430. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -1
  431. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +1 -1
  432. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -1
  433. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +1 -1
  434. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -1
  435. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +1 -1
  436. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  437. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +1 -1
  438. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
  439. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +2 -2
  440. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -1
  441. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +10 -10
  442. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -1
  443. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -1
  444. package/dist/features/migrations/slateToLexical/converter/index.js +1 -0
  445. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -1
  446. package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -9
  447. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -1
  448. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -1
  449. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -1
  450. package/dist/features/migrations/slateToLexical/feature.client.js +0 -15
  451. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -1
  452. package/dist/features/migrations/slateToLexical/feature.server.d.ts +5 -5
  453. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -1
  454. package/dist/features/migrations/slateToLexical/feature.server.js +15 -11
  455. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -1
  456. package/dist/features/paragraph/client/index.d.ts +5 -0
  457. package/dist/features/paragraph/client/index.d.ts.map +1 -0
  458. package/dist/features/paragraph/client/index.js +71 -0
  459. package/dist/features/paragraph/client/index.js.map +1 -0
  460. package/dist/features/paragraph/server/i18n.d.ts.map +1 -0
  461. package/dist/features/paragraph/server/i18n.js.map +1 -0
  462. package/dist/features/paragraph/server/index.d.ts +2 -0
  463. package/dist/features/paragraph/server/index.d.ts.map +1 -0
  464. package/dist/features/paragraph/server/index.js +12 -0
  465. package/dist/features/paragraph/server/index.js.map +1 -0
  466. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +13 -0
  467. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -0
  468. package/dist/features/relationship/client/components/RelationshipComponent.js +171 -0
  469. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -0
  470. package/dist/features/relationship/client/drawer/commands.d.ts.map +1 -0
  471. package/dist/features/relationship/client/drawer/commands.js.map +1 -0
  472. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -0
  473. package/dist/features/relationship/client/drawer/index.js.map +1 -0
  474. package/dist/features/relationship/client/index.d.ts +18 -0
  475. package/dist/features/relationship/client/index.d.ts.map +1 -0
  476. package/dist/features/relationship/client/index.js +72 -0
  477. package/dist/features/relationship/client/index.js.map +1 -0
  478. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +15 -0
  479. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -0
  480. package/dist/features/relationship/client/nodes/RelationshipNode.js +74 -0
  481. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -0
  482. package/dist/features/relationship/client/plugins/index.d.ts +7 -0
  483. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -0
  484. package/dist/features/relationship/client/plugins/index.js +50 -0
  485. package/dist/features/relationship/client/plugins/index.js.map +1 -0
  486. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  487. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js +33 -0
  488. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js.map +1 -0
  489. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +5 -0
  490. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -0
  491. package/dist/features/relationship/server/graphQLPopulationPromise.js +29 -0
  492. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -0
  493. package/dist/features/relationship/server/i18n.d.ts.map +1 -0
  494. package/dist/features/relationship/server/i18n.js.map +1 -0
  495. package/dist/features/relationship/server/index.d.ts +27 -0
  496. package/dist/features/relationship/server/index.d.ts.map +1 -0
  497. package/dist/features/relationship/server/index.js +53 -0
  498. package/dist/features/relationship/server/index.js.map +1 -0
  499. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +35 -0
  500. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -0
  501. package/dist/features/relationship/server/nodes/RelationshipNode.js +101 -0
  502. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -0
  503. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +5 -0
  504. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -0
  505. package/dist/features/toolbars/fixed/client/Toolbar/index.js +209 -0
  506. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -0
  507. package/dist/features/toolbars/fixed/client/index.d.ts +6 -0
  508. package/dist/features/toolbars/fixed/client/index.d.ts.map +1 -0
  509. package/dist/features/toolbars/fixed/client/index.js +13 -0
  510. package/dist/features/toolbars/fixed/client/index.js.map +1 -0
  511. package/dist/features/toolbars/fixed/server/index.d.ts +18 -0
  512. package/dist/features/toolbars/fixed/server/index.d.ts.map +1 -0
  513. package/dist/features/toolbars/fixed/server/index.js +17 -0
  514. package/dist/features/toolbars/fixed/server/index.js.map +1 -0
  515. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +4 -0
  516. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -0
  517. package/dist/features/toolbars/inline/client/Toolbar/index.js +319 -0
  518. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -0
  519. package/dist/features/toolbars/inline/client/index.d.ts +5 -0
  520. package/dist/features/toolbars/inline/client/index.d.ts.map +1 -0
  521. package/dist/features/toolbars/inline/client/index.js +13 -0
  522. package/dist/features/toolbars/inline/client/index.js.map +1 -0
  523. package/dist/features/toolbars/inline/server/index.d.ts +2 -0
  524. package/dist/features/toolbars/inline/server/index.d.ts.map +1 -0
  525. package/dist/features/toolbars/inline/server/index.js +9 -0
  526. package/dist/features/toolbars/inline/server/index.js.map +1 -0
  527. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  528. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +3 -1
  529. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  530. package/dist/features/toolbars/types.d.ts +2 -1
  531. package/dist/features/toolbars/types.d.ts.map +1 -1
  532. package/dist/features/toolbars/types.js.map +1 -1
  533. package/dist/features/typesServer.d.ts +18 -13
  534. package/dist/features/typesServer.d.ts.map +1 -1
  535. package/dist/features/typesServer.js.map +1 -1
  536. package/dist/features/upload/client/component/index.d.ts +9 -0
  537. package/dist/features/upload/client/component/index.d.ts.map +1 -0
  538. package/dist/features/upload/client/component/index.js +248 -0
  539. package/dist/features/upload/client/component/index.js.map +1 -0
  540. package/dist/features/upload/client/drawer/commands.d.ts.map +1 -0
  541. package/dist/features/upload/client/drawer/commands.js.map +1 -0
  542. package/dist/features/upload/client/drawer/index.d.ts.map +1 -0
  543. package/dist/features/upload/client/drawer/index.js +77 -0
  544. package/dist/features/upload/client/drawer/index.js.map +1 -0
  545. package/dist/features/upload/client/feature.client.d.ts.map +1 -0
  546. package/dist/features/upload/client/feature.client.js +74 -0
  547. package/dist/features/upload/client/feature.client.js.map +1 -0
  548. package/dist/features/upload/client/nodes/UploadNode.d.ts +22 -0
  549. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -0
  550. package/dist/features/upload/client/nodes/UploadNode.js +91 -0
  551. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -0
  552. package/dist/features/upload/client/plugin/index.d.ts +8 -0
  553. package/dist/features/upload/client/plugin/index.d.ts.map +1 -0
  554. package/dist/features/upload/client/plugin/index.js +53 -0
  555. package/dist/features/upload/client/plugin/index.js.map +1 -0
  556. package/dist/features/upload/server/feature.server.d.ts +18 -0
  557. package/dist/features/upload/server/feature.server.d.ts.map +1 -0
  558. package/dist/features/upload/server/feature.server.js +189 -0
  559. package/dist/features/upload/server/feature.server.js.map +1 -0
  560. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +5 -0
  561. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -0
  562. package/dist/features/upload/server/graphQLPopulationPromise.js +52 -0
  563. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -0
  564. package/dist/features/upload/server/i18n.d.ts.map +1 -0
  565. package/dist/features/upload/server/i18n.js.map +1 -0
  566. package/dist/features/upload/server/nodes/UploadNode.d.ts +40 -0
  567. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -0
  568. package/dist/features/upload/server/nodes/UploadNode.js +128 -0
  569. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -0
  570. package/dist/features/upload/server/validate.d.ts +5 -0
  571. package/dist/features/upload/server/validate.d.ts.map +1 -0
  572. package/dist/features/upload/server/validate.js.map +1 -0
  573. package/dist/field/Field.d.ts +7 -7
  574. package/dist/field/Field.d.ts.map +1 -1
  575. package/dist/field/Field.js +8 -6
  576. package/dist/field/Field.js.map +1 -1
  577. package/dist/field/index.d.ts +2 -9
  578. package/dist/field/index.d.ts.map +1 -1
  579. package/dist/field/index.js +8 -8
  580. package/dist/field/index.js.map +1 -1
  581. package/dist/index.d.ts +23 -38
  582. package/dist/index.d.ts.map +1 -1
  583. package/dist/index.js +85 -70
  584. package/dist/index.js.map +1 -1
  585. package/dist/lexical/LexicalEditor.d.ts.map +1 -1
  586. package/dist/lexical/LexicalEditor.js +0 -6
  587. package/dist/lexical/LexicalEditor.js.map +1 -1
  588. package/dist/lexical/LexicalProvider.d.ts +2 -6
  589. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  590. package/dist/lexical/LexicalProvider.js +2 -2
  591. package/dist/lexical/LexicalProvider.js.map +1 -1
  592. package/dist/lexical/config/client/EditorConfigProvider.d.ts +4 -12
  593. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  594. package/dist/lexical/config/client/EditorConfigProvider.js +3 -3
  595. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  596. package/dist/lexical/config/server/default.js +13 -13
  597. package/dist/lexical/config/server/default.js.map +1 -1
  598. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  599. package/dist/lexical/config/server/sanitize.js +24 -6
  600. package/dist/lexical/config/server/sanitize.js.map +1 -1
  601. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +6 -2
  602. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  603. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  604. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  605. package/dist/lexical/plugins/SlashMenu/index.js +14 -4
  606. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  607. package/dist/lexical/theme/EditorTheme.d.ts +0 -1
  608. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  609. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  610. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  611. package/dist/lexical/ui/ContentEditable.js +8 -1
  612. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  613. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
  614. package/dist/lexical/ui/icons/Table/index.js +1 -0
  615. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  616. package/dist/lexical/ui/icons/Upload/index.js +1 -1
  617. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  618. package/dist/nodeTypes.d.ts +9 -7
  619. package/dist/nodeTypes.d.ts.map +1 -1
  620. package/dist/nodeTypes.js.map +1 -1
  621. package/dist/populateGraphQL/defaultValue.d.ts.map +1 -1
  622. package/dist/populateGraphQL/defaultValue.js +1 -0
  623. package/dist/populateGraphQL/defaultValue.js.map +1 -1
  624. package/dist/types.d.ts +6 -8
  625. package/dist/types.d.ts.map +1 -1
  626. package/dist/types.js.map +1 -1
  627. package/dist/utilities/fieldsDrawer/Drawer.d.ts +10 -8
  628. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  629. package/dist/utilities/fieldsDrawer/Drawer.js +3 -1
  630. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  631. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  632. package/dist/utilities/fieldsDrawer/DrawerContent.js +6 -6
  633. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  634. package/dist/utilities/generateComponentMap.d.ts +2 -2
  635. package/dist/utilities/generateComponentMap.d.ts.map +1 -1
  636. package/dist/utilities/generateComponentMap.js +39 -27
  637. package/dist/utilities/generateComponentMap.js.map +1 -1
  638. package/dist/utilities/generateImportMap.d.ts +6 -0
  639. package/dist/utilities/generateImportMap.d.ts.map +1 -0
  640. package/dist/utilities/generateImportMap.js +50 -0
  641. package/dist/utilities/generateImportMap.js.map +1 -0
  642. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  643. package/dist/utilities/generateSchemaMap.js +2 -1
  644. package/dist/utilities/generateSchemaMap.js.map +1 -1
  645. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -1
  646. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +1 -5
  647. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -1
  648. package/dist/utilities/useLexicalFeature.js +1 -1
  649. package/dist/utilities/useLexicalFeature.js.map +1 -1
  650. package/package.json +45 -35
  651. package/dist/exports/client/Field-VT4YC32B.js +0 -2
  652. package/dist/exports/client/Field-VT4YC32B.js.map +0 -7
  653. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js +0 -2
  654. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js.map +0 -7
  655. package/dist/exports/client/chunk-6QXGZYUK.js +0 -2
  656. package/dist/exports/client/chunk-6QXGZYUK.js.map +0 -7
  657. package/dist/exports/client/chunk-IPCJ5EVK.js +0 -2
  658. package/dist/exports/client/chunk-IPCJ5EVK.js.map +0 -7
  659. package/dist/exports/client/chunk-IWZVO3AI.js +0 -2
  660. package/dist/exports/client/chunk-IWZVO3AI.js.map +0 -7
  661. package/dist/exports/client/chunk-Q5DYR7MH.js +0 -3
  662. package/dist/exports/client/chunk-Q5DYR7MH.js.map +0 -7
  663. package/dist/exports/client/chunk-VUVXZJJR.js +0 -2
  664. package/dist/exports/client/chunk-VUVXZJJR.js.map +0 -7
  665. package/dist/exports/client/component-D4GWDXK5.js +0 -2
  666. package/dist/exports/client/component-D4GWDXK5.js.map +0 -7
  667. package/dist/exports/client/component-KA7FDRMA.js +0 -2
  668. package/dist/exports/client/component-KA7FDRMA.js.map +0 -7
  669. package/dist/exports/client/component-VM36FRT2.js +0 -2
  670. package/dist/exports/client/component-VM36FRT2.js.map +0 -7
  671. package/dist/exports/client/componentInline-6EKPZSCV.js +0 -2
  672. package/dist/exports/client/componentInline-6EKPZSCV.js.map +0 -7
  673. package/dist/features/align/feature.client.d.ts +0 -5
  674. package/dist/features/align/feature.client.d.ts.map +0 -1
  675. package/dist/features/align/feature.client.js +0 -146
  676. package/dist/features/align/feature.client.js.map +0 -1
  677. package/dist/features/align/feature.server.d.ts +0 -2
  678. package/dist/features/align/feature.server.d.ts.map +0 -1
  679. package/dist/features/align/feature.server.js +0 -13
  680. package/dist/features/align/feature.server.js.map +0 -1
  681. package/dist/features/align/i18n.d.ts.map +0 -1
  682. package/dist/features/align/i18n.js.map +0 -1
  683. package/dist/features/align/toolbarAlignGroup.d.ts +0 -3
  684. package/dist/features/align/toolbarAlignGroup.d.ts.map +0 -1
  685. package/dist/features/align/toolbarAlignGroup.js +0 -12
  686. package/dist/features/align/toolbarAlignGroup.js.map +0 -1
  687. package/dist/features/blockquote/feature.client.d.ts +0 -5
  688. package/dist/features/blockquote/feature.client.d.ts.map +0 -1
  689. package/dist/features/blockquote/feature.client.js +0 -77
  690. package/dist/features/blockquote/feature.client.js.map +0 -1
  691. package/dist/features/blockquote/feature.server.d.ts +0 -7
  692. package/dist/features/blockquote/feature.server.d.ts.map +0 -1
  693. package/dist/features/blockquote/feature.server.js +0 -45
  694. package/dist/features/blockquote/feature.server.js.map +0 -1
  695. package/dist/features/blockquote/i18n.d.ts.map +0 -1
  696. package/dist/features/blockquote/i18n.js.map +0 -1
  697. package/dist/features/blocks/component/BlockContent.d.ts +0 -27
  698. package/dist/features/blocks/component/BlockContent.d.ts.map +0 -1
  699. package/dist/features/blocks/component/BlockContent.js +0 -196
  700. package/dist/features/blocks/component/BlockContent.js.map +0 -1
  701. package/dist/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
  702. package/dist/features/blocks/component/FormSavePlugin.js.map +0 -1
  703. package/dist/features/blocks/component/index.d.ts +0 -11
  704. package/dist/features/blocks/component/index.d.ts.map +0 -1
  705. package/dist/features/blocks/component/index.js +0 -162
  706. package/dist/features/blocks/component/index.js.map +0 -1
  707. package/dist/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
  708. package/dist/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
  709. package/dist/features/blocks/componentInline/index.d.ts.map +0 -1
  710. package/dist/features/blocks/componentInline/index.js +0 -133
  711. package/dist/features/blocks/componentInline/index.js.map +0 -1
  712. package/dist/features/blocks/feature.client.d.ts +0 -13
  713. package/dist/features/blocks/feature.client.d.ts.map +0 -1
  714. package/dist/features/blocks/feature.client.js +0 -148
  715. package/dist/features/blocks/feature.client.js.map +0 -1
  716. package/dist/features/blocks/feature.server.d.ts +0 -8
  717. package/dist/features/blocks/feature.server.d.ts.map +0 -1
  718. package/dist/features/blocks/feature.server.js +0 -160
  719. package/dist/features/blocks/feature.server.js.map +0 -1
  720. package/dist/features/blocks/graphQLPopulationPromise.d.ts +0 -6
  721. package/dist/features/blocks/graphQLPopulationPromise.d.ts.map +0 -1
  722. package/dist/features/blocks/graphQLPopulationPromise.js +0 -31
  723. package/dist/features/blocks/graphQLPopulationPromise.js.map +0 -1
  724. package/dist/features/blocks/i18n.d.ts.map +0 -1
  725. package/dist/features/blocks/i18n.js.map +0 -1
  726. package/dist/features/blocks/nodes/BlocksNode.d.ts +0 -38
  727. package/dist/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
  728. package/dist/features/blocks/nodes/BlocksNode.js +0 -92
  729. package/dist/features/blocks/nodes/BlocksNode.js.map +0 -1
  730. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts +0 -39
  731. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts.map +0 -1
  732. package/dist/features/blocks/nodes/InlineBlocksNode.js +0 -94
  733. package/dist/features/blocks/nodes/InlineBlocksNode.js.map +0 -1
  734. package/dist/features/blocks/plugin/commands.d.ts.map +0 -1
  735. package/dist/features/blocks/plugin/commands.js.map +0 -1
  736. package/dist/features/blocks/plugin/index.d.ts +0 -6
  737. package/dist/features/blocks/plugin/index.d.ts.map +0 -1
  738. package/dist/features/blocks/plugin/index.js +0 -111
  739. package/dist/features/blocks/plugin/index.js.map +0 -1
  740. package/dist/features/blocks/validate.d.ts +0 -6
  741. package/dist/features/blocks/validate.d.ts.map +0 -1
  742. package/dist/features/blocks/validate.js.map +0 -1
  743. package/dist/features/converters/html/feature.server.d.ts +0 -8
  744. package/dist/features/converters/html/feature.server.d.ts.map +0 -1
  745. package/dist/features/converters/html/feature.server.js +0 -8
  746. package/dist/features/converters/html/feature.server.js.map +0 -1
  747. package/dist/features/debug/testRecorder/feature.client.d.ts +0 -5
  748. package/dist/features/debug/testRecorder/feature.client.d.ts.map +0 -1
  749. package/dist/features/debug/testRecorder/feature.client.js +0 -13
  750. package/dist/features/debug/testRecorder/feature.client.js.map +0 -1
  751. package/dist/features/debug/testRecorder/feature.server.d.ts +0 -2
  752. package/dist/features/debug/testRecorder/feature.server.d.ts.map +0 -1
  753. package/dist/features/debug/testRecorder/feature.server.js +0 -11
  754. package/dist/features/debug/testRecorder/feature.server.js.map +0 -1
  755. package/dist/features/debug/testRecorder/plugin/index.d.ts +0 -5
  756. package/dist/features/debug/testRecorder/plugin/index.d.ts.map +0 -1
  757. package/dist/features/debug/testRecorder/plugin/index.js +0 -471
  758. package/dist/features/debug/testRecorder/plugin/index.js.map +0 -1
  759. package/dist/features/debug/treeView/feature.client.d.ts +0 -5
  760. package/dist/features/debug/treeView/feature.client.d.ts.map +0 -1
  761. package/dist/features/debug/treeView/feature.client.js +0 -13
  762. package/dist/features/debug/treeView/feature.client.js.map +0 -1
  763. package/dist/features/debug/treeView/feature.server.d.ts +0 -2
  764. package/dist/features/debug/treeView/feature.server.d.ts.map +0 -1
  765. package/dist/features/debug/treeView/feature.server.js +0 -11
  766. package/dist/features/debug/treeView/feature.server.js.map +0 -1
  767. package/dist/features/debug/treeView/plugin/index.d.ts +0 -4
  768. package/dist/features/debug/treeView/plugin/index.d.ts.map +0 -1
  769. package/dist/features/debug/treeView/plugin/index.js.map +0 -1
  770. package/dist/features/experimental_table/feature.client.d.ts +0 -2
  771. package/dist/features/experimental_table/feature.client.d.ts.map +0 -1
  772. package/dist/features/experimental_table/feature.client.js +0 -66
  773. package/dist/features/experimental_table/feature.client.js.map +0 -1
  774. package/dist/features/experimental_table/feature.server.d.ts +0 -2
  775. package/dist/features/experimental_table/feature.server.d.ts.map +0 -1
  776. package/dist/features/experimental_table/feature.server.js +0 -52
  777. package/dist/features/experimental_table/feature.server.js.map +0 -1
  778. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts +0 -4
  779. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  780. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js +0 -602
  781. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js.map +0 -1
  782. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts +0 -4
  783. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  784. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js +0 -322
  785. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js.map +0 -1
  786. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts +0 -24
  787. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts.map +0 -1
  788. package/dist/features/experimental_table/plugins/TablePlugin/index.js +0 -98
  789. package/dist/features/experimental_table/plugins/TablePlugin/index.js.map +0 -1
  790. package/dist/features/heading/feature.client.d.ts +0 -6
  791. package/dist/features/heading/feature.client.d.ts.map +0 -1
  792. package/dist/features/heading/feature.client.js +0 -112
  793. package/dist/features/heading/feature.client.js.map +0 -1
  794. package/dist/features/heading/feature.server.d.ts +0 -10
  795. package/dist/features/heading/feature.server.d.ts.map +0 -1
  796. package/dist/features/heading/feature.server.js +0 -59
  797. package/dist/features/heading/feature.server.js.map +0 -1
  798. package/dist/features/heading/i18n.d.ts.map +0 -1
  799. package/dist/features/heading/i18n.js.map +0 -1
  800. package/dist/features/horizontalRule/component/index.d.ts.map +0 -1
  801. package/dist/features/horizontalRule/component/index.js.map +0 -1
  802. package/dist/features/horizontalRule/feature.client.d.ts +0 -5
  803. package/dist/features/horizontalRule/feature.client.d.ts.map +0 -1
  804. package/dist/features/horizontalRule/feature.client.js +0 -70
  805. package/dist/features/horizontalRule/feature.client.js.map +0 -1
  806. package/dist/features/horizontalRule/feature.server.d.ts +0 -2
  807. package/dist/features/horizontalRule/feature.server.d.ts.map +0 -1
  808. package/dist/features/horizontalRule/feature.server.js +0 -34
  809. package/dist/features/horizontalRule/feature.server.js.map +0 -1
  810. package/dist/features/horizontalRule/i18n.d.ts.map +0 -1
  811. package/dist/features/horizontalRule/i18n.js.map +0 -1
  812. package/dist/features/horizontalRule/markdownTransformer.d.ts.map +0 -1
  813. package/dist/features/horizontalRule/markdownTransformer.js.map +0 -1
  814. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts +0 -56
  815. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  816. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js +0 -92
  817. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js.map +0 -1
  818. package/dist/features/horizontalRule/plugin/index.d.ts +0 -7
  819. package/dist/features/horizontalRule/plugin/index.d.ts.map +0 -1
  820. package/dist/features/horizontalRule/plugin/index.js +0 -30
  821. package/dist/features/horizontalRule/plugin/index.js.map +0 -1
  822. package/dist/features/indent/feature.client.d.ts +0 -5
  823. package/dist/features/indent/feature.client.d.ts.map +0 -1
  824. package/dist/features/indent/feature.client.js +0 -56
  825. package/dist/features/indent/feature.client.js.map +0 -1
  826. package/dist/features/indent/feature.server.d.ts +0 -2
  827. package/dist/features/indent/feature.server.d.ts.map +0 -1
  828. package/dist/features/indent/feature.server.js +0 -13
  829. package/dist/features/indent/feature.server.js.map +0 -1
  830. package/dist/features/indent/i18n.d.ts.map +0 -1
  831. package/dist/features/indent/i18n.js.map +0 -1
  832. package/dist/features/indent/toolbarIndentGroup.d.ts +0 -3
  833. package/dist/features/indent/toolbarIndentGroup.d.ts.map +0 -1
  834. package/dist/features/indent/toolbarIndentGroup.js.map +0 -1
  835. package/dist/features/link/drawer/baseFields.d.ts.map +0 -1
  836. package/dist/features/link/drawer/baseFields.js.map +0 -1
  837. package/dist/features/link/feature.client.d.ts +0 -16
  838. package/dist/features/link/feature.client.d.ts.map +0 -1
  839. package/dist/features/link/feature.client.js +0 -101
  840. package/dist/features/link/feature.client.js.map +0 -1
  841. package/dist/features/link/feature.server.d.ts +0 -35
  842. package/dist/features/link/feature.server.d.ts.map +0 -1
  843. package/dist/features/link/feature.server.js +0 -128
  844. package/dist/features/link/feature.server.js.map +0 -1
  845. package/dist/features/link/graphQLPopulationPromise.d.ts +0 -5
  846. package/dist/features/link/graphQLPopulationPromise.d.ts.map +0 -1
  847. package/dist/features/link/graphQLPopulationPromise.js +0 -31
  848. package/dist/features/link/graphQLPopulationPromise.js.map +0 -1
  849. package/dist/features/link/i18n.d.ts.map +0 -1
  850. package/dist/features/link/i18n.js.map +0 -1
  851. package/dist/features/link/plugins/autoLink/index.d.ts +0 -20
  852. package/dist/features/link/plugins/autoLink/index.d.ts.map +0 -1
  853. package/dist/features/link/plugins/autoLink/index.js +0 -323
  854. package/dist/features/link/plugins/autoLink/index.js.map +0 -1
  855. package/dist/features/link/plugins/clickableLink/index.d.ts +0 -4
  856. package/dist/features/link/plugins/clickableLink/index.d.ts.map +0 -1
  857. package/dist/features/link/plugins/clickableLink/index.js.map +0 -1
  858. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  859. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
  860. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  861. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -299
  862. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
  863. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts +0 -5
  864. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  865. package/dist/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
  866. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts +0 -15
  867. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  868. package/dist/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
  869. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -9
  870. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  871. package/dist/features/link/plugins/floatingLinkEditor/utilities.js +0 -20
  872. package/dist/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
  873. package/dist/features/link/plugins/link/index.d.ts +0 -4
  874. package/dist/features/link/plugins/link/index.d.ts.map +0 -1
  875. package/dist/features/link/plugins/link/index.js +0 -53
  876. package/dist/features/link/plugins/link/index.js.map +0 -1
  877. package/dist/features/link/validate.d.ts +0 -6
  878. package/dist/features/link/validate.d.ts.map +0 -1
  879. package/dist/features/link/validate.js.map +0 -1
  880. package/dist/features/lists/checklist/feature.client.d.ts +0 -5
  881. package/dist/features/lists/checklist/feature.client.d.ts.map +0 -1
  882. package/dist/features/lists/checklist/feature.client.js +0 -100
  883. package/dist/features/lists/checklist/feature.client.js.map +0 -1
  884. package/dist/features/lists/checklist/feature.server.d.ts +0 -2
  885. package/dist/features/lists/checklist/feature.server.d.ts.map +0 -1
  886. package/dist/features/lists/checklist/feature.server.js +0 -36
  887. package/dist/features/lists/checklist/feature.server.js.map +0 -1
  888. package/dist/features/lists/checklist/i18n.d.ts.map +0 -1
  889. package/dist/features/lists/checklist/i18n.js.map +0 -1
  890. package/dist/features/lists/checklist/plugin/index.d.ts +0 -3
  891. package/dist/features/lists/checklist/plugin/index.d.ts.map +0 -1
  892. package/dist/features/lists/checklist/plugin/index.js.map +0 -1
  893. package/dist/features/lists/orderedList/feature.client.d.ts +0 -5
  894. package/dist/features/lists/orderedList/feature.client.d.ts.map +0 -1
  895. package/dist/features/lists/orderedList/feature.client.js +0 -90
  896. package/dist/features/lists/orderedList/feature.client.js.map +0 -1
  897. package/dist/features/lists/orderedList/feature.server.d.ts +0 -2
  898. package/dist/features/lists/orderedList/feature.server.d.ts.map +0 -1
  899. package/dist/features/lists/orderedList/feature.server.js +0 -36
  900. package/dist/features/lists/orderedList/feature.server.js.map +0 -1
  901. package/dist/features/lists/orderedList/i18n.d.ts.map +0 -1
  902. package/dist/features/lists/orderedList/i18n.js.map +0 -1
  903. package/dist/features/lists/unorderedList/feature.client.d.ts +0 -5
  904. package/dist/features/lists/unorderedList/feature.client.d.ts.map +0 -1
  905. package/dist/features/lists/unorderedList/feature.client.js +0 -88
  906. package/dist/features/lists/unorderedList/feature.client.js.map +0 -1
  907. package/dist/features/lists/unorderedList/feature.server.d.ts +0 -2
  908. package/dist/features/lists/unorderedList/feature.server.d.ts.map +0 -1
  909. package/dist/features/lists/unorderedList/feature.server.js +0 -34
  910. package/dist/features/lists/unorderedList/feature.server.js.map +0 -1
  911. package/dist/features/lists/unorderedList/i18n.d.ts.map +0 -1
  912. package/dist/features/lists/unorderedList/i18n.js.map +0 -1
  913. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -5
  914. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
  915. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -6
  916. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
  917. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -3
  918. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
  919. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
  920. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
  921. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -5
  922. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
  923. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -6
  924. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
  925. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -3
  926. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
  927. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
  928. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
  929. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -5
  930. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
  931. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -6
  932. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
  933. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -3
  934. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
  935. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
  936. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
  937. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -5
  938. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  939. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -6
  940. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
  941. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -3
  942. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  943. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
  944. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
  945. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -5
  946. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
  947. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -6
  948. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
  949. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -3
  950. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
  951. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
  952. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
  953. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -5
  954. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  955. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -6
  956. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
  957. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -3
  958. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  959. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
  960. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
  961. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -5
  962. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
  963. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -6
  964. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
  965. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -3
  966. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
  967. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
  968. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
  969. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -5
  970. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
  971. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -6
  972. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
  973. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -3
  974. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
  975. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
  976. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
  977. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -5
  978. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
  979. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js +0 -6
  980. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
  981. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -3
  982. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
  983. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
  984. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
  985. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -5
  986. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
  987. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js +0 -6
  988. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
  989. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -3
  990. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
  991. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
  992. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
  993. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -5
  994. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
  995. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js +0 -6
  996. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
  997. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -3
  998. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
  999. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
  1000. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
  1001. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -5
  1002. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1003. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js +0 -6
  1004. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
  1005. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -3
  1006. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1007. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
  1008. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
  1009. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -5
  1010. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
  1011. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -6
  1012. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
  1013. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -3
  1014. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
  1015. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
  1016. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
  1017. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -5
  1018. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
  1019. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js +0 -6
  1020. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
  1021. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -3
  1022. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
  1023. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
  1024. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
  1025. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -5
  1026. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1027. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js +0 -6
  1028. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
  1029. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -3
  1030. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1031. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
  1032. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
  1033. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -5
  1034. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
  1035. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -6
  1036. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
  1037. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -3
  1038. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
  1039. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
  1040. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
  1041. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -5
  1042. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1043. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js +0 -6
  1044. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
  1045. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -3
  1046. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1047. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
  1048. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
  1049. package/dist/features/paragraph/feature.client.d.ts +0 -5
  1050. package/dist/features/paragraph/feature.client.d.ts.map +0 -1
  1051. package/dist/features/paragraph/feature.client.js +0 -71
  1052. package/dist/features/paragraph/feature.client.js.map +0 -1
  1053. package/dist/features/paragraph/feature.server.d.ts +0 -2
  1054. package/dist/features/paragraph/feature.server.d.ts.map +0 -1
  1055. package/dist/features/paragraph/feature.server.js +0 -14
  1056. package/dist/features/paragraph/feature.server.js.map +0 -1
  1057. package/dist/features/paragraph/i18n.d.ts.map +0 -1
  1058. package/dist/features/paragraph/i18n.js.map +0 -1
  1059. package/dist/features/relationship/drawer/commands.d.ts.map +0 -1
  1060. package/dist/features/relationship/drawer/commands.js.map +0 -1
  1061. package/dist/features/relationship/drawer/index.d.ts.map +0 -1
  1062. package/dist/features/relationship/drawer/index.js.map +0 -1
  1063. package/dist/features/relationship/feature.client.d.ts +0 -18
  1064. package/dist/features/relationship/feature.client.d.ts.map +0 -1
  1065. package/dist/features/relationship/feature.client.js +0 -72
  1066. package/dist/features/relationship/feature.client.js.map +0 -1
  1067. package/dist/features/relationship/feature.server.d.ts +0 -27
  1068. package/dist/features/relationship/feature.server.d.ts.map +0 -1
  1069. package/dist/features/relationship/feature.server.js +0 -55
  1070. package/dist/features/relationship/feature.server.js.map +0 -1
  1071. package/dist/features/relationship/graphQLPopulationPromise.d.ts +0 -5
  1072. package/dist/features/relationship/graphQLPopulationPromise.d.ts.map +0 -1
  1073. package/dist/features/relationship/graphQLPopulationPromise.js +0 -29
  1074. package/dist/features/relationship/graphQLPopulationPromise.js.map +0 -1
  1075. package/dist/features/relationship/i18n.d.ts.map +0 -1
  1076. package/dist/features/relationship/i18n.js.map +0 -1
  1077. package/dist/features/relationship/nodes/RelationshipNode.d.ts +0 -35
  1078. package/dist/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
  1079. package/dist/features/relationship/nodes/RelationshipNode.js +0 -111
  1080. package/dist/features/relationship/nodes/RelationshipNode.js.map +0 -1
  1081. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts +0 -13
  1082. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  1083. package/dist/features/relationship/nodes/components/RelationshipComponent.js +0 -171
  1084. package/dist/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
  1085. package/dist/features/relationship/plugins/index.d.ts +0 -7
  1086. package/dist/features/relationship/plugins/index.d.ts.map +0 -1
  1087. package/dist/features/relationship/plugins/index.js +0 -50
  1088. package/dist/features/relationship/plugins/index.js.map +0 -1
  1089. package/dist/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  1090. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js +0 -33
  1091. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
  1092. package/dist/features/toolbars/fixed/Toolbar/index.d.ts +0 -5
  1093. package/dist/features/toolbars/fixed/Toolbar/index.d.ts.map +0 -1
  1094. package/dist/features/toolbars/fixed/Toolbar/index.js +0 -207
  1095. package/dist/features/toolbars/fixed/Toolbar/index.js.map +0 -1
  1096. package/dist/features/toolbars/fixed/feature.client.d.ts +0 -6
  1097. package/dist/features/toolbars/fixed/feature.client.d.ts.map +0 -1
  1098. package/dist/features/toolbars/fixed/feature.client.js +0 -13
  1099. package/dist/features/toolbars/fixed/feature.client.js.map +0 -1
  1100. package/dist/features/toolbars/fixed/feature.server.d.ts +0 -18
  1101. package/dist/features/toolbars/fixed/feature.server.d.ts.map +0 -1
  1102. package/dist/features/toolbars/fixed/feature.server.js +0 -19
  1103. package/dist/features/toolbars/fixed/feature.server.js.map +0 -1
  1104. package/dist/features/toolbars/inline/Toolbar/index.d.ts +0 -4
  1105. package/dist/features/toolbars/inline/Toolbar/index.d.ts.map +0 -1
  1106. package/dist/features/toolbars/inline/Toolbar/index.js +0 -319
  1107. package/dist/features/toolbars/inline/Toolbar/index.js.map +0 -1
  1108. package/dist/features/toolbars/inline/feature.client.d.ts +0 -5
  1109. package/dist/features/toolbars/inline/feature.client.d.ts.map +0 -1
  1110. package/dist/features/toolbars/inline/feature.client.js +0 -13
  1111. package/dist/features/toolbars/inline/feature.client.js.map +0 -1
  1112. package/dist/features/toolbars/inline/feature.server.d.ts +0 -2
  1113. package/dist/features/toolbars/inline/feature.server.d.ts.map +0 -1
  1114. package/dist/features/toolbars/inline/feature.server.js +0 -11
  1115. package/dist/features/toolbars/inline/feature.server.js.map +0 -1
  1116. package/dist/features/upload/component/index.d.ts +0 -9
  1117. package/dist/features/upload/component/index.d.ts.map +0 -1
  1118. package/dist/features/upload/component/index.js +0 -242
  1119. package/dist/features/upload/component/index.js.map +0 -1
  1120. package/dist/features/upload/drawer/commands.d.ts.map +0 -1
  1121. package/dist/features/upload/drawer/commands.js.map +0 -1
  1122. package/dist/features/upload/drawer/index.d.ts.map +0 -1
  1123. package/dist/features/upload/drawer/index.js +0 -77
  1124. package/dist/features/upload/drawer/index.js.map +0 -1
  1125. package/dist/features/upload/feature.client.d.ts.map +0 -1
  1126. package/dist/features/upload/feature.client.js +0 -74
  1127. package/dist/features/upload/feature.client.js.map +0 -1
  1128. package/dist/features/upload/feature.server.d.ts +0 -18
  1129. package/dist/features/upload/feature.server.d.ts.map +0 -1
  1130. package/dist/features/upload/feature.server.js +0 -184
  1131. package/dist/features/upload/feature.server.js.map +0 -1
  1132. package/dist/features/upload/graphQLPopulationPromise.d.ts +0 -5
  1133. package/dist/features/upload/graphQLPopulationPromise.d.ts.map +0 -1
  1134. package/dist/features/upload/graphQLPopulationPromise.js +0 -52
  1135. package/dist/features/upload/graphQLPopulationPromise.js.map +0 -1
  1136. package/dist/features/upload/i18n.d.ts.map +0 -1
  1137. package/dist/features/upload/i18n.js.map +0 -1
  1138. package/dist/features/upload/nodes/UploadNode.d.ts +0 -39
  1139. package/dist/features/upload/nodes/UploadNode.d.ts.map +0 -1
  1140. package/dist/features/upload/nodes/UploadNode.js +0 -131
  1141. package/dist/features/upload/nodes/UploadNode.js.map +0 -1
  1142. package/dist/features/upload/plugin/index.d.ts +0 -8
  1143. package/dist/features/upload/plugin/index.d.ts.map +0 -1
  1144. package/dist/features/upload/plugin/index.js +0 -53
  1145. package/dist/features/upload/plugin/index.js.map +0 -1
  1146. package/dist/features/upload/validate.d.ts +0 -5
  1147. package/dist/features/upload/validate.d.ts.map +0 -1
  1148. package/dist/features/upload/validate.js.map +0 -1
  1149. package/dist/lexical/utils/invariant.d.ts +0 -2
  1150. package/dist/lexical/utils/invariant.d.ts.map +0 -1
  1151. package/dist/lexical/utils/invariant.js +0 -12
  1152. package/dist/lexical/utils/invariant.js.map +0 -1
  1153. /package/dist/features/align/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1154. /package/dist/features/align/{i18n.js → server/i18n.js} +0 -0
  1155. /package/dist/features/blockquote/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1156. /package/dist/features/blockquote/{i18n.js → server/i18n.js} +0 -0
  1157. /package/dist/features/blocks/{component → client/component}/FormSavePlugin.d.ts +0 -0
  1158. /package/dist/features/blocks/{component → client/component}/FormSavePlugin.js +0 -0
  1159. /package/dist/features/blocks/{component → client/component}/removeEmptyArrayValues.d.ts +0 -0
  1160. /package/dist/features/blocks/{component → client/component}/removeEmptyArrayValues.js +0 -0
  1161. /package/dist/features/blocks/{componentInline → client/componentInline}/index.d.ts +0 -0
  1162. /package/dist/features/blocks/{plugin → client/plugin}/commands.d.ts +0 -0
  1163. /package/dist/features/blocks/{plugin → client/plugin}/commands.js +0 -0
  1164. /package/dist/features/blocks/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1165. /package/dist/features/blocks/{i18n.js → server/i18n.js} +0 -0
  1166. /package/dist/features/blocks/{validate.js → server/validate.js} +0 -0
  1167. /package/dist/features/debug/treeView/{plugin → client/plugin}/index.js +0 -0
  1168. /package/dist/features/heading/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1169. /package/dist/features/heading/{i18n.js → server/i18n.js} +0 -0
  1170. /package/dist/features/horizontalRule/{component → client/component}/index.d.ts +0 -0
  1171. /package/dist/features/horizontalRule/{component → client/component}/index.js +0 -0
  1172. /package/dist/features/horizontalRule/{markdownTransformer.d.ts → client/markdownTransformer.d.ts} +0 -0
  1173. /package/dist/features/horizontalRule/{markdownTransformer.js → client/markdownTransformer.js} +0 -0
  1174. /package/dist/features/horizontalRule/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1175. /package/dist/features/horizontalRule/{i18n.js → server/i18n.js} +0 -0
  1176. /package/dist/features/indent/{toolbarIndentGroup.js → client/toolbarIndentGroup.js} +0 -0
  1177. /package/dist/features/indent/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1178. /package/dist/features/indent/{i18n.js → server/i18n.js} +0 -0
  1179. /package/dist/features/link/{plugins → client/plugins}/clickableLink/index.js +0 -0
  1180. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  1181. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/commands.js +0 -0
  1182. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
  1183. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/index.js +0 -0
  1184. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/types.js +0 -0
  1185. /package/dist/features/link/{drawer → server}/baseFields.d.ts +0 -0
  1186. /package/dist/features/link/{drawer → server}/baseFields.js +0 -0
  1187. /package/dist/features/link/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1188. /package/dist/features/link/{i18n.js → server/i18n.js} +0 -0
  1189. /package/dist/features/link/{validate.js → server/validate.js} +0 -0
  1190. /package/dist/features/lists/checklist/{plugin → client/plugin}/index.js +0 -0
  1191. /package/dist/features/lists/checklist/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1192. /package/dist/features/lists/checklist/{i18n.js → server/i18n.js} +0 -0
  1193. /package/dist/features/lists/orderedList/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1194. /package/dist/features/lists/orderedList/{i18n.js → server/i18n.js} +0 -0
  1195. /package/dist/features/lists/unorderedList/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1196. /package/dist/features/lists/unorderedList/{i18n.js → server/i18n.js} +0 -0
  1197. /package/dist/features/paragraph/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1198. /package/dist/features/paragraph/{i18n.js → server/i18n.js} +0 -0
  1199. /package/dist/features/relationship/{drawer → client/drawer}/commands.d.ts +0 -0
  1200. /package/dist/features/relationship/{drawer → client/drawer}/commands.js +0 -0
  1201. /package/dist/features/relationship/{drawer → client/drawer}/index.d.ts +0 -0
  1202. /package/dist/features/relationship/{drawer → client/drawer}/index.js +0 -0
  1203. /package/dist/features/relationship/{utils → client/utils}/EnabledRelationshipsCondition.d.ts +0 -0
  1204. /package/dist/features/relationship/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1205. /package/dist/features/relationship/{i18n.js → server/i18n.js} +0 -0
  1206. /package/dist/features/upload/{drawer → client/drawer}/commands.d.ts +0 -0
  1207. /package/dist/features/upload/{drawer → client/drawer}/commands.js +0 -0
  1208. /package/dist/features/upload/{drawer → client/drawer}/index.d.ts +0 -0
  1209. /package/dist/features/upload/{feature.client.d.ts → client/feature.client.d.ts} +0 -0
  1210. /package/dist/features/upload/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1211. /package/dist/features/upload/{i18n.js → server/i18n.js} +0 -0
  1212. /package/dist/features/upload/{validate.js → server/validate.js} +0 -0
@@ -0,0 +1,171 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js';
4
+ import { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection.js';
5
+ import { mergeRegister } from '@lexical/utils';
6
+ import { getTranslation } from '@payloadcms/translations';
7
+ import { Button, useConfig, useDocumentDrawer, usePayloadAPI, useTranslation } from '@payloadcms/ui';
8
+ import { $getNodeByKey, $getSelection, $isNodeSelection, CLICK_COMMAND, COMMAND_PRIORITY_LOW, KEY_BACKSPACE_COMMAND, KEY_DELETE_COMMAND } from 'lexical';
9
+ import React, { useCallback, useEffect, useReducer, useRef, useState } from 'react';
10
+ import { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js';
11
+ import { INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND } from '../drawer/commands.js';
12
+ import { $isRelationshipNode } from '../nodes/RelationshipNode.js';
13
+ const baseClass = 'lexical-relationship';
14
+ const initialParams = {
15
+ depth: 0
16
+ };
17
+ const Component = (props)=>{
18
+ const { data: { relationTo, value: id }, nodeKey } = props;
19
+ const relationshipElemRef = useRef(null);
20
+ const [editor] = useLexicalComposerContext();
21
+ const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
22
+ const { field } = useEditorConfigContext();
23
+ const { config: { collections, routes: { api }, serverURL } } = useConfig();
24
+ const [relatedCollection, setRelatedCollection] = useState(()=>collections.find((coll)=>coll.slug === relationTo));
25
+ const { i18n, t } = useTranslation();
26
+ const [cacheBust, dispatchCacheBust] = useReducer((state)=>state + 1, 0);
27
+ const [{ data }, { setParams }] = usePayloadAPI(`${serverURL}${api}/${relatedCollection.slug}/${id}`, {
28
+ initialParams
29
+ });
30
+ const [DocumentDrawer, DocumentDrawerToggler, { closeDrawer }] = useDocumentDrawer({
31
+ id,
32
+ collectionSlug: relatedCollection.slug
33
+ });
34
+ const removeRelationship = useCallback(()=>{
35
+ editor.update(()=>{
36
+ $getNodeByKey(nodeKey).remove();
37
+ });
38
+ }, [
39
+ editor,
40
+ nodeKey
41
+ ]);
42
+ const updateRelationship = React.useCallback(({ doc })=>{
43
+ setParams({
44
+ ...initialParams,
45
+ cacheBust
46
+ });
47
+ closeDrawer();
48
+ dispatchCacheBust();
49
+ }, [
50
+ cacheBust,
51
+ setParams,
52
+ closeDrawer
53
+ ]);
54
+ const $onDelete = useCallback((payload)=>{
55
+ if (isSelected && $isNodeSelection($getSelection())) {
56
+ const event = payload;
57
+ event.preventDefault();
58
+ const node = $getNodeByKey(nodeKey);
59
+ if ($isRelationshipNode(node)) {
60
+ node.remove();
61
+ return true;
62
+ }
63
+ }
64
+ return false;
65
+ }, [
66
+ isSelected,
67
+ nodeKey
68
+ ]);
69
+ const onClick = useCallback((payload)=>{
70
+ const event = payload;
71
+ // Check if relationshipElemRef.target or anything WITHIN relationshipElemRef.target was clicked
72
+ if (event.target === relationshipElemRef.current || relationshipElemRef.current?.contains(event.target)) {
73
+ if (event.shiftKey) {
74
+ setSelected(!isSelected);
75
+ } else {
76
+ if (!isSelected) {
77
+ clearSelection();
78
+ setSelected(true);
79
+ }
80
+ }
81
+ return true;
82
+ }
83
+ return false;
84
+ }, [
85
+ isSelected,
86
+ setSelected,
87
+ clearSelection
88
+ ]);
89
+ useEffect(()=>{
90
+ return mergeRegister(editor.registerCommand(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_DELETE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_BACKSPACE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW));
91
+ }, [
92
+ clearSelection,
93
+ editor,
94
+ isSelected,
95
+ nodeKey,
96
+ $onDelete,
97
+ setSelected,
98
+ onClick
99
+ ]);
100
+ return /*#__PURE__*/ _jsxs("div", {
101
+ className: [
102
+ baseClass,
103
+ isSelected && `${baseClass}--selected`
104
+ ].filter(Boolean).join(' '),
105
+ contentEditable: false,
106
+ ref: relationshipElemRef,
107
+ children: [
108
+ /*#__PURE__*/ _jsxs("div", {
109
+ className: `${baseClass}__wrap`,
110
+ children: [
111
+ /*#__PURE__*/ _jsx("p", {
112
+ className: `${baseClass}__label`,
113
+ children: t('fields:labelRelationship', {
114
+ label: getTranslation(relatedCollection.labels.singular, i18n)
115
+ })
116
+ }),
117
+ /*#__PURE__*/ _jsx(DocumentDrawerToggler, {
118
+ className: `${baseClass}__doc-drawer-toggler`,
119
+ children: /*#__PURE__*/ _jsx("p", {
120
+ className: `${baseClass}__title`,
121
+ children: data ? data[relatedCollection?.admin?.useAsTitle || 'id'] : id
122
+ })
123
+ })
124
+ ]
125
+ }),
126
+ editor.isEditable() && /*#__PURE__*/ _jsxs("div", {
127
+ className: `${baseClass}__actions`,
128
+ children: [
129
+ /*#__PURE__*/ _jsx(Button, {
130
+ buttonStyle: "icon-label",
131
+ className: `${baseClass}__swapButton`,
132
+ disabled: field?.admin?.readOnly,
133
+ el: "div",
134
+ icon: "swap",
135
+ onClick: ()=>{
136
+ editor.dispatchCommand(INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND, {
137
+ replace: {
138
+ nodeKey
139
+ }
140
+ });
141
+ },
142
+ round: true,
143
+ tooltip: t('fields:swapRelationship')
144
+ }),
145
+ /*#__PURE__*/ _jsx(Button, {
146
+ buttonStyle: "icon-label",
147
+ className: `${baseClass}__removeButton`,
148
+ disabled: field?.admin?.readOnly,
149
+ icon: "x",
150
+ onClick: (e)=>{
151
+ e.preventDefault();
152
+ removeRelationship();
153
+ },
154
+ round: true,
155
+ tooltip: t('fields:removeRelationship')
156
+ })
157
+ ]
158
+ }),
159
+ id && /*#__PURE__*/ _jsx(DocumentDrawer, {
160
+ onSave: updateRelationship
161
+ })
162
+ ]
163
+ });
164
+ };
165
+ export const RelationshipComponent = (props)=>{
166
+ return /*#__PURE__*/ _jsx(Component, {
167
+ ...props
168
+ });
169
+ };
170
+
171
+ //# sourceMappingURL=RelationshipComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/relationship/client/components/RelationshipComponent.tsx"],"sourcesContent":["'use client'\nimport type { ElementFormatType } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection.js'\nimport { mergeRegister } from '@lexical/utils'\nimport { getTranslation } from '@payloadcms/translations'\nimport { Button, useConfig, useDocumentDrawer, usePayloadAPI, useTranslation } from '@payloadcms/ui'\nimport {\n $getNodeByKey,\n $getSelection,\n $isNodeSelection,\n CLICK_COMMAND,\n COMMAND_PRIORITY_LOW,\n KEY_BACKSPACE_COMMAND,\n KEY_DELETE_COMMAND,\n} from 'lexical'\nimport React, { useCallback, useEffect, useReducer, useRef, useState } from 'react'\n\nimport type { RelationshipData } from '../../server/nodes/RelationshipNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND } from '../drawer/commands.js'\nimport { $isRelationshipNode } from '../nodes/RelationshipNode.js'\nimport './index.scss'\n\nconst baseClass = 'lexical-relationship'\n\nconst initialParams = {\n depth: 0,\n}\n\ntype Props = {\n className?: string\n data: RelationshipData\n format?: ElementFormatType\n nodeKey?: string\n}\n\nconst Component: React.FC<Props> = (props) => {\n const {\n data: { relationTo, value: id },\n nodeKey,\n } = props\n\n const relationshipElemRef = useRef<HTMLDivElement | null>(null)\n\n const [editor] = useLexicalComposerContext()\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n const { field } = useEditorConfigContext()\n const {\n config: {\n collections,\n routes: { api },\n serverURL,\n },\n } = useConfig()\n\n const [relatedCollection, setRelatedCollection] = useState(() =>\n collections.find((coll) => coll.slug === relationTo),\n )\n\n const { i18n, t } = useTranslation()\n const [cacheBust, dispatchCacheBust] = useReducer((state) => state + 1, 0)\n const [{ data }, { setParams }] = usePayloadAPI(\n `${serverURL}${api}/${relatedCollection.slug}/${id}`,\n { initialParams },\n )\n\n const [DocumentDrawer, DocumentDrawerToggler, { closeDrawer }] = useDocumentDrawer({\n id,\n collectionSlug: relatedCollection.slug,\n })\n\n const removeRelationship = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey).remove()\n })\n }, [editor, nodeKey])\n\n const updateRelationship = React.useCallback(\n ({ doc }) => {\n setParams({\n ...initialParams,\n cacheBust, // do this to get the usePayloadAPI to re-fetch the data even though the URL string hasn't changed\n })\n\n closeDrawer()\n dispatchCacheBust()\n },\n [cacheBust, setParams, closeDrawer],\n )\n\n const $onDelete = useCallback(\n (payload: KeyboardEvent) => {\n if (isSelected && $isNodeSelection($getSelection())) {\n const event: KeyboardEvent = payload\n event.preventDefault()\n const node = $getNodeByKey(nodeKey)\n if ($isRelationshipNode(node)) {\n node.remove()\n return true\n }\n }\n return false\n },\n [isSelected, nodeKey],\n )\n const onClick = useCallback(\n (payload: MouseEvent) => {\n const event = payload\n // Check if relationshipElemRef.target or anything WITHIN relationshipElemRef.target was clicked\n if (\n event.target === relationshipElemRef.current ||\n relationshipElemRef.current?.contains(event.target as Node)\n ) {\n if (event.shiftKey) {\n setSelected(!isSelected)\n } else {\n if (!isSelected) {\n clearSelection()\n setSelected(true)\n }\n }\n return true\n }\n\n return false\n },\n [isSelected, setSelected, clearSelection],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<MouseEvent>(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW),\n\n editor.registerCommand(KEY_DELETE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n editor.registerCommand(KEY_BACKSPACE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n )\n }, [clearSelection, editor, isSelected, nodeKey, $onDelete, setSelected, onClick])\n\n return (\n <div\n className={[baseClass, isSelected && `${baseClass}--selected`].filter(Boolean).join(' ')}\n contentEditable={false}\n ref={relationshipElemRef}\n >\n <div className={`${baseClass}__wrap`}>\n <p className={`${baseClass}__label`}>\n {t('fields:labelRelationship', {\n label: getTranslation(relatedCollection.labels.singular, i18n),\n })}\n </p>\n <DocumentDrawerToggler className={`${baseClass}__doc-drawer-toggler`}>\n <p className={`${baseClass}__title`}>\n {data ? data[relatedCollection?.admin?.useAsTitle || 'id'] : id}\n </p>\n </DocumentDrawerToggler>\n </div>\n {editor.isEditable() && (\n <div className={`${baseClass}__actions`}>\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__swapButton`}\n disabled={field?.admin?.readOnly}\n el=\"div\"\n icon=\"swap\"\n onClick={() => {\n editor.dispatchCommand(INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND, {\n replace: { nodeKey },\n })\n }}\n round\n tooltip={t('fields:swapRelationship')}\n />\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.admin?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeRelationship()\n }}\n round\n tooltip={t('fields:removeRelationship')}\n />\n </div>\n )}\n\n {id && <DocumentDrawer onSave={updateRelationship} />}\n </div>\n )\n}\n\nexport const RelationshipComponent = (props: Props): React.ReactNode => {\n return <Component {...props} />\n}\n"],"names":["useLexicalComposerContext","useLexicalNodeSelection","mergeRegister","getTranslation","Button","useConfig","useDocumentDrawer","usePayloadAPI","useTranslation","$getNodeByKey","$getSelection","$isNodeSelection","CLICK_COMMAND","COMMAND_PRIORITY_LOW","KEY_BACKSPACE_COMMAND","KEY_DELETE_COMMAND","React","useCallback","useEffect","useReducer","useRef","useState","useEditorConfigContext","INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND","$isRelationshipNode","baseClass","initialParams","depth","Component","props","data","relationTo","value","id","nodeKey","relationshipElemRef","editor","isSelected","setSelected","clearSelection","field","config","collections","routes","api","serverURL","relatedCollection","setRelatedCollection","find","coll","slug","i18n","t","cacheBust","dispatchCacheBust","state","setParams","DocumentDrawer","DocumentDrawerToggler","closeDrawer","collectionSlug","removeRelationship","update","remove","updateRelationship","doc","$onDelete","payload","event","preventDefault","node","onClick","target","current","contains","shiftKey","registerCommand","div","className","filter","Boolean","join","contentEditable","ref","p","label","labels","singular","admin","useAsTitle","isEditable","buttonStyle","disabled","readOnly","el","icon","dispatchCommand","replace","round","tooltip","e","onSave","RelationshipComponent"],"mappings":"AAAA;;AAGA,SAASA,yBAAyB,QAAQ,2CAA0C;AACpF,SAASC,uBAAuB,QAAQ,4CAA2C;AACnF,SAASC,aAAa,QAAQ,iBAAgB;AAC9C,SAASC,cAAc,QAAQ,2BAA0B;AACzD,SAASC,MAAM,EAAEC,SAAS,EAAEC,iBAAiB,EAAEC,aAAa,EAAEC,cAAc,QAAQ,iBAAgB;AACpG,SACEC,aAAa,EACbC,aAAa,EACbC,gBAAgB,EAChBC,aAAa,EACbC,oBAAoB,EACpBC,qBAAqB,EACrBC,kBAAkB,QACb,UAAS;AAChB,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,UAAU,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAO;AAInF,SAASC,sBAAsB,QAAQ,4DAA2D;AAClG,SAASC,uCAAuC,QAAQ,wBAAuB;AAC/E,SAASC,mBAAmB,QAAQ,+BAA8B;AAGlE,MAAMC,YAAY;AAElB,MAAMC,gBAAgB;IACpBC,OAAO;AACT;AASA,MAAMC,YAA6B,CAACC;IAClC,MAAM,EACJC,MAAM,EAAEC,UAAU,EAAEC,OAAOC,EAAE,EAAE,EAC/BC,OAAO,EACR,GAAGL;IAEJ,MAAMM,sBAAsBf,OAA8B;IAE1D,MAAM,CAACgB,OAAO,GAAGpC;IACjB,MAAM,CAACqC,YAAYC,aAAaC,eAAe,GAAGtC,wBAAwBiC;IAC1E,MAAM,EAAEM,KAAK,EAAE,GAAGlB;IAClB,MAAM,EACJmB,QAAQ,EACNC,WAAW,EACXC,QAAQ,EAAEC,GAAG,EAAE,EACfC,SAAS,EACV,EACF,GAAGxC;IAEJ,MAAM,CAACyC,mBAAmBC,qBAAqB,GAAG1B,SAAS,IACzDqB,YAAYM,IAAI,CAAC,CAACC,OAASA,KAAKC,IAAI,KAAKnB;IAG3C,MAAM,EAAEoB,IAAI,EAAEC,CAAC,EAAE,GAAG5C;IACpB,MAAM,CAAC6C,WAAWC,kBAAkB,GAAGnC,WAAW,CAACoC,QAAUA,QAAQ,GAAG;IACxE,MAAM,CAAC,EAAEzB,IAAI,EAAE,EAAE,EAAE0B,SAAS,EAAE,CAAC,GAAGjD,cAChC,CAAC,EAAEsC,UAAU,EAAED,IAAI,CAAC,EAAEE,kBAAkBI,IAAI,CAAC,CAAC,EAAEjB,GAAG,CAAC,EACpD;QAAEP;IAAc;IAGlB,MAAM,CAAC+B,gBAAgBC,uBAAuB,EAAEC,WAAW,EAAE,CAAC,GAAGrD,kBAAkB;QACjF2B;QACA2B,gBAAgBd,kBAAkBI,IAAI;IACxC;IAEA,MAAMW,qBAAqB5C,YAAY;QACrCmB,OAAO0B,MAAM,CAAC;YACZrD,cAAcyB,SAAS6B,MAAM;QAC/B;IACF,GAAG;QAAC3B;QAAQF;KAAQ;IAEpB,MAAM8B,qBAAqBhD,MAAMC,WAAW,CAC1C,CAAC,EAAEgD,GAAG,EAAE;QACNT,UAAU;YACR,GAAG9B,aAAa;YAChB2B;QACF;QAEAM;QACAL;IACF,GACA;QAACD;QAAWG;QAAWG;KAAY;IAGrC,MAAMO,YAAYjD,YAChB,CAACkD;QACC,IAAI9B,cAAc1B,iBAAiBD,kBAAkB;YACnD,MAAM0D,QAAuBD;YAC7BC,MAAMC,cAAc;YACpB,MAAMC,OAAO7D,cAAcyB;YAC3B,IAAIV,oBAAoB8C,OAAO;gBAC7BA,KAAKP,MAAM;gBACX,OAAO;YACT;QACF;QACA,OAAO;IACT,GACA;QAAC1B;QAAYH;KAAQ;IAEvB,MAAMqC,UAAUtD,YACd,CAACkD;QACC,MAAMC,QAAQD;QACd,gGAAgG;QAChG,IACEC,MAAMI,MAAM,KAAKrC,oBAAoBsC,OAAO,IAC5CtC,oBAAoBsC,OAAO,EAAEC,SAASN,MAAMI,MAAM,GAClD;YACA,IAAIJ,MAAMO,QAAQ,EAAE;gBAClBrC,YAAY,CAACD;YACf,OAAO;gBACL,IAAI,CAACA,YAAY;oBACfE;oBACAD,YAAY;gBACd;YACF;YACA,OAAO;QACT;QAEA,OAAO;IACT,GACA;QAACD;QAAYC;QAAaC;KAAe;IAG3CrB,UAAU;QACR,OAAOhB,cACLkC,OAAOwC,eAAe,CAAahE,eAAe2D,SAAS1D,uBAE3DuB,OAAOwC,eAAe,CAAC7D,oBAAoBmD,WAAWrD,uBACtDuB,OAAOwC,eAAe,CAAC9D,uBAAuBoD,WAAWrD;IAE7D,GAAG;QAAC0B;QAAgBH;QAAQC;QAAYH;QAASgC;QAAW5B;QAAaiC;KAAQ;IAEjF,qBACE,MAACM;QACCC,WAAW;YAACrD;YAAWY,cAAc,CAAC,EAAEZ,UAAU,UAAU,CAAC;SAAC,CAACsD,MAAM,CAACC,SAASC,IAAI,CAAC;QACpFC,iBAAiB;QACjBC,KAAKhD;;0BAEL,MAAC0C;gBAAIC,WAAW,CAAC,EAAErD,UAAU,MAAM,CAAC;;kCAClC,KAAC2D;wBAAEN,WAAW,CAAC,EAAErD,UAAU,OAAO,CAAC;kCAChC2B,EAAE,4BAA4B;4BAC7BiC,OAAOlF,eAAe2C,kBAAkBwC,MAAM,CAACC,QAAQ,EAAEpC;wBAC3D;;kCAEF,KAACO;wBAAsBoB,WAAW,CAAC,EAAErD,UAAU,oBAAoB,CAAC;kCAClE,cAAA,KAAC2D;4BAAEN,WAAW,CAAC,EAAErD,UAAU,OAAO,CAAC;sCAChCK,OAAOA,IAAI,CAACgB,mBAAmB0C,OAAOC,cAAc,KAAK,GAAGxD;;;;;YAIlEG,OAAOsD,UAAU,oBAChB,MAACb;gBAAIC,WAAW,CAAC,EAAErD,UAAU,SAAS,CAAC;;kCACrC,KAACrB;wBACCuF,aAAY;wBACZb,WAAW,CAAC,EAAErD,UAAU,YAAY,CAAC;wBACrCmE,UAAUpD,OAAOgD,OAAOK;wBACxBC,IAAG;wBACHC,MAAK;wBACLxB,SAAS;4BACPnC,OAAO4D,eAAe,CAACzE,yCAAyC;gCAC9D0E,SAAS;oCAAE/D;gCAAQ;4BACrB;wBACF;wBACAgE,KAAK;wBACLC,SAAS/C,EAAE;;kCAEb,KAAChD;wBACCuF,aAAY;wBACZb,WAAW,CAAC,EAAErD,UAAU,cAAc,CAAC;wBACvCmE,UAAUpD,OAAOgD,OAAOK;wBACxBE,MAAK;wBACLxB,SAAS,CAAC6B;4BACRA,EAAE/B,cAAc;4BAChBR;wBACF;wBACAqC,KAAK;wBACLC,SAAS/C,EAAE;;;;YAKhBnB,oBAAM,KAACwB;gBAAe4C,QAAQrC;;;;AAGrC;AAEA,OAAO,MAAMsC,wBAAwB,CAACzE;IACpC,qBAAO,KAACD;QAAW,GAAGC,KAAK;;AAC7B,EAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../src/features/relationship/client/drawer/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,eAAO,MAAM,uCAAuC,EAAE,cAAc,CAAC;IACnE,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,KAAK,CAAA;CACrC,CAA4D,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/relationship/client/drawer/commands.ts"],"sourcesContent":["import type { LexicalCommand } from 'lexical'\n\nimport { createCommand } from 'lexical'\n\nexport const INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND: LexicalCommand<{\n replace: { nodeKey: string } | false\n}> = createCommand('INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND')\n"],"names":["createCommand","INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND"],"mappings":"AAEA,SAASA,aAAa,QAAQ,UAAS;AAEvC,OAAO,MAAMC,0CAERD,cAAc,2CAA0C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/relationship/client/drawer/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAiC/D,KAAK,KAAK,GAAG;IACX,sBAAsB,EAAE,IAAI,GAAG,MAAM,EAAE,CAAA;CACxC,CAAA;AAkDD,eAAO,MAAM,kBAAkB,UAAW,KAAK,KAAG,KAAK,CAAC,SAQvD,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/relationship/client/drawer/index.tsx"],"sourcesContent":["'use client'\nimport type { LexicalEditor } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useListDrawer } from '@payloadcms/ui'\nimport { $getNodeByKey, COMMAND_PRIORITY_EDITOR } from 'lexical'\nimport React, { useCallback, useEffect, useState } from 'react'\n\nimport { $createRelationshipNode } from '../nodes/RelationshipNode.js'\nimport { INSERT_RELATIONSHIP_COMMAND } from '../plugins/index.js'\nimport { EnabledRelationshipsCondition } from '../utils/EnabledRelationshipsCondition.js'\nimport { INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND } from './commands.js'\n\nconst insertRelationship = ({\n editor,\n relationTo,\n replaceNodeKey,\n value,\n}: {\n editor: LexicalEditor\n relationTo: string\n replaceNodeKey: null | string\n value: number | string\n}) => {\n if (!replaceNodeKey) {\n editor.dispatchCommand(INSERT_RELATIONSHIP_COMMAND, {\n relationTo,\n value,\n })\n } else {\n editor.update(() => {\n const node = $getNodeByKey(replaceNodeKey)\n if (node) {\n node.replace($createRelationshipNode({ relationTo, value }))\n }\n })\n }\n}\n\ntype Props = {\n enabledCollectionSlugs: null | string[]\n}\n\nconst RelationshipDrawerComponent: React.FC<Props> = ({ enabledCollectionSlugs }) => {\n const [editor] = useLexicalComposerContext()\n const [selectedCollectionSlug, setSelectedCollectionSlug] = useState(\n () => enabledCollectionSlugs[0],\n )\n const [replaceNodeKey, setReplaceNodeKey] = useState<null | string>(null)\n\n const [ListDrawer, ListDrawerToggler, { closeDrawer, isDrawerOpen, openDrawer }] = useListDrawer({\n collectionSlugs: enabledCollectionSlugs,\n selectedCollection: selectedCollectionSlug,\n })\n\n useEffect(() => {\n return editor.registerCommand<{\n replace: { nodeKey: string } | false\n }>(\n INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND,\n (payload) => {\n setReplaceNodeKey(payload?.replace ? payload?.replace.nodeKey : null)\n openDrawer()\n return true\n },\n COMMAND_PRIORITY_EDITOR,\n )\n }, [editor, openDrawer])\n\n const onSelect = useCallback(\n ({ collectionSlug, docID }) => {\n insertRelationship({\n editor,\n relationTo: collectionSlug,\n replaceNodeKey,\n value: docID,\n })\n closeDrawer()\n },\n [editor, closeDrawer, replaceNodeKey],\n )\n\n useEffect(() => {\n // always reset back to first option\n // TODO: this is not working, see the ListDrawer component\n setSelectedCollectionSlug(enabledCollectionSlugs[0])\n }, [isDrawerOpen, enabledCollectionSlugs])\n\n return <ListDrawer onSelect={onSelect} />\n}\n\nexport const RelationshipDrawer = (props: Props): React.ReactNode => {\n return props?.enabledCollectionSlugs?.length > 0 ? ( // If enabledCollectionSlugs it overrides what EnabledRelationshipsCondition is doing\n <RelationshipDrawerComponent {...props} />\n ) : (\n <EnabledRelationshipsCondition {...props}>\n <RelationshipDrawerComponent {...props} />\n </EnabledRelationshipsCondition>\n )\n}\n"],"names":["useLexicalComposerContext","useListDrawer","$getNodeByKey","COMMAND_PRIORITY_EDITOR","React","useCallback","useEffect","useState","$createRelationshipNode","INSERT_RELATIONSHIP_COMMAND","EnabledRelationshipsCondition","INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND","insertRelationship","editor","relationTo","replaceNodeKey","value","dispatchCommand","update","node","replace","RelationshipDrawerComponent","enabledCollectionSlugs","selectedCollectionSlug","setSelectedCollectionSlug","setReplaceNodeKey","ListDrawer","ListDrawerToggler","closeDrawer","isDrawerOpen","openDrawer","collectionSlugs","selectedCollection","registerCommand","payload","nodeKey","onSelect","collectionSlug","docID","RelationshipDrawer","props","length"],"mappings":"AAAA;;AAGA,SAASA,yBAAyB,QAAQ,2CAA0C;AACpF,SAASC,aAAa,QAAQ,iBAAgB;AAC9C,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,UAAS;AAChE,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AAE/D,SAASC,uBAAuB,QAAQ,+BAA8B;AACtE,SAASC,2BAA2B,QAAQ,sBAAqB;AACjE,SAASC,6BAA6B,QAAQ,4CAA2C;AACzF,SAASC,uCAAuC,QAAQ,gBAAe;AAEvE,MAAMC,qBAAqB,CAAC,EAC1BC,MAAM,EACNC,UAAU,EACVC,cAAc,EACdC,KAAK,EAMN;IACC,IAAI,CAACD,gBAAgB;QACnBF,OAAOI,eAAe,CAACR,6BAA6B;YAClDK;YACAE;QACF;IACF,OAAO;QACLH,OAAOK,MAAM,CAAC;YACZ,MAAMC,OAAOjB,cAAca;YAC3B,IAAII,MAAM;gBACRA,KAAKC,OAAO,CAACZ,wBAAwB;oBAAEM;oBAAYE;gBAAM;YAC3D;QACF;IACF;AACF;AAMA,MAAMK,8BAA+C,CAAC,EAAEC,sBAAsB,EAAE;IAC9E,MAAM,CAACT,OAAO,GAAGb;IACjB,MAAM,CAACuB,wBAAwBC,0BAA0B,GAAGjB,SAC1D,IAAMe,sBAAsB,CAAC,EAAE;IAEjC,MAAM,CAACP,gBAAgBU,kBAAkB,GAAGlB,SAAwB;IAEpE,MAAM,CAACmB,YAAYC,mBAAmB,EAAEC,WAAW,EAAEC,YAAY,EAAEC,UAAU,EAAE,CAAC,GAAG7B,cAAc;QAC/F8B,iBAAiBT;QACjBU,oBAAoBT;IACtB;IAEAjB,UAAU;QACR,OAAOO,OAAOoB,eAAe,CAG3BtB,yCACA,CAACuB;YACCT,kBAAkBS,SAASd,UAAUc,SAASd,QAAQe,UAAU;YAChEL;YACA,OAAO;QACT,GACA3B;IAEJ,GAAG;QAACU;QAAQiB;KAAW;IAEvB,MAAMM,WAAW/B,YACf,CAAC,EAAEgC,cAAc,EAAEC,KAAK,EAAE;QACxB1B,mBAAmB;YACjBC;YACAC,YAAYuB;YACZtB;YACAC,OAAOsB;QACT;QACAV;IACF,GACA;QAACf;QAAQe;QAAab;KAAe;IAGvCT,UAAU;QACR,oCAAoC;QACpC,0DAA0D;QAC1DkB,0BAA0BF,sBAAsB,CAAC,EAAE;IACrD,GAAG;QAACO;QAAcP;KAAuB;IAEzC,qBAAO,KAACI;QAAWU,UAAUA;;AAC/B;AAEA,OAAO,MAAMG,qBAAqB,CAACC;IACjC,OAAOA,OAAOlB,wBAAwBmB,SAAS,kBAC7C,KAACpB;QAA6B,GAAGmB,KAAK;uBAEtC,KAAC9B;QAA+B,GAAG8B,KAAK;kBACtC,cAAA,KAACnB;YAA6B,GAAGmB,KAAK;;;AAG5C,EAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const RelationshipFeatureClient: import("react").FC<({
2
+ featureKey: string;
3
+ order: number;
4
+ } & {
5
+ maxDepth?: number;
6
+ } & {
7
+ disabledCollections?: import("packages/payload/src/index.js").CollectionSlug[];
8
+ enabledCollections?: never;
9
+ }) | ({
10
+ featureKey: string;
11
+ order: number;
12
+ } & {
13
+ maxDepth?: number;
14
+ } & {
15
+ disabledCollections?: never;
16
+ enabledCollections?: import("packages/payload/src/index.js").CollectionSlug[];
17
+ })>;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/client/index.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;GAuDpC,CAAA"}
@@ -0,0 +1,72 @@
1
+ 'use client';
2
+ import { $isNodeSelection } from 'lexical';
3
+ import { RelationshipIcon } from '../../../lexical/ui/icons/Relationship/index.js';
4
+ import { createClientFeature } from '../../../utilities/createClientFeature.js';
5
+ import { slashMenuBasicGroupWithItems } from '../../shared/slashMenu/basicGroup.js';
6
+ import { toolbarAddDropdownGroupWithItems } from '../../shared/toolbar/addDropdownGroup.js';
7
+ import { INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND } from './drawer/commands.js';
8
+ import { $isRelationshipNode, RelationshipNode } from './nodes/RelationshipNode.js';
9
+ import { RelationshipPlugin } from './plugins/index.js';
10
+ export const RelationshipFeatureClient = createClientFeature({
11
+ nodes: [
12
+ RelationshipNode
13
+ ],
14
+ plugins: [
15
+ {
16
+ Component: RelationshipPlugin,
17
+ position: 'normal'
18
+ }
19
+ ],
20
+ slashMenu: {
21
+ groups: [
22
+ slashMenuBasicGroupWithItems([
23
+ {
24
+ Icon: RelationshipIcon,
25
+ key: 'relationship',
26
+ keywords: [
27
+ 'relationship',
28
+ 'relation',
29
+ 'rel'
30
+ ],
31
+ label: ({ i18n })=>{
32
+ return i18n.t('lexical:relationship:label');
33
+ },
34
+ onSelect: ({ editor })=>{
35
+ // dispatch INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND
36
+ editor.dispatchCommand(INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND, {
37
+ replace: false
38
+ });
39
+ }
40
+ }
41
+ ])
42
+ ]
43
+ },
44
+ toolbarFixed: {
45
+ groups: [
46
+ toolbarAddDropdownGroupWithItems([
47
+ {
48
+ ChildComponent: RelationshipIcon,
49
+ isActive: ({ selection })=>{
50
+ if (!$isNodeSelection(selection) || !selection.getNodes().length) {
51
+ return false;
52
+ }
53
+ const firstNode = selection.getNodes()[0];
54
+ return $isRelationshipNode(firstNode);
55
+ },
56
+ key: 'relationship',
57
+ label: ({ i18n })=>{
58
+ return i18n.t('lexical:relationship:label');
59
+ },
60
+ onSelect: ({ editor })=>{
61
+ // dispatch INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND
62
+ editor.dispatchCommand(INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND, {
63
+ replace: false
64
+ });
65
+ }
66
+ }
67
+ ])
68
+ ]
69
+ }
70
+ });
71
+
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/features/relationship/client/index.tsx"],"sourcesContent":["'use client'\n\nimport { $isNodeSelection } from 'lexical'\n\nimport type { RelationshipFeatureProps } from '../server/index.js'\n\nimport { RelationshipIcon } from '../../../lexical/ui/icons/Relationship/index.js'\nimport { createClientFeature } from '../../../utilities/createClientFeature.js'\nimport { slashMenuBasicGroupWithItems } from '../../shared/slashMenu/basicGroup.js'\nimport { toolbarAddDropdownGroupWithItems } from '../../shared/toolbar/addDropdownGroup.js'\nimport { INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND } from './drawer/commands.js'\nimport { $isRelationshipNode, RelationshipNode } from './nodes/RelationshipNode.js'\nimport { RelationshipPlugin } from './plugins/index.js'\n\nexport const RelationshipFeatureClient = createClientFeature<RelationshipFeatureProps>({\n nodes: [RelationshipNode],\n plugins: [\n {\n Component: RelationshipPlugin,\n position: 'normal',\n },\n ],\n slashMenu: {\n groups: [\n slashMenuBasicGroupWithItems([\n {\n Icon: RelationshipIcon,\n key: 'relationship',\n keywords: ['relationship', 'relation', 'rel'],\n label: ({ i18n }) => {\n return i18n.t('lexical:relationship:label')\n },\n onSelect: ({ editor }) => {\n // dispatch INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND\n editor.dispatchCommand(INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND, {\n replace: false,\n })\n },\n },\n ]),\n ],\n },\n toolbarFixed: {\n groups: [\n toolbarAddDropdownGroupWithItems([\n {\n ChildComponent: RelationshipIcon,\n isActive: ({ selection }) => {\n if (!$isNodeSelection(selection) || !selection.getNodes().length) {\n return false\n }\n\n const firstNode = selection.getNodes()[0]\n return $isRelationshipNode(firstNode)\n },\n key: 'relationship',\n label: ({ i18n }) => {\n return i18n.t('lexical:relationship:label')\n },\n onSelect: ({ editor }) => {\n // dispatch INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND\n editor.dispatchCommand(INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND, {\n replace: false,\n })\n },\n },\n ]),\n ],\n },\n})\n"],"names":["$isNodeSelection","RelationshipIcon","createClientFeature","slashMenuBasicGroupWithItems","toolbarAddDropdownGroupWithItems","INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND","$isRelationshipNode","RelationshipNode","RelationshipPlugin","RelationshipFeatureClient","nodes","plugins","Component","position","slashMenu","groups","Icon","key","keywords","label","i18n","t","onSelect","editor","dispatchCommand","replace","toolbarFixed","ChildComponent","isActive","selection","getNodes","length","firstNode"],"mappings":"AAAA;AAEA,SAASA,gBAAgB,QAAQ,UAAS;AAI1C,SAASC,gBAAgB,QAAQ,kDAAiD;AAClF,SAASC,mBAAmB,QAAQ,4CAA2C;AAC/E,SAASC,4BAA4B,QAAQ,uCAAsC;AACnF,SAASC,gCAAgC,QAAQ,2CAA0C;AAC3F,SAASC,uCAAuC,QAAQ,uBAAsB;AAC9E,SAASC,mBAAmB,EAAEC,gBAAgB,QAAQ,8BAA6B;AACnF,SAASC,kBAAkB,QAAQ,qBAAoB;AAEvD,OAAO,MAAMC,4BAA4BP,oBAA8C;IACrFQ,OAAO;QAACH;KAAiB;IACzBI,SAAS;QACP;YACEC,WAAWJ;YACXK,UAAU;QACZ;KACD;IACDC,WAAW;QACTC,QAAQ;YACNZ,6BAA6B;gBAC3B;oBACEa,MAAMf;oBACNgB,KAAK;oBACLC,UAAU;wBAAC;wBAAgB;wBAAY;qBAAM;oBAC7CC,OAAO,CAAC,EAAEC,IAAI,EAAE;wBACd,OAAOA,KAAKC,CAAC,CAAC;oBAChB;oBACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;wBACnB,mDAAmD;wBACnDA,OAAOC,eAAe,CAACnB,yCAAyC;4BAC9DoB,SAAS;wBACX;oBACF;gBACF;aACD;SACF;IACH;IACAC,cAAc;QACZX,QAAQ;YACNX,iCAAiC;gBAC/B;oBACEuB,gBAAgB1B;oBAChB2B,UAAU,CAAC,EAAEC,SAAS,EAAE;wBACtB,IAAI,CAAC7B,iBAAiB6B,cAAc,CAACA,UAAUC,QAAQ,GAAGC,MAAM,EAAE;4BAChE,OAAO;wBACT;wBAEA,MAAMC,YAAYH,UAAUC,QAAQ,EAAE,CAAC,EAAE;wBACzC,OAAOxB,oBAAoB0B;oBAC7B;oBACAf,KAAK;oBACLE,OAAO,CAAC,EAAEC,IAAI,EAAE;wBACd,OAAOA,KAAKC,CAAC,CAAC;oBAChB;oBACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;wBACnB,mDAAmD;wBACnDA,OAAOC,eAAe,CAACnB,yCAAyC;4BAC9DoB,SAAS;wBACX;oBACF;gBACF;aACD;SACF;IACH;AACF,GAAE"}
@@ -0,0 +1,15 @@
1
+ import type { DOMConversionMap, EditorConfig, LexicalEditor, LexicalNode } from 'lexical';
2
+ import type { JSX } from 'react';
3
+ import type { RelationshipData, SerializedRelationshipNode } from '../../server/nodes/RelationshipNode.js';
4
+ import { RelationshipServerNode } from '../../server/nodes/RelationshipNode.js';
5
+ export declare class RelationshipNode extends RelationshipServerNode {
6
+ static clone(node: RelationshipServerNode): RelationshipServerNode;
7
+ static getType(): string;
8
+ static importDOM(): DOMConversionMap<HTMLDivElement> | null;
9
+ static importJSON(serializedNode: SerializedRelationshipNode): RelationshipNode;
10
+ decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element;
11
+ exportJSON(): SerializedRelationshipNode;
12
+ }
13
+ export declare function $createRelationshipNode(data: RelationshipData): RelationshipNode;
14
+ export declare function $isRelationshipNode(node: LexicalNode | RelationshipNode | null | undefined): node is RelationshipNode;
15
+ //# sourceMappingURL=RelationshipNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipNode.d.ts","sourceRoot":"","sources":["../../../../../src/features/relationship/client/nodes/RelationshipNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,YAAY,EACZ,aAAa,EACb,WAAW,EACZ,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,KAAK,EACV,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,wCAAwC,CAAA;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAsB/E,qBAAa,gBAAiB,SAAQ,sBAAsB;IAC1D,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,sBAAsB,GAAG,sBAAsB;IAIlE,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,SAAS,IAAI,gBAAgB,CAAC,cAAc,CAAC,GAAG,IAAI;IAiB3D,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,0BAA0B,GAAG,gBAAgB;IAc/E,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO;IAWlE,UAAU,IAAI,0BAA0B;CAGzC;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAIhF;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,GAAG,gBAAgB,GAAG,IAAI,GAAG,SAAS,GACtD,IAAI,IAAI,gBAAgB,CAE1B"}
@@ -0,0 +1,74 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { RelationshipServerNode } from '../../server/nodes/RelationshipNode.js';
4
+ const RelationshipComponent = /*#__PURE__*/ React.lazy(()=>import('../components/RelationshipComponent.js').then((module)=>({
5
+ default: module.RelationshipComponent
6
+ })));
7
+ function $relationshipElementToNode(domNode) {
8
+ const id = domNode.getAttribute('data-lexical-relationship-id');
9
+ const relationTo = domNode.getAttribute('data-lexical-relationship-relationTo');
10
+ if (id != null && relationTo != null) {
11
+ const node = $createRelationshipNode({
12
+ relationTo,
13
+ value: id
14
+ });
15
+ return {
16
+ node
17
+ };
18
+ }
19
+ return null;
20
+ }
21
+ export class RelationshipNode extends RelationshipServerNode {
22
+ static clone(node) {
23
+ return super.clone(node);
24
+ }
25
+ static getType() {
26
+ return super.getType();
27
+ }
28
+ static importDOM() {
29
+ return {
30
+ div: (domNode)=>{
31
+ if (!domNode.hasAttribute('data-lexical-relationship-relationTo') || !domNode.hasAttribute('data-lexical-relationship-id')) {
32
+ return null;
33
+ }
34
+ return {
35
+ conversion: $relationshipElementToNode,
36
+ priority: 2
37
+ };
38
+ }
39
+ };
40
+ }
41
+ static importJSON(serializedNode) {
42
+ if (serializedNode.version === 1 && serializedNode?.value?.id) {
43
+ serializedNode.value = serializedNode.value.id;
44
+ }
45
+ const importedData = {
46
+ relationTo: serializedNode.relationTo,
47
+ value: serializedNode.value
48
+ };
49
+ const node = $createRelationshipNode(importedData);
50
+ node.setFormat(serializedNode.format);
51
+ return node;
52
+ }
53
+ decorate(editor, config) {
54
+ return /*#__PURE__*/ _jsx(RelationshipComponent, {
55
+ className: config.theme.relationship ?? 'LexicalEditorTheme__relationship',
56
+ data: this.__data,
57
+ format: this.__format,
58
+ nodeKey: this.getKey()
59
+ });
60
+ }
61
+ exportJSON() {
62
+ return super.exportJSON();
63
+ }
64
+ }
65
+ export function $createRelationshipNode(data) {
66
+ return new RelationshipNode({
67
+ data
68
+ });
69
+ }
70
+ export function $isRelationshipNode(node) {
71
+ return node instanceof RelationshipNode;
72
+ }
73
+
74
+ //# sourceMappingURL=RelationshipNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/relationship/client/nodes/RelationshipNode.tsx"],"sourcesContent":["import type {\n DOMConversionMap,\n DOMConversionOutput,\n EditorConfig,\n LexicalEditor,\n LexicalNode,\n} from 'lexical'\nimport type { JSX } from 'react'\n\nimport * as React from 'react'\n\nimport type {\n RelationshipData,\n SerializedRelationshipNode,\n} from '../../server/nodes/RelationshipNode.js'\n\nimport { RelationshipServerNode } from '../../server/nodes/RelationshipNode.js'\n\nconst RelationshipComponent = React.lazy(() =>\n import('../components/RelationshipComponent.js').then((module) => ({\n default: module.RelationshipComponent,\n })),\n)\n\nfunction $relationshipElementToNode(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 = $createRelationshipNode({\n relationTo,\n value: id,\n })\n return { node }\n }\n return null\n}\n\nexport class RelationshipNode extends RelationshipServerNode {\n static clone(node: RelationshipServerNode): RelationshipServerNode {\n return super.clone(node)\n }\n\n static getType(): string {\n return super.getType()\n }\n\n static 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: $relationshipElementToNode,\n priority: 2,\n }\n },\n }\n }\n\n static importJSON(serializedNode: SerializedRelationshipNode): RelationshipNode {\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 = $createRelationshipNode(importedData)\n node.setFormat(serializedNode.format)\n return node\n }\n\n decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element {\n return (\n <RelationshipComponent\n className={config.theme.relationship ?? 'LexicalEditorTheme__relationship'}\n data={this.__data}\n format={this.__format}\n nodeKey={this.getKey()}\n />\n )\n }\n\n exportJSON(): SerializedRelationshipNode {\n return super.exportJSON()\n }\n}\n\nexport function $createRelationshipNode(data: RelationshipData): RelationshipNode {\n return new RelationshipNode({\n data,\n })\n}\n\nexport function $isRelationshipNode(\n node: LexicalNode | RelationshipNode | null | undefined,\n): node is RelationshipNode {\n return node instanceof RelationshipNode\n}\n"],"names":["React","RelationshipServerNode","RelationshipComponent","lazy","then","module","default","$relationshipElementToNode","domNode","id","getAttribute","relationTo","node","$createRelationshipNode","value","RelationshipNode","clone","getType","importDOM","div","hasAttribute","conversion","priority","importJSON","serializedNode","version","importedData","setFormat","format","decorate","editor","config","className","theme","relationship","data","__data","__format","nodeKey","getKey","exportJSON","$isRelationshipNode"],"mappings":";AASA,YAAYA,WAAW,QAAO;AAO9B,SAASC,sBAAsB,QAAQ,yCAAwC;AAE/E,MAAMC,sCAAwBF,MAAMG,IAAI,CAAC,IACvC,MAAM,CAAC,0CAA0CC,IAAI,CAAC,CAACC,SAAY,CAAA;YACjEC,SAASD,OAAOH,qBAAqB;QACvC,CAAA;AAGF,SAASK,2BAA2BC,OAAuB;IACzD,MAAMC,KAAKD,QAAQE,YAAY,CAAC;IAChC,MAAMC,aAAaH,QAAQE,YAAY,CAAC;IAExC,IAAID,MAAM,QAAQE,cAAc,MAAM;QACpC,MAAMC,OAAOC,wBAAwB;YACnCF;YACAG,OAAOL;QACT;QACA,OAAO;YAAEG;QAAK;IAChB;IACA,OAAO;AACT;AAEA,OAAO,MAAMG,yBAAyBd;IACpC,OAAOe,MAAMJ,IAA4B,EAA0B;QACjE,OAAO,KAAK,CAACI,MAAMJ;IACrB;IAEA,OAAOK,UAAkB;QACvB,OAAO,KAAK,CAACA;IACf;IAEA,OAAOC,YAAqD;QAC1D,OAAO;YACLC,KAAK,CAACX;gBACJ,IACE,CAACA,QAAQY,YAAY,CAAC,2CACtB,CAACZ,QAAQY,YAAY,CAAC,iCACtB;oBACA,OAAO;gBACT;gBACA,OAAO;oBACLC,YAAYd;oBACZe,UAAU;gBACZ;YACF;QACF;IACF;IAEA,OAAOC,WAAWC,cAA0C,EAAoB;QAC9E,IAAIA,eAAeC,OAAO,KAAK,KAAMD,gBAAgBV,OAAqCL,IAAI;YAC5Fe,eAAeV,KAAK,GAAG,AAACU,eAAeV,KAAK,CAA+BL,EAAE;QAC/E;QAEA,MAAMiB,eAAiC;YACrCf,YAAYa,eAAeb,UAAU;YACrCG,OAAOU,eAAeV,KAAK;QAC7B;QACA,MAAMF,OAAOC,wBAAwBa;QACrCd,KAAKe,SAAS,CAACH,eAAeI,MAAM;QACpC,OAAOhB;IACT;IAEAiB,SAASC,MAAqB,EAAEC,MAAoB,EAAe;QACjE,qBACE,KAAC7B;YACC8B,WAAWD,OAAOE,KAAK,CAACC,YAAY,IAAI;YACxCC,MAAM,IAAI,CAACC,MAAM;YACjBR,QAAQ,IAAI,CAACS,QAAQ;YACrBC,SAAS,IAAI,CAACC,MAAM;;IAG1B;IAEAC,aAAyC;QACvC,OAAO,KAAK,CAACA;IACf;AACF;AAEA,OAAO,SAAS3B,wBAAwBsB,IAAsB;IAC5D,OAAO,IAAIpB,iBAAiB;QAC1BoB;IACF;AACF;AAEA,OAAO,SAASM,oBACd7B,IAAuD;IAEvD,OAAOA,gBAAgBG;AACzB"}
@@ -0,0 +1,7 @@
1
+ import type { LexicalCommand } from 'lexical';
2
+ import type { PluginComponent } from '../../../typesClient.js';
3
+ import type { RelationshipFeatureProps } from '../../server/index.js';
4
+ import type { RelationshipData } from '../../server/nodes/RelationshipNode.js';
5
+ export declare const INSERT_RELATIONSHIP_COMMAND: LexicalCommand<RelationshipData>;
6
+ export declare const RelationshipPlugin: PluginComponent<RelationshipFeatureProps>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/relationship/client/plugins/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAe7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAK9E,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,gBAAgB,CAExE,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,wBAAwB,CAuDxE,CAAA"}
@@ -0,0 +1,50 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js';
4
+ import { $insertNodeToNearestRoot } from '@lexical/utils';
5
+ import { useConfig } from '@payloadcms/ui';
6
+ import { $getPreviousSelection, $getSelection, $isParagraphNode, $isRangeSelection, COMMAND_PRIORITY_EDITOR, createCommand } from 'lexical';
7
+ import { useEffect } from 'react';
8
+ import { RelationshipDrawer } from '../drawer/index.js';
9
+ import { $createRelationshipNode, RelationshipNode } from '../nodes/RelationshipNode.js';
10
+ export const INSERT_RELATIONSHIP_COMMAND = createCommand('INSERT_RELATIONSHIP_COMMAND');
11
+ export const RelationshipPlugin = ({ clientProps })=>{
12
+ const [editor] = useLexicalComposerContext();
13
+ const { config: { collections } } = useConfig();
14
+ let enabledRelations = null;
15
+ if (clientProps?.enabledCollections) {
16
+ enabledRelations = clientProps?.enabledCollections;
17
+ } else if (clientProps?.disabledCollections) {
18
+ enabledRelations = collections.filter(({ slug })=>!clientProps?.disabledCollections?.includes(slug)).map(({ slug })=>slug);
19
+ }
20
+ useEffect(()=>{
21
+ if (!editor.hasNodes([
22
+ RelationshipNode
23
+ ])) {
24
+ throw new Error('RelationshipPlugin: RelationshipNode not registered on editor');
25
+ }
26
+ return editor.registerCommand(INSERT_RELATIONSHIP_COMMAND, (payload)=>{
27
+ const selection = $getSelection() || $getPreviousSelection();
28
+ if ($isRangeSelection(selection)) {
29
+ const relationshipNode = $createRelationshipNode(payload);
30
+ // Insert relationship node BEFORE potentially removing focusNode, as $insertNodeToNearestRoot errors if the focusNode doesn't exist
31
+ $insertNodeToNearestRoot(relationshipNode);
32
+ const { focus } = selection;
33
+ const focusNode = focus.getNode();
34
+ // First, delete currently selected node if it's an empty paragraph and if there are sufficient
35
+ // paragraph nodes (more than 1) left in the parent node, so that we don't "trap" the user
36
+ if ($isParagraphNode(focusNode) && focusNode.getTextContentSize() === 0 && focusNode.getParent().getChildren().filter((node)=>$isParagraphNode(node)).length > 1) {
37
+ focusNode.remove();
38
+ }
39
+ }
40
+ return true;
41
+ }, COMMAND_PRIORITY_EDITOR);
42
+ }, [
43
+ editor
44
+ ]);
45
+ return /*#__PURE__*/ _jsx(RelationshipDrawer, {
46
+ enabledCollectionSlugs: enabledRelations
47
+ });
48
+ };
49
+
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/relationship/client/plugins/index.tsx"],"sourcesContent":["'use client'\nimport type { LexicalCommand } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { $insertNodeToNearestRoot } from '@lexical/utils'\nimport { useConfig } from '@payloadcms/ui'\nimport {\n $getPreviousSelection,\n $getSelection,\n $isParagraphNode,\n $isRangeSelection,\n COMMAND_PRIORITY_EDITOR,\n createCommand,\n} from 'lexical'\nimport { useEffect } from 'react'\n\nimport type { PluginComponent } from '../../../typesClient.js'\nimport type { RelationshipFeatureProps } from '../../server/index.js'\nimport type { RelationshipData } from '../../server/nodes/RelationshipNode.js'\n\nimport { RelationshipDrawer } from '../drawer/index.js'\nimport { $createRelationshipNode, RelationshipNode } from '../nodes/RelationshipNode.js'\n\nexport const INSERT_RELATIONSHIP_COMMAND: LexicalCommand<RelationshipData> = createCommand(\n 'INSERT_RELATIONSHIP_COMMAND',\n)\n\nexport const RelationshipPlugin: PluginComponent<RelationshipFeatureProps> = ({ clientProps }) => {\n const [editor] = useLexicalComposerContext()\n const {\n config: { collections },\n } = useConfig()\n\n let enabledRelations: string[] = null\n\n if (clientProps?.enabledCollections) {\n enabledRelations = clientProps?.enabledCollections\n } else if (clientProps?.disabledCollections) {\n enabledRelations = collections\n .filter(({ slug }) => !clientProps?.disabledCollections?.includes(slug))\n .map(({ slug }) => slug)\n }\n\n useEffect(() => {\n if (!editor.hasNodes([RelationshipNode])) {\n throw new Error('RelationshipPlugin: RelationshipNode not registered on editor')\n }\n\n return editor.registerCommand<RelationshipData>(\n INSERT_RELATIONSHIP_COMMAND,\n (payload) => {\n const selection = $getSelection() || $getPreviousSelection()\n\n if ($isRangeSelection(selection)) {\n const relationshipNode = $createRelationshipNode(payload)\n // Insert relationship node BEFORE potentially removing focusNode, as $insertNodeToNearestRoot errors if the focusNode doesn't exist\n $insertNodeToNearestRoot(relationshipNode)\n\n const { focus } = selection\n const focusNode = focus.getNode()\n\n // First, delete currently selected node if it's an empty paragraph and if there are sufficient\n // paragraph nodes (more than 1) left in the parent node, so that we don't \"trap\" the user\n if (\n $isParagraphNode(focusNode) &&\n focusNode.getTextContentSize() === 0 &&\n focusNode\n .getParent()\n .getChildren()\n .filter((node) => $isParagraphNode(node)).length > 1\n ) {\n focusNode.remove()\n }\n }\n\n return true\n },\n COMMAND_PRIORITY_EDITOR,\n )\n }, [editor])\n\n return <RelationshipDrawer enabledCollectionSlugs={enabledRelations} />\n}\n"],"names":["useLexicalComposerContext","$insertNodeToNearestRoot","useConfig","$getPreviousSelection","$getSelection","$isParagraphNode","$isRangeSelection","COMMAND_PRIORITY_EDITOR","createCommand","useEffect","RelationshipDrawer","$createRelationshipNode","RelationshipNode","INSERT_RELATIONSHIP_COMMAND","RelationshipPlugin","clientProps","editor","config","collections","enabledRelations","enabledCollections","disabledCollections","filter","slug","includes","map","hasNodes","Error","registerCommand","payload","selection","relationshipNode","focus","focusNode","getNode","getTextContentSize","getParent","getChildren","node","length","remove","enabledCollectionSlugs"],"mappings":"AAAA;;AAGA,SAASA,yBAAyB,QAAQ,2CAA0C;AACpF,SAASC,wBAAwB,QAAQ,iBAAgB;AACzD,SAASC,SAAS,QAAQ,iBAAgB;AAC1C,SACEC,qBAAqB,EACrBC,aAAa,EACbC,gBAAgB,EAChBC,iBAAiB,EACjBC,uBAAuB,EACvBC,aAAa,QACR,UAAS;AAChB,SAASC,SAAS,QAAQ,QAAO;AAMjC,SAASC,kBAAkB,QAAQ,qBAAoB;AACvD,SAASC,uBAAuB,EAAEC,gBAAgB,QAAQ,+BAA8B;AAExF,OAAO,MAAMC,8BAAgEL,cAC3E,+BACD;AAED,OAAO,MAAMM,qBAAgE,CAAC,EAAEC,WAAW,EAAE;IAC3F,MAAM,CAACC,OAAO,GAAGhB;IACjB,MAAM,EACJiB,QAAQ,EAAEC,WAAW,EAAE,EACxB,GAAGhB;IAEJ,IAAIiB,mBAA6B;IAEjC,IAAIJ,aAAaK,oBAAoB;QACnCD,mBAAmBJ,aAAaK;IAClC,OAAO,IAAIL,aAAaM,qBAAqB;QAC3CF,mBAAmBD,YAChBI,MAAM,CAAC,CAAC,EAAEC,IAAI,EAAE,GAAK,CAACR,aAAaM,qBAAqBG,SAASD,OACjEE,GAAG,CAAC,CAAC,EAAEF,IAAI,EAAE,GAAKA;IACvB;IAEAd,UAAU;QACR,IAAI,CAACO,OAAOU,QAAQ,CAAC;YAACd;SAAiB,GAAG;YACxC,MAAM,IAAIe,MAAM;QAClB;QAEA,OAAOX,OAAOY,eAAe,CAC3Bf,6BACA,CAACgB;YACC,MAAMC,YAAY1B,mBAAmBD;YAErC,IAAIG,kBAAkBwB,YAAY;gBAChC,MAAMC,mBAAmBpB,wBAAwBkB;gBACjD,oIAAoI;gBACpI5B,yBAAyB8B;gBAEzB,MAAM,EAAEC,KAAK,EAAE,GAAGF;gBAClB,MAAMG,YAAYD,MAAME,OAAO;gBAE/B,+FAA+F;gBAC/F,0FAA0F;gBAC1F,IACE7B,iBAAiB4B,cACjBA,UAAUE,kBAAkB,OAAO,KACnCF,UACGG,SAAS,GACTC,WAAW,GACXf,MAAM,CAAC,CAACgB,OAASjC,iBAAiBiC,OAAOC,MAAM,GAAG,GACrD;oBACAN,UAAUO,MAAM;gBAClB;YACF;YAEA,OAAO;QACT,GACAjC;IAEJ,GAAG;QAACS;KAAO;IAEX,qBAAO,KAACN;QAAmB+B,wBAAwBtB;;AACrD,EAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnabledRelationshipsCondition.d.ts","sourceRoot":"","sources":["../../../../../src/features/relationship/client/utils/EnabledRelationshipsCondition.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA2B9B,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAmBvD,CAAA"}
@@ -0,0 +1,33 @@
1
+ import { useAuth, useConfig, useEntityVisibility } from '@payloadcms/ui';
2
+ import * as React from 'react';
3
+ const filterRichTextCollections = (collections, options)=>{
4
+ return collections.filter(({ slug, admin: { enableRichTextRelationship }, upload })=>{
5
+ if (!options.visibleEntities.collections.includes(slug)) {
6
+ return false;
7
+ }
8
+ if (options?.uploads) {
9
+ return enableRichTextRelationship && Boolean(upload) === true;
10
+ }
11
+ return upload ? false : enableRichTextRelationship;
12
+ });
13
+ };
14
+ export const EnabledRelationshipsCondition = (props)=>{
15
+ const { children, uploads = false, ...rest } = props;
16
+ const { config: { collections } } = useConfig();
17
+ const { user } = useAuth();
18
+ const { visibleEntities } = useEntityVisibility();
19
+ const [enabledCollectionSlugs] = React.useState(()=>filterRichTextCollections(collections, {
20
+ uploads,
21
+ user,
22
+ visibleEntities
23
+ }).map(({ slug })=>slug));
24
+ if (!enabledCollectionSlugs.length) {
25
+ return null;
26
+ }
27
+ return /*#__PURE__*/ React.cloneElement(children, {
28
+ ...rest,
29
+ enabledCollectionSlugs
30
+ });
31
+ };
32
+
33
+ //# sourceMappingURL=EnabledRelationshipsCondition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/relationship/client/utils/EnabledRelationshipsCondition.tsx"],"sourcesContent":["import type { ClientCollectionConfig, ClientUser, VisibleEntities } from 'payload'\n\nimport { useAuth, useConfig, useEntityVisibility } from '@payloadcms/ui'\nimport * as React from 'react'\n\ntype Options = {\n uploads: boolean\n user: ClientUser\n visibleEntities: VisibleEntities\n}\n\ntype FilteredCollectionsT = (\n collections: ClientCollectionConfig[],\n options?: Options,\n) => ClientCollectionConfig[]\n\nconst filterRichTextCollections: FilteredCollectionsT = (collections, options) => {\n return collections.filter(({ slug, admin: { enableRichTextRelationship }, upload }) => {\n if (!options.visibleEntities.collections.includes(slug)) {\n return false\n }\n\n if (options?.uploads) {\n return enableRichTextRelationship && Boolean(upload) === true\n }\n\n return upload ? false : enableRichTextRelationship\n })\n}\n\nexport const EnabledRelationshipsCondition: React.FC<any> = (props) => {\n const { children, uploads = false, ...rest } = props\n const {\n config: { collections },\n } = useConfig()\n const { user } = useAuth()\n const { visibleEntities } = useEntityVisibility()\n\n const [enabledCollectionSlugs] = React.useState(() =>\n filterRichTextCollections(collections, { uploads, user, visibleEntities }).map(\n ({ slug }) => slug,\n ),\n )\n\n if (!enabledCollectionSlugs.length) {\n return null\n }\n\n return React.cloneElement(children, { ...rest, enabledCollectionSlugs })\n}\n"],"names":["useAuth","useConfig","useEntityVisibility","React","filterRichTextCollections","collections","options","filter","slug","admin","enableRichTextRelationship","upload","visibleEntities","includes","uploads","Boolean","EnabledRelationshipsCondition","props","children","rest","config","user","enabledCollectionSlugs","useState","map","length","cloneElement"],"mappings":"AAEA,SAASA,OAAO,EAAEC,SAAS,EAAEC,mBAAmB,QAAQ,iBAAgB;AACxE,YAAYC,WAAW,QAAO;AAa9B,MAAMC,4BAAkD,CAACC,aAAaC;IACpE,OAAOD,YAAYE,MAAM,CAAC,CAAC,EAAEC,IAAI,EAAEC,OAAO,EAAEC,0BAA0B,EAAE,EAAEC,MAAM,EAAE;QAChF,IAAI,CAACL,QAAQM,eAAe,CAACP,WAAW,CAACQ,QAAQ,CAACL,OAAO;YACvD,OAAO;QACT;QAEA,IAAIF,SAASQ,SAAS;YACpB,OAAOJ,8BAA8BK,QAAQJ,YAAY;QAC3D;QAEA,OAAOA,SAAS,QAAQD;IAC1B;AACF;AAEA,OAAO,MAAMM,gCAA+C,CAACC;IAC3D,MAAM,EAAEC,QAAQ,EAAEJ,UAAU,KAAK,EAAE,GAAGK,MAAM,GAAGF;IAC/C,MAAM,EACJG,QAAQ,EAAEf,WAAW,EAAE,EACxB,GAAGJ;IACJ,MAAM,EAAEoB,IAAI,EAAE,GAAGrB;IACjB,MAAM,EAAEY,eAAe,EAAE,GAAGV;IAE5B,MAAM,CAACoB,uBAAuB,GAAGnB,MAAMoB,QAAQ,CAAC,IAC9CnB,0BAA0BC,aAAa;YAAES;YAASO;YAAMT;QAAgB,GAAGY,GAAG,CAC5E,CAAC,EAAEhB,IAAI,EAAE,GAAKA;IAIlB,IAAI,CAACc,uBAAuBG,MAAM,EAAE;QAClC,OAAO;IACT;IAEA,qBAAOtB,MAAMuB,YAAY,CAACR,UAAU;QAAE,GAAGC,IAAI;QAAEG;IAAuB;AACxE,EAAC"}
@@ -0,0 +1,5 @@
1
+ import type { PopulationPromise } from '../../typesServer.js';
2
+ import type { RelationshipFeatureProps } from './index.js';
3
+ import type { SerializedRelationshipNode } from './nodes/RelationshipNode.js';
4
+ export declare const relationshipPopulationPromiseHOC: (props: RelationshipFeatureProps) => PopulationPromise<SerializedRelationshipNode>;
5
+ //# sourceMappingURL=graphQLPopulationPromise.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,29 @@
1
+ import { populate } from '../../../populateGraphQL/populate.js';
2
+ export const relationshipPopulationPromiseHOC = (props)=>{
3
+ const relationshipPopulationPromise = ({ currentDepth, depth, draft, node, overrideAccess, populationPromises, req, showHiddenFields })=>{
4
+ if (node?.value) {
5
+ // @ts-expect-error
6
+ const id = node?.value?.id || node?.value // for backwards-compatibility
7
+ ;
8
+ const collection = req.payload.collections[node?.relationTo];
9
+ if (collection) {
10
+ const populateDepth = props?.maxDepth !== undefined && props?.maxDepth < depth ? props?.maxDepth : depth;
11
+ populationPromises.push(populate({
12
+ id,
13
+ collectionSlug: collection.config.slug,
14
+ currentDepth,
15
+ data: node,
16
+ depth: populateDepth,
17
+ draft,
18
+ key: 'value',
19
+ overrideAccess,
20
+ req,
21
+ showHiddenFields
22
+ }));
23
+ }
24
+ }
25
+ };
26
+ return relationshipPopulationPromise;
27
+ };
28
+
29
+ //# sourceMappingURL=graphQLPopulationPromise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"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"],"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"],"mappings":"AAIA,SAASA,QAAQ,QAAQ,uCAAsC;AAE/D,OAAO,MAAMC,mCAAmC,CAC9CC;IAEA,MAAMC,gCAA+E,CAAC,EACpFC,YAAY,EACZC,KAAK,EACLC,KAAK,EACLC,IAAI,EACJC,cAAc,EACdC,kBAAkB,EAClBC,GAAG,EACHC,gBAAgB,EACjB;QACC,IAAIJ,MAAMK,OAAO;YACf,mBAAmB;YACnB,MAAMC,KAAKN,MAAMK,OAAOC,MAAMN,MAAMK,MAAM,8BAA8B;;YAExE,MAAME,aAAaJ,IAAIK,OAAO,CAACC,WAAW,CAACT,MAAMU,WAAW;YAE5D,IAAIH,YAAY;gBACd,MAAMI,gBACJhB,OAAOiB,aAAaC,aAAalB,OAAOiB,WAAWd,QAAQH,OAAOiB,WAAWd;gBAE/EI,mBAAmBY,IAAI,CACrBrB,SAAS;oBACPa;oBACAS,gBAAgBR,WAAWS,MAAM,CAACC,IAAI;oBACtCpB;oBACAqB,MAAMlB;oBACNF,OAAOa;oBACPZ;oBACAoB,KAAK;oBACLlB;oBACAE;oBACAC;gBACF;YAEJ;QACF;IACF;IAEA,OAAOR;AACT,EAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/features/relationship/server/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAiG1C,CAAA"}