@payloadcms/richtext-lexical 3.0.0-beta.78 → 3.0.0-beta.79

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 (1182) 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-QK4IB5HD.js +2 -0
  6. package/dist/exports/client/Field-QK4IB5HD.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/field/index.js.map +1 -1
  115. package/dist/features/converters/html/index.d.ts +8 -0
  116. package/dist/features/converters/html/index.d.ts.map +1 -0
  117. package/dist/features/converters/html/index.js +8 -0
  118. package/dist/features/converters/html/index.js.map +1 -0
  119. package/dist/features/createClientComponent.d.ts +3 -3
  120. package/dist/features/createClientComponent.d.ts.map +1 -1
  121. package/dist/features/createClientComponent.js.map +1 -1
  122. package/dist/features/createFeaturePropComponent.js +1 -1
  123. package/dist/features/createFeaturePropComponent.js.map +1 -1
  124. package/dist/features/debug/testRecorder/client/index.d.ts +5 -0
  125. package/dist/features/debug/testRecorder/client/index.d.ts.map +1 -0
  126. package/dist/features/debug/testRecorder/client/index.js +13 -0
  127. package/dist/features/debug/testRecorder/client/index.js.map +1 -0
  128. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +5 -0
  129. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -0
  130. package/dist/features/debug/testRecorder/client/plugin/index.js +471 -0
  131. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -0
  132. package/dist/features/debug/testRecorder/server/index.d.ts +2 -0
  133. package/dist/features/debug/testRecorder/server/index.d.ts.map +1 -0
  134. package/dist/features/debug/testRecorder/server/index.js +9 -0
  135. package/dist/features/debug/testRecorder/server/index.js.map +1 -0
  136. package/dist/features/debug/treeView/client/index.d.ts +5 -0
  137. package/dist/features/debug/treeView/client/index.d.ts.map +1 -0
  138. package/dist/features/debug/treeView/client/index.js +13 -0
  139. package/dist/features/debug/treeView/client/index.js.map +1 -0
  140. package/dist/features/debug/treeView/client/plugin/index.d.ts +4 -0
  141. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -0
  142. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -0
  143. package/dist/features/debug/treeView/server/index.d.ts +2 -0
  144. package/dist/features/debug/treeView/server/index.d.ts.map +1 -0
  145. package/dist/features/debug/treeView/server/index.js +9 -0
  146. package/dist/features/debug/treeView/server/index.js.map +1 -0
  147. package/dist/features/experimental_table/client/index.d.ts +2 -0
  148. package/dist/features/experimental_table/client/index.d.ts.map +1 -0
  149. package/dist/features/experimental_table/client/index.js +71 -0
  150. package/dist/features/experimental_table/client/index.js.map +1 -0
  151. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +4 -0
  152. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  153. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +605 -0
  154. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  155. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +3 -0
  156. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  157. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +327 -0
  158. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  159. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +12 -0
  160. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  161. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +181 -0
  162. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  163. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +24 -0
  164. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  165. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +103 -0
  166. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -0
  167. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -0
  168. package/dist/features/experimental_table/client/utils/debounce.js.map +1 -0
  169. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -0
  170. package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -0
  171. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js +1 -1
  172. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  173. package/dist/features/experimental_table/server/index.d.ts +13 -0
  174. package/dist/features/experimental_table/server/index.d.ts.map +1 -0
  175. package/dist/features/experimental_table/server/index.js +123 -0
  176. package/dist/features/experimental_table/server/index.js.map +1 -0
  177. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  178. package/dist/features/format/bold/feature.server.js +1 -3
  179. package/dist/features/format/bold/feature.server.js.map +1 -1
  180. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  181. package/dist/features/format/inlineCode/feature.server.js +1 -3
  182. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  183. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  184. package/dist/features/format/italic/feature.server.js +1 -3
  185. package/dist/features/format/italic/feature.server.js.map +1 -1
  186. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  187. package/dist/features/format/strikethrough/feature.server.js +1 -3
  188. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  189. package/dist/features/format/subscript/feature.server.d.ts.map +1 -1
  190. package/dist/features/format/subscript/feature.server.js +1 -3
  191. package/dist/features/format/subscript/feature.server.js.map +1 -1
  192. package/dist/features/format/superscript/feature.server.d.ts.map +1 -1
  193. package/dist/features/format/superscript/feature.server.js +1 -3
  194. package/dist/features/format/superscript/feature.server.js.map +1 -1
  195. package/dist/features/format/underline/feature.server.d.ts.map +1 -1
  196. package/dist/features/format/underline/feature.server.js +1 -3
  197. package/dist/features/format/underline/feature.server.js.map +1 -1
  198. package/dist/features/heading/client/index.d.ts +6 -0
  199. package/dist/features/heading/client/index.d.ts.map +1 -0
  200. package/dist/features/heading/client/index.js +112 -0
  201. package/dist/features/heading/client/index.js.map +1 -0
  202. package/dist/features/heading/server/i18n.d.ts.map +1 -0
  203. package/dist/features/heading/server/i18n.js.map +1 -0
  204. package/dist/features/heading/server/index.d.ts +10 -0
  205. package/dist/features/heading/server/index.d.ts.map +1 -0
  206. package/dist/features/heading/server/index.js +60 -0
  207. package/dist/features/heading/server/index.js.map +1 -0
  208. package/dist/features/horizontalRule/client/component/index.d.ts.map +1 -0
  209. package/dist/features/horizontalRule/client/component/index.js.map +1 -0
  210. package/dist/features/horizontalRule/client/index.d.ts +5 -0
  211. package/dist/features/horizontalRule/client/index.d.ts.map +1 -0
  212. package/dist/features/horizontalRule/client/index.js +71 -0
  213. package/dist/features/horizontalRule/client/index.js.map +1 -0
  214. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -0
  215. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -0
  216. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +20 -0
  217. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -0
  218. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +43 -0
  219. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -0
  220. package/dist/features/horizontalRule/client/plugin/index.d.ts +7 -0
  221. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -0
  222. package/dist/features/horizontalRule/client/plugin/index.js +31 -0
  223. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -0
  224. package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -0
  225. package/dist/features/horizontalRule/server/i18n.js.map +1 -0
  226. package/dist/features/horizontalRule/server/index.d.ts +2 -0
  227. package/dist/features/horizontalRule/server/index.d.ts.map +1 -0
  228. package/dist/features/horizontalRule/server/index.js +32 -0
  229. package/dist/features/horizontalRule/server/index.js.map +1 -0
  230. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +3 -0
  231. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -0
  232. package/dist/features/horizontalRule/server/markdownTransformer.js +23 -0
  233. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -0
  234. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +53 -0
  235. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -0
  236. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +83 -0
  237. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -0
  238. package/dist/features/indent/client/index.d.ts +5 -0
  239. package/dist/features/indent/client/index.d.ts.map +1 -0
  240. package/dist/features/indent/client/index.js +56 -0
  241. package/dist/features/indent/client/index.js.map +1 -0
  242. package/dist/features/indent/client/toolbarIndentGroup.d.ts +3 -0
  243. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -0
  244. package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -0
  245. package/dist/features/indent/server/i18n.d.ts.map +1 -0
  246. package/dist/features/indent/server/i18n.js.map +1 -0
  247. package/dist/features/indent/server/index.d.ts +2 -0
  248. package/dist/features/indent/server/index.d.ts.map +1 -0
  249. package/dist/features/indent/server/index.js +11 -0
  250. package/dist/features/indent/server/index.js.map +1 -0
  251. package/dist/features/link/client/index.d.ts +16 -0
  252. package/dist/features/link/client/index.d.ts.map +1 -0
  253. package/dist/features/link/client/index.js +101 -0
  254. package/dist/features/link/client/index.js.map +1 -0
  255. package/dist/features/link/client/plugins/autoLink/index.d.ts +20 -0
  256. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -0
  257. package/dist/features/link/client/plugins/autoLink/index.js +335 -0
  258. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -0
  259. package/dist/features/link/client/plugins/clickableLink/index.d.ts +4 -0
  260. package/dist/features/link/client/plugins/clickableLink/index.d.ts.map +1 -0
  261. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -0
  262. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  263. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  264. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  265. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +299 -0
  266. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  267. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +5 -0
  268. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  269. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -0
  270. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +15 -0
  271. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  272. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -0
  273. package/dist/features/link/client/plugins/link/index.d.ts +4 -0
  274. package/dist/features/link/client/plugins/link/index.d.ts.map +1 -0
  275. package/dist/features/link/client/plugins/link/index.js +51 -0
  276. package/dist/features/link/client/plugins/link/index.js.map +1 -0
  277. package/dist/features/link/nodes/LinkNode.d.ts +1 -1
  278. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  279. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  280. package/dist/features/link/server/baseFields.d.ts.map +1 -0
  281. package/dist/features/link/server/baseFields.js.map +1 -0
  282. package/dist/features/link/server/graphQLPopulationPromise.d.ts +5 -0
  283. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -0
  284. package/dist/features/link/server/graphQLPopulationPromise.js +31 -0
  285. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -0
  286. package/dist/features/link/server/i18n.d.ts.map +1 -0
  287. package/dist/features/link/server/i18n.js.map +1 -0
  288. package/dist/features/link/server/index.d.ts +35 -0
  289. package/dist/features/link/server/index.d.ts.map +1 -0
  290. package/dist/features/link/server/index.js +132 -0
  291. package/dist/features/link/server/index.js.map +1 -0
  292. package/dist/features/link/server/transformExtraFields.d.ts +9 -0
  293. package/dist/features/link/server/transformExtraFields.d.ts.map +1 -0
  294. package/dist/features/link/server/transformExtraFields.js +20 -0
  295. package/dist/features/link/server/transformExtraFields.js.map +1 -0
  296. package/dist/features/link/server/validate.d.ts +6 -0
  297. package/dist/features/link/server/validate.d.ts.map +1 -0
  298. package/dist/features/link/server/validate.js.map +1 -0
  299. package/dist/features/lists/checklist/client/index.d.ts +5 -0
  300. package/dist/features/lists/checklist/client/index.d.ts.map +1 -0
  301. package/dist/features/lists/checklist/client/index.js +100 -0
  302. package/dist/features/lists/checklist/client/index.js.map +1 -0
  303. package/dist/features/lists/checklist/client/plugin/index.d.ts +3 -0
  304. package/dist/features/lists/checklist/client/plugin/index.d.ts.map +1 -0
  305. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -0
  306. package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -0
  307. package/dist/features/lists/checklist/server/i18n.js.map +1 -0
  308. package/dist/features/lists/checklist/server/index.d.ts +2 -0
  309. package/dist/features/lists/checklist/server/index.d.ts.map +1 -0
  310. package/dist/features/lists/checklist/server/index.js +34 -0
  311. package/dist/features/lists/checklist/server/index.js.map +1 -0
  312. package/dist/features/lists/orderedList/client/index.d.ts +5 -0
  313. package/dist/features/lists/orderedList/client/index.d.ts.map +1 -0
  314. package/dist/features/lists/orderedList/client/index.js +90 -0
  315. package/dist/features/lists/orderedList/client/index.js.map +1 -0
  316. package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -0
  317. package/dist/features/lists/orderedList/server/i18n.js.map +1 -0
  318. package/dist/features/lists/orderedList/server/index.d.ts +2 -0
  319. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -0
  320. package/dist/features/lists/orderedList/server/index.js +34 -0
  321. package/dist/features/lists/orderedList/server/index.js.map +1 -0
  322. package/dist/features/lists/unorderedList/client/index.d.ts +5 -0
  323. package/dist/features/lists/unorderedList/client/index.d.ts.map +1 -0
  324. package/dist/features/lists/unorderedList/client/index.js +88 -0
  325. package/dist/features/lists/unorderedList/client/index.js.map +1 -0
  326. package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -0
  327. package/dist/features/lists/unorderedList/server/i18n.js.map +1 -0
  328. package/dist/features/lists/unorderedList/server/index.d.ts +2 -0
  329. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -0
  330. package/dist/features/lists/unorderedList/server/index.js +32 -0
  331. package/dist/features/lists/unorderedList/server/index.js.map +1 -0
  332. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +1 -1
  333. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -1
  334. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +4 -3
  335. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -1
  336. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +1 -1
  337. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -1
  338. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +4 -3
  339. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -1
  340. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +1 -1
  341. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -1
  342. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +4 -3
  343. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -1
  344. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +1 -1
  345. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -1
  346. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +4 -3
  347. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -1
  348. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +1 -1
  349. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -1
  350. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +4 -3
  351. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -1
  352. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +1 -1
  353. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -1
  354. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +4 -3
  355. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -1
  356. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +1 -1
  357. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  358. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +1 -1
  359. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
  360. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +2 -2
  361. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -1
  362. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +7 -7
  363. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -1
  364. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +5 -3
  365. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -1
  366. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +15 -9
  367. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -1
  368. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +1 -9
  369. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -1
  370. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -1
  371. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -1
  372. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +1 -16
  373. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -1
  374. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +4 -3
  375. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -1
  376. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +16 -11
  377. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -1
  378. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +1 -1
  379. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -1
  380. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +1 -1
  381. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -1
  382. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +1 -1
  383. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -1
  384. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +1 -1
  385. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -1
  386. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +1 -1
  387. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -1
  388. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +1 -1
  389. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -1
  390. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +1 -1
  391. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -1
  392. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +1 -1
  393. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -1
  394. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +1 -1
  395. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -1
  396. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +1 -1
  397. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -1
  398. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +1 -1
  399. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -1
  400. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +1 -1
  401. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -1
  402. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +1 -1
  403. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -1
  404. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +1 -1
  405. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
  406. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +1 -1
  407. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -1
  408. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +1 -1
  409. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -1
  410. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +1 -1
  411. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -1
  412. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +1 -1
  413. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -1
  414. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +1 -1
  415. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  416. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +1 -1
  417. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
  418. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +2 -2
  419. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -1
  420. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +10 -10
  421. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -1
  422. package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -9
  423. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -1
  424. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -1
  425. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -1
  426. package/dist/features/migrations/slateToLexical/feature.client.js +0 -15
  427. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -1
  428. package/dist/features/migrations/slateToLexical/feature.server.d.ts +5 -5
  429. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -1
  430. package/dist/features/migrations/slateToLexical/feature.server.js +15 -11
  431. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -1
  432. package/dist/features/paragraph/client/index.d.ts +5 -0
  433. package/dist/features/paragraph/client/index.d.ts.map +1 -0
  434. package/dist/features/paragraph/client/index.js +71 -0
  435. package/dist/features/paragraph/client/index.js.map +1 -0
  436. package/dist/features/paragraph/server/i18n.d.ts.map +1 -0
  437. package/dist/features/paragraph/server/i18n.js.map +1 -0
  438. package/dist/features/paragraph/server/index.d.ts +2 -0
  439. package/dist/features/paragraph/server/index.d.ts.map +1 -0
  440. package/dist/features/paragraph/server/index.js +12 -0
  441. package/dist/features/paragraph/server/index.js.map +1 -0
  442. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +13 -0
  443. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -0
  444. package/dist/features/relationship/client/components/RelationshipComponent.js +171 -0
  445. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -0
  446. package/dist/features/relationship/client/drawer/commands.d.ts.map +1 -0
  447. package/dist/features/relationship/client/drawer/commands.js.map +1 -0
  448. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -0
  449. package/dist/features/relationship/client/drawer/index.js.map +1 -0
  450. package/dist/features/relationship/client/index.d.ts +18 -0
  451. package/dist/features/relationship/client/index.d.ts.map +1 -0
  452. package/dist/features/relationship/client/index.js +72 -0
  453. package/dist/features/relationship/client/index.js.map +1 -0
  454. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +15 -0
  455. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -0
  456. package/dist/features/relationship/client/nodes/RelationshipNode.js +74 -0
  457. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -0
  458. package/dist/features/relationship/client/plugins/index.d.ts +7 -0
  459. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -0
  460. package/dist/features/relationship/client/plugins/index.js +50 -0
  461. package/dist/features/relationship/client/plugins/index.js.map +1 -0
  462. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  463. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js +33 -0
  464. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js.map +1 -0
  465. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +5 -0
  466. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -0
  467. package/dist/features/relationship/server/graphQLPopulationPromise.js +29 -0
  468. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -0
  469. package/dist/features/relationship/server/i18n.d.ts.map +1 -0
  470. package/dist/features/relationship/server/i18n.js.map +1 -0
  471. package/dist/features/relationship/server/index.d.ts +27 -0
  472. package/dist/features/relationship/server/index.d.ts.map +1 -0
  473. package/dist/features/relationship/server/index.js +53 -0
  474. package/dist/features/relationship/server/index.js.map +1 -0
  475. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +35 -0
  476. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -0
  477. package/dist/features/relationship/server/nodes/RelationshipNode.js +101 -0
  478. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -0
  479. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +5 -0
  480. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -0
  481. package/dist/features/toolbars/fixed/client/Toolbar/index.js +209 -0
  482. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -0
  483. package/dist/features/toolbars/fixed/client/index.d.ts +6 -0
  484. package/dist/features/toolbars/fixed/client/index.d.ts.map +1 -0
  485. package/dist/features/toolbars/fixed/client/index.js +13 -0
  486. package/dist/features/toolbars/fixed/client/index.js.map +1 -0
  487. package/dist/features/toolbars/fixed/server/index.d.ts +18 -0
  488. package/dist/features/toolbars/fixed/server/index.d.ts.map +1 -0
  489. package/dist/features/toolbars/fixed/server/index.js +17 -0
  490. package/dist/features/toolbars/fixed/server/index.js.map +1 -0
  491. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +4 -0
  492. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -0
  493. package/dist/features/toolbars/inline/client/Toolbar/index.js +319 -0
  494. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -0
  495. package/dist/features/toolbars/inline/client/index.d.ts +5 -0
  496. package/dist/features/toolbars/inline/client/index.d.ts.map +1 -0
  497. package/dist/features/toolbars/inline/client/index.js +13 -0
  498. package/dist/features/toolbars/inline/client/index.js.map +1 -0
  499. package/dist/features/toolbars/inline/server/index.d.ts +2 -0
  500. package/dist/features/toolbars/inline/server/index.d.ts.map +1 -0
  501. package/dist/features/toolbars/inline/server/index.js +9 -0
  502. package/dist/features/toolbars/inline/server/index.js.map +1 -0
  503. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  504. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +3 -1
  505. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  506. package/dist/features/toolbars/types.d.ts +2 -1
  507. package/dist/features/toolbars/types.d.ts.map +1 -1
  508. package/dist/features/toolbars/types.js.map +1 -1
  509. package/dist/features/typesServer.d.ts +17 -13
  510. package/dist/features/typesServer.d.ts.map +1 -1
  511. package/dist/features/typesServer.js.map +1 -1
  512. package/dist/features/upload/client/component/index.d.ts +9 -0
  513. package/dist/features/upload/client/component/index.d.ts.map +1 -0
  514. package/dist/features/upload/client/component/index.js +248 -0
  515. package/dist/features/upload/client/component/index.js.map +1 -0
  516. package/dist/features/upload/client/drawer/commands.d.ts.map +1 -0
  517. package/dist/features/upload/client/drawer/commands.js.map +1 -0
  518. package/dist/features/upload/client/drawer/index.d.ts.map +1 -0
  519. package/dist/features/upload/client/drawer/index.js +77 -0
  520. package/dist/features/upload/client/drawer/index.js.map +1 -0
  521. package/dist/features/upload/client/feature.client.d.ts.map +1 -0
  522. package/dist/features/upload/client/feature.client.js +74 -0
  523. package/dist/features/upload/client/feature.client.js.map +1 -0
  524. package/dist/features/upload/client/nodes/UploadNode.d.ts +22 -0
  525. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -0
  526. package/dist/features/upload/client/nodes/UploadNode.js +91 -0
  527. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -0
  528. package/dist/features/upload/client/plugin/index.d.ts +8 -0
  529. package/dist/features/upload/client/plugin/index.d.ts.map +1 -0
  530. package/dist/features/upload/client/plugin/index.js +53 -0
  531. package/dist/features/upload/client/plugin/index.js.map +1 -0
  532. package/dist/features/upload/server/feature.server.d.ts +18 -0
  533. package/dist/features/upload/server/feature.server.d.ts.map +1 -0
  534. package/dist/features/upload/server/feature.server.js +189 -0
  535. package/dist/features/upload/server/feature.server.js.map +1 -0
  536. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +5 -0
  537. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -0
  538. package/dist/features/upload/server/graphQLPopulationPromise.js +52 -0
  539. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -0
  540. package/dist/features/upload/server/i18n.d.ts.map +1 -0
  541. package/dist/features/upload/server/i18n.js.map +1 -0
  542. package/dist/features/upload/server/nodes/UploadNode.d.ts +40 -0
  543. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -0
  544. package/dist/features/upload/server/nodes/UploadNode.js +128 -0
  545. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -0
  546. package/dist/features/upload/server/validate.d.ts +5 -0
  547. package/dist/features/upload/server/validate.d.ts.map +1 -0
  548. package/dist/features/upload/server/validate.js.map +1 -0
  549. package/dist/field/Field.d.ts +7 -7
  550. package/dist/field/Field.d.ts.map +1 -1
  551. package/dist/field/Field.js +8 -6
  552. package/dist/field/Field.js.map +1 -1
  553. package/dist/field/index.d.ts +2 -9
  554. package/dist/field/index.d.ts.map +1 -1
  555. package/dist/field/index.js +8 -8
  556. package/dist/field/index.js.map +1 -1
  557. package/dist/index.d.ts +23 -38
  558. package/dist/index.d.ts.map +1 -1
  559. package/dist/index.js +83 -68
  560. package/dist/index.js.map +1 -1
  561. package/dist/lexical/LexicalProvider.d.ts +2 -6
  562. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  563. package/dist/lexical/LexicalProvider.js +2 -2
  564. package/dist/lexical/LexicalProvider.js.map +1 -1
  565. package/dist/lexical/config/client/EditorConfigProvider.d.ts +4 -12
  566. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  567. package/dist/lexical/config/client/EditorConfigProvider.js +3 -3
  568. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  569. package/dist/lexical/config/server/default.js +13 -13
  570. package/dist/lexical/config/server/default.js.map +1 -1
  571. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  572. package/dist/lexical/config/server/sanitize.js +24 -6
  573. package/dist/lexical/config/server/sanitize.js.map +1 -1
  574. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +6 -2
  575. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  576. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  577. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  578. package/dist/lexical/plugins/SlashMenu/index.js +14 -4
  579. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  580. package/dist/lexical/theme/EditorTheme.d.ts +0 -1
  581. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  582. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  583. package/dist/nodeTypes.d.ts +8 -8
  584. package/dist/nodeTypes.d.ts.map +1 -1
  585. package/dist/nodeTypes.js.map +1 -1
  586. package/dist/types.d.ts +6 -8
  587. package/dist/types.d.ts.map +1 -1
  588. package/dist/types.js.map +1 -1
  589. package/dist/utilities/fieldsDrawer/Drawer.d.ts +10 -8
  590. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  591. package/dist/utilities/fieldsDrawer/Drawer.js +3 -1
  592. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  593. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  594. package/dist/utilities/fieldsDrawer/DrawerContent.js +6 -6
  595. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  596. package/dist/utilities/generateComponentMap.d.ts +2 -2
  597. package/dist/utilities/generateComponentMap.d.ts.map +1 -1
  598. package/dist/utilities/generateComponentMap.js +38 -28
  599. package/dist/utilities/generateComponentMap.js.map +1 -1
  600. package/dist/utilities/generateImportMap.d.ts +6 -0
  601. package/dist/utilities/generateImportMap.d.ts.map +1 -0
  602. package/dist/utilities/generateImportMap.js +50 -0
  603. package/dist/utilities/generateImportMap.js.map +1 -0
  604. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  605. package/dist/utilities/generateSchemaMap.js +2 -1
  606. package/dist/utilities/generateSchemaMap.js.map +1 -1
  607. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -1
  608. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +1 -5
  609. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -1
  610. package/dist/utilities/useLexicalFeature.js +1 -1
  611. package/dist/utilities/useLexicalFeature.js.map +1 -1
  612. package/package.json +21 -11
  613. package/dist/exports/client/Field-5GGTGCKC.js +0 -2
  614. package/dist/exports/client/Field-5GGTGCKC.js.map +0 -7
  615. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js +0 -2
  616. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js.map +0 -7
  617. package/dist/exports/client/chunk-6QXGZYUK.js +0 -2
  618. package/dist/exports/client/chunk-6QXGZYUK.js.map +0 -7
  619. package/dist/exports/client/chunk-IPCJ5EVK.js +0 -2
  620. package/dist/exports/client/chunk-IPCJ5EVK.js.map +0 -7
  621. package/dist/exports/client/chunk-IWZVO3AI.js +0 -2
  622. package/dist/exports/client/chunk-IWZVO3AI.js.map +0 -7
  623. package/dist/exports/client/chunk-Q5DYR7MH.js +0 -3
  624. package/dist/exports/client/chunk-Q5DYR7MH.js.map +0 -7
  625. package/dist/exports/client/chunk-VUVXZJJR.js +0 -2
  626. package/dist/exports/client/chunk-VUVXZJJR.js.map +0 -7
  627. package/dist/exports/client/component-D4GWDXK5.js +0 -2
  628. package/dist/exports/client/component-D4GWDXK5.js.map +0 -7
  629. package/dist/exports/client/component-KA7FDRMA.js +0 -2
  630. package/dist/exports/client/component-KA7FDRMA.js.map +0 -7
  631. package/dist/exports/client/component-VM36FRT2.js +0 -2
  632. package/dist/exports/client/component-VM36FRT2.js.map +0 -7
  633. package/dist/exports/client/componentInline-6EKPZSCV.js +0 -2
  634. package/dist/exports/client/componentInline-6EKPZSCV.js.map +0 -7
  635. package/dist/features/align/feature.client.d.ts +0 -5
  636. package/dist/features/align/feature.client.d.ts.map +0 -1
  637. package/dist/features/align/feature.client.js +0 -146
  638. package/dist/features/align/feature.client.js.map +0 -1
  639. package/dist/features/align/feature.server.d.ts +0 -2
  640. package/dist/features/align/feature.server.d.ts.map +0 -1
  641. package/dist/features/align/feature.server.js +0 -13
  642. package/dist/features/align/feature.server.js.map +0 -1
  643. package/dist/features/align/i18n.d.ts.map +0 -1
  644. package/dist/features/align/i18n.js.map +0 -1
  645. package/dist/features/align/toolbarAlignGroup.d.ts +0 -3
  646. package/dist/features/align/toolbarAlignGroup.d.ts.map +0 -1
  647. package/dist/features/align/toolbarAlignGroup.js +0 -12
  648. package/dist/features/align/toolbarAlignGroup.js.map +0 -1
  649. package/dist/features/blockquote/feature.client.d.ts +0 -5
  650. package/dist/features/blockquote/feature.client.d.ts.map +0 -1
  651. package/dist/features/blockquote/feature.client.js +0 -77
  652. package/dist/features/blockquote/feature.client.js.map +0 -1
  653. package/dist/features/blockquote/feature.server.d.ts +0 -7
  654. package/dist/features/blockquote/feature.server.d.ts.map +0 -1
  655. package/dist/features/blockquote/feature.server.js +0 -48
  656. package/dist/features/blockquote/feature.server.js.map +0 -1
  657. package/dist/features/blockquote/i18n.d.ts.map +0 -1
  658. package/dist/features/blockquote/i18n.js.map +0 -1
  659. package/dist/features/blocks/component/BlockContent.d.ts +0 -27
  660. package/dist/features/blocks/component/BlockContent.d.ts.map +0 -1
  661. package/dist/features/blocks/component/BlockContent.js +0 -196
  662. package/dist/features/blocks/component/BlockContent.js.map +0 -1
  663. package/dist/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
  664. package/dist/features/blocks/component/FormSavePlugin.js.map +0 -1
  665. package/dist/features/blocks/component/index.d.ts +0 -11
  666. package/dist/features/blocks/component/index.d.ts.map +0 -1
  667. package/dist/features/blocks/component/index.js +0 -162
  668. package/dist/features/blocks/component/index.js.map +0 -1
  669. package/dist/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
  670. package/dist/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
  671. package/dist/features/blocks/componentInline/index.d.ts.map +0 -1
  672. package/dist/features/blocks/componentInline/index.js +0 -133
  673. package/dist/features/blocks/componentInline/index.js.map +0 -1
  674. package/dist/features/blocks/feature.client.d.ts +0 -13
  675. package/dist/features/blocks/feature.client.d.ts.map +0 -1
  676. package/dist/features/blocks/feature.client.js +0 -148
  677. package/dist/features/blocks/feature.client.js.map +0 -1
  678. package/dist/features/blocks/feature.server.d.ts +0 -8
  679. package/dist/features/blocks/feature.server.d.ts.map +0 -1
  680. package/dist/features/blocks/feature.server.js +0 -160
  681. package/dist/features/blocks/feature.server.js.map +0 -1
  682. package/dist/features/blocks/graphQLPopulationPromise.d.ts +0 -6
  683. package/dist/features/blocks/graphQLPopulationPromise.d.ts.map +0 -1
  684. package/dist/features/blocks/graphQLPopulationPromise.js +0 -31
  685. package/dist/features/blocks/graphQLPopulationPromise.js.map +0 -1
  686. package/dist/features/blocks/i18n.d.ts.map +0 -1
  687. package/dist/features/blocks/i18n.js.map +0 -1
  688. package/dist/features/blocks/nodes/BlocksNode.d.ts +0 -38
  689. package/dist/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
  690. package/dist/features/blocks/nodes/BlocksNode.js +0 -92
  691. package/dist/features/blocks/nodes/BlocksNode.js.map +0 -1
  692. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts +0 -39
  693. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts.map +0 -1
  694. package/dist/features/blocks/nodes/InlineBlocksNode.js +0 -94
  695. package/dist/features/blocks/nodes/InlineBlocksNode.js.map +0 -1
  696. package/dist/features/blocks/plugin/commands.d.ts.map +0 -1
  697. package/dist/features/blocks/plugin/commands.js.map +0 -1
  698. package/dist/features/blocks/plugin/index.d.ts +0 -6
  699. package/dist/features/blocks/plugin/index.d.ts.map +0 -1
  700. package/dist/features/blocks/plugin/index.js +0 -111
  701. package/dist/features/blocks/plugin/index.js.map +0 -1
  702. package/dist/features/blocks/validate.d.ts +0 -6
  703. package/dist/features/blocks/validate.d.ts.map +0 -1
  704. package/dist/features/blocks/validate.js.map +0 -1
  705. package/dist/features/converters/html/feature.server.d.ts +0 -8
  706. package/dist/features/converters/html/feature.server.d.ts.map +0 -1
  707. package/dist/features/converters/html/feature.server.js +0 -8
  708. package/dist/features/converters/html/feature.server.js.map +0 -1
  709. package/dist/features/debug/testRecorder/feature.client.d.ts +0 -5
  710. package/dist/features/debug/testRecorder/feature.client.d.ts.map +0 -1
  711. package/dist/features/debug/testRecorder/feature.client.js +0 -13
  712. package/dist/features/debug/testRecorder/feature.client.js.map +0 -1
  713. package/dist/features/debug/testRecorder/feature.server.d.ts +0 -2
  714. package/dist/features/debug/testRecorder/feature.server.d.ts.map +0 -1
  715. package/dist/features/debug/testRecorder/feature.server.js +0 -11
  716. package/dist/features/debug/testRecorder/feature.server.js.map +0 -1
  717. package/dist/features/debug/testRecorder/plugin/index.d.ts +0 -5
  718. package/dist/features/debug/testRecorder/plugin/index.d.ts.map +0 -1
  719. package/dist/features/debug/testRecorder/plugin/index.js +0 -471
  720. package/dist/features/debug/testRecorder/plugin/index.js.map +0 -1
  721. package/dist/features/debug/treeView/feature.client.d.ts +0 -5
  722. package/dist/features/debug/treeView/feature.client.d.ts.map +0 -1
  723. package/dist/features/debug/treeView/feature.client.js +0 -13
  724. package/dist/features/debug/treeView/feature.client.js.map +0 -1
  725. package/dist/features/debug/treeView/feature.server.d.ts +0 -2
  726. package/dist/features/debug/treeView/feature.server.d.ts.map +0 -1
  727. package/dist/features/debug/treeView/feature.server.js +0 -11
  728. package/dist/features/debug/treeView/feature.server.js.map +0 -1
  729. package/dist/features/debug/treeView/plugin/index.d.ts +0 -4
  730. package/dist/features/debug/treeView/plugin/index.d.ts.map +0 -1
  731. package/dist/features/debug/treeView/plugin/index.js.map +0 -1
  732. package/dist/features/experimental_table/feature.client.d.ts +0 -2
  733. package/dist/features/experimental_table/feature.client.d.ts.map +0 -1
  734. package/dist/features/experimental_table/feature.client.js +0 -71
  735. package/dist/features/experimental_table/feature.client.js.map +0 -1
  736. package/dist/features/experimental_table/feature.server.d.ts +0 -13
  737. package/dist/features/experimental_table/feature.server.d.ts.map +0 -1
  738. package/dist/features/experimental_table/feature.server.js +0 -125
  739. package/dist/features/experimental_table/feature.server.js.map +0 -1
  740. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts +0 -4
  741. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  742. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js +0 -604
  743. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js.map +0 -1
  744. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts +0 -3
  745. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  746. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js +0 -327
  747. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js.map +0 -1
  748. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts +0 -24
  749. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts.map +0 -1
  750. package/dist/features/experimental_table/plugins/TablePlugin/index.js +0 -98
  751. package/dist/features/experimental_table/plugins/TablePlugin/index.js.map +0 -1
  752. package/dist/features/experimental_table/utils/debounce.d.ts.map +0 -1
  753. package/dist/features/experimental_table/utils/debounce.js.map +0 -1
  754. package/dist/features/experimental_table/utils/useDebounce.d.ts.map +0 -1
  755. package/dist/features/experimental_table/utils/useDebounce.js.map +0 -1
  756. package/dist/features/heading/feature.client.d.ts +0 -6
  757. package/dist/features/heading/feature.client.d.ts.map +0 -1
  758. package/dist/features/heading/feature.client.js +0 -112
  759. package/dist/features/heading/feature.client.js.map +0 -1
  760. package/dist/features/heading/feature.server.d.ts +0 -10
  761. package/dist/features/heading/feature.server.d.ts.map +0 -1
  762. package/dist/features/heading/feature.server.js +0 -62
  763. package/dist/features/heading/feature.server.js.map +0 -1
  764. package/dist/features/heading/i18n.d.ts.map +0 -1
  765. package/dist/features/heading/i18n.js.map +0 -1
  766. package/dist/features/horizontalRule/component/index.d.ts.map +0 -1
  767. package/dist/features/horizontalRule/component/index.js.map +0 -1
  768. package/dist/features/horizontalRule/feature.client.d.ts +0 -5
  769. package/dist/features/horizontalRule/feature.client.d.ts.map +0 -1
  770. package/dist/features/horizontalRule/feature.client.js +0 -70
  771. package/dist/features/horizontalRule/feature.client.js.map +0 -1
  772. package/dist/features/horizontalRule/feature.server.d.ts +0 -2
  773. package/dist/features/horizontalRule/feature.server.d.ts.map +0 -1
  774. package/dist/features/horizontalRule/feature.server.js +0 -34
  775. package/dist/features/horizontalRule/feature.server.js.map +0 -1
  776. package/dist/features/horizontalRule/i18n.d.ts.map +0 -1
  777. package/dist/features/horizontalRule/i18n.js.map +0 -1
  778. package/dist/features/horizontalRule/markdownTransformer.d.ts.map +0 -1
  779. package/dist/features/horizontalRule/markdownTransformer.js.map +0 -1
  780. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts +0 -56
  781. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  782. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js +0 -92
  783. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js.map +0 -1
  784. package/dist/features/horizontalRule/plugin/index.d.ts +0 -7
  785. package/dist/features/horizontalRule/plugin/index.d.ts.map +0 -1
  786. package/dist/features/horizontalRule/plugin/index.js +0 -30
  787. package/dist/features/horizontalRule/plugin/index.js.map +0 -1
  788. package/dist/features/indent/feature.client.d.ts +0 -5
  789. package/dist/features/indent/feature.client.d.ts.map +0 -1
  790. package/dist/features/indent/feature.client.js +0 -56
  791. package/dist/features/indent/feature.client.js.map +0 -1
  792. package/dist/features/indent/feature.server.d.ts +0 -2
  793. package/dist/features/indent/feature.server.d.ts.map +0 -1
  794. package/dist/features/indent/feature.server.js +0 -13
  795. package/dist/features/indent/feature.server.js.map +0 -1
  796. package/dist/features/indent/i18n.d.ts.map +0 -1
  797. package/dist/features/indent/i18n.js.map +0 -1
  798. package/dist/features/indent/toolbarIndentGroup.d.ts +0 -3
  799. package/dist/features/indent/toolbarIndentGroup.d.ts.map +0 -1
  800. package/dist/features/indent/toolbarIndentGroup.js.map +0 -1
  801. package/dist/features/link/drawer/baseFields.d.ts.map +0 -1
  802. package/dist/features/link/drawer/baseFields.js.map +0 -1
  803. package/dist/features/link/feature.client.d.ts +0 -16
  804. package/dist/features/link/feature.client.d.ts.map +0 -1
  805. package/dist/features/link/feature.client.js +0 -101
  806. package/dist/features/link/feature.client.js.map +0 -1
  807. package/dist/features/link/feature.server.d.ts +0 -35
  808. package/dist/features/link/feature.server.d.ts.map +0 -1
  809. package/dist/features/link/feature.server.js +0 -134
  810. package/dist/features/link/feature.server.js.map +0 -1
  811. package/dist/features/link/graphQLPopulationPromise.d.ts +0 -5
  812. package/dist/features/link/graphQLPopulationPromise.d.ts.map +0 -1
  813. package/dist/features/link/graphQLPopulationPromise.js +0 -31
  814. package/dist/features/link/graphQLPopulationPromise.js.map +0 -1
  815. package/dist/features/link/i18n.d.ts.map +0 -1
  816. package/dist/features/link/i18n.js.map +0 -1
  817. package/dist/features/link/plugins/autoLink/index.d.ts +0 -20
  818. package/dist/features/link/plugins/autoLink/index.d.ts.map +0 -1
  819. package/dist/features/link/plugins/autoLink/index.js +0 -336
  820. package/dist/features/link/plugins/autoLink/index.js.map +0 -1
  821. package/dist/features/link/plugins/clickableLink/index.d.ts +0 -4
  822. package/dist/features/link/plugins/clickableLink/index.d.ts.map +0 -1
  823. package/dist/features/link/plugins/clickableLink/index.js.map +0 -1
  824. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  825. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
  826. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  827. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -299
  828. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
  829. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts +0 -5
  830. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  831. package/dist/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
  832. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts +0 -15
  833. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  834. package/dist/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
  835. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -9
  836. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  837. package/dist/features/link/plugins/floatingLinkEditor/utilities.js +0 -20
  838. package/dist/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
  839. package/dist/features/link/plugins/link/index.d.ts +0 -4
  840. package/dist/features/link/plugins/link/index.d.ts.map +0 -1
  841. package/dist/features/link/plugins/link/index.js +0 -53
  842. package/dist/features/link/plugins/link/index.js.map +0 -1
  843. package/dist/features/link/validate.d.ts +0 -6
  844. package/dist/features/link/validate.d.ts.map +0 -1
  845. package/dist/features/link/validate.js.map +0 -1
  846. package/dist/features/lists/checklist/feature.client.d.ts +0 -5
  847. package/dist/features/lists/checklist/feature.client.d.ts.map +0 -1
  848. package/dist/features/lists/checklist/feature.client.js +0 -100
  849. package/dist/features/lists/checklist/feature.client.js.map +0 -1
  850. package/dist/features/lists/checklist/feature.server.d.ts +0 -2
  851. package/dist/features/lists/checklist/feature.server.d.ts.map +0 -1
  852. package/dist/features/lists/checklist/feature.server.js +0 -36
  853. package/dist/features/lists/checklist/feature.server.js.map +0 -1
  854. package/dist/features/lists/checklist/i18n.d.ts.map +0 -1
  855. package/dist/features/lists/checklist/i18n.js.map +0 -1
  856. package/dist/features/lists/checklist/plugin/index.d.ts +0 -3
  857. package/dist/features/lists/checklist/plugin/index.d.ts.map +0 -1
  858. package/dist/features/lists/checklist/plugin/index.js.map +0 -1
  859. package/dist/features/lists/orderedList/feature.client.d.ts +0 -5
  860. package/dist/features/lists/orderedList/feature.client.d.ts.map +0 -1
  861. package/dist/features/lists/orderedList/feature.client.js +0 -90
  862. package/dist/features/lists/orderedList/feature.client.js.map +0 -1
  863. package/dist/features/lists/orderedList/feature.server.d.ts +0 -2
  864. package/dist/features/lists/orderedList/feature.server.d.ts.map +0 -1
  865. package/dist/features/lists/orderedList/feature.server.js +0 -36
  866. package/dist/features/lists/orderedList/feature.server.js.map +0 -1
  867. package/dist/features/lists/orderedList/i18n.d.ts.map +0 -1
  868. package/dist/features/lists/orderedList/i18n.js.map +0 -1
  869. package/dist/features/lists/unorderedList/feature.client.d.ts +0 -5
  870. package/dist/features/lists/unorderedList/feature.client.d.ts.map +0 -1
  871. package/dist/features/lists/unorderedList/feature.client.js +0 -88
  872. package/dist/features/lists/unorderedList/feature.client.js.map +0 -1
  873. package/dist/features/lists/unorderedList/feature.server.d.ts +0 -2
  874. package/dist/features/lists/unorderedList/feature.server.d.ts.map +0 -1
  875. package/dist/features/lists/unorderedList/feature.server.js +0 -34
  876. package/dist/features/lists/unorderedList/feature.server.js.map +0 -1
  877. package/dist/features/lists/unorderedList/i18n.d.ts.map +0 -1
  878. package/dist/features/lists/unorderedList/i18n.js.map +0 -1
  879. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -5
  880. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
  881. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -6
  882. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
  883. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -3
  884. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
  885. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
  886. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
  887. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -5
  888. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
  889. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -6
  890. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
  891. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -3
  892. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
  893. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
  894. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
  895. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -5
  896. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
  897. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -6
  898. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
  899. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -3
  900. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
  901. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
  902. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
  903. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -5
  904. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  905. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -6
  906. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
  907. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -3
  908. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  909. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
  910. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
  911. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -5
  912. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
  913. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -6
  914. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
  915. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -3
  916. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
  917. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
  918. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
  919. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -5
  920. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  921. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -6
  922. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
  923. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -3
  924. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  925. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
  926. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
  927. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -5
  928. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
  929. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -6
  930. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
  931. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -3
  932. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
  933. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
  934. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
  935. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -5
  936. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
  937. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -6
  938. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
  939. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -3
  940. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
  941. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
  942. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
  943. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -5
  944. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
  945. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js +0 -6
  946. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
  947. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -3
  948. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
  949. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
  950. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
  951. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -5
  952. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
  953. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js +0 -6
  954. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
  955. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -3
  956. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
  957. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
  958. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
  959. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -5
  960. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
  961. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js +0 -6
  962. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
  963. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -3
  964. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
  965. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
  966. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
  967. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -5
  968. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  969. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js +0 -6
  970. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
  971. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -3
  972. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  973. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
  974. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
  975. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -5
  976. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
  977. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -6
  978. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
  979. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -3
  980. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
  981. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
  982. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
  983. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -5
  984. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
  985. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js +0 -6
  986. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
  987. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -3
  988. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
  989. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
  990. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
  991. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -5
  992. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  993. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js +0 -6
  994. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
  995. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -3
  996. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  997. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
  998. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
  999. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -5
  1000. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
  1001. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -6
  1002. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
  1003. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -3
  1004. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
  1005. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
  1006. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
  1007. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -5
  1008. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1009. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js +0 -6
  1010. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
  1011. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -3
  1012. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1013. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
  1014. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
  1015. package/dist/features/paragraph/feature.client.d.ts +0 -5
  1016. package/dist/features/paragraph/feature.client.d.ts.map +0 -1
  1017. package/dist/features/paragraph/feature.client.js +0 -71
  1018. package/dist/features/paragraph/feature.client.js.map +0 -1
  1019. package/dist/features/paragraph/feature.server.d.ts +0 -2
  1020. package/dist/features/paragraph/feature.server.d.ts.map +0 -1
  1021. package/dist/features/paragraph/feature.server.js +0 -14
  1022. package/dist/features/paragraph/feature.server.js.map +0 -1
  1023. package/dist/features/paragraph/i18n.d.ts.map +0 -1
  1024. package/dist/features/paragraph/i18n.js.map +0 -1
  1025. package/dist/features/relationship/drawer/commands.d.ts.map +0 -1
  1026. package/dist/features/relationship/drawer/commands.js.map +0 -1
  1027. package/dist/features/relationship/drawer/index.d.ts.map +0 -1
  1028. package/dist/features/relationship/drawer/index.js.map +0 -1
  1029. package/dist/features/relationship/feature.client.d.ts +0 -18
  1030. package/dist/features/relationship/feature.client.d.ts.map +0 -1
  1031. package/dist/features/relationship/feature.client.js +0 -72
  1032. package/dist/features/relationship/feature.client.js.map +0 -1
  1033. package/dist/features/relationship/feature.server.d.ts +0 -27
  1034. package/dist/features/relationship/feature.server.d.ts.map +0 -1
  1035. package/dist/features/relationship/feature.server.js +0 -55
  1036. package/dist/features/relationship/feature.server.js.map +0 -1
  1037. package/dist/features/relationship/graphQLPopulationPromise.d.ts +0 -5
  1038. package/dist/features/relationship/graphQLPopulationPromise.d.ts.map +0 -1
  1039. package/dist/features/relationship/graphQLPopulationPromise.js +0 -29
  1040. package/dist/features/relationship/graphQLPopulationPromise.js.map +0 -1
  1041. package/dist/features/relationship/i18n.d.ts.map +0 -1
  1042. package/dist/features/relationship/i18n.js.map +0 -1
  1043. package/dist/features/relationship/nodes/RelationshipNode.d.ts +0 -35
  1044. package/dist/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
  1045. package/dist/features/relationship/nodes/RelationshipNode.js +0 -111
  1046. package/dist/features/relationship/nodes/RelationshipNode.js.map +0 -1
  1047. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts +0 -13
  1048. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  1049. package/dist/features/relationship/nodes/components/RelationshipComponent.js +0 -171
  1050. package/dist/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
  1051. package/dist/features/relationship/plugins/index.d.ts +0 -7
  1052. package/dist/features/relationship/plugins/index.d.ts.map +0 -1
  1053. package/dist/features/relationship/plugins/index.js +0 -50
  1054. package/dist/features/relationship/plugins/index.js.map +0 -1
  1055. package/dist/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  1056. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js +0 -33
  1057. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
  1058. package/dist/features/toolbars/fixed/Toolbar/index.d.ts +0 -5
  1059. package/dist/features/toolbars/fixed/Toolbar/index.d.ts.map +0 -1
  1060. package/dist/features/toolbars/fixed/Toolbar/index.js +0 -207
  1061. package/dist/features/toolbars/fixed/Toolbar/index.js.map +0 -1
  1062. package/dist/features/toolbars/fixed/feature.client.d.ts +0 -6
  1063. package/dist/features/toolbars/fixed/feature.client.d.ts.map +0 -1
  1064. package/dist/features/toolbars/fixed/feature.client.js +0 -13
  1065. package/dist/features/toolbars/fixed/feature.client.js.map +0 -1
  1066. package/dist/features/toolbars/fixed/feature.server.d.ts +0 -18
  1067. package/dist/features/toolbars/fixed/feature.server.d.ts.map +0 -1
  1068. package/dist/features/toolbars/fixed/feature.server.js +0 -19
  1069. package/dist/features/toolbars/fixed/feature.server.js.map +0 -1
  1070. package/dist/features/toolbars/inline/Toolbar/index.d.ts +0 -4
  1071. package/dist/features/toolbars/inline/Toolbar/index.d.ts.map +0 -1
  1072. package/dist/features/toolbars/inline/Toolbar/index.js +0 -319
  1073. package/dist/features/toolbars/inline/Toolbar/index.js.map +0 -1
  1074. package/dist/features/toolbars/inline/feature.client.d.ts +0 -5
  1075. package/dist/features/toolbars/inline/feature.client.d.ts.map +0 -1
  1076. package/dist/features/toolbars/inline/feature.client.js +0 -13
  1077. package/dist/features/toolbars/inline/feature.client.js.map +0 -1
  1078. package/dist/features/toolbars/inline/feature.server.d.ts +0 -2
  1079. package/dist/features/toolbars/inline/feature.server.d.ts.map +0 -1
  1080. package/dist/features/toolbars/inline/feature.server.js +0 -11
  1081. package/dist/features/toolbars/inline/feature.server.js.map +0 -1
  1082. package/dist/features/upload/component/index.d.ts +0 -9
  1083. package/dist/features/upload/component/index.d.ts.map +0 -1
  1084. package/dist/features/upload/component/index.js +0 -242
  1085. package/dist/features/upload/component/index.js.map +0 -1
  1086. package/dist/features/upload/drawer/commands.d.ts.map +0 -1
  1087. package/dist/features/upload/drawer/commands.js.map +0 -1
  1088. package/dist/features/upload/drawer/index.d.ts.map +0 -1
  1089. package/dist/features/upload/drawer/index.js +0 -77
  1090. package/dist/features/upload/drawer/index.js.map +0 -1
  1091. package/dist/features/upload/feature.client.d.ts.map +0 -1
  1092. package/dist/features/upload/feature.client.js +0 -74
  1093. package/dist/features/upload/feature.client.js.map +0 -1
  1094. package/dist/features/upload/feature.server.d.ts +0 -18
  1095. package/dist/features/upload/feature.server.d.ts.map +0 -1
  1096. package/dist/features/upload/feature.server.js +0 -184
  1097. package/dist/features/upload/feature.server.js.map +0 -1
  1098. package/dist/features/upload/graphQLPopulationPromise.d.ts +0 -5
  1099. package/dist/features/upload/graphQLPopulationPromise.d.ts.map +0 -1
  1100. package/dist/features/upload/graphQLPopulationPromise.js +0 -52
  1101. package/dist/features/upload/graphQLPopulationPromise.js.map +0 -1
  1102. package/dist/features/upload/i18n.d.ts.map +0 -1
  1103. package/dist/features/upload/i18n.js.map +0 -1
  1104. package/dist/features/upload/nodes/UploadNode.d.ts +0 -39
  1105. package/dist/features/upload/nodes/UploadNode.d.ts.map +0 -1
  1106. package/dist/features/upload/nodes/UploadNode.js +0 -131
  1107. package/dist/features/upload/nodes/UploadNode.js.map +0 -1
  1108. package/dist/features/upload/plugin/index.d.ts +0 -8
  1109. package/dist/features/upload/plugin/index.d.ts.map +0 -1
  1110. package/dist/features/upload/plugin/index.js +0 -53
  1111. package/dist/features/upload/plugin/index.js.map +0 -1
  1112. package/dist/features/upload/validate.d.ts +0 -5
  1113. package/dist/features/upload/validate.d.ts.map +0 -1
  1114. package/dist/features/upload/validate.js.map +0 -1
  1115. package/dist/lexical/utils/invariant.d.ts +0 -2
  1116. package/dist/lexical/utils/invariant.d.ts.map +0 -1
  1117. package/dist/lexical/utils/invariant.js +0 -12
  1118. package/dist/lexical/utils/invariant.js.map +0 -1
  1119. /package/dist/features/align/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1120. /package/dist/features/align/{i18n.js → server/i18n.js} +0 -0
  1121. /package/dist/features/blockquote/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1122. /package/dist/features/blockquote/{i18n.js → server/i18n.js} +0 -0
  1123. /package/dist/features/blocks/{component → client/component}/FormSavePlugin.d.ts +0 -0
  1124. /package/dist/features/blocks/{component → client/component}/FormSavePlugin.js +0 -0
  1125. /package/dist/features/blocks/{component → client/component}/removeEmptyArrayValues.d.ts +0 -0
  1126. /package/dist/features/blocks/{component → client/component}/removeEmptyArrayValues.js +0 -0
  1127. /package/dist/features/blocks/{componentInline → client/componentInline}/index.d.ts +0 -0
  1128. /package/dist/features/blocks/{plugin → client/plugin}/commands.d.ts +0 -0
  1129. /package/dist/features/blocks/{plugin → client/plugin}/commands.js +0 -0
  1130. /package/dist/features/blocks/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1131. /package/dist/features/blocks/{i18n.js → server/i18n.js} +0 -0
  1132. /package/dist/features/blocks/{validate.js → server/validate.js} +0 -0
  1133. /package/dist/features/debug/treeView/{plugin → client/plugin}/index.js +0 -0
  1134. /package/dist/features/experimental_table/{utils → client/utils}/debounce.d.ts +0 -0
  1135. /package/dist/features/experimental_table/{utils → client/utils}/debounce.js +0 -0
  1136. /package/dist/features/experimental_table/{utils → client/utils}/useDebounce.d.ts +0 -0
  1137. /package/dist/features/experimental_table/{utils → client/utils}/useDebounce.js +0 -0
  1138. /package/dist/features/heading/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1139. /package/dist/features/heading/{i18n.js → server/i18n.js} +0 -0
  1140. /package/dist/features/horizontalRule/{component → client/component}/index.d.ts +0 -0
  1141. /package/dist/features/horizontalRule/{component → client/component}/index.js +0 -0
  1142. /package/dist/features/horizontalRule/{markdownTransformer.d.ts → client/markdownTransformer.d.ts} +0 -0
  1143. /package/dist/features/horizontalRule/{markdownTransformer.js → client/markdownTransformer.js} +0 -0
  1144. /package/dist/features/horizontalRule/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1145. /package/dist/features/horizontalRule/{i18n.js → server/i18n.js} +0 -0
  1146. /package/dist/features/indent/{toolbarIndentGroup.js → client/toolbarIndentGroup.js} +0 -0
  1147. /package/dist/features/indent/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1148. /package/dist/features/indent/{i18n.js → server/i18n.js} +0 -0
  1149. /package/dist/features/link/{plugins → client/plugins}/clickableLink/index.js +0 -0
  1150. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  1151. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/commands.js +0 -0
  1152. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
  1153. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/index.js +0 -0
  1154. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/types.js +0 -0
  1155. /package/dist/features/link/{drawer → server}/baseFields.d.ts +0 -0
  1156. /package/dist/features/link/{drawer → server}/baseFields.js +0 -0
  1157. /package/dist/features/link/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1158. /package/dist/features/link/{i18n.js → server/i18n.js} +0 -0
  1159. /package/dist/features/link/{validate.js → server/validate.js} +0 -0
  1160. /package/dist/features/lists/checklist/{plugin → client/plugin}/index.js +0 -0
  1161. /package/dist/features/lists/checklist/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1162. /package/dist/features/lists/checklist/{i18n.js → server/i18n.js} +0 -0
  1163. /package/dist/features/lists/orderedList/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1164. /package/dist/features/lists/orderedList/{i18n.js → server/i18n.js} +0 -0
  1165. /package/dist/features/lists/unorderedList/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1166. /package/dist/features/lists/unorderedList/{i18n.js → server/i18n.js} +0 -0
  1167. /package/dist/features/paragraph/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1168. /package/dist/features/paragraph/{i18n.js → server/i18n.js} +0 -0
  1169. /package/dist/features/relationship/{drawer → client/drawer}/commands.d.ts +0 -0
  1170. /package/dist/features/relationship/{drawer → client/drawer}/commands.js +0 -0
  1171. /package/dist/features/relationship/{drawer → client/drawer}/index.d.ts +0 -0
  1172. /package/dist/features/relationship/{drawer → client/drawer}/index.js +0 -0
  1173. /package/dist/features/relationship/{utils → client/utils}/EnabledRelationshipsCondition.d.ts +0 -0
  1174. /package/dist/features/relationship/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1175. /package/dist/features/relationship/{i18n.js → server/i18n.js} +0 -0
  1176. /package/dist/features/upload/{drawer → client/drawer}/commands.d.ts +0 -0
  1177. /package/dist/features/upload/{drawer → client/drawer}/commands.js +0 -0
  1178. /package/dist/features/upload/{drawer → client/drawer}/index.d.ts +0 -0
  1179. /package/dist/features/upload/{feature.client.d.ts → client/feature.client.d.ts} +0 -0
  1180. /package/dist/features/upload/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1181. /package/dist/features/upload/{i18n.js → server/i18n.js} +0 -0
  1182. /package/dist/features/upload/{validate.js → server/validate.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/features/toolbars/inline/Toolbar/index.tsx"],"sourcesContent":["'use client'\nimport type { LexicalEditor } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { mergeRegister } from '@lexical/utils'\nimport {\n $getSelection,\n $isRangeSelection,\n $isTextNode,\n COMMAND_PRIORITY_LOW,\n SELECTION_CHANGE_COMMAND,\n} from 'lexical'\nimport { useCallback, useEffect, useRef, useState } from 'react'\nimport * as React from 'react'\nimport { createPortal } from 'react-dom'\n\nimport type { PluginComponentWithAnchor } from '../../../typesClient.js'\nimport type { ToolbarGroup, ToolbarGroupItem } from '../../types.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { getDOMRangeRect } from '../../../../lexical/utils/getDOMRangeRect.js'\nimport { setFloatingElemPosition } from '../../../../lexical/utils/setFloatingElemPosition.js'\nimport { ToolbarButton } from '../../shared/ToolbarButton/index.js'\nimport { ToolbarDropdown } from '../../shared/ToolbarDropdown/index.js'\nimport './index.scss'\n\nfunction ButtonGroupItem({\n anchorElem,\n editor,\n item,\n}: {\n anchorElem: HTMLElement\n editor: LexicalEditor\n item: ToolbarGroupItem\n}): React.ReactNode {\n if (item.Component) {\n return (\n item?.Component && (\n <item.Component anchorElem={anchorElem} editor={editor} item={item} key={item.key} />\n )\n )\n }\n\n return (\n <ToolbarButton editor={editor} item={item} key={item.key}>\n {item?.ChildComponent && <item.ChildComponent />}\n </ToolbarButton>\n )\n}\n\nfunction ToolbarGroupComponent({\n anchorElem,\n editor,\n group,\n index,\n}: {\n anchorElem: HTMLElement\n editor: LexicalEditor\n group: ToolbarGroup\n index: number\n}): React.ReactNode {\n const { editorConfig } = useEditorConfigContext()\n\n const [DropdownIcon, setDropdownIcon] = React.useState<React.FC | null>(null)\n\n React.useEffect(() => {\n if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {\n setDropdownIcon(() => group.ChildComponent)\n } else {\n setDropdownIcon(null)\n }\n }, [group])\n\n const onActiveChange = ({ activeItems }: { activeItems: ToolbarGroupItem[] }) => {\n if (!activeItems.length) {\n if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {\n setDropdownIcon(() => group.ChildComponent)\n } else {\n setDropdownIcon(null)\n }\n return\n }\n const item = activeItems[0]\n setDropdownIcon(() => item.ChildComponent)\n }\n\n return (\n <div\n className={`inline-toolbar-popup__group inline-toolbar-popup__group-${group.key}`}\n key={group.key}\n >\n {group.type === 'dropdown' &&\n group.items.length &&\n (DropdownIcon ? (\n <ToolbarDropdown\n Icon={DropdownIcon}\n anchorElem={anchorElem}\n editor={editor}\n groupKey={group.key}\n items={group.items}\n maxActiveItems={1}\n onActiveChange={onActiveChange}\n />\n ) : (\n <ToolbarDropdown\n anchorElem={anchorElem}\n editor={editor}\n groupKey={group.key}\n items={group.items}\n maxActiveItems={1}\n onActiveChange={onActiveChange}\n />\n ))}\n {group.type === 'buttons' &&\n group.items.length &&\n group.items.map((item) => {\n return (\n <ButtonGroupItem anchorElem={anchorElem} editor={editor} item={item} key={item.key} />\n )\n })}\n {index < editorConfig.features.toolbarInline?.groups.length - 1 && (\n <div className=\"divider\" />\n )}\n </div>\n )\n}\n\nfunction InlineToolbar({\n anchorElem,\n editor,\n}: {\n anchorElem: HTMLElement\n editor: LexicalEditor\n}): React.ReactNode {\n const floatingToolbarRef = useRef<HTMLDivElement | null>(null)\n const caretRef = useRef<HTMLDivElement | null>(null)\n\n const { editorConfig } = useEditorConfigContext()\n\n const closeFloatingToolbar = useCallback(() => {\n if (floatingToolbarRef?.current) {\n const isOpacityZero = floatingToolbarRef.current.style.opacity === '0'\n const isPointerEventsNone = floatingToolbarRef.current.style.pointerEvents === 'none'\n\n if (!isOpacityZero) {\n floatingToolbarRef.current.style.opacity = '0'\n }\n if (!isPointerEventsNone) {\n floatingToolbarRef.current.style.pointerEvents = 'none'\n }\n }\n }, [floatingToolbarRef])\n\n const mouseMoveListener = useCallback(\n (e: MouseEvent) => {\n if (floatingToolbarRef?.current && (e.buttons === 1 || e.buttons === 3)) {\n const isOpacityZero = floatingToolbarRef.current.style.opacity === '0'\n const isPointerEventsNone = floatingToolbarRef.current.style.pointerEvents === 'none'\n if (!isOpacityZero || !isPointerEventsNone) {\n // Check if the mouse is not over the popup\n const x = e.clientX\n const y = e.clientY\n const elementUnderMouse = document.elementFromPoint(x, y)\n if (!floatingToolbarRef.current.contains(elementUnderMouse)) {\n // Mouse is not over the target element => not a normal click, but probably a drag\n closeFloatingToolbar()\n }\n }\n }\n },\n [closeFloatingToolbar],\n )\n\n const mouseUpListener = useCallback(() => {\n if (floatingToolbarRef?.current) {\n if (floatingToolbarRef.current.style.opacity !== '1') {\n floatingToolbarRef.current.style.opacity = '1'\n }\n if (floatingToolbarRef.current.style.pointerEvents !== 'auto') {\n floatingToolbarRef.current.style.pointerEvents = 'auto'\n }\n }\n }, [])\n\n useEffect(() => {\n document.addEventListener('mousemove', mouseMoveListener)\n document.addEventListener('mouseup', mouseUpListener)\n\n return () => {\n document.removeEventListener('mousemove', mouseMoveListener)\n document.removeEventListener('mouseup', mouseUpListener)\n }\n }, [floatingToolbarRef, mouseMoveListener, mouseUpListener])\n\n const $updateTextFormatFloatingToolbar = useCallback(() => {\n const selection = $getSelection()\n\n const nativeSelection = window.getSelection()\n\n if (floatingToolbarRef.current === null) {\n return\n }\n\n const possibleLinkEditor = anchorElem.querySelector(':scope > .link-editor')\n const isLinkEditorVisible =\n possibleLinkEditor !== null &&\n 'style' in possibleLinkEditor &&\n possibleLinkEditor?.style?.['opacity'] === '1'\n\n const rootElement = editor.getRootElement()\n if (\n selection !== null &&\n nativeSelection !== null &&\n !nativeSelection.isCollapsed &&\n rootElement !== null &&\n rootElement.contains(nativeSelection.anchorNode)\n ) {\n const rangeRect = getDOMRangeRect(nativeSelection, rootElement)\n\n // Position floating toolbar\n const offsetIfFlipped = setFloatingElemPosition({\n alwaysDisplayOnTop: isLinkEditorVisible,\n anchorElem,\n floatingElem: floatingToolbarRef.current,\n horizontalPosition: 'center',\n targetRect: rangeRect,\n })\n\n // Position caret\n if (caretRef.current) {\n setFloatingElemPosition({\n anchorElem: floatingToolbarRef.current,\n anchorFlippedOffset: offsetIfFlipped,\n floatingElem: caretRef.current,\n horizontalOffset: 5,\n horizontalPosition: 'center',\n specialHandlingForCaret: true,\n targetRect: rangeRect,\n verticalGap: 10,\n })\n }\n } else {\n closeFloatingToolbar()\n }\n }, [editor, closeFloatingToolbar, anchorElem])\n\n useEffect(() => {\n const scrollerElem = anchorElem.parentElement\n\n const update = () => {\n editor.getEditorState().read(() => {\n $updateTextFormatFloatingToolbar()\n })\n }\n\n window.addEventListener('resize', update)\n if (scrollerElem) {\n scrollerElem.addEventListener('scroll', update)\n }\n\n return () => {\n window.removeEventListener('resize', update)\n if (scrollerElem) {\n scrollerElem.removeEventListener('scroll', update)\n }\n }\n }, [editor, $updateTextFormatFloatingToolbar, anchorElem])\n\n useEffect(() => {\n editor.getEditorState().read(() => {\n $updateTextFormatFloatingToolbar()\n })\n return mergeRegister(\n editor.registerUpdateListener(({ editorState }) => {\n editorState.read(() => {\n $updateTextFormatFloatingToolbar()\n })\n }),\n\n editor.registerCommand(\n SELECTION_CHANGE_COMMAND,\n () => {\n $updateTextFormatFloatingToolbar()\n return false\n },\n COMMAND_PRIORITY_LOW,\n ),\n )\n }, [editor, $updateTextFormatFloatingToolbar])\n\n return (\n <div className=\"inline-toolbar-popup\" ref={floatingToolbarRef}>\n <div className=\"caret\" ref={caretRef} />\n {editor.isEditable() && (\n <React.Fragment>\n {editorConfig?.features &&\n editorConfig.features?.toolbarInline?.groups.map((group, i) => {\n return (\n <ToolbarGroupComponent\n anchorElem={anchorElem}\n editor={editor}\n group={group}\n index={i}\n key={group.key}\n />\n )\n })}\n </React.Fragment>\n )}\n </div>\n )\n}\n\nfunction useInlineToolbar(\n editor: LexicalEditor,\n anchorElem: HTMLElement,\n): React.ReactElement | null {\n const [isText, setIsText] = useState(false)\n\n const updatePopup = useCallback(() => {\n editor.getEditorState().read(() => {\n // Should not to pop up the floating toolbar when using IME input\n if (editor.isComposing()) {\n return\n }\n const selection = $getSelection()\n const nativeSelection = window.getSelection()\n const rootElement = editor.getRootElement()\n\n if (\n nativeSelection !== null &&\n (!$isRangeSelection(selection) ||\n rootElement === null ||\n !rootElement.contains(nativeSelection.anchorNode))\n ) {\n setIsText(false)\n return\n }\n\n if (!$isRangeSelection(selection)) {\n return\n }\n\n if (selection.getTextContent() !== '') {\n const nodes = selection.getNodes()\n let foundNodeWithText = false\n for (const node of nodes) {\n if ($isTextNode(node)) {\n setIsText(true)\n foundNodeWithText = true\n break\n }\n }\n if (!foundNodeWithText) {\n setIsText(false)\n }\n } else {\n setIsText(false)\n }\n\n const rawTextContent = selection.getTextContent().replace(/\\n/g, '')\n if (!selection.isCollapsed() && rawTextContent === '') {\n setIsText(false)\n return\n }\n })\n }, [editor])\n\n useEffect(() => {\n document.addEventListener('selectionchange', updatePopup)\n document.addEventListener('mouseup', updatePopup)\n return () => {\n document.removeEventListener('selectionchange', updatePopup)\n document.removeEventListener('mouseup', updatePopup)\n }\n }, [updatePopup])\n\n useEffect(() => {\n return mergeRegister(\n editor.registerUpdateListener(() => {\n updatePopup()\n }),\n editor.registerRootListener(() => {\n if (editor.getRootElement() === null) {\n setIsText(false)\n }\n }),\n )\n }, [editor, updatePopup])\n\n if (!isText) {\n return null\n }\n\n return createPortal(<InlineToolbar anchorElem={anchorElem} editor={editor} />, anchorElem)\n}\n\nexport const InlineToolbarPlugin: PluginComponentWithAnchor<undefined> = ({ anchorElem }) => {\n const [editor] = useLexicalComposerContext()\n\n return useInlineToolbar(editor, anchorElem)\n}\n"],"names":["useLexicalComposerContext","mergeRegister","$getSelection","$isRangeSelection","$isTextNode","COMMAND_PRIORITY_LOW","SELECTION_CHANGE_COMMAND","useCallback","useEffect","useRef","useState","React","createPortal","useEditorConfigContext","getDOMRangeRect","setFloatingElemPosition","ToolbarButton","ToolbarDropdown","ButtonGroupItem","anchorElem","editor","item","Component","key","ChildComponent","ToolbarGroupComponent","group","index","editorConfig","DropdownIcon","setDropdownIcon","type","items","length","onActiveChange","activeItems","div","className","Icon","groupKey","maxActiveItems","map","features","toolbarInline","groups","InlineToolbar","floatingToolbarRef","caretRef","closeFloatingToolbar","current","isOpacityZero","style","opacity","isPointerEventsNone","pointerEvents","mouseMoveListener","e","buttons","x","clientX","y","clientY","elementUnderMouse","document","elementFromPoint","contains","mouseUpListener","addEventListener","removeEventListener","$updateTextFormatFloatingToolbar","selection","nativeSelection","window","getSelection","possibleLinkEditor","querySelector","isLinkEditorVisible","rootElement","getRootElement","isCollapsed","anchorNode","rangeRect","offsetIfFlipped","alwaysDisplayOnTop","floatingElem","horizontalPosition","targetRect","anchorFlippedOffset","horizontalOffset","specialHandlingForCaret","verticalGap","scrollerElem","parentElement","update","getEditorState","read","registerUpdateListener","editorState","registerCommand","ref","isEditable","Fragment","i","useInlineToolbar","isText","setIsText","updatePopup","isComposing","getTextContent","nodes","getNodes","foundNodeWithText","node","rawTextContent","replace","registerRootListener","InlineToolbarPlugin"],"mappings":"AAAA;;AAGA,SAASA,yBAAyB,QAAQ,2CAA0C;AACpF,SAASC,aAAa,QAAQ,iBAAgB;AAC9C,SACEC,aAAa,EACbC,iBAAiB,EACjBC,WAAW,EACXC,oBAAoB,EACpBC,wBAAwB,QACnB,UAAS;AAChB,SAASC,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAO;AAChE,YAAYC,WAAW,QAAO;AAC9B,SAASC,YAAY,QAAQ,YAAW;AAKxC,SAASC,sBAAsB,QAAQ,4DAA2D;AAClG,SAASC,eAAe,QAAQ,+CAA8C;AAC9E,SAASC,uBAAuB,QAAQ,uDAAsD;AAC9F,SAASC,aAAa,QAAQ,sCAAqC;AACnE,SAASC,eAAe,QAAQ,wCAAuC;AAGvE,SAASC,gBAAgB,EACvBC,UAAU,EACVC,MAAM,EACNC,IAAI,EAKL;IACC,IAAIA,KAAKC,SAAS,EAAE;QAClB,OACED,MAAMC,2BACJ,KAACD,KAAKC,SAAS;YAACH,YAAYA;YAAYC,QAAQA;YAAQC,MAAMA;WAAWA,KAAKE,GAAG;IAGvF;IAEA,qBACE,KAACP;QAAcI,QAAQA;QAAQC,MAAMA;kBAClCA,MAAMG,gCAAkB,KAACH,KAAKG,cAAc;OADCH,KAAKE,GAAG;AAI5D;AAEA,SAASE,sBAAsB,EAC7BN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AC,mBAAmBuC;QAC7C3C,SAASI,gBAAgB,CAAC,WAAWuC;QACrC,OAAO;YACL3C,SAASK,mBAAmB,CAAC,mBAAmBsC;YAChD3C,SAASK,mBAAmB,CAAC,WAAWsC;QAC1C;IACF,GAAG;QAACA;KAAY;IAEhBlG,UAAU;QACR,OAAOP,cACLmB,OAAO4E,sBAAsB,CAAC;YAC5BU;QACF,IACAtF,OAAO+F,oBAAoB,CAAC;YAC1B,IAAI/F,OAAO0D,cAAc,OAAO,MAAM;gBACpC2B,UAAU;YACZ;QACF;IAEJ,GAAG;QAACrF;QAAQsF;KAAY;IAExB,IAAI,CAACF,QAAQ;QACX,OAAO;IACT;IAEA,qBAAO5F,2BAAa,KAACiC;QAAc1B,YAAYA;QAAYC,QAAQA;QAAYD;AACjF;AAEA,OAAO,MAAMiG,sBAA4D,CAAC,EAAEjG,UAAU,EAAE;IACtF,MAAM,CAACC,OAAO,GAAGpB;IAEjB,OAAOuG,iBAAiBnF,QAAQD;AAClC,EAAC"}
@@ -1,5 +0,0 @@
1
- export declare const InlineToolbarFeatureClient: import("react").FC<{
2
- featureKey: string;
3
- order: number;
4
- }>;
5
- //# sourceMappingURL=feature.client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../../src/features/toolbars/inline/feature.client.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B;;;EAOrC,CAAA"}
@@ -1,13 +0,0 @@
1
- 'use client';
2
- import { createClientFeature } from '../../../utilities/createClientFeature.js';
3
- import { InlineToolbarPlugin } from './Toolbar/index.js';
4
- export const InlineToolbarFeatureClient = createClientFeature({
5
- plugins: [
6
- {
7
- Component: InlineToolbarPlugin,
8
- position: 'floatingAnchorElem'
9
- }
10
- ]
11
- });
12
-
13
- //# sourceMappingURL=feature.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/features/toolbars/inline/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport { createClientFeature } from '../../../utilities/createClientFeature.js'\nimport { InlineToolbarPlugin } from './Toolbar/index.js'\n\nexport const InlineToolbarFeatureClient = createClientFeature({\n plugins: [\n {\n Component: InlineToolbarPlugin,\n position: 'floatingAnchorElem',\n },\n ],\n})\n"],"names":["createClientFeature","InlineToolbarPlugin","InlineToolbarFeatureClient","plugins","Component","position"],"mappings":"AAAA;AAEA,SAASA,mBAAmB,QAAQ,4CAA2C;AAC/E,SAASC,mBAAmB,QAAQ,qBAAoB;AAExD,OAAO,MAAMC,6BAA6BF,oBAAoB;IAC5DG,SAAS;QACP;YACEC,WAAWH;YACXI,UAAU;QACZ;KACD;AACH,GAAE"}
@@ -1,2 +0,0 @@
1
- export declare const InlineToolbarFeature: import("../../typesServer.js").FeatureProviderProviderServer<undefined, undefined, undefined>;
2
- //# sourceMappingURL=feature.server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/features/toolbars/inline/feature.server.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,+FAK/B,CAAA"}
@@ -1,11 +0,0 @@
1
- // eslint-disable-next-line payload/no-imports-from-exports-dir
2
- import { InlineToolbarFeatureClient } from '../../../exports/client/index.js';
3
- import { createServerFeature } from '../../../utilities/createServerFeature.js';
4
- export const InlineToolbarFeature = createServerFeature({
5
- feature: {
6
- ClientFeature: InlineToolbarFeatureClient
7
- },
8
- key: 'toolbarInline'
9
- });
10
-
11
- //# sourceMappingURL=feature.server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/features/toolbars/inline/feature.server.ts"],"sourcesContent":["// eslint-disable-next-line payload/no-imports-from-exports-dir\nimport { InlineToolbarFeatureClient } from '../../../exports/client/index.js'\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\n\nexport const InlineToolbarFeature = createServerFeature({\n feature: {\n ClientFeature: InlineToolbarFeatureClient,\n },\n key: 'toolbarInline',\n})\n"],"names":["InlineToolbarFeatureClient","createServerFeature","InlineToolbarFeature","feature","ClientFeature","key"],"mappings":"AAAA,+DAA+D;AAC/D,SAASA,0BAA0B,QAAQ,mCAAkC;AAC7E,SAASC,mBAAmB,QAAQ,4CAA2C;AAE/E,OAAO,MAAMC,uBAAuBD,oBAAoB;IACtDE,SAAS;QACPC,eAAeJ;IACjB;IACAK,KAAK;AACP,GAAE"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { UploadData } from '../nodes/UploadNode.js';
3
- import './index.scss';
4
- export type ElementProps = {
5
- data: UploadData;
6
- nodeKey: string;
7
- };
8
- export declare const UploadComponent: (props: ElementProps) => React.ReactNode;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/upload/component/index.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAA+D,MAAM,OAAO,CAAA;AAInF,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,wBAAwB,CAAA;AAOpE,OAAO,cAAc,CAAA;AAQrB,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAkOD,eAAO,MAAM,eAAe,UAAW,YAAY,KAAG,KAAK,CAAC,SAM3D,CAAA"}
@@ -1,242 +0,0 @@
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, DrawerToggler, File, useConfig, useDocumentDrawer, useDrawerSlug, useModal, 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 { FieldsDrawer } from '../../../utilities/fieldsDrawer/Drawer.js';
12
- import { EnabledRelationshipsCondition } from '../../relationship/utils/EnabledRelationshipsCondition.js';
13
- import { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from '../drawer/commands.js';
14
- import { $isUploadNode } from '../nodes/UploadNode.js';
15
- const baseClass = 'lexical-upload';
16
- const initialParams = {
17
- depth: 0
18
- };
19
- const Component = (props)=>{
20
- const { data: { fields, relationTo, value }, nodeKey } = props;
21
- const { collections, routes: { api }, serverURL } = useConfig();
22
- const uploadRef = useRef(null);
23
- const { closeModal } = useModal();
24
- const [editor] = useLexicalComposerContext();
25
- const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
26
- const { editorConfig, field } = useEditorConfigContext();
27
- const { i18n, t } = useTranslation();
28
- const [cacheBust, dispatchCacheBust] = useReducer((state)=>state + 1, 0);
29
- const [relatedCollection] = useState(()=>collections.find((coll)=>coll.slug === relationTo));
30
- const drawerSlug = useDrawerSlug('upload-drawer');
31
- const [DocumentDrawer, DocumentDrawerToggler, { closeDrawer }] = useDocumentDrawer({
32
- id: value,
33
- collectionSlug: relatedCollection.slug
34
- });
35
- // Get the referenced document
36
- const [{ data }, { setParams }] = usePayloadAPI(`${serverURL}${api}/${relatedCollection.slug}/${value}`, {
37
- initialParams
38
- });
39
- const thumbnailSRC = data?.thumbnailURL || data?.url;
40
- const removeUpload = useCallback(()=>{
41
- editor.update(()=>{
42
- $getNodeByKey(nodeKey).remove();
43
- });
44
- }, [
45
- editor,
46
- nodeKey
47
- ]);
48
- const updateUpload = useCallback((data)=>{
49
- setParams({
50
- ...initialParams,
51
- cacheBust
52
- });
53
- dispatchCacheBust();
54
- closeDrawer();
55
- }, [
56
- setParams,
57
- cacheBust,
58
- closeDrawer
59
- ]);
60
- const $onDelete = useCallback((event)=>{
61
- if (isSelected && $isNodeSelection($getSelection())) {
62
- event.preventDefault();
63
- const node = $getNodeByKey(nodeKey);
64
- if ($isUploadNode(node)) {
65
- node.remove();
66
- return true;
67
- }
68
- }
69
- return false;
70
- }, [
71
- isSelected,
72
- nodeKey
73
- ]);
74
- const onClick = useCallback((event)=>{
75
- // Check if uploadRef.target or anything WITHIN uploadRef.target was clicked
76
- if (event.target === uploadRef.current || uploadRef.current?.contains(event.target)) {
77
- if (event.shiftKey) {
78
- setSelected(!isSelected);
79
- } else {
80
- if (!isSelected) {
81
- clearSelection();
82
- setSelected(true);
83
- }
84
- }
85
- return true;
86
- }
87
- return false;
88
- }, [
89
- isSelected,
90
- setSelected,
91
- clearSelection
92
- ]);
93
- useEffect(()=>{
94
- 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));
95
- }, [
96
- clearSelection,
97
- editor,
98
- isSelected,
99
- nodeKey,
100
- $onDelete,
101
- setSelected,
102
- onClick
103
- ]);
104
- const hasExtraFields = editorConfig?.resolvedFeatureMap?.get('upload')?.sanitizedClientFeatureProps.collections?.[relatedCollection.slug]?.hasExtraFields;
105
- const onExtraFieldsDrawerSubmit = useCallback((_, data)=>{
106
- // Update lexical node (with key nodeKey) with new data
107
- editor.update(()=>{
108
- const uploadNode = $getNodeByKey(nodeKey);
109
- if (uploadNode) {
110
- const newData = {
111
- ...uploadNode.getData(),
112
- fields: data
113
- };
114
- uploadNode.setData(newData);
115
- }
116
- });
117
- closeModal(drawerSlug);
118
- }, [
119
- closeModal,
120
- editor,
121
- drawerSlug,
122
- nodeKey
123
- ]);
124
- return /*#__PURE__*/ _jsxs("div", {
125
- className: [
126
- baseClass,
127
- isSelected && `${baseClass}--selected`
128
- ].filter(Boolean).join(' '),
129
- contentEditable: false,
130
- ref: uploadRef,
131
- children: [
132
- /*#__PURE__*/ _jsxs("div", {
133
- className: `${baseClass}__card`,
134
- children: [
135
- /*#__PURE__*/ _jsxs("div", {
136
- className: `${baseClass}__topRow`,
137
- children: [
138
- /*#__PURE__*/ _jsx("div", {
139
- className: `${baseClass}__thumbnail`,
140
- children: thumbnailSRC ? /*#__PURE__*/ _jsx("img", {
141
- alt: data?.filename,
142
- "data-lexical-upload-id": value,
143
- "data-lexical-upload-relation-to": relationTo,
144
- src: thumbnailSRC
145
- }) : /*#__PURE__*/ _jsx(File, {})
146
- }),
147
- /*#__PURE__*/ _jsxs("div", {
148
- className: `${baseClass}__topRowRightPanel`,
149
- children: [
150
- /*#__PURE__*/ _jsx("div", {
151
- className: `${baseClass}__collectionLabel`,
152
- children: getTranslation(relatedCollection.labels.singular, i18n)
153
- }),
154
- editor.isEditable() && /*#__PURE__*/ _jsxs("div", {
155
- className: `${baseClass}__actions`,
156
- children: [
157
- hasExtraFields ? /*#__PURE__*/ _jsx(DrawerToggler, {
158
- className: `${baseClass}__upload-drawer-toggler`,
159
- disabled: field?.readOnly,
160
- slug: drawerSlug,
161
- children: /*#__PURE__*/ _jsx(Button, {
162
- buttonStyle: "icon-label",
163
- el: "div",
164
- icon: "edit",
165
- onClick: (e)=>{
166
- e.preventDefault();
167
- },
168
- round: true,
169
- tooltip: t('fields:editRelationship')
170
- })
171
- }) : null,
172
- /*#__PURE__*/ _jsx(Button, {
173
- buttonStyle: "icon-label",
174
- disabled: field?.readOnly,
175
- el: "div",
176
- icon: "swap",
177
- onClick: ()=>{
178
- editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {
179
- replace: {
180
- nodeKey
181
- }
182
- });
183
- },
184
- round: true,
185
- tooltip: t('fields:swapUpload')
186
- }),
187
- /*#__PURE__*/ _jsx(Button, {
188
- buttonStyle: "icon-label",
189
- className: `${baseClass}__removeButton`,
190
- disabled: field?.readOnly,
191
- icon: "x",
192
- onClick: (e)=>{
193
- e.preventDefault();
194
- removeUpload();
195
- },
196
- round: true,
197
- tooltip: t('fields:removeUpload')
198
- })
199
- ]
200
- })
201
- ]
202
- })
203
- ]
204
- }),
205
- /*#__PURE__*/ _jsx("div", {
206
- className: `${baseClass}__bottomRow`,
207
- children: /*#__PURE__*/ _jsx(DocumentDrawerToggler, {
208
- className: `${baseClass}__doc-drawer-toggler`,
209
- children: /*#__PURE__*/ _jsx("strong", {
210
- children: data?.filename
211
- })
212
- })
213
- })
214
- ]
215
- }),
216
- value && /*#__PURE__*/ _jsx(DocumentDrawer, {
217
- onSave: updateUpload
218
- }),
219
- hasExtraFields ? /*#__PURE__*/ _jsx(FieldsDrawer, {
220
- data: fields,
221
- drawerSlug: drawerSlug,
222
- drawerTitle: t('general:editLabel', {
223
- label: getTranslation(relatedCollection.labels.singular, i18n)
224
- }),
225
- featureKey: "upload",
226
- handleDrawerSubmit: onExtraFieldsDrawerSubmit,
227
- schemaPathSuffix: relatedCollection.slug
228
- }) : null
229
- ]
230
- });
231
- };
232
- export const UploadComponent = (props)=>{
233
- return /*#__PURE__*/ _jsx(EnabledRelationshipsCondition, {
234
- ...props,
235
- uploads: true,
236
- children: /*#__PURE__*/ _jsx(Component, {
237
- ...props
238
- })
239
- });
240
- };
241
-
242
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/features/upload/component/index.tsx"],"sourcesContent":["'use client'\nimport type { ClientCollectionConfig, Data } from 'payload'\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 {\n Button,\n DrawerToggler,\n File,\n useConfig,\n useDocumentDrawer,\n useDrawerSlug,\n useModal,\n usePayloadAPI,\n useTranslation,\n} 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 { ClientComponentProps } from '../../typesClient.js'\nimport type { UploadFeaturePropsClient } from '../feature.client.js'\nimport type { UploadData, UploadNode } from '../nodes/UploadNode.js'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport { FieldsDrawer } from '../../../utilities/fieldsDrawer/Drawer.js'\nimport { EnabledRelationshipsCondition } from '../../relationship/utils/EnabledRelationshipsCondition.js'\nimport { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from '../drawer/commands.js'\nimport { $isUploadNode } from '../nodes/UploadNode.js'\nimport './index.scss'\n\nconst baseClass = 'lexical-upload'\n\nconst initialParams = {\n depth: 0,\n}\n\nexport type ElementProps = {\n data: UploadData\n nodeKey: string\n}\n\nconst Component: React.FC<ElementProps> = (props) => {\n const {\n data: { fields, relationTo, value },\n nodeKey,\n } = props\n\n const {\n collections,\n routes: { api },\n serverURL,\n } = useConfig()\n const uploadRef = useRef<HTMLDivElement | null>(null)\n const { closeModal } = useModal()\n\n const [editor] = useLexicalComposerContext()\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n\n const { editorConfig, field } = useEditorConfigContext()\n\n const { i18n, t } = useTranslation()\n const [cacheBust, dispatchCacheBust] = useReducer((state) => state + 1, 0)\n const [relatedCollection] = useState<ClientCollectionConfig>(() =>\n collections.find((coll) => coll.slug === relationTo),\n )\n\n const drawerSlug = useDrawerSlug('upload-drawer')\n\n const [DocumentDrawer, DocumentDrawerToggler, { closeDrawer }] = useDocumentDrawer({\n id: value,\n collectionSlug: relatedCollection.slug,\n })\n\n // Get the referenced document\n const [{ data }, { setParams }] = usePayloadAPI(\n `${serverURL}${api}/${relatedCollection.slug}/${value}`,\n { initialParams },\n )\n\n const thumbnailSRC = data?.thumbnailURL || data?.url\n\n const removeUpload = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey).remove()\n })\n }, [editor, nodeKey])\n\n const updateUpload = useCallback(\n (data: Data) => {\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 dispatchCacheBust()\n closeDrawer()\n },\n [setParams, cacheBust, closeDrawer],\n )\n\n const $onDelete = useCallback(\n (event: KeyboardEvent) => {\n if (isSelected && $isNodeSelection($getSelection())) {\n event.preventDefault()\n const node = $getNodeByKey(nodeKey)\n if ($isUploadNode(node)) {\n node.remove()\n return true\n }\n }\n return false\n },\n [isSelected, nodeKey],\n )\n const onClick = useCallback(\n (event: MouseEvent) => {\n // Check if uploadRef.target or anything WITHIN uploadRef.target was clicked\n if (event.target === uploadRef.current || uploadRef.current?.contains(event.target as Node)) {\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 const hasExtraFields = (\n editorConfig?.resolvedFeatureMap?.get('upload')\n ?.sanitizedClientFeatureProps as ClientComponentProps<UploadFeaturePropsClient>\n ).collections?.[relatedCollection.slug]?.hasExtraFields\n\n const onExtraFieldsDrawerSubmit = useCallback(\n (_, data) => {\n // Update lexical node (with key nodeKey) with new data\n editor.update(() => {\n const uploadNode: UploadNode | null = $getNodeByKey(nodeKey)\n if (uploadNode) {\n const newData: UploadData = {\n ...uploadNode.getData(),\n fields: data,\n }\n uploadNode.setData(newData)\n }\n })\n\n closeModal(drawerSlug)\n },\n [closeModal, editor, drawerSlug, nodeKey],\n )\n\n return (\n <div\n className={[baseClass, isSelected && `${baseClass}--selected`].filter(Boolean).join(' ')}\n contentEditable={false}\n ref={uploadRef}\n >\n <div className={`${baseClass}__card`}>\n <div className={`${baseClass}__topRow`}>\n {/* TODO: migrate to use @payloadcms/ui/elements/Thumbnail component */}\n <div className={`${baseClass}__thumbnail`}>\n {thumbnailSRC ? (\n <img\n alt={data?.filename}\n data-lexical-upload-id={value}\n data-lexical-upload-relation-to={relationTo}\n src={thumbnailSRC}\n />\n ) : (\n <File />\n )}\n </div>\n <div className={`${baseClass}__topRowRightPanel`}>\n <div className={`${baseClass}__collectionLabel`}>\n {getTranslation(relatedCollection.labels.singular, i18n)}\n </div>\n {editor.isEditable() && (\n <div className={`${baseClass}__actions`}>\n {hasExtraFields ? (\n <DrawerToggler\n className={`${baseClass}__upload-drawer-toggler`}\n disabled={field?.readOnly}\n slug={drawerSlug}\n >\n <Button\n buttonStyle=\"icon-label\"\n el=\"div\"\n icon=\"edit\"\n onClick={(e) => {\n e.preventDefault()\n }}\n round\n tooltip={t('fields:editRelationship')}\n />\n </DrawerToggler>\n ) : null}\n\n <Button\n buttonStyle=\"icon-label\"\n disabled={field?.readOnly}\n el=\"div\"\n icon=\"swap\"\n onClick={() => {\n editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {\n replace: { nodeKey },\n })\n }}\n round\n tooltip={t('fields:swapUpload')}\n />\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeUpload()\n }}\n round\n tooltip={t('fields:removeUpload')}\n />\n </div>\n )}\n </div>\n </div>\n <div className={`${baseClass}__bottomRow`}>\n <DocumentDrawerToggler className={`${baseClass}__doc-drawer-toggler`}>\n <strong>{data?.filename}</strong>\n </DocumentDrawerToggler>\n </div>\n </div>\n {value && <DocumentDrawer onSave={updateUpload} />}\n {hasExtraFields ? (\n <FieldsDrawer\n data={fields}\n drawerSlug={drawerSlug}\n drawerTitle={t('general:editLabel', {\n label: getTranslation(relatedCollection.labels.singular, i18n),\n })}\n featureKey=\"upload\"\n handleDrawerSubmit={onExtraFieldsDrawerSubmit}\n schemaPathSuffix={relatedCollection.slug}\n />\n ) : null}\n </div>\n )\n}\n\nexport const UploadComponent = (props: ElementProps): React.ReactNode => {\n return (\n <EnabledRelationshipsCondition {...props} uploads>\n <Component {...props} />\n </EnabledRelationshipsCondition>\n )\n}\n"],"names":["useLexicalComposerContext","useLexicalNodeSelection","mergeRegister","getTranslation","Button","DrawerToggler","File","useConfig","useDocumentDrawer","useDrawerSlug","useModal","usePayloadAPI","useTranslation","$getNodeByKey","$getSelection","$isNodeSelection","CLICK_COMMAND","COMMAND_PRIORITY_LOW","KEY_BACKSPACE_COMMAND","KEY_DELETE_COMMAND","React","useCallback","useEffect","useReducer","useRef","useState","useEditorConfigContext","FieldsDrawer","EnabledRelationshipsCondition","INSERT_UPLOAD_WITH_DRAWER_COMMAND","$isUploadNode","baseClass","initialParams","depth","Component","props","data","fields","relationTo","value","nodeKey","collections","routes","api","serverURL","uploadRef","closeModal","editor","isSelected","setSelected","clearSelection","editorConfig","field","i18n","t","cacheBust","dispatchCacheBust","state","relatedCollection","find","coll","slug","drawerSlug","DocumentDrawer","DocumentDrawerToggler","closeDrawer","id","collectionSlug","setParams","thumbnailSRC","thumbnailURL","url","removeUpload","update","remove","updateUpload","$onDelete","event","preventDefault","node","onClick","target","current","contains","shiftKey","registerCommand","hasExtraFields","resolvedFeatureMap","get","sanitizedClientFeatureProps","onExtraFieldsDrawerSubmit","_","uploadNode","newData","getData","setData","div","className","filter","Boolean","join","contentEditable","ref","img","alt","filename","data-lexical-upload-id","data-lexical-upload-relation-to","src","labels","singular","isEditable","disabled","readOnly","buttonStyle","el","icon","e","round","tooltip","dispatchCommand","replace","strong","onSave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CACvC,cAAA,KAACiC;4BAAsBiC,WAAW,CAAC,EAAElE,UAAU,oBAAoB,CAAC;sCAClE,cAAA,KAAC2F;0CAAQtF,MAAMqE;;;;;;YAIpBlE,uBAAS,KAACwB;gBAAe4D,QAAQhD;;YACjCW,+BACC,KAAC3D;gBACCS,MAAMC;gBACNyB,YAAYA;gBACZ8D,aAAatE,EAAE,qBAAqB;oBAClCuE,OAAO1H,eAAeuD,kBAAkBmD,MAAM,CAACC,QAAQ,EAAEzD;gBAC3D;gBACAyE,YAAW;gBACXC,oBAAoBrC;gBACpBsC,kBAAkBtE,kBAAkBG,IAAI;iBAExC;;;AAGV;AAEA,OAAO,MAAMoE,kBAAkB,CAAC9F;IAC9B,qBACE,KAACP;QAA+B,GAAGO,KAAK;QAAE+F,OAAO;kBAC/C,cAAA,KAAChG;YAAW,GAAGC,KAAK;;;AAG1B,EAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../src/features/upload/drawer/commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC;IAC7D,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,KAAK,CAAA;CACrC,CAAsD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/features/upload/drawer/commands.ts"],"sourcesContent":["'use client'\nimport type { LexicalCommand } from 'lexical'\n\nimport { createCommand } from 'lexical'\n\nexport const INSERT_UPLOAD_WITH_DRAWER_COMMAND: LexicalCommand<{\n replace: { nodeKey: string } | false\n}> = createCommand('INSERT_UPLOAD_WITH_DRAWER_COMMAND')\n"],"names":["createCommand","INSERT_UPLOAD_WITH_DRAWER_COMMAND"],"mappings":"AAAA;AAGA,SAASA,aAAa,QAAQ,UAAS;AAEvC,OAAO,MAAMC,oCAERD,cAAc,qCAAoC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/upload/drawer/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA0C/D,KAAK,KAAK,GAAG;IACX,sBAAsB,EAAE,MAAM,EAAE,CAAA;CACjC,CAAA;AA0CD,eAAO,MAAM,YAAY,UAAW,KAAK,KAAG,KAAK,CAAC,SAMjD,CAAA"}
@@ -1,77 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js';
4
- import { useListDrawer } from '@payloadcms/ui';
5
- import { $getNodeByKey, COMMAND_PRIORITY_EDITOR } from 'lexical';
6
- import React, { useCallback, useEffect, useState } from 'react';
7
- import { EnabledRelationshipsCondition } from '../../relationship/utils/EnabledRelationshipsCondition.js';
8
- import { $createUploadNode } from '../nodes/UploadNode.js';
9
- import { INSERT_UPLOAD_COMMAND } from '../plugin/index.js';
10
- import { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from './commands.js';
11
- const insertUpload = ({ editor, relationTo, replaceNodeKey, value })=>{
12
- if (!replaceNodeKey) {
13
- editor.dispatchCommand(INSERT_UPLOAD_COMMAND, {
14
- fields: null,
15
- relationTo,
16
- value
17
- });
18
- } else {
19
- editor.update(()=>{
20
- const node = $getNodeByKey(replaceNodeKey);
21
- if (node) {
22
- node.replace($createUploadNode({
23
- data: {
24
- fields: null,
25
- relationTo,
26
- value
27
- }
28
- }));
29
- }
30
- });
31
- }
32
- };
33
- const UploadDrawerComponent = ({ enabledCollectionSlugs })=>{
34
- const [editor] = useLexicalComposerContext();
35
- const [replaceNodeKey, setReplaceNodeKey] = useState(null);
36
- const [ListDrawer, ListDrawerToggler, { closeDrawer, openDrawer }] = useListDrawer({
37
- collectionSlugs: enabledCollectionSlugs,
38
- uploads: true
39
- });
40
- useEffect(()=>{
41
- return editor.registerCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, (payload)=>{
42
- setReplaceNodeKey(payload?.replace ? payload?.replace.nodeKey : null);
43
- openDrawer();
44
- return true;
45
- }, COMMAND_PRIORITY_EDITOR);
46
- }, [
47
- editor,
48
- openDrawer
49
- ]);
50
- const onSelect = useCallback(({ collectionSlug, docID })=>{
51
- insertUpload({
52
- editor,
53
- relationTo: collectionSlug,
54
- replaceNodeKey,
55
- value: docID
56
- });
57
- closeDrawer();
58
- }, [
59
- editor,
60
- closeDrawer,
61
- replaceNodeKey
62
- ]);
63
- return /*#__PURE__*/ _jsx(ListDrawer, {
64
- onSelect: onSelect
65
- });
66
- };
67
- export const UploadDrawer = (props)=>{
68
- return /*#__PURE__*/ _jsx(EnabledRelationshipsCondition, {
69
- ...props,
70
- uploads: true,
71
- children: /*#__PURE__*/ _jsx(UploadDrawerComponent, {
72
- ...props
73
- })
74
- });
75
- };
76
-
77
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/features/upload/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 { EnabledRelationshipsCondition } from '../../relationship/utils/EnabledRelationshipsCondition.js'\nimport { $createUploadNode } from '../nodes/UploadNode.js'\nimport { INSERT_UPLOAD_COMMAND } from '../plugin/index.js'\nimport { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from './commands.js'\n\nconst insertUpload = ({\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_UPLOAD_COMMAND, {\n fields: null,\n relationTo,\n value,\n })\n } else {\n editor.update(() => {\n const node = $getNodeByKey(replaceNodeKey)\n if (node) {\n node.replace(\n $createUploadNode({\n data: {\n fields: null,\n relationTo,\n value,\n },\n }),\n )\n }\n })\n }\n}\n\ntype Props = {\n enabledCollectionSlugs: string[]\n}\n\nconst UploadDrawerComponent: React.FC<Props> = ({ enabledCollectionSlugs }) => {\n const [editor] = useLexicalComposerContext()\n\n const [replaceNodeKey, setReplaceNodeKey] = useState<null | string>(null)\n\n const [ListDrawer, ListDrawerToggler, { closeDrawer, openDrawer }] = useListDrawer({\n collectionSlugs: enabledCollectionSlugs,\n uploads: true,\n })\n\n useEffect(() => {\n return editor.registerCommand<{\n replace: { nodeKey: string } | false\n }>(\n INSERT_UPLOAD_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 insertUpload({\n editor,\n relationTo: collectionSlug,\n replaceNodeKey,\n value: docID,\n })\n closeDrawer()\n },\n [editor, closeDrawer, replaceNodeKey],\n )\n\n return <ListDrawer onSelect={onSelect} />\n}\n\nexport const UploadDrawer = (props: Props): React.ReactNode => {\n return (\n <EnabledRelationshipsCondition {...props} uploads>\n <UploadDrawerComponent {...props} />\n </EnabledRelationshipsCondition>\n )\n}\n"],"names":["useLexicalComposerContext","useListDrawer","$getNodeByKey","COMMAND_PRIORITY_EDITOR","React","useCallback","useEffect","useState","EnabledRelationshipsCondition","$createUploadNode","INSERT_UPLOAD_COMMAND","INSERT_UPLOAD_WITH_DRAWER_COMMAND","insertUpload","editor","relationTo","replaceNodeKey","value","dispatchCommand","fields","update","node","replace","data","UploadDrawerComponent","enabledCollectionSlugs","setReplaceNodeKey","ListDrawer","ListDrawerToggler","closeDrawer","openDrawer","collectionSlugs","uploads","registerCommand","payload","nodeKey","onSelect","collectionSlug","docID","UploadDrawer","props"],"mappings":"AAAA;;AAGA,SAAS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AYsB;YACZrB;YACAC,OAAOqB;QACT;QACAT;IACF,GACA;QAACf;QAAQe;QAAab;KAAe;IAGvC,qBAAO,KAACW;QAAWS,UAAUA;;AAC/B;AAEA,OAAO,MAAMG,eAAe,CAACC;IAC3B,qBACE,KAAC/B;QAA+B,GAAG+B,KAAK;QAAER,OAAO;kBAC/C,cAAA,KAACR;YAAuB,GAAGgB,KAAK;;;AAGtC,EAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../src/features/upload/feature.client.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE;QACX,CAAC,UAAU,EAAE,MAAM,GAAG;YACpB,cAAc,EAAE,OAAO,CAAA;SACxB,CAAA;KACF,CAAA;CACF,CAAA;AAED,eAAO,MAAM,mBAAmB;;;6BAqD9B,CAAA"}
@@ -1,74 +0,0 @@
1
- 'use client';
2
- import { $isNodeSelection } from 'lexical';
3
- import { UploadIcon } from '../../lexical/ui/icons/Upload/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_UPLOAD_WITH_DRAWER_COMMAND } from './drawer/commands.js';
8
- import { $isUploadNode, UploadNode } from './nodes/UploadNode.js';
9
- import { UploadPlugin } from './plugin/index.js';
10
- export const UploadFeatureClient = createClientFeature({
11
- nodes: [
12
- UploadNode
13
- ],
14
- plugins: [
15
- {
16
- Component: UploadPlugin,
17
- position: 'normal'
18
- }
19
- ],
20
- slashMenu: {
21
- groups: [
22
- slashMenuBasicGroupWithItems([
23
- {
24
- Icon: UploadIcon,
25
- key: 'upload',
26
- keywords: [
27
- 'upload',
28
- 'image',
29
- 'file',
30
- 'img',
31
- 'picture',
32
- 'photo',
33
- 'media'
34
- ],
35
- label: ({ i18n })=>{
36
- return i18n.t('lexical:upload:label');
37
- },
38
- onSelect: ({ editor })=>{
39
- editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {
40
- replace: false
41
- });
42
- }
43
- }
44
- ])
45
- ]
46
- },
47
- toolbarFixed: {
48
- groups: [
49
- toolbarAddDropdownGroupWithItems([
50
- {
51
- ChildComponent: UploadIcon,
52
- isActive: ({ selection })=>{
53
- if (!$isNodeSelection(selection) || !selection.getNodes().length) {
54
- return false;
55
- }
56
- const firstNode = selection.getNodes()[0];
57
- return $isUploadNode(firstNode);
58
- },
59
- key: 'upload',
60
- label: ({ i18n })=>{
61
- return i18n.t('lexical:upload:label');
62
- },
63
- onSelect: ({ editor })=>{
64
- editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {
65
- replace: false
66
- });
67
- }
68
- }
69
- ])
70
- ]
71
- }
72
- });
73
-
74
- //# sourceMappingURL=feature.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/features/upload/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport { $isNodeSelection } from 'lexical'\n\nimport { UploadIcon } from '../../lexical/ui/icons/Upload/index.js'\nimport { createClientFeature } from '../../utilities/createClientFeature.js'\nimport { slashMenuBasicGroupWithItems } from '../shared/slashMenu/basicGroup.js'\nimport { toolbarAddDropdownGroupWithItems } from '../shared/toolbar/addDropdownGroup.js'\nimport { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from './drawer/commands.js'\nimport { $isUploadNode, UploadNode } from './nodes/UploadNode.js'\nimport { UploadPlugin } from './plugin/index.js'\n\nexport type UploadFeaturePropsClient = {\n collections: {\n [collection: string]: {\n hasExtraFields: boolean\n }\n }\n}\n\nexport const UploadFeatureClient = createClientFeature<UploadFeaturePropsClient>({\n nodes: [UploadNode],\n plugins: [\n {\n Component: UploadPlugin,\n position: 'normal',\n },\n ],\n slashMenu: {\n groups: [\n slashMenuBasicGroupWithItems([\n {\n Icon: UploadIcon,\n key: 'upload',\n keywords: ['upload', 'image', 'file', 'img', 'picture', 'photo', 'media'],\n label: ({ i18n }) => {\n return i18n.t('lexical:upload:label')\n },\n onSelect: ({ editor }) => {\n editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {\n replace: false,\n })\n },\n },\n ]),\n ],\n },\n toolbarFixed: {\n groups: [\n toolbarAddDropdownGroupWithItems([\n {\n ChildComponent: UploadIcon,\n isActive: ({ selection }) => {\n if (!$isNodeSelection(selection) || !selection.getNodes().length) {\n return false\n }\n\n const firstNode = selection.getNodes()[0]\n return $isUploadNode(firstNode)\n },\n key: 'upload',\n label: ({ i18n }) => {\n return i18n.t('lexical:upload:label')\n },\n onSelect: ({ editor }) => {\n editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {\n replace: false,\n })\n },\n },\n ]),\n ],\n },\n})\n"],"names":["$isNodeSelection","UploadIcon","createClientFeature","slashMenuBasicGroupWithItems","toolbarAddDropdownGroupWithItems","INSERT_UPLOAD_WITH_DRAWER_COMMAND","$isUploadNode","UploadNode","UploadPlugin","UploadFeatureClient","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;AAE1C,SAASC,UAAU,QAAQ,yCAAwC;AACnE,SAASC,mBAAmB,QAAQ,yCAAwC;AAC5E,SAASC,4BAA4B,QAAQ,oCAAmC;AAChF,SAASC,gCAAgC,QAAQ,wCAAuC;AACxF,SAASC,iCAAiC,QAAQ,uBAAsB;AACxE,SAASC,aAAa,EAAEC,UAAU,QAAQ,wBAAuB;AACjE,SAASC,YAAY,QAAQ,oBAAmB;AAUhD,OAAO,MAAMC,sBAAsBP,oBAA8C;IAC/EQ,OAAO;QAACH;KAAW;IACnBI,SAAS;QACP;YACEC,WAAWJ;YACXK,UAAU;QACZ;KACD;IACDC,WAAW;QACTC,QAAQ;YACNZ,6BAA6B;gBAC3B;oBACEa,MAAMf;oBACNgB,KAAK;oBACLC,UAAU;wBAAC;wBAAU;wBAAS;wBAAQ;wBAAO;wBAAW;wBAAS;qBAAQ;oBACzEC,OAAO,CAAC,EAAEC,IAAI,EAAE;wBACd,OAAOA,KAAKC,CAAC,CAAC;oBAChB;oBACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;wBACnBA,OAAOC,eAAe,CAACnB,mCAAmC;4BACxDoB,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,cAAc0B;oBACvB;oBACAf,KAAK;oBACLE,OAAO,CAAC,EAAEC,IAAI,EAAE;wBACd,OAAOA,KAAKC,CAAC,CAAC;oBAChB;oBACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;wBACnBA,OAAOC,eAAe,CAACnB,mCAAmC;4BACxDoB,SAAS;wBACX;oBACF;gBACF;aACD;SACF;IACH;AACF,GAAE"}
@@ -1,18 +0,0 @@
1
- import type { CollectionSlug, Field } from 'payload';
2
- import type { UploadFeaturePropsClient } from './feature.client.js';
3
- export type UploadFeatureProps = {
4
- collections?: {
5
- [collection: CollectionSlug]: {
6
- fields: Field[];
7
- };
8
- };
9
- /**
10
- * Sets a maximum population depth for this upload (not the fields for this upload), regardless of the remaining depth when the respective field is reached.
11
- * This behaves exactly like the maxDepth properties of relationship and upload fields.
12
- *
13
- * {@link https://payloadcms.com/docs/getting-started/concepts#field-level-max-depth}
14
- */
15
- maxDepth?: number;
16
- };
17
- export declare const UploadFeature: import("../typesServer.js").FeatureProviderProviderServer<UploadFeatureProps, UploadFeatureProps, UploadFeaturePropsClient>;
18
- //# sourceMappingURL=feature.server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../src/features/upload/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,KAAK,EAKN,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAYnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,CAAC,EAAE;QACZ,CAAC,UAAU,EAAE,cAAc,GAAG;YAC5B,MAAM,EAAE,KAAK,EAAE,CAAA;SAChB,CAAA;KACF,CAAA;IACD;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AASD,eAAO,MAAM,aAAa,6HAyNxB,CAAA"}