@payloadcms/richtext-lexical 3.0.0-beta.13 → 3.0.0-beta.130

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 (2335) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/cell/rscEntry.d.ts +12 -0
  4. package/dist/cell/rscEntry.d.ts.map +1 -0
  5. package/dist/cell/rscEntry.js +82 -0
  6. package/dist/cell/rscEntry.js.map +1 -0
  7. package/dist/exports/client/Component-DOSSWC76.js +2 -0
  8. package/dist/exports/client/Component-DOSSWC76.js.map +7 -0
  9. package/dist/exports/client/Component-MBLHTKDK.js +2 -0
  10. package/dist/exports/client/Component-MBLHTKDK.js.map +7 -0
  11. package/dist/exports/client/Field-GWJ72IYP.js +2 -0
  12. package/dist/exports/client/Field-GWJ72IYP.js.map +7 -0
  13. package/dist/exports/client/RelationshipComponent-2RT3YXUT.js +2 -0
  14. package/dist/exports/client/RelationshipComponent-2RT3YXUT.js.map +7 -0
  15. package/dist/exports/client/bundled.css +1 -0
  16. package/dist/exports/client/chunk-5PBXL4HT.js +2 -0
  17. package/dist/exports/client/chunk-5PBXL4HT.js.map +7 -0
  18. package/dist/exports/client/chunk-AE5XKHR4.js +2 -0
  19. package/dist/exports/client/chunk-AE5XKHR4.js.map +7 -0
  20. package/dist/exports/client/chunk-CUIBIFW2.js +2 -0
  21. package/dist/exports/client/chunk-CUIBIFW2.js.map +7 -0
  22. package/dist/exports/client/chunk-MI5HS4QX.js +2 -0
  23. package/dist/exports/client/chunk-MI5HS4QX.js.map +7 -0
  24. package/dist/exports/client/chunk-OOBB5GCO.js +2 -0
  25. package/dist/exports/client/chunk-OOBB5GCO.js.map +7 -0
  26. package/dist/exports/client/chunk-XCEM47RI.js +3 -0
  27. package/dist/exports/client/chunk-XCEM47RI.js.map +7 -0
  28. package/dist/exports/client/chunk-XDEGE6I5.js +2 -0
  29. package/dist/exports/client/chunk-XDEGE6I5.js.map +7 -0
  30. package/dist/exports/client/chunk-YGRKYSDC.js +2 -0
  31. package/dist/exports/client/chunk-YGRKYSDC.js.map +7 -0
  32. package/dist/exports/client/component-ANB7VZLA.js +2 -0
  33. package/dist/exports/client/component-ANB7VZLA.js.map +7 -0
  34. package/dist/exports/client/component-YICNYPTU.js +2 -0
  35. package/dist/exports/client/component-YICNYPTU.js.map +7 -0
  36. package/dist/exports/client/component-YNHK5J3P.js +2 -0
  37. package/dist/exports/client/component-YNHK5J3P.js.map +7 -0
  38. package/dist/exports/client/componentInline-6RPSMLNJ.js +2 -0
  39. package/dist/exports/client/componentInline-6RPSMLNJ.js.map +7 -0
  40. package/dist/exports/client/index.d.ts +61 -0
  41. package/dist/exports/client/index.d.ts.map +1 -0
  42. package/dist/exports/client/index.js +38 -0
  43. package/dist/exports/client/index.js.map +7 -0
  44. package/dist/exports/server/migrate.d.ts +16 -0
  45. package/dist/exports/server/migrate.d.ts.map +1 -0
  46. package/dist/exports/server/migrate.js +16 -0
  47. package/dist/exports/server/migrate.js.map +1 -0
  48. package/dist/exports/server/rsc.d.ts +3 -0
  49. package/dist/exports/server/rsc.d.ts.map +1 -0
  50. package/dist/exports/server/rsc.js +3 -0
  51. package/dist/exports/server/rsc.js.map +1 -0
  52. package/dist/features/align/client/index.d.ts +2 -0
  53. package/dist/features/align/client/index.d.ts.map +1 -0
  54. package/dist/features/align/client/index.js +163 -0
  55. package/dist/features/align/client/index.js.map +1 -0
  56. package/dist/features/align/client/toolbarAlignGroup.d.ts +3 -0
  57. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -0
  58. package/dist/features/align/client/toolbarAlignGroup.js +13 -0
  59. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -0
  60. package/dist/features/align/server/i18n.d.ts +3 -0
  61. package/dist/features/align/server/i18n.d.ts.map +1 -0
  62. package/dist/features/align/server/i18n.js +195 -0
  63. package/dist/features/align/server/i18n.js.map +1 -0
  64. package/dist/features/align/server/index.d.ts +2 -0
  65. package/dist/features/align/server/index.d.ts.map +1 -0
  66. package/dist/features/align/server/index.js +10 -0
  67. package/dist/features/align/server/index.js.map +1 -0
  68. package/dist/features/blockquote/client/index.d.ts +2 -0
  69. package/dist/features/blockquote/client/index.d.ts.map +1 -0
  70. package/dist/features/blockquote/client/index.js +72 -0
  71. package/dist/features/blockquote/client/index.js.map +1 -0
  72. package/dist/features/blockquote/markdownTransformer.d.ts.map +1 -0
  73. package/dist/features/blockquote/markdownTransformer.js +34 -0
  74. package/dist/features/blockquote/markdownTransformer.js.map +1 -0
  75. package/dist/features/blockquote/server/i18n.d.ts +3 -0
  76. package/dist/features/blockquote/server/i18n.d.ts.map +1 -0
  77. package/dist/features/blockquote/server/i18n.js +99 -0
  78. package/dist/features/blockquote/server/i18n.js.map +1 -0
  79. package/dist/features/blockquote/server/index.d.ts +7 -0
  80. package/dist/features/blockquote/server/index.d.ts.map +1 -0
  81. package/dist/features/blockquote/server/index.js +51 -0
  82. package/dist/features/blockquote/server/index.js.map +1 -0
  83. package/dist/features/blocks/client/component/BlockContent.d.ts +23 -0
  84. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -0
  85. package/dist/features/blocks/client/component/BlockContent.js +192 -0
  86. package/dist/features/blocks/client/component/BlockContent.js.map +1 -0
  87. package/dist/features/blocks/client/component/FormSavePlugin.d.ts +11 -0
  88. package/dist/features/blocks/client/component/FormSavePlugin.d.ts.map +1 -0
  89. package/dist/features/blocks/client/component/FormSavePlugin.js +53 -0
  90. package/dist/features/blocks/client/component/FormSavePlugin.js.map +1 -0
  91. package/dist/features/blocks/client/component/index.d.ts +11 -0
  92. package/dist/features/blocks/client/component/index.d.ts.map +1 -0
  93. package/dist/features/blocks/client/component/index.js +165 -0
  94. package/dist/features/blocks/client/component/index.js.map +1 -0
  95. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +11 -0
  96. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -0
  97. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +20 -0
  98. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -0
  99. package/dist/features/blocks/client/componentInline/index.d.ts +10 -0
  100. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -0
  101. package/dist/features/blocks/client/componentInline/index.js +120 -0
  102. package/dist/features/blocks/client/componentInline/index.js.map +1 -0
  103. package/dist/features/blocks/client/index.d.ts +6 -0
  104. package/dist/features/blocks/client/index.d.ts.map +1 -0
  105. package/dist/features/blocks/client/index.js +171 -0
  106. package/dist/features/blocks/client/index.js.map +1 -0
  107. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +14 -0
  108. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -0
  109. package/dist/features/blocks/client/nodes/BlocksNode.js +53 -0
  110. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -0
  111. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +25 -0
  112. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -0
  113. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +42 -0
  114. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -0
  115. package/dist/features/blocks/client/plugin/commands.d.ts +9 -0
  116. package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -0
  117. package/dist/features/blocks/client/plugin/commands.js +7 -0
  118. package/dist/features/blocks/client/plugin/commands.js.map +1 -0
  119. package/dist/features/blocks/client/plugin/index.d.ts +6 -0
  120. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -0
  121. package/dist/features/blocks/client/plugin/index.js +205 -0
  122. package/dist/features/blocks/client/plugin/index.js.map +1 -0
  123. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +6 -0
  124. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -0
  125. package/dist/features/blocks/server/graphQLPopulationPromise.js +44 -0
  126. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -0
  127. package/dist/features/blocks/server/i18n.d.ts +3 -0
  128. package/dist/features/blocks/server/i18n.d.ts.map +1 -0
  129. package/dist/features/blocks/server/i18n.js +291 -0
  130. package/dist/features/blocks/server/i18n.js.map +1 -0
  131. package/dist/features/blocks/server/index.d.ts +8 -0
  132. package/dist/features/blocks/server/index.d.ts.map +1 -0
  133. package/dist/features/blocks/server/index.js +174 -0
  134. package/dist/features/blocks/server/index.js.map +1 -0
  135. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +44 -0
  136. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -0
  137. package/dist/features/blocks/server/nodes/BlocksNode.js +87 -0
  138. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -0
  139. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +40 -0
  140. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -0
  141. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +88 -0
  142. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -0
  143. package/dist/features/blocks/server/validate.d.ts +6 -0
  144. package/dist/features/blocks/server/validate.d.ts.map +1 -0
  145. package/dist/features/blocks/server/validate.js +51 -0
  146. package/dist/features/blocks/server/validate.js.map +1 -0
  147. package/dist/features/converters/html/converter/converters/linebreak.d.ts.map +1 -0
  148. package/dist/features/converters/html/converter/converters/linebreak.js +7 -0
  149. package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -0
  150. package/dist/features/converters/html/converter/converters/paragraph.d.ts.map +1 -0
  151. package/dist/features/converters/html/converter/converters/paragraph.js +32 -0
  152. package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -0
  153. package/dist/features/converters/html/converter/converters/text.d.ts.map +1 -0
  154. package/dist/features/converters/html/converter/converters/text.js +33 -0
  155. package/dist/features/converters/html/converter/converters/text.js.map +1 -0
  156. package/dist/features/converters/html/converter/defaultConverters.d.ts.map +1 -0
  157. package/dist/features/converters/html/converter/defaultConverters.js +5 -0
  158. package/dist/features/converters/html/converter/defaultConverters.js.map +1 -0
  159. package/dist/features/converters/html/converter/index.d.ts +52 -0
  160. package/dist/features/converters/html/converter/index.d.ts.map +1 -0
  161. package/dist/features/converters/html/converter/index.js +88 -0
  162. package/dist/features/converters/html/converter/index.js.map +1 -0
  163. package/dist/features/converters/html/converter/types.d.ts +24 -0
  164. package/dist/features/converters/html/converter/types.d.ts.map +1 -0
  165. package/dist/features/converters/html/converter/types.js +2 -0
  166. package/dist/features/converters/html/converter/types.js.map +1 -0
  167. package/dist/features/converters/html/field/index.d.ts +35 -0
  168. package/dist/features/converters/html/field/index.d.ts.map +1 -0
  169. package/dist/features/converters/html/field/index.js +158 -0
  170. package/dist/features/converters/html/field/index.js.map +1 -0
  171. package/dist/features/converters/html/index.d.ts +8 -0
  172. package/dist/features/converters/html/index.d.ts.map +1 -0
  173. package/dist/features/converters/html/index.js +7 -0
  174. package/dist/features/converters/html/index.js.map +1 -0
  175. package/dist/features/debug/testRecorder/client/index.d.ts +2 -0
  176. package/dist/features/debug/testRecorder/client/index.d.ts.map +1 -0
  177. package/dist/features/debug/testRecorder/client/index.js +11 -0
  178. package/dist/features/debug/testRecorder/client/index.js.map +1 -0
  179. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +5 -0
  180. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -0
  181. package/dist/features/debug/testRecorder/client/plugin/index.js +422 -0
  182. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -0
  183. package/dist/features/debug/testRecorder/server/index.d.ts +2 -0
  184. package/dist/features/debug/testRecorder/server/index.d.ts.map +1 -0
  185. package/dist/features/debug/testRecorder/server/index.js +8 -0
  186. package/dist/features/debug/testRecorder/server/index.js.map +1 -0
  187. package/dist/features/debug/treeView/client/index.d.ts +2 -0
  188. package/dist/features/debug/treeView/client/index.d.ts.map +1 -0
  189. package/dist/features/debug/treeView/client/index.js +11 -0
  190. package/dist/features/debug/treeView/client/index.js.map +1 -0
  191. package/dist/features/debug/treeView/client/plugin/index.d.ts +4 -0
  192. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -0
  193. package/dist/features/debug/treeView/client/plugin/index.js +29 -0
  194. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -0
  195. package/dist/features/debug/treeView/server/index.d.ts +2 -0
  196. package/dist/features/debug/treeView/server/index.d.ts.map +1 -0
  197. package/dist/features/debug/treeView/server/index.js +8 -0
  198. package/dist/features/debug/treeView/server/index.js.map +1 -0
  199. package/dist/features/experimental_table/client/index.d.ts +2 -0
  200. package/dist/features/experimental_table/client/index.d.ts.map +1 -0
  201. package/dist/features/experimental_table/client/index.js +54 -0
  202. package/dist/features/experimental_table/client/index.js.map +1 -0
  203. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +4 -0
  204. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  205. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +521 -0
  206. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  207. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +3 -0
  208. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  209. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +321 -0
  210. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  211. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +5 -0
  212. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  213. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +225 -0
  214. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  215. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +24 -0
  216. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  217. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +152 -0
  218. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -0
  219. package/dist/features/experimental_table/client/utils/debounce.d.ts +61 -0
  220. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -0
  221. package/dist/features/experimental_table/client/utils/debounce.js +221 -0
  222. package/dist/features/experimental_table/client/utils/debounce.js.map +1 -0
  223. package/dist/features/experimental_table/client/utils/useDebounce.d.ts +6 -0
  224. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -0
  225. package/dist/features/experimental_table/client/utils/useDebounce.js +16 -0
  226. package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -0
  227. package/dist/features/experimental_table/server/index.d.ts +13 -0
  228. package/dist/features/experimental_table/server/index.d.ts.map +1 -0
  229. package/dist/features/experimental_table/server/index.js +152 -0
  230. package/dist/features/experimental_table/server/index.js.map +1 -0
  231. package/dist/features/format/bold/feature.client.d.ts +2 -0
  232. package/dist/features/format/bold/feature.client.d.ts.map +1 -0
  233. package/dist/features/format/bold/feature.client.js +44 -0
  234. package/dist/features/format/bold/feature.client.js.map +1 -0
  235. package/dist/features/format/bold/feature.server.d.ts +2 -0
  236. package/dist/features/format/bold/feature.server.d.ts.map +1 -0
  237. package/dist/features/format/bold/feature.server.js +19 -0
  238. package/dist/features/format/bold/feature.server.js.map +1 -0
  239. package/dist/features/format/bold/markdownTransformers.d.ts.map +1 -0
  240. package/dist/features/format/bold/markdownTransformers.js +23 -0
  241. package/dist/features/format/bold/markdownTransformers.js.map +1 -0
  242. package/dist/features/format/inlineCode/feature.client.d.ts +2 -0
  243. package/dist/features/format/inlineCode/feature.client.d.ts.map +1 -0
  244. package/dist/features/format/inlineCode/feature.client.js +36 -0
  245. package/dist/features/format/inlineCode/feature.client.js.map +1 -0
  246. package/dist/features/format/inlineCode/feature.server.d.ts +2 -0
  247. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -0
  248. package/dist/features/format/inlineCode/feature.server.js +10 -0
  249. package/dist/features/format/inlineCode/feature.server.js.map +1 -0
  250. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +1 -0
  251. package/dist/features/format/inlineCode/markdownTransformers.js +6 -0
  252. package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -0
  253. package/dist/features/format/italic/feature.client.d.ts +2 -0
  254. package/dist/features/format/italic/feature.client.d.ts.map +1 -0
  255. package/dist/features/format/italic/feature.client.js +36 -0
  256. package/dist/features/format/italic/feature.client.js.map +1 -0
  257. package/dist/features/format/italic/feature.server.d.ts +2 -0
  258. package/dist/features/format/italic/feature.server.d.ts.map +1 -0
  259. package/dist/features/format/italic/feature.server.js +10 -0
  260. package/dist/features/format/italic/feature.server.js.map +1 -0
  261. package/dist/features/format/italic/markdownTransformers.d.ts.map +1 -0
  262. package/dist/features/format/italic/markdownTransformers.js +12 -0
  263. package/dist/features/format/italic/markdownTransformers.js.map +1 -0
  264. package/dist/features/format/shared/toolbarFormatGroup.d.ts +3 -0
  265. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  266. package/dist/features/format/shared/toolbarFormatGroup.js +11 -0
  267. package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -0
  268. package/dist/features/format/strikethrough/feature.client.d.ts +2 -0
  269. package/dist/features/format/strikethrough/feature.client.d.ts.map +1 -0
  270. package/dist/features/format/strikethrough/feature.client.js +36 -0
  271. package/dist/features/format/strikethrough/feature.client.js.map +1 -0
  272. package/dist/features/format/strikethrough/feature.server.d.ts +2 -0
  273. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -0
  274. package/dist/features/format/strikethrough/feature.server.js +10 -0
  275. package/dist/features/format/strikethrough/feature.server.js.map +1 -0
  276. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +1 -0
  277. package/dist/features/format/strikethrough/markdownTransformers.js +6 -0
  278. package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -0
  279. package/dist/features/format/subscript/feature.client.d.ts +2 -0
  280. package/dist/features/format/subscript/feature.client.d.ts.map +1 -0
  281. package/dist/features/format/subscript/feature.client.js +34 -0
  282. package/dist/features/format/subscript/feature.client.js.map +1 -0
  283. package/dist/features/format/subscript/feature.server.d.ts +2 -0
  284. package/dist/features/format/subscript/feature.server.d.ts.map +1 -0
  285. package/dist/features/format/subscript/feature.server.js +8 -0
  286. package/dist/features/format/subscript/feature.server.js.map +1 -0
  287. package/dist/features/format/superscript/feature.client.d.ts +2 -0
  288. package/dist/features/format/superscript/feature.client.d.ts.map +1 -0
  289. package/dist/features/format/superscript/feature.client.js +34 -0
  290. package/dist/features/format/superscript/feature.client.js.map +1 -0
  291. package/dist/features/format/superscript/feature.server.d.ts +2 -0
  292. package/dist/features/format/superscript/feature.server.d.ts.map +1 -0
  293. package/dist/features/format/superscript/feature.server.js +8 -0
  294. package/dist/features/format/superscript/feature.server.js.map +1 -0
  295. package/dist/features/format/underline/feature.client.d.ts +2 -0
  296. package/dist/features/format/underline/feature.client.d.ts.map +1 -0
  297. package/dist/features/format/underline/feature.client.js +34 -0
  298. package/dist/features/format/underline/feature.client.js.map +1 -0
  299. package/dist/features/format/underline/feature.server.d.ts +2 -0
  300. package/dist/features/format/underline/feature.server.d.ts.map +1 -0
  301. package/dist/features/format/underline/feature.server.js +8 -0
  302. package/dist/features/format/underline/feature.server.js.map +1 -0
  303. package/dist/features/heading/client/index.d.ts +3 -0
  304. package/dist/features/heading/client/index.d.ts.map +1 -0
  305. package/dist/features/heading/client/index.js +108 -0
  306. package/dist/features/heading/client/index.js.map +1 -0
  307. package/dist/features/heading/markdownTransformer.d.ts.map +1 -0
  308. package/dist/features/heading/markdownTransformer.js +26 -0
  309. package/dist/features/heading/markdownTransformer.js.map +1 -0
  310. package/dist/features/heading/server/i18n.d.ts +3 -0
  311. package/dist/features/heading/server/i18n.d.ts.map +1 -0
  312. package/dist/features/heading/server/i18n.js +99 -0
  313. package/dist/features/heading/server/i18n.js.map +1 -0
  314. package/dist/features/heading/server/index.d.ts +10 -0
  315. package/dist/features/heading/server/index.d.ts.map +1 -0
  316. package/dist/features/heading/server/index.js +62 -0
  317. package/dist/features/heading/server/index.js.map +1 -0
  318. package/dist/features/horizontalRule/client/component/index.d.ts +10 -0
  319. package/dist/features/horizontalRule/client/component/index.d.ts.map +1 -0
  320. package/dist/features/horizontalRule/client/component/index.js +100 -0
  321. package/dist/features/horizontalRule/client/component/index.js.map +1 -0
  322. package/dist/features/horizontalRule/client/index.d.ts +2 -0
  323. package/dist/features/horizontalRule/client/index.d.ts.map +1 -0
  324. package/dist/features/horizontalRule/client/index.js +62 -0
  325. package/dist/features/horizontalRule/client/index.js.map +1 -0
  326. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -0
  327. package/dist/features/horizontalRule/client/markdownTransformer.js +20 -0
  328. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -0
  329. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +20 -0
  330. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -0
  331. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +46 -0
  332. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -0
  333. package/dist/features/horizontalRule/client/plugin/index.d.ts +7 -0
  334. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -0
  335. package/dist/features/horizontalRule/client/plugin/index.js +42 -0
  336. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -0
  337. package/dist/features/horizontalRule/server/i18n.d.ts +3 -0
  338. package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -0
  339. package/dist/features/horizontalRule/server/i18n.js +99 -0
  340. package/dist/features/horizontalRule/server/i18n.js.map +1 -0
  341. package/dist/features/horizontalRule/server/index.d.ts +2 -0
  342. package/dist/features/horizontalRule/server/index.d.ts.map +1 -0
  343. package/dist/features/horizontalRule/server/index.js +25 -0
  344. package/dist/features/horizontalRule/server/index.js.map +1 -0
  345. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +3 -0
  346. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -0
  347. package/dist/features/horizontalRule/server/markdownTransformer.js +20 -0
  348. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -0
  349. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +53 -0
  350. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -0
  351. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +88 -0
  352. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -0
  353. package/dist/features/indent/client/index.d.ts +2 -0
  354. package/dist/features/indent/client/index.d.ts.map +1 -0
  355. package/dist/features/indent/client/index.js +62 -0
  356. package/dist/features/indent/client/index.js.map +1 -0
  357. package/dist/features/indent/client/toolbarIndentGroup.d.ts +3 -0
  358. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -0
  359. package/dist/features/indent/client/toolbarIndentGroup.js +11 -0
  360. package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -0
  361. package/dist/features/indent/server/i18n.d.ts +3 -0
  362. package/dist/features/indent/server/i18n.d.ts.map +1 -0
  363. package/dist/features/indent/server/i18n.js +131 -0
  364. package/dist/features/indent/server/i18n.js.map +1 -0
  365. package/dist/features/indent/server/index.d.ts +2 -0
  366. package/dist/features/indent/server/index.d.ts.map +1 -0
  367. package/dist/features/indent/server/index.js +10 -0
  368. package/dist/features/indent/server/index.js.map +1 -0
  369. package/dist/features/link/client/index.d.ts +4 -0
  370. package/dist/features/link/client/index.d.ts.map +1 -0
  371. package/dist/features/link/client/index.js +96 -0
  372. package/dist/features/link/client/index.js.map +1 -0
  373. package/dist/features/link/client/plugins/autoLink/index.d.ts +20 -0
  374. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -0
  375. package/dist/features/link/client/plugins/autoLink/index.js +333 -0
  376. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -0
  377. package/dist/features/link/client/plugins/clickableLink/index.d.ts +4 -0
  378. package/dist/features/link/client/plugins/clickableLink/index.d.ts.map +1 -0
  379. package/dist/features/link/client/plugins/clickableLink/index.js +9 -0
  380. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -0
  381. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  382. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js +5 -0
  383. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  384. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  385. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +311 -0
  386. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  387. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +5 -0
  388. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  389. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +15 -0
  390. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -0
  391. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +15 -0
  392. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  393. package/dist/features/link/client/plugins/floatingLinkEditor/types.js +5 -0
  394. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -0
  395. package/dist/features/link/client/plugins/link/index.d.ts +4 -0
  396. package/dist/features/link/client/plugins/link/index.d.ts.map +1 -0
  397. package/dist/features/link/client/plugins/link/index.js +60 -0
  398. package/dist/features/link/client/plugins/link/index.js.map +1 -0
  399. package/dist/features/link/markdownTransformer.d.ts +6 -0
  400. package/dist/features/link/markdownTransformer.d.ts.map +1 -0
  401. package/dist/features/link/markdownTransformer.js +49 -0
  402. package/dist/features/link/markdownTransformer.js.map +1 -0
  403. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
  404. package/dist/features/link/nodes/AutoLinkNode.js +69 -0
  405. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -0
  406. package/dist/features/link/nodes/LinkNode.d.ts +39 -0
  407. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
  408. package/dist/features/link/nodes/LinkNode.js +323 -0
  409. package/dist/features/link/nodes/LinkNode.js.map +1 -0
  410. package/dist/features/link/nodes/types.d.ts +24 -0
  411. package/dist/features/link/nodes/types.d.ts.map +1 -0
  412. package/dist/features/link/nodes/types.js +2 -0
  413. package/dist/features/link/nodes/types.js.map +1 -0
  414. package/dist/features/link/server/baseFields.d.ts +3 -0
  415. package/dist/features/link/server/baseFields.d.ts.map +1 -0
  416. package/dist/features/link/server/baseFields.js +136 -0
  417. package/dist/features/link/server/baseFields.js.map +1 -0
  418. package/dist/features/link/server/graphQLPopulationPromise.d.ts +5 -0
  419. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -0
  420. package/dist/features/link/server/graphQLPopulationPromise.js +45 -0
  421. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -0
  422. package/dist/features/link/server/i18n.d.ts +3 -0
  423. package/dist/features/link/server/i18n.d.ts.map +1 -0
  424. package/dist/features/link/server/i18n.js +131 -0
  425. package/dist/features/link/server/i18n.js.map +1 -0
  426. package/dist/features/link/server/index.d.ts +35 -0
  427. package/dist/features/link/server/index.d.ts.map +1 -0
  428. package/dist/features/link/server/index.js +151 -0
  429. package/dist/features/link/server/index.js.map +1 -0
  430. package/dist/features/link/server/transformExtraFields.d.ts +9 -0
  431. package/dist/features/link/server/transformExtraFields.d.ts.map +1 -0
  432. package/dist/features/link/server/transformExtraFields.js +20 -0
  433. package/dist/features/link/server/transformExtraFields.js.map +1 -0
  434. package/dist/features/link/server/validate.d.ts +6 -0
  435. package/dist/features/link/server/validate.d.ts.map +1 -0
  436. package/dist/features/link/server/validate.js +43 -0
  437. package/dist/features/link/server/validate.js.map +1 -0
  438. package/dist/features/lists/checklist/client/index.d.ts +2 -0
  439. package/dist/features/lists/checklist/client/index.d.ts.map +1 -0
  440. package/dist/features/lists/checklist/client/index.js +92 -0
  441. package/dist/features/lists/checklist/client/index.js.map +1 -0
  442. package/dist/features/lists/checklist/client/plugin/index.d.ts +3 -0
  443. package/dist/features/lists/checklist/client/plugin/index.d.ts.map +1 -0
  444. package/dist/features/lists/checklist/client/plugin/index.js +9 -0
  445. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -0
  446. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
  447. package/dist/features/lists/checklist/markdownTransformers.js +12 -0
  448. package/dist/features/lists/checklist/markdownTransformers.js.map +1 -0
  449. package/dist/features/lists/checklist/server/i18n.d.ts +3 -0
  450. package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -0
  451. package/dist/features/lists/checklist/server/i18n.js +99 -0
  452. package/dist/features/lists/checklist/server/i18n.js.map +1 -0
  453. package/dist/features/lists/checklist/server/index.d.ts +2 -0
  454. package/dist/features/lists/checklist/server/index.d.ts.map +1 -0
  455. package/dist/features/lists/checklist/server/index.js +30 -0
  456. package/dist/features/lists/checklist/server/index.js.map +1 -0
  457. package/dist/features/lists/htmlConverter.d.ts +5 -0
  458. package/dist/features/lists/htmlConverter.d.ts.map +1 -0
  459. package/dist/features/lists/htmlConverter.js +81 -0
  460. package/dist/features/lists/htmlConverter.js.map +1 -0
  461. package/dist/features/lists/orderedList/client/index.d.ts +2 -0
  462. package/dist/features/lists/orderedList/client/index.d.ts.map +1 -0
  463. package/dist/features/lists/orderedList/client/index.js +84 -0
  464. package/dist/features/lists/orderedList/client/index.js.map +1 -0
  465. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  466. package/dist/features/lists/orderedList/markdownTransformer.js +12 -0
  467. package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -0
  468. package/dist/features/lists/orderedList/server/i18n.d.ts +3 -0
  469. package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -0
  470. package/dist/features/lists/orderedList/server/i18n.js +99 -0
  471. package/dist/features/lists/orderedList/server/i18n.js.map +1 -0
  472. package/dist/features/lists/orderedList/server/index.d.ts +2 -0
  473. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -0
  474. package/dist/features/lists/orderedList/server/index.js +30 -0
  475. package/dist/features/lists/orderedList/server/index.js.map +1 -0
  476. package/dist/features/lists/plugin/index.d.ts +13 -0
  477. package/dist/features/lists/plugin/index.d.ts.map +1 -0
  478. package/dist/features/lists/plugin/index.js +9 -0
  479. package/dist/features/lists/plugin/index.js.map +1 -0
  480. package/dist/features/lists/shared/markdown.d.ts +6 -0
  481. package/dist/features/lists/shared/markdown.d.ts.map +1 -0
  482. package/dist/features/lists/shared/markdown.js +57 -0
  483. package/dist/features/lists/shared/markdown.js.map +1 -0
  484. package/dist/features/lists/shared/slashMenuListGroup.d.ts +3 -0
  485. package/dist/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
  486. package/dist/features/lists/shared/slashMenuListGroup.js +12 -0
  487. package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -0
  488. package/dist/features/lists/unorderedList/client/index.d.ts +2 -0
  489. package/dist/features/lists/unorderedList/client/index.d.ts.map +1 -0
  490. package/dist/features/lists/unorderedList/client/index.js +80 -0
  491. package/dist/features/lists/unorderedList/client/index.js.map +1 -0
  492. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  493. package/dist/features/lists/unorderedList/markdownTransformer.js +12 -0
  494. package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  495. package/dist/features/lists/unorderedList/server/i18n.d.ts +3 -0
  496. package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -0
  497. package/dist/features/lists/unorderedList/server/i18n.js +99 -0
  498. package/dist/features/lists/unorderedList/server/i18n.js.map +1 -0
  499. package/dist/features/lists/unorderedList/server/index.d.ts +2 -0
  500. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -0
  501. package/dist/features/lists/unorderedList/server/index.js +26 -0
  502. package/dist/features/lists/unorderedList/server/index.js.map +1 -0
  503. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +3 -0
  504. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  505. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +22 -0
  506. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -0
  507. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +3 -0
  508. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
  509. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +33 -0
  510. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -0
  511. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +3 -0
  512. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
  513. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +24 -0
  514. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -0
  515. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +3 -0
  516. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  517. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +25 -0
  518. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -0
  519. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +3 -0
  520. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
  521. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +22 -0
  522. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -0
  523. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +3 -0
  524. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  525. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +28 -0
  526. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -0
  527. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +3 -0
  528. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  529. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +22 -0
  530. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -0
  531. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +3 -0
  532. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
  533. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +9 -0
  534. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -0
  535. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +19 -0
  536. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
  537. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +78 -0
  538. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -0
  539. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +23 -0
  540. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
  541. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +2 -0
  542. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -0
  543. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +2 -0
  544. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
  545. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +10 -0
  546. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -0
  547. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +10 -0
  548. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
  549. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +49 -0
  550. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -0
  551. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  552. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  553. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  554. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  555. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  556. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +74 -0
  557. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  558. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +3 -0
  559. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
  560. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +23 -0
  561. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -0
  562. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +3 -0
  563. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  564. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +24 -0
  565. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -0
  566. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +3 -0
  567. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
  568. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +33 -0
  569. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -0
  570. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +3 -0
  571. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
  572. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +30 -0
  573. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -0
  574. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +3 -0
  575. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  576. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +26 -0
  577. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -0
  578. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +3 -0
  579. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
  580. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +26 -0
  581. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -0
  582. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +3 -0
  583. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
  584. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +15 -0
  585. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -0
  586. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +3 -0
  587. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  588. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +27 -0
  589. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -0
  590. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +3 -0
  591. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
  592. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +26 -0
  593. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -0
  594. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +3 -0
  595. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  596. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +18 -0
  597. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -0
  598. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +3 -0
  599. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
  600. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +12 -0
  601. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -0
  602. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
  603. package/dist/features/migrations/slateToLexical/converter/index.js +117 -0
  604. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -0
  605. package/dist/features/migrations/slateToLexical/converter/types.d.ts +16 -0
  606. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
  607. package/dist/features/migrations/slateToLexical/converter/types.js +2 -0
  608. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -0
  609. package/dist/features/migrations/slateToLexical/feature.client.d.ts +2 -0
  610. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
  611. package/dist/features/migrations/slateToLexical/feature.client.js +10 -0
  612. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -0
  613. package/dist/features/migrations/slateToLexical/feature.server.d.ts +11 -0
  614. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
  615. package/dist/features/migrations/slateToLexical/feature.server.js +50 -0
  616. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -0
  617. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  618. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  619. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  620. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  621. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  622. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +74 -0
  623. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  624. package/dist/features/paragraph/client/index.d.ts +2 -0
  625. package/dist/features/paragraph/client/index.d.ts.map +1 -0
  626. package/dist/features/paragraph/client/index.js +68 -0
  627. package/dist/features/paragraph/client/index.js.map +1 -0
  628. package/dist/features/paragraph/server/i18n.d.ts +3 -0
  629. package/dist/features/paragraph/server/i18n.d.ts.map +1 -0
  630. package/dist/features/paragraph/server/i18n.js +131 -0
  631. package/dist/features/paragraph/server/i18n.js.map +1 -0
  632. package/dist/features/paragraph/server/index.d.ts +2 -0
  633. package/dist/features/paragraph/server/index.d.ts.map +1 -0
  634. package/dist/features/paragraph/server/index.js +11 -0
  635. package/dist/features/paragraph/server/index.js.map +1 -0
  636. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +13 -0
  637. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -0
  638. package/dist/features/relationship/client/components/RelationshipComponent.js +176 -0
  639. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -0
  640. package/dist/features/relationship/client/drawer/commands.d.ts.map +1 -0
  641. package/dist/features/relationship/client/drawer/commands.js +3 -0
  642. package/dist/features/relationship/client/drawer/commands.js.map +1 -0
  643. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -0
  644. package/dist/features/relationship/client/drawer/index.js +155 -0
  645. package/dist/features/relationship/client/drawer/index.js.map +1 -0
  646. package/dist/features/relationship/client/index.d.ts +3 -0
  647. package/dist/features/relationship/client/index.d.ts.map +1 -0
  648. package/dist/features/relationship/client/index.js +66 -0
  649. package/dist/features/relationship/client/index.js.map +1 -0
  650. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +15 -0
  651. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -0
  652. package/dist/features/relationship/client/nodes/RelationshipNode.js +75 -0
  653. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -0
  654. package/dist/features/relationship/client/plugins/index.d.ts +7 -0
  655. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -0
  656. package/dist/features/relationship/client/plugins/index.js +105 -0
  657. package/dist/features/relationship/client/plugins/index.js.map +1 -0
  658. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  659. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js +104 -0
  660. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js.map +1 -0
  661. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +5 -0
  662. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -0
  663. package/dist/features/relationship/server/graphQLPopulationPromise.js +37 -0
  664. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -0
  665. package/dist/features/relationship/server/i18n.d.ts +3 -0
  666. package/dist/features/relationship/server/i18n.d.ts.map +1 -0
  667. package/dist/features/relationship/server/i18n.js +99 -0
  668. package/dist/features/relationship/server/i18n.js.map +1 -0
  669. package/dist/features/relationship/server/index.d.ts +27 -0
  670. package/dist/features/relationship/server/index.d.ts.map +1 -0
  671. package/dist/features/relationship/server/index.js +67 -0
  672. package/dist/features/relationship/server/index.js.map +1 -0
  673. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +37 -0
  674. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -0
  675. package/dist/features/relationship/server/nodes/RelationshipNode.js +104 -0
  676. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -0
  677. package/dist/features/shared/slashMenu/basicGroup.d.ts +3 -0
  678. package/dist/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
  679. package/dist/features/shared/slashMenu/basicGroup.js +12 -0
  680. package/dist/features/shared/slashMenu/basicGroup.js.map +1 -0
  681. package/dist/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
  682. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  683. package/dist/features/shared/toolbar/addDropdownGroup.js +11 -0
  684. package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  685. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
  686. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  687. package/dist/features/shared/toolbar/featureButtonsGroup.js +9 -0
  688. package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  689. package/dist/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
  690. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  691. package/dist/features/shared/toolbar/textDropdownGroup.js +11 -0
  692. package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  693. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +5 -0
  694. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -0
  695. package/dist/features/toolbars/fixed/client/Toolbar/index.js +313 -0
  696. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -0
  697. package/dist/features/toolbars/fixed/client/index.d.ts +3 -0
  698. package/dist/features/toolbars/fixed/client/index.d.ts.map +1 -0
  699. package/dist/features/toolbars/fixed/client/index.js +11 -0
  700. package/dist/features/toolbars/fixed/client/index.js.map +1 -0
  701. package/dist/features/toolbars/fixed/server/index.d.ts +18 -0
  702. package/dist/features/toolbars/fixed/server/index.d.ts.map +1 -0
  703. package/dist/features/toolbars/fixed/server/index.js +18 -0
  704. package/dist/features/toolbars/fixed/server/index.js.map +1 -0
  705. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +4 -0
  706. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -0
  707. package/dist/features/toolbars/inline/client/Toolbar/index.js +404 -0
  708. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -0
  709. package/dist/features/toolbars/inline/client/index.d.ts +2 -0
  710. package/dist/features/toolbars/inline/client/index.d.ts.map +1 -0
  711. package/dist/features/toolbars/inline/client/index.js +11 -0
  712. package/dist/features/toolbars/inline/client/index.js.map +1 -0
  713. package/dist/features/toolbars/inline/server/index.d.ts +2 -0
  714. package/dist/features/toolbars/inline/server/index.d.ts.map +1 -0
  715. package/dist/features/toolbars/inline/server/index.js +8 -0
  716. package/dist/features/toolbars/inline/server/index.js.map +1 -0
  717. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
  718. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  719. package/dist/features/toolbars/shared/ToolbarButton/index.js +89 -0
  720. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  721. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +22 -0
  722. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  723. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +208 -0
  724. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  725. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +22 -0
  726. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  727. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +311 -0
  728. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  729. package/dist/features/toolbars/types.d.ts +93 -0
  730. package/dist/features/toolbars/types.d.ts.map +1 -0
  731. package/dist/features/toolbars/types.js +2 -0
  732. package/dist/features/toolbars/types.js.map +1 -0
  733. package/dist/features/typeUtilities.d.ts +8 -0
  734. package/dist/features/typeUtilities.d.ts.map +1 -0
  735. package/dist/features/typeUtilities.js +7 -0
  736. package/dist/features/typeUtilities.js.map +1 -0
  737. package/dist/features/typesClient.d.ts +185 -0
  738. package/dist/features/typesClient.d.ts.map +1 -0
  739. package/dist/features/typesClient.js +2 -0
  740. package/dist/features/typesClient.js.map +1 -0
  741. package/dist/features/typesServer.d.ts +311 -0
  742. package/dist/features/typesServer.d.ts.map +1 -0
  743. package/dist/features/typesServer.js +2 -0
  744. package/dist/features/typesServer.js.map +1 -0
  745. package/dist/features/upload/client/component/index.d.ts +9 -0
  746. package/dist/features/upload/client/component/index.d.ts.map +1 -0
  747. package/dist/features/upload/client/component/index.js +243 -0
  748. package/dist/features/upload/client/component/index.js.map +1 -0
  749. package/dist/features/upload/client/drawer/commands.d.ts.map +1 -0
  750. package/dist/features/upload/client/drawer/commands.js +5 -0
  751. package/dist/features/upload/client/drawer/commands.js.map +1 -0
  752. package/dist/features/upload/client/drawer/index.d.ts.map +1 -0
  753. package/dist/features/upload/client/drawer/index.js +128 -0
  754. package/dist/features/upload/client/drawer/index.js.map +1 -0
  755. package/dist/features/upload/client/feature.client.d.ts +9 -0
  756. package/dist/features/upload/client/feature.client.d.ts.map +1 -0
  757. package/dist/features/upload/client/feature.client.js +64 -0
  758. package/dist/features/upload/client/feature.client.js.map +1 -0
  759. package/dist/features/upload/client/nodes/UploadNode.d.ts +22 -0
  760. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -0
  761. package/dist/features/upload/client/nodes/UploadNode.js +94 -0
  762. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -0
  763. package/dist/features/upload/client/plugin/index.d.ts +8 -0
  764. package/dist/features/upload/client/plugin/index.d.ts.map +1 -0
  765. package/dist/features/upload/client/plugin/index.js +81 -0
  766. package/dist/features/upload/client/plugin/index.js.map +1 -0
  767. package/dist/features/upload/server/feature.server.d.ts +18 -0
  768. package/dist/features/upload/server/feature.server.d.ts.map +1 -0
  769. package/dist/features/upload/server/feature.server.js +217 -0
  770. package/dist/features/upload/server/feature.server.js.map +1 -0
  771. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +5 -0
  772. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -0
  773. package/dist/features/upload/server/graphQLPopulationPromise.js +65 -0
  774. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -0
  775. package/dist/features/upload/server/i18n.d.ts +3 -0
  776. package/dist/features/upload/server/i18n.d.ts.map +1 -0
  777. package/dist/features/upload/server/i18n.js +99 -0
  778. package/dist/features/upload/server/i18n.js.map +1 -0
  779. package/dist/features/upload/server/nodes/UploadNode.d.ts +42 -0
  780. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -0
  781. package/dist/features/upload/server/nodes/UploadNode.js +133 -0
  782. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -0
  783. package/dist/features/upload/server/validate.d.ts +5 -0
  784. package/dist/features/upload/server/validate.d.ts.map +1 -0
  785. package/dist/features/upload/server/validate.js +61 -0
  786. package/dist/features/upload/server/validate.js.map +1 -0
  787. package/dist/field/Field.d.ts +9 -10
  788. package/dist/field/Field.d.ts.map +1 -1
  789. package/dist/field/Field.js +111 -86
  790. package/dist/field/Field.js.map +1 -1
  791. package/dist/field/bundled.css +1 -0
  792. package/dist/field/index.d.ts +2 -7
  793. package/dist/field/index.d.ts.map +1 -1
  794. package/dist/field/index.js +78 -81
  795. package/dist/field/index.js.map +1 -1
  796. package/dist/field/rscEntry.d.ts +9 -0
  797. package/dist/field/rscEntry.d.ts.map +1 -0
  798. package/dist/field/rscEntry.js +34 -0
  799. package/dist/field/rscEntry.js.map +1 -0
  800. package/dist/i18n.d.ts +3 -0
  801. package/dist/i18n.d.ts.map +1 -0
  802. package/dist/i18n.js +163 -0
  803. package/dist/i18n.js.map +1 -0
  804. package/dist/index.d.ts +62 -84
  805. package/dist/index.d.ts.map +1 -1
  806. package/dist/index.js +726 -251
  807. package/dist/index.js.map +1 -1
  808. package/dist/lexical/EditorPlugin.d.ts +8 -0
  809. package/dist/lexical/EditorPlugin.d.ts.map +1 -0
  810. package/dist/lexical/EditorPlugin.js +21 -0
  811. package/dist/lexical/EditorPlugin.js.map +1 -0
  812. package/dist/lexical/LexicalEditor.d.ts +7 -0
  813. package/dist/lexical/LexicalEditor.d.ts.map +1 -0
  814. package/dist/lexical/LexicalEditor.js +231 -0
  815. package/dist/lexical/LexicalEditor.js.map +1 -0
  816. package/dist/lexical/LexicalProvider.d.ts +14 -0
  817. package/dist/lexical/LexicalProvider.d.ts.map +1 -0
  818. package/dist/lexical/LexicalProvider.js +101 -0
  819. package/dist/lexical/LexicalProvider.js.map +1 -0
  820. package/dist/lexical/config/client/EditorConfigProvider.d.ts +28 -0
  821. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
  822. package/dist/lexical/config/client/EditorConfigProvider.js +89 -0
  823. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -0
  824. package/dist/lexical/config/client/default.d.ts +3 -0
  825. package/dist/lexical/config/client/default.d.ts.map +1 -0
  826. package/dist/lexical/config/client/default.js +8 -0
  827. package/dist/lexical/config/client/default.js.map +1 -0
  828. package/dist/lexical/config/client/loader.d.ts +10 -0
  829. package/dist/lexical/config/client/loader.d.ts.map +1 -0
  830. package/dist/lexical/config/client/loader.js +37 -0
  831. package/dist/lexical/config/client/loader.js.map +1 -0
  832. package/dist/lexical/config/client/sanitize.d.ts +7 -0
  833. package/dist/lexical/config/client/sanitize.d.ts.map +1 -0
  834. package/dist/lexical/config/client/sanitize.js +180 -0
  835. package/dist/lexical/config/client/sanitize.js.map +1 -0
  836. package/dist/lexical/config/server/default.d.ts +7 -0
  837. package/dist/lexical/config/server/default.d.ts.map +1 -0
  838. package/dist/lexical/config/server/default.js +31 -0
  839. package/dist/lexical/config/server/default.js.map +1 -0
  840. package/dist/lexical/config/server/loader.d.ts +11 -0
  841. package/dist/lexical/config/server/loader.d.ts.map +1 -0
  842. package/dist/lexical/config/server/loader.js +122 -0
  843. package/dist/lexical/config/server/loader.js.map +1 -0
  844. package/dist/lexical/config/server/sanitize.d.ts +6 -0
  845. package/dist/lexical/config/server/sanitize.d.ts.map +1 -0
  846. package/dist/lexical/config/server/sanitize.js +113 -0
  847. package/dist/lexical/config/server/sanitize.js.map +1 -0
  848. package/dist/lexical/config/types.d.ts +24 -0
  849. package/dist/lexical/config/types.d.ts.map +1 -0
  850. package/dist/lexical/config/types.js +2 -0
  851. package/dist/lexical/config/types.js.map +1 -0
  852. package/dist/lexical/nodes/index.d.ts +6 -0
  853. package/dist/lexical/nodes/index.d.ts.map +1 -0
  854. package/dist/lexical/nodes/index.js +11 -0
  855. package/dist/lexical/nodes/index.js.map +1 -0
  856. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -0
  857. package/dist/lexical/plugins/MarkdownShortcut/index.js +25 -0
  858. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -0
  859. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +32 -0
  860. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
  861. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +395 -0
  862. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
  863. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +24 -0
  864. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
  865. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +249 -0
  866. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
  867. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +51 -0
  868. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -0
  869. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +2 -0
  870. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -0
  871. package/dist/lexical/plugins/SlashMenu/index.d.ts +6 -0
  872. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -0
  873. package/dist/lexical/plugins/SlashMenu/index.js +205 -0
  874. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -0
  875. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -0
  876. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +48 -0
  877. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -0
  878. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +6 -0
  879. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -0
  880. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +155 -0
  881. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -0
  882. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts +2 -0
  883. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -0
  884. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +15 -0
  885. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -0
  886. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -0
  887. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +15 -0
  888. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -0
  889. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +3 -0
  890. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -0
  891. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +31 -0
  892. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -0
  893. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +6 -0
  894. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -0
  895. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +355 -0
  896. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -0
  897. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +9 -0
  898. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -0
  899. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +113 -0
  900. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -0
  901. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +5 -0
  902. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
  903. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +28 -0
  904. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
  905. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -0
  906. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +28 -0
  907. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -0
  908. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -0
  909. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js +18 -0
  910. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -0
  911. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts +31 -0
  912. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
  913. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +152 -0
  914. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
  915. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -0
  916. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +7 -0
  917. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -0
  918. package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -0
  919. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js +6 -0
  920. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -0
  921. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -0
  922. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +28 -0
  923. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -0
  924. package/dist/lexical/theme/EditorTheme.d.ts +3 -0
  925. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
  926. package/dist/lexical/theme/EditorTheme.js +100 -0
  927. package/dist/lexical/theme/EditorTheme.js.map +1 -0
  928. package/dist/lexical/ui/ContentEditable.d.ts +6 -0
  929. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -0
  930. package/dist/lexical/ui/ContentEditable.js +34 -0
  931. package/dist/lexical/ui/ContentEditable.js.map +1 -0
  932. package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -0
  933. package/dist/lexical/ui/icons/AI/index.js +34 -0
  934. package/dist/lexical/ui/icons/AI/index.js.map +1 -0
  935. package/dist/lexical/ui/icons/Add/index.d.ts +3 -0
  936. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -0
  937. package/dist/lexical/ui/icons/Add/index.js +19 -0
  938. package/dist/lexical/ui/icons/Add/index.js.map +1 -0
  939. package/dist/lexical/ui/icons/Add/light.svg +4 -0
  940. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -0
  941. package/dist/lexical/ui/icons/AlignCenter/index.js +28 -0
  942. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -0
  943. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -0
  944. package/dist/lexical/ui/icons/AlignJustify/index.js +28 -0
  945. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -0
  946. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -0
  947. package/dist/lexical/ui/icons/AlignLeft/index.js +28 -0
  948. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -0
  949. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -0
  950. package/dist/lexical/ui/icons/AlignRight/index.js +28 -0
  951. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -0
  952. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -0
  953. package/dist/lexical/ui/icons/Block/index.js +37 -0
  954. package/dist/lexical/ui/icons/Block/index.js.map +1 -0
  955. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -0
  956. package/dist/lexical/ui/icons/Blockquote/index.js +19 -0
  957. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -0
  958. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -0
  959. package/dist/lexical/ui/icons/Bold/index.js +19 -0
  960. package/dist/lexical/ui/icons/Bold/index.js.map +1 -0
  961. package/dist/lexical/ui/icons/Caret/index.svg +3 -0
  962. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -0
  963. package/dist/lexical/ui/icons/Checklist/index.js +27 -0
  964. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -0
  965. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -0
  966. package/dist/lexical/ui/icons/Code/index.js +22 -0
  967. package/dist/lexical/ui/icons/Code/index.js.map +1 -0
  968. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -0
  969. package/dist/lexical/ui/icons/CodeBlock/index.js +22 -0
  970. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -0
  971. package/dist/lexical/ui/icons/DraggableBlock/light.svg +9 -0
  972. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -0
  973. package/dist/lexical/ui/icons/H1/index.js +19 -0
  974. package/dist/lexical/ui/icons/H1/index.js.map +1 -0
  975. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -0
  976. package/dist/lexical/ui/icons/H2/index.js +19 -0
  977. package/dist/lexical/ui/icons/H2/index.js.map +1 -0
  978. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -0
  979. package/dist/lexical/ui/icons/H3/index.js +19 -0
  980. package/dist/lexical/ui/icons/H3/index.js.map +1 -0
  981. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -0
  982. package/dist/lexical/ui/icons/H4/index.js +19 -0
  983. package/dist/lexical/ui/icons/H4/index.js.map +1 -0
  984. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -0
  985. package/dist/lexical/ui/icons/H5/index.js +19 -0
  986. package/dist/lexical/ui/icons/H5/index.js.map +1 -0
  987. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -0
  988. package/dist/lexical/ui/icons/H6/index.js +19 -0
  989. package/dist/lexical/ui/icons/H6/index.js.map +1 -0
  990. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -0
  991. package/dist/lexical/ui/icons/HorizontalRule/index.js +22 -0
  992. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -0
  993. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -0
  994. package/dist/lexical/ui/icons/IndentDecrease/index.js +31 -0
  995. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -0
  996. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
  997. package/dist/lexical/ui/icons/IndentIncrease/index.js +31 -0
  998. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -0
  999. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -0
  1000. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -0
  1001. package/dist/lexical/ui/icons/InlineBlocks/index.js +21 -0
  1002. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -0
  1003. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -0
  1004. package/dist/lexical/ui/icons/Italic/index.js +19 -0
  1005. package/dist/lexical/ui/icons/Italic/index.js.map +1 -0
  1006. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
  1007. package/dist/lexical/ui/icons/Link/index.js +20 -0
  1008. package/dist/lexical/ui/icons/Link/index.js.map +1 -0
  1009. package/dist/lexical/ui/icons/Meatballs/index.d.ts +3 -0
  1010. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -0
  1011. package/dist/lexical/ui/icons/Meatballs/index.js +22 -0
  1012. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -0
  1013. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -0
  1014. package/dist/lexical/ui/icons/OrderedList/index.js +34 -0
  1015. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -0
  1016. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -0
  1017. package/dist/lexical/ui/icons/Relationship/index.js +34 -0
  1018. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -0
  1019. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -0
  1020. package/dist/lexical/ui/icons/Strikethrough/index.js +22 -0
  1021. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -0
  1022. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -0
  1023. package/dist/lexical/ui/icons/Subscript/index.js +19 -0
  1024. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -0
  1025. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -0
  1026. package/dist/lexical/ui/icons/Superscript/index.js +19 -0
  1027. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -0
  1028. package/dist/lexical/ui/icons/Table/index.d.ts +3 -0
  1029. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -0
  1030. package/dist/lexical/ui/icons/Table/index.js +21 -0
  1031. package/dist/lexical/ui/icons/Table/index.js.map +1 -0
  1032. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -0
  1033. package/dist/lexical/ui/icons/Text/index.js +19 -0
  1034. package/dist/lexical/ui/icons/Text/index.js.map +1 -0
  1035. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -0
  1036. package/dist/lexical/ui/icons/Underline/index.js +22 -0
  1037. package/dist/lexical/ui/icons/Underline/index.js.map +1 -0
  1038. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -0
  1039. package/dist/lexical/ui/icons/UnorderedList/index.js +49 -0
  1040. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -0
  1041. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -0
  1042. package/dist/lexical/ui/icons/Upload/index.js +31 -0
  1043. package/dist/lexical/ui/icons/Upload/index.js.map +1 -0
  1044. package/dist/lexical/utils/canUseDOM.d.ts.map +1 -0
  1045. package/dist/lexical/utils/canUseDOM.js +4 -0
  1046. package/dist/lexical/utils/canUseDOM.js.map +1 -0
  1047. package/dist/lexical/utils/environment.d.ts.map +1 -0
  1048. package/dist/lexical/utils/environment.js +15 -0
  1049. package/dist/lexical/utils/environment.js.map +1 -0
  1050. package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -0
  1051. package/dist/lexical/utils/getDOMRangeRect.js +17 -0
  1052. package/dist/lexical/utils/getDOMRangeRect.js.map +1 -0
  1053. package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -0
  1054. package/dist/lexical/utils/getSelectedNode.js +22 -0
  1055. package/dist/lexical/utils/getSelectedNode.js.map +1 -0
  1056. package/dist/lexical/utils/guard.d.ts.map +1 -0
  1057. package/dist/lexical/utils/guard.js +6 -0
  1058. package/dist/lexical/utils/guard.js.map +1 -0
  1059. package/dist/lexical/utils/joinClasses.d.ts.map +1 -0
  1060. package/dist/lexical/utils/joinClasses.js +6 -0
  1061. package/dist/lexical/utils/joinClasses.js.map +1 -0
  1062. package/dist/lexical/utils/markdown/createBlockNode.d.ts +4 -0
  1063. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -0
  1064. package/dist/lexical/utils/markdown/createBlockNode.js +11 -0
  1065. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -0
  1066. package/dist/lexical/utils/nodeFormat.d.ts +41 -0
  1067. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -0
  1068. package/dist/lexical/utils/nodeFormat.js +87 -0
  1069. package/dist/lexical/utils/nodeFormat.js.map +1 -0
  1070. package/dist/lexical/utils/point.d.ts.map +1 -0
  1071. package/dist/lexical/utils/point.js +45 -0
  1072. package/dist/lexical/utils/point.js.map +1 -0
  1073. package/dist/lexical/utils/rect.d.ts +47 -0
  1074. package/dist/lexical/utils/rect.d.ts.map +1 -0
  1075. package/dist/lexical/utils/rect.js +171 -0
  1076. package/dist/lexical/utils/rect.js.map +1 -0
  1077. package/dist/lexical/utils/setFloatingElemPosition.d.ts +12 -0
  1078. package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -0
  1079. package/dist/lexical/utils/setFloatingElemPosition.js +67 -0
  1080. package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -0
  1081. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
  1082. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js +28 -0
  1083. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  1084. package/dist/lexical/utils/swipe.d.ts.map +1 -0
  1085. package/dist/lexical/utils/swipe.js +99 -0
  1086. package/dist/lexical/utils/swipe.js.map +1 -0
  1087. package/dist/lexical/utils/url.d.ts +8 -0
  1088. package/dist/lexical/utils/url.d.ts.map +1 -0
  1089. package/dist/lexical/utils/url.js +57 -0
  1090. package/dist/lexical/utils/url.js.map +1 -0
  1091. package/dist/nodeTypes.d.ts +32 -0
  1092. package/dist/nodeTypes.d.ts.map +1 -0
  1093. package/dist/nodeTypes.js +2 -0
  1094. package/dist/nodeTypes.js.map +1 -0
  1095. package/dist/populateGraphQL/defaultValue.d.ts +3 -0
  1096. package/dist/populateGraphQL/defaultValue.d.ts.map +1 -0
  1097. package/dist/populateGraphQL/defaultValue.js +28 -0
  1098. package/dist/populateGraphQL/defaultValue.js.map +1 -0
  1099. package/dist/populateGraphQL/populate.d.ts +18 -0
  1100. package/dist/populateGraphQL/populate.d.ts.map +1 -0
  1101. package/dist/populateGraphQL/populate.js +40 -0
  1102. package/dist/populateGraphQL/populate.js.map +1 -0
  1103. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +12 -0
  1104. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -0
  1105. package/dist/populateGraphQL/populateLexicalPopulationPromises.js +53 -0
  1106. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -0
  1107. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +28 -0
  1108. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -0
  1109. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +42 -0
  1110. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -0
  1111. package/dist/types.d.ts +69 -21
  1112. package/dist/types.d.ts.map +1 -1
  1113. package/dist/types.js +1 -2
  1114. package/dist/types.js.map +1 -1
  1115. package/dist/utilities/createClientFeature.d.ts +11 -0
  1116. package/dist/utilities/createClientFeature.d.ts.map +1 -0
  1117. package/dist/utilities/createClientFeature.js +41 -0
  1118. package/dist/utilities/createClientFeature.js.map +1 -0
  1119. package/dist/utilities/createServerFeature.d.ts +17 -0
  1120. package/dist/utilities/createServerFeature.d.ts.map +1 -0
  1121. package/dist/utilities/createServerFeature.js +51 -0
  1122. package/dist/utilities/createServerFeature.js.map +1 -0
  1123. package/dist/utilities/fieldsDrawer/Drawer.d.ts +21 -0
  1124. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -0
  1125. package/dist/utilities/fieldsDrawer/Drawer.js +80 -0
  1126. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -0
  1127. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -0
  1128. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -0
  1129. package/dist/utilities/fieldsDrawer/DrawerContent.js +122 -0
  1130. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -0
  1131. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +13 -0
  1132. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -0
  1133. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +129 -0
  1134. package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -0
  1135. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts +10 -0
  1136. package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -0
  1137. package/dist/utilities/fieldsDrawer/useLexicalDrawer.js +136 -0
  1138. package/dist/utilities/fieldsDrawer/useLexicalDrawer.js.map +1 -0
  1139. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts +16 -0
  1140. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -0
  1141. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js +144 -0
  1142. package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js.map +1 -0
  1143. package/dist/utilities/forEachNodeRecursively.d.ts +10 -0
  1144. package/dist/utilities/forEachNodeRecursively.d.ts.map +1 -0
  1145. package/dist/utilities/forEachNodeRecursively.js +29 -0
  1146. package/dist/utilities/forEachNodeRecursively.js.map +1 -0
  1147. package/dist/utilities/generateImportMap.d.ts +6 -0
  1148. package/dist/utilities/generateImportMap.d.ts.map +1 -0
  1149. package/dist/utilities/generateImportMap.js +55 -0
  1150. package/dist/utilities/generateImportMap.js.map +1 -0
  1151. package/dist/utilities/generateSchemaMap.d.ts +6 -0
  1152. package/dist/utilities/generateSchemaMap.d.ts.map +1 -0
  1153. package/dist/utilities/generateSchemaMap.js +40 -0
  1154. package/dist/utilities/generateSchemaMap.js.map +1 -0
  1155. package/dist/utilities/initLexicalFeatures.d.ts +18 -0
  1156. package/dist/utilities/initLexicalFeatures.d.ts.map +1 -0
  1157. package/dist/utilities/initLexicalFeatures.js +95 -0
  1158. package/dist/utilities/initLexicalFeatures.js.map +1 -0
  1159. package/dist/utilities/migrateSlateToLexical/index.d.ts +15 -0
  1160. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +1 -0
  1161. package/dist/utilities/migrateSlateToLexical/index.js +149 -0
  1162. package/dist/utilities/migrateSlateToLexical/index.js.map +1 -0
  1163. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +9 -0
  1164. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -0
  1165. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +80 -0
  1166. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -0
  1167. package/dist/utilities/recurseNodeTree.d.ts +9 -0
  1168. package/dist/utilities/recurseNodeTree.d.ts.map +1 -0
  1169. package/dist/utilities/recurseNodeTree.js +30 -0
  1170. package/dist/utilities/recurseNodeTree.js.map +1 -0
  1171. package/dist/utilities/upgradeLexicalData/index.d.ts +11 -0
  1172. package/dist/utilities/upgradeLexicalData/index.d.ts.map +1 -0
  1173. package/dist/utilities/upgradeLexicalData/index.js +114 -0
  1174. package/dist/utilities/upgradeLexicalData/index.js.map +1 -0
  1175. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts +9 -0
  1176. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -0
  1177. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +83 -0
  1178. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -0
  1179. package/dist/utilities/useLexicalFeature.d.ts +3 -0
  1180. package/dist/utilities/useLexicalFeature.d.ts.map +1 -0
  1181. package/dist/utilities/useLexicalFeature.js +21 -0
  1182. package/dist/utilities/useLexicalFeature.js.map +1 -0
  1183. package/dist/validate/index.d.ts +3 -3
  1184. package/dist/validate/index.d.ts.map +1 -1
  1185. package/dist/validate/index.js +45 -23
  1186. package/dist/validate/index.js.map +1 -1
  1187. package/dist/validate/validateNodes.d.ts +5 -5
  1188. package/dist/validate/validateNodes.d.ts.map +1 -1
  1189. package/dist/validate/validateNodes.js +31 -28
  1190. package/dist/validate/validateNodes.js.map +1 -1
  1191. package/package.json +106 -57
  1192. package/dist/cell/index.d.ts +0 -6
  1193. package/dist/cell/index.d.ts.map +0 -1
  1194. package/dist/cell/index.js +0 -131
  1195. package/dist/cell/index.js.map +0 -1
  1196. package/dist/exports/components.d.ts +0 -6
  1197. package/dist/exports/components.d.ts.map +0 -1
  1198. package/dist/exports/components.js +0 -7
  1199. package/dist/exports/components.js.map +0 -1
  1200. package/dist/field/features/align/feature.client.d.ts +0 -3
  1201. package/dist/field/features/align/feature.client.d.ts.map +0 -1
  1202. package/dist/field/features/align/feature.client.js +0 -72
  1203. package/dist/field/features/align/feature.client.js.map +0 -1
  1204. package/dist/field/features/align/feature.server.d.ts +0 -3
  1205. package/dist/field/features/align/feature.server.d.ts.map +0 -1
  1206. package/dist/field/features/align/feature.server.js +0 -16
  1207. package/dist/field/features/align/feature.server.js.map +0 -1
  1208. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts +0 -3
  1209. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +0 -1
  1210. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +0 -12
  1211. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js.map +0 -1
  1212. package/dist/field/features/blockquote/feature.client.d.ts +0 -3
  1213. package/dist/field/features/blockquote/feature.client.d.ts.map +0 -1
  1214. package/dist/field/features/blockquote/feature.client.js +0 -70
  1215. package/dist/field/features/blockquote/feature.client.js.map +0 -1
  1216. package/dist/field/features/blockquote/feature.server.d.ts +0 -3
  1217. package/dist/field/features/blockquote/feature.server.d.ts.map +0 -1
  1218. package/dist/field/features/blockquote/feature.server.js +0 -47
  1219. package/dist/field/features/blockquote/feature.server.js.map +0 -1
  1220. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +0 -1
  1221. package/dist/field/features/blockquote/markdownTransformer.js +0 -42
  1222. package/dist/field/features/blockquote/markdownTransformer.js.map +0 -1
  1223. package/dist/field/features/blocks/component/BlockContent.d.ts +0 -27
  1224. package/dist/field/features/blocks/component/BlockContent.d.ts.map +0 -1
  1225. package/dist/field/features/blocks/component/BlockContent.js +0 -183
  1226. package/dist/field/features/blocks/component/BlockContent.js.map +0 -1
  1227. package/dist/field/features/blocks/component/FormSavePlugin.d.ts +0 -12
  1228. package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
  1229. package/dist/field/features/blocks/component/FormSavePlugin.js +0 -29
  1230. package/dist/field/features/blocks/component/FormSavePlugin.js.map +0 -1
  1231. package/dist/field/features/blocks/component/index.d.ts +0 -16
  1232. package/dist/field/features/blocks/component/index.d.ts.map +0 -1
  1233. package/dist/field/features/blocks/component/index.js +0 -131
  1234. package/dist/field/features/blocks/component/index.js.map +0 -1
  1235. package/dist/field/features/blocks/component/index.scss +0 -153
  1236. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts +0 -11
  1237. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
  1238. package/dist/field/features/blocks/component/removeEmptyArrayValues.js +0 -16
  1239. package/dist/field/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
  1240. package/dist/field/features/blocks/drawer/index.d.ts +0 -9
  1241. package/dist/field/features/blocks/drawer/index.d.ts.map +0 -1
  1242. package/dist/field/features/blocks/drawer/index.js +0 -84
  1243. package/dist/field/features/blocks/drawer/index.js.map +0 -1
  1244. package/dist/field/features/blocks/feature.client.d.ts +0 -7
  1245. package/dist/field/features/blocks/feature.client.d.ts.map +0 -1
  1246. package/dist/field/features/blocks/feature.client.js +0 -61
  1247. package/dist/field/features/blocks/feature.client.js.map +0 -1
  1248. package/dist/field/features/blocks/feature.server.d.ts +0 -11
  1249. package/dist/field/features/blocks/feature.server.d.ts.map +0 -1
  1250. package/dist/field/features/blocks/feature.server.js +0 -112
  1251. package/dist/field/features/blocks/feature.server.js.map +0 -1
  1252. package/dist/field/features/blocks/nodes/BlocksNode.d.ts +0 -38
  1253. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
  1254. package/dist/field/features/blocks/nodes/BlocksNode.js +0 -92
  1255. package/dist/field/features/blocks/nodes/BlocksNode.js.map +0 -1
  1256. package/dist/field/features/blocks/plugin/commands.d.ts +0 -4
  1257. package/dist/field/features/blocks/plugin/commands.d.ts.map +0 -1
  1258. package/dist/field/features/blocks/plugin/commands.js +0 -5
  1259. package/dist/field/features/blocks/plugin/commands.js.map +0 -1
  1260. package/dist/field/features/blocks/plugin/index.d.ts +0 -5
  1261. package/dist/field/features/blocks/plugin/index.d.ts.map +0 -1
  1262. package/dist/field/features/blocks/plugin/index.js +0 -43
  1263. package/dist/field/features/blocks/plugin/index.js.map +0 -1
  1264. package/dist/field/features/blocks/populationPromise.d.ts +0 -5
  1265. package/dist/field/features/blocks/populationPromise.d.ts.map +0 -1
  1266. package/dist/field/features/blocks/populationPromise.js +0 -46
  1267. package/dist/field/features/blocks/populationPromise.js.map +0 -1
  1268. package/dist/field/features/blocks/validate.d.ts +0 -5
  1269. package/dist/field/features/blocks/validate.d.ts.map +0 -1
  1270. package/dist/field/features/blocks/validate.js +0 -50
  1271. package/dist/field/features/blocks/validate.js.map +0 -1
  1272. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts +0 -3
  1273. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts.map +0 -1
  1274. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +0 -10
  1275. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js.map +0 -1
  1276. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts +0 -3
  1277. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +0 -1
  1278. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +0 -12
  1279. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js.map +0 -1
  1280. package/dist/field/features/converters/html/converter/converters/linebreak.d.ts.map +0 -1
  1281. package/dist/field/features/converters/html/converter/converters/linebreak.js +0 -10
  1282. package/dist/field/features/converters/html/converter/converters/linebreak.js.map +0 -1
  1283. package/dist/field/features/converters/html/converter/converters/paragraph.d.ts.map +0 -1
  1284. package/dist/field/features/converters/html/converter/converters/paragraph.js +0 -20
  1285. package/dist/field/features/converters/html/converter/converters/paragraph.js.map +0 -1
  1286. package/dist/field/features/converters/html/converter/converters/text.d.ts.map +0 -1
  1287. package/dist/field/features/converters/html/converter/converters/text.js +0 -33
  1288. package/dist/field/features/converters/html/converter/converters/text.js.map +0 -1
  1289. package/dist/field/features/converters/html/converter/defaultConverters.d.ts.map +0 -1
  1290. package/dist/field/features/converters/html/converter/defaultConverters.js +0 -10
  1291. package/dist/field/features/converters/html/converter/defaultConverters.js.map +0 -1
  1292. package/dist/field/features/converters/html/converter/index.d.ts +0 -21
  1293. package/dist/field/features/converters/html/converter/index.d.ts.map +0 -1
  1294. package/dist/field/features/converters/html/converter/index.js +0 -44
  1295. package/dist/field/features/converters/html/converter/index.js.map +0 -1
  1296. package/dist/field/features/converters/html/converter/types.d.ts +0 -19
  1297. package/dist/field/features/converters/html/converter/types.d.ts.map +0 -1
  1298. package/dist/field/features/converters/html/converter/types.js +0 -3
  1299. package/dist/field/features/converters/html/converter/types.js.map +0 -1
  1300. package/dist/field/features/converters/html/feature.server.d.ts +0 -9
  1301. package/dist/field/features/converters/html/feature.server.d.ts.map +0 -1
  1302. package/dist/field/features/converters/html/feature.server.js +0 -14
  1303. package/dist/field/features/converters/html/feature.server.js.map +0 -1
  1304. package/dist/field/features/converters/html/field/index.d.ts +0 -29
  1305. package/dist/field/features/converters/html/field/index.d.ts.map +0 -1
  1306. package/dist/field/features/converters/html/field/index.js +0 -117
  1307. package/dist/field/features/converters/html/field/index.js.map +0 -1
  1308. package/dist/field/features/createClientComponent.d.ts +0 -6
  1309. package/dist/field/features/createClientComponent.d.ts.map +0 -1
  1310. package/dist/field/features/createClientComponent.js +0 -12
  1311. package/dist/field/features/createClientComponent.js.map +0 -1
  1312. package/dist/field/features/createFeaturePropComponent.d.ts +0 -6
  1313. package/dist/field/features/createFeaturePropComponent.d.ts.map +0 -1
  1314. package/dist/field/features/createFeaturePropComponent.js +0 -15
  1315. package/dist/field/features/createFeaturePropComponent.js.map +0 -1
  1316. package/dist/field/features/debug/testrecorder/feature.client.d.ts +0 -3
  1317. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +0 -1
  1318. package/dist/field/features/debug/testrecorder/feature.client.js +0 -20
  1319. package/dist/field/features/debug/testrecorder/feature.client.js.map +0 -1
  1320. package/dist/field/features/debug/testrecorder/feature.server.d.ts +0 -3
  1321. package/dist/field/features/debug/testrecorder/feature.server.d.ts.map +0 -1
  1322. package/dist/field/features/debug/testrecorder/feature.server.js +0 -15
  1323. package/dist/field/features/debug/testrecorder/feature.server.js.map +0 -1
  1324. package/dist/field/features/debug/testrecorder/plugin/index.d.ts +0 -5
  1325. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +0 -1
  1326. package/dist/field/features/debug/testrecorder/plugin/index.js +0 -448
  1327. package/dist/field/features/debug/testrecorder/plugin/index.js.map +0 -1
  1328. package/dist/field/features/debug/testrecorder/plugin/index.scss +0 -49
  1329. package/dist/field/features/debug/treeview/feature.client.d.ts +0 -3
  1330. package/dist/field/features/debug/treeview/feature.client.d.ts.map +0 -1
  1331. package/dist/field/features/debug/treeview/feature.client.js +0 -20
  1332. package/dist/field/features/debug/treeview/feature.client.js.map +0 -1
  1333. package/dist/field/features/debug/treeview/feature.server.d.ts +0 -3
  1334. package/dist/field/features/debug/treeview/feature.server.d.ts.map +0 -1
  1335. package/dist/field/features/debug/treeview/feature.server.js +0 -15
  1336. package/dist/field/features/debug/treeview/feature.server.js.map +0 -1
  1337. package/dist/field/features/debug/treeview/plugin/index.d.ts +0 -4
  1338. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +0 -1
  1339. package/dist/field/features/debug/treeview/plugin/index.js +0 -21
  1340. package/dist/field/features/debug/treeview/plugin/index.js.map +0 -1
  1341. package/dist/field/features/debug/treeview/plugin/index.scss +0 -78
  1342. package/dist/field/features/format/bold/feature.client.d.ts +0 -3
  1343. package/dist/field/features/format/bold/feature.client.d.ts.map +0 -1
  1344. package/dist/field/features/format/bold/feature.client.js +0 -48
  1345. package/dist/field/features/format/bold/feature.client.js.map +0 -1
  1346. package/dist/field/features/format/bold/feature.server.d.ts +0 -3
  1347. package/dist/field/features/format/bold/feature.server.d.ts.map +0 -1
  1348. package/dist/field/features/format/bold/feature.server.js +0 -27
  1349. package/dist/field/features/format/bold/feature.server.js.map +0 -1
  1350. package/dist/field/features/format/bold/markdownTransformers.d.ts.map +0 -1
  1351. package/dist/field/features/format/bold/markdownTransformers.js +0 -34
  1352. package/dist/field/features/format/bold/markdownTransformers.js.map +0 -1
  1353. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts +0 -3
  1354. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts.map +0 -1
  1355. package/dist/field/features/format/common/floatingSelectToolbarSection.js +0 -10
  1356. package/dist/field/features/format/common/floatingSelectToolbarSection.js.map +0 -1
  1357. package/dist/field/features/format/inlinecode/feature.client.d.ts +0 -3
  1358. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +0 -1
  1359. package/dist/field/features/format/inlinecode/feature.client.js +0 -43
  1360. package/dist/field/features/format/inlinecode/feature.client.js.map +0 -1
  1361. package/dist/field/features/format/inlinecode/feature.server.d.ts +0 -3
  1362. package/dist/field/features/format/inlinecode/feature.server.d.ts.map +0 -1
  1363. package/dist/field/features/format/inlinecode/feature.server.js +0 -19
  1364. package/dist/field/features/format/inlinecode/feature.server.js.map +0 -1
  1365. package/dist/field/features/format/inlinecode/markdownTransformers.d.ts.map +0 -1
  1366. package/dist/field/features/format/inlinecode/markdownTransformers.js +0 -9
  1367. package/dist/field/features/format/inlinecode/markdownTransformers.js.map +0 -1
  1368. package/dist/field/features/format/italic/feature.client.d.ts +0 -3
  1369. package/dist/field/features/format/italic/feature.client.d.ts.map +0 -1
  1370. package/dist/field/features/format/italic/feature.client.js +0 -44
  1371. package/dist/field/features/format/italic/feature.client.js.map +0 -1
  1372. package/dist/field/features/format/italic/feature.server.d.ts +0 -3
  1373. package/dist/field/features/format/italic/feature.server.d.ts.map +0 -1
  1374. package/dist/field/features/format/italic/feature.server.js +0 -20
  1375. package/dist/field/features/format/italic/feature.server.js.map +0 -1
  1376. package/dist/field/features/format/italic/markdownTransformers.d.ts.map +0 -1
  1377. package/dist/field/features/format/italic/markdownTransformers.js +0 -17
  1378. package/dist/field/features/format/italic/markdownTransformers.js.map +0 -1
  1379. package/dist/field/features/format/strikethrough/feature.client.d.ts +0 -3
  1380. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +0 -1
  1381. package/dist/field/features/format/strikethrough/feature.client.js +0 -43
  1382. package/dist/field/features/format/strikethrough/feature.client.js.map +0 -1
  1383. package/dist/field/features/format/strikethrough/feature.server.d.ts +0 -3
  1384. package/dist/field/features/format/strikethrough/feature.server.d.ts.map +0 -1
  1385. package/dist/field/features/format/strikethrough/feature.server.js +0 -19
  1386. package/dist/field/features/format/strikethrough/feature.server.js.map +0 -1
  1387. package/dist/field/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  1388. package/dist/field/features/format/strikethrough/markdownTransformers.js +0 -9
  1389. package/dist/field/features/format/strikethrough/markdownTransformers.js.map +0 -1
  1390. package/dist/field/features/format/subscript/feature.client.d.ts +0 -3
  1391. package/dist/field/features/format/subscript/feature.client.d.ts.map +0 -1
  1392. package/dist/field/features/format/subscript/feature.client.js +0 -39
  1393. package/dist/field/features/format/subscript/feature.client.js.map +0 -1
  1394. package/dist/field/features/format/subscript/feature.server.d.ts +0 -3
  1395. package/dist/field/features/format/subscript/feature.server.d.ts.map +0 -1
  1396. package/dist/field/features/format/subscript/feature.server.js +0 -15
  1397. package/dist/field/features/format/subscript/feature.server.js.map +0 -1
  1398. package/dist/field/features/format/superscript/feature.client.d.ts +0 -3
  1399. package/dist/field/features/format/superscript/feature.client.d.ts.map +0 -1
  1400. package/dist/field/features/format/superscript/feature.client.js +0 -39
  1401. package/dist/field/features/format/superscript/feature.client.js.map +0 -1
  1402. package/dist/field/features/format/superscript/feature.server.d.ts +0 -3
  1403. package/dist/field/features/format/superscript/feature.server.d.ts.map +0 -1
  1404. package/dist/field/features/format/superscript/feature.server.js +0 -15
  1405. package/dist/field/features/format/superscript/feature.server.js.map +0 -1
  1406. package/dist/field/features/format/underline/feature.client.d.ts +0 -3
  1407. package/dist/field/features/format/underline/feature.client.d.ts.map +0 -1
  1408. package/dist/field/features/format/underline/feature.client.js +0 -39
  1409. package/dist/field/features/format/underline/feature.client.js.map +0 -1
  1410. package/dist/field/features/format/underline/feature.server.d.ts +0 -3
  1411. package/dist/field/features/format/underline/feature.server.d.ts.map +0 -1
  1412. package/dist/field/features/format/underline/feature.server.js +0 -15
  1413. package/dist/field/features/format/underline/feature.server.js.map +0 -1
  1414. package/dist/field/features/heading/feature.client.d.ts +0 -4
  1415. package/dist/field/features/heading/feature.client.d.ts.map +0 -1
  1416. package/dist/field/features/heading/feature.client.js +0 -97
  1417. package/dist/field/features/heading/feature.client.js.map +0 -1
  1418. package/dist/field/features/heading/feature.server.d.ts +0 -7
  1419. package/dist/field/features/heading/feature.server.d.ts.map +0 -1
  1420. package/dist/field/features/heading/feature.server.js +0 -58
  1421. package/dist/field/features/heading/feature.server.js.map +0 -1
  1422. package/dist/field/features/heading/markdownTransformer.d.ts.map +0 -1
  1423. package/dist/field/features/heading/markdownTransformer.js +0 -30
  1424. package/dist/field/features/heading/markdownTransformer.js.map +0 -1
  1425. package/dist/field/features/horizontalrule/component/index.d.ts +0 -10
  1426. package/dist/field/features/horizontalrule/component/index.d.ts.map +0 -1
  1427. package/dist/field/features/horizontalrule/component/index.js +0 -64
  1428. package/dist/field/features/horizontalrule/component/index.js.map +0 -1
  1429. package/dist/field/features/horizontalrule/feature.client.d.ts +0 -3
  1430. package/dist/field/features/horizontalrule/feature.client.d.ts.map +0 -1
  1431. package/dist/field/features/horizontalrule/feature.client.js +0 -53
  1432. package/dist/field/features/horizontalrule/feature.client.js.map +0 -1
  1433. package/dist/field/features/horizontalrule/feature.server.d.ts +0 -3
  1434. package/dist/field/features/horizontalrule/feature.server.d.ts.map +0 -1
  1435. package/dist/field/features/horizontalrule/feature.server.js +0 -36
  1436. package/dist/field/features/horizontalrule/feature.server.js.map +0 -1
  1437. package/dist/field/features/horizontalrule/markdownTransformer.d.ts.map +0 -1
  1438. package/dist/field/features/horizontalrule/markdownTransformer.js +0 -23
  1439. package/dist/field/features/horizontalrule/markdownTransformer.js.map +0 -1
  1440. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts +0 -55
  1441. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  1442. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js +0 -89
  1443. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js.map +0 -1
  1444. package/dist/field/features/horizontalrule/plugin/index.d.ts +0 -6
  1445. package/dist/field/features/horizontalrule/plugin/index.d.ts.map +0 -1
  1446. package/dist/field/features/horizontalrule/plugin/index.js +0 -34
  1447. package/dist/field/features/horizontalrule/plugin/index.js.map +0 -1
  1448. package/dist/field/features/horizontalrule/plugin/index.scss +0 -20
  1449. package/dist/field/features/indent/feature.client.d.ts +0 -3
  1450. package/dist/field/features/indent/feature.client.d.ts.map +0 -1
  1451. package/dist/field/features/indent/feature.client.js +0 -58
  1452. package/dist/field/features/indent/feature.client.js.map +0 -1
  1453. package/dist/field/features/indent/feature.server.d.ts +0 -3
  1454. package/dist/field/features/indent/feature.server.d.ts.map +0 -1
  1455. package/dist/field/features/indent/feature.server.js +0 -16
  1456. package/dist/field/features/indent/feature.server.js.map +0 -1
  1457. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts +0 -3
  1458. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts.map +0 -1
  1459. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +0 -10
  1460. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js.map +0 -1
  1461. package/dist/field/features/indent/index.scss +0 -4
  1462. package/dist/field/features/link/drawer/baseFields.d.ts +0 -4
  1463. package/dist/field/features/link/drawer/baseFields.d.ts.map +0 -1
  1464. package/dist/field/features/link/drawer/baseFields.js +0 -107
  1465. package/dist/field/features/link/drawer/baseFields.js.map +0 -1
  1466. package/dist/field/features/link/drawer/index.d.ts +0 -5
  1467. package/dist/field/features/link/drawer/index.d.ts.map +0 -1
  1468. package/dist/field/features/link/drawer/index.js +0 -94
  1469. package/dist/field/features/link/drawer/index.js.map +0 -1
  1470. package/dist/field/features/link/drawer/index.scss +0 -50
  1471. package/dist/field/features/link/drawer/types.d.ts +0 -8
  1472. package/dist/field/features/link/drawer/types.d.ts.map +0 -1
  1473. package/dist/field/features/link/drawer/types.js +0 -3
  1474. package/dist/field/features/link/drawer/types.js.map +0 -1
  1475. package/dist/field/features/link/feature.client.d.ts +0 -5
  1476. package/dist/field/features/link/feature.client.d.ts.map +0 -1
  1477. package/dist/field/features/link/feature.client.js +0 -90
  1478. package/dist/field/features/link/feature.client.js.map +0 -1
  1479. package/dist/field/features/link/feature.server.d.ts +0 -33
  1480. package/dist/field/features/link/feature.server.d.ts.map +0 -1
  1481. package/dist/field/features/link/feature.server.js +0 -105
  1482. package/dist/field/features/link/feature.server.js.map +0 -1
  1483. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +0 -1
  1484. package/dist/field/features/link/nodes/AutoLinkNode.js +0 -61
  1485. package/dist/field/features/link/nodes/AutoLinkNode.js.map +0 -1
  1486. package/dist/field/features/link/nodes/LinkNode.d.ts +0 -38
  1487. package/dist/field/features/link/nodes/LinkNode.d.ts.map +0 -1
  1488. package/dist/field/features/link/nodes/LinkNode.js +0 -301
  1489. package/dist/field/features/link/nodes/LinkNode.js.map +0 -1
  1490. package/dist/field/features/link/nodes/types.d.ts +0 -19
  1491. package/dist/field/features/link/nodes/types.d.ts.map +0 -1
  1492. package/dist/field/features/link/nodes/types.js +0 -3
  1493. package/dist/field/features/link/nodes/types.js.map +0 -1
  1494. package/dist/field/features/link/plugins/autoLink/index.d.ts +0 -19
  1495. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +0 -1
  1496. package/dist/field/features/link/plugins/autoLink/index.js +0 -321
  1497. package/dist/field/features/link/plugins/autoLink/index.js.map +0 -1
  1498. package/dist/field/features/link/plugins/clickableLink/index.d.ts +0 -3
  1499. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +0 -1
  1500. package/dist/field/features/link/plugins/clickableLink/index.js +0 -10
  1501. package/dist/field/features/link/plugins/clickableLink/index.js.map +0 -1
  1502. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  1503. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -5
  1504. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
  1505. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  1506. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -259
  1507. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
  1508. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +0 -6
  1509. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  1510. package/dist/field/features/link/plugins/floatingLinkEditor/index.js +0 -13
  1511. package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
  1512. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +0 -78
  1513. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts +0 -15
  1514. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  1515. package/dist/field/features/link/plugins/floatingLinkEditor/types.js +0 -6
  1516. package/dist/field/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
  1517. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -12
  1518. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  1519. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +0 -38
  1520. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
  1521. package/dist/field/features/link/plugins/link/index.d.ts +0 -2
  1522. package/dist/field/features/link/plugins/link/index.d.ts.map +0 -1
  1523. package/dist/field/features/link/plugins/link/index.js +0 -62
  1524. package/dist/field/features/link/plugins/link/index.js.map +0 -1
  1525. package/dist/field/features/link/populationPromise.d.ts +0 -5
  1526. package/dist/field/features/link/populationPromise.d.ts.map +0 -1
  1527. package/dist/field/features/link/populationPromise.js +0 -46
  1528. package/dist/field/features/link/populationPromise.js.map +0 -1
  1529. package/dist/field/features/lists/checklist/feature.client.d.ts +0 -3
  1530. package/dist/field/features/lists/checklist/feature.client.d.ts.map +0 -1
  1531. package/dist/field/features/lists/checklist/feature.client.js +0 -82
  1532. package/dist/field/features/lists/checklist/feature.client.js.map +0 -1
  1533. package/dist/field/features/lists/checklist/feature.server.d.ts +0 -3
  1534. package/dist/field/features/lists/checklist/feature.server.d.ts.map +0 -1
  1535. package/dist/field/features/lists/checklist/feature.server.js +0 -36
  1536. package/dist/field/features/lists/checklist/feature.server.js.map +0 -1
  1537. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  1538. package/dist/field/features/lists/checklist/markdownTransformers.js +0 -17
  1539. package/dist/field/features/lists/checklist/markdownTransformers.js.map +0 -1
  1540. package/dist/field/features/lists/checklist/plugin/index.d.ts +0 -3
  1541. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +0 -1
  1542. package/dist/field/features/lists/checklist/plugin/index.js +0 -9
  1543. package/dist/field/features/lists/checklist/plugin/index.js.map +0 -1
  1544. package/dist/field/features/lists/common/markdown.d.ts +0 -6
  1545. package/dist/field/features/lists/common/markdown.d.ts.map +0 -1
  1546. package/dist/field/features/lists/common/markdown.js +0 -59
  1547. package/dist/field/features/lists/common/markdown.js.map +0 -1
  1548. package/dist/field/features/lists/htmlConverter.d.ts +0 -5
  1549. package/dist/field/features/lists/htmlConverter.d.ts.map +0 -1
  1550. package/dist/field/features/lists/htmlConverter.js +0 -57
  1551. package/dist/field/features/lists/htmlConverter.js.map +0 -1
  1552. package/dist/field/features/lists/orderedlist/feature.client.d.ts +0 -3
  1553. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +0 -1
  1554. package/dist/field/features/lists/orderedlist/feature.client.js +0 -72
  1555. package/dist/field/features/lists/orderedlist/feature.client.js.map +0 -1
  1556. package/dist/field/features/lists/orderedlist/feature.server.d.ts +0 -3
  1557. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +0 -1
  1558. package/dist/field/features/lists/orderedlist/feature.server.js +0 -36
  1559. package/dist/field/features/lists/orderedlist/feature.server.js.map +0 -1
  1560. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +0 -1
  1561. package/dist/field/features/lists/orderedlist/markdownTransformer.js +0 -17
  1562. package/dist/field/features/lists/orderedlist/markdownTransformer.js.map +0 -1
  1563. package/dist/field/features/lists/plugin/index.d.ts +0 -3
  1564. package/dist/field/features/lists/plugin/index.d.ts.map +0 -1
  1565. package/dist/field/features/lists/plugin/index.js +0 -9
  1566. package/dist/field/features/lists/plugin/index.js.map +0 -1
  1567. package/dist/field/features/lists/unorderedlist/feature.client.d.ts +0 -3
  1568. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +0 -1
  1569. package/dist/field/features/lists/unorderedlist/feature.client.js +0 -72
  1570. package/dist/field/features/lists/unorderedlist/feature.client.js.map +0 -1
  1571. package/dist/field/features/lists/unorderedlist/feature.server.d.ts +0 -3
  1572. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +0 -1
  1573. package/dist/field/features/lists/unorderedlist/feature.server.js +0 -36
  1574. package/dist/field/features/lists/unorderedlist/feature.server.js.map +0 -1
  1575. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +0 -1
  1576. package/dist/field/features/lists/unorderedlist/markdownTransformer.js +0 -17
  1577. package/dist/field/features/lists/unorderedlist/markdownTransformer.js.map +0 -1
  1578. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -6
  1579. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1580. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -6
  1581. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
  1582. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -3
  1583. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1584. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -20
  1585. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  1586. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -3
  1587. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1588. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
  1589. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
  1590. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -6
  1591. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
  1592. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -6
  1593. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
  1594. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -3
  1595. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1596. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -31
  1597. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  1598. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -3
  1599. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
  1600. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
  1601. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
  1602. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -6
  1603. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
  1604. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -6
  1605. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
  1606. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -3
  1607. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  1608. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -22
  1609. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  1610. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -3
  1611. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
  1612. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
  1613. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
  1614. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -6
  1615. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1616. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -6
  1617. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
  1618. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -3
  1619. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1620. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -22
  1621. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  1622. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -3
  1623. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1624. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
  1625. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
  1626. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -6
  1627. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
  1628. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -6
  1629. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
  1630. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -3
  1631. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  1632. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -20
  1633. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  1634. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -3
  1635. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
  1636. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
  1637. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
  1638. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -6
  1639. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1640. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -6
  1641. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
  1642. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -3
  1643. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1644. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -26
  1645. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  1646. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -3
  1647. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1648. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
  1649. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
  1650. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -6
  1651. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1652. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -6
  1653. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
  1654. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -3
  1655. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1656. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -25
  1657. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  1658. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -3
  1659. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1660. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
  1661. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
  1662. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  1663. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  1664. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -18
  1665. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  1666. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -17
  1667. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  1668. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js +0 -63
  1669. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  1670. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -31
  1671. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  1672. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js +0 -3
  1673. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  1674. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -3
  1675. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  1676. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js +0 -34
  1677. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  1678. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -9
  1679. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  1680. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +0 -47
  1681. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  1682. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1683. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -8
  1684. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1685. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
  1686. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1687. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -70
  1688. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1689. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  1690. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -6
  1691. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
  1692. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -6
  1693. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
  1694. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -3
  1695. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  1696. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -23
  1697. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  1698. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -3
  1699. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
  1700. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
  1701. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
  1702. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -6
  1703. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1704. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js +0 -6
  1705. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
  1706. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -3
  1707. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1708. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js +0 -29
  1709. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  1710. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -3
  1711. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1712. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
  1713. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
  1714. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -6
  1715. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
  1716. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js +0 -6
  1717. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
  1718. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -3
  1719. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  1720. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js +0 -35
  1721. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  1722. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -3
  1723. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
  1724. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
  1725. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
  1726. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -6
  1727. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
  1728. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js +0 -6
  1729. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
  1730. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -3
  1731. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1732. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js +0 -30
  1733. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  1734. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -3
  1735. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
  1736. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
  1737. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
  1738. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -6
  1739. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1740. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js +0 -6
  1741. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
  1742. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -3
  1743. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1744. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -25
  1745. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  1746. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -3
  1747. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1748. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
  1749. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
  1750. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -6
  1751. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
  1752. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -6
  1753. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
  1754. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -3
  1755. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  1756. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -26
  1757. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  1758. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -3
  1759. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
  1760. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
  1761. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
  1762. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -6
  1763. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
  1764. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js +0 -6
  1765. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
  1766. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -3
  1767. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  1768. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -18
  1769. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  1770. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -3
  1771. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
  1772. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
  1773. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
  1774. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -6
  1775. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1776. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js +0 -6
  1777. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
  1778. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -3
  1779. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1780. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -27
  1781. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  1782. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -3
  1783. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1784. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
  1785. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
  1786. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -6
  1787. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
  1788. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -6
  1789. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
  1790. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -3
  1791. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  1792. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -26
  1793. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  1794. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -3
  1795. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
  1796. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
  1797. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
  1798. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -6
  1799. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1800. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js +0 -6
  1801. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
  1802. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -3
  1803. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1804. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -21
  1805. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  1806. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -3
  1807. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1808. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
  1809. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
  1810. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -3
  1811. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  1812. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js +0 -24
  1813. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  1814. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  1815. package/dist/field/features/migrations/slateToLexical/converter/index.js +0 -107
  1816. package/dist/field/features/migrations/slateToLexical/converter/index.js.map +0 -1
  1817. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts +0 -25
  1818. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  1819. package/dist/field/features/migrations/slateToLexical/converter/types.js +0 -3
  1820. package/dist/field/features/migrations/slateToLexical/converter/types.js.map +0 -1
  1821. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +0 -3
  1822. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  1823. package/dist/field/features/migrations/slateToLexical/feature.client.js +0 -34
  1824. package/dist/field/features/migrations/slateToLexical/feature.client.js.map +0 -1
  1825. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts +0 -9
  1826. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  1827. package/dist/field/features/migrations/slateToLexical/feature.server.js +0 -47
  1828. package/dist/field/features/migrations/slateToLexical/feature.server.js.map +0 -1
  1829. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1830. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -8
  1831. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1832. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
  1833. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1834. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -70
  1835. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1836. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  1837. package/dist/field/features/paragraph/feature.client.d.ts +0 -3
  1838. package/dist/field/features/paragraph/feature.client.d.ts.map +0 -1
  1839. package/dist/field/features/paragraph/feature.client.js +0 -65
  1840. package/dist/field/features/paragraph/feature.client.js.map +0 -1
  1841. package/dist/field/features/paragraph/feature.server.d.ts +0 -3
  1842. package/dist/field/features/paragraph/feature.server.d.ts.map +0 -1
  1843. package/dist/field/features/paragraph/feature.server.js +0 -16
  1844. package/dist/field/features/paragraph/feature.server.js.map +0 -1
  1845. package/dist/field/features/relationship/drawer/commands.d.ts.map +0 -1
  1846. package/dist/field/features/relationship/drawer/commands.js +0 -5
  1847. package/dist/field/features/relationship/drawer/commands.js.map +0 -1
  1848. package/dist/field/features/relationship/drawer/index.d.ts.map +0 -1
  1849. package/dist/field/features/relationship/drawer/index.js +0 -81
  1850. package/dist/field/features/relationship/drawer/index.js.map +0 -1
  1851. package/dist/field/features/relationship/feature.client.d.ts +0 -4
  1852. package/dist/field/features/relationship/feature.client.d.ts.map +0 -1
  1853. package/dist/field/features/relationship/feature.client.js +0 -56
  1854. package/dist/field/features/relationship/feature.client.js.map +0 -1
  1855. package/dist/field/features/relationship/feature.server.d.ts +0 -18
  1856. package/dist/field/features/relationship/feature.server.d.ts.map +0 -1
  1857. package/dist/field/features/relationship/feature.server.js +0 -26
  1858. package/dist/field/features/relationship/feature.server.js.map +0 -1
  1859. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts +0 -36
  1860. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
  1861. package/dist/field/features/relationship/nodes/RelationshipNode.js +0 -110
  1862. package/dist/field/features/relationship/nodes/RelationshipNode.js.map +0 -1
  1863. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts +0 -14
  1864. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  1865. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +0 -109
  1866. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
  1867. package/dist/field/features/relationship/nodes/components/index.scss +0 -97
  1868. package/dist/field/features/relationship/plugins/index.d.ts +0 -7
  1869. package/dist/field/features/relationship/plugins/index.d.ts.map +0 -1
  1870. package/dist/field/features/relationship/plugins/index.js +0 -52
  1871. package/dist/field/features/relationship/plugins/index.js.map +0 -1
  1872. package/dist/field/features/relationship/populationPromise.d.ts +0 -4
  1873. package/dist/field/features/relationship/populationPromise.d.ts.map +0 -1
  1874. package/dist/field/features/relationship/populationPromise.js +0 -24
  1875. package/dist/field/features/relationship/populationPromise.js.map +0 -1
  1876. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  1877. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +0 -35
  1878. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
  1879. package/dist/field/features/types.d.ts +0 -274
  1880. package/dist/field/features/types.d.ts.map +0 -1
  1881. package/dist/field/features/types.js +0 -3
  1882. package/dist/field/features/types.js.map +0 -1
  1883. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts +0 -12
  1884. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +0 -1
  1885. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +0 -126
  1886. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +0 -1
  1887. package/dist/field/features/upload/component/index.d.ts +0 -9
  1888. package/dist/field/features/upload/component/index.d.ts.map +0 -1
  1889. package/dist/field/features/upload/component/index.js +0 -144
  1890. package/dist/field/features/upload/component/index.js.map +0 -1
  1891. package/dist/field/features/upload/component/index.scss +0 -152
  1892. package/dist/field/features/upload/drawer/commands.d.ts.map +0 -1
  1893. package/dist/field/features/upload/drawer/commands.js +0 -6
  1894. package/dist/field/features/upload/drawer/commands.js.map +0 -1
  1895. package/dist/field/features/upload/drawer/index.d.ts.map +0 -1
  1896. package/dist/field/features/upload/drawer/index.js +0 -78
  1897. package/dist/field/features/upload/drawer/index.js.map +0 -1
  1898. package/dist/field/features/upload/feature.client.d.ts +0 -10
  1899. package/dist/field/features/upload/feature.client.d.ts.map +0 -1
  1900. package/dist/field/features/upload/feature.client.js +0 -55
  1901. package/dist/field/features/upload/feature.client.js.map +0 -1
  1902. package/dist/field/features/upload/feature.server.d.ts +0 -12
  1903. package/dist/field/features/upload/feature.server.d.ts.map +0 -1
  1904. package/dist/field/features/upload/feature.server.js +0 -122
  1905. package/dist/field/features/upload/feature.server.js.map +0 -1
  1906. package/dist/field/features/upload/nodes/UploadNode.d.ts +0 -49
  1907. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +0 -1
  1908. package/dist/field/features/upload/nodes/UploadNode.js +0 -102
  1909. package/dist/field/features/upload/nodes/UploadNode.js.map +0 -1
  1910. package/dist/field/features/upload/plugin/index.d.ts +0 -7
  1911. package/dist/field/features/upload/plugin/index.d.ts.map +0 -1
  1912. package/dist/field/features/upload/plugin/index.js +0 -55
  1913. package/dist/field/features/upload/plugin/index.js.map +0 -1
  1914. package/dist/field/features/upload/populationPromise.d.ts +0 -5
  1915. package/dist/field/features/upload/populationPromise.d.ts.map +0 -1
  1916. package/dist/field/features/upload/populationPromise.js +0 -46
  1917. package/dist/field/features/upload/populationPromise.js.map +0 -1
  1918. package/dist/field/features/upload/validate.d.ts +0 -4
  1919. package/dist/field/features/upload/validate.d.ts.map +0 -1
  1920. package/dist/field/features/upload/validate.js +0 -17
  1921. package/dist/field/features/upload/validate.js.map +0 -1
  1922. package/dist/field/index.scss +0 -46
  1923. package/dist/field/lexical/EditorPlugin.d.ts +0 -7
  1924. package/dist/field/lexical/EditorPlugin.d.ts.map +0 -1
  1925. package/dist/field/lexical/EditorPlugin.js +0 -11
  1926. package/dist/field/lexical/EditorPlugin.js.map +0 -1
  1927. package/dist/field/lexical/LexicalEditor.d.ts +0 -5
  1928. package/dist/field/lexical/LexicalEditor.d.ts.map +0 -1
  1929. package/dist/field/lexical/LexicalEditor.js +0 -112
  1930. package/dist/field/lexical/LexicalEditor.js.map +0 -1
  1931. package/dist/field/lexical/LexicalEditor.scss +0 -56
  1932. package/dist/field/lexical/LexicalProvider.d.ts +0 -19
  1933. package/dist/field/lexical/LexicalProvider.d.ts.map +0 -1
  1934. package/dist/field/lexical/LexicalProvider.js +0 -67
  1935. package/dist/field/lexical/LexicalProvider.js.map +0 -1
  1936. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +0 -24
  1937. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +0 -1
  1938. package/dist/field/lexical/config/client/EditorConfigProvider.js +0 -41
  1939. package/dist/field/lexical/config/client/EditorConfigProvider.js.map +0 -1
  1940. package/dist/field/lexical/config/client/default.d.ts +0 -3
  1941. package/dist/field/lexical/config/client/default.d.ts.map +0 -1
  1942. package/dist/field/lexical/config/client/default.js +0 -8
  1943. package/dist/field/lexical/config/client/default.js.map +0 -1
  1944. package/dist/field/lexical/config/client/loader.d.ts +0 -12
  1945. package/dist/field/lexical/config/client/loader.d.ts.map +0 -1
  1946. package/dist/field/lexical/config/client/loader.js +0 -46
  1947. package/dist/field/lexical/config/client/loader.js.map +0 -1
  1948. package/dist/field/lexical/config/client/sanitize.d.ts +0 -6
  1949. package/dist/field/lexical/config/client/sanitize.d.ts.map +0 -1
  1950. package/dist/field/lexical/config/client/sanitize.js +0 -126
  1951. package/dist/field/lexical/config/client/sanitize.js.map +0 -1
  1952. package/dist/field/lexical/config/server/default.d.ts +0 -8
  1953. package/dist/field/lexical/config/server/default.d.ts.map +0 -1
  1954. package/dist/field/lexical/config/server/default.js +0 -53
  1955. package/dist/field/lexical/config/server/default.js.map +0 -1
  1956. package/dist/field/lexical/config/server/loader.d.ts +0 -7
  1957. package/dist/field/lexical/config/server/loader.d.ts.map +0 -1
  1958. package/dist/field/lexical/config/server/loader.js +0 -118
  1959. package/dist/field/lexical/config/server/loader.js.map +0 -1
  1960. package/dist/field/lexical/config/server/sanitize.d.ts +0 -5
  1961. package/dist/field/lexical/config/server/sanitize.d.ts.map +0 -1
  1962. package/dist/field/lexical/config/server/sanitize.js +0 -65
  1963. package/dist/field/lexical/config/server/sanitize.js.map +0 -1
  1964. package/dist/field/lexical/config/types.d.ts +0 -21
  1965. package/dist/field/lexical/config/types.d.ts.map +0 -1
  1966. package/dist/field/lexical/config/types.js +0 -3
  1967. package/dist/field/lexical/config/types.js.map +0 -1
  1968. package/dist/field/lexical/nodes/index.d.ts +0 -7
  1969. package/dist/field/lexical/nodes/index.d.ts.map +0 -1
  1970. package/dist/field/lexical/nodes/index.js +0 -10
  1971. package/dist/field/lexical/nodes/index.js.map +0 -1
  1972. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts +0 -8
  1973. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts.map +0 -1
  1974. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js +0 -97
  1975. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js.map +0 -1
  1976. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +0 -37
  1977. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +0 -17
  1978. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +0 -1
  1979. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js +0 -251
  1980. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js.map +0 -1
  1981. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts +0 -18
  1982. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +0 -1
  1983. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +0 -42
  1984. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js.map +0 -1
  1985. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +0 -100
  1986. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts +0 -6
  1987. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +0 -1
  1988. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +0 -270
  1989. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js.map +0 -1
  1990. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +0 -57
  1991. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +0 -40
  1992. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +0 -1
  1993. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js +0 -3
  1994. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js.map +0 -1
  1995. package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +0 -1
  1996. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +0 -13
  1997. package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +0 -1
  1998. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -32
  1999. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +0 -1
  2000. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +0 -404
  2001. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +0 -1
  2002. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +0 -25
  2003. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +0 -1
  2004. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +0 -207
  2005. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +0 -1
  2006. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +0 -39
  2007. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +0 -1
  2008. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +0 -39
  2009. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +0 -1
  2010. package/dist/field/lexical/plugins/SlashMenu/index.d.ts +0 -6
  2011. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +0 -1
  2012. package/dist/field/lexical/plugins/SlashMenu/index.js +0 -172
  2013. package/dist/field/lexical/plugins/SlashMenu/index.js.map +0 -1
  2014. package/dist/field/lexical/plugins/SlashMenu/index.scss +0 -61
  2015. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +0 -1
  2016. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +0 -33
  2017. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +0 -1
  2018. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +0 -6
  2019. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +0 -1
  2020. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +0 -241
  2021. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +0 -1
  2022. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -31
  2023. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts +0 -2
  2024. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +0 -1
  2025. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +0 -14
  2026. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +0 -1
  2027. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +0 -1
  2028. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +0 -14
  2029. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +0 -1
  2030. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts +0 -27
  2031. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts.map +0 -1
  2032. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js +0 -151
  2033. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js.map +0 -1
  2034. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +0 -3
  2035. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +0 -1
  2036. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +0 -27
  2037. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +0 -1
  2038. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +0 -6
  2039. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +0 -1
  2040. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +0 -298
  2041. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +0 -1
  2042. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -55
  2043. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +0 -3
  2044. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +0 -1
  2045. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +0 -49
  2046. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +0 -1
  2047. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +0 -1
  2048. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +0 -35
  2049. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +0 -1
  2050. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +0 -1
  2051. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js +0 -14
  2052. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js.map +0 -1
  2053. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +0 -1
  2054. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +0 -7
  2055. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +0 -1
  2056. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +0 -1
  2057. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js +0 -5
  2058. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js.map +0 -1
  2059. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +0 -1
  2060. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js +0 -27
  2061. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js.map +0 -1
  2062. package/dist/field/lexical/theme/EditorTheme.d.ts +0 -4
  2063. package/dist/field/lexical/theme/EditorTheme.d.ts.map +0 -1
  2064. package/dist/field/lexical/theme/EditorTheme.js +0 -106
  2065. package/dist/field/lexical/theme/EditorTheme.js.map +0 -1
  2066. package/dist/field/lexical/theme/EditorTheme.scss +0 -509
  2067. package/dist/field/lexical/ui/ContentEditable.d.ts +0 -6
  2068. package/dist/field/lexical/ui/ContentEditable.d.ts.map +0 -1
  2069. package/dist/field/lexical/ui/ContentEditable.js +0 -11
  2070. package/dist/field/lexical/ui/ContentEditable.js.map +0 -1
  2071. package/dist/field/lexical/ui/ContentEditable.scss +0 -25
  2072. package/dist/field/lexical/ui/icons/AI/index.d.ts.map +0 -1
  2073. package/dist/field/lexical/ui/icons/AI/index.js +0 -27
  2074. package/dist/field/lexical/ui/icons/AI/index.js.map +0 -1
  2075. package/dist/field/lexical/ui/icons/AlignCenter/index.d.ts.map +0 -1
  2076. package/dist/field/lexical/ui/icons/AlignCenter/index.js +0 -25
  2077. package/dist/field/lexical/ui/icons/AlignCenter/index.js.map +0 -1
  2078. package/dist/field/lexical/ui/icons/AlignJustify/index.d.ts.map +0 -1
  2079. package/dist/field/lexical/ui/icons/AlignJustify/index.js +0 -25
  2080. package/dist/field/lexical/ui/icons/AlignJustify/index.js.map +0 -1
  2081. package/dist/field/lexical/ui/icons/AlignLeft/index.d.ts.map +0 -1
  2082. package/dist/field/lexical/ui/icons/AlignLeft/index.js +0 -25
  2083. package/dist/field/lexical/ui/icons/AlignLeft/index.js.map +0 -1
  2084. package/dist/field/lexical/ui/icons/AlignRight/index.d.ts.map +0 -1
  2085. package/dist/field/lexical/ui/icons/AlignRight/index.js +0 -25
  2086. package/dist/field/lexical/ui/icons/AlignRight/index.js.map +0 -1
  2087. package/dist/field/lexical/ui/icons/Block/index.d.ts.map +0 -1
  2088. package/dist/field/lexical/ui/icons/Block/index.js +0 -34
  2089. package/dist/field/lexical/ui/icons/Block/index.js.map +0 -1
  2090. package/dist/field/lexical/ui/icons/Blockquote/index.d.ts.map +0 -1
  2091. package/dist/field/lexical/ui/icons/Blockquote/index.js +0 -16
  2092. package/dist/field/lexical/ui/icons/Blockquote/index.js.map +0 -1
  2093. package/dist/field/lexical/ui/icons/Bold/index.d.ts.map +0 -1
  2094. package/dist/field/lexical/ui/icons/Bold/index.js +0 -16
  2095. package/dist/field/lexical/ui/icons/Bold/index.js.map +0 -1
  2096. package/dist/field/lexical/ui/icons/Caret/index.svg +0 -3
  2097. package/dist/field/lexical/ui/icons/Checklist/index.d.ts.map +0 -1
  2098. package/dist/field/lexical/ui/icons/Checklist/index.js +0 -24
  2099. package/dist/field/lexical/ui/icons/Checklist/index.js.map +0 -1
  2100. package/dist/field/lexical/ui/icons/Code/index.d.ts.map +0 -1
  2101. package/dist/field/lexical/ui/icons/Code/index.js +0 -19
  2102. package/dist/field/lexical/ui/icons/Code/index.js.map +0 -1
  2103. package/dist/field/lexical/ui/icons/CodeBlock/index.d.ts.map +0 -1
  2104. package/dist/field/lexical/ui/icons/CodeBlock/index.js +0 -19
  2105. package/dist/field/lexical/ui/icons/CodeBlock/index.js.map +0 -1
  2106. package/dist/field/lexical/ui/icons/H1/index.d.ts.map +0 -1
  2107. package/dist/field/lexical/ui/icons/H1/index.js +0 -16
  2108. package/dist/field/lexical/ui/icons/H1/index.js.map +0 -1
  2109. package/dist/field/lexical/ui/icons/H2/index.d.ts.map +0 -1
  2110. package/dist/field/lexical/ui/icons/H2/index.js +0 -16
  2111. package/dist/field/lexical/ui/icons/H2/index.js.map +0 -1
  2112. package/dist/field/lexical/ui/icons/H3/index.d.ts.map +0 -1
  2113. package/dist/field/lexical/ui/icons/H3/index.js +0 -16
  2114. package/dist/field/lexical/ui/icons/H3/index.js.map +0 -1
  2115. package/dist/field/lexical/ui/icons/H4/index.d.ts.map +0 -1
  2116. package/dist/field/lexical/ui/icons/H4/index.js +0 -16
  2117. package/dist/field/lexical/ui/icons/H4/index.js.map +0 -1
  2118. package/dist/field/lexical/ui/icons/H5/index.d.ts.map +0 -1
  2119. package/dist/field/lexical/ui/icons/H5/index.js +0 -16
  2120. package/dist/field/lexical/ui/icons/H5/index.js.map +0 -1
  2121. package/dist/field/lexical/ui/icons/H6/index.d.ts.map +0 -1
  2122. package/dist/field/lexical/ui/icons/H6/index.js +0 -16
  2123. package/dist/field/lexical/ui/icons/H6/index.js.map +0 -1
  2124. package/dist/field/lexical/ui/icons/HorizontalRule/index.d.ts.map +0 -1
  2125. package/dist/field/lexical/ui/icons/HorizontalRule/index.js +0 -19
  2126. package/dist/field/lexical/ui/icons/HorizontalRule/index.js.map +0 -1
  2127. package/dist/field/lexical/ui/icons/IndentDecrease/index.d.ts.map +0 -1
  2128. package/dist/field/lexical/ui/icons/IndentDecrease/index.js +0 -28
  2129. package/dist/field/lexical/ui/icons/IndentDecrease/index.js.map +0 -1
  2130. package/dist/field/lexical/ui/icons/IndentIncrease/index.d.ts.map +0 -1
  2131. package/dist/field/lexical/ui/icons/IndentIncrease/index.js +0 -28
  2132. package/dist/field/lexical/ui/icons/IndentIncrease/index.js.map +0 -1
  2133. package/dist/field/lexical/ui/icons/Italic/index.d.ts.map +0 -1
  2134. package/dist/field/lexical/ui/icons/Italic/index.js +0 -16
  2135. package/dist/field/lexical/ui/icons/Italic/index.js.map +0 -1
  2136. package/dist/field/lexical/ui/icons/Link/index.d.ts.map +0 -1
  2137. package/dist/field/lexical/ui/icons/Link/index.js +0 -27
  2138. package/dist/field/lexical/ui/icons/Link/index.js.map +0 -1
  2139. package/dist/field/lexical/ui/icons/OrderedList/index.d.ts.map +0 -1
  2140. package/dist/field/lexical/ui/icons/OrderedList/index.js +0 -31
  2141. package/dist/field/lexical/ui/icons/OrderedList/index.js.map +0 -1
  2142. package/dist/field/lexical/ui/icons/Relationship/index.d.ts.map +0 -1
  2143. package/dist/field/lexical/ui/icons/Relationship/index.js +0 -27
  2144. package/dist/field/lexical/ui/icons/Relationship/index.js.map +0 -1
  2145. package/dist/field/lexical/ui/icons/Strikethrough/index.d.ts.map +0 -1
  2146. package/dist/field/lexical/ui/icons/Strikethrough/index.js +0 -19
  2147. package/dist/field/lexical/ui/icons/Strikethrough/index.js.map +0 -1
  2148. package/dist/field/lexical/ui/icons/Subscript/index.d.ts.map +0 -1
  2149. package/dist/field/lexical/ui/icons/Subscript/index.js +0 -16
  2150. package/dist/field/lexical/ui/icons/Subscript/index.js.map +0 -1
  2151. package/dist/field/lexical/ui/icons/Superscript/index.d.ts.map +0 -1
  2152. package/dist/field/lexical/ui/icons/Superscript/index.js +0 -16
  2153. package/dist/field/lexical/ui/icons/Superscript/index.js.map +0 -1
  2154. package/dist/field/lexical/ui/icons/Text/index.d.ts.map +0 -1
  2155. package/dist/field/lexical/ui/icons/Text/index.js +0 -16
  2156. package/dist/field/lexical/ui/icons/Text/index.js.map +0 -1
  2157. package/dist/field/lexical/ui/icons/Underline/index.d.ts.map +0 -1
  2158. package/dist/field/lexical/ui/icons/Underline/index.js +0 -19
  2159. package/dist/field/lexical/ui/icons/Underline/index.js.map +0 -1
  2160. package/dist/field/lexical/ui/icons/UnorderedList/index.d.ts.map +0 -1
  2161. package/dist/field/lexical/ui/icons/UnorderedList/index.js +0 -46
  2162. package/dist/field/lexical/ui/icons/UnorderedList/index.js.map +0 -1
  2163. package/dist/field/lexical/ui/icons/Upload/index.d.ts.map +0 -1
  2164. package/dist/field/lexical/ui/icons/Upload/index.js +0 -28
  2165. package/dist/field/lexical/ui/icons/Upload/index.js.map +0 -1
  2166. package/dist/field/lexical/utils/canUseDOM.d.ts.map +0 -1
  2167. package/dist/field/lexical/utils/canUseDOM.js +0 -3
  2168. package/dist/field/lexical/utils/canUseDOM.js.map +0 -1
  2169. package/dist/field/lexical/utils/cloneDeep.d.ts +0 -2
  2170. package/dist/field/lexical/utils/cloneDeep.d.ts.map +0 -1
  2171. package/dist/field/lexical/utils/cloneDeep.js +0 -50
  2172. package/dist/field/lexical/utils/cloneDeep.js.map +0 -1
  2173. package/dist/field/lexical/utils/environment.d.ts.map +0 -1
  2174. package/dist/field/lexical/utils/environment.js +0 -14
  2175. package/dist/field/lexical/utils/environment.js.map +0 -1
  2176. package/dist/field/lexical/utils/getDOMRangeRect.d.ts.map +0 -1
  2177. package/dist/field/lexical/utils/getDOMRangeRect.js +0 -16
  2178. package/dist/field/lexical/utils/getDOMRangeRect.js.map +0 -1
  2179. package/dist/field/lexical/utils/getSelectedNode.d.ts.map +0 -1
  2180. package/dist/field/lexical/utils/getSelectedNode.js +0 -18
  2181. package/dist/field/lexical/utils/getSelectedNode.js.map +0 -1
  2182. package/dist/field/lexical/utils/guard.d.ts.map +0 -1
  2183. package/dist/field/lexical/utils/guard.js +0 -5
  2184. package/dist/field/lexical/utils/guard.js.map +0 -1
  2185. package/dist/field/lexical/utils/invariant.d.ts +0 -2
  2186. package/dist/field/lexical/utils/invariant.d.ts.map +0 -1
  2187. package/dist/field/lexical/utils/invariant.js +0 -12
  2188. package/dist/field/lexical/utils/invariant.js.map +0 -1
  2189. package/dist/field/lexical/utils/joinClasses.d.ts.map +0 -1
  2190. package/dist/field/lexical/utils/joinClasses.js +0 -5
  2191. package/dist/field/lexical/utils/joinClasses.js.map +0 -1
  2192. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts +0 -4
  2193. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts.map +0 -1
  2194. package/dist/field/lexical/utils/markdown/createBlockNode.js +0 -12
  2195. package/dist/field/lexical/utils/markdown/createBlockNode.js.map +0 -1
  2196. package/dist/field/lexical/utils/nodeFormat.d.ts +0 -41
  2197. package/dist/field/lexical/utils/nodeFormat.d.ts.map +0 -1
  2198. package/dist/field/lexical/utils/nodeFormat.js +0 -88
  2199. package/dist/field/lexical/utils/nodeFormat.js.map +0 -1
  2200. package/dist/field/lexical/utils/point.d.ts.map +0 -1
  2201. package/dist/field/lexical/utils/point.js +0 -37
  2202. package/dist/field/lexical/utils/point.js.map +0 -1
  2203. package/dist/field/lexical/utils/rect.d.ts +0 -47
  2204. package/dist/field/lexical/utils/rect.d.ts.map +0 -1
  2205. package/dist/field/lexical/utils/rect.js +0 -138
  2206. package/dist/field/lexical/utils/rect.js.map +0 -1
  2207. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts +0 -2
  2208. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +0 -1
  2209. package/dist/field/lexical/utils/setFloatingElemPosition.js +0 -53
  2210. package/dist/field/lexical/utils/setFloatingElemPosition.js.map +0 -1
  2211. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +0 -1
  2212. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js +0 -27
  2213. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +0 -1
  2214. package/dist/field/lexical/utils/swipe.d.ts.map +0 -1
  2215. package/dist/field/lexical/utils/swipe.js +0 -100
  2216. package/dist/field/lexical/utils/swipe.js.map +0 -1
  2217. package/dist/field/lexical/utils/url.d.ts +0 -3
  2218. package/dist/field/lexical/utils/url.d.ts.map +0 -1
  2219. package/dist/field/lexical/utils/url.js +0 -25
  2220. package/dist/field/lexical/utils/url.js.map +0 -1
  2221. package/dist/generateComponentMap.d.ts +0 -6
  2222. package/dist/generateComponentMap.d.ts.map +0 -1
  2223. package/dist/generateComponentMap.js +0 -86
  2224. package/dist/generateComponentMap.js.map +0 -1
  2225. package/dist/generateSchemaMap.d.ts +0 -6
  2226. package/dist/generateSchemaMap.d.ts.map +0 -1
  2227. package/dist/generateSchemaMap.js +0 -31
  2228. package/dist/generateSchemaMap.js.map +0 -1
  2229. package/dist/populate/defaultValue.d.ts +0 -4
  2230. package/dist/populate/defaultValue.d.ts.map +0 -1
  2231. package/dist/populate/defaultValue.js +0 -50
  2232. package/dist/populate/defaultValue.js.map +0 -1
  2233. package/dist/populate/populate.d.ts +0 -21
  2234. package/dist/populate/populate.d.ts.map +0 -1
  2235. package/dist/populate/populate.js +0 -21
  2236. package/dist/populate/populate.js.map +0 -1
  2237. package/dist/populate/recurseNestedFields.d.ts +0 -25
  2238. package/dist/populate/recurseNestedFields.d.ts.map +0 -1
  2239. package/dist/populate/recurseNestedFields.js +0 -26
  2240. package/dist/populate/recurseNestedFields.js.map +0 -1
  2241. package/dist/populate/richTextRelationshipPromise.d.ts +0 -23
  2242. package/dist/populate/richTextRelationshipPromise.d.ts.map +0 -1
  2243. package/dist/populate/richTextRelationshipPromise.js +0 -68
  2244. package/dist/populate/richTextRelationshipPromise.js.map +0 -1
  2245. package/dist/scss/app.scss +0 -208
  2246. package/dist/scss/colors.scss +0 -269
  2247. package/dist/scss/queries.scss +0 -27
  2248. package/dist/scss/resets.scss +0 -17
  2249. package/dist/scss/styles.scss +0 -11
  2250. package/dist/scss/svg.scss +0 -10
  2251. package/dist/scss/toastify.scss +0 -58
  2252. package/dist/scss/type.scss +0 -117
  2253. package/dist/scss/vars.scss +0 -213
  2254. package/dist/scss/z-index.scss +0 -9
  2255. package/dist/useLexicalFeature.d.ts +0 -3
  2256. package/dist/useLexicalFeature.d.ts.map +0 -1
  2257. package/dist/useLexicalFeature.js +0 -9
  2258. package/dist/useLexicalFeature.js.map +0 -1
  2259. /package/dist/{field/features → features}/blockquote/markdownTransformer.d.ts +0 -0
  2260. /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.d.ts +0 -0
  2261. /package/dist/{field/features → features}/converters/html/converter/converters/paragraph.d.ts +0 -0
  2262. /package/dist/{field/features → features}/converters/html/converter/converters/text.d.ts +0 -0
  2263. /package/dist/{field/features → features}/converters/html/converter/defaultConverters.d.ts +0 -0
  2264. /package/dist/{field/features → features}/format/bold/markdownTransformers.d.ts +0 -0
  2265. /package/dist/{field/features/format/inlinecode → features/format/inlineCode}/markdownTransformers.d.ts +0 -0
  2266. /package/dist/{field/features → features}/format/italic/markdownTransformers.d.ts +0 -0
  2267. /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.d.ts +0 -0
  2268. /package/dist/{field/features → features}/heading/markdownTransformer.d.ts +0 -0
  2269. /package/dist/{field/features/horizontalrule → features/horizontalRule/client}/markdownTransformer.d.ts +0 -0
  2270. /package/dist/{field/features/link → features/link/client}/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  2271. /package/dist/{field/features/link → features/link/client}/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
  2272. /package/dist/{field/features → features}/link/nodes/AutoLinkNode.d.ts +0 -0
  2273. /package/dist/{field/features → features}/lists/checklist/markdownTransformers.d.ts +0 -0
  2274. /package/dist/{field/features/lists/orderedlist → features/lists/orderedList}/markdownTransformer.d.ts +0 -0
  2275. /package/dist/{field/features/lists/unorderedlist → features/lists/unorderedList}/markdownTransformer.d.ts +0 -0
  2276. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  2277. /package/dist/{field/features → features}/migrations/slateToLexical/converter/index.d.ts +0 -0
  2278. /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  2279. /package/dist/{field/features/relationship → features/relationship/client}/drawer/commands.d.ts +0 -0
  2280. /package/dist/{field/features/relationship → features/relationship/client}/drawer/index.d.ts +0 -0
  2281. /package/dist/{field/features/relationship → features/relationship/client}/utils/EnabledRelationshipsCondition.d.ts +0 -0
  2282. /package/dist/{field/features/upload → features/upload/client}/drawer/commands.d.ts +0 -0
  2283. /package/dist/{field/features/upload → features/upload/client}/drawer/index.d.ts +0 -0
  2284. /package/dist/{field/lexical → lexical}/plugins/MarkdownShortcut/index.d.ts +0 -0
  2285. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.d.ts +0 -0
  2286. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts +0 -0
  2287. /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.d.ts +0 -0
  2288. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.d.ts +0 -0
  2289. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.d.ts +0 -0
  2290. /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.d.ts +0 -0
  2291. /package/dist/{field/lexical → lexical}/plugins/handles/utils/setHandlePosition.d.ts +0 -0
  2292. /package/dist/{field/lexical → lexical}/ui/icons/AI/index.d.ts +0 -0
  2293. /package/dist/{field/lexical → lexical}/ui/icons/Add/index.svg +0 -0
  2294. /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.d.ts +0 -0
  2295. /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.d.ts +0 -0
  2296. /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.d.ts +0 -0
  2297. /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.d.ts +0 -0
  2298. /package/dist/{field/lexical → lexical}/ui/icons/Block/index.d.ts +0 -0
  2299. /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.d.ts +0 -0
  2300. /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.d.ts +0 -0
  2301. /package/dist/{field/lexical → lexical}/ui/icons/Checklist/index.d.ts +0 -0
  2302. /package/dist/{field/lexical → lexical}/ui/icons/Code/index.d.ts +0 -0
  2303. /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.d.ts +0 -0
  2304. /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/index.svg +0 -0
  2305. /package/dist/{field/lexical → lexical}/ui/icons/Edit/index.svg +0 -0
  2306. /package/dist/{field/lexical → lexical}/ui/icons/H1/index.d.ts +0 -0
  2307. /package/dist/{field/lexical → lexical}/ui/icons/H2/index.d.ts +0 -0
  2308. /package/dist/{field/lexical → lexical}/ui/icons/H3/index.d.ts +0 -0
  2309. /package/dist/{field/lexical → lexical}/ui/icons/H4/index.d.ts +0 -0
  2310. /package/dist/{field/lexical → lexical}/ui/icons/H5/index.d.ts +0 -0
  2311. /package/dist/{field/lexical → lexical}/ui/icons/H6/index.d.ts +0 -0
  2312. /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.d.ts +0 -0
  2313. /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.d.ts +0 -0
  2314. /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.d.ts +0 -0
  2315. /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.d.ts +0 -0
  2316. /package/dist/{field/lexical → lexical}/ui/icons/Link/index.d.ts +0 -0
  2317. /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.d.ts +0 -0
  2318. /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.d.ts +0 -0
  2319. /package/dist/{field/lexical → lexical}/ui/icons/Remove/index.svg +0 -0
  2320. /package/dist/{field/lexical → lexical}/ui/icons/Strikethrough/index.d.ts +0 -0
  2321. /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.d.ts +0 -0
  2322. /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.d.ts +0 -0
  2323. /package/dist/{field/lexical → lexical}/ui/icons/Text/index.d.ts +0 -0
  2324. /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.d.ts +0 -0
  2325. /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.d.ts +0 -0
  2326. /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.d.ts +0 -0
  2327. /package/dist/{field/lexical → lexical}/utils/canUseDOM.d.ts +0 -0
  2328. /package/dist/{field/lexical → lexical}/utils/environment.d.ts +0 -0
  2329. /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.d.ts +0 -0
  2330. /package/dist/{field/lexical → lexical}/utils/getSelectedNode.d.ts +0 -0
  2331. /package/dist/{field/lexical → lexical}/utils/guard.d.ts +0 -0
  2332. /package/dist/{field/lexical → lexical}/utils/joinClasses.d.ts +0 -0
  2333. /package/dist/{field/lexical → lexical}/utils/point.d.ts +0 -0
  2334. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.d.ts +0 -0
  2335. /package/dist/{field/lexical → lexical}/utils/swipe.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/blocks/client/component/index.tsx", "../../../src/features/blocks/client/component/BlockContent.tsx", "../../../src/features/blocks/client/component/FormSavePlugin.tsx", "../../../src/features/blocks/client/component/removeEmptyArrayValues.ts"],
4
+ "sourcesContent": ["'use client'\n\nimport {\n Collapsible,\n Form,\n Pill,\n SectionTitle,\n ShimmerEffect,\n useDocumentInfo,\n useFormSubmitted,\n useServerFunctions,\n useTranslation,\n} from '@payloadcms/ui'\nimport { abortAndIgnore } from '@payloadcms/ui/shared'\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'\n\nconst baseClass = 'lexical-block'\nimport { getTranslation } from '@payloadcms/translations'\nimport { type BlocksFieldClient, type FormState } from 'payload'\nimport { v4 as uuid } from 'uuid'\n\nimport type { BlockFields } from '../../server/nodes/BlocksNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { BlockContent } from './BlockContent.js'\nimport './index.scss'\n\ntype Props = {\n readonly children?: React.ReactNode\n readonly formData: BlockFields\n readonly nodeKey: string\n}\n\nexport const BlockComponent: React.FC<Props> = (props) => {\n const { formData, nodeKey } = props\n const submitted = useFormSubmitted()\n const { id, collectionSlug, globalSlug } = useDocumentInfo()\n const {\n fieldProps: { featureClientSchemaMap, field: parentLexicalRichTextField, path, schemaPath },\n } = useEditorConfigContext()\n const onChangeAbortControllerRef = useRef(new AbortController())\n const { docPermissions, getDocPreferences } = useDocumentInfo()\n\n const { getFormState } = useServerFunctions()\n\n const [initialState, setInitialState] = useState<false | FormState | undefined>(false)\n\n const schemaFieldsPath = `${schemaPath}.lexical_internal_feature.blocks.lexical_blocks.${formData.blockType}.fields`\n\n const componentMapRenderedBlockPath = `${schemaPath}.lexical_internal_feature.blocks.lexical_blocks.${formData.blockType}`\n\n const clientSchemaMap = featureClientSchemaMap['blocks']\n\n const blocksField: BlocksFieldClient = clientSchemaMap[\n componentMapRenderedBlockPath\n ][0] as BlocksFieldClient\n\n const clientBlock = blocksField.blocks[0]\n\n const { i18n } = useTranslation()\n\n // Field Schema\n useEffect(() => {\n const abortController = new AbortController()\n\n const awaitInitialState = async () => {\n const { state } = await getFormState({\n id,\n collectionSlug,\n data: formData,\n docPermissions,\n docPreferences: await getDocPreferences(),\n globalSlug,\n operation: 'update',\n renderAllFields: true,\n schemaPath: schemaFieldsPath,\n signal: abortController.signal,\n })\n\n if (state) {\n state.blockName = {\n initialValue: '',\n passesCondition: true,\n valid: true,\n value: formData.blockName,\n }\n\n setInitialState(state)\n }\n }\n\n if (formData) {\n void awaitInitialState()\n }\n\n return () => {\n abortAndIgnore(abortController)\n }\n }, [\n getFormState,\n schemaFieldsPath,\n id,\n collectionSlug,\n globalSlug,\n getDocPreferences,\n docPermissions,\n // DO NOT ADD FORMDATA HERE! Adding formData will kick you out of sub block editors while writing.\n ])\n\n const onChange = useCallback(\n async ({ formState: prevFormState }) => {\n abortAndIgnore(onChangeAbortControllerRef.current)\n\n const controller = new AbortController()\n onChangeAbortControllerRef.current = controller\n\n const { state: newFormState } = await getFormState({\n id,\n collectionSlug,\n docPermissions,\n docPreferences: await getDocPreferences(),\n formState: prevFormState,\n globalSlug,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n signal: controller.signal,\n })\n\n if (!newFormState) {\n return prevFormState\n }\n\n newFormState.blockName = {\n initialValue: '',\n passesCondition: true,\n valid: true,\n value: formData.blockName,\n }\n\n return newFormState\n },\n\n [\n getFormState,\n id,\n collectionSlug,\n docPermissions,\n getDocPreferences,\n globalSlug,\n schemaFieldsPath,\n formData.blockName,\n ],\n )\n\n useEffect(() => {\n return () => {\n abortAndIgnore(onChangeAbortControllerRef.current)\n }\n }, [])\n\n const classNames = [`${baseClass}__row`, `${baseClass}__row--no-errors`].filter(Boolean).join(' ')\n\n const Label = clientBlock?.admin?.components?.Label\n\n // Memoized Form JSX\n const formContent = useMemo(() => {\n return clientBlock && initialState !== false ? (\n <Form\n beforeSubmit={[onChange]}\n fields={clientBlock.fields}\n initialState={initialState}\n onChange={[onChange]}\n submitted={submitted}\n uuid={uuid()}\n >\n <BlockContent\n baseClass={baseClass}\n clientBlock={clientBlock}\n field={parentLexicalRichTextField}\n formData={formData}\n formSchema={clientBlock.fields}\n nodeKey={nodeKey}\n path={`${path}.lexical_internal_feature.blocks.${formData.blockType}`}\n schemaPath={schemaFieldsPath}\n />\n </Form>\n ) : (\n <Collapsible\n className={classNames}\n collapsibleStyle=\"default\"\n header={\n clientBlock?.admin?.components?.Label ? (\n Label\n ) : (\n <div className={`${baseClass}__block-header`}>\n <div>\n <Pill\n className={`${baseClass}__block-pill ${baseClass}__block-pill-${formData?.blockType}`}\n pillStyle=\"white\"\n >\n {clientBlock && typeof clientBlock.labels?.singular === 'string'\n ? getTranslation(clientBlock.labels.singular, i18n)\n : clientBlock?.slug}\n </Pill>\n <SectionTitle\n path=\"blockName\"\n readOnly={parentLexicalRichTextField?.admin?.readOnly || false}\n />\n </div>\n </div>\n )\n }\n key={0}\n >\n <ShimmerEffect height=\"35vh\" />\n </Collapsible>\n )\n }, [\n clientBlock,\n initialState,\n onChange,\n submitted,\n parentLexicalRichTextField,\n nodeKey,\n path,\n schemaFieldsPath,\n classNames,\n i18n,\n // DO NOT ADD FORMDATA HERE! Adding formData will kick you out of sub block editors while writing.\n ])\n\n return <div className={baseClass + ' ' + baseClass + '-' + formData.blockType}>{formContent}</div>\n}\n", "'use client'\nimport type { ClientBlock, ClientField, CollapsedPreferences, FormState } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { getTranslation } from '@payloadcms/translations'\nimport {\n Button,\n Collapsible,\n ErrorPill,\n Pill,\n RenderFields,\n SectionTitle,\n useDocumentInfo,\n useFormSubmitted,\n useTranslation,\n} from '@payloadcms/ui'\nimport { dequal } from 'dequal/lite'\nimport { $getNodeByKey } from 'lexical'\nimport React, { useCallback, useEffect } from 'react'\n\nimport type { LexicalRichTextFieldProps } from '../../../../types.js'\nimport type { BlockFields } from '../../server/nodes/BlocksNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { $isBlockNode } from '../nodes/BlocksNode.js'\nimport { FormSavePlugin } from './FormSavePlugin.js'\n\ntype Props = {\n baseClass: string\n clientBlock: ClientBlock\n field: LexicalRichTextFieldProps['field']\n formData: BlockFields\n formSchema: ClientField[]\n Label?: React.ReactNode\n nodeKey: string\n path: string\n schemaPath: string\n}\n\n// Recursively remove all undefined values from even being present in formData, as they will\n// cause isDeepEqual to return false if, for example, formData has a key that fields.data\n// does not have, even if it's undefined.\n// Currently, this happens if a block has another sub-blocks field. Inside formData, that sub-blocks field has an undefined blockName property.\n// Inside of fields.data however, that sub-blocks blockName property does not exist at all.\nfunction removeUndefinedAndNullAndEmptyArraysRecursively(obj: object) {\n for (const key in obj) {\n const value = obj[key]\n if (Array.isArray(value) && !value?.length) {\n delete obj[key]\n } else if (value && typeof value === 'object') {\n removeUndefinedAndNullAndEmptyArraysRecursively(value)\n } else if (value === undefined || value === null) {\n delete obj[key]\n }\n }\n}\n\n/**\n * The actual content of the Block. This should be INSIDE a Form component,\n * scoped to the block. All format operations in here are thus scoped to the block's form, and\n * not the whole document.\n */\nexport const BlockContent: React.FC<Props> = (props) => {\n const { baseClass, clientBlock, field, formSchema, Label, nodeKey, path, schemaPath } = props\n let { formData } = props\n const {\n fieldProps: { permissions },\n } = useEditorConfigContext()\n\n const { i18n } = useTranslation()\n const [editor] = useLexicalComposerContext()\n // Used for saving collapsed to preferences (and gettin' it from there again)\n // Remember, these preferences are scoped to the whole document, not just this form. This\n // is important to consider for the data path used in setDocFieldPreferences\n const { docPermissions, getDocPreferences, setDocFieldPreferences } = useDocumentInfo()\n\n const [isCollapsed, setIsCollapsed] = React.useState<boolean>()\n\n useEffect(() => {\n void getDocPreferences().then((currentDocPreferences) => {\n const currentFieldPreferences = currentDocPreferences?.fields[field.name]\n const collapsedArray = currentFieldPreferences?.collapsed\n setIsCollapsed(collapsedArray ? collapsedArray.includes(formData.id) : false)\n })\n }, [field.name, formData.id, getDocPreferences])\n\n const hasSubmitted = useFormSubmitted()\n\n const [errorCount, setErrorCount] = React.useState(0)\n\n const fieldHasErrors = hasSubmitted && errorCount > 0\n\n const classNames = [\n `${baseClass}__row`,\n fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`,\n ]\n .filter(Boolean)\n .join(' ')\n\n const onFormChange = useCallback(\n ({\n fullFieldsWithValues,\n newFormData,\n }: {\n fullFieldsWithValues: FormState\n newFormData: BlockFields\n }) => {\n newFormData.id = formData.id\n newFormData.blockType = formData.blockType\n\n removeUndefinedAndNullAndEmptyArraysRecursively(newFormData)\n removeUndefinedAndNullAndEmptyArraysRecursively(formData)\n\n // Only update if the data has actually changed. Otherwise, we may be triggering an unnecessary value change,\n // which would trigger the \"Leave without saving\" dialog unnecessarily\n if (!dequal(formData, newFormData)) {\n // Running this in the next tick in the meantime fixes this issue: https://github.com/payloadcms/payload/issues/4108\n // I don't know why. When this is called immediately, it might focus out of a nested lexical editor field if an update is made there.\n // My hypothesis is that the nested editor might not have fully finished its update cycle yet. By updating in the next tick, we\n // ensure that the nested editor has finished its update cycle before we update the block node.\n setTimeout(() => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey)\n if (node && $isBlockNode(node)) {\n formData = newFormData\n node.setFields(newFormData)\n }\n })\n }, 0)\n }\n\n // update error count\n if (hasSubmitted) {\n let rowErrorCount = 0\n for (const formField of Object.values(fullFieldsWithValues)) {\n if (formField?.valid === false) {\n rowErrorCount++\n }\n }\n setErrorCount(rowErrorCount)\n }\n },\n [editor, nodeKey, hasSubmitted, formData],\n )\n\n const onCollapsedChange = useCallback(\n (changedCollapsed: boolean) => {\n void getDocPreferences().then((currentDocPreferences) => {\n const currentFieldPreferences = currentDocPreferences?.fields[field.name]\n\n const collapsedArray = currentFieldPreferences?.collapsed\n\n const newCollapsed: CollapsedPreferences =\n collapsedArray && collapsedArray?.length ? collapsedArray : []\n\n if (changedCollapsed) {\n if (!newCollapsed.includes(formData.id)) {\n newCollapsed.push(formData.id)\n }\n } else {\n if (newCollapsed.includes(formData.id)) {\n newCollapsed.splice(newCollapsed.indexOf(formData.id), 1)\n }\n }\n\n setDocFieldPreferences(field.name, {\n collapsed: newCollapsed,\n hello: 'hi',\n })\n })\n },\n [getDocPreferences, field.name, setDocFieldPreferences, formData.id],\n )\n\n const removeBlock = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey)?.remove()\n })\n }, [editor, nodeKey])\n\n if (typeof isCollapsed !== 'boolean') {\n return null\n }\n\n return (\n <React.Fragment>\n <Collapsible\n className={classNames}\n collapsibleStyle={fieldHasErrors ? 'error' : 'default'}\n header={\n Label || (\n <div className={`${baseClass}__block-header`}>\n <div>\n <Pill\n className={`${baseClass}__block-pill ${baseClass}__block-pill-${formData?.blockType}`}\n pillStyle=\"white\"\n >\n {typeof clientBlock?.labels?.singular === 'string'\n ? getTranslation(clientBlock?.labels.singular, i18n)\n : clientBlock.slug}\n </Pill>\n <SectionTitle path=\"blockName\" readOnly={field?.admin?.readOnly || false} />\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n {editor.isEditable() && (\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.admin?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeBlock()\n }}\n round\n tooltip=\"Remove Block\"\n />\n )}\n </div>\n )\n }\n isCollapsed={isCollapsed}\n key={0}\n onToggle={(incomingCollapsedState) => {\n onCollapsedChange(incomingCollapsedState)\n setIsCollapsed(incomingCollapsedState)\n }}\n >\n <RenderFields\n fields={formSchema}\n forceRender={true}\n parentIndexPath=\"\"\n parentPath={''}\n parentSchemaPath=\"\"\n permissions={permissions} // TODO: Pass field permissions\n />\n </Collapsible>\n\n <FormSavePlugin onChange={onFormChange} />\n </React.Fragment>\n )\n}\n", "'use client'\nimport type { Data, FormState } from 'payload'\nimport type React from 'react'\n\nimport { useAllFormFields } from '@payloadcms/ui'\nimport { reduceFieldsToValues } from 'payload/shared'\nimport { useEffect } from 'react'\n\nimport { removeEmptyArrayValues } from './removeEmptyArrayValues.js'\n\ntype Props = {\n onChange?: ({\n fullFieldsWithValues,\n newFormData,\n }: {\n fullFieldsWithValues: FormState\n newFormData: Data\n }) => void\n}\n\nexport const FormSavePlugin: React.FC<Props> = (props) => {\n const { onChange } = props\n\n const [_fields] = useAllFormFields()\n\n const fields = removeEmptyArrayValues({ fields: _fields })\n\n // Pass in fields, and indicate if you'd like to \"unflatten\" field data.\n // The result below will reflect the data stored in the form at the given time\n const newFormData = reduceFieldsToValues(fields, true)\n\n useEffect(() => {\n if (onChange) {\n onChange({ fullFieldsWithValues: fields, newFormData })\n }\n }, [newFormData, onChange, fields])\n\n return null\n}\n", "'use client'\nimport type { FormState } from 'payload'\n\n/**\n * By default, if an array field is empty, it will be included in the form state with a value of 0.\n * We do not need this behavior here, By setting `disableFormData` to true, we can prevent the field from being included in the form state\n * like that.\n * @param fields form state\n */\nexport function removeEmptyArrayValues({ fields }: { fields: FormState }): FormState {\n for (const key in fields) {\n const field = fields[key]\n if (Array.isArray(field.rows) && 'value' in field) {\n field.disableFormData = true\n }\n }\n return fields\n}\n"],
5
+ "mappings": "gJAEA,OACEA,eAAAA,GACAC,QAAAA,GACAC,QAAAA,GACAC,gBAAAA,GACAC,iBAAAA,GACAC,mBAAAA,EACAC,oBAAAA,GACAC,sBAAAA,GACAC,kBAAAA,OACK,iBACP,OAASC,kBAAAA,MAAsB,wBAC/B,OAAgBC,eAAAA,GAAaC,aAAAA,EAAWC,WAAAA,GAASC,UAAAA,GAAQC,YAAAA,OAAgB,QAGzE,OAASC,kBAAAA,OAAsB,2BAE/B,OAASC,MAAMC,OAAY,yDChB3B,OAASC,6BAAAA,MAAiC,2CAC1C,OAASC,kBAAAA,MAAsB,2BAC/B,OACEC,UAAAA,EACAC,eAAAA,GACAC,aAAAA,GACAC,QAAAA,GACAC,gBAAAA,GACAC,gBAAAA,GACAC,mBAAAA,GACAC,oBAAAA,GACAC,kBAAAA,OACK,iBACP,OAASC,UAAAA,OAAc,cACvB,OAASC,iBAAAA,MAAqB,UAC9B,OAAOC,GAASC,eAAAA,EAAaC,aAAAA,OAAiB,QClB9C,OAAAC,KAAAC,MAAA,yBAIA,OAASC,oBAAAA,MAAwB,iBACjC,OAASC,wBAAAA,MAA4B,iBACrC,OAASC,aAAAA,MAAiB,QCGnB,SAASC,EAAuB,CAAEC,OAAAA,CAAM,EAAyB,CACtE,QAAWC,KAAOD,EAAQ,CACxB,IAAME,EAAQF,EAAOC,CAAA,EACjBE,MAAMC,QAAQF,EAAMG,IAAI,GAAK,UAAWH,IAC1CA,EAAMI,gBAAkB,GAE5B,CACA,OAAON,CACT,CDGO,IAAMO,EAAkCC,GAAA,CAAA,IAAAC,EAAAC,EAAA,CAAA,EAC7C,CAAAC,SAAAA,CAAA,EAAqBH,EAErB,CAAAI,CAAA,EAAkBC,EAAA,EAAAC,EAAAC,EAAAN,EAAA,CAAA,IAAAG,GAElBG,EAAeC,EAAA,CAAAD,OAAiCH,CAAA,CAAQ,EAIpCE,EAAAG,EAAqBF,EAAA,EAAQ,EAAAN,EAAA,CAAA,EAAAG,EAAAH,EAAA,CAAA,EAAAK,EAAAL,EAAA,CAAA,EAAAM,IAAAD,EAAAL,EAAA,CAAA,EAAAM,EAAAN,EAAA,CAAA,GAAjD,IAAAS,EAAoBJ,EAA6BK,EAAAC,EAAA,OAAAX,EAAA,CAAA,IAAAE,GAAAF,EAAA,CAAA,IAAAM,GAAAN,EAAA,CAAA,IAAAS,GAEvCC,EAAAA,IAAA,CACJR,GACFA,EAAA,CAAAU,qBAAiCN,EAAAG,YAAAA,CAAA,CAAoB,CAAA,EAEtDE,EAAA,CAACF,EAAaP,EAAUI,CAAA,EAAON,EAAA,CAAA,EAAAE,EAAAF,EAAA,CAAA,EAAAM,EAAAN,EAAA,CAAA,EAAAS,EAAAT,EAAA,CAAA,EAAAU,EAAAV,EAAA,CAAA,EAAAW,IAAAD,EAAAV,EAAA,CAAA,EAAAW,EAAAX,EAAA,CAAA,GAJlCa,EAAUH,EAIPC,CAA+B,EAAA,IAAA,EDSpC,SAASG,EAAgDC,EAAW,CAClE,QAAWC,KAAOD,EAAK,CACrB,IAAME,EAAQF,EAAIC,CAAA,EACdE,MAAMC,QAAQF,CAAA,GAAU,CAACA,GAAOG,OAClC,OAAOL,EAAIC,CAAA,EACFC,GAAS,OAAOA,GAAU,SACnCH,EAAgDG,CAAA,EAChBA,GAAU,MAC1C,OAAOF,EAAIC,CAAA,CAEf,CACF,CAOO,IAAMK,EAAiCC,GAAA,CAC5C,GAAM,CAAEC,UAAAA,EAAWC,YAAAA,EAAaC,MAAAA,EAAOC,WAAAA,EAAYC,MAAAA,EAAOC,QAAAA,EAASC,KAAAA,EAAMC,WAAAA,CAAU,EAAKR,EACpF,CAAES,SAAAA,CAAQ,EAAKT,EACb,CACJU,WAAY,CAAEC,YAAAA,CAAW,CAAE,EACzBC,EAAA,EAEE,CAAEC,KAAAA,CAAI,EAAKC,GAAA,EACX,CAACC,CAAA,EAAUC,EAAA,EAIX,CAAEC,eAAAA,EAAgBC,kBAAAA,EAAmBC,uBAAAA,CAAsB,EAAKC,GAAA,EAEhE,CAACC,EAAaC,CAAA,EAAkBC,EAAMC,SAAQ,EAEpDC,GAAU,IAAA,CACHP,EAAA,EAAoBQ,KAAMC,GAAA,CAE7B,IAAMC,EAD0BD,GAAuBE,OAAO1B,EAAM2B,IAAI,GACxBC,UAChDT,EAAeM,EAAiBA,EAAeI,SAASvB,EAASwB,EAAE,EAAI,EAAA,CACzE,CAAA,CACF,EAAG,CAAC9B,EAAM2B,KAAMrB,EAASwB,GAAIf,CAAA,CAAkB,EAE/C,IAAMgB,EAAeC,GAAA,EAEf,CAACC,EAAYC,CAAA,EAAiBd,EAAMC,SAAS,CAAA,EAE7Cc,EAAiBJ,GAAgBE,EAAa,EAE9CG,EAAa,CACjB,GAAGtC,CAAA,QACHqC,EAAiB,GAAGrC,CAAA,oBAA+B,GAAGA,CAAA,kBAA2B,EAEhFuC,OAAOC,OAAA,EACPC,KAAK,GAAA,EAEFC,EAAeC,EACnB,CAAC,CACCC,qBAAAA,EACAC,YAAAA,CAAW,IAIZ,CA0BC,GAzBAA,EAAYb,GAAKxB,EAASwB,GAC1Ba,EAAYC,UAAYtC,EAASsC,UAEjCvD,EAAgDsD,CAAA,EAChDtD,EAAgDiB,CAAA,EAI3CuC,GAAOvC,EAAUqC,CAAA,GAKpBG,WAAW,IAAA,CACTlC,EAAOmC,OAAO,IAAA,CACZ,IAAMC,EAAOC,EAAc9C,CAAA,EACvB6C,GAAQE,EAAaF,CAAA,IACvB1C,EAAWqC,EACXK,EAAKG,UAAUR,CAAA,EAEnB,CAAA,CACF,EAAG,CAAA,EAIDZ,EAAc,CAChB,IAAIqB,EAAgB,EACpB,QAAWC,KAAaC,OAAOC,OAAOb,CAAA,EAChCW,GAAWG,QAAU,IACvBJ,IAGJlB,EAAckB,CAAA,CAChB,CACF,EACA,CAACxC,EAAQT,EAAS4B,EAAczB,CAAA,CAAS,EAGrCmD,EAAoBhB,EACvBiB,GAAA,CACM3C,EAAA,EAAoBQ,KAAMC,GAAA,CAG7B,IAAMC,EAF0BD,GAAuBE,OAAO1B,EAAM2B,IAAI,GAExBC,UAE1C+B,EACJlC,GAAkBA,GAAgB9B,OAAS8B,EAAiB,CAAA,EAE1DiC,EACGC,EAAa9B,SAASvB,EAASwB,EAAE,GACpC6B,EAAaC,KAAKtD,EAASwB,EAAE,EAG3B6B,EAAa9B,SAASvB,EAASwB,EAAE,GACnC6B,EAAaE,OAAOF,EAAaG,QAAQxD,EAASwB,EAAE,EAAG,CAAA,EAI3Dd,EAAuBhB,EAAM2B,KAAM,CACjCC,UAAW+B,EACXI,MAAO,IACT,CAAA,CACF,CAAA,CACF,EACA,CAAChD,EAAmBf,EAAM2B,KAAMX,EAAwBV,EAASwB,EAAE,CAAC,EAGhEkC,EAAcvB,EAAY,IAAA,CAC9B7B,EAAOmC,OAAO,IAAA,CACZE,EAAc9C,CAAA,GAAU8D,OAAA,CAC1B,CAAA,CACF,EAAG,CAACrD,EAAQT,CAAA,CAAQ,EAEpB,OAAI,OAAOe,GAAgB,UAClB,KAIPgD,EAAC9C,EAAM+C,SAAQ,WACbC,EAACC,GAAA,CACCC,UAAWlC,EACXmC,iBAAkBpC,EAAiB,QAAU,UAC7CqC,OACEtE,GACEgE,EAAC,MAAA,CAAII,UAAW,GAAGxE,CAAA,2BACjBoE,EAAC,MAAA,WACCE,EAACK,GAAA,CACCH,UAAW,GAAGxE,CAAA,gBAAyBA,CAAA,gBAAyBQ,GAAUsC,SAAA,GAC1E8B,UAAU,iBAET,OAAO3E,GAAa4E,QAAQC,UAAa,SACtCC,EAAe9E,GAAa4E,OAAOC,SAAUlE,CAAA,EAC7CX,EAAY+E,OAElBV,EAACW,GAAA,CAAa3E,KAAK,YAAY4E,SAAUhF,GAAOiF,OAAOD,UAAY,KAClE7C,GAAkBiC,EAACc,GAAA,CAAUC,MAAOlD,EAAYvB,KAAMA,EAAM0E,YAAW,QAEzExE,EAAOyE,WAAU,GAChBjB,EAACkB,EAAA,CACCC,YAAY,aACZjB,UAAW,GAAGxE,CAAA,iBACd0F,SAAUxF,GAAOiF,OAAOD,SACxBS,KAAK,IACLC,QAAUC,GAAA,CACRA,EAAEC,eAAc,EAChB5B,EAAA,CACF,EACA6B,MAAK,GACLC,QAAQ,oBAMlB5E,YAAaA,EAEb6E,SAAWC,GAAA,CACTvC,EAAkBuC,CAAA,EAClB7E,EAAe6E,CAAA,CACjB,WAEA5B,EAAC6B,GAAA,CACCvE,OAAQzB,EACRiG,YAAa,GACbC,gBAAgB,GAChBC,WAAY,GACZC,iBAAiB,GACjB7F,YAAaA,KAZV,CAAA,EAgBP4D,EAACkC,EAAA,CAAeC,SAAU/D,MAGhC,EDjOA,IAAMgE,EAAY,gBAiBLC,GAAmCC,GAAA,CAC9C,GAAM,CAAEC,SAAAA,EAAUC,QAAAA,CAAO,EAAKF,EACxBG,EAAYC,GAAA,EACZ,CAAEC,GAAAA,EAAIC,eAAAA,EAAgBC,WAAAA,CAAU,EAAKC,EAAA,EACrC,CACJC,WAAY,CAAEC,uBAAAA,EAAwBC,MAAOC,EAA4BC,KAAAA,EAAMC,WAAAA,CAAU,CAAE,EACzFC,EAAA,EACEC,EAA6BC,GAAO,IAAIC,eAAA,EACxC,CAAEC,eAAAA,EAAgBC,kBAAAA,CAAiB,EAAKZ,EAAA,EAExC,CAAEa,aAAAA,CAAY,EAAKC,GAAA,EAEnB,CAACC,EAAcC,CAAA,EAAmBC,GAAwC,EAAA,EAE1EC,EAAmB,GAAGZ,CAAA,mDAA6Db,EAAS0B,SAAS,UAErGC,EAAgC,GAAGd,CAAA,mDAA6Db,EAAS0B,SAAS,GAQlHE,EANkBnB,EAAuB,OAG7CkB,CAAA,EACA,CAAA,EAE8BE,OAAO,CAAA,EAEjC,CAAEC,KAAAA,CAAI,EAAKC,GAAA,EAGjBC,EAAU,IAAA,CACR,IAAMC,EAAkB,IAAIhB,gBA4B5B,OAAIjB,IA1BsB,SAAA,CACxB,GAAM,CAAEkC,MAAAA,CAAK,EAAK,MAAMd,EAAa,CACnChB,GAAAA,EACAC,eAAAA,EACA8B,KAAMnC,EACNkB,eAAAA,EACAkB,eAAgB,MAAMjB,EAAA,EACtBb,WAAAA,EACA+B,UAAW,SACXC,gBAAiB,GACjBzB,WAAYY,EACZc,OAAQN,EAAgBM,MAC1B,CAAA,EAEIL,IACFA,EAAMM,UAAY,CAChBC,aAAc,GACdC,gBAAiB,GACjBC,MAAO,GACPC,MAAO5C,EAASwC,SAClB,EAEAjB,EAAgBW,CAAA,EAEpB,GAGO,EAGA,IAAA,CACLW,EAAeZ,CAAA,CACjB,CACF,EAAG,CACDb,EACAK,EACArB,EACAC,EACAC,EACAa,EACAD,CAAA,CAED,EAED,IAAM4B,EAAWC,GACf,MAAO,CAAEC,UAAWC,CAAa,IAAE,CACjCJ,EAAe9B,EAA2BmC,OAAO,EAEjD,IAAMC,EAAa,IAAIlC,gBACvBF,EAA2BmC,QAAUC,EAErC,GAAM,CAAEjB,MAAOkB,CAAY,EAAK,MAAMhC,EAAa,CACjDhB,GAAAA,EACAC,eAAAA,EACAa,eAAAA,EACAkB,eAAgB,MAAMjB,EAAA,EACtB6B,UAAWC,EACX3C,WAAAA,EACA+B,UAAW,SACXxB,WAAYY,EACZc,OAAQY,EAAWZ,MACrB,CAAA,EAEA,OAAKa,GAILA,EAAaZ,UAAY,CACvBC,aAAc,GACdC,gBAAiB,GACjBC,MAAO,GACPC,MAAO5C,EAASwC,SAClB,EAEOY,GAVEH,CAWX,EAEA,CACE7B,EACAhB,EACAC,EACAa,EACAC,EACAb,EACAmB,EACAzB,EAASwC,SAAS,CACnB,EAGHR,EAAU,IACD,IAAA,CACLa,EAAe9B,EAA2BmC,OAAO,CACnD,EACC,CAAA,CAAE,EAEL,IAAMG,EAAa,CAAC,GAAGxD,CAAA,QAAkB,GAAGA,CAAA,kBAA2B,EAAEyD,OAAOC,OAAA,EAASC,KAAK,GAAA,EAExFC,EAAQ7B,GAAa8B,OAAOC,YAAYF,MAGxCG,EAAcC,GAAQ,IACnBjC,GAAeN,IAAiB,GACrCwC,EAACC,GAAA,CACCC,aAAc,CAAClB,CAAA,EACfmB,OAAQrC,EAAYqC,OACpB3C,aAAcA,EACdwB,SAAU,CAACA,CAAA,EACX5C,UAAWA,EACXgE,KAAMA,GAAA,WAENJ,EAACK,EAAA,CACCtE,UAAWA,EACX+B,YAAaA,EACblB,MAAOC,EACPX,SAAUA,EACVoE,WAAYxC,EAAYqC,OACxBhE,QAASA,EACTW,KAAM,GAAGA,CAAA,oCAAwCZ,EAAS0B,SAAS,GACnEb,WAAYY,MAIhBqC,EAACO,GAAA,CACCC,UAAWjB,EACXkB,iBAAiB,UACjBC,OACE5C,GAAa8B,OAAOC,YAAYF,MAC9BA,EAEAK,EAAC,MAAA,CAAIQ,UAAW,GAAGzE,CAAA,0BACjB4E,GAAC,MAAA,WACCX,EAACY,GAAA,CACCJ,UAAW,GAAGzE,CAAA,gBAAyBA,CAAA,gBAAyBG,GAAU0B,SAAA,GAC1EiD,UAAU,iBAET/C,GAAe,OAAOA,EAAYgD,QAAQC,UAAa,SACpDC,GAAelD,EAAYgD,OAAOC,SAAU/C,CAAA,EAC5CF,GAAamD,OAEnBjB,EAACkB,GAAA,CACCpE,KAAK,YACLqE,SAAUtE,GAA4B+C,OAAOuB,UAAY,mBAQnEnB,EAACoB,GAAA,CAAcC,OAAO,UAFjB,CAAA,EAKR,CACDvD,EACAN,EACAwB,EACA5C,EACAS,EACAV,EACAW,EACAa,EACA4B,EACAvB,CAAA,CAED,EAED,OAAOgC,EAAC,MAAA,CAAIQ,UAAWzE,EAAY,IAAMA,EAAY,IAAMG,EAAS0B,mBAAYkC,GAClF",
6
+ "names": ["Collapsible", "Form", "Pill", "SectionTitle", "ShimmerEffect", "useDocumentInfo", "useFormSubmitted", "useServerFunctions", "useTranslation", "abortAndIgnore", "useCallback", "useEffect", "useMemo", "useRef", "useState", "getTranslation", "v4", "uuid", "useLexicalComposerContext", "getTranslation", "Button", "Collapsible", "ErrorPill", "Pill", "RenderFields", "SectionTitle", "useDocumentInfo", "useFormSubmitted", "useTranslation", "dequal", "$getNodeByKey", "React", "useCallback", "useEffect", "c", "_c", "useAllFormFields", "reduceFieldsToValues", "useEffect", "removeEmptyArrayValues", "fields", "key", "field", "Array", "isArray", "rows", "disableFormData", "FormSavePlugin", "props", "$", "_c", "onChange", "_fields", "useAllFormFields", "t0", "fields", "removeEmptyArrayValues", "reduceFieldsToValues", "newFormData", "t1", "t2", "fullFieldsWithValues", "useEffect", "removeUndefinedAndNullAndEmptyArraysRecursively", "obj", "key", "value", "Array", "isArray", "length", "BlockContent", "props", "baseClass", "clientBlock", "field", "formSchema", "Label", "nodeKey", "path", "schemaPath", "formData", "fieldProps", "permissions", "useEditorConfigContext", "i18n", "useTranslation", "editor", "useLexicalComposerContext", "docPermissions", "getDocPreferences", "setDocFieldPreferences", "useDocumentInfo", "isCollapsed", "setIsCollapsed", "React", "useState", "useEffect", "then", "currentDocPreferences", "collapsedArray", "fields", "name", "collapsed", "includes", "id", "hasSubmitted", "useFormSubmitted", "errorCount", "setErrorCount", "fieldHasErrors", "classNames", "filter", "Boolean", "join", "onFormChange", "useCallback", "fullFieldsWithValues", "newFormData", "blockType", "dequal", "setTimeout", "update", "node", "$getNodeByKey", "$isBlockNode", "setFields", "rowErrorCount", "formField", "Object", "values", "valid", "onCollapsedChange", "changedCollapsed", "newCollapsed", "push", "splice", "indexOf", "hello", "removeBlock", "remove", "_jsxs", "Fragment", "_jsx", "Collapsible", "className", "collapsibleStyle", "header", "Pill", "pillStyle", "labels", "singular", "getTranslation", "slug", "SectionTitle", "readOnly", "admin", "ErrorPill", "count", "withMessage", "isEditable", "Button", "buttonStyle", "disabled", "icon", "onClick", "e", "preventDefault", "round", "tooltip", "onToggle", "incomingCollapsedState", "RenderFields", "forceRender", "parentIndexPath", "parentPath", "parentSchemaPath", "FormSavePlugin", "onChange", "baseClass", "BlockComponent", "props", "formData", "nodeKey", "submitted", "useFormSubmitted", "id", "collectionSlug", "globalSlug", "useDocumentInfo", "fieldProps", "featureClientSchemaMap", "field", "parentLexicalRichTextField", "path", "schemaPath", "useEditorConfigContext", "onChangeAbortControllerRef", "useRef", "AbortController", "docPermissions", "getDocPreferences", "getFormState", "useServerFunctions", "initialState", "setInitialState", "useState", "schemaFieldsPath", "blockType", "componentMapRenderedBlockPath", "clientBlock", "blocks", "i18n", "useTranslation", "useEffect", "abortController", "state", "data", "docPreferences", "operation", "renderAllFields", "signal", "blockName", "initialValue", "passesCondition", "valid", "value", "abortAndIgnore", "onChange", "useCallback", "formState", "prevFormState", "current", "controller", "newFormState", "classNames", "filter", "Boolean", "join", "Label", "admin", "components", "formContent", "useMemo", "_jsx", "Form", "beforeSubmit", "fields", "uuid", "BlockContent", "formSchema", "Collapsible", "className", "collapsibleStyle", "header", "_jsxs", "Pill", "pillStyle", "labels", "singular", "getTranslation", "slug", "SectionTitle", "readOnly", "ShimmerEffect", "height"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{c as x,f as M}from"./chunk-YGRKYSDC.js";import{b as E}from"./chunk-CUIBIFW2.js";import{jsx as u,jsxs as S}from"react/jsx-runtime";import{useCallback as f,useEffect as R,useRef as A}from"react";import{useLexicalComposerContext as I}from"@lexical/react/LexicalComposerContext";import{useLexicalNodeSelection as K}from"@lexical/react/useLexicalNodeSelection";import{mergeRegister as P}from"@lexical/utils";import{getTranslation as h}from"@payloadcms/translations";import{Button as v,useTranslation as T}from"@payloadcms/ui";import{$getNodeByKey as j,$getSelection as Y,$isNodeSelection as z,CLICK_COMMAND as F,COMMAND_PRIORITY_LOW as p,KEY_BACKSPACE_COMMAND as W,KEY_DELETE_COMMAND as q}from"lexical";var l="inline-block",ie=D=>{let{formData:r,nodeKey:n}=D,[e]=I(),{i18n:b,t:C}=T(),{fieldProps:{featureClientSchemaMap:$,readOnly:k,schemaPath:y}}=E(),a=A(null),[o,c,m]=K(n),O=`${y}.lexical_internal_feature.blocks.lexical_inline_blocks.${r.blockType}`,i=$.blocks[O][0].blocks[0],L=f(()=>{e.update(()=>{j(n)?.remove()})},[e,n]),d=f(s=>{let t=Y();return o&&z(t)&&(s.preventDefault(),e.update(()=>{t.getNodes().forEach(B=>{M(B)&&B.remove()})})),!1},[e,o]),_=f(s=>{let t=s;return t.target===a.current||a.current?.contains(t.target)?(t.shiftKey?c(!o):o||(m(),c(!0)),!0):!1},[o,c,m]);R(()=>P(e.registerCommand(F,_,p),e.registerCommand(q,d,p),e.registerCommand(W,d,p)),[m,e,o,n,d,c,_]);let N=i?.labels?.singular?h(i.labels.singular,b):i?.slug,g=i?.admin?.components?.Label;return S("div",{className:[l,l+"-"+r.blockType,o&&`${l}--selected`].filter(Boolean).join(" "),ref:a,children:[g||u("div",{children:h(i.labels.singular,b)}),e.isEditable()&&S("div",{className:`${l}__actions`,children:[u(v,{buttonStyle:"icon-label",className:`${l}__editButton`,disabled:k,el:"div",icon:"edit",onClick:()=>{e.dispatchCommand(x,{fields:r,nodeKey:n})},round:!0,size:"small",tooltip:C("lexical:blocks:inlineBlocks:edit",{label:N})}),u(v,{buttonStyle:"icon-label",className:`${l}__removeButton`,disabled:k,icon:"x",onClick:s=>{s.preventDefault(),L()},round:!0,size:"small",tooltip:C("lexical:blocks:inlineBlocks:remove",{label:N})})]})]})};export{ie as InlineBlockComponent};
2
+ //# sourceMappingURL=componentInline-6RPSMLNJ.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/blocks/client/componentInline/index.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport React, { useCallback, useEffect, useRef } from 'react'\nconst baseClass = 'inline-block'\n\nimport type { BlocksFieldClient } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\nimport { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection'\nimport { mergeRegister } from '@lexical/utils'\nimport { getTranslation } from '@payloadcms/translations'\nimport { Button, useTranslation } from '@payloadcms/ui'\nimport {\n $getNodeByKey,\n $getSelection,\n $isNodeSelection,\n CLICK_COMMAND,\n COMMAND_PRIORITY_LOW,\n KEY_BACKSPACE_COMMAND,\n KEY_DELETE_COMMAND,\n} from 'lexical'\n\nimport type { InlineBlockFields } from '../nodes/InlineBlocksNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { $isInlineBlockNode } from '../nodes/InlineBlocksNode.js'\nimport { OPEN_INLINE_BLOCK_DRAWER_COMMAND } from '../plugin/commands.js'\nimport './index.scss'\n\ntype Props = {\n readonly formData: InlineBlockFields\n readonly nodeKey: string\n}\n\nexport const InlineBlockComponent: React.FC<Props> = (props) => {\n const { formData, nodeKey } = props\n const [editor] = useLexicalComposerContext()\n const { i18n, t } = useTranslation<object, string>()\n const {\n fieldProps: { featureClientSchemaMap, readOnly, schemaPath },\n } = useEditorConfigContext()\n const inlineBlockElemElemRef = useRef<HTMLDivElement | null>(null)\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n\n const componentMapRenderedBlockPath = `${schemaPath}.lexical_internal_feature.blocks.lexical_inline_blocks.${formData.blockType}`\n\n const clientSchemaMap = featureClientSchemaMap['blocks']\n\n const blocksField: BlocksFieldClient = clientSchemaMap[\n componentMapRenderedBlockPath\n ][0] as BlocksFieldClient\n\n const clientBlock = blocksField.blocks[0]\n\n const removeInlineBlock = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey)?.remove()\n })\n }, [editor, nodeKey])\n\n const $onDelete = useCallback(\n (event: KeyboardEvent) => {\n const deleteSelection = $getSelection()\n if (isSelected && $isNodeSelection(deleteSelection)) {\n event.preventDefault()\n editor.update(() => {\n deleteSelection.getNodes().forEach((node) => {\n if ($isInlineBlockNode(node)) {\n node.remove()\n }\n })\n })\n }\n return false\n },\n [editor, isSelected],\n )\n const onClick = useCallback(\n (payload: MouseEvent) => {\n const event = payload\n // Check if inlineBlockElemElemRef.target or anything WITHIN inlineBlockElemElemRef.target was clicked\n if (\n event.target === inlineBlockElemElemRef.current ||\n inlineBlockElemElemRef.current?.contains(event.target as Node)\n ) {\n if (event.shiftKey) {\n setSelected(!isSelected)\n } else {\n if (!isSelected) {\n clearSelection()\n setSelected(true)\n }\n }\n return true\n }\n\n return false\n },\n [isSelected, setSelected, clearSelection],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<MouseEvent>(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW),\n\n editor.registerCommand(KEY_DELETE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n editor.registerCommand(KEY_BACKSPACE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n )\n }, [clearSelection, editor, isSelected, nodeKey, $onDelete, setSelected, onClick])\n\n const blockDisplayName = clientBlock?.labels?.singular\n ? getTranslation(clientBlock.labels.singular, i18n)\n : clientBlock?.slug\n\n const Label = clientBlock?.admin?.components?.Label\n\n return (\n <div\n className={[\n baseClass,\n baseClass + '-' + formData.blockType,\n isSelected && `${baseClass}--selected`,\n ]\n .filter(Boolean)\n .join(' ')}\n ref={inlineBlockElemElemRef}\n >\n {Label ? Label : <div>{getTranslation(clientBlock.labels!.singular, i18n)}</div>}\n {editor.isEditable() && (\n <div className={`${baseClass}__actions`}>\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__editButton`}\n disabled={readOnly}\n el=\"div\"\n icon=\"edit\"\n onClick={() => {\n editor.dispatchCommand(OPEN_INLINE_BLOCK_DRAWER_COMMAND, {\n fields: formData,\n nodeKey,\n })\n }}\n round\n size=\"small\"\n tooltip={t('lexical:blocks:inlineBlocks:edit', { label: blockDisplayName })}\n />\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeInlineBlock()\n }}\n round\n size=\"small\"\n tooltip={t('lexical:blocks:inlineBlocks:remove', { label: blockDisplayName })}\n />\n </div>\n )}\n </div>\n )\n}\n"],
5
+ "mappings": "sJAEA,OAAgBA,eAAAA,EAAaC,aAAAA,EAAWC,UAAAA,MAAc,QAKtD,OAASC,6BAAAA,MAAiC,wCAC1C,OAASC,2BAAAA,MAA+B,yCACxC,OAASC,iBAAAA,MAAqB,iBAC9B,OAASC,kBAAAA,MAAsB,2BAC/B,OAASC,UAAAA,EAAQC,kBAAAA,MAAsB,iBACvC,OACEC,iBAAAA,EACAC,iBAAAA,EACAC,oBAAAA,EACAC,iBAAAA,EACAC,wBAAAA,EACAC,yBAAAA,EACAC,sBAAAA,MACK,UAjBP,IAAMC,EAAY,eA+BLC,GAAyCC,GAAA,CACpD,GAAM,CAAEC,SAAAA,EAAUC,QAAAA,CAAO,EAAKF,EACxB,CAACG,CAAA,EAAUC,EAAA,EACX,CAAEC,KAAAA,EAAMC,EAAAA,CAAC,EAAKC,EAAA,EACd,CACJC,WAAY,CAAEC,uBAAAA,EAAwBC,SAAAA,EAAUC,WAAAA,CAAU,CAAE,EAC1DC,EAAA,EACEC,EAAyBC,EAA8B,IAAA,EACvD,CAACC,EAAYC,EAAaC,CAAA,EAAkBC,EAAwBhB,CAAA,EAEpEiB,EAAgC,GAAGR,CAAA,0DAAoEV,EAASmB,SAAS,GAQzHC,EANkBZ,EAAuB,OAG7CU,CAAA,EACA,CAAA,EAE8BG,OAAO,CAAA,EAEjCC,EAAoBC,EAAY,IAAA,CACpCrB,EAAOsB,OAAO,IAAA,CACZC,EAAcxB,CAAA,GAAUyB,OAAA,CAC1B,CAAA,CACF,EAAG,CAACxB,EAAQD,CAAA,CAAQ,EAEd0B,EAAYJ,EACfK,GAAA,CACC,IAAMC,EAAkBC,EAAA,EACxB,OAAIhB,GAAciB,EAAiBF,CAAA,IACjCD,EAAMI,eAAc,EACpB9B,EAAOsB,OAAO,IAAA,CACZK,EAAgBI,SAAQ,EAAGC,QAASC,GAAA,CAC9BC,EAAmBD,CAAA,GACrBA,EAAKT,OAAM,CAEf,CAAA,CACF,CAAA,GAEK,EACT,EACA,CAACxB,EAAQY,CAAA,CAAW,EAEhBuB,EAAUd,EACbe,GAAA,CACC,IAAMV,EAAQU,EAEd,OACEV,EAAMW,SAAW3B,EAAuB4B,SACxC5B,EAAuB4B,SAASC,SAASb,EAAMW,MAAM,GAEjDX,EAAMc,SACR3B,EAAY,CAACD,CAAA,EAERA,IACHE,EAAA,EACAD,EAAY,EAAA,GAGT,IAGF,EACT,EACA,CAACD,EAAYC,EAAaC,CAAA,CAAe,EAG3C2B,EAAU,IACDC,EACL1C,EAAO2C,gBAA4BC,EAAeT,EAASU,CAAA,EAE3D7C,EAAO2C,gBAAgBG,EAAoBrB,EAAWoB,CAAA,EACtD7C,EAAO2C,gBAAgBI,EAAuBtB,EAAWoB,CAAA,CAAA,EAE1D,CAAC/B,EAAgBd,EAAQY,EAAYb,EAAS0B,EAAWZ,EAAasB,CAAA,CAAQ,EAEjF,IAAMa,EAAmB9B,GAAa+B,QAAQC,SAC1CC,EAAejC,EAAY+B,OAAOC,SAAUhD,CAAA,EAC5CgB,GAAakC,KAEXC,EAAQnC,GAAaoC,OAAOC,YAAYF,MAE9C,OACEG,EAAC,MAAA,CACCC,UAAW,CACT9D,EACAA,EAAY,IAAMG,EAASmB,UAC3BL,GAAc,GAAGjB,CAAA,YAAqB,EAErC+D,OAAOC,OAAA,EACPC,KAAK,GAAA,EACRC,IAAKnD,YAEJ2C,GAAgBS,EAAC,MAAA,UAAKX,EAAejC,EAAY+B,OAAQC,SAAUhD,CAAA,IACnEF,EAAO+D,WAAU,GAChBP,EAAC,MAAA,CAAIC,UAAW,GAAG9D,CAAA,sBACjBmE,EAACE,EAAA,CACCC,YAAY,aACZR,UAAW,GAAG9D,CAAA,eACduE,SAAU3D,EACV4D,GAAG,MACHC,KAAK,OACLjC,QAASA,IAAA,CACPnC,EAAOqE,gBAAgBC,EAAkC,CACvDC,OAAQzE,EACRC,QAAAA,CACF,CAAA,CACF,EACAyE,MAAK,GACLC,KAAK,QACLC,QAASvE,EAAE,mCAAoC,CAAEwE,MAAO3B,CAAiB,CAAA,IAE3Ec,EAACE,EAAA,CACCC,YAAY,aACZR,UAAW,GAAG9D,CAAA,iBACduE,SAAU3D,EACV6D,KAAK,IACLjC,QAAUyC,GAAA,CACRA,EAAE9C,eAAc,EAChBV,EAAA,CACF,EACAoD,MAAK,GACLC,KAAK,QACLC,QAASvE,EAAE,qCAAsC,CAAEwE,MAAO3B,CAAiB,CAAA,SAMvF",
6
+ "names": ["useCallback", "useEffect", "useRef", "useLexicalComposerContext", "useLexicalNodeSelection", "mergeRegister", "getTranslation", "Button", "useTranslation", "$getNodeByKey", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "baseClass", "InlineBlockComponent", "props", "formData", "nodeKey", "editor", "useLexicalComposerContext", "i18n", "t", "useTranslation", "fieldProps", "featureClientSchemaMap", "readOnly", "schemaPath", "useEditorConfigContext", "inlineBlockElemElemRef", "useRef", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "componentMapRenderedBlockPath", "blockType", "clientBlock", "blocks", "removeInlineBlock", "useCallback", "update", "$getNodeByKey", "remove", "$onDelete", "event", "deleteSelection", "$getSelection", "$isNodeSelection", "preventDefault", "getNodes", "forEach", "node", "$isInlineBlockNode", "onClick", "payload", "target", "current", "contains", "shiftKey", "useEffect", "mergeRegister", "registerCommand", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "blockDisplayName", "labels", "singular", "getTranslation", "slug", "Label", "admin", "components", "_jsxs", "className", "filter", "Boolean", "join", "ref", "_jsx", "isEditable", "Button", "buttonStyle", "disabled", "el", "icon", "dispatchCommand", "OPEN_INLINE_BLOCK_DRAWER_COMMAND", "fields", "round", "size", "tooltip", "label", "e"]
7
+ }
@@ -0,0 +1,61 @@
1
+ export { slashMenuBasicGroupWithItems } from '../../features/shared/slashMenu/basicGroup.js';
2
+ export { AlignFeatureClient } from '../../features/align/client/index.js';
3
+ export { BlockquoteFeatureClient } from '../../features/blockquote/client/index.js';
4
+ export { BlocksFeatureClient } from '../../features/blocks/client/index.js';
5
+ export { TestRecorderFeatureClient } from '../../features/debug/testRecorder/client/index.js';
6
+ export { TreeViewFeatureClient } from '../../features/debug/treeView/client/index.js';
7
+ export { BoldFeatureClient } from '../../features/format/bold/feature.client.js';
8
+ export { InlineCodeFeatureClient } from '../../features/format/inlineCode/feature.client.js';
9
+ export { ItalicFeatureClient } from '../../features/format/italic/feature.client.js';
10
+ export { StrikethroughFeatureClient } from '../../features/format/strikethrough/feature.client.js';
11
+ export { SubscriptFeatureClient } from '../../features/format/subscript/feature.client.js';
12
+ export { SuperscriptFeatureClient } from '../../features/format/superscript/feature.client.js';
13
+ export { UnderlineFeatureClient } from '../../features/format/underline/feature.client.js';
14
+ export { HeadingFeatureClient } from '../../features/heading/client/index.js';
15
+ export { HorizontalRuleFeatureClient } from '../../features/horizontalRule/client/index.js';
16
+ export { IndentFeatureClient } from '../../features/indent/client/index.js';
17
+ export { LinkFeatureClient } from '../../features/link/client/index.js';
18
+ export { ChecklistFeatureClient } from '../../features/lists/checklist/client/index.js';
19
+ export { OrderedListFeatureClient } from '../../features/lists/orderedList/client/index.js';
20
+ export { UnorderedListFeatureClient } from '../../features/lists/unorderedList/client/index.js';
21
+ export { LexicalPluginToLexicalFeatureClient } from '../../features/migrations/lexicalPluginToLexical/feature.client.js';
22
+ export { SlateToLexicalFeatureClient } from '../../features/migrations/slateToLexical/feature.client.js';
23
+ export { ParagraphFeatureClient } from '../../features/paragraph/client/index.js';
24
+ export { RelationshipFeatureClient } from '../../features/relationship/client/index.js';
25
+ export { toolbarFormatGroupWithItems } from '../../features/format/shared/toolbarFormatGroup.js';
26
+ export { toolbarAddDropdownGroupWithItems } from '../../features/shared/toolbar/addDropdownGroup.js';
27
+ export { toolbarFeatureButtonsGroupWithItems } from '../../features/shared/toolbar/featureButtonsGroup.js';
28
+ export { toolbarTextDropdownGroupWithItems } from '../../features/shared/toolbar/textDropdownGroup.js';
29
+ export { FixedToolbarFeatureClient } from '../../features/toolbars/fixed/client/index.js';
30
+ export { InlineToolbarFeatureClient } from '../../features/toolbars/inline/client/index.js';
31
+ export { ToolbarButton } from '../../features/toolbars/shared/ToolbarButton/index.js';
32
+ export { TableFeatureClient } from '../../features/experimental_table/client/index.js';
33
+ export { ToolbarDropdown } from '../../features/toolbars/shared/ToolbarDropdown/index.js';
34
+ export { UploadFeatureClient } from '../../features/upload/client/feature.client.js';
35
+ export { RichTextField } from '../../field/index.js';
36
+ export { EditorConfigProvider, useEditorConfigContext, } from '../../lexical/config/client/EditorConfigProvider.js';
37
+ export { defaultEditorLexicalConfig } from '../../lexical/config/client/default.js';
38
+ export { sanitizeClientEditorConfig, sanitizeClientFeatures, } from '../../lexical/config/client/sanitize.js';
39
+ export { CAN_USE_DOM } from '../../lexical/utils/canUseDOM.js';
40
+ export { getDOMRangeRect } from '../../lexical/utils/getDOMRangeRect.js';
41
+ export { getSelectedNode } from '../../lexical/utils/getSelectedNode.js';
42
+ export { isHTMLElement } from '../../lexical/utils/guard.js';
43
+ export { joinClasses } from '../../lexical/utils/joinClasses.js';
44
+ export { createBlockNode } from '../../lexical/utils/markdown/createBlockNode.js';
45
+ export { isPoint, Point } from '../../lexical/utils/point.js';
46
+ export { Rect } from '../../lexical/utils/rect.js';
47
+ export { setFloatingElemPosition } from '../../lexical/utils/setFloatingElemPosition.js';
48
+ export { setFloatingElemPositionForLinkEditor } from '../../lexical/utils/setFloatingElemPositionForLinkEditor.js';
49
+ export { addSwipeDownListener, addSwipeLeftListener, addSwipeRightListener, addSwipeUpListener, } from '../../lexical/utils/swipe.js';
50
+ export { createClientFeature } from '../../utilities/createClientFeature.js';
51
+ export { DETAIL_TYPE_TO_DETAIL, DOUBLE_LINE_BREAK, ELEMENT_FORMAT_TO_TYPE, ELEMENT_TYPE_TO_FORMAT, IS_ALL_FORMATTING, LTR_REGEX, NodeFormat, NON_BREAKING_SPACE, RTL_REGEX, TEXT_MODE_TO_TYPE, TEXT_TYPE_TO_FORMAT, TEXT_TYPE_TO_MODE, } from '../../lexical/utils/nodeFormat.js';
52
+ export { ENABLE_SLASH_MENU_COMMAND } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js';
53
+ export { getEnabledNodes } from '../../lexical/nodes/index.js';
54
+ export { $createUploadNode, $isUploadNode, UploadNode, } from '../../features/upload/client/nodes/UploadNode.js';
55
+ export { $createRelationshipNode, $isRelationshipNode, RelationshipNode, } from '../../features/relationship/client/nodes/RelationshipNode.js';
56
+ export { $createLinkNode, $isLinkNode, LinkNode, TOGGLE_LINK_COMMAND, } from '../../features/link/nodes/LinkNode.js';
57
+ export { $createAutoLinkNode, $isAutoLinkNode, AutoLinkNode, } from '../../features/link/nodes/AutoLinkNode.js';
58
+ export { $createBlockNode, $isBlockNode, BlockNode, } from '../../features/blocks/client/nodes/BlocksNode.js';
59
+ export { $createInlineBlockNode, $isInlineBlockNode, InlineBlockNode, } from '../../features/blocks/client/nodes/InlineBlocksNode.js';
60
+ export { FieldsDrawer } from '../../utilities/fieldsDrawer/Drawer.js';
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/client/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAA;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAA;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAA;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAA;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAA;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAA;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAA;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAA;AAC/F,OAAO,EAAE,mCAAmC,EAAE,MAAM,oEAAoE,CAAA;AACxH,OAAO,EAAE,2BAA2B,EAAE,MAAM,4DAA4D,CAAA;AACxG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAA;AAEjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AAEvF,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAA;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAA;AACpG,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAA;AAC1G,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAA;AACtG,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAA;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAA;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAA;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAA;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AAEpF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAA;AAEnF,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAA;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6DAA6D,CAAA;AAElH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAE5E,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAA;AAE/G,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9D,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,UAAU,GACX,MAAM,kDAAkD,CAAA;AAEzD,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,eAAe,EACf,WAAW,EACX,QAAQ,EACR,mBAAmB,GACpB,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,YAAY,GACb,MAAM,2CAA2C,CAAA;AAElD,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,SAAS,GACV,MAAM,kDAAkD,CAAA;AAEzD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,GAChB,MAAM,wDAAwD,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA"}
@@ -0,0 +1,38 @@
1
+ "use client";import{a as Z,b as _l,c as Tl,d as El,f as wl,h as Nl,i as kl}from"./chunk-OOBB5GCO.js";import{a as Ie,b as vt,c as bl}from"./chunk-AE5XKHR4.js";import{a as Re,b as At,c as Se,d as Dt,e as Ot,f as Ft}from"./chunk-YGRKYSDC.js";import{a as ye,b as Ye,c as Xe,d as Je}from"./chunk-XCEM47RI.js";import{a as Me,b as ve,c as Ae,d as $t}from"./chunk-MI5HS4QX.js";import{a as de,b as xe,c as qe,d as De,e as Oe,f as Fe,g as Pt}from"./chunk-XDEGE6I5.js";import{a as xl,b as B}from"./chunk-CUIBIFW2.js";function U(t){return{items:t,key:"basic",label:({i18n:e})=>e.t("lexical:general:slashMenuBasicGroupLabel")}}import{$isElementNode as le,$isRangeSelection as et,FORMAT_ELEMENT_COMMAND as tt}from"lexical";import{jsx as Ht,jsxs as Ll}from"react/jsx-runtime";import"react";var Bo=()=>Ll("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ht("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ht("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ht("path",{d:"M5 15H15",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as Bt,jsxs as Il}from"react/jsx-runtime";import"react";var jo=()=>Il("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Bt("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Bt("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Bt("path",{d:"M2.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as jt,jsxs as Rl}from"react/jsx-runtime";import"react";var Qe=()=>Rl("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[jt("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),jt("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),jt("path",{d:"M2.5 15H12.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as Gt,jsxs as Sl}from"react/jsx-runtime";import"react";var Go=()=>Sl("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Gt("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Gt("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Gt("path",{d:"M7.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"})]});var y=t=>o=>{let n={clientFeatureProps:o};if(typeof t=="function")n.feature=({featureProviderMap:r,resolvedFeatures:i,unSanitizedEditorConfig:l})=>{let s=t({featureProviderMap:r,props:o,resolvedFeatures:i,unSanitizedEditorConfig:l});return s.sanitizedClientFeatureProps===null&&(s.sanitizedClientFeatureProps=o),s};else{let r={...t};r.sanitizedClientFeatureProps=o,n.feature=r}return n};var Uo=t=>({type:"dropdown",ChildComponent:Qe,items:t,key:"align",order:30});var Wo=[Uo([{ChildComponent:Qe,isActive:({selection:t})=>{if(!et(t))return!1;for(let e of t.getNodes()){if(le(e)&&e.getFormatType()==="left")continue;let o=e.getParent();if(!(le(o)&&o.getFormatType()==="left"))return!1}return!0},key:"alignLeft",label:({i18n:t})=>t.t("lexical:align:alignLeftLabel"),onSelect:({editor:t})=>{t.dispatchCommand(tt,"left")},order:1},{ChildComponent:Bo,isActive:({selection:t})=>{if(!et(t))return!1;for(let e of t.getNodes()){if(le(e)&&e.getFormatType()==="center")continue;let o=e.getParent();if(!(le(o)&&o.getFormatType()==="center"))return!1}return!0},key:"alignCenter",label:({i18n:t})=>t.t("lexical:align:alignCenterLabel"),onSelect:({editor:t})=>{t.dispatchCommand(tt,"center")},order:2},{ChildComponent:Go,isActive:({selection:t})=>{if(!et(t))return!1;for(let e of t.getNodes()){if(le(e)&&e.getFormatType()==="right")continue;let o=e.getParent();if(!(le(o)&&o.getFormatType()==="right"))return!1}return!0},key:"alignRight",label:({i18n:t})=>t.t("lexical:align:alignRightLabel"),onSelect:({editor:t})=>{t.dispatchCommand(tt,"right")},order:3},{ChildComponent:jo,isActive:({selection:t})=>{if(!et(t))return!1;for(let e of t.getNodes()){if(le(e)&&e.getFormatType()==="justify")continue;let o=e.getParent();if(!(le(o)&&o.getFormatType()==="justify"))return!1}return!0},key:"alignJustify",label:({i18n:t})=>t.t("lexical:align:alignJustifyLabel"),onSelect:({editor:t})=>{t.dispatchCommand(tt,"justify")},order:4}])],yl=y({toolbarFixed:{groups:Wo},toolbarInline:{groups:Wo}});import{$createQuoteNode as Jo,$isQuoteNode as Yo,QuoteNode as Dl}from"@lexical/rich-text";import{$setBlocksType as qo}from"@lexical/selection";import{$getSelection as Qo,$isRangeSelection as Ol}from"lexical";import{jsx as Vo}from"react/jsx-runtime";import"react";var Ut=()=>Vo("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Vo("path",{d:"M13.5353 10.5725C13.5353 9.47709 11.0456 9.99991 11.0456 7.85883C11.0456 6.46464 12.1162 5.61816 13.361 5.61816C14.805 5.61816 16 6.86298 16 8.92937C16 11.2945 14.4564 13.7841 11.1203 14.3816L10.8216 13.1368C12.888 12.4895 13.5353 11.4937 13.5353 10.5725ZM6.71369 10.5725C6.71369 9.47709 4.22407 9.99991 4.22407 7.85883C4.22407 6.46464 5.29461 5.61816 6.53942 5.61816C7.9834 5.61816 9.17842 6.86298 9.17842 8.92937C9.17842 11.2945 7.63485 13.7841 4.29876 14.3816L4 13.1368C6.06639 12.4895 6.71369 11.4937 6.71369 10.5725Z",fill:"currentColor"})});import{jsx as Ko}from"react/jsx-runtime";import"react";var $e=()=>Ko("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Ko("path",{d:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})});var V=t=>({type:"dropdown",ChildComponent:$e,items:t,key:"text",order:25});import{$createQuoteNode as Ml,$isQuoteNode as zo,QuoteNode as vl}from"@lexical/rich-text";import{$createLineBreakNode as Al}from"lexical";var Zo={type:"element",dependencies:[vl],export:(t,e)=>{if(!zo(t))return null;let o=e(t).split(`
2
+ `),n=[];for(let r of o)n.push("> "+r);return n.join(`
3
+ `)},regExp:/^>\s/,replace:(t,e,o,n)=>{if(n){let i=t.getPreviousSibling();if(zo(i)){i.splice(i.getChildrenSize(),0,[Al(),...e]),i.select(0,0),t.remove();return}}let r=Ml();r.append(...e),t.replace(r),r.select(0,0)}};var Xo=[V([{ChildComponent:Ut,isActive:({selection:t})=>{if(!Ol(t))return!1;for(let e of t.getNodes())if(!Yo(e)&&!Yo(e.getParent()))return!1;return!0},key:"blockquote",label:({i18n:t})=>t.t("lexical:blockquote:label"),onSelect:({editor:t})=>{t.update(()=>{let e=Qo();qo(e,()=>Jo())})},order:20}])],Fl=y({markdownTransformers:[Zo],nodes:[Dl],slashMenu:{groups:[U([{Icon:Ut,key:"blockquote",keywords:["quote","blockquote"],label:({i18n:t})=>t.t("lexical:blockquote:label"),onSelect:({editor:t})=>{t.update(()=>{let e=Qo();qo(e,()=>Jo())})}}])]},toolbarFixed:{groups:Xo},toolbarInline:{groups:Xo}});import{getTranslation as nt}from"@payloadcms/translations";import{jsx as Wt,jsxs as $l}from"react/jsx-runtime";import"react";var ot=()=>$l("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Wt("rect",{height:"4",rx:"0.5",stroke:"currentColor",width:"4",x:"8",y:"5"}),Wt("rect",{height:"4",rx:"0.5",stroke:"currentColor",width:"4",x:"5",y:"11"}),Wt("rect",{height:"4",rx:"0.5",stroke:"currentColor",width:"4",x:"11",y:"11"})]});import{jsx as er}from"react/jsx-runtime";import"react";var rt=()=>er("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:er("path",{clipRule:"evenodd",d:"M5.33333 6.5C5.11232 6.5 4.90036 6.5878 4.74408 6.74408C4.5878 6.90036 4.5 7.11232 4.5 7.33333V12.1667C4.5 12.3877 4.5878 12.5996 4.74408 12.7559C4.90036 12.9122 5.11232 13 5.33333 13H14.6667C14.8877 13 15.0996 12.9122 15.2559 12.7559C15.4122 12.5996 15.5 12.3877 15.5 12.1667V11.6667C15.5 11.3905 15.7239 11.1667 16 11.1667C16.2761 11.1667 16.5 11.3905 16.5 11.6667V12.1667C16.5 12.6529 16.3068 13.1192 15.963 13.463C15.6192 13.8068 15.1529 14 14.6667 14H5.33333C4.8471 14 4.38079 13.8068 4.03697 13.463C3.69315 13.1192 3.5 12.6529 3.5 12.1667V7.33333C3.5 6.8471 3.69315 6.38079 4.03697 6.03697C4.38079 5.69315 4.8471 5.5 5.33333 5.5H10.3333C10.6095 5.5 10.8333 5.72386 10.8333 6C10.8333 6.27614 10.6095 6.5 10.3333 6.5H5.33333ZM13 6.5C12.7239 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.7239 5.5 13 5.5H16C16.2761 5.5 16.5 5.72386 16.5 6V9C16.5 9.27614 16.2761 9.5 16 9.5C15.7239 9.5 15.5 9.27614 15.5 9V7.20711L13.3536 9.35355C13.1583 9.54882 12.8417 9.54882 12.6464 9.35355C12.4512 9.15829 12.4512 8.84171 12.6464 8.64645L14.7929 6.5H13ZM6.16699 8.33325C6.16699 8.05711 6.39085 7.83325 6.66699 7.83325H11.0003C11.2765 7.83325 11.5003 8.05711 11.5003 8.33325C11.5003 8.60939 11.2765 8.83325 11.0003 8.83325H6.66699C6.39085 8.83325 6.16699 8.60939 6.16699 8.33325ZM6.16699 10.9999C6.16699 10.7238 6.39085 10.4999 6.66699 10.4999H13.3337C13.6098 10.4999 13.8337 10.7238 13.8337 10.9999C13.8337 11.2761 13.6098 11.4999 13.3337 11.4999H6.66699C6.39085 11.4999 6.16699 11.2761 6.16699 10.9999Z",fill:"currentColor",fillRule:"evenodd"})});import{c as Pl}from"react/compiler-runtime";import{jsx as Hl}from"react/jsx-runtime";import{useLexicalComposerContext as Bl}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as jl,$wrapNodeInElement as Gl,mergeRegister as Ul}from"@lexical/utils";import{getTranslation as Wl}from"@payloadcms/translations";import{formatDrawerSlug as Vl,useEditDepth as Kl,useTranslation as zl}from"@payloadcms/ui";import{$createParagraphNode as Zl,$getNodeByKey as Yl,$getPreviousSelection as Xl,$getSelection as tr,$insertNodes as Jl,$isParagraphNode as or,$isRangeSelection as rr,$isRootOrShadowRoot as ql,COMMAND_PRIORITY_EDITOR as Vt}from"lexical";import{useEffect as Ql,useState as Kt}from"react";var nr=()=>{let t=Pl(27),[e]=Bl(),[o,n]=Kt(null),[r,i]=Kt(""),[l,s]=Kt(null),{i18n:a,t:c}=zl(),{fieldProps:u}=B(),{featureClientSchemaMap:d,schemaPath:m}=u,{uuid:f}=B(),p=Kl(),h="lexical-inlineBlocks-create-"+f,g;t[0]!==h||t[1]!==p?(g=Vl({slug:h,depth:p}),t[0]=h,t[1]=p,t[2]=g):g=t[2];let k=g,{toggleDrawer:v}=xe(k,!0),A,b;if(t[3]!==e||t[4]!==l||t[5]!==v?(A=()=>{if(!e.hasNodes([Ie]))throw new Error("BlocksPlugin: BlocksNode not registered on editor");return Ul(e.registerCommand(Re,I=>(e.update(()=>{let T=tr()||Xl();if(rr(T)){let M=vt(I);jl(M);let{focus:O}=T,D=O.getNode();or(D)&&D.getTextContentSize()===0&&D.getParentOrThrow().getChildren().filter(j=>or(j)).length>1&&D.remove()}}),!0),Vt),e.registerCommand(At,I=>{if(l){let M=Yl(l);return!M||!Ft(M)?!1:(M.setFields(I),s(null),!0)}let T=Ot(I);return Jl([T]),ql(T.getParentOrThrow())&&Gl(T,Zl).selectEnd(),!0},Vt),e.registerCommand(Se,I=>{let{fields:T,nodeKey:M}=I;if(n(T??null),s(M??null),i(T?.blockType??""),M)return v(),!0;let O;return O=null,e.getEditorState().read(()=>{let D=tr();rr(D)&&(O=D)}),O&&v(),!0},Vt))},b=[e,l,v],t[3]=e,t[4]=l,t[5]=v,t[6]=A,t[7]=b):(A=t[6],b=t[7]),Ql(A,b),!o)return null;let E=`${m}.lexical_internal_feature.blocks.lexical_inline_blocks.${o?.blockType}`,L=d.blocks[E][0],S=L.blocks[0];if(!L)return null;let w;t[8]!==S||t[9]!==a?(w=S?.labels?.singular?Wl(S?.labels?.singular,a):S?.slug,t[8]=S,t[9]=a,t[10]=w):w=t[10];let C=w,R=`lexical:blocks:inlineBlocks:${o?.id?"edit":"create"}`,N;t[11]!==C||t[12]!==c?(N=C??c("lexical:blocks:inlineBlocks:label"),t[11]=C,t[12]=c,t[13]=N):N=t[13];let _;if(t[14]!==N||t[15]!==c||t[16]!==R||t[17]!==S?.fields||t[18]!==r||t[19]!==e||t[20]!==o||t[21]!==k||t[22]!==m){let I;t[24]!==r||t[25]!==e?(I=(T,M)=>{M&&(M.blockType=r,e.dispatchCommand(At,M))},t[24]=r,t[25]=e,t[26]=I):I=t[26],_=Hl(de,{data:o,drawerSlug:k,drawerTitle:c(R,{label:N}),featureKey:"blocks",fieldMapOverride:S?.fields,handleDrawerSubmit:I,schemaPath:m,schemaPathSuffix:`lexical_inline_blocks.${o?.blockType}.fields`}),t[14]=N,t[15]=c,t[16]=R,t[17]=S?.fields,t[18]=r,t[19]=e,t[20]=o,t[21]=k,t[22]=m,t[23]=_}else _=t[23];return _};var es=y(({props:t})=>({nodes:[Ie,Dt],plugins:[{Component:nr,position:"normal"}],sanitizedClientFeatureProps:t,slashMenu:{groups:[t.clientBlockSlugs?.length?{items:t.clientBlockSlugs.map(e=>({Icon:ot,key:"block-"+e,keywords:["block","blocks",e],label:({featureClientSchemaMap:o,i18n:n,schemaPath:r})=>{if(!o)return e;let i=`${r}.lexical_internal_feature.blocks.lexical_blocks.${e}`,a=o.blocks[i][0].blocks[0];return a?.labels?.singular?nt(a.labels.singular,n):a?.slug},onSelect:({editor:o})=>{o.dispatchCommand(Re,{blockName:"",blockType:e})}})),key:"blocks",label:({i18n:e})=>e.t("lexical:blocks:label")}:null,t.clientInlineBlockSlugs?.length?{items:t.clientInlineBlockSlugs.map(e=>({Icon:rt,key:"inlineBlocks-"+e,keywords:["inlineBlock","inline block",e],label:({featureClientSchemaMap:o,i18n:n,schemaPath:r})=>{let i=`${r}.lexical_internal_feature.blocks.lexical_inline_blocks.${e}`,a=o.blocks[i][0].blocks[0];return a?.labels?.singular?nt(a.labels.singular,n):a?.slug},onSelect:({editor:o})=>{o.dispatchCommand(Se,{fields:{blockName:"",blockType:e}})}})),key:"inlineBlocks",label:({i18n:e})=>e.t("lexical:blocks:inlineBlocks:label")}:null].filter(Boolean)},toolbarFixed:{groups:[t.clientBlockSlugs?.length?{type:"dropdown",ChildComponent:ot,items:t.clientBlockSlugs.map((e,o)=>({ChildComponent:ot,isActive:void 0,key:"block-"+e,label:({featureClientSchemaMap:n,i18n:r,schemaPath:i})=>{let l=`${i}.lexical_internal_feature.blocks.lexical_blocks.${e}`,c=n.blocks[l][0].blocks[0];return c?.labels?.singular?nt(c.labels.singular,r):c?.slug},onSelect:({editor:n})=>{n.dispatchCommand(Re,{blockName:"",blockType:e})},order:o})),key:"blocks",order:20}:null,t.clientInlineBlockSlugs?.length?{type:"dropdown",ChildComponent:rt,items:t.clientInlineBlockSlugs.map((e,o)=>({ChildComponent:rt,isActive:void 0,key:"inlineBlock-"+e,label:({featureClientSchemaMap:n,i18n:r,schemaPath:i})=>{if(!n)return e;let l=`${i}.lexical_internal_feature.blocks.lexical_inline_blocks.${e}`,c=n.blocks[l][0].blocks[0];return c?.labels?.singular?nt(c.labels.singular,r):c?.slug},onSelect:({editor:n})=>{n.dispatchCommand(Se,{fields:{blockType:e}})},order:o})),key:"inlineBlocks",order:25}:null].filter(Boolean)}}));import{c as rs}from"react/compiler-runtime";import{jsx as pe,jsxs as Yt}from"react/jsx-runtime";import{useLexicalComposerContext as ns}from"@lexical/react/LexicalComposerContext.js";import{$createParagraphNode as is,$createTextNode as ls,$getRoot as ss}from"lexical";import*as cr from"react";import{useCallback as me,useEffect as zt,useLayoutEffect as lr,useRef as Zt,useState as it}from"react";var ts=Z&&"documentMode"in document?document.documentMode:null,ir=Z&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),R1=Z&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),S1=Z&&"InputEvent"in window&&!ts?"getTargetRanges"in new window.InputEvent("input"):!1,y1=Z&&/Version\/[\d.].*Safari/.test(navigator.userAgent),M1=Z&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,v1=Z&&/Android/.test(navigator.userAgent),A1=Z&&/Win/.test(navigator.platform),os=Z&&/^(?=.*Chrome).*/i.test(navigator.userAgent),D1=Z&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!os;var as=t=>{let e=document.createElement("textarea");e.value=t||"",e.style.position="absolute",e.style.opacity="0",document.body?.appendChild(e),e.focus(),e.select();try{let o=document.execCommand("copy");console.log(o)}catch(o){console.error(o)}document.body?.removeChild(e)},cs=(t,e)=>{let o=document.createElement("a");o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e||"")),o.setAttribute("download",t),o.style.display="none",document.body?.appendChild(o),o.click(),document.body?.removeChild(o)},us=t=>{let o=((n,r)=>{switch(n){case"click":return` await page.mouse.click(${r.x}, ${r.y});`;case"keydown":return` await page.keyboard.keydown('${r}');`;case"keyup":return` await page.keyboard.keyup('${r}');`;case"press":return` await page.keyboard.press('${r}');`;case"selectAll":return" await selectAll(page);";case"snapshot":return` await assertHTMLSnapshot(page);
4
+ await assertSelection(page, {
5
+ anchorPath: [${r.anchorPath.toString()}],
6
+ anchorOffset: ${r.anchorOffset},
7
+ focusPath: [${r.focusPath.toString()}],
8
+ focusOffset: ${r.focusOffset},
9
+ });
10
+ `;case"type":return` await page.keyboard.type('${r}');`;default:return""}})(t.name,t.value);switch(t.count){case 1:return o;case 2:return[o,o].join(`
11
+ `);default:return` await repeat(${t.count}, async () => {
12
+ ${o}
13
+ );`}};function ds(t){return t.key.toLowerCase()==="a"&&(ir?t.metaKey:t.ctrlKey)}function ms(t){let{anchorNode:e,focusNode:o}=t,{anchorOffset:n,focusOffset:r}=t;return n!==0&&n--,r!==0&&r--,{anchorNode:e,anchorOffset:n,focusNode:o,focusOffset:r}}function sr(t,e){let o=t,n=[];for(;o!==e;)o!=null&&n.unshift(Array.from(o?.parentNode?.childNodes??[]).indexOf(o)),o=o?.parentNode;return n}var ar=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Backspace","Delete","Enter","Escape"]);function ps(t){let[e,o]=it([]),[n,r]=it(!1),[,i]=it(""),[l,s]=it(""),a=Zt(null),c=Zt(!1),u=Zt(null),d=me(()=>t,[t]),m=me(()=>{let b=t.getRootElement(),E=window.getSelection();return b==null||E==null||E.anchorNode==null||E.focusNode==null||!b.contains(E.anchorNode)||!b.contains(E.focusNode)?null:`
14
+ import {
15
+ initializeE2E,
16
+ assertHTMLSnapshot,
17
+ assertSelection,
18
+ repeat,
19
+ } from '../utils';
20
+ import {selectAll} from '../keyboardShortcuts';
21
+ import { RangeSelection } from 'lexical';
22
+ import { NodeSelection } from 'lexical';
23
+
24
+ describe('Test case', () => {
25
+ initializeE2E((e2e) => {
26
+ it('Should pass this test', async () => {
27
+ const {page} = e2e;
28
+
29
+ await page.focus('div[contenteditable="true"]');
30
+ ${e.map(us).join(`
31
+ `)}
32
+ });
33
+ });
34
+ `},[t,e]),f=me((b,E)=>{o(x=>{let L=e.length-1,S=e[L];if(S&&S.name===b){if(b==="type")return[...e.slice(0,L),{...S,value:S.value+E}];if(S.value===E)return[...e.slice(0,L),{...S,count:S.count+1}]}return[...x,{name:b,count:1,value:E}]})},[e,o]);lr(()=>{let b=x=>{if(!n)return;let L=x.key;ds(x)?f("selectAll",""):ar.has(L)?f("press",x.key):[...L].length>1?f("keydown",x.key):f("type",x.key)},E=x=>{if(!n)return;let L=x.key;!ar.has(L)&&[...L].length>1&&f("keyup",x.key)};return t.registerRootListener((x,L)=>{L!==null&&(L.removeEventListener("keydown",b),L.removeEventListener("keyup",E)),x!==null&&(x.addEventListener("keydown",b),x.addEventListener("keyup",E))})},[t,n,f]),lr(()=>{u.current&&u.current.scrollTo(0,u.current.scrollHeight)},[m]),zt(()=>{if(e){let b=m();b!==null&&s(b),u.current&&u.current.scrollTo(0,u.current.scrollHeight)}},[m,e]),zt(()=>t.registerUpdateListener(({dirtyElements:E,dirtyLeaves:x,editorState:L})=>{if(!n)return;let S=L._selection,w=a.current,C=c.current;if(w!==S){if(x.size===0&&E.size===0&&!C){let N=window.getSelection();if(N&&(N.anchorNode==null||N.focusNode==null))return}a.current=S}c.current=!1;let R=m();R!==null&&s(R)}),[t,m,n,f]),zt(()=>n?t.registerUpdateListener(()=>{let E=t.getRootElement();E!==null&&i(E?.innerHTML)}):void 0,[t,n]);let p=me(b=>{n||(b.update(()=>{let E=ss();E.clear();let x=ls();E.append(is().append(x)),x.select()}),o([])),r(E=>!E)},[n]),h=me(()=>{if(!n)return;let b=window.getSelection();if(b===null||b.anchorNode==null||b.focusNode==null)return;let{anchorNode:E,anchorOffset:x,focusNode:L,focusOffset:S}=ms(b),w=d().getRootElement(),C;E!==null&&(C=sr(E,w));let R;L!==null&&(R=sr(L,w)),f("snapshot",{anchorNode:E,anchorOffset:x,anchorPath:C,focusNode:L,focusOffset:S,focusPath:R})},[f,n,d]),g=me(()=>{as(m())},[m]),k=me(()=>{cs("test.js",m())},[m]);return[pe("button",{className:`editor-dev-button ${n?"active":""}`,id:"test-recorder-button",onClick:b=>{p(d()),b.preventDefault()},title:n?"Disable test recorder":"Enable test recorder",type:"button",children:n?"Disable test recorder":"Enable test recorder"}),n?Yt("div",{className:"test-recorder-output",children:[Yt("div",{className:"test-recorder-toolbar",children:[pe("button",{className:"test-recorder-button",id:"test-recorder-button-snapshot",onClick:b=>{h(),b.preventDefault()},title:"Insert snapshot",type:"button",children:"Insert Snapshot"}),pe("button",{className:"test-recorder-button",id:"test-recorder-button-copy",onClick:b=>{g(),b.preventDefault()},title:"Copy to clipboard",type:"button",children:"Copy"}),pe("button",{className:"test-recorder-button",id:"test-recorder-button-download",onClick:b=>{k(),b.preventDefault()},title:"Download as a file",type:"button",children:"Download"})]}),pe("pre",{id:"test-recorder",ref:u,children:l})]}):null]}var ur=()=>{let t=rs(3),[e]=ns(),[o,n]=ps(e),r;return t[0]!==o||t[1]!==n?(r=Yt(cr.Fragment,{children:[pe("p",{children:"HI"}),o,n,pe("p",{children:"DONE"})]}),t[0]=o,t[1]=n,t[2]=r):r=t[2],r};var fs=y({plugins:[{Component:ur,position:"bottom"}]});import{c as hs}from"react/compiler-runtime";import{jsx as gs}from"react/jsx-runtime";import{useLexicalComposerContext as Cs}from"@lexical/react/LexicalComposerContext.js";import{TreeView as xs}from"@lexical/react/LexicalTreeView.js";import"react";var dr=()=>{let t=hs(2),[e]=Cs(),o;return t[0]!==e?(o=gs(xs,{editor:e,timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelButtonClassName:"debug-timetravel-panel-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelPanelSliderClassName:"debug-timetravel-panel-slider",treeTypeButtonClassName:"debug-treetype-button",viewClassName:"tree-view-output"}),t[0]=e,t[1]=o):o=t[1],o};var bs=y({plugins:[{Component:dr,position:"bottom"}]});import{$isTableSelection as _s}from"@lexical/table";import{$isRangeSelection as Ts,FORMAT_TEXT_COMMAND as Es}from"lexical";import{jsx as mr}from"react/jsx-runtime";import"react";var pr=()=>mr("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:mr("path",{d:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})});var W=t=>({type:"buttons",items:t,key:"format",order:40});var fr={type:"text-format",format:["bold","italic"],tag:"***"},hr={type:"text-format",format:["bold","italic"],intraword:!1,tag:"___"},gr={type:"text-format",format:["bold"],tag:"**"},Cr={type:"text-format",format:["bold"],intraword:!1,tag:"__"};var xr=[W([{ChildComponent:pr,isActive:({selection:t})=>Ts(t)||_s(t)?t.hasFormat("bold"):!1,key:"bold",onSelect:({editor:t})=>{t.dispatchCommand(Es,"bold")},order:1}])],ws=y(({featureProviderMap:t})=>{let e=[gr,Cr];return t.get("italic")&&e.push(hr,fr),{markdownTransformers:e,toolbarFixed:{groups:xr},toolbarInline:{groups:xr}}});import{$isTableSelection as ks}from"@lexical/table";import{$isRangeSelection as Ls,FORMAT_TEXT_COMMAND as Is}from"lexical";import{jsx as br,jsxs as Ns}from"react/jsx-runtime";import"react";var _r=()=>Ns("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[br("path",{d:"M7.76465 6L3.76465 10L7.76465 14",stroke:"currentColor"}),br("path",{d:"M12.2354 6L16.2354 10L12.2354 14",stroke:"currentColor"})]});var Tr={type:"text-format",format:["code"],tag:"`"};var Er=[W([{ChildComponent:_r,isActive:({selection:t})=>Ls(t)||ks(t)?t.hasFormat("code"):!1,key:"inlineCode",onSelect:({editor:t})=>{t.dispatchCommand(Is,"code")},order:7}])],Rs=y({markdownTransformers:[Tr],toolbarFixed:{groups:Er},toolbarInline:{groups:Er}});import{$isTableSelection as Ss}from"@lexical/table";import{$isRangeSelection as ys,FORMAT_TEXT_COMMAND as Ms}from"lexical";import{jsx as wr}from"react/jsx-runtime";import"react";var Nr=()=>wr("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:wr("path",{d:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})});var kr={type:"text-format",format:["italic"],tag:"*"},Lr={type:"text-format",format:["italic"],intraword:!1,tag:"_"};var Ir=[W([{ChildComponent:Nr,isActive:({selection:t})=>ys(t)||Ss(t)?t.hasFormat("italic"):!1,key:"italic",onSelect:({editor:t})=>{t.dispatchCommand(Ms,"italic")},order:2}])],vs=y({markdownTransformers:[kr,Lr],toolbarFixed:{groups:Ir},toolbarInline:{groups:Ir}});import{$isTableSelection as Ds}from"@lexical/table";import{$isRangeSelection as Os,FORMAT_TEXT_COMMAND as Fs}from"lexical";import{jsx as Rr,jsxs as As}from"react/jsx-runtime";import"react";var Sr=()=>As("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Rr("path",{d:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),Rr("path",{d:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]});var yr={type:"text-format",format:["strikethrough"],tag:"~~"};var Mr=[W([{ChildComponent:Sr,isActive:({selection:t})=>Os(t)||Ds(t)?t.hasFormat("strikethrough"):!1,key:"strikethrough",onSelect:({editor:t})=>{t.dispatchCommand(Fs,"strikethrough")},order:4}])],$s=y({markdownTransformers:[yr],toolbarFixed:{groups:Mr},toolbarInline:{groups:Mr}});import{$isTableSelection as Ps}from"@lexical/table";import{$isRangeSelection as Hs,FORMAT_TEXT_COMMAND as Bs}from"lexical";import{jsx as vr}from"react/jsx-runtime";import"react";var Ar=()=>vr("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:vr("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})});var Dr=[W([{ChildComponent:Ar,isActive:({selection:t})=>Hs(t)||Ps(t)?t.hasFormat("subscript"):!1,key:"subscript",onSelect:({editor:t})=>{t.dispatchCommand(Bs,"subscript")},order:5}])],js=y({toolbarFixed:{groups:Dr},toolbarInline:{groups:Dr}});import{$isTableSelection as Gs}from"@lexical/table";import{$isRangeSelection as Us,FORMAT_TEXT_COMMAND as Ws}from"lexical";import{jsx as Or}from"react/jsx-runtime";import"react";var Fr=()=>Or("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Or("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})});var $r=[W([{ChildComponent:Fr,isActive:({selection:t})=>Us(t)||Gs(t)?t.hasFormat("superscript"):!1,key:"superscript",onSelect:({editor:t})=>{t.dispatchCommand(Ws,"superscript")},order:6}])],Vs=y({toolbarFixed:{groups:$r},toolbarInline:{groups:$r}});import{$isTableSelection as zs}from"@lexical/table";import{$isRangeSelection as Zs,FORMAT_TEXT_COMMAND as Ys}from"lexical";import{jsx as Pr,jsxs as Ks}from"react/jsx-runtime";import"react";var Hr=()=>Ks("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Pr("path",{d:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),Pr("path",{d:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]});var Br=[W([{ChildComponent:Hr,isActive:({selection:t})=>Zs(t)||zs(t)?t.hasFormat("underline"):!1,key:"underline",onSelect:({editor:t})=>{t.dispatchCommand(Ys,"underline")},order:3}])],Xs=y({toolbarFixed:{groups:Br},toolbarInline:{groups:Br}});import{$createHeadingNode as ea,$isHeadingNode as en,HeadingNode as ta}from"@lexical/rich-text";import{$setBlocksType as oa}from"@lexical/selection";import{$getSelection as ra,$isRangeSelection as na}from"lexical";import{jsx as jr}from"react/jsx-runtime";import"react";var Gr=()=>jr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:jr("path",{d:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})});import{jsx as Ur}from"react/jsx-runtime";import"react";var Wr=()=>Ur("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Ur("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})});import{jsx as Vr}from"react/jsx-runtime";import"react";var Kr=()=>Vr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Vr("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})});import{jsx as zr}from"react/jsx-runtime";import"react";var Zr=()=>zr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:zr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});import{jsx as Yr}from"react/jsx-runtime";import"react";var Xr=()=>Yr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Yr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM13.1576 10.269C12.6896 10.269 12.3746 10.494 12.2216 10.737H10.8176L11.1956 7.074H15.2546V8.28H12.3206L12.1856 9.549C12.4016 9.351 12.8516 9.126 13.4636 9.126C14.7866 9.126 15.6596 10.053 15.6596 11.358C15.6596 12.609 14.7326 13.608 13.1756 13.608C11.5826 13.608 10.6556 12.753 10.5566 11.511H12.1136C12.1586 12.06 12.5456 12.465 13.1576 12.465C13.8236 12.465 14.1746 11.97 14.1746 11.376C14.1746 10.764 13.8416 10.269 13.1576 10.269Z",fill:"currentColor"})});import{jsx as Jr}from"react/jsx-runtime";import"react";var qr=()=>Jr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Jr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM13.3646 8.127C12.5456 8.127 12.0416 8.937 12.0416 9.999C12.3296 9.54 12.8246 9.207 13.5536 9.207C14.8586 9.207 15.8036 10.134 15.8036 11.376C15.8036 12.645 14.8226 13.608 13.3196 13.608C11.7266 13.608 10.6196 12.393 10.6196 10.395C10.6196 8.316 11.7716 6.966 13.4186 6.966C14.7056 6.966 15.5786 7.749 15.7316 8.829H14.3186C14.2016 8.415 13.9226 8.127 13.3646 8.127ZM13.3106 12.51C13.9586 12.51 14.3816 12.042 14.3816 11.385C14.3816 10.737 13.9586 10.278 13.3106 10.278C12.6536 10.278 12.2126 10.737 12.2126 11.385C12.2126 12.042 12.6536 12.51 13.3106 12.51Z",fill:"currentColor"})});import{$createHeadingNode as Js,$isHeadingNode as qs,HeadingNode as Qs}from"@lexical/rich-text";var Xt=t=>(e,o,n)=>{let r=t(n);r&&(r.append(...o),e.replace(r),r.select(0,0))};var Qr=t=>{let o=`^(${t.map(r=>Number(r.slice(1))).map(r=>`#{${r}}`).join("|")})\\s`,n=new RegExp(o);return{type:"element",dependencies:[Qs],export:(r,i)=>{if(!qs(r))return null;let l=Number(r.getTag().slice(1));return"#".repeat(l)+" "+i(r)},regExp:n,replace:Xt(r=>{let i="h"+r[1].length;return Js(i)})}};var tn=t=>{let e=ra();oa(e,()=>ea(t))},on={h1:Gr,h2:Wr,h3:Kr,h4:Zr,h5:Xr,h6:qr},ia=y(({props:t})=>{let{enabledHeadingSizes:e=["h1","h2","h3","h4","h5","h6"]}=t,o=[V(e.map((n,r)=>({ChildComponent:on[n],isActive:({selection:i})=>{if(!na(i))return!1;for(let l of i.getNodes()){if(en(l)&&l.getTag()===n)continue;let s=l.getParent();if(!(en(s)&&s.getTag()===n))return!1}return!0},key:n,label:({i18n:i})=>i.t("lexical:heading:label",{headingLevel:n.charAt(1)}),onSelect:({editor:i})=>{i.update(()=>{tn(n)})},order:r+2})))];return{markdownTransformers:[Qr(e)],nodes:[ta],sanitizedClientFeatureProps:t,slashMenu:{groups:e?.length?[U(e.map(n=>({Icon:on[n],key:`heading-${n.charAt(1)}`,keywords:["heading",n],label:({i18n:r})=>r.t("lexical:heading:label",{headingLevel:n.charAt(1)}),onSelect:({editor:r})=>{r.update(()=>{tn(n)})}})))]:[]},toolbarFixed:{groups:e?.length?o:[]},toolbarInline:{groups:e?.length?o:[]}}});import{$isNodeSelection as fa}from"lexical";import{jsx as rn}from"react/jsx-runtime";import"react";var Jt=()=>rn("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:rn("rect",{fill:"currentColor",height:"1",width:"12",x:"4",y:"9.5"})});import{jsx as nn,jsxs as la}from"react/jsx-runtime";import"react";var ln=()=>la("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[nn("path",{d:"M5 10h10",stroke:"currentColor"}),nn("path",{d:"M10 15V5",stroke:"currentColor"})]});var ee=t=>({type:"dropdown",ChildComponent:ln,items:t,key:"add",order:10});var sn={type:"element",dependencies:[Ye],export:(t,e)=>Je(t)?"---":null,regExp:/^---\s*$/,replace:t=>{let e=Xe();e&&t.replace(e)}};import{c as sa}from"react/compiler-runtime";import{useLexicalComposerContext as aa}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as ca}from"@lexical/utils";import{$getSelection as ua,$isRangeSelection as da,COMMAND_PRIORITY_EDITOR as ma}from"lexical";import{useEffect as pa}from"react";var an=()=>{let t=sa(3),[e]=aa(),o,n;return t[0]!==e?(o=()=>e.registerCommand(ye,r=>{let i=ua();if(!da(i))return!1;if(i.focus.getNode()!==null){let s=Xe();ca(s)}return!0},ma),n=[e],t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]),pa(o,n),null};var ha=y({markdownTransformers:[sn],nodes:[Ye],plugins:[{Component:an,position:"normal"}],slashMenu:{groups:[U([{Icon:Jt,key:"horizontalRule",keywords:["hr","horizontal rule","line","separator"],label:({i18n:t})=>t.t("lexical:horizontalRule:label"),onSelect:({editor:t})=>{t.dispatchCommand(ye,void 0)}}])]},toolbarFixed:{groups:[ee([{ChildComponent:Jt,isActive:({selection:t})=>{if(!fa(t)||!t.getNodes().length)return!1;let e=t.getNodes()[0];return Je(e)},key:"horizontalRule",label:({i18n:t})=>t.t("lexical:horizontalRule:label"),onSelect:({editor:t})=>{t.dispatchCommand(ye,void 0)}}])]}});import{INDENT_CONTENT_COMMAND as xa,OUTDENT_CONTENT_COMMAND as ba}from"lexical";import{jsx as lt,jsxs as ga}from"react/jsx-runtime";import"react";var cn=()=>ga("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[lt("path",{d:"M2.5 5H10.5",stroke:"currentColor",strokeWidth:"1.5"}),lt("path",{d:"M2.5 10H10.5",stroke:"currentColor",strokeWidth:"1.5"}),lt("path",{d:"M2.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"}),lt("path",{d:"M12.25 7.25L17.25 3.75V10.75L12.25 7.25Z",fill:"currentColor"})]});import{jsx as st,jsxs as Ca}from"react/jsx-runtime";import"react";var un=()=>Ca("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[st("path",{d:"M17.5 5H9.5",stroke:"currentColor",strokeWidth:"1.5"}),st("path",{d:"M17.5 10H9.5",stroke:"currentColor",strokeWidth:"1.5"}),st("path",{d:"M17.5 15H2.5",stroke:"currentColor",strokeWidth:"1.5"}),st("path",{d:"M7.75 7.25L2.75 3.75V10.75L7.75 7.25Z",fill:"currentColor"})]});var dn=t=>({type:"buttons",items:t,key:"indent",order:35});var mn=[dn([{ChildComponent:cn,isActive:()=>!1,isEnabled:({selection:t})=>{if(!t||!t?.getNodes()?.length)return!1;for(let e of t.getNodes()){let o=e.getParentOrThrow();if("__indent"in e&&e.__indent>0||"__indent"in o&&o.__indent>0)return!0}return!1},key:"indentDecrease",label:({i18n:t})=>t.t("lexical:indent:decreaseLabel"),onSelect:({editor:t})=>{t.dispatchCommand(ba,void 0)},order:1},{ChildComponent:un,isActive:()=>!1,key:"indentIncrease",label:({i18n:t})=>t.t("lexical:indent:increaseLabel"),onSelect:({editor:t})=>{t.dispatchCommand(xa,void 0)},order:2}])],_a=y({toolbarFixed:{groups:mn},toolbarInline:{groups:mn}});import{$findMatchingParent as yc}from"@lexical/utils";import{$getSelection as lo,$isRangeSelection as Gn}from"lexical";import{jsx as pn}from"react/jsx-runtime";import"react";var fn=()=>pn("svg",{"aria-hidden":"true",className:"icon",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:pn("path",{d:"M8.5 11.5L11.5 8.5M8.5 7L9.625 5.875C10.868 4.633 12.882 4.633 14.125 5.875C15.368 7.118 15.368 9.133 14.125 10.375L13 11.5M7 8.5L5.746 9.754C4.56 10.94 4.519 12.85 5.652 14.087C6.814 15.354 8.78 15.449 10.058 14.298L11.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})});import{$isAtNodeEnd as hn}from"@lexical/selection";function be(t){let{anchor:e}=t,{focus:o}=t,n=t.anchor.getNode(),r=t.focus.getNode();return n===r?n:t.isBackward()?hn(o)?n:r:hn(e)?n:r}var qt=t=>({type:"buttons",items:t,key:"features",order:50});import{$createTextNode as Ma,$isTextNode as va}from"lexical";import{addClassNamesToElement as Ta,isHTMLAnchorElement as Ea}from"@lexical/utils";import to from"bson-objectid";import{$applyNodeReplacement as wa,$createTextNode as gn,$getSelection as Na,$isElementNode as Cn,$isRangeSelection as eo,createCommand as ka,ElementNode as La}from"lexical";var Ia=new Set(["http:","https:","mailto:","sms:","tel:"]),K=class t extends La{__fields;__id;constructor({id:e,fields:o={doc:null,linkType:"custom",newTab:!1,url:""},key:n}){super(n),this.__fields=o,this.__id=e}static clone(e){return new t({id:e.__id,fields:e.__fields,key:e.__key})}static getType(){return"link"}static importDOM(){return{a:e=>({conversion:Ra,priority:1})}}static importJSON(e){e.version===1&&typeof e.fields?.doc?.value=="object"&&e.fields?.doc?.value?.id&&(e.fields.doc.value=e.fields.doc.value.id,e.version=2),e.version===2&&!e.id&&(e.id=new to.default().toHexString(),e.version=3);let o=te({id:e.id,fields:e.fields});return o.setFormat(e.format),o.setIndent(e.indent),o.setDirection(e.direction),o}canBeEmpty(){return!1}canInsertTextAfter(){return!1}canInsertTextBefore(){return!1}createDOM(e){let o=document.createElement("a");return this.__fields?.linkType==="custom"&&(o.href=this.sanitizeUrl(this.__fields.url??"")),(this.__fields?.newTab??!1)&&(o.target="_blank"),this.__fields?.newTab===!0&&this.__fields?.linkType==="custom"&&(o.rel=Qt(o.rel,"add","noopener")),Ta(o,e.theme.link),o}exportJSON(){let e={...super.exportJSON(),type:"link",fields:this.getFields(),version:3},o=this.getID();return o&&(e.id=o),e}extractWithChild(e,o,n){if(!eo(o))return!1;let r=o.anchor.getNode(),i=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&o.getTextContent().length>0}getFields(){return this.getLatest().__fields}getID(){return this.getLatest().__id}insertNewAfter(e,o=!0){let n=this.getParentOrThrow().insertNewAfter(e,o);if(Cn(n)){let r=te({fields:this.__fields});return n.append(r),r}return null}isInline(){return!0}sanitizeUrl(e){try{let o=new URL(e);if(!Ia.has(o.protocol))return"about:blank"}catch{return"https://"}return e}setFields(e){let o=this.getWritable();o.__fields=e}updateDOM(e,o,n){let r=this.__fields?.url,i=this.__fields?.newTab;return r!=null&&r!==e.__fields?.url&&this.__fields?.linkType==="custom"&&(o.href=r),this.__fields?.linkType==="internal"&&e.__fields?.linkType==="custom"&&o.removeAttribute("href"),o.rel==null&&(o.rel=""),i!==e.__fields?.newTab&&(i??!1?(o.target="_blank",this.__fields?.linkType==="custom"&&(o.rel=Qt(o.rel,"add","noopener"))):(o.removeAttribute("target"),o.rel=Qt(o.rel,"remove","noopener"))),!1}};function Ra(t){let e=null;if(Ea(t)){let o=t.textContent;o!==null&&o!==""&&(e=te({id:new to.default().toHexString(),fields:{doc:null,linkType:"custom",newTab:t.getAttribute("target")==="_blank",url:t.getAttribute("href")??""}}))}return{node:e}}function te({id:t,fields:e}){return wa(new K({id:t??new to.default().toHexString(),fields:e}))}function G(t){return t instanceof K}var J=ka("TOGGLE_LINK_COMMAND");function xn(t){let e=Na();if(!eo(e)&&!t.selectedNodes?.length)return;let o=eo(e)?e.extract():t.selectedNodes;if(t===null)o?.forEach(n=>{let r=n.getParent();if(G(r)){let i=r.getChildren();for(let l=0;l<i.length;l+=1)r.insertBefore(i[l]);r.remove()}});else{if(o?.length===1){let i=o[0],l=G(i)?i:Sa(i);if(l!==null){l.setFields(t.fields),t.text!=null&&t.text!==l.getTextContent()&&(l.append(gn(t.text)),l.getChildren().forEach(s=>{s!==l.getLastChild()&&s.remove()}));return}}let n=null,r=null;o?.forEach(i=>{let l=i.getParent();if(!(l===r||l===null||Cn(i)&&!i.isInline())){if(G(l)){r=l,l.setFields(t.fields),t.text!=null&&t.text!==l.getTextContent()&&(l.append(gn(t.text)),l.getChildren().forEach(s=>{s!==l.getLastChild()&&s.remove()}));return}if(l.is(n)||(n=l,r=te({fields:t.fields}),G(l)?i.getPreviousSibling()===null?l.insertBefore(r):l.insertAfter(r):i.insertBefore(r)),G(i)){if(i.is(r))return;if(r!==null){let s=i.getChildren();for(let a=0;a<s.length;a+=1)r.append(s[a])}i.remove();return}r!==null&&r.append(i)}})}}function Sa(t){return ya(t,e=>G(e))}function ya(t,e){let o=t;for(;o!==null&&(o=o.getParent(),!(o===null||e(o))););return o}function Qt(t,e,o){let n,r=`${t}`;if(e==="add"){if(r.includes(o)){let i=new RegExp(o,"g");r=r.replace(i,"").trim()}r=r.trim(),n=r.length===0?`${o}`:`${r} ${o}`}else{let i=new RegExp(o,"g");n=r.replace(i,"").trim()}return n}var bn={type:"text-match",dependencies:[K],export:(t,e,o)=>{if(!G(t))return null;let n=t,{url:r}=n.getFields(),i=`[${n.getTextContent()}](${r})`,l=n.getFirstChild();return n.getChildrenSize()===1&&va(l)?o(l,i):i},importRegExp:/\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)/,regExp:/\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)$/,replace:(t,e)=>{let[,o,n]=e,r=te({fields:{doc:null,linkType:"custom",newTab:!1,url:n}}),i=Ma(o);i.setFormat(t.getFormat()),r.append(i),t.replace(r)},trigger:")"};import{$applyNodeReplacement as Aa,$isElementNode as Da}from"lexical";var oe=class t extends K{static clone(e){return new t({id:"",fields:e.__fields,key:e.__key})}static getType(){return"autolink"}static importDOM(){return null}static importJSON(e){e.version===1&&typeof e.fields?.doc?.value=="object"&&e.fields?.doc?.value?.id&&(e.fields.doc.value=e.fields.doc.value.id,e.version=2);let o=Pe({fields:e.fields});return o.setFormat(e.format),o.setIndent(e.indent),o.setDirection(e.direction),o}exportJSON(){let e=super.exportJSON();return{type:"autolink",children:e.children,direction:e.direction,fields:e.fields,format:e.format,indent:e.indent,version:2}}insertNewAfter(e,o=!0){let n=this.getParentOrThrow().insertNewAfter(e,o);if(Da(n)){let r=Pe({fields:this.__fields});return n.append(r),r}return null}};function Pe({fields:t}){return Aa(new oe({id:"",fields:t}))}function re(t){return t instanceof oe}import{c as Oa}from"react/compiler-runtime";import{useLexicalComposerContext as Fa}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as $a}from"@lexical/utils";import{$createTextNode as _n,$getSelection as Pa,$isElementNode as En,$isLineBreakNode as wn,$isNodeSelection as Ha,$isRangeSelection as Ba,$isTextNode as He,TextNode as ja}from"lexical";import{useEffect as Ga}from"react";function Tn(t,e=o=>o){return o=>{let n=t.exec(o);return n===null?null:{index:n.index,length:n[0].length,text:n[0],url:e(n[0])}}}function Nn(t,e){for(let o=0;o<e.length;o++){let n=e[o](t);if(n!=null)return n}return null}var Ua=/[.,;\s]/;function ct(t){return Ua.test(t)}function kn(t){return ct(t[t.length-1])}function ro(t){return ct(t[0])}function Wa(t,e){return e?/^\.[a-z]{2,}/i.test(t):/^\.[a-z0-9]+/i.test(t)}function Ln(t){let e=t.getPreviousSibling();return En(e)&&(e=e.getLastDescendant()),e===null||wn(e)||He(e)&&kn(e.getTextContent())}function In(t){let e=t.getNextSibling();return En(e)&&(e=e.getFirstDescendant()),e===null||wn(e)||He(e)&&ro(e.getTextContent())}function Va(t,e,o,n){return(t>0?ct(o[t-1]):Ln(n[0]))?e<o.length?ct(o[e]):In(n[n.length-1]):!1}function Ka(t,e,o){let n=[],r=[],i=[],l=0,s=0,a=[...t];for(;a.length>0;){let c=a[0],d=c.getTextContent().length,m=s;s+d<=e?(n.push(c),l+=d):m>=o?i.push(c):r.push(c),s+=d,a.shift()}return[l,n,r,i]}function za(t,e,o,n){let r={linkType:"custom",url:n.url,...n.fields},i=Pe({fields:r});if(t.length===1){let l=t[0],s;e===0?[s,l]=l.splitText(o):[,s,l]=l.splitText(e,o);let a=_n(n.text);return a.setFormat(s.getFormat()),a.setDetail(s.getDetail()),a.setStyle(s.getStyle()),i.append(a),s.replace(i),l}else if(t.length>1){let l=t[0],s=l.getTextContent().length,a;e===0?a=l:[,a]=l.splitText(e);let c=[],u;for(let p=1;p<t.length;p++){let h=t[p],k=h.getTextContent().length,v=s,A=s+k;if(v<o)if(A<=o)c.push(h);else{let[b,E]=h.splitText(o-v);c.push(b),u=E}s+=k}let d=Pa(),m=d?d.getNodes().find(He):void 0,f=_n(a.getTextContent());return f.setFormat(a.getFormat()),f.setDetail(a.getDetail()),f.setStyle(a.getStyle()),i.append(f,...c),m&&m===a&&(Ba(d)?f.select(d.anchor.offset,d.focus.offset):Ha(d)&&f.select(0,f.getTextContent().length)),a.replace(i),u}}function Za(t,e,o){let n=[...t],r=n.map(a=>a.getTextContent()).join(""),i=r,l,s=0;for(;(l=Nn(i,e))!=null&&l!==null;){let a=l.index,c=l.length,u=a+c;if(Va(s+a,s+u,r,n)){let[m,,f,p]=Ka(n,s+a,s+u),h=s+a-m,g=s+u-m,k=za(f,h,g,l);n=k?[k,...p]:p,o(l.url,null),s=0}else s+=u;i=i.substring(u)}}function oo(t,e,o){let n=t.getChildren(),r=n.length;for(let a=0;a<r;a++){let c=n[a];if(!He(c)||!c.isSimpleText()){at(t),o(null,t.getFields()?.url??null);return}}let i=t.getTextContent(),l=Nn(i,e);if(l===null||l.text!==i){at(t),o(null,t.getFields()?.url??null);return}if(!Ln(t)||!In(t)){at(t),o(null,t.getFields()?.url??null);return}let s=t.getFields()?.url;if(s!==l?.url){let a=t.getFields();a.url=l?.url,t.setFields(a),o(l.url,s??null)}}function Ya(t,e,o){let n=t.getPreviousSibling(),r=t.getNextSibling(),i=t.getTextContent();if(re(n)){let l=n.getFields()?.url?n.getFields()?.url?.startsWith("mailto:"):!1;(!ro(i)||Wa(i,l))&&(n.append(t),oo(n,e,o),o(null,n.getFields()?.url??null))}re(r)&&!kn(i)&&(at(r),oo(r,e,o),o(null,r.getFields()?.url??null))}function at(t){let e=t.getChildren(),o=e.length;for(let n=o-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map(n=>n.getLatest())}function Xa(t){let e=[t],o=t.getNextSibling();for(;o!==null&&He(o)&&o.isSimpleText()&&(e.push(o),!/\s/.test(o.getTextContent()));)o=o.getNextSibling();return e}function Ja(t,e,o){let n=Oa(5),r,i;n[0]!==t||n[1]!==o||n[2]!==e?(r=()=>{if(!t.hasNodes([oe]))throw new Error("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor");let l=(s,a)=>{o?.(s,a)};return $a(t.registerNodeTransform(ja,s=>{let a=s.getParentOrThrow(),c=s.getPreviousSibling();if(re(a))oo(a,e,l);else if(!G(a)){if(s.isSimpleText()&&(ro(s.getTextContent())||!re(c))){let u=Xa(s);Za(u,e,l)}Ya(s,e,l)}}))},i=[t,e,o],n[0]=t,n[1]=o,n[2]=e,n[3]=r,n[4]=i):(r=n[3],i=n[4]),Ga(r,i)}var qa=/((https?:\/\/(www\.)?)|(www\.))[-\w@:%.+~#=]{1,256}\.[a-zA-Z\d()]{1,6}\b([-\w()@:%+.~#?&/=]*)(?<![-.+():%])/,Qa=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-z\-\d]+\.)+[a-z]{2,}))/i,ec=[Tn(qa,t=>t.startsWith("http")?t:`https://${t}`),Tn(Qa,t=>`mailto:${t}`)],Rn=()=>{let[t]=Fa();return Ja(t,ec),null};import{jsx as tc}from"react/jsx-runtime";import{ClickableLinkPlugin as oc}from"@lexical/react/LexicalClickableLinkPlugin.js";import"react";var Sn=()=>tc(oc,{});import{jsx as xc}from"react/jsx-runtime";import"react";import{createPortal as bc}from"react-dom";import{jsx as se,jsxs as no}from"react/jsx-runtime";import{useLexicalComposerContext as nc}from"@lexical/react/LexicalComposerContext.js";import{$findMatchingParent as yn,mergeRegister as Mn}from"@lexical/utils";import{getTranslation as io}from"@payloadcms/translations";import{CloseMenuIcon as ic,EditIcon as lc,formatDrawerSlug as sc,useConfig as ac,useEditDepth as cc,useLocale as uc,useTranslation as dc}from"@payloadcms/ui";import{requests as mc}from"@payloadcms/ui/shared";import{$getSelection as vn,$isLineBreakNode as pc,$isRangeSelection as An,COMMAND_PRIORITY_HIGH as fc,COMMAND_PRIORITY_LOW as Dn,KEY_ESCAPE_COMMAND as hc,SELECTION_CHANGE_COMMAND as gc}from"lexical";import On,{useCallback as Fn,useEffect as mt,useRef as Cc,useState as _e}from"react";function ut(t,e,o,n=10,r=5){let i=o.parentElement;if(t===null||i==null){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}let l=e.getBoundingClientRect(),s=o.getBoundingClientRect(),a=i.getBoundingClientRect(),c=t.top-n,u=t.left-r;c<a.top&&(c+=l.height+t.height+n*2),u+l.width>a.right&&(u=a.right-l.width-r),c-=s.top,u-=s.left,e.style.opacity="1",e.style.transform=`translate(${u}px, ${c}px)`}import{createCommand as rc}from"lexical";var dt=rc("TOGGLE_LINK_WITH_MODAL_COMMAND");function $n({anchorElem:t}){let[e]=nc(),o=Cc(null),[n,r]=_e(null),[i,l]=_e(null),{fieldProps:{schemaPath:s},uuid:a}=B(),{config:c}=ac(),{i18n:u,t:d}=dc(),[m,f]=_e(),p=cc(),[h,g]=_e(!1),[k,v]=_e([]),A=uc(),[b,E]=_e(!1),x=sc({slug:"lexical-rich-text-link-"+a,depth:p}),{toggleDrawer:L}=xe(x),S=Fn(()=>{g(!1),o&&o.current&&(o.current.style.opacity="0",o.current.style.transform="translate(-10000px, -10000px)"),E(!1),r(null),l(null),v([]),f(void 0)},[g,r,l,v]),w=Fn(()=>{let C=vn(),R;if(!An(C)||!C){S();return}let N=be(C);R=e.getElementByKey(N.getKey())?.getBoundingClientRect();let _=yn(N,G),I=C.getNodes().filter(P=>!pc(P)).find(P=>{let z=yn(P,G);return _&&!_.is(z)||z&&!z.is(_)});if(_==null||I){S();return}let T=_.getFields(),M={...T,id:_.getID(),text:_.getTextContent()};if(T?.linkType==="custom")r(T?.url??null),l(null);else{r(`${c.routes.admin==="/"?"":c.routes.admin}/collections/${T?.doc?.relationTo}/${T?.doc?.value}`);let P=c.collections.find(z=>z.slug===T?.doc?.relationTo);if(!P)l(T?.label?String(T?.label):null),r(T?.url?String(T?.url):null);else{let z=typeof T.doc?.value=="object"?T.doc.value.id:T.doc?.value,Ce=T.doc?.relationTo;if(!z||!Ce)throw new Error("Focus link parent is missing doc.value or doc.relationTo");let X=d("fields:linkedTo",{label:`${io(P.labels.singular,u)} - ${d("lexical:link:loadingWithEllipsis",u)}`}).replace(/<[^>]*>?/g,"");l(X),mc.get(`${c.serverURL}${c.routes.api}/${Ce}/${z}`,{headers:{"Accept-Language":u.language},params:{depth:0,locale:A?.code}}).then(async ue=>{if(!ue.ok)throw new Error(`HTTP error! Status: ${ue.status}`);let fl=await ue.json(),hl=P?.admin?.useAsTitle||"id",gl=fl[hl],Cl=d("fields:linkedTo",{label:`${io(P.labels.singular,u)} - ${gl}`}).replace(/<[^>]*>?/g,"");l(Cl)}).catch(()=>{let ue=d("fields:linkedTo",{label:`${io(P.labels.singular,u)} - ${d("general:untitled",u)} - ID: ${z}`}).replace(/<[^>]*>?/g,"");l(ue)})}}f(M),g(!0),v(C?C?.getNodes():[]),re(_)?E(!0):E(!1);let O=o.current,D=window.getSelection(),{activeElement:j}=document;if(O===null)return;let H=e.getRootElement();return D!==null&&H!==null&&H.contains(D.anchorNode)?(R||(R=D.getRangeAt(0).getBoundingClientRect()),R!=null&&(R.y+=40,ut(R,O,t))):(j==null||j.className!=="link-input")&&(H!==null&&ut(null,O,t),r(null),l(null)),!0},[e,S,c.routes.admin,c.routes.api,c.collections,c.serverURL,d,u,A?.code,t]);return mt(()=>Mn(e.registerCommand(dt,C=>(e.dispatchCommand(J,C),w(),L(),!0),Dn)),[e,w,L,x]),mt(()=>{let C=t.parentElement,R=()=>{e.getEditorState().read(()=>{w()})};return window.addEventListener("resize",R),C?.addEventListener("scroll",R),()=>{window.removeEventListener("resize",R),C?.removeEventListener("scroll",R)}},[t.parentElement,e,w]),mt(()=>Mn(e.registerUpdateListener(({editorState:C})=>{C.read(()=>{w()})}),e.registerCommand(gc,()=>(w(),!0),Dn),e.registerCommand(hc,()=>h?(S(),!0):!1,fc)),[e,w,h,S]),mt(()=>{e.getEditorState().read(()=>{w()})},[e,w]),no(On.Fragment,{children:[se("div",{className:"link-editor",ref:o,children:no("div",{className:"link-input",children:[n&&n.length>0?se("a",{href:n,rel:"noopener noreferrer",target:"_blank",children:i!=null&&i.length>0?i:n}):i!=null&&i.length>0?se("span",{className:"link-input__label-pure",children:i}):null,e.isEditable()&&no(On.Fragment,{children:[se("button",{"aria-label":"Edit link",className:"link-edit",onClick:()=>{L()},onMouseDown:C=>{C.preventDefault()},tabIndex:0,type:"button",children:se(lc,{})}),!b&&se("button",{"aria-label":"Remove link",className:"link-trash",onClick:()=>{e.dispatchCommand(J,null)},onMouseDown:C=>{C.preventDefault()},tabIndex:0,type:"button",children:se(ic,{})})]})]})}),se(de,{className:"lexical-link-edit-drawer",data:m,drawerSlug:x,drawerTitle:d("fields:editLink"),featureKey:"link",handleDrawerSubmit:(C,R)=>{let N=R,_={...N};delete _.text,e.update(()=>{let I=vn(),T=null;if(An(I)?T=be(I).getParent():k.length&&(T=k[0].getParent()),T&&re(T)){let M=te({fields:_});T.replace(M,!0)}}),e.dispatchCommand(J,{fields:_,selectedNodes:k,text:N.text})},schemaPath:s,schemaPathSuffix:"fields"})]})}var Pn=t=>{let{anchorElem:e=document.body}=t;return bc(xc($n,{anchorElem:e}),e)};import{c as Ec}from"react/compiler-runtime";import{useLexicalComposerContext as wc}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as Nc}from"@lexical/utils";import{$getSelection as kc,$isElementNode as Lc,$isRangeSelection as Ic,COMMAND_PRIORITY_LOW as Bn,PASTE_COMMAND as Rc}from"lexical";import{useEffect as Sc}from"react";var _c=/(?:[A-Za-z]{3,9}:(?:\/\/)?(?:[-;:&=+$,\w]+@)?[A-Za-z\d.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z\d.-]+)(?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*/,Tc=/^[\w\-./]*(?:#\w[\w-]*)?$/;function Hn(t){if(!t)return!1;if(t==="https://"||_c.test(t)||Tc.test(t))return!0;try{return new URL(t),!0}catch{}return!1}var jn=()=>{let t=Ec(3),[e]=wc(),o,n;return t[0]!==e?(o=()=>{if(!e.hasNodes([K]))throw new Error("LinkPlugin: LinkNode not registered on editor");return Nc(e.registerCommand(J,r=>(xn(r),!0),Bn),e.registerCommand(Rc,r=>{let i=kc();if(!Ic(i)||i.isCollapsed()||!(r instanceof ClipboardEvent)||r.clipboardData==null)return!1;let l=r.clipboardData.getData("text");if(!Hn(l))return!1;if(!i.getNodes().some(s=>Lc(s))){let s={doc:null,linkType:"custom",newTab:!1,url:l};return e.dispatchCommand(J,{fields:s,text:null}),r.preventDefault(),!0}return!1},Bn))},n=[e],t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]),Sc(o,n),null};var Un=[qt([{ChildComponent:fn,isActive:({selection:t})=>{if(Gn(t)){let e=be(t);return yc(e,G)!=null}return!1},isEnabled:({selection:t})=>!!(Gn(t)&&lo()?.getTextContent()?.length),key:"link",label:({i18n:t})=>t.t("lexical:link:label"),onSelect:({editor:t,isActive:e})=>{if(e)t.dispatchCommand(J,null);else{let o,n=[];if(t.getEditorState().read(()=>{o=lo()?.getTextContent(),n=lo()?.getNodes()??[]}),!o?.length)return;let r={doc:null,linkType:"custom",newTab:!1,url:"https://"};t.dispatchCommand(dt,{fields:r,selectedNodes:n,text:o})}},order:1}])],Mc=y({markdownTransformers:[bn],nodes:[K,oe],plugins:[{Component:jn,position:"normal"},{Component:Rn,position:"normal"},{Component:Sn,position:"normal"},{Component:Pn,position:"floatingAnchorElem"}],toolbarFixed:{groups:Un},toolbarInline:{groups:Un}});import{$isListNode as co,INSERT_CHECK_LIST_COMMAND as Yn,ListItemNode as Uc,ListNode as Wc}from"@lexical/list";import{$isRangeSelection as Vc}from"lexical";import{jsx as Wn,jsxs as vc}from"react/jsx-runtime";import"react";var so=()=>vc("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Wn("rect",{height:"13",rx:"1.5",stroke:"currentColor",width:"13",x:"3.5",y:"3.5"}),Wn("path",{d:"M7 10L9 12.5L13 7.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as Ac}from"react/jsx-runtime";import{ListPlugin as Dc}from"@lexical/react/LexicalListPlugin.js";import"react";var Te=()=>Ac(Dc,{});function Ee(t){return{items:t,key:"lists",label:({i18n:e})=>e.t("lexical:general:slashMenuListGroupLabel")}}import{$isListNode as Pc,ListItemNode as Hc,ListNode as Bc}from"@lexical/list";import{$createListItemNode as Oc,$createListNode as Fc,$isListItemNode as $c,$isListNode as ao}from"@lexical/list";var Vn=4,we=t=>(e,o,n)=>{let r=e.getPreviousSibling(),i=e.getNextSibling(),l=Oc(t==="check"?n[3]==="x":void 0);if(ao(i)&&i.getListType()===t){let a=i.getFirstChild();a!==null?a.insertBefore(l):i.append(l),e.remove()}else if(ao(r)&&r.getListType()===t)r.append(l),e.remove();else{let a=Fc(t,t==="number"?Number(n[2]):void 0);a.append(l),e.replace(a)}l.append(...o),l.select(0,0);let s=Math.floor(n[1].length/Vn);s&&l.setIndent(s)},fe=(t,e,o)=>{let n=[],r=t.getChildren(),i=0;for(let l of r)if($c(l)){if(l.getChildrenSize()===1){let u=l.getFirstChild();if(ao(u)){n.push(fe(u,e,o+1));continue}}let s=" ".repeat(o*Vn),a=t.getListType(),c=a==="number"?`${t.getStart()+i}. `:a==="check"?`- [${l.getChecked()?"x":" "}] `:"- ";n.push(s+c+e(l)),i++}return n.join(`
35
+ `)};var Kn={type:"element",dependencies:[Bc,Hc],export:(t,e)=>Pc(t)?fe(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:we("check")};import{jsx as jc}from"react/jsx-runtime";import{CheckListPlugin as Gc}from"@lexical/react/LexicalCheckListPlugin.js";import"react";var zn=()=>jc(Gc,{});var Zn=[V([{ChildComponent:so,isActive:({selection:t})=>{if(!Vc(t))return!1;for(let e of t.getNodes()){if(co(e)&&e.getListType()==="check")continue;let o=e.getParent();if(co(o)&&o.getListType()==="check")continue;let n=o?.getParent();if(!(co(n)&&n.getListType()==="check"))return!1}return!0},key:"checklist",label:({i18n:t})=>t.t("lexical:checklist:label"),onSelect:({editor:t})=>{t.dispatchCommand(Yn,void 0)},order:12}])],Kc=y(({featureProviderMap:t})=>{let e=[{Component:zn,position:"normal"}];return!t.has("unorderedList")&&!t.has("orderedList")&&e.push({Component:Te,position:"normal"}),{markdownTransformers:[Kn],nodes:t.has("unorderedList")||t.has("orderedList")?[]:[Wc,Uc],plugins:e,slashMenu:{groups:[Ee([{Icon:so,key:"checklist",keywords:["check list","check","checklist","cl"],label:({i18n:o})=>o.t("lexical:checklist:label"),onSelect:({editor:o})=>{o.dispatchCommand(Yn,void 0)}}])]},toolbarFixed:{groups:Zn},toolbarInline:{groups:Zn}}});import{$isListNode as mo,INSERT_ORDERED_LIST_COMMAND as qn,ListItemNode as Jc,ListNode as qc}from"@lexical/list";import{$isRangeSelection as Qc}from"lexical";import{jsx as Be,jsxs as zc}from"react/jsx-runtime";import"react";var uo=()=>zc("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Be("path",{d:"M5.89284 12.479C5.89284 13.368 5.26284 13.788 4.38084 14.236C3.75084 14.558 3.43584 14.789 3.40784 15.062H5.89984V16H2.06384V15.573C2.06384 14.523 2.92484 13.935 3.66684 13.501C4.38084 13.088 4.75184 12.878 4.75184 12.458C4.75184 12.08 4.52084 11.835 4.06584 11.835C3.58984 11.835 3.30984 12.199 3.28184 12.654H2.11284C2.18984 11.681 2.87584 10.918 4.07284 10.918C5.15784 10.918 5.89284 11.555 5.89284 12.479Z",fill:"currentColor"}),Be("path",{d:"M2.68608 4.535V3.737C3.54008 3.737 3.90408 3.513 4.02308 2.995H4.89108V8H3.68008L3.68008 4.535H2.68608Z",fill:"currentColor"}),Be("path",{d:"M8 15L17 15",stroke:"currentColor",strokeWidth:"1.5"}),Be("path",{d:"M8 10L17 10",stroke:"currentColor",strokeWidth:"1.5"}),Be("path",{d:"M8 5L17 5",stroke:"currentColor",strokeWidth:"1.5"})]});import{$isListNode as Zc,ListItemNode as Yc,ListNode as Xc}from"@lexical/list";var Xn={type:"element",dependencies:[Xc,Yc],export:(t,e)=>Zc(t)?fe(t,e,0):null,regExp:/^(\s*)(\d+)\.\s/,replace:we("number")};var Jn=[V([{ChildComponent:uo,isActive:({selection:t})=>{if(!Qc(t))return!1;for(let e of t.getNodes()){if(mo(e)&&e.getListType()==="number")continue;let o=e.getParent();if(mo(o)&&o.getListType()==="number")continue;let n=o?.getParent();if(!(mo(n)&&n.getListType()==="number"))return!1}return!0},key:"orderedList",label:({i18n:t})=>t.t("lexical:orderedList:label"),onSelect:({editor:t})=>{t.dispatchCommand(qn,void 0)},order:10}])],eu=y(({featureProviderMap:t})=>({markdownTransformers:[Xn],nodes:t.has("orderedList")?[]:[qc,Jc],plugins:t.has("orderedList")?[]:[{Component:Te,position:"normal"}],slashMenu:{groups:[Ee([{Icon:uo,key:"orderedList",keywords:["ordered list","ol"],label:({i18n:e})=>e.t("lexical:orderedList:label"),onSelect:({editor:e})=>{e.dispatchCommand(qn,void 0)}}])]},toolbarFixed:{groups:Jn},toolbarInline:{groups:Jn}}));import{$isListNode as fo,INSERT_UNORDERED_LIST_COMMAND as ti,ListItemNode as iu,ListNode as lu}from"@lexical/list";import{$isRangeSelection as su}from"lexical";import{jsx as Ne,jsxs as tu}from"react/jsx-runtime";import"react";var po=()=>tu("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ne("circle",{cx:"4",cy:"5",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),Ne("circle",{cx:"4",cy:"10",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),Ne("circle",{cx:"4",cy:"15",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),Ne("path",{d:"M17 5H7",stroke:"currentColor",strokeWidth:"1.5"}),Ne("path",{d:"M17 10H7",stroke:"currentColor",strokeWidth:"1.5"}),Ne("path",{d:"M17 15H7",stroke:"currentColor",strokeWidth:"1.5"})]});import{$isListNode as ou,ListItemNode as ru,ListNode as nu}from"@lexical/list";var Qn={type:"element",dependencies:[nu,ru],export:(t,e)=>ou(t)?fe(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:we("bullet")};var ei=[V([{ChildComponent:po,isActive:({selection:t})=>{if(!su(t))return!1;for(let e of t.getNodes()){if(fo(e)&&e.getListType()==="bullet")continue;let o=e.getParent();if(fo(o)&&o.getListType()==="bullet")continue;let n=o?.getParent();if(!(fo(n)&&n.getListType()==="bullet"))return!1}return!0},key:"unorderedList",label:({i18n:t})=>t.t("lexical:unorderedList:label"),onSelect:({editor:t})=>{t.dispatchCommand(ti,void 0)},order:11}])],au=y({markdownTransformers:[Qn],nodes:[lu,iu],plugins:[{Component:Te,position:"normal"}],slashMenu:{groups:[Ee([{Icon:po,key:"unorderedList",keywords:["unordered list","ul"],label:({i18n:t})=>t.t("lexical:unorderedList:label"),onSelect:({editor:t})=>{t.dispatchCommand(ti,void 0)}}])]},toolbarFixed:{groups:ei},toolbarInline:{groups:ei}});import{jsx as cu}from"react/jsx-runtime";import{addClassNamesToElement as uu}from"@lexical/utils";import{DecoratorNode as du}from"lexical";import*as oi from"react";var mu=oi.lazy(()=>import("./Component-MBLHTKDK.js").then(t=>({default:t.UnknownConvertedNodeComponent}))),je=class t extends du{__data;constructor({data:e,key:o}){super(o),this.__data=e}static clone(e){return new t({data:e.__data,key:e.__key})}static getType(){return"unknownConverted"}static importJSON(e){return pu({data:e.data})}canInsertTextAfter(){return!0}canInsertTextBefore(){return!0}createDOM(e){let o=document.createElement("span");return uu(o,"unknownConverted"),o}decorate(){return cu(mu,{data:this.__data})}exportJSON(){return{type:this.getType(),data:this.__data,version:1}}isInline(){return!0}updateDOM(e,o){return!1}};function pu({data:t}){return new je({data:t})}var fu=y(()=>({nodes:[je]}));import{jsx as hu}from"react/jsx-runtime";import{addClassNamesToElement as gu}from"@lexical/utils";import{DecoratorNode as Cu}from"lexical";import*as ri from"react";var xu=ri.lazy(()=>import("./Component-DOSSWC76.js").then(t=>({default:t.UnknownConvertedNodeComponent}))),Ge=class t extends Cu{__data;constructor({data:e,key:o}){super(o),this.__data=e}static clone(e){return new t({data:e.__data,key:e.__key})}static getType(){return"unknownConverted"}static importJSON(e){return bu({data:e.data})}canInsertTextAfter(){return!0}canInsertTextBefore(){return!0}createDOM(e){let o=document.createElement("span");return gu(o,"unknownConverted"),o}decorate(){return hu(xu,{data:this.__data})}exportJSON(){return{type:this.getType(),data:this.__data,version:1}}isInline(){return!0}updateDOM(e,o){return!1}};function bu({data:t}){return new Ge({data:t})}var _u=y(()=>({nodes:[Ge]}));import{$setBlocksType as li}from"@lexical/selection";import{$createParagraphNode as si,$getSelection as ai,$isParagraphNode as ni,$isRangeSelection as Tu}from"lexical";var ii=[V([{ChildComponent:$e,isActive:({selection:t})=>{if(!Tu(t))return!1;for(let e of t.getNodes())if(!ni(e)&&!ni(e.getParent()))return!1;return!0},key:"paragraph",label:({i18n:t})=>t.t("lexical:paragraph:label2"),onSelect:({editor:t})=>{t.update(()=>{let e=ai();li(e,()=>si())})},order:1}])],Eu=y({slashMenu:{groups:[U([{Icon:$e,key:"paragraph",keywords:["normal","paragraph","p","text"],label:({i18n:t})=>t.t("lexical:paragraph:label"),onSelect:({editor:t})=>{t.update(()=>{let e=ai();li(e,()=>si())})}}])]},toolbarFixed:{groups:ii},toolbarInline:{groups:ii}});import{$isNodeSelection as Xu}from"lexical";import{jsx as Ue,jsxs as wu}from"react/jsx-runtime";import"react";var ho=()=>wu("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ue("g",{clipPath:"url(#clip0_4397_10817)",children:Ue("path",{d:"M7.75 12.25L15.25 4.75M15.25 4.75H11.5M15.25 4.75V8.5M13 11.5V13.75C13 14.5784 12.3284 15.25 11.5 15.25H6.25C5.42157 15.25 4.75 14.5784 4.75 13.75V8.5C4.75 7.67157 5.42157 7 6.25 7H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),Ue("defs",{children:Ue("clipPath",{id:"clip0_4397_10817",children:Ue("rect",{fill:"currentColor",height:"12",transform:"translate(4 4)",width:"12"})})})]});import{c as Pu}from"react/compiler-runtime";import{jsx as Hu}from"react/jsx-runtime";import{useLexicalComposerContext as Bu}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as ju}from"@lexical/utils";import{useConfig as Gu}from"@payloadcms/ui";import{$getPreviousSelection as Uu,$getSelection as Wu,$isParagraphNode as fi,$isRangeSelection as Vu,COMMAND_PRIORITY_EDITOR as Ku,createCommand as zu}from"lexical";import{useEffect as Zu}from"react";import{c as Au}from"react/compiler-runtime";import{jsx as ft}from"react/jsx-runtime";import{useLexicalComposerContext as Du}from"@lexical/react/LexicalComposerContext.js";import{$getNodeByKey as Ou,COMMAND_PRIORITY_EDITOR as Fu}from"lexical";import{useEffect as ui,useState as di}from"react";import{c as Nu}from"react/compiler-runtime";import{jsx as ku}from"react/jsx-runtime";import{useLexicalComposerContext as Lu}from"@lexical/react/LexicalComposerContext";import{useListDrawer as Iu,useModal as Ru}from"@payloadcms/ui";import{$getPreviousSelection as Su,$getSelection as yu,$setSelection as Mu}from"lexical";import{useEffect as vu,useState as ci}from"react";var pt=t=>{let e=Nu(23),[o]=Lu(),[n,r]=ci(null),[i,l]=ci(!1),[s,a,c]=Iu(t),{closeDrawer:u,drawerSlug:d,isDrawerOpen:m,openDrawer:f}=c,{modalState:p}=Ru(),h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{let C=yu()??Su();r(C)},e[0]=h):h=e[0];let g=h,k;e[1]!==n||e[2]!==o?(k=()=>{n&&o.update(()=>{Mu(n.clone())},{discrete:!0,skipTransforms:!0})},e[1]=n,e[2]=o,e[3]=k):k=e[3];let v=k,A;e[4]!==u?(A=()=>{u()},e[4]=u,e[5]=A):A=e[5];let b=A,E,x;e[6]!==i||e[7]!==p||e[8]!==d||e[9]!==v?(E=()=>{if(!i)return;let C=p[d];C&&!C?.isOpen&&(l(!1),setTimeout(()=>{v()},1))},x=[p,d,v,i],e[6]=i,e[7]=p,e[8]=d,e[9]=v,e[10]=E,e[11]=x):(E=e[10],x=e[11]),vu(E,x);let L;e[12]!==a?(L=C=>ku(a,{...C,onClick:()=>{g()}}),e[12]=a,e[13]=L):L=e[13];let S;e[14]!==f?(S=()=>{g(),f(),l(!0)},e[14]=f,e[15]=S):S=e[15];let w;return e[16]!==b||e[17]!==m||e[18]!==s||e[19]!==d||e[20]!==L||e[21]!==S?(w={closeListDrawer:b,isListDrawerOpen:m,ListDrawer:s,listDrawerSlug:d,ListDrawerToggler:L,openListDrawer:S},e[16]=b,e[17]=m,e[18]=s,e[19]=d,e[20]=L,e[21]=S,e[22]=w):w=e[22],w};var $u=({editor:t,relationTo:e,replaceNodeKey:o,value:n})=>{o?t.update(()=>{let r=Ou(o);r&&r.replace(Ae({relationTo:e,value:n}))}):t.dispatchCommand(go,{relationTo:e,value:n})},mi=t=>{let e=Au(21),{enabledCollectionSlugs:o}=t,[n]=Du(),r;e[0]!==o?(r=()=>o?.[0],e[0]=o,e[1]=r):r=e[1];let[i,l]=di(r),[s,a]=di(null),c=o||void 0,u;e[2]!==c||e[3]!==i?(u={collectionSlugs:c,selectedCollection:i},e[2]=c,e[3]=i,e[4]=u):u=e[4];let{closeListDrawer:d,isListDrawerOpen:m,ListDrawer:f,openListDrawer:p}=pt(u),h,g;e[5]!==n||e[6]!==p?(h=()=>n.registerCommand(Me,x=>(a(x?.replace?x?.replace.nodeKey:null),p(),!0),Fu),g=[n,p],e[5]=n,e[6]=p,e[7]=h,e[8]=g):(h=e[7],g=e[8]),ui(h,g);let k;e[9]!==n||e[10]!==s||e[11]!==d?(k=x=>{let{collectionSlug:L,docID:S}=x;$u({editor:n,relationTo:L,replaceNodeKey:s,value:S}),d()},e[9]=n,e[10]=s,e[11]=d,e[12]=k):k=e[12];let v=k,A;e[13]!==o?(A=()=>{l(o?.[0])},e[13]=o,e[14]=A):A=e[14];let b;e[15]!==m||e[16]!==o?(b=[m,o],e[15]=m,e[16]=o,e[17]=b):b=e[17],ui(A,b);let E;return e[18]!==v||e[19]!==f?(E=ft(f,{onSelect:v}),e[18]=v,e[19]=f,e[20]=E):E=e[20],E},pi=t=>(t?.enabledCollectionSlugs?.length??-1)>0?ft(mi,{...t}):ft(qe,{...t,children:ft(mi,{...t})});var go=zu("INSERT_RELATIONSHIP_COMMAND"),hi=t=>{let e=Pu(10),{clientProps:o}=t,[n]=Bu(),{config:r}=Gu(),{collections:i}=r,l=null;if(o?.enabledCollections)l=o?.enabledCollections;else if(o?.disabledCollections){let u;if(e[0]!==o||e[1]!==i){let d;e[3]!==o?(d=m=>{let{slug:f}=m;return!o?.disabledCollections?.includes(f)},e[3]=o,e[4]=d):d=e[4],u=i.filter(d).map(Yu),e[0]=o,e[1]=i,e[2]=u}else u=e[2];l=u}let s,a;e[5]!==n?(s=()=>{if(!n.hasNodes([ve]))throw new Error("RelationshipPlugin: RelationshipNode not registered on editor");return n.registerCommand(go,u=>{let d=Wu()||Uu();if(Vu(d)){let m=Ae(u);ju(m);let{focus:f}=d,p=f.getNode();fi(p)&&p.getTextContentSize()===0&&p.getParentOrThrow().getChildren().filter(h=>fi(h)).length>1&&p.remove()}return!0},Ku)},a=[n],e[5]=n,e[6]=s,e[7]=a):(s=e[6],a=e[7]),Zu(s,a);let c;return e[8]!==l?(c=Hu(pi,{enabledCollectionSlugs:l}),e[8]=l,e[9]=c):c=e[9],c};function Yu(t){let{slug:e}=t;return e}var Ju=y({nodes:[ve],plugins:[{Component:hi,position:"normal"}],slashMenu:{groups:[U([{Icon:ho,key:"relationship",keywords:["relationship","relation","rel"],label:({i18n:t})=>t.t("lexical:relationship:label"),onSelect:({editor:t})=>{t.dispatchCommand(Me,{replace:!1})}}])]},toolbarFixed:{groups:[ee([{ChildComponent:ho,isActive:({selection:t})=>{if(!Xu(t)||!t.getNodes().length)return!1;let e=t.getNodes()[0];return $t(e)},key:"relationship",label:({i18n:t})=>t.t("lexical:relationship:label"),onSelect:({editor:t})=>{t.dispatchCommand(Me,{replace:!1})}}])]}});import{c as Ei}from"react/compiler-runtime";import{jsx as Y,jsxs as dd}from"react/jsx-runtime";import{useLexicalComposerContext as md}from"@lexical/react/LexicalComposerContext.js";import{useScrollInfo as pd,useThrottledEffect as fd,useTranslation as hd}from"@payloadcms/ui";import*as ne from"react";import{useMemo as gd}from"react";import{jsx as qu}from"react/jsx-runtime";import{mergeRegister as Qu}from"@lexical/utils";import{$getSelection as ed}from"lexical";import{useCallback as td,useEffect as ht,useState as Co}from"react";var xo="toolbar-popup__button",We=({children:t,editor:e,item:o})=>{let[n,r]=Co(!0),[i,l]=Co(!1),[s,a]=Co(xo),c=B(),u=td(()=>{e.getEditorState().read(()=>{let d=ed();if(d){if(o.isActive){let m=o.isActive({editor:e,editorConfigContext:c,selection:d});i!==m&&l(m)}if(o.isEnabled){let m=o.isEnabled({editor:e,editorConfigContext:c,selection:d});n!==m&&r(m)}}})},[i,e,c,n,o]);return ht(()=>{u()},[u]),ht(()=>(document.addEventListener("mouseup",u),()=>{document.removeEventListener("mouseup",u)}),[u]),ht(()=>Qu(e.registerUpdateListener(()=>{u()})),[e,u]),ht(()=>{a([xo,n===!1?"disabled":"",i?"active":"",o?.key?`${xo}-`+o.key:""].filter(Boolean).join(" "))},[n,i,s,o.key]),qu("button",{className:s,onClick:()=>{if(n!==!1)return e._updateTags=new Set(["toolbar",...e._updateTags]),e.focus(()=>{o.onSelect?.({editor:e,isActive:i})}),!0},onMouseDown:d=>{d.preventDefault()},type:"button",children:t})};import{c as Ti}from"react/compiler-runtime";import{jsx as Ke,jsxs as ld}from"react/jsx-runtime";import To,{useEffect as _i}from"react";import{mergeRegister as sd}from"@lexical/utils";import{useTranslation as ad}from"@payloadcms/ui";import{$getSelection as cd}from"lexical";import{jsx as ae,jsxs as gi}from"react/jsx-runtime";import gt,{useCallback as od,useEffect as Ve,useMemo as rd,useRef as _o,useState as Ct}from"react";import{createPortal as nd}from"react-dom";var bo="toolbar-popup__dropdown-item",Ci=gt.createContext(null);function xi({active:t,children:e,editor:o,enabled:n,item:r,title:i}){let[l,s]=Ct(bo);Ve(()=>{s([bo,n===!1?"disabled":"",t?"active":"",r?.key?`${bo}-${r.key}`:""].filter(Boolean).join(" "))},[n,t,l,r.key]);let a=_o(null),c=gt.useContext(Ci);if(c===null)throw new Error("DropDownItem must be used within a DropDown");let{registerItem:u}=c;return Ve(()=>{a?.current!=null&&u(a)},[a,u]),ae("button",{className:l,onClick:()=>{n!==!1&&(o._updateTags=new Set(["toolbar",...o._updateTags]),o.focus(()=>{r.onSelect?.({editor:o,isActive:t})}))},onMouseDown:d=>{d.preventDefault()},ref:a,title:i,type:"button",children:e})}function id({children:t,dropDownRef:e,itemsContainerClassNames:o,onClose:n}){let[r,i]=Ct(),[l,s]=Ct(),a=od(d=>{i(m=>m!=null?[...m,d]:[d])},[i]),c=d=>{if(r==null)return;let{key:m}=d;["ArrowDown","ArrowUp","Escape","Tab"].includes(m)&&d.preventDefault(),m==="Escape"||m==="Tab"?n():m==="ArrowUp"?s(f=>{if(f==null)return r[0];let p=r.indexOf(f)-1;return r[p===-1?r.length-1:p]}):m==="ArrowDown"&&s(f=>f==null?r[0]:r[r.indexOf(f)+1])},u=rd(()=>({registerItem:a}),[a]);return Ve(()=>{r!=null&&l==null&&s(r[0]),l!=null&&l?.current!=null&&l.current.focus()},[r,l]),ae(Ci.Provider,{value:u,children:ae("div",{className:(o??["toolbar-popup__dropdown-items"]).join(" "),onKeyDown:c,ref:e,children:t})})}function bi({buttonAriaLabel:t,buttonClassName:e,children:o,disabled:n=!1,Icon:r,itemsContainerClassNames:i,label:l,stopCloseOnClickSelf:s}){let a=_o(null),c=_o(null),[u,d]=Ct(!1),m=()=>{d(!1),c?.current!=null&&c.current.focus()};Ve(()=>{let p=c.current,h=a.current;if(u&&p!==null&&h!==null){let{left:g,top:k}=p.getBoundingClientRect(),v=window.scrollY||document.documentElement.scrollTop;h.style.top=`${k+v+p.offsetHeight+5}px`,h.style.left=`${Math.min(g-5,window.innerWidth-h.offsetWidth-20)}px`}},[a,c,u]),Ve(()=>{let p=c.current;if(p!==null&&u){let h=g=>{let{target:k}=g;s!=null&&a.current!=null&&a.current.contains(k)||p.contains(k)||d(!1)};return document.addEventListener("click",h),()=>{document.removeEventListener("click",h)}}},[a,c,u,s]);let f=nd(ae(id,{dropDownRef:a,itemsContainerClassNames:i,onClose:m,children:o}),document.body);return gi(gt.Fragment,{children:[gi("button",{"aria-label":t,className:e+(u?" active":""),disabled:n,onClick:p=>{p.preventDefault(),d(!u)},onMouseDown:p=>{p.preventDefault()},ref:c,type:"button",children:[r&&ae(r,{}),l&&ae("span",{className:"toolbar-popup__dropdown-label",children:l}),ae("i",{className:"toolbar-popup__dropdown-caret"})]}),u&&ae(gt.Fragment,{children:f})]})}var Eo="toolbar-popup__dropdown",ud=t=>{let e=Ti(20),{active:o,anchorElem:n,editor:r,enabled:i,item:l}=t,{i18n:s}=ad(),{fieldProps:a}=B(),{featureClientSchemaMap:c,schemaPath:u}=a;if(l.Component){let p;return e[0]!==l||e[1]!==o||e[2]!==n||e[3]!==r||e[4]!==i?(p=l?.Component&&Ke(l.Component,{active:o,anchorElem:n,editor:r,enabled:i,item:l},l.key),e[0]=l,e[1]=o,e[2]=n,e[3]=r,e[4]=i,e[5]=p):p=e[5],p}let d=l.key;if(l.label){let p;e[6]!==l||e[7]!==c||e[8]!==s||e[9]!==u?(p=typeof l.label=="function"?l.label({featureClientSchemaMap:c,i18n:s,schemaPath:u}):l.label,e[6]=l,e[7]=c,e[8]=s,e[9]=u,e[10]=p):p=e[10],d=p}d.length>25&&(d=d.substring(0,25)+"...");let m;e[11]!==l?.ChildComponent?(m=l?.ChildComponent&&Ke(l.ChildComponent,{}),e[11]=l?.ChildComponent,e[12]=m):m=e[12];let f;return e[13]!==d||e[14]!==m||e[15]!==o||e[16]!==r||e[17]!==i||e[18]!==l?(f=ld(xi,{active:o,editor:r,enabled:i,item:l,children:[m,Ke("span",{className:"text",children:d})]},l.key),e[13]=d,e[14]=m,e[15]=o,e[16]=r,e[17]=i,e[18]=l,e[19]=f):f=e[19],f},he=t=>{let e=Ti(42),{anchorElem:o,classNames:n,editor:r,group:i,Icon:l,itemsContainerClassNames:s,label:a,maxActiveItems:c,onActiveChange:u}=t,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[0]=d):d=e[0];let[m,f]=To.useState(d),p;e[1]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[1]=p):p=e[1];let[h,g]=To.useState(p),[k,v]=To.useState(!0),A=B(),{items:b,key:E}=i,x;e[2]!==r||e[3]!==b||e[4]!==c||e[5]!==A||e[6]!==i||e[7]!==u?(x=()=>{r.getEditorState().read(()=>{let H=cd();if(!H)return;let P=[],z=[],Ce=[];for(let X of b)X.isActive&&(!c||P.length<c)&&X.isActive({editor:r,editorConfigContext:A,selection:H})&&(P.push(X.key),z.push(X)),X.isEnabled?X.isEnabled({editor:r,editorConfigContext:A,selection:H})&&Ce.push(X.key):Ce.push(X.key);i.isEnabled&&v(i.isEnabled({editor:r,editorConfigContext:A,selection:H})),f(P),g(Ce),u&&u({activeItems:z})})},e[2]=r,e[3]=b,e[4]=c,e[5]=A,e[6]=i,e[7]=u,e[8]=x):x=e[8];let L=x,S,w;e[9]!==L?(S=()=>{L()},w=[L],e[9]=L,e[10]=S,e[11]=w):(S=e[10],w=e[11]),_i(S,w);let C,R;e[12]!==r||e[13]!==L?(C=()=>sd(r.registerUpdateListener(()=>{L()})),R=[r,L],e[12]=r,e[13]=L,e[14]=C,e[15]=R):(C=e[14],R=e[15]),_i(C,R);let N=`${E} dropdown`,_=`${Eo}-${E}`,I;e[16]!==n?(I=n||[],e[16]=n,e[17]=I):I=e[17];let T;e[18]!==_||e[19]!==I?(T=[Eo,_,...I].filter(Boolean),e[18]=_,e[19]=I,e[20]=T):T=e[20];let M=T.join(" "),O=!k,D;e[21]!==s?(D=s||[],e[21]=s,e[22]=D):D=e[22];let j;if(e[23]!==D||e[24]!==b||e[25]!==m||e[26]!==o||e[27]!==r||e[28]!==h||e[29]!==N||e[30]!==M||e[31]!==O||e[32]!==l||e[33]!==a||e[34]!==E){let H;e[36]!==b||e[37]!==m||e[38]!==o||e[39]!==r||e[40]!==h?(H=b.length&&b.map(P=>Ke(ud,{active:m.includes(P.key),anchorElem:o,editor:r,enabled:h.includes(P.key),item:P},P.key)),e[36]=b,e[37]=m,e[38]=o,e[39]=r,e[40]=h,e[41]=H):H=e[41],j=Ke(bi,{buttonAriaLabel:N,buttonClassName:M,disabled:O,Icon:l,itemsContainerClassNames:[`${Eo}-items`,...D],label:a,children:H},E),e[23]=D,e[24]=b,e[25]=m,e[26]=o,e[27]=r,e[28]=h,e[29]=N,e[30]=M,e[31]=O,e[32]=l,e[33]=a,e[34]=E,e[35]=j}else j=e[35];return j};function Cd({anchorElem:t,editor:e,item:o}){return o.Component?o?.Component&&Y(o.Component,{anchorElem:t,editor:e,item:o},o.key):o.ChildComponent?Y(We,{editor:e,item:o,children:Y(o.ChildComponent,{})},o.key):null}function xd(t){let e=Ei(26),{anchorElem:o,editor:n,editorConfig:r,group:i,index:l}=t,{i18n:s}=hd(),{fieldProps:a}=B(),{featureClientSchemaMap:c,schemaPath:u}=a,[d,m]=ne.useState(void 0),[f,p]=ne.useState(void 0),h,g;e[0]!==i?(h=()=>{i?.type==="dropdown"&&i.items.length&&i.ChildComponent?p(()=>i.ChildComponent):p(void 0)},g=[i],e[0]=i,e[1]=h,e[2]=g):(h=e[1],g=e[2]),ne.useEffect(h,g);let k;e[3]!==i||e[4]!==c||e[5]!==s||e[6]!==u?(k=L=>{let{activeItems:S}=L;if(!S.length){i?.type==="dropdown"&&i.items.length&&i.ChildComponent?(p(()=>i.ChildComponent),m(void 0)):(p(void 0),m(void 0));return}let w=S[0],C=w.key;w.label&&(C=typeof w.label=="function"?w.label({featureClientSchemaMap:c,i18n:s,schemaPath:u}):w.label),C.length>25&&(C=C.substring(0,25)+"..."),m(C),p(()=>w.ChildComponent)},e[3]=i,e[4]=c,e[5]=s,e[6]=u,e[7]=k):k=e[7];let v=k,A=`fixed-toolbar__group fixed-toolbar__group-${i.key}`,b;e[8]!==i||e[9]!==f||e[10]!==o||e[11]!==n||e[12]!==d||e[13]!==v?(b=i.type==="dropdown"&&i.items.length&&(f?Y(he,{anchorElem:o,editor:n,group:i,Icon:f,itemsContainerClassNames:["fixed-toolbar__dropdown-items"],label:d,maxActiveItems:1,onActiveChange:v}):Y(he,{anchorElem:o,editor:n,group:i,itemsContainerClassNames:["fixed-toolbar__dropdown-items"],label:d,maxActiveItems:1,onActiveChange:v})),e[8]=i,e[9]=f,e[10]=o,e[11]=n,e[12]=d,e[13]=v,e[14]=b):b=e[14];let E;e[15]!==i||e[16]!==o||e[17]!==n?(E=i.type==="buttons"&&i.items.length&&i.items.map(L=>Y(Cd,{anchorElem:o,editor:n,item:L},L.key)),e[15]=i,e[16]=o,e[17]=n,e[18]=E):E=e[18];let x;return e[19]!==r.features.toolbarFixed||e[20]!==l||e[21]!==b||e[22]!==E||e[23]!==A||e[24]!==i.key?(x=dd("div",{className:A,children:[b,E,l<r.features.toolbarFixed?.groups.length-1&&Y("div",{className:"divider"})]},i.key),e[19]=r.features.toolbarFixed,e[20]=l,e[21]=b,e[22]=E,e[23]=A,e[24]=i.key,e[25]=x):x=e[25],x}function bd({anchorElem:t,clientProps:e,editor:o,editorConfig:n,parentWithFixedToolbar:r}){let i=ne.useRef(null),{y:l}=pd(),s=gd(()=>{if(!r||e?.disableIfParentHasFixedToolbar)return null;let c=r.editorContainerRef.current.previousElementSibling;for(;c;){if(c.classList.contains("fixed-toolbar"))return c;c=c.previousElementSibling}return null},[e?.disableIfParentHasFixedToolbar,r]);return fd(()=>{if(!s)return;let a=i.current;if(!a)return;let c=a.getBoundingClientRect(),u=s.getBoundingClientRect();if(!(c.bottom<u.top||c.top>u.bottom))a.className="fixed-toolbar fixed-toolbar--overlapping",s.className="fixed-toolbar fixed-toolbar--hide";else{if(!a.classList.contains("fixed-toolbar--overlapping"))return;a.className="fixed-toolbar",s.className="fixed-toolbar"}},50,[i,s,l]),Y("div",{className:"fixed-toolbar",onFocus:a=>{a.stopPropagation()},ref:i,children:o.isEditable()&&Y(ne.Fragment,{children:n?.features&&n.features?.toolbarFixed?.groups.map((a,c)=>Y(xd,{anchorElem:t,editor:o,editorConfig:n,group:a,index:c},a.key))})})}var wi=t=>{if(t.parentEditor?.editorConfig){if(t.parentEditor?.editorConfig.resolvedFeatureMap.has("toolbarFixed"))return t.parentEditor;if(t.parentEditor)return wi(t.parentEditor)}return!1},Ni=t=>{let e=Ei(7),{anchorElem:o,clientProps:n}=t,[r]=md(),i=B(),{editorConfig:l}=i,s=n.applyToFocusedEditor&&i.focusedEditor?.editor||r,a=n.applyToFocusedEditor&&i.focusedEditor?.editorConfig||l,c,u;if(e[0]!==i||e[1]!==n?.disableIfParentHasFixedToolbar||e[2]!==a||e[3]!==o||e[4]!==s){u=Symbol.for("react.early_return_sentinel");e:{let d=wi(i);if(n?.disableIfParentHasFixedToolbar&&d){u=null;break e}if(!a?.features?.toolbarFixed?.groups?.length){u=null;break e}c=Y(bd,{anchorElem:o,editor:s,editorConfig:a,parentWithFixedToolbar:d})}e[0]=i,e[1]=n?.disableIfParentHasFixedToolbar,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e[6]=u}else c=e[5],u=e[6];return u!==Symbol.for("react.early_return_sentinel")?u:c};var _d=y({plugins:[{Component:Ni,position:"aboveContainer"}]});import{c as Ii}from"react/compiler-runtime";import{jsx as q,jsxs as Ri}from"react/jsx-runtime";import{useLexicalComposerContext as Td}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as Si}from"@lexical/utils";import{$getSelection as yi,$isRangeSelection as ki,$isTextNode as Ed,COMMAND_PRIORITY_LOW as wd,SELECTION_CHANGE_COMMAND as Nd}from"lexical";import{useCallback as bt,useEffect as ze,useRef as Li,useState as kd}from"react";import*as _t from"react";import{createPortal as Ld}from"react-dom";function wo(t,e){let o=t.getRangeAt(0),n;if(t.anchorNode===e){let r=e;for(;r.firstElementChild!=null;)r=r.firstElementChild;n=r.getBoundingClientRect()}else n=o.getBoundingClientRect();return n}function xt(t){let{alwaysDisplayOnTop:e=!1,anchorElem:o,anchorFlippedOffset:n=0,floatingElem:r,horizontalOffset:i=32,horizontalPosition:l="left",specialHandlingForCaret:s=!1,targetRect:a,verticalGap:c=10}=t,u=o.parentElement;if(a===null||u==null){r.style.opacity="0",r.style.transform="translate(-10000px, -10000px)";return}let d=r.getBoundingClientRect(),m=o.getBoundingClientRect(),f=u.getBoundingClientRect(),p=a.top-d.height-c,h=a.left-i;l==="center"&&(h=a.left+a.width/2-d.width/2);let g=0;return!e&&p<f.top&&!s&&(g=d.height+a.height+c*2,p+=g),l==="center"?h+d.width>f.right?h=f.right-d.width-i:h<f.left&&(h=f.left+i):h+d.width>f.right&&(h=f.right-d.width-i),h-=m.left,r.style.opacity="1",s&&n!==0?(p-=m.bottom-n+d.height-3,r.style.transform=`translate(${h}px, ${p}px) rotate(180deg)`):(p-=m.top,r.style.transform=`translate(${h}px, ${p}px)`),g}function Id({anchorElem:t,editor:e,item:o}){return o.Component?o?.Component&&q(o.Component,{anchorElem:t,editor:e,item:o},o.key):o.ChildComponent?q(We,{editor:e,item:o,children:q(o.ChildComponent,{})},o.key):null}function Rd(t){let e=Ii(22),{anchorElem:o,editor:n,group:r,index:i}=t,{editorConfig:l}=B(),[s,a]=_t.useState(),c,u;e[0]!==r?(c=()=>{r?.type==="dropdown"&&r.items.length&&r.ChildComponent?a(()=>r.ChildComponent):a(void 0)},u=[r],e[0]=r,e[1]=c,e[2]=u):(c=e[1],u=e[2]),_t.useEffect(c,u);let d;e[3]!==r?(d=k=>{let{activeItems:v}=k;if(!v.length){r?.type==="dropdown"&&r.items.length&&r.ChildComponent?a(()=>r.ChildComponent):a(void 0);return}let A=v[0];a(()=>A.ChildComponent)},e[3]=r,e[4]=d):d=e[4];let m=d,f=`inline-toolbar-popup__group inline-toolbar-popup__group-${r.key}`,p;e[5]!==r||e[6]!==s||e[7]!==o||e[8]!==n||e[9]!==m?(p=r.type==="dropdown"&&r.items.length&&(s?q(he,{anchorElem:o,editor:n,group:r,Icon:s,maxActiveItems:1,onActiveChange:m}):q(he,{anchorElem:o,editor:n,group:r,maxActiveItems:1,onActiveChange:m})),e[5]=r,e[6]=s,e[7]=o,e[8]=n,e[9]=m,e[10]=p):p=e[10];let h;e[11]!==r||e[12]!==o||e[13]!==n?(h=r.type==="buttons"&&r.items.length&&r.items.map(k=>q(Id,{anchorElem:o,editor:n,item:k},k.key)),e[11]=r,e[12]=o,e[13]=n,e[14]=h):h=e[14];let g;return e[15]!==l.features.toolbarInline||e[16]!==i||e[17]!==p||e[18]!==h||e[19]!==f||e[20]!==r.key?(g=Ri("div",{className:f,children:[p,h,i<l.features.toolbarInline?.groups.length-1&&q("div",{className:"divider"})]},r.key),e[15]=l.features.toolbarInline,e[16]=i,e[17]=p,e[18]=h,e[19]=f,e[20]=r.key,e[21]=g):g=e[21],g}function Sd({anchorElem:t,editor:e}){let o=Li(null),n=Li(null),{editorConfig:r}=B(),i=bt(()=>{if(o?.current){let c=o.current.style.opacity==="0",u=o.current.style.pointerEvents==="none";c||(o.current.style.opacity="0"),u||(o.current.style.pointerEvents="none")}},[o]),l=bt(c=>{if(o?.current&&(c.buttons===1||c.buttons===3)){let u=o.current.style.opacity==="0",d=o.current.style.pointerEvents==="none";if(!u||!d){let m=c.clientX,f=c.clientY,p=document.elementFromPoint(m,f);o.current.contains(p)||i()}}},[i]),s=bt(()=>{o?.current&&(o.current.style.opacity!=="1"&&(o.current.style.opacity="1"),o.current.style.pointerEvents!=="auto"&&(o.current.style.pointerEvents="auto"))},[]);ze(()=>(document.addEventListener("mousemove",l),document.addEventListener("mouseup",s),()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)}),[o,l,s]);let a=bt(()=>{let c=yi(),u=window.getSelection();if(o.current===null)return;let d=t.querySelector(":scope > .link-editor"),m=d!==null&&"style"in d&&d?.style?.opacity==="1",f=e.getRootElement();if(c!==null&&u!==null&&!u.isCollapsed&&f!==null&&f.contains(u.anchorNode)){let p=wo(u,f),h=xt({alwaysDisplayOnTop:m,anchorElem:t,floatingElem:o.current,horizontalPosition:"center",targetRect:p});n.current&&xt({anchorElem:o.current,anchorFlippedOffset:h,floatingElem:n.current,horizontalOffset:5,horizontalPosition:"center",specialHandlingForCaret:!0,targetRect:p,verticalGap:8})}else i()},[e,i,t]);return ze(()=>{let c=t.parentElement,u=()=>{e.getEditorState().read(()=>{a()})};return window.addEventListener("resize",u),c&&c.addEventListener("scroll",u),()=>{window.removeEventListener("resize",u),c&&c.removeEventListener("scroll",u)}},[e,a,t]),ze(()=>(e.getEditorState().read(()=>{a()}),Si(e.registerUpdateListener(({editorState:c})=>{c.read(()=>{a()})}),e.registerCommand(Nd,()=>(a(),!1),wd))),[e,a]),Ri("div",{className:"inline-toolbar-popup",ref:o,children:[q("div",{className:"caret",ref:n}),r?.features&&r.features?.toolbarInline?.groups.map((c,u)=>q(Rd,{anchorElem:t,editor:e,group:c,index:u},c.key))]})}function yd(t,e){let o=Ii(12),[n,r]=kd(!1),i;o[0]!==t?(i=()=>{t.getEditorState().read(()=>{if(t.isComposing())return;let m=yi(),f=window.getSelection(),p=t.getRootElement();if(f!==null&&(!ki(m)||p===null||!p.contains(f.anchorNode))){r(!1);return}if(!ki(m))return;if(m.getTextContent()!==""){let g=m.getNodes(),k=!1;for(let v of g)if(Ed(v)){r(!0),k=!0;break}k||r(!1)}else r(!1);let h=m.getTextContent().replace(/\n/g,"");if(!m.isCollapsed()&&h===""){r(!1);return}})},o[0]=t,o[1]=i):i=o[1];let l=i,s,a;o[2]!==l?(s=()=>(document.addEventListener("selectionchange",l),document.addEventListener("mouseup",l),()=>{document.removeEventListener("selectionchange",l),document.removeEventListener("mouseup",l)}),a=[l],o[2]=l,o[3]=s,o[4]=a):(s=o[3],a=o[4]),ze(s,a);let c,u;if(o[5]!==t||o[6]!==l?(c=()=>Si(t.registerUpdateListener(()=>{l()}),t.registerRootListener(()=>{t.getRootElement()===null&&r(!1)})),u=[t,l],o[5]=t,o[6]=l,o[7]=c,o[8]=u):(c=o[7],u=o[8]),ze(c,u),!n||!t.isEditable())return null;let d;return o[9]!==e||o[10]!==t?(d=Ld(q(Sd,{anchorElem:e,editor:t}),e),o[9]=e,o[10]=t,o[11]=d):d=o[11],d}var Mi=t=>{let{anchorElem:e}=t,[o]=Td();return yd(o,e)};var Md=y({plugins:[{Component:Mi,position:"floatingAnchorElem"}]});import{TableCellNode as qm,TableNode as Qm,TableRowNode as ep}from"@lexical/table";import{jsx as vi}from"react/jsx-runtime";import"react";var No=()=>vi("svg",{className:"icon",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:vi("path",{clipRule:"evenodd",d:"M5.33333 4.5C4.8731 4.5 4.5 4.8731 4.5 5.33333V7.5H9.5V4.5H5.33333ZM5.33333 3.5C4.32081 3.5 3.5 4.32081 3.5 5.33333V14.6667C3.5 15.6792 4.32081 16.5 5.33333 16.5H14.6667C15.6792 16.5 16.5 15.6792 16.5 14.6667V5.33333C16.5 4.32081 15.6792 3.5 14.6667 3.5H5.33333ZM10.5 4.5V7.5H15.5V5.33333C15.5 4.8731 15.1269 4.5 14.6667 4.5H10.5ZM15.5 8.5H10.5V11.5H15.5V8.5ZM15.5 12.5H10.5V15.5H14.6667C15.1269 15.5 15.5 15.1269 15.5 14.6667V12.5ZM9.5 15.5V12.5H4.5V14.6667C4.5 15.1269 4.8731 15.5 5.33333 15.5H9.5ZM4.5 11.5H9.5V8.5H4.5V11.5Z",fill:"currentColor",fillRule:"evenodd"})});import{c as Ad}from"react/compiler-runtime";import{jsx as $,jsxs as ie}from"react/jsx-runtime";import{useLexicalComposerContext as Fi}from"@lexical/react/LexicalComposerContext";import{useLexicalEditable as Dd}from"@lexical/react/useLexicalEditable";import{$deleteTableColumn__EXPERIMENTAL as Od,$deleteTableRow__EXPERIMENTAL as Fd,$getNodeTriplet as $d,$getTableCellNodeFromLexicalNode as Pd,$getTableColumnIndexFromTableCellNode as Hd,$getTableNodeFromLexicalNodeOrThrow as Ze,$getTableRowIndexFromTableCellNode as Bd,$insertTableColumn__EXPERIMENTAL as jd,$insertTableRow__EXPERIMENTAL as Gd,$isTableCellNode as Tt,$isTableRowNode as Di,$isTableSelection as wt,$unmergeCell as Ud,getTableObserverFromTableElement as Wd,TableCellHeaderStates as ce,TableCellNode as Vd}from"@lexical/table";import{useScrollInfo as Kd}from"@payloadcms/ui";import{$createParagraphNode as zd,$getRoot as Zd,$getSelection as Nt,$isElementNode as Yd,$isParagraphNode as $i,$isRangeSelection as Io,$isTextNode as Xd}from"lexical";import*as Ro from"react";import{useCallback as Q,useEffect as ge,useRef as Et,useState as ke}from"react";import{createPortal as Pi}from"react-dom";import{jsx as ko,jsxs as vd}from"react/jsx-runtime";import"react";var Ai=()=>vd("svg",{fill:"none",height:"18",viewBox:"0 0 20 20",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[ko("path",{d:"M5 11C5.55228 11 6 10.5523 6 10C6 9.44772 5.55228 9 5 9C4.44772 9 4 9.44772 4 10C4 10.5523 4.44772 11 5 11Z",fill:"currentColor"}),ko("path",{d:"M10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}),ko("path",{d:"M15 11C15.5523 11 16 10.5523 16 10C16 9.44772 15.5523 9 15 9C14.4477 9 14 9.44772 14 10C14 10.5523 14.4477 11 15 11Z",fill:"currentColor"})]});function Lo(t){let e=t.getShape();return{columns:e.toX-e.fromX+1,rows:e.toY-e.fromY+1}}function Jd(){let t=Nt();if(Io(t)&&!t.isCollapsed()||wt(t)&&!t.anchor.is(t.focus)||!Io(t)&&!wt(t))return!1;let[e]=$d(t.anchor);return e.__colSpan>1||e.__rowSpan>1}function Oi(t){if(t.getChildrenSize()!==1)return!1;let e=t.getFirstChildOrThrow();return!(!$i(e)||!e.isEmpty())}function qd(t){let e=t.getLastDescendant();Xd(e)?e.select():Yd(e)?e.selectEnd():e!==null&&e.selectNext()}function Qd({cellMerge:t,contextRef:e,onClose:o,setIsMenuOpen:n,tableCellNode:r}){let[i]=Fi(),l=Et(null),[s,a]=ke(r),[c,u]=ke({columns:1,rows:1}),[d,m]=ke(!1),[f,p]=ke(!1),{y:h}=Kd();ge(()=>i.registerMutationListener(Vd,N=>{N.get(s.getKey())==="updated"&&i.getEditorState().read(()=>{a(s.getLatest())})},{skipInitialization:!0}),[i,s]),ge(()=>{i.getEditorState().read(()=>{let N=Nt();if(wt(N)){let _=Lo(N);u(Lo(N)),m(_.columns>1||_.rows>1)}p(Jd())})},[i]),ge(()=>{let N=e.current,_=l.current,I=i.getRootElement();if(N!=null&&_!=null&&I!=null){let T=I.getBoundingClientRect(),M=N.getBoundingClientRect();_.style.opacity="1";let O=_.getBoundingClientRect(),D=5,j=M.right+D;if(j+O.width>window.innerWidth||j+O.width>T.right){let P=M.left-O.width-D;j=(P<0?D:P)+window.pageXOffset}_.style.left=`${j+window.pageXOffset}px`;let H=M.top;if(H+O.height>window.innerHeight){let P=M.bottom-O.height;H=(P<0?D:P)+window.pageYOffset}_.style.top=`${H}px`}},[e,l,i,h]),ge(()=>{function N(_){l.current!=null&&e.current!=null&&!l.current.contains(_.target)&&!e.current.contains(_.target)&&n(!1)}return window.addEventListener("click",N),()=>window.removeEventListener("click",N)},[n,e]);let g=Q(()=>{i.update(()=>{if(s.isAttached()){let _=Ze(s),I=i.getElementByKey(_.getKey());if(!I)throw new Error("Expected to find tableElement in DOM");let T=Wd(I);T!==null&&T.clearHighlight(),_.markDirty(),a(s.getLatest())}Zd().selectStart()})},[i,s]),k=()=>{i.update(()=>{let N=Nt();if(wt(N)){let{columns:_,rows:I}=Lo(N),T=N.getNodes(),M=null;for(let O=0;O<T.length;O++){let D=T[O];if(Tt(D))if(M===null){D.setColSpan(_).setRowSpan(I),M=D;let j=Oi(D),H;j&&$i(H=D.getFirstChild())&&H.remove()}else Tt(M)&&(Oi(D)||M.append(...D.getChildren()),D.remove())}M!==null&&(M.getChildrenSize()===0&&M.append(zd()),qd(M)),o()}})},v=()=>{i.update(()=>{Ud()})},A=Q(N=>{i.update(()=>{Gd(N),o()})},[i,o]),b=Q(N=>{i.update(()=>{for(let _=0;_<c.columns;_++)jd(N);o()})},[i,o,c.columns]),E=Q(()=>{i.update(()=>{Fd(),o()})},[i,o]),x=Q(()=>{i.update(()=>{Ze(s).remove(),g(),o()})},[i,s,g,o]),L=Q(()=>{i.update(()=>{Od(),o()})},[i,o]),S=Q(()=>{i.update(()=>{let N=Ze(s),_=Bd(s),I=N.getChildren();if(_>=I.length||_<0)throw new Error("Expected table cell to be inside of table row.");let T=I[_];if(!Di(T))throw new Error("Expected table row");let M=s.getHeaderStyles()^ce.ROW;T.getChildren().forEach(O=>{if(!Tt(O))throw new Error("Expected table cell");O.setHeaderStyles(M,ce.ROW)}),g(),o()})},[i,s,g,o]),w=Q(()=>{i.update(()=>{let N=Ze(s),_=Hd(s),I=N.getChildren(),T=Math.max(...I.map(O=>O.getChildren().length));if(_>=T||_<0)throw new Error("Expected table cell to be inside of table row.");let M=s.getHeaderStyles()^ce.COLUMN;for(let O=0;O<I.length;O++){let D=I[O];if(!Di(D))throw new Error("Expected table row");let j=D.getChildren();if(_>=j.length)continue;let H=j[_];if(!Tt(H))throw new Error("Expected table cell");H.setHeaderStyles(M,ce.COLUMN)}g(),o()})},[i,s,g,o]),C=Q(()=>{i.update(()=>{if(s.isAttached()){let N=Ze(s);N&&N.setRowStriping(!N.getRowStriping())}g(),o()})},[i,s,g,o]),R=null;return t&&(d?R=$("button",{className:"item","data-test-id":"table-merge-cells",onClick:()=>k(),type:"button",children:"Merge cells"}):f&&(R=$("button",{className:"item","data-test-id":"table-unmerge-cells",onClick:()=>v(),type:"button",children:"Unmerge cells"}))),Pi(ie("div",{className:"table-action-menu-dropdown",onClick:N=>{N.stopPropagation()},ref:l,children:[R?ie(Ro.Fragment,{children:[R,$("hr",{})]}):null,$("button",{className:"item","data-test-id":"table-row-striping",onClick:()=>C(),type:"button",children:$("span",{className:"text",children:"Toggle Row Striping"})}),$("button",{className:"item","data-test-id":"table-insert-row-above",onClick:()=>A(!1),type:"button",children:ie("span",{className:"text",children:["Insert ",c.rows===1?"row":`${c.rows} rows`," above"]})}),$("button",{className:"item","data-test-id":"table-insert-row-below",onClick:()=>A(!0),type:"button",children:ie("span",{className:"text",children:["Insert ",c.rows===1?"row":`${c.rows} rows`," below"]})}),$("hr",{}),$("button",{className:"item","data-test-id":"table-insert-column-before",onClick:()=>b(!1),type:"button",children:ie("span",{className:"text",children:["Insert ",c.columns===1?"column":`${c.columns} columns`," ","left"]})}),$("button",{className:"item","data-test-id":"table-insert-column-after",onClick:()=>b(!0),type:"button",children:ie("span",{className:"text",children:["Insert ",c.columns===1?"column":`${c.columns} columns`," ","right"]})}),$("hr",{}),$("button",{className:"item","data-test-id":"table-delete-columns",onClick:()=>L(),type:"button",children:$("span",{className:"text",children:"Delete column"})}),$("button",{className:"item","data-test-id":"table-delete-rows",onClick:()=>E(),type:"button",children:$("span",{className:"text",children:"Delete row"})}),$("button",{className:"item","data-test-id":"table-delete",onClick:()=>x(),type:"button",children:$("span",{className:"text",children:"Delete table"})}),$("hr",{}),$("button",{className:"item",onClick:()=>S(),type:"button",children:ie("span",{className:"text",children:[(s.__headerState&ce.ROW)===ce.ROW?"Remove":"Add"," ","row header"]})}),$("button",{className:"item","data-test-id":"table-column-header",onClick:()=>w(),type:"button",children:ie("span",{className:"text",children:[(s.__headerState&ce.COLUMN)===ce.COLUMN?"Remove":"Add"," ","column header"]})})]}),document.body)}function em({anchorElem:t,cellMerge:e}){let[o]=Fi(),n=Et(null),r=Et(null),[i,l]=ke(!1),[s,a]=ke(null),c=Q(()=>{let d=n.current,m=Nt(),f=window.getSelection(),p=document.activeElement;if(m==null||d==null){a(null);return}let h=o.getRootElement();if(Io(m)&&h!==null&&f!==null&&h.contains(f.anchorNode)){let g=Pd(m.anchor.getNode());if(g==null){a(null);return}if(o.getElementByKey(g.getKey())==null){a(null);return}a(g)}else p||a(null)},[o]);ge(()=>o.registerUpdateListener(()=>{o.getEditorState().read(()=>{c()})})),ge(()=>{let d=n.current;if(d!=null&&s!=null){let m=o.getElementByKey(s.getKey());if(m!=null){let f=m.getBoundingClientRect(),p=d.getBoundingClientRect(),h=t.getBoundingClientRect(),g=f.top-h.top+4,k=f.right-p.width-10-h.left;d.style.opacity="1",d.style.transform=`translate(${k}px, ${g}px)`}else d.style.opacity="0",d.style.transform="translate(-10000px, -10000px)"}},[n,s,o,t]);let u=Et(s);return ge(()=>{u.current!==s&&l(!1),u.current=s},[u,s]),$("div",{className:"table-cell-action-button-container",ref:n,children:s!=null&&ie(Ro.Fragment,{children:[$("button",{className:"table-cell-action-button",onClick:d=>{d.stopPropagation(),l(!i)},ref:r,type:"button",children:$(Ai,{})}),i&&$(Qd,{cellMerge:e,contextRef:r,onClose:()=>l(!1),setIsMenuOpen:l,tableCellNode:s})]})})}var Hi=t=>{let e=Ad(3),{anchorElem:o}=t,n=Dd(),r;return e[0]!==n||e[1]!==o?(r=Pi(n?$(em,{anchorElem:o??document.body,cellMerge:!0}):null,o??document.body),e[0]=n,e[1]=o,e[2]=r):r=e[2],r};import{c as tm}from"react/compiler-runtime";import{jsx as It,jsxs as om}from"react/jsx-runtime";import{useLexicalComposerContext as rm}from"@lexical/react/LexicalComposerContext";import{useLexicalEditable as nm}from"@lexical/react/useLexicalEditable";import{$computeTableMapSkipCellCheck as im,$getTableNodeFromLexicalNodeOrThrow as So,$getTableRowIndexFromTableCellNode as lm,$isTableCellNode as Bi,$isTableRowNode as sm,getDOMCellFromTarget as am,TableNode as cm}from"@lexical/table";import{calculateZoomLevel as ji}from"@lexical/utils";import{$getNearestNodeFromDOMNode as yo}from"lexical";import*as Wi from"react";import{useCallback as Le,useEffect as Gi,useRef as kt,useState as Lt}from"react";import{createPortal as um}from"react-dom";var dm=33,Ui=92;function mm({editor:t}){let e=kt(null),o=kt(null),n=kt(null),r=B(),i=kt(null),[l,s]=Lt(null),[a,c]=Lt(null),[u,d]=Lt(!1),[m,f]=Lt(null),p=Le(()=>{c(null),e.current=null,f(null),i.current=null,n.current=null},[]),h=w=>(w.buttons&1)===1;Gi(()=>t.registerNodeTransform(cm,w=>{if(w.getColWidths())return w;let C=w.getColumnCount(),R=Ui;return w.setColWidths(Array(C).fill(R)),w}),[t]),Gi(()=>{let w=_=>{setTimeout(()=>{let I=_.target;if(m){s({x:_.clientX,y:_.clientY});return}if(d(h(_)),!(o.current&&o.current.contains(I))&&e.current!==I){e.current=I;let T=am(I);T&&a!==T?t.update(()=>{let M=yo(T.elem);if(!M)throw new Error("TableCellResizer: Table cell node not found.");let O=So(M),D=t.getElementByKey(O.getKey());if(!D)throw new Error("TableCellResizer: Table element not found.");e.current=I,n.current=D.getBoundingClientRect(),c(T)}):T==null&&p()}},0)},C=_=>{setTimeout(()=>{d(!0)},0)},R=_=>{setTimeout(()=>{d(!1)},0)},N=t.registerRootListener((_,I)=>{I?.removeEventListener("mousemove",w),I?.removeEventListener("mousedown",C),I?.removeEventListener("mouseup",R),_?.addEventListener("mousemove",w),_?.addEventListener("mousedown",C),_?.addEventListener("mouseup",R)});return()=>{N()}},[a,m,t,p]);let g=w=>w==="bottom",k=Le(w=>{if(!a)throw new Error("TableCellResizer: Expected active cell.");t.update(()=>{let C=yo(a.elem);if(!Bi(C))throw new Error("TableCellResizer: Table cell node not found.");let R=So(C),N=lm(C)+C.getRowSpan()-1,_=R.getChildren();if(N>=_.length||N<0)throw new Error("Expected table cell to be inside of table row.");let I=_[N];if(!sm(I))throw new Error("Expected table row");let T=I.getHeight();if(T===void 0){let O=I.getChildren();T=Math.min(...O.map(D=>v(D,t)??1/0))}let M=Math.max(T+w,dm);I.setHeight(M)},{tag:"skip-scroll-into-view"})},[a,t]),v=(w,C)=>C.getElementByKey(w.getKey())?.clientHeight,A=(w,C)=>{for(let R=0;R<C.length;R++)for(let N=0;N<C[R].length;N++)if(C[R][N].cell===w)return N},b=Le(w=>{if(!a)throw new Error("TableCellResizer: Expected active cell.");t.update(()=>{let C=yo(a.elem);if(!Bi(C))throw new Error("TableCellResizer: Table cell node not found.");let R=So(C),[N]=im(R,null,null),_=A(C,N);if(_===void 0)throw new Error("TableCellResizer: Table column not found.");let I=R.getColWidths();if(!I)return;let T=I[_];if(T===void 0)return;let M=[...I],O=Math.max(T+w,Ui);M[_]=O,R.setColWidths(M)},{tag:"skip-scroll-into-view"})},[a,t]),E=Le(w=>{let C=R=>{if(R.preventDefault(),R.stopPropagation(),!a)throw new Error("TableCellResizer: Expected active cell.");if(i.current){let{x:N,y:_}=i.current;if(a===null)return;let I=ji(R.target);if(g(w)){let T=(R.clientY-_)/I;k(T)}else{let T=(R.clientX-N)/I;b(T)}p(),document.removeEventListener("mouseup",C)}};return C},[a,p,b,k]),x=Le(w=>C=>{if(C.preventDefault(),C.stopPropagation(),!a)throw new Error("TableCellResizer: Expected active cell.");i.current={x:C.clientX,y:C.clientY},s(i.current),f(w),document.addEventListener("mouseup",E(w))},[a,E]),S=Le(()=>{if(a){let{height:w,left:C,top:R,width:N}=a.elem.getBoundingClientRect(),_=ji(a.elem),I=10,T={bottom:{backgroundColor:"none",cursor:"row-resize",height:`${I}px`,left:`${window.pageXOffset+C}px`,top:`${window.pageYOffset+R+w-I/2}px`,width:`${N}px`},right:{backgroundColor:"none",cursor:"col-resize",height:`${w}px`,left:`${window.pageXOffset+C+N-I/2}px`,top:`${window.pageYOffset+R}px`,width:`${I}px`}},M=n.current;return m&&l&&M&&(g(m)?(T[m].left=`${window.pageXOffset+M.left}px`,T[m].top=`${window.pageYOffset+l.y/_}px`,T[m].height="3px",T[m].width=`${M.width}px`):(T[m].top=`${window.pageYOffset+M.top}px`,T[m].left=`${window.pageXOffset+l.x/_}px`,T[m].width="3px",T[m].height=`${M.height}px`),T[m].backgroundColor="#adf"),T}return{bottom:null,left:null,right:null,top:null}},[a,m,l])();return It("div",{ref:o,children:a!=null&&!u&&om(Wi.Fragment,{children:[It("div",{className:`${r.editorConfig.lexical.theme.tableCellResizer} TableCellResizer__ui`,onMouseDown:x("right"),style:S.right||void 0}),It("div",{className:`${r.editorConfig.lexical.theme.tableCellResizer} TableCellResizer__ui`,onMouseDown:x("bottom"),style:S.bottom||void 0})]})})}var Vi=()=>{let t=tm(3),[e]=rm(),o=nm(),n,r;return t[0]!==o||t[1]!==e?(r=o?um(It(mm,{editor:e}),document.body):null,t[0]=o,t[1]=e,t[2]=r):r=t[2],n=r,n};import{c as bm}from"react/compiler-runtime";import{jsx as Mo,jsxs as _m,Fragment as Tm}from"react/jsx-runtime";import{useLexicalComposerContext as Qi}from"@lexical/react/LexicalComposerContext";import{$getTableColumnIndexFromTableCellNode as Em,$getTableRowIndexFromTableCellNode as wm,$insertTableColumn__EXPERIMENTAL as Nm,$insertTableRow__EXPERIMENTAL as km,$isTableCellNode as Lm,$isTableNode as Zi,TableNode as Im}from"@lexical/table";import{$findMatchingParent as Rm,mergeRegister as Sm}from"@lexical/utils";import{$getNearestNodeFromDOMNode as Yi}from"lexical";import{useEffect as Xi,useMemo as ym,useRef as Ji,useState as Rt}from"react";import"react";import{createPortal as Mm}from"react-dom";import{useMemo as Cm,useRef as xm}from"react";var pm="Expected a function",fm=Math.max,hm=Math.min;function gm(t,e,o){let n,r,i=0,l,s=!1,a=!1,c,u,d,m=!0;if(typeof t!="function")throw new TypeError(pm);e=e||0,typeof o=="object"&&(s=!!o.leading,a="maxWait"in o,c=a?fm(o.maxWait||0,e):c,m="trailing"in o?!!o.trailing:m);function f(x){let L=n,S=l;return n=l=void 0,i=x,u=t.apply(S,L),u}function p(x){return i=x,d=setTimeout(k,e),s?f(x):u}function h(x){let L=x-r,S=x-i,w=e-L;return a?hm(w,c-S):w}function g(x){let L=x-r,S=x-i;return r===void 0||L>=e||L<0||a&&S>=c}function k(){let x=Date.now();if(g(x))return v(x);d=setTimeout(k,h(x))}function v(x){return d=void 0,m&&n?f(x):(n=l=void 0,u)}function A(){d!==void 0&&clearTimeout(d),i=0,n=r=l=d=void 0}function b(){return d===void 0?u:v(Date.now())}function E(){let x=Date.now(),L=g(x);if(n=arguments,l=this,r=x,L){if(d===void 0)return p(r);if(a)return clearTimeout(d),d=setTimeout(k,e),f(r)}return d===void 0&&(d=setTimeout(k,e)),u}return E.cancel=A,E.flush=b,E}var Ki=gm;function zi(t,e,o){let n=xm(null);return n.current=t,Cm(()=>Ki((...r)=>{n.current&&n.current(...r)},e,{maxWait:o}),[e,o])}var qi=20;function vm({anchorElem:t}){let[e]=Qi(),o=B(),[n,r]=Rt(!1),[i,l]=Rt(!1),[s,a]=Rt(!1),[c,u]=Rt({}),d=Ji(new Set),m=Ji(null),f=zi(g=>{let{isOutside:k,tableDOMNode:v}=Am(g,o.editorConfig?.lexical);if(k){r(!1),l(!1);return}if(!v)return;m.current=v;let A=null,b=null,E=null;if(e.update(()=>{let x=Yi(v);if(Lm(x)){let L=Rm(x,S=>Zi(S));if(!Zi(L))return;if(E=e.getElementByKey(L?.getKey()),E){let S=L.getChildrenSize(),w=L.getChildAtIndex(0)?.getChildrenSize(),C=wm(x),R=Em(x);C===S-1?A=x:R===w-1&&(b=x)}}}),E){let{bottom:x,height:L,left:S,right:w,width:C,y:R}=E.getBoundingClientRect(),{left:N,y:_}=t.getBoundingClientRect();A?(l(!1),r(!0),u({height:qi,left:S-N,top:x-_+5,width:C})):b&&(l(!0),r(!1),u({height:L,left:w-N+5,top:R-_,width:qi}))}},50,250),p=ym(()=>new ResizeObserver(()=>{r(!1),l(!1)}),[]);Xi(()=>{if(s)return document.addEventListener("mousemove",f),()=>{r(!1),l(!1),document.removeEventListener("mousemove",f)}},[s,f]),Xi(()=>Sm(e.registerMutationListener(Im,g=>{e.getEditorState().read(()=>{for(let[k,v]of g){let A=e.getElementByKey(k);switch(v){case"created":d.current.add(k),a(d.current.size>0),A&&p.observe(A);break;case"destroyed":d.current.delete(k),a(d.current.size>0),p.disconnect(),d.current.forEach(b=>{let E=e.getElementByKey(b);E&&p.observe(E)});break;default:break}}})},{skipInitialization:!1})),[e,p]);let h=g=>{e.update(()=>{m.current&&(Yi(m.current)?.selectEnd(),g?(km(),r(!1)):(Nm(),l(!1)))})};return e?.isEditable()?_m(Tm,{children:[n&&Mo("button",{className:o.editorConfig.lexical.theme.tableAddRows,onClick:()=>h(!0),style:{...c}}),i&&Mo("button",{className:o.editorConfig.lexical.theme.tableAddColumns,onClick:()=>h(!1),style:{...c}})]}):null}function Am(t,e){let o=t.target;if(o&&o instanceof HTMLElement){let n=o.closest(`td.${e.theme.tableCell}, th.${e.theme.tableCell}`);return{isOutside:!(n||o.closest(`button.${e.theme.tableAddRows}`)||o.closest(`button.${e.theme.tableAddColumns}`)||o.closest(`div.${e.theme.tableCellResizer}`)),tableDOMNode:n}}else return{isOutside:!0,tableDOMNode:null}}function el(t){let e=bm(2),{anchorElem:o}=t,n=o===void 0?document.body:o,[r]=Qi();if(!r?.isEditable())return null;let i;return e[0]!==n?(i=Mm(Mo(vm,{anchorElem:n}),n),e[0]=n,e[1]=i):i=e[1],i}import{c as Dm}from"react/compiler-runtime";import{jsx as vo,jsxs as Om}from"react/jsx-runtime";import{useLexicalComposerContext as Fm}from"@lexical/react/LexicalComposerContext";import{TablePlugin as $m}from"@lexical/react/LexicalTablePlugin";import{INSERT_TABLE_COMMAND as Pm,TableNode as Hm}from"@lexical/table";import{mergeRegister as Bm}from"@lexical/utils";import{formatDrawerSlug as jm,useEditDepth as Gm}from"@payloadcms/ui";import{$getSelection as Um,$isRangeSelection as Wm,COMMAND_PRIORITY_EDITOR as Vm,createCommand as Km}from"lexical";import{createContext as zm,useContext as Zm,useEffect as Ym,useMemo as Xm,useState as Jm}from"react";import*as tl from"react";var St=Km("OPEN_EMBED_DRAWER_COMMAND"),ol=zm({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function rl({children:t}){let[e,o]=Jm({cellEditorConfig:null,cellEditorPlugins:null});return vo(ol.Provider,{value:Xm(()=>({cellEditorConfig:e.cellEditorConfig,cellEditorPlugins:e.cellEditorPlugins,set:(n,r)=>{o({cellEditorConfig:n,cellEditorPlugins:r})}}),[e.cellEditorConfig,e.cellEditorPlugins]),children:t})}var nl=()=>{let t=Dm(16),[e]=Fm(),o=Zm(ol),n=Gm(),{fieldProps:r,uuid:i}=B(),{schemaPath:l}=r,s="lexical-table-create-"+i,a;t[0]!==s||t[1]!==n?(a=jm({slug:s,depth:n}),t[0]=s,t[1]=n,t[2]=a):a=t[2];let c=a,{toggleDrawer:u}=xe(c,!0),d;t[3]!==e||t[4]!==u?(d=()=>{if(!e.hasNodes([Hm]))throw new Error("TablePlugin: TableNode is not registered on editor");return Bm(e.registerCommand(St,()=>{let h;return h=null,e.getEditorState().read(()=>{let g=Um();Wm(g)&&(h=g)}),h&&u(),!0},Vm))},t[3]=e,t[4]=u,t[5]=d):d=t[5];let m;t[6]!==o||t[7]!==e||t[8]!==u?(m=[o,e,u],t[6]=o,t[7]=e,t[8]=u,t[9]=m):m=t[9],Ym(d,m);let f;t[10]!==e?(f=(h,g)=>{!g.columns||!g.rows||e.dispatchCommand(Pm,{columns:String(g.columns),rows:String(g.rows)})},t[10]=e,t[11]=f):f=t[11];let p;return t[12]!==c||t[13]!==f||t[14]!==l?(p=Om(tl.Fragment,{children:[vo(de,{drawerSlug:c,drawerTitle:"Create Table",featureKey:"experimental_table",handleDrawerSubmit:f,schemaPath:l,schemaPathSuffix:"fields"}),vo($m,{hasCellBackgroundColor:!1,hasCellMerge:!0})]}),t[12]=c,t[13]=f,t[14]=l,t[15]=p):p=t[15],p};var tp=y({nodes:[Qm,qm,ep],plugins:[{Component:nl,position:"normal"},{Component:Vi,position:"normal"},{Component:Hi,position:"floatingAnchorElem"},{Component:el,position:"floatingAnchorElem"}],providers:[rl],slashMenu:{groups:[U([{Icon:No,key:"table",keywords:["table"],label:"Table",onSelect:({editor:t})=>{t.dispatchCommand(St,{})}}])]},toolbarFixed:{groups:[ee([{ChildComponent:No,key:"table",label:"Table",onSelect:({editor:t})=>{t.dispatchCommand(St,{})}}])]}});import{$isNodeSelection as Np}from"lexical";import{jsx as Ao,jsxs as op}from"react/jsx-runtime";import"react";var Do=()=>op("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ao("path",{d:"M14.6667 4H5.33333C4.59695 4 4 4.59695 4 5.33333V14.6667C4 15.403 4.59695 16 5.33333 16H14.6667C15.403 16 16 15.403 16 14.6667V5.33333C16 4.59695 15.403 4 14.6667 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),Ao("path",{d:"M7.99984 9.33366C8.73622 9.33366 9.33317 8.73671 9.33317 8.00033C9.33317 7.26395 8.73622 6.66699 7.99984 6.66699C7.26346 6.66699 6.6665 7.26395 6.6665 8.00033C6.6665 8.73671 7.26346 9.33366 7.99984 9.33366Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),Ao("path",{d:"M16 11.9995L13.9427 9.94214C13.6926 9.69218 13.3536 9.55176 13 9.55176C12.6464 9.55176 12.3074 9.69218 12.0573 9.94214L6 15.9995",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});import{c as dp}from"react/compiler-runtime";import{jsx as mp}from"react/jsx-runtime";import{useLexicalComposerContext as pp}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as fp,mergeRegister as hp}from"@lexical/utils";import{useConfig as gp}from"@payloadcms/ui";import{$getPreviousSelection as Cp,$getSelection as xp,$isParagraphNode as ll,$isRangeSelection as bp,COMMAND_PRIORITY_EDITOR as _p,createCommand as Tp}from"lexical";import{useEffect as Ep}from"react";import{c as rp}from"react/compiler-runtime";import{jsx as Oo}from"react/jsx-runtime";import{useLexicalComposerContext as np}from"@lexical/react/LexicalComposerContext.js";import{$getNodeByKey as ip,COMMAND_PRIORITY_EDITOR as lp}from"lexical";import{useEffect as sp,useState as ap}from"react";var cp=({editor:t,relationTo:e,replaceNodeKey:o,value:n})=>{o?t.update(()=>{let r=ip(o);r&&r.replace(Fe({data:{fields:null,relationTo:e,value:n}}))}):t.dispatchCommand(Fo,{fields:null,relationTo:e,value:n})},up=t=>{let e=rp(13),{enabledCollectionSlugs:o}=t,[n]=np(),[r,i]=ap(null),l;e[0]!==o?(l={collectionSlugs:o,uploads:!0},e[0]=o,e[1]=l):l=e[1];let{closeListDrawer:s,ListDrawer:a,openListDrawer:c}=pt(l),u,d;e[2]!==n||e[3]!==c?(u=()=>n.registerCommand(De,h=>(i(h?.replace?h?.replace.nodeKey:null),c(),!0),lp),d=[n,c],e[2]=n,e[3]=c,e[4]=u,e[5]=d):(u=e[4],d=e[5]),sp(u,d);let m;e[6]!==s||e[7]!==n||e[8]!==r?(m=h=>{let{collectionSlug:g,docID:k}=h;s(),cp({editor:n,relationTo:g,replaceNodeKey:r,value:k})},e[6]=s,e[7]=n,e[8]=r,e[9]=m):m=e[9];let f=m,p;return e[10]!==f||e[11]!==a?(p=Oo(a,{onSelect:f}),e[10]=f,e[11]=a,e[12]=p):p=e[12],p},il=t=>Oo(qe,{...t,uploads:!0,children:Oo(up,{...t})});var Fo=Tp("INSERT_UPLOAD_COMMAND"),sl=t=>{let e=dp(5),[o]=pp(),{config:n}=gp(),{collections:r}=n,i,l;e[0]!==o?(i=()=>{if(!o.hasNodes([Oe]))throw new Error("UploadPlugin: UploadNode not registered on editor");return hp(o.registerCommand(Fo,a=>(o.update(()=>{let c=xp()||Cp();if(bp(c)){let u=Fe({data:{id:a.id,fields:a.fields,relationTo:a.relationTo,value:a.value}});fp(u);let{focus:d}=c,m=d.getNode();ll(m)&&m.getTextContentSize()===0&&m.getParentOrThrow().getChildren().filter(f=>ll(f)).length>1&&m.remove()}}),!0),_p))},l=[o],e[0]=o,e[1]=i,e[2]=l):(i=e[1],l=e[2]),Ep(i,l);let s;return e[3]!==r?(s=mp(il,{enabledCollectionSlugs:r.map(wp)}),e[3]=r,e[4]=s):s=e[4],s};function wp(t){let{slug:e}=t;return e}var kp=y({nodes:[Oe],plugins:[{Component:sl,position:"normal"}],slashMenu:{groups:[U([{Icon:Do,key:"upload",keywords:["upload","image","file","img","picture","photo","media"],label:({i18n:t})=>t.t("lexical:upload:label"),onSelect:({editor:t})=>{t.dispatchCommand(De,{replace:!1})}}])]},toolbarFixed:{groups:[ee([{ChildComponent:Do,isActive:({selection:t})=>{if(!Np(t)||!t.getNodes().length)return!1;let e=t.getNodes()[0];return Pt(e)},key:"upload",label:({i18n:t})=>t.t("lexical:upload:label"),onSelect:({editor:t})=>{t.dispatchCommand(De,{replace:!1})}}])]}});import{c as Lp}from"react/compiler-runtime";import{jsx as Ho}from"react/jsx-runtime";import{ShimmerEffect as Ip}from"@payloadcms/ui";import{lazy as Rp,Suspense as Sp,useEffect as yp,useState as Mp}from"react";var al={block:"LexicalEditorTheme__block",blockCursor:"LexicalEditorTheme__blockCursor",characterLimit:"LexicalEditorTheme__characterLimit",code:"LexicalEditorTheme__code",codeHighlight:{atrule:"LexicalEditorTheme__tokenAttr",attr:"LexicalEditorTheme__tokenAttr",boolean:"LexicalEditorTheme__tokenProperty",builtin:"LexicalEditorTheme__tokenSelector",cdata:"LexicalEditorTheme__tokenComment",char:"LexicalEditorTheme__tokenSelector",class:"LexicalEditorTheme__tokenFunction","class-name":"LexicalEditorTheme__tokenFunction",comment:"LexicalEditorTheme__tokenComment",constant:"LexicalEditorTheme__tokenProperty",deleted:"LexicalEditorTheme__tokenProperty",doctype:"LexicalEditorTheme__tokenComment",entity:"LexicalEditorTheme__tokenOperator",function:"LexicalEditorTheme__tokenFunction",important:"LexicalEditorTheme__tokenVariable",inserted:"LexicalEditorTheme__tokenSelector",keyword:"LexicalEditorTheme__tokenAttr",namespace:"LexicalEditorTheme__tokenVariable",number:"LexicalEditorTheme__tokenProperty",operator:"LexicalEditorTheme__tokenOperator",prolog:"LexicalEditorTheme__tokenComment",property:"LexicalEditorTheme__tokenProperty",punctuation:"LexicalEditorTheme__tokenPunctuation",regex:"LexicalEditorTheme__tokenVariable",selector:"LexicalEditorTheme__tokenSelector",string:"LexicalEditorTheme__tokenSelector",symbol:"LexicalEditorTheme__tokenProperty",tag:"LexicalEditorTheme__tokenProperty",url:"LexicalEditorTheme__tokenOperator",variable:"LexicalEditorTheme__tokenVariable"},embedBlock:{base:"LexicalEditorTheme__embedBlock",focus:"LexicalEditorTheme__embedBlockFocus"},hashtag:"LexicalEditorTheme__hashtag",heading:{h1:"LexicalEditorTheme__h1",h2:"LexicalEditorTheme__h2",h3:"LexicalEditorTheme__h3",h4:"LexicalEditorTheme__h4",h5:"LexicalEditorTheme__h5",h6:"LexicalEditorTheme__h6"},hr:"LexicalEditorTheme__hr",indent:"LexicalEditorTheme__indent",inlineImage:"LexicalEditor__inline-image",link:"LexicalEditorTheme__link",list:{checklist:"LexicalEditorTheme__checklist",listitem:"LexicalEditorTheme__listItem",listitemChecked:"LexicalEditorTheme__listItemChecked",listitemUnchecked:"LexicalEditorTheme__listItemUnchecked",nested:{listitem:"LexicalEditorTheme__nestedListItem"},olDepth:["LexicalEditorTheme__ol1","LexicalEditorTheme__ol2","LexicalEditorTheme__ol3","LexicalEditorTheme__ol4","LexicalEditorTheme__ol5"],ul:"LexicalEditorTheme__ul"},ltr:"LexicalEditorTheme__ltr",mark:"LexicalEditorTheme__mark",markOverlap:"LexicalEditorTheme__markOverlap",paragraph:"LexicalEditorTheme__paragraph",quote:"LexicalEditorTheme__quote",relationship:"LexicalEditorTheme__relationship",rtl:"LexicalEditorTheme__rtl",table:"LexicalEditorTheme__table",tableAddColumns:"LexicalEditorTheme__tableAddColumns",tableAddRows:"LexicalEditorTheme__tableAddRows",tableCell:"LexicalEditorTheme__tableCell",tableCellActionButton:"LexicalEditorTheme__tableCellActionButton",tableCellActionButtonContainer:"LexicalEditorTheme__tableCellActionButtonContainer",tableCellEditing:"LexicalEditorTheme__tableCellEditing",tableCellHeader:"LexicalEditorTheme__tableCellHeader",tableCellPrimarySelected:"LexicalEditorTheme__tableCellPrimarySelected",tableCellResizer:"LexicalEditorTheme__tableCellResizer",tableCellSelected:"LexicalEditorTheme__tableCellSelected",tableCellSortedIndicator:"LexicalEditorTheme__tableCellSortedIndicator",tableResizeRuler:"LexicalEditorTheme__tableCellResizeRuler",tableRowStriping:"LexicalEditorTheme__tableRowStriping",tableSelected:"LexicalEditorTheme__tableSelected",text:{bold:"LexicalEditorTheme__textBold",code:"LexicalEditorTheme__textCode",italic:"LexicalEditorTheme__textItalic",strikethrough:"LexicalEditorTheme__textStrikethrough",subscript:"LexicalEditorTheme__textSubscript",superscript:"LexicalEditorTheme__textSuperscript",underline:"LexicalEditorTheme__textUnderline",underlineStrikethrough:"LexicalEditorTheme__textUnderlineStrikethrough"},upload:"editor-upload"};var $o={namespace:"lexical",theme:al};function cl({unSanitizedEditorConfig:t}){for(let r of t.features)if(!r?.clientFeatureProps?.featureKey||r?.clientFeatureProps?.order===void 0||r?.clientFeatureProps?.order===null)throw new Error("A Feature you have installed does not return the client props as clientFeatureProps. Please make sure to always return those props, even if they are null, as other important props like order and featureKey are later on injected.");t.features=t.features.sort((r,i)=>r.clientFeatureProps.order-i.clientFeatureProps.order);let e=new Map;for(let r of t.features)e.set(r.clientFeatureProps.featureKey,r);let o=new Map,n=0;for(let r of t.features){let i=typeof r.feature=="function"?r.feature({featureProviderMap:e,resolvedFeatures:o,unSanitizedEditorConfig:t}):r.feature;i.key=r.clientFeatureProps.featureKey,i.order=n,o.set(r.clientFeatureProps.featureKey,i),n++}return o}var ul=t=>{let e={enabledFeatures:[],hooks:{load:[],save:[]},markdownTransformers:[],nodes:[],plugins:[],providers:[],slashMenu:{dynamicGroups:[],groups:[]},toolbarFixed:{groups:[]},toolbarInline:{groups:[]}};if(!t?.size)return e;t.forEach(o=>{if(o.hooks&&(o.hooks?.load?.length&&(e.hooks.load=e.hooks.load.concat(o.hooks.load)),o.hooks?.save?.length&&(e.hooks.save=e.hooks.save.concat(o.hooks.save))),o.providers?.length&&(e.providers=e.providers.concat(o.providers)),o.nodes?.length&&(e.nodes=e.nodes.concat(o.nodes)),o.plugins?.length&&o.plugins.forEach((n,r)=>{e.plugins?.push({clientProps:o.sanitizedClientFeatureProps,Component:n.Component,key:o.key+r,position:n.position})}),o.toolbarInline?.groups?.length)for(let n of o.toolbarInline.groups){let r=e.toolbarInline.groups.find(i=>i.key===n.key);r?e.toolbarInline.groups=e.toolbarInline.groups.filter(i=>i.key!==n.key):r={...n,items:[]},n?.items?.length&&(r.items=r.items.concat(n.items)),e.toolbarInline?.groups.push(r)}if(o.toolbarFixed?.groups?.length)for(let n of o.toolbarFixed.groups){let r=e.toolbarFixed.groups.find(i=>i.key===n.key);r?e.toolbarFixed.groups=e.toolbarFixed.groups.filter(i=>i.key!==n.key):r={...n,items:[]},n?.items?.length&&(r.items=r.items.concat(n.items)),e.toolbarFixed?.groups.push(r)}if(o.slashMenu?.groups){o.slashMenu.dynamicGroups?.length&&(e.slashMenu.dynamicGroups=e.slashMenu.dynamicGroups.concat(o.slashMenu.dynamicGroups));for(let n of o.slashMenu.groups){let r=e.slashMenu.groups.find(i=>i.key===n.key);r?e.slashMenu.groups=e.slashMenu.groups.filter(i=>i.key!==n.key):r={...n,items:[]},n?.items?.length&&(r.items=r.items.concat(n.items)),e.slashMenu.groups.push(r)}}o.markdownTransformers?.length&&(e.markdownTransformers=e.markdownTransformers.concat(o.markdownTransformers)),e.enabledFeatures.push(o.key)}),e.toolbarInline.groups.sort((o,n)=>o.order&&n.order?o.order-n.order:o.order?-1:n.order?1:0),e.toolbarFixed.groups.sort((o,n)=>o.order&&n.order?o.order-n.order:o.order?-1:n.order?1:0);for(let o of e.toolbarInline.groups)o.items.sort((n,r)=>n.order&&r.order?n.order-r.order:n.order?-1:r.order?1:0);for(let o of e.toolbarFixed.groups)o.items.sort((n,r)=>n.order&&r.order?n.order-r.order:n.order?-1:r.order?1:0);return e};function Po(t,e,o){return{admin:o,features:ul(t),lexical:e,resolvedFeatureMap:t}}var vp=Rp(()=>import("./Field-GWJ72IYP.js").then(t=>({default:t.RichText}))),Ap=t=>{let e=Lp(11),{admin:o,clientFeatures:n,lexicalEditorConfig:r}=t,i;e[0]!==o?(i=o===void 0?{}:o,e[0]=o,e[1]=i):i=e[1];let l=i,[s,a]=Mp(null),c,u;e[2]!==s||e[3]!==n||e[4]!==r||e[5]!==l?(c=()=>{if(s)return;let m=[];for(let[h,g]of Object.entries(n))g.clientFeatureProvider&&m.push(g.clientFeatureProvider(g.clientFeatureProps));let f=r||$o,p=cl({unSanitizedEditorConfig:{features:m,lexical:f}});a(Po(p,f,l))},u=[r,l,s,n],e[2]=s,e[3]=n,e[4]=r,e[5]=l,e[6]=c,e[7]=u):(c=e[6],u=e[7]),yp(c,u);let d;return e[8]!==s||e[9]!==t?(d=Ho(Sp,{fallback:Ho(Ip,{height:"35vh"}),children:s&&Ho(vp,{...t,editorConfig:s})}),e[8]=s,e[9]=t,e[10]=d):d=e[10],d};function Dp(...t){return t.filter(Boolean).join(" ")}var yt=new WeakMap;function dl(t){let e=t.changedTouches[0];return e===void 0?null:[e.clientX,e.clientY]}function Mt(t,e){let o=yt.get(t);if(o===void 0){let n=new Set,r=l=>{o!==void 0&&(o.start=dl(l))},i=l=>{if(o===void 0)return;let{start:s}=o;if(s===null)return;let a=dl(l);for(let c of n)a!==null&&c([a[0]-s[0],a[1]-s[1]],l)};t.addEventListener("touchstart",r),t.addEventListener("touchend",i),o={handleTouchend:i,handleTouchstart:r,listeners:n,start:null},yt.set(t,o)}return o.listeners.add(e),()=>{Op(t,e)}}function Op(t,e){let o=yt.get(t);if(o===void 0)return;let{listeners:n}=o;n.delete(e),n.size===0&&(yt.delete(t),t.removeEventListener("touchstart",o.handleTouchstart),t.removeEventListener("touchend",o.handleTouchend))}function Fp(t,e){return Mt(t,(o,n)=>{let[r,i]=o;r<0&&-r>Math.abs(i)&&e(r,n)})}function $p(t,e){return Mt(t,(o,n)=>{let[r,i]=o;r>0&&r>Math.abs(i)&&e(r,n)})}function Pp(t,e){return Mt(t,(o,n)=>{let[r,i]=o;i<0&&-i>Math.abs(r)&&e(r,n)})}function Hp(t,e){return Mt(t,(o,n)=>{let[r,i]=o;i>0&&i>Math.abs(r)&&e(r,n)})}var F={DOM_ELEMENT_TYPE:1,DOM_TEXT_TYPE:3,NO_DIRTY_NODES:0,HAS_DIRTY_NODES:1,FULL_RECONCILE:2,IS_NORMAL:0,IS_TOKEN:1,IS_SEGMENTED:2,IS_INERT:3,IS_BOLD:1,IS_ITALIC:2,IS_STRIKETHROUGH:4,IS_UNDERLINE:8,IS_CODE:16,IS_SUBSCRIPT:32,IS_SUPERSCRIPT:64,IS_HIGHLIGHT:128,IS_DIRECTIONLESS:1,IS_UNMERGEABLE:2,IS_ALIGN_LEFT:1,IS_ALIGN_CENTER:2,IS_ALIGN_RIGHT:3,IS_ALIGN_JUSTIFY:4,IS_ALIGN_START:5,IS_ALIGN_END:6},Bp=F.IS_BOLD|F.IS_ITALIC|F.IS_STRIKETHROUGH|F.IS_UNDERLINE|F.IS_CODE|F.IS_SUBSCRIPT|F.IS_SUPERSCRIPT|F.IS_HIGHLIGHT,jp="\xA0",Gp=`
36
+
37
+ `,ml="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",pl="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",Up=new RegExp("^[^"+pl+"]*["+ml+"]"),Wp=new RegExp("^[^"+ml+"]*["+pl+"]"),Vp={bold:F.IS_BOLD,code:F.IS_CODE,highlight:F.IS_HIGHLIGHT,italic:F.IS_ITALIC,strikethrough:F.IS_STRIKETHROUGH,subscript:F.IS_SUBSCRIPT,superscript:F.IS_SUPERSCRIPT,underline:F.IS_UNDERLINE},Kp={directionless:F.IS_DIRECTIONLESS,unmergeable:F.IS_UNMERGEABLE},zp={center:F.IS_ALIGN_CENTER,end:F.IS_ALIGN_END,justify:F.IS_ALIGN_JUSTIFY,left:F.IS_ALIGN_LEFT,right:F.IS_ALIGN_RIGHT,start:F.IS_ALIGN_START},Zp={[F.IS_ALIGN_CENTER]:"center",[F.IS_ALIGN_END]:"end",[F.IS_ALIGN_JUSTIFY]:"justify",[F.IS_ALIGN_LEFT]:"left",[F.IS_ALIGN_RIGHT]:"right",[F.IS_ALIGN_START]:"start"},Yp={normal:F.IS_NORMAL,segmented:F.IS_SEGMENTED,token:F.IS_TOKEN},Xp={[F.IS_NORMAL]:"normal",[F.IS_SEGMENTED]:"segmented",[F.IS_TOKEN]:"token"};export{Pe as $createAutoLinkNode,vt as $createBlockNode,Ot as $createInlineBlockNode,te as $createLinkNode,Ae as $createRelationshipNode,Fe as $createUploadNode,re as $isAutoLinkNode,bl as $isBlockNode,Ft as $isInlineBlockNode,G as $isLinkNode,$t as $isRelationshipNode,Pt as $isUploadNode,yl as AlignFeatureClient,oe as AutoLinkNode,Ie as BlockNode,Fl as BlockquoteFeatureClient,es as BlocksFeatureClient,ws as BoldFeatureClient,Z as CAN_USE_DOM,Kc as ChecklistFeatureClient,Kp as DETAIL_TYPE_TO_DETAIL,Gp as DOUBLE_LINE_BREAK,Zp as ELEMENT_FORMAT_TO_TYPE,zp as ELEMENT_TYPE_TO_FORMAT,wl as ENABLE_SLASH_MENU_COMMAND,xl as EditorConfigProvider,de as FieldsDrawer,_d as FixedToolbarFeatureClient,ia as HeadingFeatureClient,ha as HorizontalRuleFeatureClient,Bp as IS_ALL_FORMATTING,_a as IndentFeatureClient,Dt as InlineBlockNode,Rs as InlineCodeFeatureClient,Md as InlineToolbarFeatureClient,vs as ItalicFeatureClient,Wp as LTR_REGEX,fu as LexicalPluginToLexicalFeatureClient,Mc as LinkFeatureClient,K as LinkNode,jp as NON_BREAKING_SPACE,F as NodeFormat,eu as OrderedListFeatureClient,Eu as ParagraphFeatureClient,Tl as Point,Up as RTL_REGEX,Nl as Rect,Ju as RelationshipFeatureClient,ve as RelationshipNode,Ap as RichTextField,_u as SlateToLexicalFeatureClient,$s as StrikethroughFeatureClient,js as SubscriptFeatureClient,Vs as SuperscriptFeatureClient,Yp as TEXT_MODE_TO_TYPE,Vp as TEXT_TYPE_TO_FORMAT,Xp as TEXT_TYPE_TO_MODE,J as TOGGLE_LINK_COMMAND,tp as TableFeatureClient,fs as TestRecorderFeatureClient,We as ToolbarButton,he as ToolbarDropdown,bs as TreeViewFeatureClient,Xs as UnderlineFeatureClient,au as UnorderedListFeatureClient,kp as UploadFeatureClient,Oe as UploadNode,Hp as addSwipeDownListener,Fp as addSwipeLeftListener,$p as addSwipeRightListener,Pp as addSwipeUpListener,Xt as createBlockNode,y as createClientFeature,$o as defaultEditorLexicalConfig,wo as getDOMRangeRect,kl as getEnabledNodes,be as getSelectedNode,_l as isHTMLElement,El as isPoint,Dp as joinClasses,Po as sanitizeClientEditorConfig,ul as sanitizeClientFeatures,xt as setFloatingElemPosition,ut as setFloatingElemPositionForLinkEditor,U as slashMenuBasicGroupWithItems,ee as toolbarAddDropdownGroupWithItems,qt as toolbarFeatureButtonsGroupWithItems,W as toolbarFormatGroupWithItems,V as toolbarTextDropdownGroupWithItems,B as useEditorConfigContext};
38
+ //# sourceMappingURL=index.js.map