@payloadcms/richtext-lexical 3.0.0-canary.fb81f02 → 3.0.0-canary.ff8c8fd

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 (1578) hide show
  1. package/dist/cell/index.d.ts +4 -4
  2. package/dist/cell/index.d.ts.map +1 -1
  3. package/dist/cell/index.js +117 -127
  4. package/dist/cell/index.js.map +1 -1
  5. package/dist/exports/client/Component-DOSSWC76.js +2 -0
  6. package/dist/exports/client/Component-DOSSWC76.js.map +7 -0
  7. package/dist/exports/client/Component-MBLHTKDK.js +2 -0
  8. package/dist/exports/client/Component-MBLHTKDK.js.map +7 -0
  9. package/dist/exports/client/Field-SUWHJ4HF.js +2 -0
  10. package/dist/exports/client/Field-SUWHJ4HF.js.map +7 -0
  11. package/dist/exports/client/RelationshipComponent-EZORSGUZ.js +2 -0
  12. package/dist/exports/client/RelationshipComponent-EZORSGUZ.js.map +7 -0
  13. package/dist/exports/client/bundled.css +1 -1
  14. package/dist/exports/client/chunk-OLSILJA6.js +2 -0
  15. package/dist/exports/client/chunk-OLSILJA6.js.map +7 -0
  16. package/dist/exports/client/chunk-TD7O23AB.js +2 -0
  17. package/dist/exports/client/chunk-TD7O23AB.js.map +7 -0
  18. package/dist/exports/client/chunk-UJDWBQ2K.js +2 -0
  19. package/dist/exports/client/chunk-UJDWBQ2K.js.map +7 -0
  20. package/dist/exports/client/chunk-V2LKLT2F.js +3 -0
  21. package/dist/exports/client/chunk-V2LKLT2F.js.map +7 -0
  22. package/dist/exports/client/chunk-YL453UOS.js +2 -0
  23. package/dist/exports/client/chunk-YL453UOS.js.map +7 -0
  24. package/dist/exports/client/chunk-YSI2QILQ.js +2 -0
  25. package/dist/exports/client/chunk-YSI2QILQ.js.map +7 -0
  26. package/dist/exports/client/component-2YLEVOFH.js +2 -0
  27. package/dist/exports/client/component-2YLEVOFH.js.map +7 -0
  28. package/dist/exports/client/component-7RAP75FW.js +2 -0
  29. package/dist/exports/client/component-7RAP75FW.js.map +7 -0
  30. package/dist/exports/client/component-LLWMZU6K.js +2 -0
  31. package/dist/exports/client/component-LLWMZU6K.js.map +7 -0
  32. package/dist/exports/client/componentInline-YSHGRL2J.js +2 -0
  33. package/dist/exports/client/componentInline-YSHGRL2J.js.map +7 -0
  34. package/dist/exports/client/index.d.ts +21 -22
  35. package/dist/exports/client/index.d.ts.map +1 -1
  36. package/dist/exports/client/index.js +9 -9
  37. package/dist/exports/client/index.js.map +4 -4
  38. package/dist/exports/server/migrate.d.ts +16 -0
  39. package/dist/exports/server/migrate.d.ts.map +1 -0
  40. package/dist/exports/server/migrate.js +16 -0
  41. package/dist/exports/server/migrate.js.map +1 -0
  42. package/dist/features/align/client/index.d.ts +5 -0
  43. package/dist/features/align/client/index.d.ts.map +1 -0
  44. package/dist/features/align/client/index.js +163 -0
  45. package/dist/features/align/client/index.js.map +1 -0
  46. package/dist/features/align/client/toolbarAlignGroup.d.ts +3 -0
  47. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -0
  48. package/dist/features/align/client/toolbarAlignGroup.js +13 -0
  49. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -0
  50. package/dist/features/align/server/i18n.d.ts.map +1 -0
  51. package/dist/features/align/server/i18n.js +195 -0
  52. package/dist/features/align/server/i18n.js.map +1 -0
  53. package/dist/features/align/server/index.d.ts +2 -0
  54. package/dist/features/align/server/index.d.ts.map +1 -0
  55. package/dist/features/align/server/index.js +10 -0
  56. package/dist/features/align/server/index.js.map +1 -0
  57. package/dist/features/blockquote/client/index.d.ts +5 -0
  58. package/dist/features/blockquote/client/index.d.ts.map +1 -0
  59. package/dist/features/blockquote/client/index.js +72 -0
  60. package/dist/features/blockquote/client/index.js.map +1 -0
  61. package/dist/features/blockquote/markdownTransformer.js +28 -34
  62. package/dist/features/blockquote/markdownTransformer.js.map +1 -1
  63. package/dist/features/blockquote/server/i18n.d.ts.map +1 -0
  64. package/dist/features/blockquote/server/i18n.js +99 -0
  65. package/dist/features/blockquote/server/i18n.js.map +1 -0
  66. package/dist/features/blockquote/server/index.d.ts +7 -0
  67. package/dist/features/blockquote/server/index.d.ts.map +1 -0
  68. package/dist/features/blockquote/server/index.js +47 -0
  69. package/dist/features/blockquote/server/index.js.map +1 -0
  70. package/dist/features/blocks/client/component/BlockContent.d.ts +22 -0
  71. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -0
  72. package/dist/features/blocks/client/component/BlockContent.js +192 -0
  73. package/dist/features/blocks/client/component/BlockContent.js.map +1 -0
  74. package/dist/features/blocks/client/component/FormSavePlugin.d.ts.map +1 -0
  75. package/dist/features/blocks/client/component/FormSavePlugin.js +53 -0
  76. package/dist/features/blocks/client/component/FormSavePlugin.js.map +1 -0
  77. package/dist/features/blocks/client/component/index.d.ts +11 -0
  78. package/dist/features/blocks/client/component/index.d.ts.map +1 -0
  79. package/dist/features/blocks/client/component/index.js +145 -0
  80. package/dist/features/blocks/client/component/index.js.map +1 -0
  81. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -0
  82. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +20 -0
  83. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -0
  84. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -0
  85. package/dist/features/blocks/client/componentInline/index.js +122 -0
  86. package/dist/features/blocks/client/componentInline/index.js.map +1 -0
  87. package/dist/features/blocks/client/index.d.ts +9 -0
  88. package/dist/features/blocks/client/index.d.ts.map +1 -0
  89. package/dist/features/blocks/client/index.js +159 -0
  90. package/dist/features/blocks/client/index.js.map +1 -0
  91. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +14 -0
  92. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -0
  93. package/dist/features/blocks/client/nodes/BlocksNode.js +53 -0
  94. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -0
  95. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +25 -0
  96. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -0
  97. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +42 -0
  98. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -0
  99. package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -0
  100. package/dist/features/blocks/client/plugin/commands.js +7 -0
  101. package/dist/features/blocks/client/plugin/commands.js.map +1 -0
  102. package/dist/features/blocks/client/plugin/index.d.ts +6 -0
  103. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -0
  104. package/dist/features/blocks/client/plugin/index.js +202 -0
  105. package/dist/features/blocks/client/plugin/index.js.map +1 -0
  106. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +6 -0
  107. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -0
  108. package/dist/features/blocks/server/graphQLPopulationPromise.js +44 -0
  109. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -0
  110. package/dist/features/blocks/server/i18n.d.ts.map +1 -0
  111. package/dist/features/blocks/server/i18n.js +291 -0
  112. package/dist/features/blocks/server/i18n.js.map +1 -0
  113. package/dist/features/blocks/server/index.d.ts +8 -0
  114. package/dist/features/blocks/server/index.d.ts.map +1 -0
  115. package/dist/features/blocks/server/index.js +160 -0
  116. package/dist/features/blocks/server/index.js.map +1 -0
  117. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +38 -0
  118. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -0
  119. package/dist/features/blocks/server/nodes/BlocksNode.js +87 -0
  120. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -0
  121. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +40 -0
  122. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -0
  123. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +88 -0
  124. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -0
  125. package/dist/features/blocks/server/validate.d.ts +6 -0
  126. package/dist/features/blocks/server/validate.d.ts.map +1 -0
  127. package/dist/features/blocks/server/validate.js +48 -0
  128. package/dist/features/blocks/server/validate.js.map +1 -0
  129. package/dist/features/converters/html/converter/converters/linebreak.js +4 -7
  130. package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -1
  131. package/dist/features/converters/html/converter/converters/paragraph.js +24 -19
  132. package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -1
  133. package/dist/features/converters/html/converter/converters/text.js +28 -29
  134. package/dist/features/converters/html/converter/converters/text.js.map +1 -1
  135. package/dist/features/converters/html/converter/defaultConverters.js +1 -6
  136. package/dist/features/converters/html/converter/defaultConverters.js.map +1 -1
  137. package/dist/features/converters/html/converter/index.js +66 -51
  138. package/dist/features/converters/html/converter/index.js.map +1 -1
  139. package/dist/features/converters/html/converter/types.js +1 -2
  140. package/dist/features/converters/html/converter/types.js.map +1 -1
  141. package/dist/features/converters/html/field/index.js +134 -139
  142. package/dist/features/converters/html/field/index.js.map +1 -1
  143. package/dist/features/converters/html/index.d.ts +8 -0
  144. package/dist/features/converters/html/index.d.ts.map +1 -0
  145. package/dist/features/converters/html/index.js +7 -0
  146. package/dist/features/converters/html/index.js.map +1 -0
  147. package/dist/features/createClientComponent.d.ts +3 -3
  148. package/dist/features/createClientComponent.d.ts.map +1 -1
  149. package/dist/features/createClientComponent.js +7 -6
  150. package/dist/features/createClientComponent.js.map +1 -1
  151. package/dist/features/createFeaturePropComponent.js +14 -13
  152. package/dist/features/createFeaturePropComponent.js.map +1 -1
  153. package/dist/features/debug/testRecorder/client/index.d.ts +5 -0
  154. package/dist/features/debug/testRecorder/client/index.d.ts.map +1 -0
  155. package/dist/features/debug/testRecorder/client/index.js +11 -0
  156. package/dist/features/debug/testRecorder/client/index.js.map +1 -0
  157. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +5 -0
  158. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -0
  159. package/dist/features/debug/testRecorder/client/plugin/index.js +411 -0
  160. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -0
  161. package/dist/features/debug/testRecorder/server/index.d.ts +2 -0
  162. package/dist/features/debug/testRecorder/server/index.d.ts.map +1 -0
  163. package/dist/features/debug/testRecorder/server/index.js +8 -0
  164. package/dist/features/debug/testRecorder/server/index.js.map +1 -0
  165. package/dist/features/debug/treeView/client/index.d.ts +5 -0
  166. package/dist/features/debug/treeView/client/index.d.ts.map +1 -0
  167. package/dist/features/debug/treeView/client/index.js +11 -0
  168. package/dist/features/debug/treeView/client/index.js.map +1 -0
  169. package/dist/features/debug/treeView/client/plugin/index.d.ts +4 -0
  170. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -0
  171. package/dist/features/debug/treeView/client/plugin/index.js +29 -0
  172. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -0
  173. package/dist/features/debug/treeView/server/index.d.ts +2 -0
  174. package/dist/features/debug/treeView/server/index.d.ts.map +1 -0
  175. package/dist/features/debug/treeView/server/index.js +8 -0
  176. package/dist/features/debug/treeView/server/index.js.map +1 -0
  177. package/dist/features/experimental_table/client/index.d.ts +2 -0
  178. package/dist/features/experimental_table/client/index.d.ts.map +1 -0
  179. package/dist/features/experimental_table/client/index.js +54 -0
  180. package/dist/features/experimental_table/client/index.js.map +1 -0
  181. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +4 -0
  182. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  183. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +523 -0
  184. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  185. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +3 -0
  186. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  187. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +308 -0
  188. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  189. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +5 -0
  190. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  191. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +186 -0
  192. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  193. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +24 -0
  194. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  195. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +150 -0
  196. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -0
  197. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -0
  198. package/dist/features/experimental_table/client/utils/debounce.js +221 -0
  199. package/dist/features/experimental_table/client/utils/debounce.js.map +1 -0
  200. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -0
  201. package/dist/features/experimental_table/client/utils/useDebounce.js +16 -0
  202. package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -0
  203. package/dist/features/experimental_table/server/index.d.ts +13 -0
  204. package/dist/features/experimental_table/server/index.d.ts.map +1 -0
  205. package/dist/features/experimental_table/server/index.js +136 -0
  206. package/dist/features/experimental_table/server/index.js.map +1 -0
  207. package/dist/features/format/bold/feature.client.js +34 -35
  208. package/dist/features/format/bold/feature.client.js.map +1 -1
  209. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  210. package/dist/features/format/bold/feature.server.js +14 -20
  211. package/dist/features/format/bold/feature.server.js.map +1 -1
  212. package/dist/features/format/bold/markdownTransformers.js +14 -25
  213. package/dist/features/format/bold/markdownTransformers.js.map +1 -1
  214. package/dist/features/format/inlineCode/feature.client.js +26 -28
  215. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  216. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  217. package/dist/features/format/inlineCode/feature.server.js +5 -10
  218. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  219. package/dist/features/format/inlineCode/markdownTransformers.js +3 -6
  220. package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -1
  221. package/dist/features/format/italic/feature.client.js +26 -29
  222. package/dist/features/format/italic/feature.client.js.map +1 -1
  223. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  224. package/dist/features/format/italic/feature.server.js +5 -11
  225. package/dist/features/format/italic/feature.server.js.map +1 -1
  226. package/dist/features/format/italic/markdownTransformers.js +7 -12
  227. package/dist/features/format/italic/markdownTransformers.js.map +1 -1
  228. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
  229. package/dist/features/format/shared/toolbarFormatGroup.js +9 -8
  230. package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -1
  231. package/dist/features/format/strikethrough/feature.client.js +26 -28
  232. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  233. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  234. package/dist/features/format/strikethrough/feature.server.js +5 -10
  235. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  236. package/dist/features/format/strikethrough/markdownTransformers.js +3 -6
  237. package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -1
  238. package/dist/features/format/subscript/feature.client.js +25 -25
  239. package/dist/features/format/subscript/feature.client.js.map +1 -1
  240. package/dist/features/format/subscript/feature.server.d.ts.map +1 -1
  241. package/dist/features/format/subscript/feature.server.js +4 -7
  242. package/dist/features/format/subscript/feature.server.js.map +1 -1
  243. package/dist/features/format/superscript/feature.client.js +25 -25
  244. package/dist/features/format/superscript/feature.client.js.map +1 -1
  245. package/dist/features/format/superscript/feature.server.d.ts.map +1 -1
  246. package/dist/features/format/superscript/feature.server.js +4 -7
  247. package/dist/features/format/superscript/feature.server.js.map +1 -1
  248. package/dist/features/format/underline/feature.client.js +25 -25
  249. package/dist/features/format/underline/feature.client.js.map +1 -1
  250. package/dist/features/format/underline/feature.server.d.ts.map +1 -1
  251. package/dist/features/format/underline/feature.server.js +4 -7
  252. package/dist/features/format/underline/feature.server.js.map +1 -1
  253. package/dist/features/heading/client/index.d.ts +6 -0
  254. package/dist/features/heading/client/index.d.ts.map +1 -0
  255. package/dist/features/heading/client/index.js +108 -0
  256. package/dist/features/heading/client/index.js.map +1 -0
  257. package/dist/features/heading/markdownTransformer.js +22 -25
  258. package/dist/features/heading/markdownTransformer.js.map +1 -1
  259. package/dist/features/heading/server/i18n.d.ts.map +1 -0
  260. package/dist/features/heading/server/i18n.js +99 -0
  261. package/dist/features/heading/server/i18n.js.map +1 -0
  262. package/dist/features/heading/server/index.d.ts +10 -0
  263. package/dist/features/heading/server/index.d.ts.map +1 -0
  264. package/dist/features/heading/server/index.js +58 -0
  265. package/dist/features/heading/server/index.js.map +1 -0
  266. package/dist/features/horizontalRule/client/component/index.d.ts.map +1 -0
  267. package/dist/features/horizontalRule/client/component/index.js +97 -0
  268. package/dist/features/horizontalRule/client/component/index.js.map +1 -0
  269. package/dist/features/horizontalRule/client/index.d.ts +5 -0
  270. package/dist/features/horizontalRule/client/index.d.ts.map +1 -0
  271. package/dist/features/horizontalRule/client/index.js +62 -0
  272. package/dist/features/horizontalRule/client/index.js.map +1 -0
  273. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -0
  274. package/dist/features/horizontalRule/client/markdownTransformer.js +20 -0
  275. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -0
  276. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +20 -0
  277. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -0
  278. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +46 -0
  279. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -0
  280. package/dist/features/horizontalRule/client/plugin/index.d.ts +7 -0
  281. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -0
  282. package/dist/features/horizontalRule/client/plugin/index.js +42 -0
  283. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -0
  284. package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -0
  285. package/dist/features/horizontalRule/server/i18n.js +99 -0
  286. package/dist/features/horizontalRule/server/i18n.js.map +1 -0
  287. package/dist/features/horizontalRule/server/index.d.ts +2 -0
  288. package/dist/features/horizontalRule/server/index.d.ts.map +1 -0
  289. package/dist/features/horizontalRule/server/index.js +25 -0
  290. package/dist/features/horizontalRule/server/index.js.map +1 -0
  291. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +3 -0
  292. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -0
  293. package/dist/features/horizontalRule/server/markdownTransformer.js +20 -0
  294. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -0
  295. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +53 -0
  296. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -0
  297. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +88 -0
  298. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -0
  299. package/dist/features/indent/client/index.d.ts +5 -0
  300. package/dist/features/indent/client/index.d.ts.map +1 -0
  301. package/dist/features/indent/client/index.js +61 -0
  302. package/dist/features/indent/client/index.js.map +1 -0
  303. package/dist/features/indent/client/toolbarIndentGroup.d.ts +3 -0
  304. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -0
  305. package/dist/features/indent/client/toolbarIndentGroup.js +11 -0
  306. package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -0
  307. package/dist/features/indent/server/i18n.d.ts.map +1 -0
  308. package/dist/features/indent/server/i18n.js +131 -0
  309. package/dist/features/indent/server/i18n.js.map +1 -0
  310. package/dist/features/indent/server/index.d.ts +2 -0
  311. package/dist/features/indent/server/index.d.ts.map +1 -0
  312. package/dist/features/indent/server/index.js +10 -0
  313. package/dist/features/indent/server/index.js.map +1 -0
  314. package/dist/features/link/client/index.d.ts +16 -0
  315. package/dist/features/link/client/index.d.ts.map +1 -0
  316. package/dist/features/link/client/index.js +96 -0
  317. package/dist/features/link/client/index.js.map +1 -0
  318. package/dist/features/link/client/plugins/autoLink/index.d.ts +20 -0
  319. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -0
  320. package/dist/features/link/client/plugins/autoLink/index.js +331 -0
  321. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -0
  322. package/dist/features/link/client/plugins/clickableLink/index.d.ts +4 -0
  323. package/dist/features/link/client/plugins/clickableLink/index.d.ts.map +1 -0
  324. package/dist/features/link/client/plugins/clickableLink/index.js +9 -0
  325. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -0
  326. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  327. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js +5 -0
  328. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  329. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  330. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +279 -0
  331. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  332. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +5 -0
  333. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  334. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +15 -0
  335. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -0
  336. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +15 -0
  337. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  338. package/dist/features/link/client/plugins/floatingLinkEditor/types.js +5 -0
  339. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -0
  340. package/dist/features/link/client/plugins/link/index.d.ts +4 -0
  341. package/dist/features/link/client/plugins/link/index.d.ts.map +1 -0
  342. package/dist/features/link/client/plugins/link/index.js +60 -0
  343. package/dist/features/link/client/plugins/link/index.js.map +1 -0
  344. package/dist/features/link/markdownTransformer.js +38 -39
  345. package/dist/features/link/markdownTransformer.js.map +1 -1
  346. package/dist/features/link/nodes/AutoLinkNode.js +57 -56
  347. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  348. package/dist/features/link/nodes/LinkNode.d.ts +1 -1
  349. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  350. package/dist/features/link/nodes/LinkNode.js +277 -276
  351. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  352. package/dist/features/link/nodes/types.js +1 -2
  353. package/dist/features/link/nodes/types.js.map +1 -1
  354. package/dist/features/link/server/baseFields.d.ts.map +1 -0
  355. package/dist/features/link/server/baseFields.js +124 -0
  356. package/dist/features/link/server/baseFields.js.map +1 -0
  357. package/dist/features/link/server/graphQLPopulationPromise.d.ts +5 -0
  358. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -0
  359. package/dist/features/link/server/graphQLPopulationPromise.js +45 -0
  360. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -0
  361. package/dist/features/link/server/i18n.d.ts.map +1 -0
  362. package/dist/features/link/server/i18n.js +99 -0
  363. package/dist/features/link/server/i18n.js.map +1 -0
  364. package/dist/features/link/server/index.d.ts +35 -0
  365. package/dist/features/link/server/index.d.ts.map +1 -0
  366. package/dist/features/link/server/index.js +138 -0
  367. package/dist/features/link/server/index.js.map +1 -0
  368. package/dist/features/link/server/transformExtraFields.d.ts +9 -0
  369. package/dist/features/link/server/transformExtraFields.d.ts.map +1 -0
  370. package/dist/features/link/server/transformExtraFields.js +20 -0
  371. package/dist/features/link/server/transformExtraFields.js.map +1 -0
  372. package/dist/features/link/server/validate.d.ts +6 -0
  373. package/dist/features/link/server/validate.d.ts.map +1 -0
  374. package/dist/features/link/server/validate.js +40 -0
  375. package/dist/features/link/server/validate.js.map +1 -0
  376. package/dist/features/lists/checklist/client/index.d.ts +5 -0
  377. package/dist/features/lists/checklist/client/index.d.ts.map +1 -0
  378. package/dist/features/lists/checklist/client/index.js +92 -0
  379. package/dist/features/lists/checklist/client/index.js.map +1 -0
  380. package/dist/features/lists/checklist/client/plugin/index.d.ts +3 -0
  381. package/dist/features/lists/checklist/client/plugin/index.d.ts.map +1 -0
  382. package/dist/features/lists/checklist/client/plugin/index.js +9 -0
  383. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -0
  384. package/dist/features/lists/checklist/markdownTransformers.js +7 -11
  385. package/dist/features/lists/checklist/markdownTransformers.js.map +1 -1
  386. package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -0
  387. package/dist/features/lists/checklist/server/i18n.js +99 -0
  388. package/dist/features/lists/checklist/server/i18n.js.map +1 -0
  389. package/dist/features/lists/checklist/server/index.d.ts +2 -0
  390. package/dist/features/lists/checklist/server/index.d.ts.map +1 -0
  391. package/dist/features/lists/checklist/server/index.js +30 -0
  392. package/dist/features/lists/checklist/server/index.js.map +1 -0
  393. package/dist/features/lists/htmlConverter.js +54 -43
  394. package/dist/features/lists/htmlConverter.js.map +1 -1
  395. package/dist/features/lists/orderedList/client/index.d.ts +5 -0
  396. package/dist/features/lists/orderedList/client/index.d.ts.map +1 -0
  397. package/dist/features/lists/orderedList/client/index.js +84 -0
  398. package/dist/features/lists/orderedList/client/index.js.map +1 -0
  399. package/dist/features/lists/orderedList/markdownTransformer.js +7 -11
  400. package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -1
  401. package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -0
  402. package/dist/features/lists/orderedList/server/i18n.js +99 -0
  403. package/dist/features/lists/orderedList/server/i18n.js.map +1 -0
  404. package/dist/features/lists/orderedList/server/index.d.ts +2 -0
  405. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -0
  406. package/dist/features/lists/orderedList/server/index.js +30 -0
  407. package/dist/features/lists/orderedList/server/index.js.map +1 -0
  408. package/dist/features/lists/plugin/index.js +3 -3
  409. package/dist/features/lists/plugin/index.js.map +1 -1
  410. package/dist/features/lists/shared/markdown.js +48 -49
  411. package/dist/features/lists/shared/markdown.js.map +1 -1
  412. package/dist/features/lists/shared/slashMenuListGroup.js +9 -8
  413. package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -1
  414. package/dist/features/lists/unorderedList/client/index.d.ts +5 -0
  415. package/dist/features/lists/unorderedList/client/index.d.ts.map +1 -0
  416. package/dist/features/lists/unorderedList/client/index.js +80 -0
  417. package/dist/features/lists/unorderedList/client/index.js.map +1 -0
  418. package/dist/features/lists/unorderedList/markdownTransformer.js +7 -11
  419. package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -1
  420. package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -0
  421. package/dist/features/lists/unorderedList/server/i18n.js +99 -0
  422. package/dist/features/lists/unorderedList/server/i18n.js.map +1 -0
  423. package/dist/features/lists/unorderedList/server/index.d.ts +2 -0
  424. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -0
  425. package/dist/features/lists/unorderedList/server/index.js +26 -0
  426. package/dist/features/lists/unorderedList/server/index.js.map +1 -0
  427. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +1 -1
  428. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -1
  429. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +19 -17
  430. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -1
  431. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +1 -1
  432. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -1
  433. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +31 -29
  434. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -1
  435. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +1 -1
  436. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -1
  437. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +22 -20
  438. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -1
  439. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +1 -1
  440. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -1
  441. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +22 -19
  442. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -1
  443. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +1 -1
  444. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -1
  445. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +19 -17
  446. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -1
  447. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +1 -1
  448. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -1
  449. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +25 -23
  450. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -1
  451. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +1 -1
  452. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  453. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +20 -21
  454. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
  455. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +2 -2
  456. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -1
  457. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +8 -17
  458. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -1
  459. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +5 -3
  460. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -1
  461. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +70 -56
  462. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -1
  463. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +1 -9
  464. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -1
  465. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +1 -2
  466. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -1
  467. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -1
  468. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +5 -22
  469. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -1
  470. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +5 -3
  471. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -1
  472. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +43 -39
  473. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -1
  474. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -1
  475. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +11 -11
  476. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  477. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +64 -59
  478. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  479. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +1 -1
  480. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -1
  481. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +20 -20
  482. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -1
  483. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +1 -1
  484. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -1
  485. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +21 -26
  486. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -1
  487. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +1 -1
  488. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -1
  489. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +29 -31
  490. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -1
  491. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +1 -1
  492. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -1
  493. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +27 -27
  494. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -1
  495. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +1 -1
  496. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -1
  497. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +23 -22
  498. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -1
  499. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +1 -1
  500. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -1
  501. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +23 -23
  502. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -1
  503. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +1 -1
  504. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -1
  505. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +13 -14
  506. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
  507. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +1 -1
  508. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -1
  509. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +24 -24
  510. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -1
  511. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +1 -1
  512. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -1
  513. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +23 -23
  514. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -1
  515. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +1 -1
  516. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  517. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +16 -17
  518. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
  519. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +2 -2
  520. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -1
  521. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +11 -23
  522. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -1
  523. package/dist/features/migrations/slateToLexical/converter/index.js +105 -98
  524. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -1
  525. package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -9
  526. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -1
  527. package/dist/features/migrations/slateToLexical/converter/types.js +1 -2
  528. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -1
  529. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -1
  530. package/dist/features/migrations/slateToLexical/feature.client.js +7 -22
  531. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -1
  532. package/dist/features/migrations/slateToLexical/feature.server.d.ts +6 -5
  533. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -1
  534. package/dist/features/migrations/slateToLexical/feature.server.js +44 -41
  535. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -1
  536. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -1
  537. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +11 -11
  538. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  539. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +64 -59
  540. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  541. package/dist/features/paragraph/client/index.d.ts +5 -0
  542. package/dist/features/paragraph/client/index.d.ts.map +1 -0
  543. package/dist/features/paragraph/client/index.js +68 -0
  544. package/dist/features/paragraph/client/index.js.map +1 -0
  545. package/dist/features/paragraph/server/i18n.d.ts.map +1 -0
  546. package/dist/features/paragraph/server/i18n.js +131 -0
  547. package/dist/features/paragraph/server/i18n.js.map +1 -0
  548. package/dist/features/paragraph/server/index.d.ts +2 -0
  549. package/dist/features/paragraph/server/index.d.ts.map +1 -0
  550. package/dist/features/paragraph/server/index.js +11 -0
  551. package/dist/features/paragraph/server/index.js.map +1 -0
  552. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +13 -0
  553. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -0
  554. package/dist/features/relationship/client/components/RelationshipComponent.js +166 -0
  555. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -0
  556. package/dist/features/relationship/client/drawer/commands.d.ts.map +1 -0
  557. package/dist/features/relationship/client/drawer/commands.js +3 -0
  558. package/dist/features/relationship/client/drawer/commands.js.map +1 -0
  559. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -0
  560. package/dist/features/relationship/client/drawer/index.js +154 -0
  561. package/dist/features/relationship/client/drawer/index.js.map +1 -0
  562. package/dist/features/relationship/client/index.d.ts +18 -0
  563. package/dist/features/relationship/client/index.d.ts.map +1 -0
  564. package/dist/features/relationship/client/index.js +66 -0
  565. package/dist/features/relationship/client/index.js.map +1 -0
  566. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +15 -0
  567. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -0
  568. package/dist/features/relationship/client/nodes/RelationshipNode.js +75 -0
  569. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -0
  570. package/dist/features/relationship/client/plugins/index.d.ts +7 -0
  571. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -0
  572. package/dist/features/relationship/client/plugins/index.js +105 -0
  573. package/dist/features/relationship/client/plugins/index.js.map +1 -0
  574. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  575. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js +104 -0
  576. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js.map +1 -0
  577. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +5 -0
  578. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -0
  579. package/dist/features/relationship/server/graphQLPopulationPromise.js +37 -0
  580. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -0
  581. package/dist/features/relationship/server/i18n.d.ts.map +1 -0
  582. package/dist/features/relationship/server/i18n.js +99 -0
  583. package/dist/features/relationship/server/i18n.js.map +1 -0
  584. package/dist/features/relationship/server/index.d.ts +27 -0
  585. package/dist/features/relationship/server/index.d.ts.map +1 -0
  586. package/dist/features/relationship/server/index.js +57 -0
  587. package/dist/features/relationship/server/index.js.map +1 -0
  588. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +37 -0
  589. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -0
  590. package/dist/features/relationship/server/nodes/RelationshipNode.js +104 -0
  591. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -0
  592. package/dist/features/shared/slashMenu/basicGroup.js +9 -8
  593. package/dist/features/shared/slashMenu/basicGroup.js.map +1 -1
  594. package/dist/features/shared/toolbar/addDropdownGroup.js +8 -9
  595. package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -1
  596. package/dist/features/shared/toolbar/featureButtonsGroup.js +7 -8
  597. package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -1
  598. package/dist/features/shared/toolbar/textDropdownGroup.js +8 -9
  599. package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -1
  600. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +5 -0
  601. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -0
  602. package/dist/features/toolbars/fixed/client/Toolbar/index.js +286 -0
  603. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -0
  604. package/dist/features/toolbars/fixed/client/index.d.ts +6 -0
  605. package/dist/features/toolbars/fixed/client/index.d.ts.map +1 -0
  606. package/dist/features/toolbars/fixed/client/index.js +11 -0
  607. package/dist/features/toolbars/fixed/client/index.js.map +1 -0
  608. package/dist/features/toolbars/fixed/server/index.d.ts +18 -0
  609. package/dist/features/toolbars/fixed/server/index.d.ts.map +1 -0
  610. package/dist/features/toolbars/fixed/server/index.js +18 -0
  611. package/dist/features/toolbars/fixed/server/index.js.map +1 -0
  612. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +4 -0
  613. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -0
  614. package/dist/features/toolbars/inline/client/Toolbar/index.js +366 -0
  615. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -0
  616. package/dist/features/toolbars/inline/client/index.d.ts +5 -0
  617. package/dist/features/toolbars/inline/client/index.d.ts.map +1 -0
  618. package/dist/features/toolbars/inline/client/index.js +11 -0
  619. package/dist/features/toolbars/inline/client/index.js.map +1 -0
  620. package/dist/features/toolbars/inline/server/index.d.ts +2 -0
  621. package/dist/features/toolbars/inline/server/index.d.ts.map +1 -0
  622. package/dist/features/toolbars/inline/server/index.js +8 -0
  623. package/dist/features/toolbars/inline/server/index.js.map +1 -0
  624. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
  625. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  626. package/dist/features/toolbars/shared/ToolbarButton/index.js +75 -97
  627. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  628. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +190 -211
  629. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  630. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
  631. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  632. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +289 -122
  633. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  634. package/dist/features/toolbars/types.d.ts +2 -1
  635. package/dist/features/toolbars/types.d.ts.map +1 -1
  636. package/dist/features/toolbars/types.js +1 -2
  637. package/dist/features/toolbars/types.js.map +1 -1
  638. package/dist/features/typeUtilities.js +2 -3
  639. package/dist/features/typeUtilities.js.map +1 -1
  640. package/dist/features/typesClient.js +1 -2
  641. package/dist/features/typesClient.js.map +1 -1
  642. package/dist/features/typesServer.d.ts +17 -13
  643. package/dist/features/typesServer.d.ts.map +1 -1
  644. package/dist/features/typesServer.js +1 -2
  645. package/dist/features/typesServer.js.map +1 -1
  646. package/dist/features/upload/client/component/index.d.ts +9 -0
  647. package/dist/features/upload/client/component/index.d.ts.map +1 -0
  648. package/dist/features/upload/client/component/index.js +235 -0
  649. package/dist/features/upload/client/component/index.js.map +1 -0
  650. package/dist/features/upload/client/drawer/commands.d.ts.map +1 -0
  651. package/dist/features/upload/client/drawer/commands.js +5 -0
  652. package/dist/features/upload/client/drawer/commands.js.map +1 -0
  653. package/dist/features/upload/client/drawer/index.d.ts.map +1 -0
  654. package/dist/features/upload/client/drawer/index.js +126 -0
  655. package/dist/features/upload/client/drawer/index.js.map +1 -0
  656. package/dist/features/upload/client/feature.client.d.ts.map +1 -0
  657. package/dist/features/upload/client/feature.client.js +64 -0
  658. package/dist/features/upload/client/feature.client.js.map +1 -0
  659. package/dist/features/upload/client/nodes/UploadNode.d.ts +22 -0
  660. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -0
  661. package/dist/features/upload/client/nodes/UploadNode.js +94 -0
  662. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -0
  663. package/dist/features/upload/client/plugin/index.d.ts +8 -0
  664. package/dist/features/upload/client/plugin/index.d.ts.map +1 -0
  665. package/dist/features/upload/client/plugin/index.js +81 -0
  666. package/dist/features/upload/client/plugin/index.js.map +1 -0
  667. package/dist/features/upload/server/feature.server.d.ts +18 -0
  668. package/dist/features/upload/server/feature.server.d.ts.map +1 -0
  669. package/dist/features/upload/server/feature.server.js +208 -0
  670. package/dist/features/upload/server/feature.server.js.map +1 -0
  671. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +5 -0
  672. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -0
  673. package/dist/features/upload/server/graphQLPopulationPromise.js +65 -0
  674. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -0
  675. package/dist/features/upload/server/i18n.d.ts.map +1 -0
  676. package/dist/features/upload/server/i18n.js +99 -0
  677. package/dist/features/upload/server/i18n.js.map +1 -0
  678. package/dist/features/upload/server/nodes/UploadNode.d.ts +42 -0
  679. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -0
  680. package/dist/features/upload/server/nodes/UploadNode.js +133 -0
  681. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -0
  682. package/dist/features/upload/server/validate.d.ts +5 -0
  683. package/dist/features/upload/server/validate.d.ts.map +1 -0
  684. package/dist/features/upload/server/validate.js +58 -0
  685. package/dist/features/upload/server/validate.js.map +1 -0
  686. package/dist/field/Field.d.ts +7 -7
  687. package/dist/field/Field.d.ts.map +1 -1
  688. package/dist/field/Field.js +127 -103
  689. package/dist/field/Field.js.map +1 -1
  690. package/dist/field/bundled.css +1 -0
  691. package/dist/field/index.d.ts +2 -9
  692. package/dist/field/index.d.ts.map +1 -1
  693. package/dist/field/index.js +92 -36
  694. package/dist/field/index.js.map +1 -1
  695. package/dist/i18n.js +160 -161
  696. package/dist/i18n.js.map +1 -1
  697. package/dist/index.d.ts +23 -38
  698. package/dist/index.d.ts.map +1 -1
  699. package/dist/index.js +692 -630
  700. package/dist/index.js.map +1 -1
  701. package/dist/lexical/EditorPlugin.d.ts.map +1 -1
  702. package/dist/lexical/EditorPlugin.js +15 -10
  703. package/dist/lexical/EditorPlugin.js.map +1 -1
  704. package/dist/lexical/LexicalEditor.js +206 -161
  705. package/dist/lexical/LexicalEditor.js.map +1 -1
  706. package/dist/lexical/LexicalProvider.d.ts +2 -6
  707. package/dist/lexical/LexicalProvider.d.ts.map +1 -1
  708. package/dist/lexical/LexicalProvider.js +83 -82
  709. package/dist/lexical/LexicalProvider.js.map +1 -1
  710. package/dist/lexical/config/client/EditorConfigProvider.d.ts +4 -12
  711. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  712. package/dist/lexical/config/client/EditorConfigProvider.js +76 -79
  713. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  714. package/dist/lexical/config/client/default.js +3 -3
  715. package/dist/lexical/config/client/default.js.map +1 -1
  716. package/dist/lexical/config/client/loader.js +42 -39
  717. package/dist/lexical/config/client/loader.js.map +1 -1
  718. package/dist/lexical/config/client/sanitize.js +165 -165
  719. package/dist/lexical/config/client/sanitize.js.map +1 -1
  720. package/dist/lexical/config/server/default.js +18 -40
  721. package/dist/lexical/config/server/default.js.map +1 -1
  722. package/dist/lexical/config/server/loader.js +103 -103
  723. package/dist/lexical/config/server/loader.js.map +1 -1
  724. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  725. package/dist/lexical/config/server/sanitize.js +102 -85
  726. package/dist/lexical/config/server/sanitize.js.map +1 -1
  727. package/dist/lexical/config/types.js +1 -2
  728. package/dist/lexical/config/types.js.map +1 -1
  729. package/dist/lexical/nodes/index.js +9 -8
  730. package/dist/lexical/nodes/index.js.map +1 -1
  731. package/dist/lexical/plugins/MarkdownShortcut/index.js +17 -5
  732. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  733. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +346 -361
  734. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  735. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +223 -160
  736. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
  737. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +6 -2
  738. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  739. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +1 -2
  740. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  741. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  742. package/dist/lexical/plugins/SlashMenu/index.js +192 -170
  743. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  744. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -1
  745. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +41 -26
  746. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -1
  747. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +126 -130
  748. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  749. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
  750. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +11 -10
  751. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -1
  752. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -1
  753. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +11 -10
  754. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -1
  755. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -1
  756. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +27 -23
  757. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -1
  758. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  759. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +306 -300
  760. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  761. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -1
  762. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +95 -100
  763. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  764. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
  765. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +23 -16
  766. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -1
  767. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -1
  768. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +18 -27
  769. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -1
  770. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -1
  771. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js +15 -11
  772. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -1
  773. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -1
  774. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +133 -118
  775. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -1
  776. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -1
  777. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +3 -2
  778. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -1
  779. package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -1
  780. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js +3 -2
  781. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -1
  782. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  783. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +24 -25
  784. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  785. package/dist/lexical/theme/EditorTheme.d.ts +0 -1
  786. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
  787. package/dist/lexical/theme/EditorTheme.js +97 -102
  788. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  789. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
  790. package/dist/lexical/ui/ContentEditable.js +27 -10
  791. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  792. package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -1
  793. package/dist/lexical/ui/icons/AI/index.js +31 -33
  794. package/dist/lexical/ui/icons/AI/index.js.map +1 -1
  795. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -1
  796. package/dist/lexical/ui/icons/Add/index.js +16 -18
  797. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  798. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -1
  799. package/dist/lexical/ui/icons/AlignCenter/index.js +25 -28
  800. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  801. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -1
  802. package/dist/lexical/ui/icons/AlignJustify/index.js +25 -28
  803. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  804. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -1
  805. package/dist/lexical/ui/icons/AlignLeft/index.js +25 -28
  806. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  807. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -1
  808. package/dist/lexical/ui/icons/AlignRight/index.js +25 -28
  809. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  810. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -1
  811. package/dist/lexical/ui/icons/Block/index.js +34 -37
  812. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  813. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -1
  814. package/dist/lexical/ui/icons/Blockquote/index.js +16 -15
  815. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  816. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -1
  817. package/dist/lexical/ui/icons/Bold/index.js +16 -15
  818. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  819. package/dist/lexical/ui/icons/Caret/index.svg +2 -2
  820. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -1
  821. package/dist/lexical/ui/icons/Checklist/index.js +24 -26
  822. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  823. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -1
  824. package/dist/lexical/ui/icons/Code/index.js +19 -21
  825. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  826. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -1
  827. package/dist/lexical/ui/icons/CodeBlock/index.js +19 -21
  828. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  829. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -1
  830. package/dist/lexical/ui/icons/H1/index.js +16 -15
  831. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  832. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -1
  833. package/dist/lexical/ui/icons/H2/index.js +16 -15
  834. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  835. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  836. package/dist/lexical/ui/icons/H3/index.js +16 -15
  837. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  838. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  839. package/dist/lexical/ui/icons/H4/index.js +16 -15
  840. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  841. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  842. package/dist/lexical/ui/icons/H5/index.js +16 -15
  843. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  844. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  845. package/dist/lexical/ui/icons/H6/index.js +16 -15
  846. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  847. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -1
  848. package/dist/lexical/ui/icons/HorizontalRule/index.js +19 -18
  849. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  850. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -1
  851. package/dist/lexical/ui/icons/IndentDecrease/index.js +28 -32
  852. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  853. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -1
  854. package/dist/lexical/ui/icons/IndentIncrease/index.js +28 -32
  855. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  856. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -1
  857. package/dist/lexical/ui/icons/InlineBlocks/index.js +18 -17
  858. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
  859. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -1
  860. package/dist/lexical/ui/icons/Italic/index.js +16 -15
  861. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  862. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -1
  863. package/dist/lexical/ui/icons/Link/index.js +17 -16
  864. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  865. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -1
  866. package/dist/lexical/ui/icons/Meatballs/index.js +19 -22
  867. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
  868. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -1
  869. package/dist/lexical/ui/icons/OrderedList/index.js +31 -36
  870. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  871. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -1
  872. package/dist/lexical/ui/icons/Relationship/index.js +31 -33
  873. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  874. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -1
  875. package/dist/lexical/ui/icons/Strikethrough/index.js +19 -21
  876. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  877. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -1
  878. package/dist/lexical/ui/icons/Subscript/index.js +16 -15
  879. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  880. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -1
  881. package/dist/lexical/ui/icons/Superscript/index.js +16 -15
  882. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  883. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
  884. package/dist/lexical/ui/icons/Table/index.js +17 -16
  885. package/dist/lexical/ui/icons/Table/index.js.map +1 -1
  886. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -1
  887. package/dist/lexical/ui/icons/Text/index.js +16 -15
  888. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  889. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -1
  890. package/dist/lexical/ui/icons/Underline/index.js +19 -21
  891. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  892. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -1
  893. package/dist/lexical/ui/icons/UnorderedList/index.js +46 -52
  894. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  895. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -1
  896. package/dist/lexical/ui/icons/Upload/index.js +28 -31
  897. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  898. package/dist/lexical/utils/canUseDOM.d.ts.map +1 -1
  899. package/dist/lexical/utils/canUseDOM.js +2 -1
  900. package/dist/lexical/utils/canUseDOM.js.map +1 -1
  901. package/dist/lexical/utils/environment.d.ts.map +1 -1
  902. package/dist/lexical/utils/environment.js +2 -1
  903. package/dist/lexical/utils/environment.js.map +1 -1
  904. package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -1
  905. package/dist/lexical/utils/getDOMRangeRect.js +13 -12
  906. package/dist/lexical/utils/getDOMRangeRect.js.map +1 -1
  907. package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -1
  908. package/dist/lexical/utils/getSelectedNode.js +18 -13
  909. package/dist/lexical/utils/getSelectedNode.js.map +1 -1
  910. package/dist/lexical/utils/guard.d.ts.map +1 -1
  911. package/dist/lexical/utils/guard.js +3 -2
  912. package/dist/lexical/utils/guard.js.map +1 -1
  913. package/dist/lexical/utils/joinClasses.d.ts.map +1 -1
  914. package/dist/lexical/utils/joinClasses.js +3 -2
  915. package/dist/lexical/utils/joinClasses.js.map +1 -1
  916. package/dist/lexical/utils/markdown/createBlockNode.js +9 -10
  917. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  918. package/dist/lexical/utils/nodeFormat.js +58 -59
  919. package/dist/lexical/utils/nodeFormat.js.map +1 -1
  920. package/dist/lexical/utils/point.d.ts.map +1 -1
  921. package/dist/lexical/utils/point.js +40 -32
  922. package/dist/lexical/utils/point.js.map +1 -1
  923. package/dist/lexical/utils/rect.d.ts.map +1 -1
  924. package/dist/lexical/utils/rect.js +167 -134
  925. package/dist/lexical/utils/rect.js.map +1 -1
  926. package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -1
  927. package/dist/lexical/utils/setFloatingElemPosition.js +57 -46
  928. package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -1
  929. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -1
  930. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js +23 -22
  931. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -1
  932. package/dist/lexical/utils/swipe.d.ts.map +1 -1
  933. package/dist/lexical/utils/swipe.js +82 -83
  934. package/dist/lexical/utils/swipe.js.map +1 -1
  935. package/dist/lexical/utils/url.js +23 -22
  936. package/dist/lexical/utils/url.js.map +1 -1
  937. package/dist/nodeTypes.d.ts +8 -8
  938. package/dist/nodeTypes.d.ts.map +1 -1
  939. package/dist/nodeTypes.js +1 -2
  940. package/dist/nodeTypes.js.map +1 -1
  941. package/dist/populateGraphQL/defaultValue.js +24 -29
  942. package/dist/populateGraphQL/defaultValue.js.map +1 -1
  943. package/dist/populateGraphQL/populate.js +35 -25
  944. package/dist/populateGraphQL/populate.js.map +1 -1
  945. package/dist/populateGraphQL/populateLexicalPopulationPromises.js +47 -32
  946. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  947. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +39 -25
  948. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -1
  949. package/dist/types.d.ts +6 -8
  950. package/dist/types.d.ts.map +1 -1
  951. package/dist/types.js +1 -2
  952. package/dist/types.js.map +1 -1
  953. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  954. package/dist/utilities/createClientFeature.js +40 -26
  955. package/dist/utilities/createClientFeature.js.map +1 -1
  956. package/dist/utilities/createServerFeature.d.ts.map +1 -1
  957. package/dist/utilities/createServerFeature.js +46 -31
  958. package/dist/utilities/createServerFeature.js.map +1 -1
  959. package/dist/utilities/fieldsDrawer/Drawer.d.ts +10 -8
  960. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -1
  961. package/dist/utilities/fieldsDrawer/Drawer.js +28 -15
  962. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
  963. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  964. package/dist/utilities/fieldsDrawer/DrawerContent.js +149 -78
  965. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  966. package/dist/utilities/forEachNodeRecursively.js +24 -19
  967. package/dist/utilities/forEachNodeRecursively.js.map +1 -1
  968. package/dist/utilities/generateComponentMap.d.ts +2 -2
  969. package/dist/utilities/generateComponentMap.d.ts.map +1 -1
  970. package/dist/utilities/generateComponentMap.js +95 -75
  971. package/dist/utilities/generateComponentMap.js.map +1 -1
  972. package/dist/utilities/generateImportMap.d.ts +6 -0
  973. package/dist/utilities/generateImportMap.d.ts.map +1 -0
  974. package/dist/utilities/generateImportMap.js +56 -0
  975. package/dist/utilities/generateImportMap.js.map +1 -0
  976. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  977. package/dist/utilities/generateSchemaMap.js +35 -29
  978. package/dist/utilities/generateSchemaMap.js.map +1 -1
  979. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +1 -1
  980. package/dist/utilities/migrateSlateToLexical/index.js +125 -81
  981. package/dist/utilities/migrateSlateToLexical/index.js.map +1 -1
  982. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -1
  983. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +73 -70
  984. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -1
  985. package/dist/utilities/recurseNodeTree.js +25 -22
  986. package/dist/utilities/recurseNodeTree.js.map +1 -1
  987. package/dist/utilities/upgradeLexicalData/index.js +99 -86
  988. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  989. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +71 -66
  990. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
  991. package/dist/utilities/useLexicalFeature.js +9 -8
  992. package/dist/utilities/useLexicalFeature.js.map +1 -1
  993. package/dist/validate/index.d.ts.map +1 -1
  994. package/dist/validate/index.js +45 -24
  995. package/dist/validate/index.js.map +1 -1
  996. package/dist/validate/validateNodes.js +31 -28
  997. package/dist/validate/validateNodes.js.map +1 -1
  998. package/package.json +36 -15
  999. package/dist/exports/client/Component-7HS6FEJS.js +0 -2
  1000. package/dist/exports/client/Component-7HS6FEJS.js.map +0 -7
  1001. package/dist/exports/client/Component-LAKSCIDX.js +0 -2
  1002. package/dist/exports/client/Component-LAKSCIDX.js.map +0 -7
  1003. package/dist/exports/client/Field-5GGTGCKC.js +0 -2
  1004. package/dist/exports/client/Field-5GGTGCKC.js.map +0 -7
  1005. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js +0 -2
  1006. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js.map +0 -7
  1007. package/dist/exports/client/chunk-6QXGZYUK.js +0 -2
  1008. package/dist/exports/client/chunk-6QXGZYUK.js.map +0 -7
  1009. package/dist/exports/client/chunk-EBB2CEB6.js +0 -2
  1010. package/dist/exports/client/chunk-EBB2CEB6.js.map +0 -7
  1011. package/dist/exports/client/chunk-IPCJ5EVK.js +0 -2
  1012. package/dist/exports/client/chunk-IPCJ5EVK.js.map +0 -7
  1013. package/dist/exports/client/chunk-IWZVO3AI.js +0 -2
  1014. package/dist/exports/client/chunk-IWZVO3AI.js.map +0 -7
  1015. package/dist/exports/client/chunk-Q5DYR7MH.js +0 -3
  1016. package/dist/exports/client/chunk-Q5DYR7MH.js.map +0 -7
  1017. package/dist/exports/client/chunk-VUVXZJJR.js +0 -2
  1018. package/dist/exports/client/chunk-VUVXZJJR.js.map +0 -7
  1019. package/dist/exports/client/component-D4GWDXK5.js +0 -2
  1020. package/dist/exports/client/component-D4GWDXK5.js.map +0 -7
  1021. package/dist/exports/client/component-KA7FDRMA.js +0 -2
  1022. package/dist/exports/client/component-KA7FDRMA.js.map +0 -7
  1023. package/dist/exports/client/component-VM36FRT2.js +0 -2
  1024. package/dist/exports/client/component-VM36FRT2.js.map +0 -7
  1025. package/dist/exports/client/componentInline-6EKPZSCV.js +0 -2
  1026. package/dist/exports/client/componentInline-6EKPZSCV.js.map +0 -7
  1027. package/dist/features/align/feature.client.d.ts +0 -5
  1028. package/dist/features/align/feature.client.d.ts.map +0 -1
  1029. package/dist/features/align/feature.client.js +0 -146
  1030. package/dist/features/align/feature.client.js.map +0 -1
  1031. package/dist/features/align/feature.server.d.ts +0 -2
  1032. package/dist/features/align/feature.server.d.ts.map +0 -1
  1033. package/dist/features/align/feature.server.js +0 -13
  1034. package/dist/features/align/feature.server.js.map +0 -1
  1035. package/dist/features/align/i18n.d.ts.map +0 -1
  1036. package/dist/features/align/i18n.js +0 -196
  1037. package/dist/features/align/i18n.js.map +0 -1
  1038. package/dist/features/align/toolbarAlignGroup.d.ts +0 -3
  1039. package/dist/features/align/toolbarAlignGroup.d.ts.map +0 -1
  1040. package/dist/features/align/toolbarAlignGroup.js +0 -12
  1041. package/dist/features/align/toolbarAlignGroup.js.map +0 -1
  1042. package/dist/features/blockquote/feature.client.d.ts +0 -5
  1043. package/dist/features/blockquote/feature.client.d.ts.map +0 -1
  1044. package/dist/features/blockquote/feature.client.js +0 -77
  1045. package/dist/features/blockquote/feature.client.js.map +0 -1
  1046. package/dist/features/blockquote/feature.server.d.ts +0 -7
  1047. package/dist/features/blockquote/feature.server.d.ts.map +0 -1
  1048. package/dist/features/blockquote/feature.server.js +0 -48
  1049. package/dist/features/blockquote/feature.server.js.map +0 -1
  1050. package/dist/features/blockquote/i18n.d.ts.map +0 -1
  1051. package/dist/features/blockquote/i18n.js +0 -100
  1052. package/dist/features/blockquote/i18n.js.map +0 -1
  1053. package/dist/features/blocks/component/BlockContent.d.ts +0 -27
  1054. package/dist/features/blocks/component/BlockContent.d.ts.map +0 -1
  1055. package/dist/features/blocks/component/BlockContent.js +0 -196
  1056. package/dist/features/blocks/component/BlockContent.js.map +0 -1
  1057. package/dist/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
  1058. package/dist/features/blocks/component/FormSavePlugin.js +0 -29
  1059. package/dist/features/blocks/component/FormSavePlugin.js.map +0 -1
  1060. package/dist/features/blocks/component/index.d.ts +0 -11
  1061. package/dist/features/blocks/component/index.d.ts.map +0 -1
  1062. package/dist/features/blocks/component/index.js +0 -162
  1063. package/dist/features/blocks/component/index.js.map +0 -1
  1064. package/dist/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
  1065. package/dist/features/blocks/component/removeEmptyArrayValues.js +0 -16
  1066. package/dist/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
  1067. package/dist/features/blocks/componentInline/index.d.ts.map +0 -1
  1068. package/dist/features/blocks/componentInline/index.js +0 -133
  1069. package/dist/features/blocks/componentInline/index.js.map +0 -1
  1070. package/dist/features/blocks/feature.client.d.ts +0 -13
  1071. package/dist/features/blocks/feature.client.d.ts.map +0 -1
  1072. package/dist/features/blocks/feature.client.js +0 -148
  1073. package/dist/features/blocks/feature.client.js.map +0 -1
  1074. package/dist/features/blocks/feature.server.d.ts +0 -8
  1075. package/dist/features/blocks/feature.server.d.ts.map +0 -1
  1076. package/dist/features/blocks/feature.server.js +0 -160
  1077. package/dist/features/blocks/feature.server.js.map +0 -1
  1078. package/dist/features/blocks/graphQLPopulationPromise.d.ts +0 -6
  1079. package/dist/features/blocks/graphQLPopulationPromise.d.ts.map +0 -1
  1080. package/dist/features/blocks/graphQLPopulationPromise.js +0 -31
  1081. package/dist/features/blocks/graphQLPopulationPromise.js.map +0 -1
  1082. package/dist/features/blocks/i18n.d.ts.map +0 -1
  1083. package/dist/features/blocks/i18n.js +0 -292
  1084. package/dist/features/blocks/i18n.js.map +0 -1
  1085. package/dist/features/blocks/nodes/BlocksNode.d.ts +0 -38
  1086. package/dist/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
  1087. package/dist/features/blocks/nodes/BlocksNode.js +0 -92
  1088. package/dist/features/blocks/nodes/BlocksNode.js.map +0 -1
  1089. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts +0 -39
  1090. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts.map +0 -1
  1091. package/dist/features/blocks/nodes/InlineBlocksNode.js +0 -94
  1092. package/dist/features/blocks/nodes/InlineBlocksNode.js.map +0 -1
  1093. package/dist/features/blocks/plugin/commands.d.ts.map +0 -1
  1094. package/dist/features/blocks/plugin/commands.js +0 -6
  1095. package/dist/features/blocks/plugin/commands.js.map +0 -1
  1096. package/dist/features/blocks/plugin/index.d.ts +0 -6
  1097. package/dist/features/blocks/plugin/index.d.ts.map +0 -1
  1098. package/dist/features/blocks/plugin/index.js +0 -111
  1099. package/dist/features/blocks/plugin/index.js.map +0 -1
  1100. package/dist/features/blocks/validate.d.ts +0 -6
  1101. package/dist/features/blocks/validate.d.ts.map +0 -1
  1102. package/dist/features/blocks/validate.js +0 -37
  1103. package/dist/features/blocks/validate.js.map +0 -1
  1104. package/dist/features/converters/html/feature.server.d.ts +0 -8
  1105. package/dist/features/converters/html/feature.server.d.ts.map +0 -1
  1106. package/dist/features/converters/html/feature.server.js +0 -8
  1107. package/dist/features/converters/html/feature.server.js.map +0 -1
  1108. package/dist/features/debug/testRecorder/feature.client.d.ts +0 -5
  1109. package/dist/features/debug/testRecorder/feature.client.d.ts.map +0 -1
  1110. package/dist/features/debug/testRecorder/feature.client.js +0 -13
  1111. package/dist/features/debug/testRecorder/feature.client.js.map +0 -1
  1112. package/dist/features/debug/testRecorder/feature.server.d.ts +0 -2
  1113. package/dist/features/debug/testRecorder/feature.server.d.ts.map +0 -1
  1114. package/dist/features/debug/testRecorder/feature.server.js +0 -11
  1115. package/dist/features/debug/testRecorder/feature.server.js.map +0 -1
  1116. package/dist/features/debug/testRecorder/plugin/index.d.ts +0 -5
  1117. package/dist/features/debug/testRecorder/plugin/index.d.ts.map +0 -1
  1118. package/dist/features/debug/testRecorder/plugin/index.js +0 -471
  1119. package/dist/features/debug/testRecorder/plugin/index.js.map +0 -1
  1120. package/dist/features/debug/treeView/feature.client.d.ts +0 -5
  1121. package/dist/features/debug/treeView/feature.client.d.ts.map +0 -1
  1122. package/dist/features/debug/treeView/feature.client.js +0 -13
  1123. package/dist/features/debug/treeView/feature.client.js.map +0 -1
  1124. package/dist/features/debug/treeView/feature.server.d.ts +0 -2
  1125. package/dist/features/debug/treeView/feature.server.d.ts.map +0 -1
  1126. package/dist/features/debug/treeView/feature.server.js +0 -11
  1127. package/dist/features/debug/treeView/feature.server.js.map +0 -1
  1128. package/dist/features/debug/treeView/plugin/index.d.ts +0 -4
  1129. package/dist/features/debug/treeView/plugin/index.d.ts.map +0 -1
  1130. package/dist/features/debug/treeView/plugin/index.js +0 -19
  1131. package/dist/features/debug/treeView/plugin/index.js.map +0 -1
  1132. package/dist/features/experimental_table/feature.client.d.ts +0 -2
  1133. package/dist/features/experimental_table/feature.client.d.ts.map +0 -1
  1134. package/dist/features/experimental_table/feature.client.js +0 -71
  1135. package/dist/features/experimental_table/feature.client.js.map +0 -1
  1136. package/dist/features/experimental_table/feature.server.d.ts +0 -13
  1137. package/dist/features/experimental_table/feature.server.d.ts.map +0 -1
  1138. package/dist/features/experimental_table/feature.server.js +0 -125
  1139. package/dist/features/experimental_table/feature.server.js.map +0 -1
  1140. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts +0 -4
  1141. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts.map +0 -1
  1142. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js +0 -604
  1143. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js.map +0 -1
  1144. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts +0 -3
  1145. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts.map +0 -1
  1146. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js +0 -327
  1147. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js.map +0 -1
  1148. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.d.ts +0 -12
  1149. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
  1150. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js +0 -181
  1151. package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js.map +0 -1
  1152. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts +0 -24
  1153. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts.map +0 -1
  1154. package/dist/features/experimental_table/plugins/TablePlugin/index.js +0 -98
  1155. package/dist/features/experimental_table/plugins/TablePlugin/index.js.map +0 -1
  1156. package/dist/features/experimental_table/utils/debounce.d.ts.map +0 -1
  1157. package/dist/features/experimental_table/utils/debounce.js +0 -202
  1158. package/dist/features/experimental_table/utils/debounce.js.map +0 -1
  1159. package/dist/features/experimental_table/utils/useDebounce.d.ts.map +0 -1
  1160. package/dist/features/experimental_table/utils/useDebounce.js +0 -18
  1161. package/dist/features/experimental_table/utils/useDebounce.js.map +0 -1
  1162. package/dist/features/heading/feature.client.d.ts +0 -6
  1163. package/dist/features/heading/feature.client.d.ts.map +0 -1
  1164. package/dist/features/heading/feature.client.js +0 -112
  1165. package/dist/features/heading/feature.client.js.map +0 -1
  1166. package/dist/features/heading/feature.server.d.ts +0 -10
  1167. package/dist/features/heading/feature.server.d.ts.map +0 -1
  1168. package/dist/features/heading/feature.server.js +0 -62
  1169. package/dist/features/heading/feature.server.js.map +0 -1
  1170. package/dist/features/heading/i18n.d.ts.map +0 -1
  1171. package/dist/features/heading/i18n.js +0 -100
  1172. package/dist/features/heading/i18n.js.map +0 -1
  1173. package/dist/features/horizontalRule/component/index.d.ts.map +0 -1
  1174. package/dist/features/horizontalRule/component/index.js +0 -67
  1175. package/dist/features/horizontalRule/component/index.js.map +0 -1
  1176. package/dist/features/horizontalRule/feature.client.d.ts +0 -5
  1177. package/dist/features/horizontalRule/feature.client.d.ts.map +0 -1
  1178. package/dist/features/horizontalRule/feature.client.js +0 -70
  1179. package/dist/features/horizontalRule/feature.client.js.map +0 -1
  1180. package/dist/features/horizontalRule/feature.server.d.ts +0 -2
  1181. package/dist/features/horizontalRule/feature.server.d.ts.map +0 -1
  1182. package/dist/features/horizontalRule/feature.server.js +0 -34
  1183. package/dist/features/horizontalRule/feature.server.js.map +0 -1
  1184. package/dist/features/horizontalRule/i18n.d.ts.map +0 -1
  1185. package/dist/features/horizontalRule/i18n.js +0 -100
  1186. package/dist/features/horizontalRule/i18n.js.map +0 -1
  1187. package/dist/features/horizontalRule/markdownTransformer.d.ts.map +0 -1
  1188. package/dist/features/horizontalRule/markdownTransformer.js +0 -23
  1189. package/dist/features/horizontalRule/markdownTransformer.js.map +0 -1
  1190. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts +0 -56
  1191. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  1192. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js +0 -92
  1193. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js.map +0 -1
  1194. package/dist/features/horizontalRule/plugin/index.d.ts +0 -7
  1195. package/dist/features/horizontalRule/plugin/index.d.ts.map +0 -1
  1196. package/dist/features/horizontalRule/plugin/index.js +0 -30
  1197. package/dist/features/horizontalRule/plugin/index.js.map +0 -1
  1198. package/dist/features/indent/feature.client.d.ts +0 -5
  1199. package/dist/features/indent/feature.client.d.ts.map +0 -1
  1200. package/dist/features/indent/feature.client.js +0 -56
  1201. package/dist/features/indent/feature.client.js.map +0 -1
  1202. package/dist/features/indent/feature.server.d.ts +0 -2
  1203. package/dist/features/indent/feature.server.d.ts.map +0 -1
  1204. package/dist/features/indent/feature.server.js +0 -13
  1205. package/dist/features/indent/feature.server.js.map +0 -1
  1206. package/dist/features/indent/i18n.d.ts.map +0 -1
  1207. package/dist/features/indent/i18n.js +0 -132
  1208. package/dist/features/indent/i18n.js.map +0 -1
  1209. package/dist/features/indent/toolbarIndentGroup.d.ts +0 -3
  1210. package/dist/features/indent/toolbarIndentGroup.d.ts.map +0 -1
  1211. package/dist/features/indent/toolbarIndentGroup.js +0 -10
  1212. package/dist/features/indent/toolbarIndentGroup.js.map +0 -1
  1213. package/dist/features/link/drawer/baseFields.d.ts.map +0 -1
  1214. package/dist/features/link/drawer/baseFields.js +0 -94
  1215. package/dist/features/link/drawer/baseFields.js.map +0 -1
  1216. package/dist/features/link/feature.client.d.ts +0 -16
  1217. package/dist/features/link/feature.client.d.ts.map +0 -1
  1218. package/dist/features/link/feature.client.js +0 -101
  1219. package/dist/features/link/feature.client.js.map +0 -1
  1220. package/dist/features/link/feature.server.d.ts +0 -35
  1221. package/dist/features/link/feature.server.d.ts.map +0 -1
  1222. package/dist/features/link/feature.server.js +0 -134
  1223. package/dist/features/link/feature.server.js.map +0 -1
  1224. package/dist/features/link/graphQLPopulationPromise.d.ts +0 -5
  1225. package/dist/features/link/graphQLPopulationPromise.d.ts.map +0 -1
  1226. package/dist/features/link/graphQLPopulationPromise.js +0 -31
  1227. package/dist/features/link/graphQLPopulationPromise.js.map +0 -1
  1228. package/dist/features/link/i18n.d.ts.map +0 -1
  1229. package/dist/features/link/i18n.js +0 -100
  1230. package/dist/features/link/i18n.js.map +0 -1
  1231. package/dist/features/link/plugins/autoLink/index.d.ts +0 -20
  1232. package/dist/features/link/plugins/autoLink/index.d.ts.map +0 -1
  1233. package/dist/features/link/plugins/autoLink/index.js +0 -336
  1234. package/dist/features/link/plugins/autoLink/index.js.map +0 -1
  1235. package/dist/features/link/plugins/clickableLink/index.d.ts +0 -4
  1236. package/dist/features/link/plugins/clickableLink/index.d.ts.map +0 -1
  1237. package/dist/features/link/plugins/clickableLink/index.js +0 -9
  1238. package/dist/features/link/plugins/clickableLink/index.js.map +0 -1
  1239. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  1240. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -4
  1241. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
  1242. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  1243. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -299
  1244. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
  1245. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts +0 -5
  1246. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  1247. package/dist/features/link/plugins/floatingLinkEditor/index.js +0 -13
  1248. package/dist/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
  1249. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts +0 -15
  1250. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  1251. package/dist/features/link/plugins/floatingLinkEditor/types.js +0 -6
  1252. package/dist/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
  1253. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -9
  1254. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  1255. package/dist/features/link/plugins/floatingLinkEditor/utilities.js +0 -20
  1256. package/dist/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
  1257. package/dist/features/link/plugins/link/index.d.ts +0 -4
  1258. package/dist/features/link/plugins/link/index.d.ts.map +0 -1
  1259. package/dist/features/link/plugins/link/index.js +0 -53
  1260. package/dist/features/link/plugins/link/index.js.map +0 -1
  1261. package/dist/features/link/validate.d.ts +0 -6
  1262. package/dist/features/link/validate.d.ts.map +0 -1
  1263. package/dist/features/link/validate.js +0 -29
  1264. package/dist/features/link/validate.js.map +0 -1
  1265. package/dist/features/lists/checklist/feature.client.d.ts +0 -5
  1266. package/dist/features/lists/checklist/feature.client.d.ts.map +0 -1
  1267. package/dist/features/lists/checklist/feature.client.js +0 -100
  1268. package/dist/features/lists/checklist/feature.client.js.map +0 -1
  1269. package/dist/features/lists/checklist/feature.server.d.ts +0 -2
  1270. package/dist/features/lists/checklist/feature.server.d.ts.map +0 -1
  1271. package/dist/features/lists/checklist/feature.server.js +0 -36
  1272. package/dist/features/lists/checklist/feature.server.js.map +0 -1
  1273. package/dist/features/lists/checklist/i18n.d.ts.map +0 -1
  1274. package/dist/features/lists/checklist/i18n.js +0 -100
  1275. package/dist/features/lists/checklist/i18n.js.map +0 -1
  1276. package/dist/features/lists/checklist/plugin/index.d.ts +0 -3
  1277. package/dist/features/lists/checklist/plugin/index.d.ts.map +0 -1
  1278. package/dist/features/lists/checklist/plugin/index.js +0 -9
  1279. package/dist/features/lists/checklist/plugin/index.js.map +0 -1
  1280. package/dist/features/lists/orderedList/feature.client.d.ts +0 -5
  1281. package/dist/features/lists/orderedList/feature.client.d.ts.map +0 -1
  1282. package/dist/features/lists/orderedList/feature.client.js +0 -90
  1283. package/dist/features/lists/orderedList/feature.client.js.map +0 -1
  1284. package/dist/features/lists/orderedList/feature.server.d.ts +0 -2
  1285. package/dist/features/lists/orderedList/feature.server.d.ts.map +0 -1
  1286. package/dist/features/lists/orderedList/feature.server.js +0 -36
  1287. package/dist/features/lists/orderedList/feature.server.js.map +0 -1
  1288. package/dist/features/lists/orderedList/i18n.d.ts.map +0 -1
  1289. package/dist/features/lists/orderedList/i18n.js +0 -100
  1290. package/dist/features/lists/orderedList/i18n.js.map +0 -1
  1291. package/dist/features/lists/unorderedList/feature.client.d.ts +0 -5
  1292. package/dist/features/lists/unorderedList/feature.client.d.ts.map +0 -1
  1293. package/dist/features/lists/unorderedList/feature.client.js +0 -88
  1294. package/dist/features/lists/unorderedList/feature.client.js.map +0 -1
  1295. package/dist/features/lists/unorderedList/feature.server.d.ts +0 -2
  1296. package/dist/features/lists/unorderedList/feature.server.d.ts.map +0 -1
  1297. package/dist/features/lists/unorderedList/feature.server.js +0 -34
  1298. package/dist/features/lists/unorderedList/feature.server.js.map +0 -1
  1299. package/dist/features/lists/unorderedList/i18n.d.ts.map +0 -1
  1300. package/dist/features/lists/unorderedList/i18n.js +0 -100
  1301. package/dist/features/lists/unorderedList/i18n.js.map +0 -1
  1302. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -5
  1303. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1304. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -6
  1305. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
  1306. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -3
  1307. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1308. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
  1309. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
  1310. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -5
  1311. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
  1312. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -6
  1313. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
  1314. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -3
  1315. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
  1316. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
  1317. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
  1318. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -5
  1319. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
  1320. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -6
  1321. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
  1322. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -3
  1323. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
  1324. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
  1325. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
  1326. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -5
  1327. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1328. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -6
  1329. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
  1330. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -3
  1331. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1332. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
  1333. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
  1334. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -5
  1335. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
  1336. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -6
  1337. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
  1338. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -3
  1339. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
  1340. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
  1341. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
  1342. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -5
  1343. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1344. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -6
  1345. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
  1346. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -3
  1347. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1348. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
  1349. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
  1350. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -5
  1351. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1352. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -6
  1353. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
  1354. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -3
  1355. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1356. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
  1357. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
  1358. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -5
  1359. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
  1360. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -6
  1361. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
  1362. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -3
  1363. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
  1364. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
  1365. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
  1366. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -5
  1367. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1368. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js +0 -6
  1369. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
  1370. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -3
  1371. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1372. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
  1373. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
  1374. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -5
  1375. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
  1376. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js +0 -6
  1377. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
  1378. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -3
  1379. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
  1380. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
  1381. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
  1382. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -5
  1383. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
  1384. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js +0 -6
  1385. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
  1386. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -3
  1387. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
  1388. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
  1389. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
  1390. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -5
  1391. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1392. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js +0 -6
  1393. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
  1394. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -3
  1395. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1396. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
  1397. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
  1398. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -5
  1399. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
  1400. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -6
  1401. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
  1402. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -3
  1403. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
  1404. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
  1405. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
  1406. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -5
  1407. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
  1408. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js +0 -6
  1409. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
  1410. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -3
  1411. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
  1412. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
  1413. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
  1414. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -5
  1415. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1416. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js +0 -6
  1417. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
  1418. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -3
  1419. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1420. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
  1421. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
  1422. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -5
  1423. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
  1424. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -6
  1425. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
  1426. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -3
  1427. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
  1428. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
  1429. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
  1430. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -5
  1431. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1432. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js +0 -6
  1433. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
  1434. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -3
  1435. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1436. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
  1437. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
  1438. package/dist/features/paragraph/feature.client.d.ts +0 -5
  1439. package/dist/features/paragraph/feature.client.d.ts.map +0 -1
  1440. package/dist/features/paragraph/feature.client.js +0 -71
  1441. package/dist/features/paragraph/feature.client.js.map +0 -1
  1442. package/dist/features/paragraph/feature.server.d.ts +0 -2
  1443. package/dist/features/paragraph/feature.server.d.ts.map +0 -1
  1444. package/dist/features/paragraph/feature.server.js +0 -14
  1445. package/dist/features/paragraph/feature.server.js.map +0 -1
  1446. package/dist/features/paragraph/i18n.d.ts.map +0 -1
  1447. package/dist/features/paragraph/i18n.js +0 -132
  1448. package/dist/features/paragraph/i18n.js.map +0 -1
  1449. package/dist/features/relationship/drawer/commands.d.ts.map +0 -1
  1450. package/dist/features/relationship/drawer/commands.js +0 -4
  1451. package/dist/features/relationship/drawer/commands.js.map +0 -1
  1452. package/dist/features/relationship/drawer/index.d.ts.map +0 -1
  1453. package/dist/features/relationship/drawer/index.js +0 -83
  1454. package/dist/features/relationship/drawer/index.js.map +0 -1
  1455. package/dist/features/relationship/feature.client.d.ts +0 -18
  1456. package/dist/features/relationship/feature.client.d.ts.map +0 -1
  1457. package/dist/features/relationship/feature.client.js +0 -72
  1458. package/dist/features/relationship/feature.client.js.map +0 -1
  1459. package/dist/features/relationship/feature.server.d.ts +0 -27
  1460. package/dist/features/relationship/feature.server.d.ts.map +0 -1
  1461. package/dist/features/relationship/feature.server.js +0 -55
  1462. package/dist/features/relationship/feature.server.js.map +0 -1
  1463. package/dist/features/relationship/graphQLPopulationPromise.d.ts +0 -5
  1464. package/dist/features/relationship/graphQLPopulationPromise.d.ts.map +0 -1
  1465. package/dist/features/relationship/graphQLPopulationPromise.js +0 -29
  1466. package/dist/features/relationship/graphQLPopulationPromise.js.map +0 -1
  1467. package/dist/features/relationship/i18n.d.ts.map +0 -1
  1468. package/dist/features/relationship/i18n.js +0 -100
  1469. package/dist/features/relationship/i18n.js.map +0 -1
  1470. package/dist/features/relationship/nodes/RelationshipNode.d.ts +0 -35
  1471. package/dist/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
  1472. package/dist/features/relationship/nodes/RelationshipNode.js +0 -111
  1473. package/dist/features/relationship/nodes/RelationshipNode.js.map +0 -1
  1474. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts +0 -13
  1475. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  1476. package/dist/features/relationship/nodes/components/RelationshipComponent.js +0 -171
  1477. package/dist/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
  1478. package/dist/features/relationship/plugins/index.d.ts +0 -7
  1479. package/dist/features/relationship/plugins/index.d.ts.map +0 -1
  1480. package/dist/features/relationship/plugins/index.js +0 -50
  1481. package/dist/features/relationship/plugins/index.js.map +0 -1
  1482. package/dist/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  1483. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js +0 -33
  1484. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
  1485. package/dist/features/toolbars/fixed/Toolbar/index.d.ts +0 -5
  1486. package/dist/features/toolbars/fixed/Toolbar/index.d.ts.map +0 -1
  1487. package/dist/features/toolbars/fixed/Toolbar/index.js +0 -207
  1488. package/dist/features/toolbars/fixed/Toolbar/index.js.map +0 -1
  1489. package/dist/features/toolbars/fixed/feature.client.d.ts +0 -6
  1490. package/dist/features/toolbars/fixed/feature.client.d.ts.map +0 -1
  1491. package/dist/features/toolbars/fixed/feature.client.js +0 -13
  1492. package/dist/features/toolbars/fixed/feature.client.js.map +0 -1
  1493. package/dist/features/toolbars/fixed/feature.server.d.ts +0 -18
  1494. package/dist/features/toolbars/fixed/feature.server.d.ts.map +0 -1
  1495. package/dist/features/toolbars/fixed/feature.server.js +0 -19
  1496. package/dist/features/toolbars/fixed/feature.server.js.map +0 -1
  1497. package/dist/features/toolbars/inline/Toolbar/index.d.ts +0 -4
  1498. package/dist/features/toolbars/inline/Toolbar/index.d.ts.map +0 -1
  1499. package/dist/features/toolbars/inline/Toolbar/index.js +0 -319
  1500. package/dist/features/toolbars/inline/Toolbar/index.js.map +0 -1
  1501. package/dist/features/toolbars/inline/feature.client.d.ts +0 -5
  1502. package/dist/features/toolbars/inline/feature.client.d.ts.map +0 -1
  1503. package/dist/features/toolbars/inline/feature.client.js +0 -13
  1504. package/dist/features/toolbars/inline/feature.client.js.map +0 -1
  1505. package/dist/features/toolbars/inline/feature.server.d.ts +0 -2
  1506. package/dist/features/toolbars/inline/feature.server.d.ts.map +0 -1
  1507. package/dist/features/toolbars/inline/feature.server.js +0 -11
  1508. package/dist/features/toolbars/inline/feature.server.js.map +0 -1
  1509. package/dist/features/upload/component/index.d.ts +0 -9
  1510. package/dist/features/upload/component/index.d.ts.map +0 -1
  1511. package/dist/features/upload/component/index.js +0 -242
  1512. package/dist/features/upload/component/index.js.map +0 -1
  1513. package/dist/features/upload/drawer/commands.d.ts.map +0 -1
  1514. package/dist/features/upload/drawer/commands.js +0 -5
  1515. package/dist/features/upload/drawer/commands.js.map +0 -1
  1516. package/dist/features/upload/drawer/index.d.ts.map +0 -1
  1517. package/dist/features/upload/drawer/index.js +0 -77
  1518. package/dist/features/upload/drawer/index.js.map +0 -1
  1519. package/dist/features/upload/feature.client.d.ts.map +0 -1
  1520. package/dist/features/upload/feature.client.js +0 -74
  1521. package/dist/features/upload/feature.client.js.map +0 -1
  1522. package/dist/features/upload/feature.server.d.ts +0 -18
  1523. package/dist/features/upload/feature.server.d.ts.map +0 -1
  1524. package/dist/features/upload/feature.server.js +0 -184
  1525. package/dist/features/upload/feature.server.js.map +0 -1
  1526. package/dist/features/upload/graphQLPopulationPromise.d.ts +0 -5
  1527. package/dist/features/upload/graphQLPopulationPromise.d.ts.map +0 -1
  1528. package/dist/features/upload/graphQLPopulationPromise.js +0 -52
  1529. package/dist/features/upload/graphQLPopulationPromise.js.map +0 -1
  1530. package/dist/features/upload/i18n.d.ts.map +0 -1
  1531. package/dist/features/upload/i18n.js +0 -100
  1532. package/dist/features/upload/i18n.js.map +0 -1
  1533. package/dist/features/upload/nodes/UploadNode.d.ts +0 -39
  1534. package/dist/features/upload/nodes/UploadNode.d.ts.map +0 -1
  1535. package/dist/features/upload/nodes/UploadNode.js +0 -131
  1536. package/dist/features/upload/nodes/UploadNode.js.map +0 -1
  1537. package/dist/features/upload/plugin/index.d.ts +0 -8
  1538. package/dist/features/upload/plugin/index.d.ts.map +0 -1
  1539. package/dist/features/upload/plugin/index.js +0 -53
  1540. package/dist/features/upload/plugin/index.js.map +0 -1
  1541. package/dist/features/upload/validate.d.ts +0 -5
  1542. package/dist/features/upload/validate.d.ts.map +0 -1
  1543. package/dist/features/upload/validate.js +0 -45
  1544. package/dist/features/upload/validate.js.map +0 -1
  1545. package/dist/lexical/utils/invariant.d.ts +0 -2
  1546. package/dist/lexical/utils/invariant.d.ts.map +0 -1
  1547. package/dist/lexical/utils/invariant.js +0 -12
  1548. package/dist/lexical/utils/invariant.js.map +0 -1
  1549. /package/dist/features/align/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1550. /package/dist/features/blockquote/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1551. /package/dist/features/blocks/{component → client/component}/FormSavePlugin.d.ts +0 -0
  1552. /package/dist/features/blocks/{component → client/component}/removeEmptyArrayValues.d.ts +0 -0
  1553. /package/dist/features/blocks/{componentInline → client/componentInline}/index.d.ts +0 -0
  1554. /package/dist/features/blocks/{plugin → client/plugin}/commands.d.ts +0 -0
  1555. /package/dist/features/blocks/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1556. /package/dist/features/experimental_table/{utils → client/utils}/debounce.d.ts +0 -0
  1557. /package/dist/features/experimental_table/{utils → client/utils}/useDebounce.d.ts +0 -0
  1558. /package/dist/features/heading/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1559. /package/dist/features/horizontalRule/{component → client/component}/index.d.ts +0 -0
  1560. /package/dist/features/horizontalRule/{markdownTransformer.d.ts → client/markdownTransformer.d.ts} +0 -0
  1561. /package/dist/features/horizontalRule/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1562. /package/dist/features/indent/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1563. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  1564. /package/dist/features/link/{plugins → client/plugins}/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
  1565. /package/dist/features/link/{drawer → server}/baseFields.d.ts +0 -0
  1566. /package/dist/features/link/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1567. /package/dist/features/lists/checklist/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1568. /package/dist/features/lists/orderedList/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1569. /package/dist/features/lists/unorderedList/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1570. /package/dist/features/paragraph/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1571. /package/dist/features/relationship/{drawer → client/drawer}/commands.d.ts +0 -0
  1572. /package/dist/features/relationship/{drawer → client/drawer}/index.d.ts +0 -0
  1573. /package/dist/features/relationship/{utils → client/utils}/EnabledRelationshipsCondition.d.ts +0 -0
  1574. /package/dist/features/relationship/{i18n.d.ts → server/i18n.d.ts} +0 -0
  1575. /package/dist/features/upload/{drawer → client/drawer}/commands.d.ts +0 -0
  1576. /package/dist/features/upload/{drawer → client/drawer}/index.d.ts +0 -0
  1577. /package/dist/features/upload/{feature.client.d.ts → client/feature.client.d.ts} +0 -0
  1578. /package/dist/features/upload/{i18n.d.ts → server/i18n.d.ts} +0 -0
