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

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-BYB3WX7J.js +2 -0
  6. package/dist/exports/client/Field-BYB3WX7J.js.map +7 -0
  7. package/dist/exports/client/RelationshipComponent-GYUTPDNG.js +2 -0
  8. package/dist/exports/client/RelationshipComponent-GYUTPDNG.js.map +7 -0
  9. package/dist/exports/client/bundled.css +1 -1
  10. package/dist/exports/client/chunk-4EX7W4UX.js +2 -0
  11. package/dist/exports/client/chunk-4EX7W4UX.js.map +7 -0
  12. package/dist/exports/client/chunk-E4HH5PS6.js +2 -0
  13. package/dist/exports/client/chunk-E4HH5PS6.js.map +7 -0
  14. package/dist/exports/client/chunk-LTR7V74A.js +2 -0
  15. package/dist/exports/client/chunk-LTR7V74A.js.map +7 -0
  16. package/dist/exports/client/chunk-SQHN3N6E.js +2 -0
  17. package/dist/exports/client/chunk-SQHN3N6E.js.map +7 -0
  18. package/dist/exports/client/chunk-VMCQSR3T.js +3 -0
  19. package/dist/exports/client/chunk-VMCQSR3T.js.map +7 -0
  20. package/dist/exports/client/component-6C5JERGA.js +2 -0
  21. package/dist/exports/client/component-6C5JERGA.js.map +7 -0
  22. package/dist/exports/client/component-GUWIGB77.js +2 -0
  23. package/dist/exports/client/component-GUWIGB77.js.map +7 -0
  24. package/dist/exports/client/component-UQ2BKD5X.js +2 -0
  25. package/dist/exports/client/component-UQ2BKD5X.js.map +7 -0
  26. package/dist/exports/client/componentInline-C2XIK5VZ.js +2 -0
  27. package/dist/exports/client/componentInline-C2XIK5VZ.js.map +7 -0
  28. package/dist/exports/client/index.d.ts +21 -22
  29. package/dist/exports/client/index.d.ts.map +1 -1
  30. package/dist/exports/client/index.js +12 -12
  31. package/dist/exports/client/index.js.map +4 -4
  32. package/dist/exports/server/migrate.d.ts +16 -0
  33. package/dist/exports/server/migrate.d.ts.map +1 -0
  34. package/dist/exports/server/migrate.js +17 -0
  35. package/dist/exports/server/migrate.js.map +1 -0
  36. package/dist/features/align/client/index.d.ts +5 -0
  37. package/dist/features/align/client/index.d.ts.map +1 -0
  38. package/dist/features/align/client/index.js +146 -0
  39. package/dist/features/align/client/index.js.map +1 -0
  40. package/dist/features/align/client/toolbarAlignGroup.d.ts +3 -0
  41. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -0
  42. package/dist/features/align/client/toolbarAlignGroup.js +12 -0
  43. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -0
  44. package/dist/features/align/server/i18n.d.ts.map +1 -0
  45. package/dist/features/align/server/i18n.js.map +1 -0
  46. package/dist/features/align/server/index.d.ts +2 -0
  47. package/dist/features/align/server/index.d.ts.map +1 -0
  48. package/dist/features/align/server/index.js +11 -0
  49. package/dist/features/align/server/index.js.map +1 -0
  50. package/dist/features/blockquote/client/index.d.ts +5 -0
  51. package/dist/features/blockquote/client/index.d.ts.map +1 -0
  52. package/dist/features/blockquote/client/index.js +77 -0
  53. package/dist/features/blockquote/client/index.js.map +1 -0
  54. package/dist/features/blockquote/server/i18n.d.ts.map +1 -0
  55. package/dist/features/blockquote/server/i18n.js.map +1 -0
  56. package/dist/features/blockquote/server/index.d.ts +7 -0
  57. package/dist/features/blockquote/server/index.d.ts.map +1 -0
  58. package/dist/features/blockquote/server/index.js +46 -0
  59. package/dist/features/blockquote/server/index.js.map +1 -0
  60. package/dist/features/blocks/client/component/BlockContent.d.ts +22 -0
  61. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -0
  62. package/dist/features/blocks/client/component/BlockContent.js +198 -0
  63. package/dist/features/blocks/client/component/BlockContent.js.map +1 -0
  64. package/dist/features/blocks/client/component/FormSavePlugin.d.ts.map +1 -0
  65. package/dist/features/blocks/client/component/FormSavePlugin.js.map +1 -0
  66. package/dist/features/blocks/client/component/index.d.ts +11 -0
  67. package/dist/features/blocks/client/component/index.d.ts.map +1 -0
  68. package/dist/features/blocks/client/component/index.js +157 -0
  69. package/dist/features/blocks/client/component/index.js.map +1 -0
  70. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -0
  71. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -0
  72. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -0
  73. package/dist/features/blocks/client/componentInline/index.js +138 -0
  74. package/dist/features/blocks/client/componentInline/index.js.map +1 -0
  75. package/dist/features/blocks/client/index.d.ts +9 -0
  76. package/dist/features/blocks/client/index.d.ts.map +1 -0
  77. package/dist/features/blocks/client/index.js +152 -0
  78. package/dist/features/blocks/client/index.js.map +1 -0
  79. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +14 -0
  80. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -0
  81. package/dist/features/blocks/client/nodes/BlocksNode.js +52 -0
  82. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -0
  83. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +25 -0
  84. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -0
  85. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +41 -0
  86. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -0
  87. package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -0
  88. package/dist/features/blocks/client/plugin/commands.js.map +1 -0
  89. package/dist/features/blocks/client/plugin/index.d.ts +6 -0
  90. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -0
  91. package/dist/features/blocks/client/plugin/index.js +129 -0
  92. package/dist/features/blocks/client/plugin/index.js.map +1 -0
  93. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +6 -0
  94. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -0
  95. package/dist/features/blocks/server/graphQLPopulationPromise.js +31 -0
  96. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -0
  97. package/dist/features/blocks/server/i18n.d.ts.map +1 -0
  98. package/dist/features/blocks/server/i18n.js.map +1 -0
  99. package/dist/features/blocks/server/index.d.ts +8 -0
  100. package/dist/features/blocks/server/index.d.ts.map +1 -0
  101. package/dist/features/blocks/server/index.js +162 -0
  102. package/dist/features/blocks/server/index.js.map +1 -0
  103. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +38 -0
  104. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -0
  105. package/dist/features/blocks/server/nodes/BlocksNode.js +84 -0
  106. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -0
  107. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +40 -0
  108. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -0
  109. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +86 -0
  110. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -0
  111. package/dist/features/blocks/server/validate.d.ts +6 -0
  112. package/dist/features/blocks/server/validate.d.ts.map +1 -0
  113. package/dist/features/blocks/server/validate.js.map +1 -0
  114. package/dist/features/converters/html/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