@@ -1,9 +1,9 @@
1
1
  import type { EditorConfig as LexicalEditorConfig } from 'lexical';
2
- import type { CellComponentProps } from 'payload';
2
+ import type { CellComponentProps, RichTextFieldClient } from 'payload';
3
3
  import React from 'react';
4
4
  import type { LexicalFieldAdminProps } from '../types.js';
5
5
  export declare const RichTextCell: React.FC<{
6
- admin?: LexicalFieldAdminProps;
7
- lexicalEditorConfig: LexicalEditorConfig;
8
- } & CellComponentProps>;
6
+ readonly admin?: LexicalFieldAdminProps;
7
+ readonly lexicalEditorConfig: LexicalEditorConfig;
8
+ } & CellComponentProps<RichTextFieldClient>>;
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAKjD,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,OAAO,KAAK,EAAqC,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAO5F,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CACjC;IACE,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B,mBAAmB,EAAE,mBAAmB,CAAA;CACzC,GAAG,kBAAkB,CA4KvB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKtE,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,OAAO,KAAK,EAAqC,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAO5F,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CACjC;IACE,QAAQ,CAAC,KAAK,CAAC,EAAE,sBAAsB,CAAA;IACvC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAA;CAClD,GAAG,kBAAkB,CAAC,mBAAmB,CAAC,CA6K5C,CAAA"}
@@ -1,4 +1,5 @@
1
1
  'use client';