@@ -0,0 +1,319 @@
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 { mergeRegister } from '@lexical/utils';
5
+ import { $getSelection, $isRangeSelection, $isTextNode, COMMAND_PRIORITY_LOW, SELECTION_CHANGE_COMMAND } from 'lexical';
6
+ import { useCallback, useEffect, useRef, useState } from 'react';
7
+ import * as React from 'react';
8
+ import { createPortal } from 'react-dom';
9
+ import { useEditorConfigContext } from '../../../../../lexical/config/client/EditorConfigProvider.js';
10
+ import { getDOMRangeRect } from '../../../../../lexical/utils/getDOMRangeRect.js';
11
+ import { setFloatingElemPosition } from '../../../../../lexical/utils/setFloatingElemPosition.js';
12
+ import { ToolbarButton } from '../../../shared/ToolbarButton/index.js';
13
+ import { ToolbarDropdown } from '../../../shared/ToolbarDropdown/index.js';
14
+ function ButtonGroupItem({ anchorElem, editor, item }) {
15
+ if (item.Component) {
16
+ return item?.Component && /*#__PURE__*/ _jsx(item.Component, {
17
+ anchorElem: anchorElem,
18
+ editor: editor,
19
+ item: item
20
+ }, item.key);
21
+ }
22
+ return /*#__PURE__*/ _jsx(ToolbarButton, {
23
+ editor: editor,
24
+ item: item,
25
+ children: item?.ChildComponent && /*#__PURE__*/ _jsx(item.ChildComponent, {})
26
+ }, item.key);
27
+ }
28
+ function ToolbarGroupComponent({ anchorElem, editor, group, index }) {
29
+ const { editorConfig } = useEditorConfigContext();
30
+ const [DropdownIcon, setDropdownIcon] = React.useState(null);
31
+ React.useEffect(()=>{
32
+ if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {
33
+ setDropdownIcon(()=>group.ChildComponent);
34
+ } else {
35
+ setDropdownIcon(null);
36
+ }
37
+ }, [
38
+ group
39
+ ]);
40
+ const onActiveChange = ({ activeItems })=>{
41
+ if (!activeItems.length) {
42
+ if (group?.type === 'dropdown' && group.items.length && group.ChildComponent) {
43
+ setDropdownIcon(()=>group.ChildComponent);
44
+ } else {
45
+ setDropdownIcon(null);
46
+ }
47
+ return;
48
+ }
49
+ const item = activeItems[0];
50
+ setDropdownIcon(()=>item.ChildComponent);
51
+ };
52
+ return /*#__PURE__*/ _jsxs("div", {
53
+ className: `inline-toolbar-popup__group inline-toolbar-popup__group-${group.key}`,
54
+ children: [
55
+ group.type === 'dropdown' && group.items.length && (DropdownIcon ? /*#__PURE__*/ _jsx(ToolbarDropdown, {
56
+ Icon: DropdownIcon,
57
+ anchorElem: anchorElem,
58
+ editor: editor,
59
+ groupKey: group.key,
60
+ items: group.items,
61
+ maxActiveItems: 1,
62
+ onActiveChange: onActiveChange
63
+ }) : /*#__PURE__*/ _jsx(ToolbarDropdown, {
64
+ anchorElem: anchorElem,
65
+ editor: editor,
66
+ groupKey: group.key,
67
+ items: group.items,
68
+ maxActiveItems: 1,
69
+ onActiveChange: onActiveChange
70
+ })),
71
+ group.type === 'buttons' && group.items.length && group.items.map((item)=>{
72
+ return /*#__PURE__*/ _jsx(ButtonGroupItem, {
73
+ anchorElem: anchorElem,
74
+ editor: editor,
75
+ item: item
76
+ }, item.key);
77
+ }),
78
+ index < editorConfig.features.toolbarInline?.groups.length - 1 && /*#__PURE__*/ _jsx("div", {
79
+ className: "divider"
80
+ })
81
+ ]
82
+ }, group.key);
83
+ }
84
+ function InlineToolbar({ anchorElem, editor }) {
85
+ const floatingToolbarRef = useRef(null);
86
+ const caretRef = useRef(null);
87
+ const { editorConfig } = useEditorConfigContext();
88
+ const closeFloatingToolbar = useCallback(()=>{
89
+ if (floatingToolbarRef?.current) {
90
+ const isOpacityZero = floatingToolbarRef.current.style.opacity === '0';
91
+ const isPointerEventsNone = floatingToolbarRef.current.style.pointerEvents === 'none';
92
+ if (!isOpacityZero) {
93
+ floatingToolbarRef.current.style.opacity = '0';
94
+ }
95
+ if (!isPointerEventsNone) {
96
+ floatingToolbarRef.current.style.pointerEvents = 'none';
97
+ }
98
+ }
99
+ }, [
100
+ floatingToolbarRef
101
+ ]);
102
+ const mouseMoveListener = useCallback((e)=>{
103
+ if (floatingToolbarRef?.current && (e.buttons === 1 || e.buttons === 3)) {
104
+ const isOpacityZero = floatingToolbarRef.current.style.opacity === '0';
105
+ const isPointerEventsNone = floatingToolbarRef.current.style.pointerEvents === 'none';
106
+ if (!isOpacityZero || !isPointerEventsNone) {
107
+ // Check if the mouse is not over the popup
108
+ const x = e.clientX;
109
+ const y = e.clientY;
110
+ const elementUnderMouse = document.elementFromPoint(x, y);
111
+ if (!floatingToolbarRef.current.contains(elementUnderMouse)) {
112
+ // Mouse is not over the target element => not a normal click, but probably a drag
113
+ closeFloatingToolbar();
114
+ }
115
+ }
116
+ }
117
+ }, [
118
+ closeFloatingToolbar
119
+ ]);
120
+ const mouseUpListener = useCallback(()=>{
121
+ if (floatingToolbarRef?.current) {
122
+ if (floatingToolbarRef.current.style.opacity !== '1') {
123
+ floatingToolbarRef.current.style.opacity = '1';
124
+ }
125
+ if (floatingToolbarRef.current.style.pointerEvents !== 'auto') {
126
+ floatingToolbarRef.current.style.pointerEvents = 'auto';
127
+ }
128
+ }
129
+ }, []);
130
+ useEffect(()=>{
131
+ document.addEventListener('mousemove', mouseMoveListener);
132
+ document.addEventListener('mouseup', mouseUpListener);
133
+ return ()=>{
134
+ document.removeEventListener('mousemove', mouseMoveListener);
135
+ document.removeEventListener('mouseup', mouseUpListener);
136
+ };
137
+ }, [
138
+ floatingToolbarRef,
139
+ mouseMoveListener,
140
+ mouseUpListener
141
+ ]);
142
+ const $updateTextFormatFloatingToolbar = useCallback(()=>{
143
+ const selection = $getSelection();
144
+ const nativeSelection = window.getSelection();
145
+ if (floatingToolbarRef.current === null) {
146
+ return;
147
+ }
148
+ const possibleLinkEditor = anchorElem.querySelector(':scope > .link-editor');
149
+ const isLinkEditorVisible = possibleLinkEditor !== null && 'style' in possibleLinkEditor && possibleLinkEditor?.style?.['opacity'] === '1';
150
+ const rootElement = editor.getRootElement();
151
+ if (selection !== null && nativeSelection !== null && !nativeSelection.isCollapsed && rootElement !== null && rootElement.contains(nativeSelection.anchorNode)) {
152
+ const rangeRect = getDOMRangeRect(nativeSelection, rootElement);
153
+ // Position floating toolbar
154
+ const offsetIfFlipped = setFloatingElemPosition({
155
+ alwaysDisplayOnTop: isLinkEditorVisible,
156
+ anchorElem,
157
+ floatingElem: floatingToolbarRef.current,
158
+ horizontalPosition: 'center',
159
+ targetRect: rangeRect
160
+ });
161
+ // Position caret
162
+ if (caretRef.current) {
163
+ setFloatingElemPosition({
164
+ anchorElem: floatingToolbarRef.current,
165
+ anchorFlippedOffset: offsetIfFlipped,
166
+ floatingElem: caretRef.current,
167
+ horizontalOffset: 5,
168
+ horizontalPosition: 'center',
169
+ specialHandlingForCaret: true,
170
+ targetRect: rangeRect,
171
+ verticalGap: 10
172
+ });
173
+ }
174
+ } else {
175
+ closeFloatingToolbar();
176
+ }
177
+ }, [
178
+ editor,
179
+ closeFloatingToolbar,
180
+ anchorElem
181
+ ]);
182
+ useEffect(()=>{
183
+ const scrollerElem = anchorElem.parentElement;
184
+ const update = ()=>{
185
+ editor.getEditorState().read(()=>{
186
+ $updateTextFormatFloatingToolbar();
187
+ });
188
+ };
189
+ window.addEventListener('resize', update);
190
+ if (scrollerElem) {
191
+ scrollerElem.addEventListener('scroll', update);
192
+ }
193
+ return ()=>{
194
+ window.removeEventListener('resize', update);
195
+ if (scrollerElem) {
196
+ scrollerElem.removeEventListener('scroll', update);
197
+ }
198
+ };
199
+ }, [
200
+ editor,
201
+ $updateTextFormatFloatingToolbar,
202
+ anchorElem
203
+ ]);
204
+ useEffect(()=>{
205
+ editor.getEditorState().read(()=>{
206
+ $updateTextFormatFloatingToolbar();
207
+ });
208
+ return mergeRegister(editor.registerUpdateListener(({ editorState })=>{
209
+ editorState.read(()=>{
210
+ $updateTextFormatFloatingToolbar();
211
+ });
212
+ }), editor.registerCommand(SELECTION_CHANGE_COMMAND, ()=>{
213
+ $updateTextFormatFloatingToolbar();
214
+ return false;
215
+ }, COMMAND_PRIORITY_LOW));
216
+ }, [
217
+ editor,
218
+ $updateTextFormatFloatingToolbar
219
+ ]);
220
+ return /*#__PURE__*/ _jsxs("div", {
221
+ className: "inline-toolbar-popup",
222
+ ref: floatingToolbarRef,
223
+ children: [
224
+ /*#__PURE__*/ _jsx("div", {
225
+ className: "caret",
226
+ ref: caretRef
227
+ }),
228
+ editor.isEditable() && /*#__PURE__*/ _jsx(React.Fragment, {
229
+ children: editorConfig?.features && editorConfig.features?.toolbarInline?.groups.map((group, i)=>{
230
+ return /*#__PURE__*/ _jsx(ToolbarGroupComponent, {
231
+ anchorElem: anchorElem,
232
+ editor: editor,
233
+ group: group,
234
+ index: i
235
+ }, group.key);
236
+ })
237
+ })
238
+ ]
239
+ });
240
+ }
241
+ function useInlineToolbar(editor, anchorElem) {
242
+ const [isText, setIsText] = useState(false);
243
+ const updatePopup = useCallback(()=>{
244
+ editor.getEditorState().read(()=>{
245
+ // Should not to pop up the floating toolbar when using IME input
246
+ if (editor.isComposing()) {
247
+ return;
248
+ }
249
+ const selection = $getSelection();
250
+ const nativeSelection = window.getSelection();
251
+ const rootElement = editor.getRootElement();
252
+ if (nativeSelection !== null && (!$isRangeSelection(selection) || rootElement === null || !rootElement.contains(nativeSelection.anchorNode))) {
253
+ setIsText(false);
254
+ return;
255
+ }
256
+ if (!$isRangeSelection(selection)) {
257
+ return;
258
+ }
259
+ if (selection.getTextContent() !== '') {
260
+ const nodes = selection.getNodes();
261
+ let foundNodeWithText = false;
262
+ for (const node of nodes){
263
+ if ($isTextNode(node)) {
264
+ setIsText(true);
265
+ foundNodeWithText = true;
266
+ break;
267
+ }
268
+ }
269
+ if (!foundNodeWithText) {
270
+ setIsText(false);
271
+ }
272
+ } else {
273
+ setIsText(false);
274
+ }
275
+ const rawTextContent = selection.getTextContent().replace(/\n/g, '');
276
+ if (!selection.isCollapsed() && rawTextContent === '') {
277
+ setIsText(false);
278
+ return;
279
+ }
280
+ });
281
+ }, [
282
+ editor
283
+ ]);
284
+ useEffect(()=>{
285
+ document.addEventListener('selectionchange', updatePopup);
286
+ document.addEventListener('mouseup', updatePopup);
287
+ return ()=>{
288
+ document.removeEventListener('selectionchange', updatePopup);
289
+ document.removeEventListener('mouseup', updatePopup);
290
+ };
291
+ }, [
292
+ updatePopup
293
+ ]);
294
+ useEffect(()=>{
295
+ return mergeRegister(editor.registerUpdateListener(()=>{
296
+ updatePopup();
297
+ }), editor.registerRootListener(()=>{
298
+ if (editor.getRootElement() === null) {
299
+ setIsText(false);
300
+ }
301
+ }));
302
+ }, [
303
+ editor,
304
+ updatePopup
305
+ ]);
306
+ if (!isText) {
307
+ return null;
308
+ }
309
+ return /*#__PURE__*/ createPortal(/*#__PURE__*/ _jsx(InlineToolbar, {
310
+ anchorElem: anchorElem,
311
+ editor: editor
312
+ }), anchorElem);
313
+ }
314
+ export const InlineToolbarPlugin = ({ anchorElem })=>{
315
+ const [editor] = useLexicalComposerContext();
316
+ return useInlineToolbar(editor, anchorElem);
317
+ };
318
+
319
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/features/toolbars/inline/client/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,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AEjB,OAAOuG,iBAAiBnF,QAAQD;AAClC,EAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const InlineToolbarFeatureClient: import("react").FC<{
2
+ featureKey: string;
3
+ order: number;
4
+ }>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/toolbars/inline/client/index.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B;;;EAOrC,CAAA"}
@@ -0,0 +1,13 @@
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=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/toolbars/inline/client/index.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,+CAA8C;AAClF,SAASC,mBAAmB,QAAQ,qBAAoB;AAExD,OAAO,MAAMC,6BAA6BF,oBAAoB;IAC5DG,SAAS;QACP;YACEC,WAAWH;YACXI,UAAU;QACZ;KACD;AACH,GAAE"}
@@ -0,0 +1,2 @@
1
+ export declare const InlineToolbarFeature: import("../../../typesServer.js").FeatureProviderProviderServer<undefined, undefined, undefined>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/toolbars/inline/server/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,kGAK/B,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { createServerFeature } from '../../../../utilities/createServerFeature.js';
2
+ export const InlineToolbarFeature = createServerFeature({
3
+ feature: {
4
+ ClientFeature: '@payloadcms/richtext-lexical/client#InlineToolbarFeatureClient'
5
+ },
6
+ key: 'toolbarInline'
7
+ });
8
+
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/features/toolbars/inline/server/index.ts"],"sourcesContent":["import { createServerFeature } from '../../../../utilities/createServerFeature.js'\n\nexport const InlineToolbarFeature = createServerFeature({\n feature: {\n ClientFeature: '@payloadcms/richtext-lexical/client#InlineToolbarFeatureClient',\n },\n key: 'toolbarInline',\n})\n"],"names":["createServerFeature","InlineToolbarFeature","feature","ClientFeature","key"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,+CAA8C;AAElF,OAAO,MAAMC,uBAAuBD,oBAAoB;IACtDE,SAAS;QACPC,eAAe;IACjB;IACAC,KAAK;AACP,GAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/toolbars/shared/ToolbarDropdown/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD,OAAO,cAAc,CAAA;AAiDrB,eAAO,MAAM,eAAe,gIAWzB;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAA;IACf,UAAU,EAAE,WAAW,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE;QAAE,WAAW,EAAE,gBAAgB,EAAE,CAAA;KAAE,KAAK,IAAI,CAAA;CAChF,4CAoFA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/toolbars/shared/ToolbarDropdown/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD,OAAO,cAAc,CAAA;AAqDrB,eAAO,MAAM,eAAe,gIAWzB;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAA;IACf,UAAU,EAAE,WAAW,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE;QAAE,WAAW,EAAE,gBAAgB,EAAE,CAAA;KAAE,KAAK,IAAI,CAAA;CAChF,4CAoFA,CAAA"}
@@ -9,6 +9,7 @@ import { useEditorConfigContext } from '../../../../lexical/config/client/Editor
9
9
  import { DropDown, DropDownItem } from './DropDown.js';
10
10
  const ToolbarItem = ({ active, anchorElem, editor, enabled, item })=>{
11
11
  const { i18n } = useTranslation();
12
+ const { field: { richTextComponentMap } } = useEditorConfigContext();
12
13
  if (item.Component) {
13
14
  return item?.Component && /*#__PURE__*/ _jsx(item.Component, {
14
15
  active: active,
@@ -21,7 +22,8 @@ const ToolbarItem = ({ active, anchorElem, editor, enabled, item })=>{
21
22
  let title = item.key;
22
23
  if (item.label) {
23
24
  title = typeof item.label === 'function' ? item.label({
24
- i18n
25
+ i18n,
26
+ richTextComponentMap
25
27
  }) : item.label;
26
28
  }
27
29
  // Crop title to max. 25 characters
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/features/toolbars/shared/ToolbarDropdown/index.tsx"],"sourcesContent":["'use client'\nimport React, { useCallback, useEffect } from 'react'\n\nconst baseClass = 'toolbar-popup__dropdown'\n\nimport type { LexicalEditor } from 'lexical'\n\nimport { mergeRegister } from '@lexical/utils'\nimport { useTranslation } from '@payloadcms/ui'\nimport { $getSelection } from 'lexical'\n\nimport type { ToolbarGroupItem } from '../../types.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { DropDown, DropDownItem } from './DropDown.js'\nimport './index.scss'\n\nconst ToolbarItem = ({\n active,\n anchorElem,\n editor,\n enabled,\n item,\n}: {\n active?: boolean\n anchorElem: HTMLElement\n editor: LexicalEditor\n enabled?: boolean\n item: ToolbarGroupItem\n}) => {\n const { i18n } = useTranslation()\n\n if (item.Component) {\n return (\n item?.Component && (\n <item.Component\n active={active}\n anchorElem={anchorElem}\n editor={editor}\n enabled={enabled}\n item={item}\n key={item.key}\n />\n )\n )\n }\n\n let title = item.key\n if (item.label) {\n title = typeof item.label === 'function' ? item.label({ i18n }) : item.label\n }\n // Crop title to max. 25 characters\n if (title.length > 25) {\n title = title.substring(0, 25) + '...'\n }\n\n return (\n <DropDownItem active={active} editor={editor} enabled={enabled} item={item} key={item.key}>\n {item?.ChildComponent && <item.ChildComponent />}\n <span className=\"text\">{title}</span>\n </DropDownItem>\n )\n}\n\nexport const ToolbarDropdown = ({\n Icon,\n anchorElem,\n classNames,\n editor,\n groupKey,\n items,\n itemsContainerClassNames,\n label,\n maxActiveItems,\n onActiveChange,\n}: {\n Icon?: React.FC\n anchorElem: HTMLElement\n classNames?: string[]\n editor: LexicalEditor\n groupKey: string\n items: ToolbarGroupItem[]\n itemsContainerClassNames?: string[]\n label?: string\n /**\n * Maximum number of active items allowed. This is a performance optimization to prevent\n * unnecessary item active checks when the maximum number of active items is reached.\n */\n maxActiveItems?: number\n onActiveChange?: ({ activeItems }: { activeItems: ToolbarGroupItem[] }) => void\n}) => {\n const [activeItemKeys, setActiveItemKeys] = React.useState<string[]>([])\n const [enabledItemKeys, setEnabledItemKeys] = React.useState<string[]>([])\n const editorConfigContext = useEditorConfigContext()\n\n const updateStates = useCallback(() => {\n editor.getEditorState().read(() => {\n const selection = $getSelection()\n\n const _activeItemKeys: string[] = []\n const _activeItems: ToolbarGroupItem[] = []\n const _enabledItemKeys: string[] = []\n\n for (const item of items) {\n if (item.isActive && (!maxActiveItems || _activeItemKeys.length < maxActiveItems)) {\n const isActive = item.isActive({ editor, editorConfigContext, selection })\n if (isActive) {\n _activeItemKeys.push(item.key)\n _activeItems.push(item)\n }\n }\n if (item.isEnabled) {\n const isEnabled = item.isEnabled({ editor, editorConfigContext, selection })\n if (isEnabled) {\n _enabledItemKeys.push(item.key)\n }\n } else {\n _enabledItemKeys.push(item.key)\n }\n }\n setActiveItemKeys(_activeItemKeys)\n setEnabledItemKeys(_enabledItemKeys)\n\n if (onActiveChange) {\n onActiveChange({ activeItems: _activeItems })\n }\n })\n }, [editor, editorConfigContext, items, maxActiveItems, onActiveChange])\n\n useEffect(() => {\n updateStates()\n }, [updateStates])\n\n useEffect(() => {\n document.addEventListener('mouseup', updateStates)\n return () => {\n document.removeEventListener('mouseup', updateStates)\n }\n }, [updateStates])\n\n useEffect(() => {\n return mergeRegister(\n editor.registerUpdateListener(() => {\n updateStates()\n }),\n )\n }, [editor, updateStates])\n\n return (\n <DropDown\n Icon={Icon}\n buttonAriaLabel={`${groupKey} dropdown`}\n buttonClassName={[baseClass, `${baseClass}-${groupKey}`, ...(classNames || [])]\n .filter(Boolean)\n .join(' ')}\n itemsContainerClassNames={[`${baseClass}-items`, ...(itemsContainerClassNames || [])]}\n key={groupKey}\n label={label}\n >\n {items.length &&\n items.map((item) => {\n return (\n <ToolbarItem\n active={activeItemKeys.includes(item.key)}\n anchorElem={anchorElem}\n editor={editor}\n enabled={enabledItemKeys.includes(item.key)}\n item={item}\n key={item.key}\n />\n )\n })}\n </DropDown>\n )\n}\n"],"names":["React","useCallback","useEffect","baseClass","mergeRegister","useTranslation","$getSelection","useEditorConfigContext","DropDown","DropDownItem","ToolbarItem","active","anchorElem","editor","enabled","item","i18n","Component","key","title","label","length","substring","ChildComponent","span","className","ToolbarDropdown","Icon","classNames","groupKey","items","itemsContainerClassNames","maxActiveItems","onActiveChange","activeItemKeys","setActiveItemKeys","useState","enabledItemKeys","setEnabledItemKeys","editorConfigContext","updateStates","getEditorState","read","selection","_activeItemKeys","_activeItems","_enabledItemKeys","isActive","push","isEnabled","activeItems","document","addEventListener","removeEventListener","registerUpdateListener","buttonAriaLabel","buttonClassName","filter","Boolean","join","map","includes"],"mappings":"AAAA;;AACA,OAAOA,SAASC,WAAW,EAAEC,SAAS,QAAQ,QAAO;AAErD,MAAMC,YAAY;AAIlB,SAASC,aAAa,QAAQ,iBAAgB;AAC9C,SAASC,cAAc,QAAQ,iBAAgB;AAC/C,SAASC,aAAa,QAAQ,UAAS;AAIvC,SAASC,sBAAsB,QAAQ,4DAA2D;AAClG,SAASC,QAAQ,EAAEC,YAAY,QAAQ,gBAAe;AAGtD,MAAMC,cAAc,CAAC,EACnBC,MAAM,EACNC,UAAU,EACVC,MAAM,EACNC,OAAO,EACPC,IAAI,EAOL;IACC,MAAM,EAAEC,IAAI,EAAE,GAAGX;IAEjB,IAAIU,KAAKE,SAAS,EAAE;QAClB,OACEF,MAAME,2BACJ,KAACF,KAAKE,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AC,CAAC7C;YACT,qBACE,KAACL;gBACCC,QAAQuB,eAAe2B,QAAQ,CAAC9C,KAAKG,GAAG;gBACxCN,YAAYA;gBACZC,QAAQA;gBACRC,SAASuB,gBAAgBwB,QAAQ,CAAC9C,KAAKG,GAAG;gBAC1CH,MAAMA;eACDA,KAAKG,GAAG;QAGnB;OAfGW;AAkBX,EAAC"}
1
+ {"version":3,"sources":["../../../../../src/features/toolbars/shared/ToolbarDropdown/index.tsx"],"sourcesContent":["'use client'\nimport React, { useCallback, useEffect } from 'react'\n\nconst baseClass = 'toolbar-popup__dropdown'\n\nimport type { LexicalEditor } from 'lexical'\n\nimport { mergeRegister } from '@lexical/utils'\nimport { useTranslation } from '@payloadcms/ui'\nimport { $getSelection } from 'lexical'\n\nimport type { ToolbarGroupItem } from '../../types.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { DropDown, DropDownItem } from './DropDown.js'\nimport './index.scss'\n\nconst ToolbarItem = ({\n active,\n anchorElem,\n editor,\n enabled,\n item,\n}: {\n active?: boolean\n anchorElem: HTMLElement\n editor: LexicalEditor\n enabled?: boolean\n item: ToolbarGroupItem\n}) => {\n const { i18n } = useTranslation()\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n if (item.Component) {\n return (\n item?.Component && (\n <item.Component\n active={active}\n anchorElem={anchorElem}\n editor={editor}\n enabled={enabled}\n item={item}\n key={item.key}\n />\n )\n )\n }\n\n let title = item.key\n if (item.label) {\n title =\n typeof item.label === 'function' ? item.label({ i18n, richTextComponentMap }) : item.label\n }\n // Crop title to max. 25 characters\n if (title.length > 25) {\n title = title.substring(0, 25) + '...'\n }\n\n return (\n <DropDownItem active={active} editor={editor} enabled={enabled} item={item} key={item.key}>\n {item?.ChildComponent && <item.ChildComponent />}\n <span className=\"text\">{title}</span>\n </DropDownItem>\n )\n}\n\nexport const ToolbarDropdown = ({\n Icon,\n anchorElem,\n classNames,\n editor,\n groupKey,\n items,\n itemsContainerClassNames,\n label,\n maxActiveItems,\n onActiveChange,\n}: {\n Icon?: React.FC\n anchorElem: HTMLElement\n classNames?: string[]\n editor: LexicalEditor\n groupKey: string\n items: ToolbarGroupItem[]\n itemsContainerClassNames?: string[]\n label?: string\n /**\n * Maximum number of active items allowed. This is a performance optimization to prevent\n * unnecessary item active checks when the maximum number of active items is reached.\n */\n maxActiveItems?: number\n onActiveChange?: ({ activeItems }: { activeItems: ToolbarGroupItem[] }) => void\n}) => {\n const [activeItemKeys, setActiveItemKeys] = React.useState<string[]>([])\n const [enabledItemKeys, setEnabledItemKeys] = React.useState<string[]>([])\n const editorConfigContext = useEditorConfigContext()\n\n const updateStates = useCallback(() => {\n editor.getEditorState().read(() => {\n const selection = $getSelection()\n\n const _activeItemKeys: string[] = []\n const _activeItems: ToolbarGroupItem[] = []\n const _enabledItemKeys: string[] = []\n\n for (const item of items) {\n if (item.isActive && (!maxActiveItems || _activeItemKeys.length < maxActiveItems)) {\n const isActive = item.isActive({ editor, editorConfigContext, selection })\n if (isActive) {\n _activeItemKeys.push(item.key)\n _activeItems.push(item)\n }\n }\n if (item.isEnabled) {\n const isEnabled = item.isEnabled({ editor, editorConfigContext, selection })\n if (isEnabled) {\n _enabledItemKeys.push(item.key)\n }\n } else {\n _enabledItemKeys.push(item.key)\n }\n }\n setActiveItemKeys(_activeItemKeys)\n setEnabledItemKeys(_enabledItemKeys)\n\n if (onActiveChange) {\n onActiveChange({ activeItems: _activeItems })\n }\n })\n }, [editor, editorConfigContext, items, maxActiveItems, onActiveChange])\n\n useEffect(() => {\n updateStates()\n }, [updateStates])\n\n useEffect(() => {\n document.addEventListener('mouseup', updateStates)\n return () => {\n document.removeEventListener('mouseup', updateStates)\n }\n }, [updateStates])\n\n useEffect(() => {\n return mergeRegister(\n editor.registerUpdateListener(() => {\n updateStates()\n }),\n )\n }, [editor, updateStates])\n\n return (\n <DropDown\n Icon={Icon}\n buttonAriaLabel={`${groupKey} dropdown`}\n buttonClassName={[baseClass, `${baseClass}-${groupKey}`, ...(classNames || [])]\n .filter(Boolean)\n .join(' ')}\n itemsContainerClassNames={[`${baseClass}-items`, ...(itemsContainerClassNames || [])]}\n key={groupKey}\n label={label}\n >\n {items.length &&\n items.map((item) => {\n return (\n <ToolbarItem\n active={activeItemKeys.includes(item.key)}\n anchorElem={anchorElem}\n editor={editor}\n enabled={enabledItemKeys.includes(item.key)}\n item={item}\n key={item.key}\n />\n )\n })}\n </DropDown>\n )\n}\n"],"names":["React","useCallback","useEffect","baseClass","mergeRegister","useTranslation","$getSelection","useEditorConfigContext","DropDown","DropDownItem","ToolbarItem","active","anchorElem","editor","enabled","item","i18n","field","richTextComponentMap","Component","key","title","label","length","substring","ChildComponent","span","className","ToolbarDropdown","Icon","classNames","groupKey","items","itemsContainerClassNames","maxActiveItems","onActiveChange","activeItemKeys","setActiveItemKeys","useState","enabledItemKeys","setEnabledItemKeys","editorConfigContext","updateStates","getEditorState","read","selection","_activeItemKeys","_activeItems","_enabledItemKeys","isActive","push","isEnabled","activeItems","document","addEventListener","removeEventListener","registerUpdateListener","buttonAriaLabel","buttonClassName","filter","Boolean","join","map","includes"],"mappings":"AAAA;;AACA,OAAOA,SAASC,WAAW,EAAEC,SAAS,QAAQ,QAAO;AAErD,MAAMC,YAAY;AAIlB,SAASC,aAAa,QAAQ,iBAAgB;AAC9C,SAASC,cAAc,QAAQ,iBAAgB;AAC/C,SAASC,aAAa,QAAQ,UAAS;AAIvC,SAASC,sBAAsB,QAAQ,4DAA2D;AAClG,SAASC,QAAQ,EAAEC,YAAY,QAAQ,gBAAe;AAGtD,MAAMC,cAAc,CAAC,EACnBC,MAAM,EACNC,UAAU,EACVC,MAAM,EACNC,OAAO,EACPC,IAAI,EAOL;IACC,MAAM,EAAEC,IAAI,EAAE,GAAGX;IACjB,MAAM,EACJY,OAAO,EAAEC,oBAAoB,EAAE,EAChC,GAAGX;IAEJ,IAAIQ,KAAKI,SAAS,EAAE;QAClB,OACEJ,MAAMI,2BACJ,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MAAM8B,GAAG,CAAC,CAAC/C;YACT,qBACE,KAACL;gBACCC,QAAQyB,eAAe2B,QAAQ,CAAChD,KAAKK,GAAG;gBACxCR,YAAYA;gBACZC,QAAQA;gBACRC,SAASyB,gBAAgBwB,QAAQ,CAAChD,KAAKK,GAAG;gBAC1CL,MAAMA;eACDA,KAAKK,GAAG;QAGnB;OAfGW;AAkBX,EAAC"}
@@ -67,8 +67,9 @@ export type ToolbarGroupItem = {
67
67
  /** Each toolbar item needs to have a unique key. */
68
68
  key: string;
69
69
  /** The label will be displayed in your toolbar item, if it's within a dropdown group. In order to make use of i18n, this can be a function. */
70
- label?: (({ i18n }: {
70
+ label?: ((args: {
71
71
  i18n: I18nClient<{}, string>;
72
+ richTextComponentMap: Map<string, React.ReactNode>;
72
73
  }) => string) | string;
73
74
  /** Each toolbar item needs to have a unique key. */
74
75
  onSelect?: ({ editor, isActive }: {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/toolbars/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAA;AAElG,MAAM,MAAM,YAAY,GACpB;IACE;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAA;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,EAAE,SAAS,CAAA;CAChB,GACD;IACE;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAA;IACzB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAA;IA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AAA;KACvB,CAAC,CAAA;IACF,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,CAAC,EACV,MAAM,EACN,mBAAmB,EACnB,SAAS,GACV,EAAE;QACD,MAAM,EAAE,aAAa,CAAA;QACrB,mBAAmB,EAAE,uBAAuB,CAAA;QAC5C,SAAS,EAAE,aAAa,CAAA;KACzB,KAAK,OAAO,CAAA;IACb,iJAAiJ;IACjJ,SAAS,CAAC,EAAE,CAAC,EACX,MAAM,EACN,mBAAmB,EACnB,SAAS,GACV,EAAE;QACD,MAAM,EAAE,aAAa,CAAA;QACrB,mBAAmB,EAAE,uBAAuB,CAAA;QAC5C,SAAS,EAAE,aAAa,CAAA;KACzB,KAAK,OAAO,CAAA;IACb,oDAAoD;IACpD,GAAG,EAAE,MAAM,CAAA;IACX,+IAA+I;IAC/I,KAAK,CAAC,EACF,CAAC,CAAC,IAAI,EAAE;QACN,IAAI,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QAC5B,oBAAoB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;KACnD,KAAK,MAAM,CAAC,GACb,MAAM,CAAA;IACV,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;QAAE,MAAM,EAAE,aAAa,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IACvF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/features/toolbars/types.ts"],"sourcesContent":["import type { I18nClient } from '@payloadcms/translations'\nimport type { BaseSelection, LexicalEditor } from 'lexical'\nimport type React from 'react'\n\nimport type { EditorConfigContextType } from '../../lexical/config/client/EditorConfigProvider.js'\n\nexport type ToolbarGroup =\n | {\n /**\n * All toolbar items part of this toolbar group need to be added here.\n */\n items: Array<ToolbarGroupItem>\n /**\n * Each toolbar group needs to have a unique key. Groups with the same keys will have their items merged together.\n */\n key: string\n /**\n * Determines where the toolbar group will be.\n */\n order?: number\n /**\n * Controls the toolbar group type. Set to `buttons` to create a buttons toolbar group, which displays toolbar items horizontally using only their icons.\n */\n type: 'buttons'\n }\n | {\n /**\n * The dropdown toolbar ChildComponent allows you to pass in a React Component which will be displayed within the dropdown button.\n */\n ChildComponent?: React.FC\n /**\n * All toolbar items part of this toolbar group need to be added here.\n */\n items: Array<ToolbarGroupItem>\n /**\n * Each toolbar group needs to have a unique key. Groups with the same keys will have their items merged together.\n */\n key: string\n /**\n * Determines where the toolbar group will be.\n */\n order?: number\n /**\n * Controls the toolbar group type. Set to `dropdown` to create a buttons toolbar group, which displays toolbar items vertically using their icons and labels, if the dropdown is open.\n */\n type: 'dropdown'\n }\n\nexport type ToolbarGroupItem = {\n /** A React component which is rendered within your toolbar item's default button component. Usually, you want this to be an icon. */\n ChildComponent?: React.FC\n /** A React component which is rendered in place of the toolbar item's default button component, thus completely replacing it. The `ChildComponent` and `onSelect` properties will be ignored. */\n Component?: React.FC<{\n active?: boolean\n anchorElem: HTMLElement\n editor: LexicalEditor\n enabled?: boolean\n item: ToolbarGroupItem\n }>\n /** This is optional and controls if the toolbar item is highlighted or not. */\n isActive?: ({\n editor,\n editorConfigContext,\n selection,\n }: {\n editor: LexicalEditor\n editorConfigContext: EditorConfigContextType\n selection: BaseSelection\n }) => boolean\n /** This is optional and controls if the toolbar item is clickable or not. If `false` is returned here, it will be grayed out and unclickable. */\n isEnabled?: ({\n editor,\n editorConfigContext,\n selection,\n }: {\n editor: LexicalEditor\n editorConfigContext: EditorConfigContextType\n selection: BaseSelection\n }) => boolean\n /** Each toolbar item needs to have a unique key. */\n key: string\n /** The label will be displayed in your toolbar item, if it's within a dropdown group. In order to make use of i18n, this can be a function. */\n label?: (({ i18n }: { i18n: I18nClient<{}, string> }) => string) | string\n /** Each toolbar item needs to have a unique key. */\n onSelect?: ({ editor, isActive }: { editor: LexicalEditor; isActive: boolean }) => void\n order?: number\n}\n"],"names":[],"mappings":"AAgDA,WAsCC"}
1
+ {"version":3,"sources":["../../../src/features/toolbars/types.ts"],"sourcesContent":["import type { I18nClient } from '@payloadcms/translations'\nimport type { BaseSelection, LexicalEditor } from 'lexical'\nimport type React from 'react'\n\nimport type { EditorConfigContextType } from '../../lexical/config/client/EditorConfigProvider.js'\n\nexport type ToolbarGroup =\n | {\n /**\n * All toolbar items part of this toolbar group need to be added here.\n */\n items: Array<ToolbarGroupItem>\n /**\n * Each toolbar group needs to have a unique key. Groups with the same keys will have their items merged together.\n */\n key: string\n /**\n * Determines where the toolbar group will be.\n */\n order?: number\n /**\n * Controls the toolbar group type. Set to `buttons` to create a buttons toolbar group, which displays toolbar items horizontally using only their icons.\n */\n type: 'buttons'\n }\n | {\n /**\n * The dropdown toolbar ChildComponent allows you to pass in a React Component which will be displayed within the dropdown button.\n */\n ChildComponent?: React.FC\n /**\n * All toolbar items part of this toolbar group need to be added here.\n */\n items: Array<ToolbarGroupItem>\n /**\n * Each toolbar group needs to have a unique key. Groups with the same keys will have their items merged together.\n */\n key: string\n /**\n * Determines where the toolbar group will be.\n */\n order?: number\n /**\n * Controls the toolbar group type. Set to `dropdown` to create a buttons toolbar group, which displays toolbar items vertically using their icons and labels, if the dropdown is open.\n */\n type: 'dropdown'\n }\n\nexport type ToolbarGroupItem = {\n /** A React component which is rendered within your toolbar item's default button component. Usually, you want this to be an icon. */\n ChildComponent?: React.FC\n /** A React component which is rendered in place of the toolbar item's default button component, thus completely replacing it. The `ChildComponent` and `onSelect` properties will be ignored. */\n Component?: React.FC<{\n active?: boolean\n anchorElem: HTMLElement\n editor: LexicalEditor\n enabled?: boolean\n item: ToolbarGroupItem\n }>\n /** This is optional and controls if the toolbar item is highlighted or not. */\n isActive?: ({\n editor,\n editorConfigContext,\n selection,\n }: {\n editor: LexicalEditor\n editorConfigContext: EditorConfigContextType\n selection: BaseSelection\n }) => boolean\n /** This is optional and controls if the toolbar item is clickable or not. If `false` is returned here, it will be grayed out and unclickable. */\n isEnabled?: ({\n editor,\n editorConfigContext,\n selection,\n }: {\n editor: LexicalEditor\n editorConfigContext: EditorConfigContextType\n selection: BaseSelection\n }) => boolean\n /** Each toolbar item needs to have a unique key. */\n key: string\n /** The label will be displayed in your toolbar item, if it's within a dropdown group. In order to make use of i18n, this can be a function. */\n label?:\n | ((args: {\n i18n: I18nClient<{}, string>\n richTextComponentMap: Map<string, React.ReactNode>\n }) => string)\n | string\n /** Each toolbar item needs to have a unique key. */\n onSelect?: ({ editor, isActive }: { editor: LexicalEditor; isActive: boolean }) => void\n order?: number\n}\n"],"names":[],"mappings":"AAgDA,WA2CC"}
@@ -2,8 +2,7 @@ import type { Transformer } from '@lexical/markdown';
2
2
  import type { GenericLanguages, I18nClient } from '@payloadcms/translations';
3
3
  import type { JSONSchema4 } from 'json-schema';
4
4
  import type { Klass, LexicalNode, LexicalNodeReplacement, SerializedEditorState, SerializedLexicalNode } from 'lexical';
5
- import type { Field, JsonObject, Payload, PayloadRequest, ReplaceAny, RequestContext, RichTextField, SanitizedConfig, ValidateOptions } from 'payload';
6
- import type React from 'react';
5
+ import type { Config, Field, JsonObject, Payload, PayloadComponent, PayloadRequest, ReplaceAny, RequestContext, RichTextField, RichTextHooks, SanitizedConfig, ValidateOptions } from 'payload';
7
6
  import type { ServerEditorConfig } from '../lexical/config/types.js';
8
7
  import type { AdapterProps } from '../types.js';
9
8
  import type { HTMLConverter } from './converters/html/converter/types.js';
@@ -158,11 +157,14 @@ export type NodeWithHooks<T extends LexicalNode = any> = {
158
157
  };
159
158
  /**
160
159
  * If a node includes sub-fields (e.g. block and link nodes), passing those subFields here will make payload
161
- * automatically populate & run hooks for them
160
+ * automatically populate, run hooks, and generate component import maps for them
162
161
  */
163
162
  getSubFields?: (args: {
164
- node: ReturnType<ReplaceAny<T, LexicalNode>['exportJSON']>;
165
- req: PayloadRequest;
163
+ /**
164
+ * Optional. If not provided, all possible sub-fields should be returned.
165
+ */
166
+ node?: ReturnType<ReplaceAny<T, LexicalNode>['exportJSON']>;
167
+ req?: PayloadRequest;
166
168
  }) => Field[] | null;
167
169
  /**
168
170
  * If a node includes sub-fields, the sub-fields data needs to be returned here, alongside `getSubFields` which returns their schema.
@@ -198,25 +200,25 @@ export type NodeWithHooks<T extends LexicalNode = any> = {
198
200
  validations?: Array<NodeValidation<ReturnType<ReplaceAny<T, LexicalNode>['exportJSON']>>>;
199
201
  };
200
202
  export type ServerFeature<ServerProps, ClientFeatureProps> = {
201
- ClientFeature?: React.FC<ClientComponentProps<ClientFeatureProps>>;
203
+ ClientFeature?: PayloadComponent<never, ClientComponentProps<ClientFeatureProps>>;
202
204
  /**
203
205
  * This determines what props will be available on the Client.
204
206
  */
205
207
  clientFeatureProps?: ClientFeatureProps;
206
- generateComponentMap?: (args: {
207
- config: SanitizedConfig;
208
+ componentImports?: Config['admin']['importMap']['generators'][0] | PayloadComponent[];
209
+ componentMap?: ((args: {
208
210
  i18n: I18nClient;
209
211
  payload: Payload;
210
212
  props: ServerProps;
211
213
  schemaPath: string;
212
214
  }) => {
213
- [key: string]: React.FC<{
214
- componentKey: string;
215
- featureKey: string;
216
- }>;
215
+ [key: string]: PayloadComponent;
216
+ }) | {
217
+ [key: string]: PayloadComponent;
217
218
  };
218
219
  generateSchemaMap?: (args: {
219
220
  config: SanitizedConfig;
221
+ field: RichTextField;
220
222
  i18n: I18nClient;
221
223
  props: ServerProps;
222
224
  schemaMap: Map<string, Field[]>;
@@ -240,6 +242,7 @@ export type ServerFeature<ServerProps, ClientFeatureProps> = {
240
242
  isRequired: boolean;
241
243
  }) => JSONSchema4;
242
244
  };
245
+ hooks?: RichTextHooks;
243
246
  /**
244
247
  * Here you can provide i18n translations for your feature. These will only be available on the server and client.
245
248
  *
@@ -304,7 +307,8 @@ export type SanitizedServerFeatures = {
304
307
  req: PayloadRequest;
305
308
  }) => JsonObject>;
306
309
  graphQLPopulationPromises: Map<string, Array<PopulationPromise>>;
307
- hooks?: {
310
+ hooks: RichTextHooks;
311
+ nodeHooks?: {
308
312
  afterChange?: Map<string, Array<AfterChangeNodeHook<SerializedLexicalNode>>>;
309
313
  afterRead?: Map<string, Array<AfterReadNodeHook<SerializedLexicalNode>>>;
310
314
  beforeChange?: Map<string, Array<BeforeChangeNodeHook<SerializedLexicalNode>>>;