2
+
2
3
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
4
  import { createHeadlessEditor } from '@lexical/headless';
4
5
  import { useClientFunctions, useTableCell } from '@payloadcms/ui';
@@ -8,138 +9,127 @@ import { defaultEditorLexicalConfig } from '../lexical/config/client/default.js'
8
9
  import { loadClientFeatures } from '../lexical/config/client/loader.js';
9
10
  import { sanitizeClientEditorConfig } from '../lexical/config/client/sanitize.js';
10
11
  import { getEnabledNodes } from '../lexical/nodes/index.js';
11
- export const RichTextCell = (props)=>{
12
- const { admin, lexicalEditorConfig, richTextComponentMap } = props;
13
- const [preview, setPreview] = React.useState('Loading...');
14
- const { cellData, cellProps: { schemaPath } } = useTableCell();
15
- const clientFunctions = useClientFunctions();
16
- const [hasLoadedFeatures, setHasLoadedFeatures] = useState(false);
17
- const [featureProviders, setFeatureProviders] = useState([]);
18
- const [finalSanitizedEditorConfig, setFinalSanitizedEditorConfig] = useState(null);
19
- const featureProviderComponents = richTextComponentMap.get('features').sort((a, b)=>a.order - b.order) // order by order
20
- ;
21
- let featureProvidersAndComponentsToLoad = 0 // feature providers and components
22
- ;
23
- for (const featureProvider of featureProviderComponents){
24
- const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key)=>key.startsWith(`feature.${featureProvider.key}.components.`));
25
- featureProvidersAndComponentsToLoad += 1;
26
- featureProvidersAndComponentsToLoad += featureComponentKeys.length;
27
- }
28
- useEffect(()=>{
29
- if (!hasLoadedFeatures) {
30
- const featureProvidersLocal = [];
31
- let featureProvidersAndComponentsLoaded = 0 // feature providers and components only
32
- ;
33
- Object.entries(clientFunctions).forEach(([key, plugin])=>{
34
- if (key.startsWith(`lexicalFeature.${schemaPath}.`)) {
35
- if (!key.includes('.lexical_internal_components.')) {
36
- featureProvidersLocal.push(plugin);
37
- }
38
- featureProvidersAndComponentsLoaded++;
39
- }
40
- });
41
- if (featureProvidersAndComponentsLoaded === featureProvidersAndComponentsToLoad) {
42
- setFeatureProviders(featureProvidersLocal);
43
- setHasLoadedFeatures(true);
44
- /**
45
- * Loaded feature provided => create the final sanitized editor config
46
- */ const resolvedClientFeatures = loadClientFeatures({
47
- clientFunctions,
48
- schemaPath,
49
- unSanitizedEditorConfig: {
50
- features: featureProvidersLocal,
51
- lexical: lexicalEditorConfig
52
- }
53
- });
54
- setFinalSanitizedEditorConfig(sanitizeClientEditorConfig(lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig, resolvedClientFeatures, admin));
55
- }
56
- }
57
- }, [
58
- admin,
59
- featureProviderComponents,
60
- hasLoadedFeatures,
61
- clientFunctions,
62
- schemaPath,
63
- featureProviderComponents.length,
64
- featureProviders,
65
- finalSanitizedEditorConfig,
66
- lexicalEditorConfig,
67
- richTextComponentMap,
68
- featureProvidersAndComponentsToLoad
69
- ]);
70
- useEffect(()=>{
71
- if (!hasLoadedFeatures) {
72
- return;
73
- }
74
- let dataToUse = cellData;
75
- if (dataToUse == null || !hasLoadedFeatures || !finalSanitizedEditorConfig) {
76
- setPreview('');
77
- return;
78
- }
79
- // Transform data through load hooks
80
- if (finalSanitizedEditorConfig?.features?.hooks?.load?.length) {
81
- finalSanitizedEditorConfig.features.hooks.load.forEach((hook)=>{
82
- dataToUse = hook({
83
- incomingEditorState: dataToUse
84
- });
85
- });
86
- }
87
- if (!dataToUse || typeof dataToUse !== 'object') {
88
- setPreview('');
89
- return;
90
- }
91
- // If data is from Slate and not Lexical
92
- if (Array.isArray(dataToUse) && !('root' in dataToUse)) {
93
- setPreview('');
94
- return;
95
- }
96
- // If data is from payload-plugin-lexical
97
- if ('jsonContent' in dataToUse) {
98
- setPreview('');
99
- return;
12
+ export const RichTextCell = props => {
13
+ const {
14
+ admin,
15
+ field: {
16
+ _schemaPath,
17
+ richTextComponentMap
18
+ },
19
+ lexicalEditorConfig
20
+ } = props;
21
+ const [preview, setPreview] = React.useState('Loading...');
22
+ const {
23
+ cellData
24
+ } = useTableCell();
25
+ const clientFunctions = useClientFunctions();
26
+ const [hasLoadedFeatures, setHasLoadedFeatures] = useState(false);
27
+ const [featureProviders, setFeatureProviders] = useState([]);
28
+ const [finalSanitizedEditorConfig, setFinalSanitizedEditorConfig] = useState(null);
29
+ const featureProviderComponents = richTextComponentMap.get('features').sort((a, b) => a.order - b.order) // order by order
30
+ ;
31
+ let featureProvidersAndComponentsToLoad = 0 // feature providers and components
32
+ ;
33
+ for (const featureProvider of featureProviderComponents) {
34
+ const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter(key => key.startsWith(`feature.${featureProvider.key}.components.`));
35
+ featureProvidersAndComponentsToLoad += 1;
36
+ featureProvidersAndComponentsToLoad += featureComponentKeys.length;
37
+ }
38
+ useEffect(() => {
39
+ if (!hasLoadedFeatures) {
40
+ const featureProvidersLocal = [];
41
+ let featureProvidersAndComponentsLoaded = 0 // feature providers and components only
42
+ ;
43
+ Object.entries(clientFunctions).forEach(([key_0, plugin]) => {
44
+ if (key_0.startsWith(`lexicalFeature.${_schemaPath}.`)) {
45
+ if (!key_0.includes('.lexical_internal_components.')) {
46
+ featureProvidersLocal.push(plugin);
47
+ }
48
+ featureProvidersAndComponentsLoaded++;
100
49
  }
101
- // initialize headless editor
102
- const headlessEditor = createHeadlessEditor({
103
- namespace: finalSanitizedEditorConfig.lexical.namespace,
104
- nodes: getEnabledNodes({
105
- editorConfig: finalSanitizedEditorConfig
106
- }),
107
- theme: finalSanitizedEditorConfig.lexical.theme
50
+ });
51
+ if (featureProvidersAndComponentsLoaded === featureProvidersAndComponentsToLoad) {
52
+ setFeatureProviders(featureProvidersLocal);
53
+ setHasLoadedFeatures(true);
54
+ /**
55
+ * Loaded feature provided => create the final sanitized editor config
56
+ */
57
+ const resolvedClientFeatures = loadClientFeatures({
58
+ clientFunctions,
59
+ schemaPath: _schemaPath,
60
+ unSanitizedEditorConfig: {
61
+ features: featureProvidersLocal,
62
+ lexical: lexicalEditorConfig
63
+ }
108
64
  });
109
- headlessEditor.setEditorState(headlessEditor.parseEditorState(dataToUse));
110
- const textContent = headlessEditor.getEditorState().read(()=>{
111
- return $getRoot().getTextContent();
112
- }) || '';
113
- // Limiting the number of characters shown is done in a CSS rule
114
- setPreview(textContent);
115
- }, [
116
- cellData,
117
- lexicalEditorConfig,
118
- hasLoadedFeatures,
119
- finalSanitizedEditorConfig
120
- ]);
65
+ setFinalSanitizedEditorConfig(sanitizeClientEditorConfig(lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig, resolvedClientFeatures, admin));
66
+ }
67
+ }
68
+ }, [admin, featureProviderComponents, hasLoadedFeatures, clientFunctions, _schemaPath, featureProviderComponents.length, featureProviders, finalSanitizedEditorConfig, lexicalEditorConfig, richTextComponentMap, featureProvidersAndComponentsToLoad]);
69
+ useEffect(() => {
121
70
  if (!hasLoadedFeatures) {
122
- return /*#__PURE__*/ _jsx(React.Fragment, {
123
- children: Array.isArray(featureProviderComponents) && featureProviderComponents.map((featureProvider)=>{
124
- // get all components starting with key feature.${FeatureProvider.key}.components.{featureComponentKey}
125
- const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key)=>key.startsWith(`lexical_internal_feature.${featureProvider.key}.lexical_internal_components.`));
126
- const featureComponents = featureComponentKeys.map((key)=>{
127
- return richTextComponentMap.get(key);
128
- });
129
- return /*#__PURE__*/ _jsxs(React.Fragment, {
130
- children: [
131
- featureComponents?.length ? featureComponents.map((FeatureComponent)=>{
132
- return FeatureComponent;
133
- }) : null,
134
- featureProvider.ClientFeature
135
- ]
136
- }, featureProvider.key);
137
- })
71
+ return;
72
+ }
73
+ let dataToUse = cellData;
74
+ if (dataToUse == null || !hasLoadedFeatures || !finalSanitizedEditorConfig) {
75
+ setPreview('');
76
+ return;
77
+ }
78
+ // Transform data through load hooks
79
+ if (finalSanitizedEditorConfig?.features?.hooks?.load?.length) {
80
+ finalSanitizedEditorConfig.features.hooks.load.forEach(hook => {
81
+ dataToUse = hook({
82
+ incomingEditorState: dataToUse
138
83
  });
84
+ });
85
+ }
86
+ if (!dataToUse || typeof dataToUse !== 'object') {
87
+ setPreview('');
88
+ return;
89
+ }
90
+ // If data is from Slate and not Lexical
91
+ if (Array.isArray(dataToUse) && !('root' in dataToUse)) {
92
+ setPreview('');
93
+ return;
139
94
  }
140
- return /*#__PURE__*/ _jsx("span", {
141
- children: preview
95
+ // If data is from payload-plugin-lexical
96
+ if ('jsonContent' in dataToUse) {
97
+ setPreview('');
98
+ return;
99
+ }
100
+ // initialize headless editor
101
+ const headlessEditor = createHeadlessEditor({
102
+ namespace: finalSanitizedEditorConfig.lexical.namespace,
103
+ nodes: getEnabledNodes({
104
+ editorConfig: finalSanitizedEditorConfig
105
+ }),
106
+ theme: finalSanitizedEditorConfig.lexical.theme
107
+ });
108
+ headlessEditor.setEditorState(headlessEditor.parseEditorState(dataToUse));
109
+ const textContent = headlessEditor.getEditorState().read(() => {
110
+ return $getRoot().getTextContent();
111
+ }) || '';
112
+ // Limiting the number of characters shown is done in a CSS rule
113
+ setPreview(textContent);
114
+ }, [cellData, lexicalEditorConfig, hasLoadedFeatures, finalSanitizedEditorConfig]);
115
+ if (!hasLoadedFeatures) {
116
+ return /*#__PURE__*/_jsx(React.Fragment, {
117
+ children: Array.isArray(featureProviderComponents) && featureProviderComponents.map(featureProvider_0 => {
118
+ // get all components starting with key feature.${FeatureProvider.key}.components.{featureComponentKey}
119
+ const featureComponentKeys_0 = Array.from(richTextComponentMap.keys()).filter(key_1 => key_1.startsWith(`lexical_internal_feature.${featureProvider_0.key}.lexical_internal_components.`));
120
+ const featureComponents = featureComponentKeys_0.map(key_2 => {
121
+ return richTextComponentMap.get(key_2);
122
+ });
123
+ return /*#__PURE__*/_jsxs(React.Fragment, {
124
+ children: [featureComponents?.length ? featureComponents.map(FeatureComponent => {
125
+ return FeatureComponent;
126
+ }) : null, featureProvider_0.ClientFeature]
127
+ }, featureProvider_0.key);
128
+ })
142
129
  });
130
+ }
131
+ return /*#__PURE__*/_jsx("span", {
132
+ children: preview
133
+ });
143
134
  };
144
-
145
135
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cell/index.tsx"],"sourcesContent":["'use client'\nimport type { EditorConfig as LexicalEditorConfig } from 'lexical'\nimport type { CellComponentProps } from 'payload'\n\nimport { createHeadlessEditor } from '@lexical/headless'\nimport { useClientFunctions, useTableCell } from '@payloadcms/ui'\nimport { $getRoot } from 'lexical'\nimport React, { useEffect, useState } from 'react'\n\nimport type { FeatureProviderClient } from '../features/typesClient.js'\nimport type { SanitizedClientEditorConfig } from '../lexical/config/types.js'\nimport type { GeneratedFeatureProviderComponent, LexicalFieldAdminProps } from '../types.js'\n\nimport { defaultEditorLexicalConfig } from '../lexical/config/client/default.js'\nimport { loadClientFeatures } from '../lexical/config/client/loader.js'\nimport { sanitizeClientEditorConfig } from '../lexical/config/client/sanitize.js'\nimport { getEnabledNodes } from '../lexical/nodes/index.js'\n\nexport const RichTextCell: React.FC<\n {\n admin?: LexicalFieldAdminProps\n lexicalEditorConfig: LexicalEditorConfig\n } & CellComponentProps\n> = (props) => {\n const { admin, lexicalEditorConfig, richTextComponentMap } = props\n\n const [preview, setPreview] = React.useState('Loading...')\n\n const {\n cellData,\n cellProps: { schemaPath },\n } = useTableCell()\n\n const clientFunctions = useClientFunctions()\n const [hasLoadedFeatures, setHasLoadedFeatures] = useState(false)\n\n const [featureProviders, setFeatureProviders] = useState<\n FeatureProviderClient<unknown, unknown>[]\n >([])\n\n const [finalSanitizedEditorConfig, setFinalSanitizedEditorConfig] =\n useState<SanitizedClientEditorConfig>(null)\n\n const featureProviderComponents: GeneratedFeatureProviderComponent[] = (\n richTextComponentMap.get('features') as GeneratedFeatureProviderComponent[]\n ).sort((a, b) => a.order - b.order) // order by order\n\n let featureProvidersAndComponentsToLoad = 0 // feature providers and components\n for (const featureProvider of featureProviderComponents) {\n const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key) =>\n key.startsWith(`feature.${featureProvider.key}.components.`),\n )\n\n featureProvidersAndComponentsToLoad += 1\n featureProvidersAndComponentsToLoad += featureComponentKeys.length\n }\n\n useEffect(() => {\n if (!hasLoadedFeatures) {\n const featureProvidersLocal: FeatureProviderClient<unknown, unknown>[] = []\n let featureProvidersAndComponentsLoaded = 0 // feature providers and components only\n\n Object.entries(clientFunctions).forEach(([key, plugin]) => {\n if (key.startsWith(`lexicalFeature.${schemaPath}.`)) {\n if (!key.includes('.lexical_internal_components.')) {\n featureProvidersLocal.push(plugin)\n }\n featureProvidersAndComponentsLoaded++\n }\n })\n\n if (featureProvidersAndComponentsLoaded === featureProvidersAndComponentsToLoad) {\n setFeatureProviders(featureProvidersLocal)\n setHasLoadedFeatures(true)\n\n /**\n * Loaded feature provided => create the final sanitized editor config\n */\n\n const resolvedClientFeatures = loadClientFeatures({\n clientFunctions,\n schemaPath,\n unSanitizedEditorConfig: {\n features: featureProvidersLocal,\n lexical: lexicalEditorConfig,\n },\n })\n\n setFinalSanitizedEditorConfig(\n sanitizeClientEditorConfig(\n lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig,\n resolvedClientFeatures,\n admin,\n ),\n )\n }\n }\n }, [\n admin,\n featureProviderComponents,\n hasLoadedFeatures,\n clientFunctions,\n schemaPath,\n featureProviderComponents.length,\n featureProviders,\n finalSanitizedEditorConfig,\n lexicalEditorConfig,\n richTextComponentMap,\n featureProvidersAndComponentsToLoad,\n ])\n\n useEffect(() => {\n if (!hasLoadedFeatures) {\n return\n }\n let dataToUse = cellData\n if (dataToUse == null || !hasLoadedFeatures || !finalSanitizedEditorConfig) {\n setPreview('')\n return\n }\n\n // Transform data through load hooks\n if (finalSanitizedEditorConfig?.features?.hooks?.load?.length) {\n finalSanitizedEditorConfig.features.hooks.load.forEach((hook) => {\n dataToUse = hook({ incomingEditorState: dataToUse })\n })\n }\n\n if (!dataToUse || typeof dataToUse !== 'object') {\n setPreview('')\n return\n }\n\n // If data is from Slate and not Lexical\n if (Array.isArray(dataToUse) && !('root' in dataToUse)) {\n setPreview('')\n return\n }\n\n // If data is from payload-plugin-lexical\n if ('jsonContent' in dataToUse) {\n setPreview('')\n return\n }\n\n // initialize headless editor\n const headlessEditor = createHeadlessEditor({\n namespace: finalSanitizedEditorConfig.lexical.namespace,\n nodes: getEnabledNodes({ editorConfig: finalSanitizedEditorConfig }),\n theme: finalSanitizedEditorConfig.lexical.theme,\n })\n headlessEditor.setEditorState(headlessEditor.parseEditorState(dataToUse))\n\n const textContent =\n headlessEditor.getEditorState().read(() => {\n return $getRoot().getTextContent()\n }) || ''\n\n // Limiting the number of characters shown is done in a CSS rule\n setPreview(textContent)\n }, [cellData, lexicalEditorConfig, hasLoadedFeatures, finalSanitizedEditorConfig])\n\n if (!hasLoadedFeatures) {\n return (\n <React.Fragment>\n {Array.isArray(featureProviderComponents) &&\n featureProviderComponents.map((featureProvider) => {\n // get all components starting with key feature.${FeatureProvider.key}.components.{featureComponentKey}\n const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key) =>\n key.startsWith(\n `lexical_internal_feature.${featureProvider.key}.lexical_internal_components.`,\n ),\n )\n\n const featureComponents: React.ReactNode[] = featureComponentKeys.map((key) => {\n return richTextComponentMap.get(key)\n })\n\n return (\n <React.Fragment key={featureProvider.key}>\n {featureComponents?.length\n ? featureComponents.map((FeatureComponent) => {\n return FeatureComponent\n })\n : null}\n {featureProvider.ClientFeature}\n </React.Fragment>\n )\n })}\n </React.Fragment>\n )\n }\n\n return <span>{preview}</span>\n}\n"],"names":["createHeadlessEditor","useClientFunctions","useTableCell","$getRoot","React","useEffect","useState","defaultEditorLexicalConfig","loadClientFeatures","sanitizeClientEditorConfig","getEnabledNodes","RichTextCell","props","admin","lexicalEditorConfig","richTextComponentMap","preview","setPreview","cellData","cellProps","schemaPath","clientFunctions","hasLoadedFeatures","setHasLoadedFeatures","featureProviders","setFeatureProviders","finalSanitizedEditorConfig","setFinalSanitizedEditorConfig","featureProviderComponents","get","sort","a","b","order","featureProvidersAndComponentsToLoad","featureProvider","featureComponentKeys","Array","from","keys","filter","key","startsWith","length","featureProvidersLocal","featureProvidersAndComponentsLoaded","Object","entries","forEach","plugin","includes","push","resolvedClientFeatures","unSanitizedEditorConfig","features","lexical","dataToUse","hooks","load","hook","incomingEditorState","isArray","headlessEditor","namespace","nodes","editorConfig","theme","setEditorState","parseEditorState","textContent","getEditorState","read","getTextContent","Fragment","map","featureComponents","FeatureComponent","ClientFeature","span"],"mappings":"AAAA;;AAIA,SAASA,oBAAoB,QAAQ,oBAAmB;AACxD,SAASC,kBAAkB,EAAEC,YAAY,QAAQ,iBAAgB;AACjE,SAASC,QAAQ,QAAQ,UAAS;AAClC,OAAOC,SAASC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AAMlD,SAASC,0BAA0B,QAAQ,sCAAqC;AAChF,SAASC,kBAAkB,QAAQ,qCAAoC;AACvE,SAASC,0BAA0B,QAAQ,uCAAsC;AACjF,SAASC,eAAe,QAAQ,4BAA2B;AAE3D,OAAO,MAAMC,eAKT,CAACC;IACH,MAAM,EAAEC,KAAK,EAAEC,mBAAmB,EAAEC,oBAAoB,EAAE,GAAGH;IAE7D,MAAM,CAACI,SAASC,WAAW,GAAGb,MAAME,QAAQ,CAAC;IAE7C,MAAM,EACJY,QAAQ,EACRC,WAAW,EAAEC,UAAU,EAAE,EAC1B,GAAGlB;IAEJ,MAAMmB,kBAAkBpB;IACxB,MAAM,CAACqB,mBAAmBC,qBAAqB,GAAGjB,SAAS;IAE3D,MAAM,CAACkB,kBAAkBC,oBAAoB,GAAGnB,SAE9C,EAAE;IAEJ,MAAM,CAACoB,4BAA4BC,8BAA8B,GAC/DrB,SAAsC;IAExC,MAAMsB,4BAAiE,AACrEb,qBAAqBc,GAAG,CAAC,YACzBC,IAAI,CAAC,CAACC,GAAGC,IAAMD,EAAEE,KAAK,GAAGD,EAAEC,KAAK,EAAE,iBAAiB;;IAErD,IAAIC,sCAAsC,EAAE,mCAAmC;;IAC/E,KAAK,MAAMC,mBAAmBP,0BAA2B;QACvD,MAAMQ,uBAAuBC,MAAMC,IAAI,CAACvB,qBAAqBwB,IAAI,IAAIC,MAAM,CAAC,CAACC,MAC3EA,IAAIC,UAAU,CAAC,CAAC,QAAQ,EAAEP,gBAAgBM,GAAG,CAAC,YAAY,CAAC;QAG7DP,uCAAuC;QACvCA,uCAAuCE,qBAAqBO,MAAM;IACpE;IAEAtC,UAAU;QACR,IAAI,CAACiB,mBAAmB;YACtB,MAAMsB,wBAAmE,EAAE;YAC3E,IAAIC,sCAAsC,EAAE,wCAAwC;;YAEpFC,OAAOC,OAAO,CAAC1B,iBAAiB2B,OAAO,CAAC,CAAC,CAACP,KAAKQ,OAAO;gBACpD,IAAIR,IAAIC,UAAU,CAAC,CAAC,eAAe,EAAEtB,WAAW,CAAC,CAAC,GAAG;oBACnD,IAAI,CAACqB,IAAIS,QAAQ,CAAC,kCAAkC;wBAClDN,sBAAsBO,IAAI,CAACF;oBAC7B;oBACAJ;gBACF;YACF;YAEA,IAAIA,wCAAwCX,qCAAqC;gBAC/ET,oBAAoBmB;gBACpBrB,qBAAqB;gBAErB;;SAEC,GAED,MAAM6B,yBAAyB5C,mBAAmB;oBAChDa;oBACAD;oBACAiC,yBAAyB;wBACvBC,UAAUV;wBACVW,SAASzC;oBACX;gBACF;gBAEAa,8BACElB,2BACEK,sBAAsBA,sBAAsBP,4BAC5C6C,wBACAvC;YAGN;QACF;IACF,GAAG;QACDA;QACAe;QACAN;QACAD;QACAD;QACAQ,0BAA0Be,MAAM;QAChCnB;QACAE;QACAZ;QACAC;QACAmB;KACD;IAED7B,UAAU;QACR,IAAI,CAACiB,mBAAmB;YACtB;QACF;QACA,IAAIkC,YAAYtC;QAChB,IAAIsC,aAAa,QAAQ,CAAClC,qBAAqB,CAACI,4BAA4B;YAC1ET,WAAW;YACX;QACF;QAEA,oCAAoC;QACpC,IAAIS,4BAA4B4B,UAAUG,OAAOC,MAAMf,QAAQ;YAC7DjB,2BAA2B4B,QAAQ,CAACG,KAAK,CAACC,IAAI,CAACV,OAAO,CAAC,CAACW;gBACtDH,YAAYG,KAAK;oBAAEC,qBAAqBJ;gBAAU;YACpD;QACF;QAEA,IAAI,CAACA,aAAa,OAAOA,cAAc,UAAU;YAC/CvC,WAAW;YACX;QACF;QAEA,wCAAwC;QACxC,IAAIoB,MAAMwB,OAAO,CAACL,cAAc,CAAE,CAAA,UAAUA,SAAQ,GAAI;YACtDvC,WAAW;YACX;QACF;QAEA,yCAAyC;QACzC,IAAI,iBAAiBuC,WAAW;YAC9BvC,WAAW;YACX;QACF;QAEA,6BAA6B;QAC7B,MAAM6C,iBAAiB9D,qBAAqB;YAC1C+D,WAAWrC,2BAA2B6B,OAAO,CAACQ,SAAS;YACvDC,OAAOtD,gBAAgB;gBAAEuD,cAAcvC;YAA2B;YAClEwC,OAAOxC,2BAA2B6B,OAAO,CAACW,KAAK;QACjD;QACAJ,eAAeK,cAAc,CAACL,eAAeM,gBAAgB,CAACZ;QAE9D,MAAMa,cACJP,eAAeQ,cAAc,GAAGC,IAAI,CAAC;YACnC,OAAOpE,WAAWqE,cAAc;QAClC,MAAM;QAER,gEAAgE;QAChEvD,WAAWoD;IACb,GAAG;QAACnD;QAAUJ;QAAqBQ;QAAmBI;KAA2B;IAEjF,IAAI,CAACJ,mBAAmB;QACtB,qBACE,KAAClB,MAAMqE,QAAQ;sBACZpC,MAAMwB,OAAO,CAACjC,8BACbA,0BAA0B8C,GAAG,CAAC,CAACvC;gBAC7B,uGAAuG;gBACvG,MAAMC,uBAAuBC,MAAMC,IAAI,CAACvB,qBAAqBwB,IAAI,IAAIC,MAAM,CAAC,CAACC,MAC3EA,IAAIC,UAAU,CACZ,CAAC,yBAAyB,EAAEP,gBAAgBM,GAAG,CAAC,6BAA6B,CAAC;gBAIlF,MAAMkC,oBAAuCvC,qBAAqBsC,GAAG,CAAC,CAACjC;oBACrE,OAAO1B,qBAAqBc,GAAG,CAACY;gBAClC;gBAEA,qBACE,MAACrC,MAAMqE,QAAQ;;wBACZE,mBAAmBhC,SAChBgC,kBAAkBD,GAAG,CAAC,CAACE;4BACrB,OAAOA;wBACT,KACA;wBACHzC,gBAAgB0C,aAAa;;mBANX1C,gBAAgBM,GAAG;YAS5C;;IAGR;IAEA,qBAAO,KAACqC;kBAAM9D;;AAChB,EAAC"}
1
+ {"version":3,"file":"index.js","names":["createHeadlessEditor","useClientFunctions","useTableCell","$getRoot","React","useEffect","useState","defaultEditorLexicalConfig","loadClientFeatures","sanitizeClientEditorConfig","getEnabledNodes","RichTextCell","props","admin","field","_schemaPath","richTextComponentMap","lexicalEditorConfig","preview","setPreview","cellData","clientFunctions","hasLoadedFeatures","setHasLoadedFeatures","featureProviders","setFeatureProviders","finalSanitizedEditorConfig","setFinalSanitizedEditorConfig","featureProviderComponents","get","sort","a","b","order","featureProvidersAndComponentsToLoad","featureProvider","featureComponentKeys","Array","from","keys","filter","key","startsWith","length","featureProvidersLocal","featureProvidersAndComponentsLoaded","Object","entries","forEach","plugin","includes","push","resolvedClientFeatures","schemaPath","unSanitizedEditorConfig","features","lexical","dataToUse","hooks","load","hook","incomingEditorState","isArray","headlessEditor","namespace","nodes","editorConfig","theme","setEditorState","parseEditorState","textContent","getEditorState","read","getTextContent","_jsx","Fragment","map","featureComponents","_jsxs","FeatureComponent","ClientFeature"],"sources":["../../src/cell/index.tsx"],"sourcesContent":["'use client'\nimport type { EditorConfig as LexicalEditorConfig } from 'lexical'\nimport type { CellComponentProps, RichTextFieldClient } from 'payload'\n\nimport { createHeadlessEditor } from '@lexical/headless'\nimport { useClientFunctions, useTableCell } from '@payloadcms/ui'\nimport { $getRoot } from 'lexical'\nimport React, { useEffect, useState } from 'react'\n\nimport type { FeatureProviderClient } from '../features/typesClient.js'\nimport type { SanitizedClientEditorConfig } from '../lexical/config/types.js'\nimport type { GeneratedFeatureProviderComponent, LexicalFieldAdminProps } from '../types.js'\n\nimport { defaultEditorLexicalConfig } from '../lexical/config/client/default.js'\nimport { loadClientFeatures } from '../lexical/config/client/loader.js'\nimport { sanitizeClientEditorConfig } from '../lexical/config/client/sanitize.js'\nimport { getEnabledNodes } from '../lexical/nodes/index.js'\n\nexport const RichTextCell: React.FC<\n {\n readonly admin?: LexicalFieldAdminProps\n readonly lexicalEditorConfig: LexicalEditorConfig\n } & CellComponentProps<RichTextFieldClient>\n> = (props) => {\n const {\n admin,\n field: { _schemaPath, richTextComponentMap },\n lexicalEditorConfig,\n } = props\n\n const [preview, setPreview] = React.useState('Loading...')\n\n const { cellData } = useTableCell()\n\n const clientFunctions = useClientFunctions()\n const [hasLoadedFeatures, setHasLoadedFeatures] = useState(false)\n\n const [featureProviders, setFeatureProviders] = useState<\n FeatureProviderClient<unknown, unknown>[]\n >([])\n\n const [finalSanitizedEditorConfig, setFinalSanitizedEditorConfig] =\n useState<SanitizedClientEditorConfig>(null)\n\n const featureProviderComponents: GeneratedFeatureProviderComponent[] = (\n richTextComponentMap.get('features') as GeneratedFeatureProviderComponent[]\n ).sort((a, b) => a.order - b.order) // order by order\n\n let featureProvidersAndComponentsToLoad = 0 // feature providers and components\n for (const featureProvider of featureProviderComponents) {\n const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key) =>\n key.startsWith(`feature.${featureProvider.key}.components.`),\n )\n\n featureProvidersAndComponentsToLoad += 1\n featureProvidersAndComponentsToLoad += featureComponentKeys.length\n }\n\n useEffect(() => {\n if (!hasLoadedFeatures) {\n const featureProvidersLocal: FeatureProviderClient<unknown, unknown>[] = []\n let featureProvidersAndComponentsLoaded = 0 // feature providers and components only\n\n Object.entries(clientFunctions).forEach(([key, plugin]) => {\n if (key.startsWith(`lexicalFeature.${_schemaPath}.`)) {\n if (!key.includes('.lexical_internal_components.')) {\n featureProvidersLocal.push(plugin)\n }\n featureProvidersAndComponentsLoaded++\n }\n })\n\n if (featureProvidersAndComponentsLoaded === featureProvidersAndComponentsToLoad) {\n setFeatureProviders(featureProvidersLocal)\n setHasLoadedFeatures(true)\n\n /**\n * Loaded feature provided => create the final sanitized editor config\n */\n\n const resolvedClientFeatures = loadClientFeatures({\n clientFunctions,\n schemaPath: _schemaPath,\n unSanitizedEditorConfig: {\n features: featureProvidersLocal,\n lexical: lexicalEditorConfig,\n },\n })\n\n setFinalSanitizedEditorConfig(\n sanitizeClientEditorConfig(\n lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig,\n resolvedClientFeatures,\n admin,\n ),\n )\n }\n }\n }, [\n admin,\n featureProviderComponents,\n hasLoadedFeatures,\n clientFunctions,\n _schemaPath,\n featureProviderComponents.length,\n featureProviders,\n finalSanitizedEditorConfig,\n lexicalEditorConfig,\n richTextComponentMap,\n featureProvidersAndComponentsToLoad,\n ])\n\n useEffect(() => {\n if (!hasLoadedFeatures) {\n return\n }\n let dataToUse = cellData\n if (dataToUse == null || !hasLoadedFeatures || !finalSanitizedEditorConfig) {\n setPreview('')\n return\n }\n\n // Transform data through load hooks\n if (finalSanitizedEditorConfig?.features?.hooks?.load?.length) {\n finalSanitizedEditorConfig.features.hooks.load.forEach((hook) => {\n dataToUse = hook({ incomingEditorState: dataToUse })\n })\n }\n\n if (!dataToUse || typeof dataToUse !== 'object') {\n setPreview('')\n return\n }\n\n // If data is from Slate and not Lexical\n if (Array.isArray(dataToUse) && !('root' in dataToUse)) {\n setPreview('')\n return\n }\n\n // If data is from payload-plugin-lexical\n if ('jsonContent' in dataToUse) {\n setPreview('')\n return\n }\n\n // initialize headless editor\n const headlessEditor = createHeadlessEditor({\n namespace: finalSanitizedEditorConfig.lexical.namespace,\n nodes: getEnabledNodes({ editorConfig: finalSanitizedEditorConfig }),\n theme: finalSanitizedEditorConfig.lexical.theme,\n })\n headlessEditor.setEditorState(headlessEditor.parseEditorState(dataToUse))\n\n const textContent =\n headlessEditor.getEditorState().read(() => {\n return $getRoot().getTextContent()\n }) || ''\n\n // Limiting the number of characters shown is done in a CSS rule\n setPreview(textContent)\n }, [cellData, lexicalEditorConfig, hasLoadedFeatures, finalSanitizedEditorConfig])\n\n if (!hasLoadedFeatures) {\n return (\n <React.Fragment>\n {Array.isArray(featureProviderComponents) &&\n featureProviderComponents.map((featureProvider) => {\n // get all components starting with key feature.${FeatureProvider.key}.components.{featureComponentKey}\n const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key) =>\n key.startsWith(\n `lexical_internal_feature.${featureProvider.key}.lexical_internal_components.`,\n ),\n )\n\n const featureComponents: React.ReactNode[] = featureComponentKeys.map((key) => {\n return richTextComponentMap.get(key)\n }) as React.ReactNode[]\n\n return (\n <React.Fragment key={featureProvider.key}>\n {featureComponents?.length\n ? featureComponents.map((FeatureComponent) => {\n return FeatureComponent\n })\n : null}\n {featureProvider.ClientFeature}\n </React.Fragment>\n )\n })}\n </React.Fragment>\n )\n }\n\n return <span>{preview}</span>\n}\n"],"mappings":"AAAA;;;AAIA,SAASA,oBAAoB,QAAQ;AACrC,SAASC,kBAAkB,EAAEC,YAAY,QAAQ;AACjD,SAASC,QAAQ,QAAQ;AACzB,OAAOC,KAAA,IAASC,SAAS,EAAEC,QAAQ,QAAQ;AAM3C,SAASC,0BAA0B,QAAQ;AAC3C,SAASC,kBAAkB,QAAQ;AACnC,SAASC,0BAA0B,QAAQ;AAC3C,SAASC,eAAe,QAAQ;AAEhC,OAAO,MAAMC,YAAA,GAKRC,KAAA;EACH,MAAM;IACJC,KAAK;IACLC,KAAA,EAAO;MAAEC,WAAW;MAAEC;IAAoB,CAAE;IAC5CC;EAAmB,CACpB,GAAGL,KAAA;EAEJ,MAAM,CAACM,OAAA,EAASC,UAAA,CAAW,GAAGf,KAAA,CAAME,QAAQ,CAAC;EAE7C,MAAM;IAAEc;EAAQ,CAAE,GAAGlB,YAAA;EAErB,MAAMmB,eAAA,GAAkBpB,kBAAA;EACxB,MAAM,CAACqB,iBAAA,EAAmBC,oBAAA,CAAqB,GAAGjB,QAAA,CAAS;EAE3D,MAAM,CAACkB,gBAAA,EAAkBC,mBAAA,CAAoB,GAAGnB,QAAA,CAE9C,EAAE;EAEJ,MAAM,CAACoB,0BAAA,EAA4BC,6BAAA,CAA8B,GAC/DrB,QAAA,CAAsC;EAExC,MAAMsB,yBAAA,GAAiEZ,oBACrE,CAAqBa,GAAG,CAAC,YACzBC,IAAI,CAAC,CAACC,CAAA,EAAGC,CAAA,KAAMD,CAAA,CAAEE,KAAK,GAAGD,CAAA,CAAEC,KAAK,EAAE;EAAA;EAEpC,IAAIC,mCAAA,GAAsC,EAAE;EAAA;EAC5C,KAAK,MAAMC,eAAA,IAAmBP,yBAAA,EAA2B;IACvD,MAAMQ,oBAAA,GAAuBC,KAAA,CAAMC,IAAI,CAACtB,oBAAA,CAAqBuB,IAAI,IAAIC,MAAM,CAAEC,GAAA,IAC3EA,GAAA,CAAIC,UAAU,CAAC,WAAWP,eAAA,CAAgBM,GAAG,cAAc;IAG7DP,mCAAA,IAAuC;IACvCA,mCAAA,IAAuCE,oBAAA,CAAqBO,MAAM;EACpE;EAEAtC,SAAA,CAAU;IACR,IAAI,CAACiB,iBAAA,EAAmB;MACtB,MAAMsB,qBAAA,GAAmE,EAAE;MAC3E,IAAIC,mCAAA,GAAsC,EAAE;MAAA;MAE5CC,MAAA,CAAOC,OAAO,CAAC1B,eAAA,EAAiB2B,OAAO,CAAC,CAAC,CAACP,KAAA,EAAKQ,MAAA,CAAO;QACpD,IAAIR,KAAA,CAAIC,UAAU,CAAC,kBAAkB3B,WAAA,GAAc,GAAG;UACpD,IAAI,CAAC0B,KAAA,CAAIS,QAAQ,CAAC,kCAAkC;YAClDN,qBAAA,CAAsBO,IAAI,CAACF,MAAA;UAC7B;UACAJ,mCAAA;QACF;MACF;MAEA,IAAIA,mCAAA,KAAwCX,mCAAA,EAAqC;QAC/ET,mBAAA,CAAoBmB,qBAAA;QACpBrB,oBAAA,CAAqB;QAErB;;;QAIA,MAAM6B,sBAAA,GAAyB5C,kBAAA,CAAmB;UAChDa,eAAA;UACAgC,UAAA,EAAYtC,WAAA;UACZuC,uBAAA,EAAyB;YACvBC,QAAA,EAAUX,qBAAA;YACVY,OAAA,EAASvC;UACX;QACF;QAEAU,6BAAA,CACElB,0BAAA,CACEQ,mBAAA,GAAsBA,mBAAA,GAAsBV,0BAAA,EAC5C6C,sBAAA,EACAvC,KAAA;MAGN;IACF;EACF,GAAG,CACDA,KAAA,EACAe,yBAAA,EACAN,iBAAA,EACAD,eAAA,EACAN,WAAA,EACAa,yBAAA,CAA0Be,MAAM,EAChCnB,gBAAA,EACAE,0BAAA,EACAT,mBAAA,EACAD,oBAAA,EACAkB,mCAAA,CACD;EAED7B,SAAA,CAAU;IACR,IAAI,CAACiB,iBAAA,EAAmB;MACtB;IACF;IACA,IAAImC,SAAA,GAAYrC,QAAA;IAChB,IAAIqC,SAAA,IAAa,QAAQ,CAACnC,iBAAA,IAAqB,CAACI,0BAAA,EAA4B;MAC1EP,UAAA,CAAW;MACX;IACF;IAEA;IACA,IAAIO,0BAAA,EAA4B6B,QAAA,EAAUG,KAAA,EAAOC,IAAA,EAAMhB,MAAA,EAAQ;MAC7DjB,0BAAA,CAA2B6B,QAAQ,CAACG,KAAK,CAACC,IAAI,CAACX,OAAO,CAAEY,IAAA;QACtDH,SAAA,GAAYG,IAAA,CAAK;UAAEC,mBAAA,EAAqBJ;QAAU;MACpD;IACF;IAEA,IAAI,CAACA,SAAA,IAAa,OAAOA,SAAA,KAAc,UAAU;MAC/CtC,UAAA,CAAW;MACX;IACF;IAEA;IACA,IAAIkB,KAAA,CAAMyB,OAAO,CAACL,SAAA,KAAc,EAAE,UAAUA,SAAQ,GAAI;MACtDtC,UAAA,CAAW;MACX;IACF;IAEA;IACA,IAAI,iBAAiBsC,SAAA,EAAW;MAC9BtC,UAAA,CAAW;MACX;IACF;IAEA;IACA,MAAM4C,cAAA,GAAiB/D,oBAAA,CAAqB;MAC1CgE,SAAA,EAAWtC,0BAAA,CAA2B8B,OAAO,CAACQ,SAAS;MACvDC,KAAA,EAAOvD,eAAA,CAAgB;QAAEwD,YAAA,EAAcxC;MAA2B;MAClEyC,KAAA,EAAOzC,0BAAA,CAA2B8B,OAAO,CAACW;IAC5C;IACAJ,cAAA,CAAeK,cAAc,CAACL,cAAA,CAAeM,gBAAgB,CAACZ,SAAA;IAE9D,MAAMa,WAAA,GACJP,cAAA,CAAeQ,cAAc,GAAGC,IAAI,CAAC;MACnC,OAAOrE,QAAA,GAAWsE,cAAc;IAClC,MAAM;IAER;IACAtD,UAAA,CAAWmD,WAAA;EACb,GAAG,CAAClD,QAAA,EAAUH,mBAAA,EAAqBK,iBAAA,EAAmBI,0BAAA,CAA2B;EAEjF,IAAI,CAACJ,iBAAA,EAAmB;IACtB,oBACEoD,IAAA,CAACtE,KAAA,CAAMuE,QAAQ;gBACZtC,KAAA,CAAMyB,OAAO,CAAClC,yBAAA,KACbA,yBAAA,CAA0BgD,GAAG,CAAEzC,iBAAA;QAC7B;QACA,MAAMC,sBAAA,GAAuBC,KAAA,CAAMC,IAAI,CAACtB,oBAAA,CAAqBuB,IAAI,IAAIC,MAAM,CAAEC,KAAA,IAC3EA,KAAA,CAAIC,UAAU,CACZ,4BAA4BP,iBAAA,CAAgBM,GAAG,+BAA+B;QAIlF,MAAMoC,iBAAA,GAAuCzC,sBAAA,CAAqBwC,GAAG,CAAEnC,KAAA;UACrE,OAAOzB,oBAAA,CAAqBa,GAAG,CAACY,KAAA;QAClC;QAEA,oBACEqC,KAAA,CAAC1E,KAAA,CAAMuE,QAAQ;qBACZE,iBAAA,EAAmBlC,MAAA,GAChBkC,iBAAA,CAAkBD,GAAG,CAAEG,gBAAA;YACrB,OAAOA,gBAAA;UACT,KACA,MACH5C,iBAAA,CAAgB6C,aAAa;WANX7C,iBAAA,CAAgBM,GAAG;MAS5C;;EAGR;EAEA,oBAAOiC,IAAA,CAAC;cAAMxD;;AAChB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as o,jsxs as t}from"react/jsx-runtime";import"react";var c=n=>{let{data:e}=n;return t("div",{children:["Unknown converted Slate node: ",o("strong",{children:e?.nodeType})]})};export{c as UnknownConvertedNodeComponent};
2
+ //# sourceMappingURL=Component-DOSSWC76.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx"],
4
+ "sourcesContent": ["'use client'\nimport React from 'react'\n\nimport type { UnknownConvertedNodeData } from './index.js'\n\nimport './index.scss'\n\ntype Props = {\n data: UnknownConvertedNodeData\n}\n\nexport const UnknownConvertedNodeComponent: React.FC<Props> = (props) => {\n const { data } = props\n\n return (\n <div>\n Unknown converted Slate node: <strong>{data?.nodeType}</strong>\n </div>\n )\n}\n"],
5
+ "mappings": "+DACA,MAAkB,QAUX,IAAMA,EAAkDC,GAAA,CAC7D,GAAM,CAAEC,KAAAA,CAAI,EAAKD,EAEjB,OACEE,EAAC,MAAA,WAAI,iCAC2BC,EAAC,SAAA,UAAQF,GAAMG,aAGnD",
6
+ "names": ["UnknownConvertedNodeComponent", "props", "data", "_jsxs", "_jsx", "nodeType"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as e,jsxs as t}from"react/jsx-runtime";import"react";var a=n=>{let{data:o}=n;return t("div",{children:["Unknown converted payload-plugin-lexical node: ",e("strong",{children:o?.nodeType})]})};export{a as UnknownConvertedNodeComponent};
2
+ //# sourceMappingURL=Component-MBLHTKDK.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx"],
4
+ "sourcesContent": ["'use client'\nimport React from 'react'\n\nimport type { UnknownConvertedNodeData } from './index.js'\n\nimport './index.scss'\n\ntype Props = {\n data: UnknownConvertedNodeData\n}\n\nexport const UnknownConvertedNodeComponent: React.FC<Props> = (props) => {\n const { data } = props\n\n return (\n <div>\n Unknown converted payload-plugin-lexical node: <strong>{data?.nodeType}</strong>\n </div>\n )\n}\n"],
5
+ "mappings": "+DACA,MAAkB,QAUX,IAAMA,EAAkDC,GAAA,CAC7D,GAAM,CAAEC,KAAAA,CAAI,EAAKD,EAEjB,OACEE,EAAC,MAAA,WAAI,kDAC4CC,EAAC,SAAA,UAAQF,GAAMG,aAGpE",
6
+ "names": ["UnknownConvertedNodeComponent", "props", "data", "_jsxs", "_jsx", "nodeType"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{a as ue,b as pe,c as ge,d as he,e as z,f as I,h as ye}from"./chunk-YSI2QILQ.js";import{a as fe,b as T}from"./chunk-OLSILJA6.js";import{jsx as j,jsxs as me}from"react/jsx-runtime";import{FieldDescription as Yt,FieldError as Ut,FieldLabel as Vt,useField as qt,useFieldProps as Jt,withCondition as Qt}from"@payloadcms/ui";import{useCallback as Xt}from"react";import{ErrorBoundary as Zt}from"react-error-boundary";import{jsx as A}from"react/jsx-runtime";import{LexicalComposer as Wt}from"@lexical/react/LexicalComposer.js";import*as qe from"react";import{useMemo as Ve}from"react";import{c as Bt}from"react/compiler-runtime";import{jsx as P,jsxs as J}from"react/jsx-runtime";import{useLexicalComposerContext as Mt}from"@lexical/react/LexicalComposerContext.js";import{LexicalErrorBoundary as It}from"@lexical/react/LexicalErrorBoundary.js";import{HistoryPlugin as At}from"@lexical/react/LexicalHistoryPlugin.js";import{OnChangePlugin as Ft}from"@lexical/react/LexicalOnChangePlugin.js";import{RichTextPlugin as Dt}from"@lexical/react/LexicalRichTextPlugin.js";import{TabIndentationPlugin as Ot}from"@lexical/react/LexicalTabIndentationPlugin.js";import{BLUR_COMMAND as _t,COMMAND_PRIORITY_LOW as Ge,FOCUS_COMMAND as Ht}from"lexical";import*as U from"react";import{useEffect as We,useState as Ye}from"react";import{jsx as xe}from"react/jsx-runtime";import"react";var _=({anchorElem:t,clientProps:e,plugin:o})=>o.position==="floatingAnchorElem"?o.Component&&xe(o.Component,{anchorElem:t,clientProps:e}):o.Component&&xe(o.Component,{clientProps:e});import{c as Xe}from"react/compiler-runtime";import{jsx as Ze}from"react/jsx-runtime";import{MarkdownShortcutPlugin as et}from"@lexical/react/LexicalMarkdownShortcutPlugin.js";import"react";var Ee=()=>{let t=Xe(2),{editorConfig:e}=T(),o;return t[0]!==e.features.markdownTransformers?(o=Ze(et,{transformers:e.features.markdownTransformers}),t[0]=e.features.markdownTransformers,t[1]=o):o=t[1],o};import{jsx as K,jsxs as Ne}from"react/jsx-runtime";import{useLexicalComposerContext as ot}from"@lexical/react/LexicalComposerContext.js";import{useFieldProps as Pe,useTranslation as we}from"@payloadcms/ui";import{useCallback as Ce,useMemo as nt,useState as rt}from"react";import"react";import*as ke from"react-dom";import{c as tt}from"react/compiler-runtime";import"react";function be(t,e){let o=tt(4),{maxLength:l,minLength:r}=e,m=l===void 0?75:l,p=r===void 0?1:r,a;return o[0]!==t||o[1]!==m||o[2]!==p?(a=u=>{let{query:g}=u,E="[^"+t+pe+"\\s]",s=new RegExp("(^|\\s|\\()(["+t+"]((?:"+E+"){0,"+m+"}))$").exec(g);if(s!==null){let n=s[1],y=s[3];if(y.length>=p)return{leadOffset:s.index+n.length,matchingString:y,replaceableString:s[2]}}return null},o[0]=t,o[1]=m,o[2]=p,o[3]=a):a=o[3],a}var L="slash-menu-popup";function it({isSelected:t,item:e,onClick:o,onMouseEnter:l}){let{field:{richTextComponentMap:r}}=T(),{schemaPath:m}=Pe(),{i18n:p}=we(),a=`${L}__item ${L}__item-${e.key}`;t&&(a+=` ${L}__item--selected`);let u=e.key;return e.label&&(u=typeof e.label=="function"?e.label({i18n:p,richTextComponentMap:r,schemaPath:m}):e.label),u.length>25&&(u=u.substring(0,25)+"..."),Ne("button",{"aria-selected":t,className:a,id:L+"__item-"+e.key,onClick:o,onMouseEnter:l,ref:g=>{e.ref={current:g}},role:"option",tabIndex:-1,type:"button",children:[e?.Icon&&K(e.Icon,{}),K("span",{className:`${L}__item-text`,children:u})]},e.key)}function Re({anchorElem:t=document.body}){let[e]=ot(),[o,l]=rt(null),{editorConfig:r}=T(),{i18n:m}=we(),{field:{richTextComponentMap:p}}=T(),{schemaPath:a}=Pe(),u=be("/",{minLength:0}),g=Ce(()=>{let s=[];for(let n of r.features.slashMenu.dynamicGroups){let y=n({editor:e,queryString:o});s=s.concat(y)}return s},[e,o,r?.features]),E=nt(()=>{let s=[];for(let n of r?.features.slashMenu.groups??[])s.push(n);if(o){s=s.map(y=>{let h=y.items.filter(c=>{let f=c.key;return c.label&&(f=typeof c.label=="function"?c.label({i18n:m,richTextComponentMap:p,schemaPath:a}):c.label),new RegExp(o,"gi").exec(f)?!0:c.keywords!=null?c.keywords.some(i=>new RegExp(o,"gi").exec(i)):!1});return h.length?{...y,items:h}:null}),s=s.filter(y=>y!=null);let n=g();for(let y of n){let h=s.find(c=>c.key===y.key);h?s=s.filter(c=>c.key!==y.key):h={...y,items:[]},h?.items?.length&&(h.items=h.items.concat(h.items)),s.push(h)}}return s},[g,o,r?.features,m]),d=Ce((s,n,y,h)=>{n&&e.update(()=>{n.remove()}),s.onSelect({editor:e,queryString:h}),y()},[e]);return K(he,{anchorElem:t,groups:E,menuRenderFn:(s,{selectItemAndCleanUp:n,selectedItemKey:y,setSelectedItemKey:h})=>s.current&&E.length?ke.createPortal(K("div",{className:L,children:E.map(c=>{let f=c.key;return c.label&&(f=typeof c.label=="function"?c.label({i18n:m,richTextComponentMap:p,schemaPath:a}):c.label),Ne("div",{className:`${L}__group ${L}__group-${c.key}`,children:[K("div",{className:`${L}__group-title`,children:f}),c.items.map((i,x)=>K(it,{index:x,isSelected:y===i.key,item:i,onClick:()=>{h(i.key),n(i)},onMouseEnter:()=>{h(i.key)}},i.key))]},c.key)})}),s.current):null,onQueryChange:l,onSelectItem:d,triggerFn:u})}import{jsx as ce}from"react/jsx-runtime";import{useLexicalComposerContext as mt}from"@lexical/react/LexicalComposerContext.js";import{$createParagraphNode as ut}from"lexical";import*as Le from"react";import{useCallback as ft,useEffect as ve,useRef as pt,useState as gt}from"react";import{createPortal as ht}from"react-dom";var G=(t,e,o,l,r=50,m=25)=>{let p=0;if(t&&!t.contains(l)){let{bottom:a,left:u,right:g,top:E}=t.getBoundingClientRect(),d=E+window.scrollY,s=a+window.scrollY;if(o<d-m||o>s+m||e<u-r||e>g+r)return-1;(e<u||e>g)&&(p=e<u?e-u:e-g)}return p};import{$getNodeByKey as Z}from"lexical";function W(t){let e=t.getBoundingClientRect(),o=getComputedStyle(t).getPropertyValue("transform");if(!o||o==="none")return e;let l=o.split(",").pop();return e.y=e.y-Number(l.replace(")","")),e}function X(t){let e=(u,g)=>u?parseFloat(window.getComputedStyle(u)[g]):0,{marginBottom:o,marginTop:l}=window.getComputedStyle(t),r=e(t.previousElementSibling,"marginBottom"),m=e(t.nextElementSibling,"marginTop"),p=Math.max(parseFloat(l),r);return{marginBottom:Math.max(parseFloat(o),m),marginTop:p}}import{$getRoot as st}from"lexical";function H(t){return t.getEditorState().read(()=>st().getChildrenKeys())}var lt=1,at=-1,Te=0,B={props:null,result:null};function ct(t,e,o=20){let l=t.x-e.x,r=t.y-e.y;return l*l+r*r<=o*o}function Y(t){let{anchorElem:e,cache_threshold:o=20,editor:l,fuzzy:r=!1,horizontalOffset:m=0,point:{x:p,y:a},startIndex:u=0,useEdgeAsDefault:g=!1,verbose:E=!1}=t;if(o>0&&B.props&&B.result&&B.props.fuzzy===t.fuzzy&&B.props.horizontalOffset===t.horizontalOffset&&B.props.useEdgeAsDefault===t.useEdgeAsDefault&&ct(B.props.point,t.point,o))return B.result;let d=e.getBoundingClientRect(),s=H(l),n={blockElem:null,blockNode:null,distance:1/0,foundAtIndex:-1,isFoundNodeEmptyParagraph:!1};return l.getEditorState().read(()=>{if(g){let[c,f]=[l.getElementByKey(s[0]),l.getElementByKey(s[s.length-1])],[i,x]=[W(c),W(f)];if(i&&x&&(a<i.top?(n.blockElem=c,n.distance=i.top-a,n.blockNode=Z(s[0]),n.foundAtIndex=0):a>x.bottom&&(n.distance=a-x.bottom,n.blockNode=Z(s[s.length-1]),n.blockElem=f,n.foundAtIndex=s.length-1),n?.blockElem))return{blockElem:null,isFoundNodeEmptyParagraph:!1}}let y=u,h=Te;for(;y>=0&&y<s.length;){let c=s[y],f=l.getElementByKey(c);if(f===null)break;let i=new I(p+m,a),x=ye.fromDOMRect(W(f)),{marginBottom:b,marginTop:C}=X(f),w=x.generateNewRect({bottom:x.bottom+b,left:d.left,right:d.right,top:x.top-C}),{distance:R,isOnBottomSide:N,isOnTopSide:F}=w.distanceFromPoint(i);if(R===0){n.blockElem=f,n.blockNode=Z(c),n.foundAtIndex=y,n.distance=R,n.blockNode&&n.blockNode.getType()==="paragraph"&&n.blockNode.getTextContent()===""&&(!r&&!t.returnEmptyParagraphs&&(n.blockElem=null,n.blockNode=null),n.isFoundNodeEmptyParagraph=!0);break}else r&&R<n.distance&&(n.blockElem=f,n.blockNode=Z(c),n.distance=R,n.foundAtIndex=y);h===Te&&(F?h=at:N?h=lt:h=1/0),y+=h}}),B.props=t,B.result={blockElem:n.blockElem,blockNode:n.blockNode,foundAtIndex:n.foundAtIndex,isFoundNodeEmptyParagraph:n.isFoundNodeEmptyParagraph},{blockElem:n.blockElem,blockNode:n.blockNode,foundAtIndex:n.foundAtIndex,isFoundNodeEmptyParagraph:n.isFoundNodeEmptyParagraph}}function ee(t,e){return!!t.closest(`.${e}`)}var dt=["IMG","INPUT","TEXTAREA","SELECT","BUTTON","VIDEO","OBJECT","EMBED","IFRAME","HR"];function Se(t){if(!t||dt.includes(t.tagName)||t.offsetHeight===0||t.offsetWidth===0)return!1;let e=window.getComputedStyle(t);return!(e.display==="table-cell"||e.position==="absolute"||e.visibility==="hidden"||e.opacity==="0")}function te(t,e,o,l=0){if(!t){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}let r=t.getBoundingClientRect(),m=window.getComputedStyle(t),p=e.getBoundingClientRect(),a=o.getBoundingClientRect(),u;if(["lexical-block","lexical-upload","lexical-relationship"].some(d=>t.firstElementChild?.classList.contains(d)))u=r.top+8-a.top;else{let d=Se(t)?parseInt(m.lineHeight,10):0;u=r.top+(d-p.height)/2-a.top}let E=l;e.style.opacity="1",e.style.transform=`translate(${E}px, ${u}px)`}var yt="add-block-menu",oe=1/0;function xt(t){return t===0?1/0:oe>=0&&oe<t?oe:Math.floor(t/2)}function Et(t,e,o){let l=e.parentElement,{editorConfig:r}=T(),m=r?.admin?.hideGutter?-24:12,p=pt(null),[a,u]=gt(null);ve(()=>{function E(d){let s=d.target;if(!z(s))return;let n=G(l,d.pageX,d.pageY,s);if(n===-1){u(null);return}if(ee(s,yt))return;let y=H(t),{blockElem:h,blockNode:c,foundAtIndex:f}=Y({anchorElem:e,cache_threshold:0,editor:t,horizontalOffset:-n,point:new I(d.x,d.y),returnEmptyParagraphs:!0,startIndex:xt(y.length),useEdgeAsDefault:!1});oe=f,h&&(a?.node!==c||a?.elem!==h)&&u({elem:h,node:c})}return document?.addEventListener("mousemove",E),()=>{document?.removeEventListener("mousemove",E)}},[l,e,t,a]),ve(()=>{p.current&&a?.node&&te(a?.elem,p.current,e,m)},[e,a,m]);let g=ft(E=>{let d=a;d?.node&&(t.update(()=>{let s=!0;if((d.node.getType()!=="paragraph"||d.node.getTextContent()!=="")&&(s=!1),!s){let n=ut();d.node.insertAfter(n),setTimeout(()=>{d={elem:t.getElementByKey(n.getKey()),node:n},u(d)},0)}}),setTimeout(()=>{t.update(()=>{t.focus(),d.node&&"select"in d.node&&typeof d.node.select=="function"&&d.node.select()})},1),setTimeout(()=>{t.dispatchCommand(ge,{node:d.node})},2),E.stopPropagation(),E.preventDefault())},[t,a]);return ht(ce(Le.Fragment,{children:ce("button",{className:"icon add-block-menu",onClick:E=>{g(E)},ref:p,type:"button",children:ce("div",{className:o?"icon":""})})}),e)}function Be({anchorElem:t=document.body}){let[e]=mt();return Et(e,t,e._editable)}import{jsx as ne,jsxs as Ct}from"react/jsx-runtime";import{useLexicalComposerContext as Nt}from"@lexical/react/LexicalComposerContext.js";import{eventFiles as Ae}from"@lexical/rich-text";import{$getNearestNodeFromDOMNode as Fe,$getNodeByKey as Pt}from"lexical";import*as $e from"react";import{useEffect as de,useRef as re,useState as De}from"react";import{createPortal as wt}from"react-dom";var Me=0,bt=-24;var $=0;function Ie(t,e,o,l,r,m,p,a,u,g=!1){let{height:E,top:d}=l.getBoundingClientRect(),{top:s,width:n}=p.getBoundingClientRect(),{marginBottom:y,marginTop:h}=X(l),c=d,f=m>=d+E/2+window.scrollY,i=!1;if(r?.elem)if(l!==r?.elem)(f&&r?.elem&&r?.elem===l.nextElementSibling||!f&&r?.elem&&r?.elem===l.previousElementSibling)&&($++,$<200&&(i=!0));else{$++;let w=r?.boundingBox?.y,R=l.getBoundingClientRect().y;(f===r?.isBelow&&w===R||$<200)&&(i=!1)}if(i)return{isBelow:f,willStayInSamePosition:i};g?c+=E/2:f?c+=E+y/2:c-=h/2;let x=0;g||(f?x=-Me:x=Me);let b=c-s+x,C=bt-e;return o.style.width=`calc(${n}px - ${t})`,o.style.opacity=".8",o.style.transform=`translate(${C}px, calc(${b}px - 2px))`,r.elem.style.opacity="",r?.elem===l?f?r.elem.style.marginTop="":r.elem.style.marginBottom="":(r.elem.style.marginBottom="",r.elem.style.marginTop=""),$=0,{isBelow:f,willStayInSamePosition:i}}var kt="draggable-block-menu",Oe="application/x-lexical-drag-block",q=1/0;function _e(t){return t===0?1/0:q>=0&&q<t?q:Math.floor(t/2)}function Rt(t,e){let{transform:o}=e.style;t.setDragImage(e,0,0),setTimeout(()=>{e.style.transform=o})}function He(t,e){t&&(t.style.opacity="0"),e&&(e.style.opacity="",e.style.marginBottom="",e.style.marginTop="")}function Tt(t,e,o){let l=e.parentElement,r=re(null),m=re(null),p=re(null),a=re(!1),[u,g]=De(null),[E,d]=De(null),{editorConfig:s}=T(),n=s?.admin?.hideGutter?-44:-8;de(()=>{function c(f){let i=f.target;if(!z(i))return;let x=G(l,f.pageX,f.pageY,i);if(x===-1){g(null);return}if(ee(i,kt))return;let b=H(t),{blockElem:C,foundAtIndex:w,isFoundNodeEmptyParagraph:R}=Y({anchorElem:e,cache_threshold:0,editor:t,horizontalOffset:-x,point:new I(f.x,f.y),startIndex:_e(b.length),useEdgeAsDefault:!1,verbose:!1});q=w,!(!C&&!R)&&u!==C&&g(C)}return document?.addEventListener("mousemove",c),()=>{document?.removeEventListener("mousemove",c)}},[l,e,t,u]),de(()=>{r.current&&te(u,r.current,e,n)},[e,u,n]),de(()=>{function c(i){if(!a.current)return!1;let[x]=Ae(i);if(x)return!1;let{pageY:b,target:C}=i;if(!z(C))return!1;let w=G(l,i.pageX,i.pageY,C,100,50),R=H(t),{blockElem:N,foundAtIndex:F,isFoundNodeEmptyParagraph:D}=Y({anchorElem:e,editor:t,fuzzy:!0,horizontalOffset:-w,point:new I(i.x,i.y),startIndex:_e(R.length),useEdgeAsDefault:!0,verbose:!0});q=F;let S=m.current;if(N===null||S===null)return!1;if(u!==N){let{isBelow:v,willStayInSamePosition:V}=Ie(s?.admin?.hideGutter?"0px":"3rem",n+(s?.admin?.hideGutter?r?.current?.getBoundingClientRect()?.width??0:-(r?.current?.getBoundingClientRect()?.width??0)),S,N,E,b,e,i,p,D);i.preventDefault(),V||d({boundingBox:N.getBoundingClientRect(),elem:N,isBelow:v})}else He(S,E?.elem),d({boundingBox:N.getBoundingClientRect(),elem:N,isBelow:!1});return!0}function f(i){if(!a.current)return!1;let[x]=Ae(i);if(x)return!1;let{dataTransfer:b,pageY:C,target:w}=i,R=b?.getData(Oe)||"";return t.update(()=>{let N=Pt(R);if(!N||!z(w))return!1;let F=G(l,i.pageX,i.pageY,w,100,50),{blockElem:D,isFoundNodeEmptyParagraph:S}=Y({anchorElem:e,editor:t,fuzzy:!0,horizontalOffset:-F,point:new I(i.x,i.y),useEdgeAsDefault:!0});if(!D)return!1;let v=Fe(D);if(!v)return!1;if(v===N)return!0;let{height:V,top:se}=W(D),ae=C>=se+V/2+window.scrollY;S?(v.insertBefore(N),v.remove()):ae?v.insertAfter(N):v.insertBefore(N),u!==null&&g(null),document.querySelectorAll(".lexical-block-highlighter").forEach(M=>{M.remove()});let O=t.getElementByKey(N.getKey());setTimeout(()=>{let M=O.getBoundingClientRect(),k=document.createElement("div");k.className="lexical-block-highlighter",k.style.backgroundColor="var(--theme-elevation-1000",k.style.transition="opacity 0.5s ease-in-out",k.style.zIndex="1",k.style.pointerEvents="none",k.style.boxSizing="border-box",k.style.borderRadius="4px",k.style.position="absolute",document.body.appendChild(k),k.style.opacity="0.1",k.style.height=`${M.height+8}px`,k.style.width=`${M.width+8}px`,k.style.top=`${M.top+window.scrollY-4}px`,k.style.left=`${M.left-4}px`,setTimeout(()=>{k.style.opacity="0",setTimeout(()=>{k.remove()},500)},1e3)},120)}),!0}return document.addEventListener("dragover",c),document.addEventListener("drop",f),()=>{document.removeEventListener("dragover",c),document.removeEventListener("drop",f)}},[l,n,e,t,E,u,s?.admin?.hideGutter]);function y(c){let f=c.dataTransfer;if(!f||!u)return;Rt(f,u);let i="";t.update(()=>{let x=Fe(u);x&&(i=x.getKey())}),a.current=!0,f.setData(Oe,i)}function h(){a.current=!1,He(m.current,E?.elem)}return wt(Ct($e.Fragment,{children:[ne("div",{className:"icon draggable-block-menu",draggable:!0,onDragEnd:h,onDragStart:y,ref:r,children:ne("div",{className:o?"icon":""})}),ne("div",{className:"draggable-block-target-line",ref:m}),ne("div",{className:"debug-highlight",ref:p})]}),e)}function je({anchorElem:t=document.body}){let[e]=Nt();return Tt(e,t,e._editable)}import{c as St}from"react/compiler-runtime";import{jsx as ze}from"react/jsx-runtime";import{ContentEditable as vt}from"@lexical/react/LexicalContentEditable.js";import{useTranslation as Lt}from"@payloadcms/ui";import"react";function Ke(t){let e=St(3),{className:o}=t,{t:l}=Lt(),r;return e[0]!==l||e[1]!==o?(r=ze(vt,{"aria-placeholder":l("lexical:general:placeholder"),className:o??"ContentEditable__root",placeholder:ze("p",{className:"editor-placeholder",children:l("lexical:general:placeholder")})}),e[0]=l,e[1]=o,e[2]=r):r=e[2],r}var Ue=t=>{let e=Bt(22),{editorConfig:o,editorContainerRef:l,onChange:r}=t,m=T(),[p]=Mt(),[a,u]=Ye(null),g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=i=>{i!==null&&u(i)},e[0]=g):g=e[0];let E=g,d,s;e[1]!==m||e[2]!==p?(d=()=>{if(!m?.uuid){console.error("Lexical Editor must be used within an EditorConfigProvider");return}m?.parentEditor?.uuid&&m.parentEditor?.registerChild(m.uuid,m);let i=()=>{m.focusEditor(m)},x=()=>{m.blurEditor(m)},b=p.registerCommand(Ht,()=>(i(),!0),Ge),C=p.registerCommand(_t,()=>(x(),!0),Ge);return()=>{b(),C(),m.parentEditor?.unregisterChild?.(m.uuid)}},s=[p,m],e[1]=m,e[2]=p,e[3]=d,e[4]=s):(d=e[3],s=e[4]),We(d,s);let[n,y]=Ye(!1),h,c;e[5]!==n?(h=()=>{let i=()=>{let x=window.matchMedia("(max-width: 768px)").matches;x!==n&&y(x)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},c=[n],e[5]=n,e[6]=h,e[7]=c):(h=e[6],c=e[7]),We(h,c);let f;if(e[8]!==o.features||e[9]!==r||e[10]!==a||e[11]!==n||e[12]!==p||e[13]!==l){let i;e[15]!==r?(i=(b,C,w)=>{(!w.has("focus")||w.size>1)&&r?.(b,C,w)},e[15]=r,e[16]=i):i=e[16];let x;e[17]!==a||e[18]!==n||e[19]!==p||e[20]!==o?(x=a&&J(U.Fragment,{children:[!n&&p.isEditable()&&J(U.Fragment,{children:[P(je,{anchorElem:a}),P(Be,{anchorElem:a})]}),o.features.plugins.map(b=>{if(b.position==="floatingAnchorElem"&&!(b.desktopOnly===!0&&n))return P(_,{anchorElem:a,clientProps:b.clientProps,plugin:b},b.key)}),p.isEditable()&&P(U.Fragment,{children:P(Re,{anchorElem:a})})]}),e[17]=a,e[18]=n,e[19]=p,e[20]=o,e[21]=x):x=e[21],f=J(U.Fragment,{children:[o.features.plugins.map($t),J("div",{className:"editor-container",ref:l,children:[o.features.plugins.map(jt),P(Dt,{ErrorBoundary:It,contentEditable:P("div",{className:"editor-scroller",children:P("div",{className:"editor",ref:E,children:P(Ke,{})})})}),P(Ft,{ignoreSelectionChange:!0,onChange:i}),x,p.isEditable()&&J(U.Fragment,{children:[P(At,{}),o?.features?.markdownTransformers?.length>0&&P(Ee,{})]}),P(Ot,{}),o.features.plugins.map(zt),o.features.plugins.map(Kt)]}),o.features.plugins.map(Gt)]}),e[8]=o.features,e[9]=r,e[10]=a,e[11]=n,e[12]=p,e[13]=l,e[14]=f}else f=e[14];return f};function $t(t){if(t.position==="aboveContainer")return P(_,{clientProps:t.clientProps,plugin:t},t.key)}function jt(t){if(t.position==="top")return P(_,{clientProps:t.clientProps,plugin:t},t.key)}function zt(t){if(t.position==="normal")return P(_,{clientProps:t.clientProps,plugin:t},t.key)}function Kt(t){if(t.position==="bottom")return P(_,{clientProps:t.clientProps,plugin:t},t.key)}function Gt(t){if(t.position==="belowContainer")return P(_,{clientProps:t.clientProps,plugin:t},t.key)}var Je=({children:t,providers:e})=>{if(!e?.length)return t;let o=e[0];return e.length>1?A(o,{children:A(Je,{providers:e.slice(1),children:t})}):A(o,{children:t})},Qe=t=>{let{editorConfig:e,field:o,onChange:l,path:r,readOnly:m,value:p}=t,a=T(),u=qe.useRef(null),g=Ve(()=>{let d=p;return e?.features?.hooks?.load?.length&&e.features.hooks.load.forEach(s=>{d=s({incomingEditorState:d})}),d},[e,p]),E=Ve(()=>{if(g&&typeof g!="object")throw new Error("The value passed to the Lexical editor is not an object. This is not supported. Please remove the data from the field and start again. This is the value that was passed in: "+JSON.stringify(g));if(g&&Array.isArray(g)&&!("root"in g))throw new Error("You have tried to pass in data from the old Slate editor to the new Lexical editor. The data structure is different, thus you will have to migrate your data. We offer a one-line migration script which migrates all your rich text fields: https://payloadcms.com/docs/beta/lexical/migration#migration-via-migration-script-recommended");if(g&&"jsonContent"in g)throw new Error("You have tried to pass in data from payload-plugin-lexical. The data structure is different, thus you will have to migrate your data. Migration guide: https://payloadcms.com/docs/beta/lexical/migration#migrating-from-payload-plugin-lexical");return{editable:m!==!0,editorState:g!=null?JSON.stringify(g):void 0,namespace:e.lexical.namespace,nodes:[...ue({editorConfig:e})],onError:d=>{throw d},theme:e.lexical.theme}},[e,g,m]);return E?A(Wt,{initialConfig:E,children:A(fe,{editorConfig:e,editorContainerRef:u,field:o,parentContext:a,children:A(Je,{providers:e.features.providers,children:A(Ue,{editorConfig:e,editorContainerRef:u,onChange:l})})})},r):A("p",{children:"Loading..."})};import"./bundled.css";var ie="rich-text-lexical",eo=t=>{let{descriptionProps:e,editorConfig:o,errorProps:l,field:{name:r,_path:m,admin:{className:p,components:{Description:a,Error:u,Label:g},readOnly:E,style:d,width:s}={},label:n,required:y},field:h,labelProps:c,readOnly:f,validate:i}=t,x=f||E,b=Xt((Q,O)=>{if(typeof i=="function")return i(Q,{...O,props:t,required:y})},[i,y]),{path:C,readOnly:w}=Jt(),R=qt({path:C??m??r,validate:b}),{formInitializing:N,formProcessing:F,initialValue:D,path:S,setValue:v,showError:V,value:se}=R,le=x||w||F||N,ae=[ie,"field-type",p,V&&"error",le&&`${ie}--read-only`,o?.admin?.hideGutter!==!0?`${ie}--show-gutter`:null].filter(Boolean).join(" ");return me("div",{className:ae,style:{...d,width:s},children:[j(Ut,{CustomError:u,field:h,path:S,...l||{},alignCaret:"left"}),j(Vt,{Label:g,field:h,label:n,required:y,...c||{}}),me("div",{className:`${ie}__wrap`,children:[j(Zt,{fallbackRender:to,onReset:()=>{},children:j(Qe,{editorConfig:o,field:h,onChange:Q=>{let O=Q.toJSON();o?.features?.hooks?.save?.length&&o.features.hooks.save.forEach(M=>{O=M({incomingEditorState:O})}),v(O)},path:S,readOnly:le,value:se},JSON.stringify({initialValue:D,path:S}))}),j(Yt,{Description:a,field:h,...e||{}})]})]},S)};function to({error:t}){return me("div",{className:"errorBoundary",role:"alert",children:[j("p",{children:"Something went wrong:"}),j("pre",{style:{color:"red"},children:t.message})]})}var ar=Qt(eo);export{ar as RichText};
2
+ //# sourceMappingURL=Field-SUWHJ4HF.js.map