@payloadcms/richtext-lexical 3.0.0-beta.52 → 3.0.0-beta.54

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 (2126) hide show
  1. package/dist/cell/index.d.ts.map +1 -1
  2. package/dist/cell/index.js +6 -6
  3. package/dist/cell/index.js.map +1 -1
  4. package/dist/exports/client/Component-7HS6FEJS.js +2 -0
  5. package/dist/exports/client/Component-7HS6FEJS.js.map +7 -0
  6. package/dist/exports/client/Component-LAKSCIDX.js +2 -0
  7. package/dist/exports/client/Component-LAKSCIDX.js.map +7 -0
  8. package/dist/exports/client/Field-XBUN6QOM.js +2 -0
  9. package/dist/exports/client/Field-XBUN6QOM.js.map +7 -0
  10. package/dist/exports/client/RelationshipComponent-5OU5HATX.js +2 -0
  11. package/dist/exports/client/RelationshipComponent-5OU5HATX.js.map +7 -0
  12. package/dist/exports/client/bundled.css +1 -1
  13. package/dist/exports/client/chunk-3K3B6PJM.js +2 -0
  14. package/dist/exports/client/chunk-3K3B6PJM.js.map +7 -0
  15. package/dist/exports/client/chunk-JIP5PWU3.js +2 -0
  16. package/dist/exports/client/chunk-JIP5PWU3.js.map +7 -0
  17. package/dist/exports/client/chunk-MLIITFAS.js +3 -0
  18. package/dist/exports/client/chunk-MLIITFAS.js.map +7 -0
  19. package/dist/exports/client/chunk-OSR74ZNW.js +2 -0
  20. package/dist/exports/client/chunk-OSR74ZNW.js.map +7 -0
  21. package/dist/exports/client/chunk-TZLHAUCW.js +2 -0
  22. package/dist/exports/client/chunk-TZLHAUCW.js.map +7 -0
  23. package/dist/exports/client/component-CEUVAHRO.js +2 -0
  24. package/dist/exports/client/component-CEUVAHRO.js.map +7 -0
  25. package/dist/exports/client/component-PEFMKIXI.js +2 -0
  26. package/dist/exports/client/component-PEFMKIXI.js.map +7 -0
  27. package/dist/exports/client/component-QWIGEOVD.js +2 -0
  28. package/dist/exports/client/component-QWIGEOVD.js.map +7 -0
  29. package/dist/exports/client/index.d.ts +58 -49
  30. package/dist/exports/client/index.d.ts.map +1 -1
  31. package/dist/exports/client/index.js +7 -5
  32. package/dist/exports/client/index.js.map +4 -4
  33. package/dist/features/align/feature.client.d.ts +5 -0
  34. package/dist/features/align/feature.client.d.ts.map +1 -0
  35. package/dist/features/align/feature.client.js +146 -0
  36. package/dist/features/align/feature.client.js.map +1 -0
  37. package/dist/features/align/feature.server.d.ts +2 -0
  38. package/dist/features/align/feature.server.d.ts.map +1 -0
  39. package/dist/features/align/feature.server.js +13 -0
  40. package/dist/features/align/feature.server.js.map +1 -0
  41. package/dist/features/align/i18n.d.ts.map +1 -0
  42. package/dist/features/align/i18n.js.map +1 -0
  43. package/dist/features/align/toolbarAlignGroup.d.ts.map +1 -0
  44. package/dist/features/align/toolbarAlignGroup.js.map +1 -0
  45. package/dist/features/blockquote/feature.client.d.ts +5 -0
  46. package/dist/features/blockquote/feature.client.d.ts.map +1 -0
  47. package/dist/features/blockquote/feature.client.js +77 -0
  48. package/dist/features/blockquote/feature.client.js.map +1 -0
  49. package/dist/features/blockquote/feature.server.d.ts +2 -0
  50. package/dist/features/blockquote/feature.server.d.ts.map +1 -0
  51. package/dist/features/blockquote/feature.server.js +45 -0
  52. package/dist/features/blockquote/feature.server.js.map +1 -0
  53. package/dist/features/blockquote/i18n.d.ts.map +1 -0
  54. package/dist/features/blockquote/i18n.js.map +1 -0
  55. package/dist/features/blockquote/markdownTransformer.d.ts.map +1 -0
  56. package/dist/features/blockquote/markdownTransformer.js.map +1 -0
  57. package/dist/features/blocks/component/BlockContent.d.ts +27 -0
  58. package/dist/features/blocks/component/BlockContent.d.ts.map +1 -0
  59. package/dist/features/blocks/component/BlockContent.js +193 -0
  60. package/dist/features/blocks/component/BlockContent.js.map +1 -0
  61. package/dist/features/blocks/component/FormSavePlugin.d.ts.map +1 -0
  62. package/dist/features/blocks/component/FormSavePlugin.js +29 -0
  63. package/dist/features/blocks/component/FormSavePlugin.js.map +1 -0
  64. package/dist/features/blocks/component/index.d.ts.map +1 -0
  65. package/dist/features/blocks/component/index.js +158 -0
  66. package/dist/features/blocks/component/index.js.map +1 -0
  67. package/dist/features/blocks/component/removeEmptyArrayValues.d.ts.map +1 -0
  68. package/dist/features/blocks/component/removeEmptyArrayValues.js.map +1 -0
  69. package/dist/features/blocks/drawer/index.d.ts.map +1 -0
  70. package/dist/features/blocks/drawer/index.js +78 -0
  71. package/dist/features/blocks/drawer/index.js.map +1 -0
  72. package/dist/features/blocks/feature.client.d.ts +9 -0
  73. package/dist/features/blocks/feature.client.d.ts.map +1 -0
  74. package/dist/features/blocks/feature.client.js +86 -0
  75. package/dist/features/blocks/feature.client.js.map +1 -0
  76. package/dist/features/blocks/feature.server.d.ts +7 -0
  77. package/dist/features/blocks/feature.server.d.ts.map +1 -0
  78. package/dist/features/blocks/feature.server.js +105 -0
  79. package/dist/features/blocks/feature.server.js.map +1 -0
  80. package/dist/features/blocks/graphQLPopulationPromise.d.ts +5 -0
  81. package/dist/features/blocks/graphQLPopulationPromise.d.ts.map +1 -0
  82. package/dist/features/blocks/graphQLPopulationPromise.js +31 -0
  83. package/dist/features/blocks/graphQLPopulationPromise.js.map +1 -0
  84. package/dist/features/blocks/i18n.d.ts.map +1 -0
  85. package/dist/features/blocks/i18n.js.map +1 -0
  86. package/dist/features/blocks/nodes/BlocksNode.d.ts.map +1 -0
  87. package/dist/features/blocks/nodes/BlocksNode.js.map +1 -0
  88. package/dist/features/blocks/plugin/commands.d.ts.map +1 -0
  89. package/dist/features/blocks/plugin/commands.js.map +1 -0
  90. package/dist/features/blocks/plugin/index.d.ts +6 -0
  91. package/dist/features/blocks/plugin/index.d.ts.map +1 -0
  92. package/dist/features/blocks/plugin/index.js.map +1 -0
  93. package/dist/features/blocks/validate.d.ts +5 -0
  94. package/dist/features/blocks/validate.d.ts.map +1 -0
  95. package/dist/features/blocks/validate.js.map +1 -0
  96. package/dist/features/converters/html/converter/converters/linebreak.d.ts.map +1 -0
  97. package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -0
  98. package/dist/features/converters/html/converter/converters/paragraph.d.ts.map +1 -0
  99. package/dist/features/converters/html/converter/converters/paragraph.js +20 -0
  100. package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -0
  101. package/dist/features/converters/html/converter/converters/text.d.ts.map +1 -0
  102. package/dist/features/converters/html/converter/converters/text.js.map +1 -0
  103. package/dist/features/converters/html/converter/defaultConverters.d.ts.map +1 -0
  104. package/dist/features/converters/html/converter/defaultConverters.js.map +1 -0
  105. package/dist/features/converters/html/converter/index.d.ts +42 -0
  106. package/dist/features/converters/html/converter/index.d.ts.map +1 -0
  107. package/dist/features/converters/html/converter/index.js +48 -0
  108. package/dist/features/converters/html/converter/index.js.map +1 -0
  109. package/dist/features/converters/html/converter/types.d.ts +19 -0
  110. package/dist/features/converters/html/converter/types.d.ts.map +1 -0
  111. package/dist/features/converters/html/converter/types.js.map +1 -0
  112. package/dist/features/converters/html/feature.server.d.ts +8 -0
  113. package/dist/features/converters/html/feature.server.d.ts.map +1 -0
  114. package/dist/features/converters/html/feature.server.js +8 -0
  115. package/dist/features/converters/html/feature.server.js.map +1 -0
  116. package/dist/features/converters/html/field/index.d.ts.map +1 -0
  117. package/dist/features/converters/html/field/index.js +154 -0
  118. package/dist/features/converters/html/field/index.js.map +1 -0
  119. package/dist/features/createClientComponent.d.ts +7 -0
  120. package/dist/features/createClientComponent.d.ts.map +1 -0
  121. package/dist/features/createClientComponent.js +12 -0
  122. package/dist/features/createClientComponent.js.map +1 -0
  123. package/dist/features/createFeaturePropComponent.d.ts.map +1 -0
  124. package/dist/features/createFeaturePropComponent.js +18 -0
  125. package/dist/features/createFeaturePropComponent.js.map +1 -0
  126. package/dist/features/debug/testRecorder/feature.client.d.ts +5 -0
  127. package/dist/features/debug/testRecorder/feature.client.d.ts.map +1 -0
  128. package/dist/features/debug/testRecorder/feature.client.js +13 -0
  129. package/dist/features/debug/testRecorder/feature.client.js.map +1 -0
  130. package/dist/features/debug/testRecorder/feature.server.d.ts +2 -0
  131. package/dist/features/debug/testRecorder/feature.server.d.ts.map +1 -0
  132. package/dist/features/debug/testRecorder/feature.server.js +11 -0
  133. package/dist/features/debug/testRecorder/feature.server.js.map +1 -0
  134. package/dist/features/debug/testRecorder/plugin/index.d.ts +5 -0
  135. package/dist/features/debug/testRecorder/plugin/index.d.ts.map +1 -0
  136. package/dist/features/debug/testRecorder/plugin/index.js.map +1 -0
  137. package/dist/features/debug/treeView/feature.client.d.ts +5 -0
  138. package/dist/features/debug/treeView/feature.client.d.ts.map +1 -0
  139. package/dist/features/debug/treeView/feature.client.js +13 -0
  140. package/dist/features/debug/treeView/feature.client.js.map +1 -0
  141. package/dist/features/debug/treeView/feature.server.d.ts +2 -0
  142. package/dist/features/debug/treeView/feature.server.d.ts.map +1 -0
  143. package/dist/features/debug/treeView/feature.server.js +11 -0
  144. package/dist/features/debug/treeView/feature.server.js.map +1 -0
  145. package/dist/features/debug/treeView/plugin/index.d.ts +4 -0
  146. package/dist/features/debug/treeView/plugin/index.d.ts.map +1 -0
  147. package/dist/features/debug/treeView/plugin/index.js.map +1 -0
  148. package/dist/features/format/bold/feature.client.d.ts +5 -0
  149. package/dist/features/format/bold/feature.client.d.ts.map +1 -0
  150. package/dist/features/format/bold/feature.client.js +44 -0
  151. package/dist/features/format/bold/feature.client.js.map +1 -0
  152. package/dist/features/format/bold/feature.server.d.ts +2 -0
  153. package/dist/features/format/bold/feature.server.d.ts.map +1 -0
  154. package/dist/features/format/bold/feature.server.js +25 -0
  155. package/dist/features/format/bold/feature.server.js.map +1 -0
  156. package/dist/features/format/bold/markdownTransformers.d.ts.map +1 -0
  157. package/dist/features/format/bold/markdownTransformers.js.map +1 -0
  158. package/dist/features/format/inlineCode/feature.client.d.ts +5 -0
  159. package/dist/features/format/inlineCode/feature.client.d.ts.map +1 -0
  160. package/dist/features/format/inlineCode/feature.client.js +37 -0
  161. package/dist/features/format/inlineCode/feature.client.js.map +1 -0
  162. package/dist/features/format/inlineCode/feature.server.d.ts +2 -0
  163. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -0
  164. package/dist/features/format/inlineCode/feature.server.js +15 -0
  165. package/dist/features/format/inlineCode/feature.server.js.map +1 -0
  166. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +1 -0
  167. package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -0
  168. package/dist/features/format/italic/feature.client.d.ts +5 -0
  169. package/dist/features/format/italic/feature.client.d.ts.map +1 -0
  170. package/dist/features/format/italic/feature.client.js +38 -0
  171. package/dist/features/format/italic/feature.client.js.map +1 -0
  172. package/dist/features/format/italic/feature.server.d.ts +2 -0
  173. package/dist/features/format/italic/feature.server.d.ts.map +1 -0
  174. package/dist/features/format/italic/feature.server.js +16 -0
  175. package/dist/features/format/italic/feature.server.js.map +1 -0
  176. package/dist/features/format/italic/markdownTransformers.d.ts.map +1 -0
  177. package/dist/features/format/italic/markdownTransformers.js.map +1 -0
  178. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  179. package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -0
  180. package/dist/features/format/strikethrough/feature.client.d.ts +5 -0
  181. package/dist/features/format/strikethrough/feature.client.d.ts.map +1 -0
  182. package/dist/features/format/strikethrough/feature.client.js +37 -0
  183. package/dist/features/format/strikethrough/feature.client.js.map +1 -0
  184. package/dist/features/format/strikethrough/feature.server.d.ts +2 -0
  185. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -0
  186. package/dist/features/format/strikethrough/feature.server.js +15 -0
  187. package/dist/features/format/strikethrough/feature.server.js.map +1 -0
  188. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +1 -0
  189. package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -0
  190. package/dist/features/format/subscript/feature.client.d.ts +5 -0
  191. package/dist/features/format/subscript/feature.client.d.ts.map +1 -0
  192. package/dist/features/format/subscript/feature.client.js +33 -0
  193. package/dist/features/format/subscript/feature.client.js.map +1 -0
  194. package/dist/features/format/subscript/feature.server.d.ts +2 -0
  195. package/dist/features/format/subscript/feature.server.d.ts.map +1 -0
  196. package/dist/features/format/subscript/feature.server.js +11 -0
  197. package/dist/features/format/subscript/feature.server.js.map +1 -0
  198. package/dist/features/format/superscript/feature.client.d.ts +5 -0
  199. package/dist/features/format/superscript/feature.client.d.ts.map +1 -0
  200. package/dist/features/format/superscript/feature.client.js +33 -0
  201. package/dist/features/format/superscript/feature.client.js.map +1 -0
  202. package/dist/features/format/superscript/feature.server.d.ts +2 -0
  203. package/dist/features/format/superscript/feature.server.d.ts.map +1 -0
  204. package/dist/features/format/superscript/feature.server.js +11 -0
  205. package/dist/features/format/superscript/feature.server.js.map +1 -0
  206. package/dist/features/format/underline/feature.client.d.ts +5 -0
  207. package/dist/features/format/underline/feature.client.d.ts.map +1 -0
  208. package/dist/features/format/underline/feature.client.js +33 -0
  209. package/dist/features/format/underline/feature.client.js.map +1 -0
  210. package/dist/features/format/underline/feature.server.d.ts +2 -0
  211. package/dist/features/format/underline/feature.server.d.ts.map +1 -0
  212. package/dist/features/format/underline/feature.server.js +11 -0
  213. package/dist/features/format/underline/feature.server.js.map +1 -0
  214. package/dist/features/heading/feature.client.d.ts +6 -0
  215. package/dist/features/heading/feature.client.d.ts.map +1 -0
  216. package/dist/features/heading/feature.client.js +112 -0
  217. package/dist/features/heading/feature.client.js.map +1 -0
  218. package/dist/features/heading/feature.server.d.ts +6 -0
  219. package/dist/features/heading/feature.server.d.ts.map +1 -0
  220. package/dist/features/heading/feature.server.js +59 -0
  221. package/dist/features/heading/feature.server.js.map +1 -0
  222. package/dist/features/heading/i18n.d.ts.map +1 -0
  223. package/dist/features/heading/i18n.js.map +1 -0
  224. package/dist/features/heading/markdownTransformer.d.ts.map +1 -0
  225. package/dist/features/heading/markdownTransformer.js.map +1 -0
  226. package/dist/features/horizontalRule/component/index.d.ts.map +1 -0
  227. package/dist/features/horizontalRule/component/index.js.map +1 -0
  228. package/dist/features/horizontalRule/feature.client.d.ts +5 -0
  229. package/dist/features/horizontalRule/feature.client.d.ts.map +1 -0
  230. package/dist/features/horizontalRule/feature.client.js +70 -0
  231. package/dist/features/horizontalRule/feature.client.js.map +1 -0
  232. package/dist/features/horizontalRule/feature.server.d.ts +2 -0
  233. package/dist/features/horizontalRule/feature.server.d.ts.map +1 -0
  234. package/dist/features/horizontalRule/feature.server.js +34 -0
  235. package/dist/features/horizontalRule/feature.server.js.map +1 -0
  236. package/dist/features/horizontalRule/i18n.d.ts.map +1 -0
  237. package/dist/features/horizontalRule/i18n.js.map +1 -0
  238. package/dist/features/horizontalRule/markdownTransformer.d.ts.map +1 -0
  239. package/dist/features/horizontalRule/markdownTransformer.js.map +1 -0
  240. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +1 -0
  241. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js.map +1 -0
  242. package/dist/features/horizontalRule/plugin/index.d.ts +7 -0
  243. package/dist/features/horizontalRule/plugin/index.d.ts.map +1 -0
  244. package/dist/features/horizontalRule/plugin/index.js.map +1 -0
  245. package/dist/features/indent/feature.client.d.ts +5 -0
  246. package/dist/features/indent/feature.client.d.ts.map +1 -0
  247. package/dist/features/indent/feature.client.js +56 -0
  248. package/dist/features/indent/feature.client.js.map +1 -0
  249. package/dist/features/indent/feature.server.d.ts +2 -0
  250. package/dist/features/indent/feature.server.d.ts.map +1 -0
  251. package/dist/features/indent/feature.server.js +13 -0
  252. package/dist/features/indent/feature.server.js.map +1 -0
  253. package/dist/features/indent/i18n.d.ts.map +1 -0
  254. package/dist/features/indent/i18n.js.map +1 -0
  255. package/dist/features/indent/toolbarIndentGroup.d.ts.map +1 -0
  256. package/dist/features/indent/toolbarIndentGroup.js.map +1 -0
  257. package/dist/features/link/drawer/baseFields.d.ts +3 -0
  258. package/dist/features/link/drawer/baseFields.d.ts.map +1 -0
  259. package/dist/features/link/drawer/baseFields.js.map +1 -0
  260. package/dist/features/link/drawer/index.d.ts.map +1 -0
  261. package/dist/features/link/drawer/index.js +94 -0
  262. package/dist/features/link/drawer/index.js.map +1 -0
  263. package/dist/features/link/drawer/types.d.ts.map +1 -0
  264. package/dist/features/link/drawer/types.js.map +1 -0
  265. package/dist/features/link/feature.client.d.ts +16 -0
  266. package/dist/features/link/feature.client.d.ts.map +1 -0
  267. package/dist/features/link/feature.client.js +101 -0
  268. package/dist/features/link/feature.client.js.map +1 -0
  269. package/dist/features/link/feature.server.d.ts +35 -0
  270. package/dist/features/link/feature.server.d.ts.map +1 -0
  271. package/dist/features/link/feature.server.js +138 -0
  272. package/dist/features/link/feature.server.js.map +1 -0
  273. package/dist/features/link/graphQLPopulationPromise.d.ts +5 -0
  274. package/dist/features/link/graphQLPopulationPromise.d.ts.map +1 -0
  275. package/dist/features/link/graphQLPopulationPromise.js +31 -0
  276. package/dist/features/link/graphQLPopulationPromise.js.map +1 -0
  277. package/dist/features/link/i18n.d.ts.map +1 -0
  278. package/dist/features/link/i18n.js.map +1 -0
  279. package/dist/features/link/markdownTransformer.d.ts.map +1 -0
  280. package/dist/features/link/markdownTransformer.js.map +1 -0
  281. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
  282. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -0
  283. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
  284. package/dist/features/link/nodes/LinkNode.js.map +1 -0
  285. package/dist/features/link/nodes/types.d.ts.map +1 -0
  286. package/dist/features/link/nodes/types.js.map +1 -0
  287. package/dist/features/link/plugins/autoLink/index.d.ts +20 -0
  288. package/dist/features/link/plugins/autoLink/index.d.ts.map +1 -0
  289. package/dist/features/link/plugins/autoLink/index.js.map +1 -0
  290. package/dist/features/link/plugins/clickableLink/index.d.ts +4 -0
  291. package/dist/features/link/plugins/clickableLink/index.d.ts.map +1 -0
  292. package/dist/features/link/plugins/clickableLink/index.js.map +1 -0
  293. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  294. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  295. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  296. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +295 -0
  297. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  298. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts +5 -0
  299. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  300. package/dist/features/link/plugins/floatingLinkEditor/index.js.map +1 -0
  301. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  302. package/dist/features/link/plugins/floatingLinkEditor/types.js.map +1 -0
  303. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts +9 -0
  304. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -0
  305. package/dist/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -0
  306. package/dist/features/link/plugins/link/index.d.ts +4 -0
  307. package/dist/features/link/plugins/link/index.d.ts.map +1 -0
  308. package/dist/features/link/plugins/link/index.js.map +1 -0
  309. package/dist/features/link/validate.d.ts +6 -0
  310. package/dist/features/link/validate.d.ts.map +1 -0
  311. package/dist/features/link/validate.js.map +1 -0
  312. package/dist/features/lists/checklist/feature.client.d.ts +5 -0
  313. package/dist/features/lists/checklist/feature.client.d.ts.map +1 -0
  314. package/dist/features/lists/checklist/feature.client.js +100 -0
  315. package/dist/features/lists/checklist/feature.client.js.map +1 -0
  316. package/dist/features/lists/checklist/feature.server.d.ts +2 -0
  317. package/dist/features/lists/checklist/feature.server.d.ts.map +1 -0
  318. package/dist/features/lists/checklist/feature.server.js +36 -0
  319. package/dist/features/lists/checklist/feature.server.js.map +1 -0
  320. package/dist/features/lists/checklist/i18n.d.ts.map +1 -0
  321. package/dist/features/lists/checklist/i18n.js.map +1 -0
  322. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
  323. package/dist/features/lists/checklist/markdownTransformers.js.map +1 -0
  324. package/dist/features/lists/checklist/plugin/index.d.ts +3 -0
  325. package/dist/features/lists/checklist/plugin/index.d.ts.map +1 -0
  326. package/dist/features/lists/checklist/plugin/index.js.map +1 -0
  327. package/dist/features/lists/htmlConverter.d.ts.map +1 -0
  328. package/dist/features/lists/htmlConverter.js +56 -0
  329. package/dist/features/lists/htmlConverter.js.map +1 -0
  330. package/dist/features/lists/orderedList/feature.client.d.ts +5 -0
  331. package/dist/features/lists/orderedList/feature.client.d.ts.map +1 -0
  332. package/dist/features/lists/orderedList/feature.client.js +90 -0
  333. package/dist/features/lists/orderedList/feature.client.js.map +1 -0
  334. package/dist/features/lists/orderedList/feature.server.d.ts +2 -0
  335. package/dist/features/lists/orderedList/feature.server.d.ts.map +1 -0
  336. package/dist/features/lists/orderedList/feature.server.js +36 -0
  337. package/dist/features/lists/orderedList/feature.server.js.map +1 -0
  338. package/dist/features/lists/orderedList/i18n.d.ts.map +1 -0
  339. package/dist/features/lists/orderedList/i18n.js.map +1 -0
  340. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  341. package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -0
  342. package/dist/features/lists/plugin/index.d.ts +3 -0
  343. package/dist/features/lists/plugin/index.d.ts.map +1 -0
  344. package/dist/features/lists/plugin/index.js.map +1 -0
  345. package/dist/features/lists/shared/markdown.d.ts +6 -0
  346. package/dist/features/lists/shared/markdown.d.ts.map +1 -0
  347. package/dist/features/lists/shared/markdown.js.map +1 -0
  348. package/dist/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
  349. package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -0
  350. package/dist/features/lists/unorderedList/feature.client.d.ts +5 -0
  351. package/dist/features/lists/unorderedList/feature.client.d.ts.map +1 -0
  352. package/dist/features/lists/unorderedList/feature.client.js +88 -0
  353. package/dist/features/lists/unorderedList/feature.client.js.map +1 -0
  354. package/dist/features/lists/unorderedList/feature.server.d.ts +2 -0
  355. package/dist/features/lists/unorderedList/feature.server.d.ts.map +1 -0
  356. package/dist/features/lists/unorderedList/feature.server.js +34 -0
  357. package/dist/features/lists/unorderedList/feature.server.js.map +1 -0
  358. package/dist/features/lists/unorderedList/i18n.d.ts.map +1 -0
  359. package/dist/features/lists/unorderedList/i18n.js.map +1 -0
  360. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  361. package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  362. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +5 -0
  363. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +1 -0
  364. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +1 -0
  365. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  366. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -0
  367. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +1 -0
  368. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +8 -0
  369. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +1 -0
  370. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +5 -0
  371. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +1 -0
  372. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +1 -0
  373. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
  374. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -0
  375. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +1 -0
  376. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +8 -0
  377. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +1 -0
  378. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +5 -0
  379. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +1 -0
  380. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +1 -0
  381. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
  382. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -0
  383. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +1 -0
  384. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +8 -0
  385. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +1 -0
  386. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +5 -0
  387. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  388. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +1 -0
  389. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  390. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -0
  391. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  392. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +8 -0
  393. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +1 -0
  394. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +5 -0
  395. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +1 -0
  396. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +1 -0
  397. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
  398. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -0
  399. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +1 -0
  400. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +8 -0
  401. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +1 -0
  402. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +5 -0
  403. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  404. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +1 -0
  405. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  406. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -0
  407. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  408. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +8 -0
  409. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +1 -0
  410. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +5 -0
  411. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +1 -0
  412. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +1 -0
  413. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  414. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -0
  415. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +1 -0
  416. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +8 -0
  417. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +1 -0
  418. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
  419. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -0
  420. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
  421. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -0
  422. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +31 -0
  423. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
  424. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -0
  425. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +5 -0
  426. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
  427. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +27 -0
  428. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -0
  429. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +8 -0
  430. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
  431. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +45 -0
  432. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -0
  433. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  434. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  435. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  436. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  437. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +5 -0
  438. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +1 -0
  439. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +1 -0
  440. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
  441. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -0
  442. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +1 -0
  443. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js +8 -0
  444. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +1 -0
  445. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +5 -0
  446. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +1 -0
  447. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js.map +1 -0
  448. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  449. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -0
  450. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +1 -0
  451. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js +8 -0
  452. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js.map +1 -0
  453. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +5 -0
  454. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +1 -0
  455. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js.map +1 -0
  456. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
  457. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -0
  458. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +1 -0
  459. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js +8 -0
  460. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js.map +1 -0
  461. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts +5 -0
  462. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +1 -0
  463. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js.map +1 -0
  464. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
  465. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -0
  466. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +1 -0
  467. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js +8 -0
  468. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js.map +1 -0
  469. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +5 -0
  470. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  471. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +1 -0
  472. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  473. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -0
  474. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  475. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js +8 -0
  476. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +1 -0
  477. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +5 -0
  478. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +1 -0
  479. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +1 -0
  480. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
  481. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -0
  482. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +1 -0
  483. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js +8 -0
  484. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +1 -0
  485. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +5 -0
  486. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +1 -0
  487. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +1 -0
  488. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
  489. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -0
  490. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +1 -0
  491. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js +8 -0
  492. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +1 -0
  493. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +5 -0
  494. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  495. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +1 -0
  496. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  497. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -0
  498. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  499. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js +8 -0
  500. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +1 -0
  501. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +5 -0
  502. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +1 -0
  503. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +1 -0
  504. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
  505. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -0
  506. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +1 -0
  507. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +8 -0
  508. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +1 -0
  509. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +5 -0
  510. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +1 -0
  511. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js.map +1 -0
  512. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  513. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -0
  514. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +1 -0
  515. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js +8 -0
  516. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js.map +1 -0
  517. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
  518. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -0
  519. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
  520. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -0
  521. package/dist/features/migrations/slateToLexical/converter/types.d.ts +25 -0
  522. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
  523. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -0
  524. package/dist/features/migrations/slateToLexical/feature.client.d.ts +5 -0
  525. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
  526. package/dist/features/migrations/slateToLexical/feature.client.js +27 -0
  527. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -0
  528. package/dist/features/migrations/slateToLexical/feature.server.d.ts +8 -0
  529. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
  530. package/dist/features/migrations/slateToLexical/feature.server.js +45 -0
  531. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -0
  532. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  533. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  534. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  535. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  536. package/dist/features/paragraph/feature.client.d.ts +5 -0
  537. package/dist/features/paragraph/feature.client.d.ts.map +1 -0
  538. package/dist/features/paragraph/feature.client.js +71 -0
  539. package/dist/features/paragraph/feature.client.js.map +1 -0
  540. package/dist/features/paragraph/feature.server.d.ts +2 -0
  541. package/dist/features/paragraph/feature.server.d.ts.map +1 -0
  542. package/dist/features/paragraph/feature.server.js +14 -0
  543. package/dist/features/paragraph/feature.server.js.map +1 -0
  544. package/dist/features/paragraph/i18n.d.ts.map +1 -0
  545. package/dist/features/paragraph/i18n.js.map +1 -0
  546. package/dist/features/relationship/drawer/commands.d.ts.map +1 -0
  547. package/dist/features/relationship/drawer/commands.js.map +1 -0
  548. package/dist/features/relationship/drawer/index.d.ts.map +1 -0
  549. package/dist/features/relationship/drawer/index.js +83 -0
  550. package/dist/features/relationship/drawer/index.js.map +1 -0
  551. package/dist/features/relationship/feature.client.d.ts +18 -0
  552. package/dist/features/relationship/feature.client.d.ts.map +1 -0
  553. package/dist/features/relationship/feature.client.js +72 -0
  554. package/dist/features/relationship/feature.client.js.map +1 -0
  555. package/dist/features/relationship/feature.server.d.ts +27 -0
  556. package/dist/features/relationship/feature.server.d.ts.map +1 -0
  557. package/dist/features/relationship/feature.server.js +55 -0
  558. package/dist/features/relationship/feature.server.js.map +1 -0
  559. package/dist/features/relationship/graphQLPopulationPromise.d.ts +5 -0
  560. package/dist/features/relationship/graphQLPopulationPromise.d.ts.map +1 -0
  561. package/dist/features/relationship/graphQLPopulationPromise.js +29 -0
  562. package/dist/features/relationship/graphQLPopulationPromise.js.map +1 -0
  563. package/dist/features/relationship/i18n.d.ts.map +1 -0
  564. package/dist/features/relationship/i18n.js.map +1 -0
  565. package/dist/features/relationship/nodes/RelationshipNode.d.ts.map +1 -0
  566. package/dist/features/relationship/nodes/RelationshipNode.js.map +1 -0
  567. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -0
  568. package/dist/features/relationship/nodes/components/RelationshipComponent.js +172 -0
  569. package/dist/features/relationship/nodes/components/RelationshipComponent.js.map +1 -0
  570. package/dist/features/relationship/plugins/index.d.ts +7 -0
  571. package/dist/features/relationship/plugins/index.d.ts.map +1 -0
  572. package/dist/features/relationship/plugins/index.js +50 -0
  573. package/dist/features/relationship/plugins/index.js.map +1 -0
  574. package/dist/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  575. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js +33 -0
  576. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js.map +1 -0
  577. package/dist/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
  578. package/dist/features/shared/slashMenu/basicGroup.js.map +1 -0
  579. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  580. package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  581. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  582. package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  583. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  584. package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  585. package/dist/features/toolbars/fixed/Toolbar/index.d.ts +5 -0
  586. package/dist/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -0
  587. package/dist/features/toolbars/fixed/Toolbar/index.js +207 -0
  588. package/dist/features/toolbars/fixed/Toolbar/index.js.map +1 -0
  589. package/dist/features/toolbars/fixed/feature.client.d.ts +6 -0
  590. package/dist/features/toolbars/fixed/feature.client.d.ts.map +1 -0
  591. package/dist/features/toolbars/fixed/feature.client.js +13 -0
  592. package/dist/features/toolbars/fixed/feature.client.js.map +1 -0
  593. package/dist/features/toolbars/fixed/feature.server.d.ts +18 -0
  594. package/dist/features/toolbars/fixed/feature.server.d.ts.map +1 -0
  595. package/dist/features/toolbars/fixed/feature.server.js +19 -0
  596. package/dist/features/toolbars/fixed/feature.server.js.map +1 -0
  597. package/dist/features/toolbars/inline/Toolbar/index.d.ts +4 -0
  598. package/dist/features/toolbars/inline/Toolbar/index.d.ts.map +1 -0
  599. package/dist/features/toolbars/inline/Toolbar/index.js.map +1 -0
  600. package/dist/features/toolbars/inline/feature.client.d.ts +5 -0
  601. package/dist/features/toolbars/inline/feature.client.d.ts.map +1 -0
  602. package/dist/features/toolbars/inline/feature.client.js +13 -0
  603. package/dist/features/toolbars/inline/feature.client.js.map +1 -0
  604. package/dist/features/toolbars/inline/feature.server.d.ts +2 -0
  605. package/dist/features/toolbars/inline/feature.server.d.ts.map +1 -0
  606. package/dist/features/toolbars/inline/feature.server.js +11 -0
  607. package/dist/features/toolbars/inline/feature.server.js.map +1 -0
  608. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  609. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  610. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  611. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  612. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  613. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +141 -0
  614. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  615. package/dist/features/toolbars/types.d.ts +53 -0
  616. package/dist/features/toolbars/types.d.ts.map +1 -0
  617. package/dist/features/toolbars/types.js.map +1 -0
  618. package/dist/features/typeUtilities.d.ts +8 -0
  619. package/dist/features/typeUtilities.d.ts.map +1 -0
  620. package/dist/features/typeUtilities.js.map +1 -0
  621. package/dist/features/typesClient.d.ts +182 -0
  622. package/dist/features/typesClient.d.ts.map +1 -0
  623. package/dist/features/typesClient.js +3 -0
  624. package/dist/features/typesClient.js.map +1 -0
  625. package/dist/features/typesServer.d.ts +292 -0
  626. package/dist/features/typesServer.d.ts.map +1 -0
  627. package/dist/features/typesServer.js +3 -0
  628. package/dist/features/typesServer.js.map +1 -0
  629. package/dist/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +1 -0
  630. package/dist/features/upload/component/ExtraFieldsDrawer/index.js +123 -0
  631. package/dist/features/upload/component/ExtraFieldsDrawer/index.js.map +1 -0
  632. package/dist/features/upload/component/index.d.ts.map +1 -0
  633. package/dist/features/upload/component/index.js +219 -0
  634. package/dist/features/upload/component/index.js.map +1 -0
  635. package/dist/features/upload/drawer/commands.d.ts.map +1 -0
  636. package/dist/features/upload/drawer/commands.js.map +1 -0
  637. package/dist/features/upload/drawer/index.d.ts.map +1 -0
  638. package/dist/features/upload/drawer/index.js +77 -0
  639. package/dist/features/upload/drawer/index.js.map +1 -0
  640. package/dist/features/upload/feature.client.d.ts +12 -0
  641. package/dist/features/upload/feature.client.d.ts.map +1 -0
  642. package/dist/features/upload/feature.client.js +74 -0
  643. package/dist/features/upload/feature.client.js.map +1 -0
  644. package/dist/features/upload/feature.server.d.ts +18 -0
  645. package/dist/features/upload/feature.server.d.ts.map +1 -0
  646. package/dist/features/upload/feature.server.js +194 -0
  647. package/dist/features/upload/feature.server.js.map +1 -0
  648. package/dist/features/upload/graphQLPopulationPromise.d.ts +5 -0
  649. package/dist/features/upload/graphQLPopulationPromise.d.ts.map +1 -0
  650. package/dist/features/upload/graphQLPopulationPromise.js +52 -0
  651. package/dist/features/upload/graphQLPopulationPromise.js.map +1 -0
  652. package/dist/features/upload/i18n.d.ts.map +1 -0
  653. package/dist/features/upload/i18n.js.map +1 -0
  654. package/dist/features/upload/nodes/UploadNode.d.ts.map +1 -0
  655. package/dist/features/upload/nodes/UploadNode.js.map +1 -0
  656. package/dist/features/upload/plugin/index.d.ts +8 -0
  657. package/dist/features/upload/plugin/index.d.ts.map +1 -0
  658. package/dist/features/upload/plugin/index.js +53 -0
  659. package/dist/features/upload/plugin/index.js.map +1 -0
  660. package/dist/features/upload/validate.d.ts +5 -0
  661. package/dist/features/upload/validate.d.ts.map +1 -0
  662. package/dist/features/upload/validate.js.map +1 -0
  663. package/dist/field/Field.d.ts +3 -3
  664. package/dist/field/Field.d.ts.map +1 -1
  665. package/dist/field/Field.js +2 -2
  666. package/dist/field/Field.js.map +1 -1
  667. package/dist/field/index.d.ts +1 -1
  668. package/dist/field/index.d.ts.map +1 -1
  669. package/dist/field/index.js +9 -7
  670. package/dist/field/index.js.map +1 -1
  671. package/dist/i18n.js.map +1 -1
  672. package/dist/index.d.ts +68 -66
  673. package/dist/index.d.ts.map +1 -1
  674. package/dist/index.js +76 -76
  675. package/dist/index.js.map +1 -1
  676. package/dist/lexical/EditorPlugin.d.ts +8 -0
  677. package/dist/lexical/EditorPlugin.d.ts.map +1 -0
  678. package/dist/lexical/EditorPlugin.js +15 -0
  679. package/dist/lexical/EditorPlugin.js.map +1 -0
  680. package/dist/lexical/LexicalEditor.d.ts.map +1 -0
  681. package/dist/lexical/LexicalEditor.js +192 -0
  682. package/dist/lexical/LexicalEditor.js.map +1 -0
  683. package/dist/lexical/LexicalProvider.d.ts +18 -0
  684. package/dist/lexical/LexicalProvider.d.ts.map +1 -0
  685. package/dist/lexical/LexicalProvider.js.map +1 -0
  686. package/dist/lexical/config/client/EditorConfigProvider.d.ts +35 -0
  687. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
  688. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -0
  689. package/dist/lexical/config/client/default.d.ts.map +1 -0
  690. package/dist/lexical/config/client/default.js.map +1 -0
  691. package/dist/lexical/config/client/loader.d.ts +12 -0
  692. package/dist/lexical/config/client/loader.d.ts.map +1 -0
  693. package/dist/lexical/config/client/loader.js +46 -0
  694. package/dist/lexical/config/client/loader.js.map +1 -0
  695. package/dist/lexical/config/client/sanitize.d.ts +7 -0
  696. package/dist/lexical/config/client/sanitize.d.ts.map +1 -0
  697. package/dist/lexical/config/client/sanitize.js +176 -0
  698. package/dist/lexical/config/client/sanitize.js.map +1 -0
  699. package/dist/lexical/config/server/default.d.ts +7 -0
  700. package/dist/lexical/config/server/default.d.ts.map +1 -0
  701. package/dist/lexical/config/server/default.js.map +1 -0
  702. package/dist/lexical/config/server/loader.d.ts +10 -0
  703. package/dist/lexical/config/server/loader.d.ts.map +1 -0
  704. package/dist/lexical/config/server/loader.js +120 -0
  705. package/dist/lexical/config/server/loader.js.map +1 -0
  706. package/dist/lexical/config/server/sanitize.d.ts +6 -0
  707. package/dist/lexical/config/server/sanitize.d.ts.map +1 -0
  708. package/dist/lexical/config/server/sanitize.js.map +1 -0
  709. package/dist/lexical/config/types.d.ts +24 -0
  710. package/dist/lexical/config/types.d.ts.map +1 -0
  711. package/dist/lexical/config/types.js.map +1 -0
  712. package/dist/lexical/nodes/index.d.ts.map +1 -0
  713. package/dist/lexical/nodes/index.js.map +1 -0
  714. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -0
  715. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -0
  716. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
  717. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
  718. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
  719. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
  720. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +39 -0
  721. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -0
  722. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -0
  723. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -0
  724. package/dist/lexical/plugins/SlashMenu/index.js +187 -0
  725. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -0
  726. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -0
  727. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -0
  728. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -0
  729. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -0
  730. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -0
  731. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -0
  732. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -0
  733. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -0
  734. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -0
  735. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -0
  736. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -0
  737. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -0
  738. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +9 -0
  739. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -0
  740. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -0
  741. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
  742. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
  743. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -0
  744. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -0
  745. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -0
  746. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -0
  747. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
  748. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
  749. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -0
  750. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -0
  751. package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -0
  752. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -0
  753. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -0
  754. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -0
  755. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
  756. package/dist/lexical/theme/EditorTheme.js.map +1 -0
  757. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -0
  758. package/dist/lexical/ui/ContentEditable.js.map +1 -0
  759. package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -0
  760. package/dist/lexical/ui/icons/AI/index.js.map +1 -0
  761. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -0
  762. package/dist/lexical/ui/icons/Add/index.js.map +1 -0
  763. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -0
  764. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -0
  765. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -0
  766. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -0
  767. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -0
  768. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -0
  769. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -0
  770. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -0
  771. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -0
  772. package/dist/lexical/ui/icons/Block/index.js.map +1 -0
  773. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -0
  774. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -0
  775. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -0
  776. package/dist/lexical/ui/icons/Bold/index.js.map +1 -0
  777. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -0
  778. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -0
  779. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -0
  780. package/dist/lexical/ui/icons/Code/index.js.map +1 -0
  781. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -0
  782. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -0
  783. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -0
  784. package/dist/lexical/ui/icons/H1/index.js.map +1 -0
  785. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -0
  786. package/dist/lexical/ui/icons/H2/index.js.map +1 -0
  787. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -0
  788. package/dist/lexical/ui/icons/H3/index.js.map +1 -0
  789. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -0
  790. package/dist/lexical/ui/icons/H4/index.js.map +1 -0
  791. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -0
  792. package/dist/lexical/ui/icons/H5/index.js.map +1 -0
  793. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -0
  794. package/dist/lexical/ui/icons/H6/index.js.map +1 -0
  795. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -0
  796. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -0
  797. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -0
  798. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -0
  799. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
  800. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -0
  801. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -0
  802. package/dist/lexical/ui/icons/Italic/index.js.map +1 -0
  803. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
  804. package/dist/lexical/ui/icons/Link/index.js.map +1 -0
  805. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -0
  806. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -0
  807. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -0
  808. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -0
  809. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -0
  810. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -0
  811. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -0
  812. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -0
  813. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -0
  814. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -0
  815. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -0
  816. package/dist/lexical/ui/icons/Text/index.js.map +1 -0
  817. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -0
  818. package/dist/lexical/ui/icons/Underline/index.js.map +1 -0
  819. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -0
  820. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -0
  821. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -0
  822. package/dist/lexical/ui/icons/Upload/index.js.map +1 -0
  823. package/dist/lexical/utils/canUseDOM.d.ts.map +1 -0
  824. package/dist/lexical/utils/canUseDOM.js.map +1 -0
  825. package/dist/lexical/utils/cloneDeep.d.ts.map +1 -0
  826. package/dist/lexical/utils/cloneDeep.js +50 -0
  827. package/dist/lexical/utils/cloneDeep.js.map +1 -0
  828. package/dist/lexical/utils/environment.d.ts.map +1 -0
  829. package/dist/lexical/utils/environment.js.map +1 -0
  830. package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -0
  831. package/dist/lexical/utils/getDOMRangeRect.js.map +1 -0
  832. package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -0
  833. package/dist/lexical/utils/getSelectedNode.js.map +1 -0
  834. package/dist/lexical/utils/guard.d.ts.map +1 -0
  835. package/dist/lexical/utils/guard.js.map +1 -0
  836. package/dist/lexical/utils/invariant.d.ts.map +1 -0
  837. package/dist/lexical/utils/invariant.js.map +1 -0
  838. package/dist/lexical/utils/joinClasses.d.ts.map +1 -0
  839. package/dist/lexical/utils/joinClasses.js.map +1 -0
  840. package/dist/lexical/utils/markdown/createBlockNode.d.ts +4 -0
  841. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -0
  842. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -0
  843. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -0
  844. package/dist/lexical/utils/nodeFormat.js.map +1 -0
  845. package/dist/lexical/utils/point.d.ts.map +1 -0
  846. package/dist/lexical/utils/point.js.map +1 -0
  847. package/dist/lexical/utils/rect.d.ts.map +1 -0
  848. package/dist/lexical/utils/rect.js.map +1 -0
  849. package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -0
  850. package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -0
  851. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
  852. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  853. package/dist/lexical/utils/swipe.d.ts.map +1 -0
  854. package/dist/lexical/utils/swipe.js.map +1 -0
  855. package/dist/lexical/utils/url.d.ts.map +1 -0
  856. package/dist/lexical/utils/url.js.map +1 -0
  857. package/dist/populateGraphQL/defaultValue.js.map +1 -1
  858. package/dist/populateGraphQL/populate.d.ts +3 -3
  859. package/dist/populateGraphQL/populate.d.ts.map +1 -1
  860. package/dist/populateGraphQL/populate.js +2 -2
  861. package/dist/populateGraphQL/populate.js.map +1 -1
  862. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  863. package/dist/populateGraphQL/populateLexicalPopulationPromises.js +1 -1
  864. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  865. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +1 -1
  866. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -1
  867. package/dist/types.d.ts +7 -7
  868. package/dist/types.d.ts.map +1 -1
  869. package/dist/types.js.map +1 -1
  870. package/dist/utilities/createClientFeature.d.ts +13 -0
  871. package/dist/utilities/createClientFeature.d.ts.map +1 -0
  872. package/dist/utilities/createClientFeature.js +30 -0
  873. package/dist/utilities/createClientFeature.js.map +1 -0
  874. package/dist/utilities/createServerFeature.d.ts +16 -0
  875. package/dist/utilities/createServerFeature.d.ts.map +1 -0
  876. package/dist/utilities/createServerFeature.js +34 -0
  877. package/dist/utilities/createServerFeature.js.map +1 -0
  878. package/dist/utilities/forEachNodeRecursively.d.ts.map +1 -0
  879. package/dist/utilities/forEachNodeRecursively.js.map +1 -0
  880. package/dist/utilities/generateComponentMap.d.ts +6 -0
  881. package/dist/utilities/generateComponentMap.d.ts.map +1 -0
  882. package/dist/utilities/generateComponentMap.js +77 -0
  883. package/dist/utilities/generateComponentMap.js.map +1 -0
  884. package/dist/utilities/generateSchemaMap.d.ts +6 -0
  885. package/dist/utilities/generateSchemaMap.d.ts.map +1 -0
  886. package/dist/utilities/generateSchemaMap.js +22 -0
  887. package/dist/utilities/generateSchemaMap.js.map +1 -0
  888. package/dist/utilities/recurseNodeTree.d.ts.map +1 -0
  889. package/dist/utilities/recurseNodeTree.js.map +1 -0
  890. package/dist/utilities/useLexicalFeature.d.ts +3 -0
  891. package/dist/utilities/useLexicalFeature.d.ts.map +1 -0
  892. package/dist/utilities/useLexicalFeature.js +12 -0
  893. package/dist/utilities/useLexicalFeature.js.map +1 -0
  894. package/dist/validate/index.d.ts +1 -1
  895. package/dist/validate/index.d.ts.map +1 -1
  896. package/dist/validate/index.js.map +1 -1
  897. package/dist/validate/validateNodes.d.ts +1 -1
  898. package/dist/validate/validateNodes.js.map +1 -1
  899. package/package.json +14 -14
  900. package/dist/exports/client/Component-6AVANNNR.js +0 -2
  901. package/dist/exports/client/Component-6AVANNNR.js.map +0 -7
  902. package/dist/exports/client/Component-SZVAYRJX.js +0 -2
  903. package/dist/exports/client/Component-SZVAYRJX.js.map +0 -7
  904. package/dist/exports/client/Field-U5PHZTST.js +0 -2
  905. package/dist/exports/client/Field-U5PHZTST.js.map +0 -7
  906. package/dist/exports/client/RelationshipComponent-FGUPLCD2.js +0 -2
  907. package/dist/exports/client/RelationshipComponent-FGUPLCD2.js.map +0 -7
  908. package/dist/exports/client/chunk-35NZOHAF.js +0 -2
  909. package/dist/exports/client/chunk-35NZOHAF.js.map +0 -7
  910. package/dist/exports/client/chunk-3PZ2ZFQG.js +0 -3
  911. package/dist/exports/client/chunk-3PZ2ZFQG.js.map +0 -7
  912. package/dist/exports/client/chunk-FSTRW2TI.js +0 -2
  913. package/dist/exports/client/chunk-FSTRW2TI.js.map +0 -7
  914. package/dist/exports/client/chunk-M6MN4CA5.js +0 -2
  915. package/dist/exports/client/chunk-M6MN4CA5.js.map +0 -7
  916. package/dist/exports/client/chunk-Y5455JF3.js +0 -2
  917. package/dist/exports/client/chunk-Y5455JF3.js.map +0 -7
  918. package/dist/exports/client/component-FFLILIUZ.js +0 -2
  919. package/dist/exports/client/component-FFLILIUZ.js.map +0 -7
  920. package/dist/exports/client/component-RAVN56DE.js +0 -2
  921. package/dist/exports/client/component-RAVN56DE.js.map +0 -7
  922. package/dist/exports/client/component-Z34HXRX3.js +0 -2
  923. package/dist/exports/client/component-Z34HXRX3.js.map +0 -7
  924. package/dist/field/features/align/feature.client.d.ts +0 -6
  925. package/dist/field/features/align/feature.client.d.ts.map +0 -1
  926. package/dist/field/features/align/feature.client.js +0 -153
  927. package/dist/field/features/align/feature.client.js.map +0 -1
  928. package/dist/field/features/align/feature.server.d.ts +0 -3
  929. package/dist/field/features/align/feature.server.d.ts.map +0 -1
  930. package/dist/field/features/align/feature.server.js +0 -19
  931. package/dist/field/features/align/feature.server.js.map +0 -1
  932. package/dist/field/features/align/i18n.d.ts.map +0 -1
  933. package/dist/field/features/align/i18n.js.map +0 -1
  934. package/dist/field/features/align/toolbarAlignGroup.d.ts.map +0 -1
  935. package/dist/field/features/align/toolbarAlignGroup.js.map +0 -1
  936. package/dist/field/features/blockquote/feature.client.d.ts +0 -6
  937. package/dist/field/features/blockquote/feature.client.d.ts.map +0 -1
  938. package/dist/field/features/blockquote/feature.client.js +0 -84
  939. package/dist/field/features/blockquote/feature.client.js.map +0 -1
  940. package/dist/field/features/blockquote/feature.server.d.ts +0 -3
  941. package/dist/field/features/blockquote/feature.server.d.ts.map +0 -1
  942. package/dist/field/features/blockquote/feature.server.js +0 -50
  943. package/dist/field/features/blockquote/feature.server.js.map +0 -1
  944. package/dist/field/features/blockquote/i18n.d.ts.map +0 -1
  945. package/dist/field/features/blockquote/i18n.js.map +0 -1
  946. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +0 -1
  947. package/dist/field/features/blockquote/markdownTransformer.js.map +0 -1
  948. package/dist/field/features/blocks/component/BlockContent.d.ts +0 -27
  949. package/dist/field/features/blocks/component/BlockContent.d.ts.map +0 -1
  950. package/dist/field/features/blocks/component/BlockContent.js +0 -193
  951. package/dist/field/features/blocks/component/BlockContent.js.map +0 -1
  952. package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
  953. package/dist/field/features/blocks/component/FormSavePlugin.js +0 -29
  954. package/dist/field/features/blocks/component/FormSavePlugin.js.map +0 -1
  955. package/dist/field/features/blocks/component/index.d.ts.map +0 -1
  956. package/dist/field/features/blocks/component/index.js +0 -158
  957. package/dist/field/features/blocks/component/index.js.map +0 -1
  958. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
  959. package/dist/field/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
  960. package/dist/field/features/blocks/drawer/index.d.ts.map +0 -1
  961. package/dist/field/features/blocks/drawer/index.js +0 -78
  962. package/dist/field/features/blocks/drawer/index.js.map +0 -1
  963. package/dist/field/features/blocks/feature.client.d.ts +0 -10
  964. package/dist/field/features/blocks/feature.client.d.ts.map +0 -1
  965. package/dist/field/features/blocks/feature.client.js +0 -92
  966. package/dist/field/features/blocks/feature.client.js.map +0 -1
  967. package/dist/field/features/blocks/feature.server.d.ts +0 -8
  968. package/dist/field/features/blocks/feature.server.d.ts.map +0 -1
  969. package/dist/field/features/blocks/feature.server.js +0 -107
  970. package/dist/field/features/blocks/feature.server.js.map +0 -1
  971. package/dist/field/features/blocks/graphQLPopulationPromise.d.ts +0 -5
  972. package/dist/field/features/blocks/graphQLPopulationPromise.d.ts.map +0 -1
  973. package/dist/field/features/blocks/graphQLPopulationPromise.js +0 -31
  974. package/dist/field/features/blocks/graphQLPopulationPromise.js.map +0 -1
  975. package/dist/field/features/blocks/i18n.d.ts.map +0 -1
  976. package/dist/field/features/blocks/i18n.js.map +0 -1
  977. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
  978. package/dist/field/features/blocks/nodes/BlocksNode.js.map +0 -1
  979. package/dist/field/features/blocks/plugin/commands.d.ts.map +0 -1
  980. package/dist/field/features/blocks/plugin/commands.js.map +0 -1
  981. package/dist/field/features/blocks/plugin/index.d.ts +0 -6
  982. package/dist/field/features/blocks/plugin/index.d.ts.map +0 -1
  983. package/dist/field/features/blocks/plugin/index.js.map +0 -1
  984. package/dist/field/features/blocks/validate.d.ts +0 -5
  985. package/dist/field/features/blocks/validate.d.ts.map +0 -1
  986. package/dist/field/features/blocks/validate.js.map +0 -1
  987. package/dist/field/features/converters/html/converter/converters/linebreak.d.ts.map +0 -1
  988. package/dist/field/features/converters/html/converter/converters/linebreak.js.map +0 -1
  989. package/dist/field/features/converters/html/converter/converters/paragraph.d.ts.map +0 -1
  990. package/dist/field/features/converters/html/converter/converters/paragraph.js +0 -20
  991. package/dist/field/features/converters/html/converter/converters/paragraph.js.map +0 -1
  992. package/dist/field/features/converters/html/converter/converters/text.d.ts.map +0 -1
  993. package/dist/field/features/converters/html/converter/converters/text.js.map +0 -1
  994. package/dist/field/features/converters/html/converter/defaultConverters.d.ts.map +0 -1
  995. package/dist/field/features/converters/html/converter/defaultConverters.js.map +0 -1
  996. package/dist/field/features/converters/html/converter/index.d.ts +0 -21
  997. package/dist/field/features/converters/html/converter/index.d.ts.map +0 -1
  998. package/dist/field/features/converters/html/converter/index.js +0 -44
  999. package/dist/field/features/converters/html/converter/index.js.map +0 -1
  1000. package/dist/field/features/converters/html/converter/types.d.ts +0 -19
  1001. package/dist/field/features/converters/html/converter/types.d.ts.map +0 -1
  1002. package/dist/field/features/converters/html/converter/types.js.map +0 -1
  1003. package/dist/field/features/converters/html/feature.server.d.ts +0 -9
  1004. package/dist/field/features/converters/html/feature.server.d.ts.map +0 -1
  1005. package/dist/field/features/converters/html/feature.server.js +0 -14
  1006. package/dist/field/features/converters/html/feature.server.js.map +0 -1
  1007. package/dist/field/features/converters/html/field/index.d.ts.map +0 -1
  1008. package/dist/field/features/converters/html/field/index.js +0 -154
  1009. package/dist/field/features/converters/html/field/index.js.map +0 -1
  1010. package/dist/field/features/createClientComponent.d.ts +0 -6
  1011. package/dist/field/features/createClientComponent.d.ts.map +0 -1
  1012. package/dist/field/features/createClientComponent.js +0 -12
  1013. package/dist/field/features/createClientComponent.js.map +0 -1
  1014. package/dist/field/features/createFeaturePropComponent.d.ts.map +0 -1
  1015. package/dist/field/features/createFeaturePropComponent.js +0 -18
  1016. package/dist/field/features/createFeaturePropComponent.js.map +0 -1
  1017. package/dist/field/features/debug/testRecorder/feature.client.d.ts +0 -6
  1018. package/dist/field/features/debug/testRecorder/feature.client.d.ts.map +0 -1
  1019. package/dist/field/features/debug/testRecorder/feature.client.js +0 -20
  1020. package/dist/field/features/debug/testRecorder/feature.client.js.map +0 -1
  1021. package/dist/field/features/debug/testRecorder/feature.server.d.ts +0 -3
  1022. package/dist/field/features/debug/testRecorder/feature.server.d.ts.map +0 -1
  1023. package/dist/field/features/debug/testRecorder/feature.server.js +0 -16
  1024. package/dist/field/features/debug/testRecorder/feature.server.js.map +0 -1
  1025. package/dist/field/features/debug/testRecorder/plugin/index.d.ts +0 -5
  1026. package/dist/field/features/debug/testRecorder/plugin/index.d.ts.map +0 -1
  1027. package/dist/field/features/debug/testRecorder/plugin/index.js.map +0 -1
  1028. package/dist/field/features/debug/treeView/feature.client.d.ts +0 -6
  1029. package/dist/field/features/debug/treeView/feature.client.d.ts.map +0 -1
  1030. package/dist/field/features/debug/treeView/feature.client.js +0 -20
  1031. package/dist/field/features/debug/treeView/feature.client.js.map +0 -1
  1032. package/dist/field/features/debug/treeView/feature.server.d.ts +0 -3
  1033. package/dist/field/features/debug/treeView/feature.server.d.ts.map +0 -1
  1034. package/dist/field/features/debug/treeView/feature.server.js +0 -16
  1035. package/dist/field/features/debug/treeView/feature.server.js.map +0 -1
  1036. package/dist/field/features/debug/treeView/plugin/index.d.ts +0 -4
  1037. package/dist/field/features/debug/treeView/plugin/index.d.ts.map +0 -1
  1038. package/dist/field/features/debug/treeView/plugin/index.js.map +0 -1
  1039. package/dist/field/features/format/bold/feature.client.d.ts +0 -6
  1040. package/dist/field/features/format/bold/feature.client.d.ts.map +0 -1
  1041. package/dist/field/features/format/bold/feature.client.js +0 -51
  1042. package/dist/field/features/format/bold/feature.client.js.map +0 -1
  1043. package/dist/field/features/format/bold/feature.server.d.ts +0 -3
  1044. package/dist/field/features/format/bold/feature.server.d.ts.map +0 -1
  1045. package/dist/field/features/format/bold/feature.server.js +0 -28
  1046. package/dist/field/features/format/bold/feature.server.js.map +0 -1
  1047. package/dist/field/features/format/bold/markdownTransformers.d.ts.map +0 -1
  1048. package/dist/field/features/format/bold/markdownTransformers.js.map +0 -1
  1049. package/dist/field/features/format/inlineCode/feature.client.d.ts +0 -6
  1050. package/dist/field/features/format/inlineCode/feature.client.d.ts.map +0 -1
  1051. package/dist/field/features/format/inlineCode/feature.client.js +0 -46
  1052. package/dist/field/features/format/inlineCode/feature.client.js.map +0 -1
  1053. package/dist/field/features/format/inlineCode/feature.server.d.ts +0 -3
  1054. package/dist/field/features/format/inlineCode/feature.server.d.ts.map +0 -1
  1055. package/dist/field/features/format/inlineCode/feature.server.js +0 -20
  1056. package/dist/field/features/format/inlineCode/feature.server.js.map +0 -1
  1057. package/dist/field/features/format/inlineCode/markdownTransformers.d.ts.map +0 -1
  1058. package/dist/field/features/format/inlineCode/markdownTransformers.js.map +0 -1
  1059. package/dist/field/features/format/italic/feature.client.d.ts +0 -6
  1060. package/dist/field/features/format/italic/feature.client.d.ts.map +0 -1
  1061. package/dist/field/features/format/italic/feature.client.js +0 -47
  1062. package/dist/field/features/format/italic/feature.client.js.map +0 -1
  1063. package/dist/field/features/format/italic/feature.server.d.ts +0 -3
  1064. package/dist/field/features/format/italic/feature.server.d.ts.map +0 -1
  1065. package/dist/field/features/format/italic/feature.server.js +0 -21
  1066. package/dist/field/features/format/italic/feature.server.js.map +0 -1
  1067. package/dist/field/features/format/italic/markdownTransformers.d.ts.map +0 -1
  1068. package/dist/field/features/format/italic/markdownTransformers.js.map +0 -1
  1069. package/dist/field/features/format/shared/toolbarFormatGroup.d.ts.map +0 -1
  1070. package/dist/field/features/format/shared/toolbarFormatGroup.js.map +0 -1
  1071. package/dist/field/features/format/strikethrough/feature.client.d.ts +0 -6
  1072. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +0 -1
  1073. package/dist/field/features/format/strikethrough/feature.client.js +0 -46
  1074. package/dist/field/features/format/strikethrough/feature.client.js.map +0 -1
  1075. package/dist/field/features/format/strikethrough/feature.server.d.ts +0 -3
  1076. package/dist/field/features/format/strikethrough/feature.server.d.ts.map +0 -1
  1077. package/dist/field/features/format/strikethrough/feature.server.js +0 -20
  1078. package/dist/field/features/format/strikethrough/feature.server.js.map +0 -1
  1079. package/dist/field/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  1080. package/dist/field/features/format/strikethrough/markdownTransformers.js.map +0 -1
  1081. package/dist/field/features/format/subscript/feature.client.d.ts +0 -6
  1082. package/dist/field/features/format/subscript/feature.client.d.ts.map +0 -1
  1083. package/dist/field/features/format/subscript/feature.client.js +0 -42
  1084. package/dist/field/features/format/subscript/feature.client.js.map +0 -1
  1085. package/dist/field/features/format/subscript/feature.server.d.ts +0 -3
  1086. package/dist/field/features/format/subscript/feature.server.d.ts.map +0 -1
  1087. package/dist/field/features/format/subscript/feature.server.js +0 -16
  1088. package/dist/field/features/format/subscript/feature.server.js.map +0 -1
  1089. package/dist/field/features/format/superscript/feature.client.d.ts +0 -6
  1090. package/dist/field/features/format/superscript/feature.client.d.ts.map +0 -1
  1091. package/dist/field/features/format/superscript/feature.client.js +0 -42
  1092. package/dist/field/features/format/superscript/feature.client.js.map +0 -1
  1093. package/dist/field/features/format/superscript/feature.server.d.ts +0 -3
  1094. package/dist/field/features/format/superscript/feature.server.d.ts.map +0 -1
  1095. package/dist/field/features/format/superscript/feature.server.js +0 -16
  1096. package/dist/field/features/format/superscript/feature.server.js.map +0 -1
  1097. package/dist/field/features/format/underline/feature.client.d.ts +0 -6
  1098. package/dist/field/features/format/underline/feature.client.d.ts.map +0 -1
  1099. package/dist/field/features/format/underline/feature.client.js +0 -42
  1100. package/dist/field/features/format/underline/feature.client.js.map +0 -1
  1101. package/dist/field/features/format/underline/feature.server.d.ts +0 -3
  1102. package/dist/field/features/format/underline/feature.server.d.ts.map +0 -1
  1103. package/dist/field/features/format/underline/feature.server.js +0 -16
  1104. package/dist/field/features/format/underline/feature.server.js.map +0 -1
  1105. package/dist/field/features/heading/feature.client.d.ts +0 -7
  1106. package/dist/field/features/heading/feature.client.d.ts.map +0 -1
  1107. package/dist/field/features/heading/feature.client.js +0 -118
  1108. package/dist/field/features/heading/feature.client.js.map +0 -1
  1109. package/dist/field/features/heading/feature.server.d.ts +0 -7
  1110. package/dist/field/features/heading/feature.server.d.ts.map +0 -1
  1111. package/dist/field/features/heading/feature.server.js +0 -61
  1112. package/dist/field/features/heading/feature.server.js.map +0 -1
  1113. package/dist/field/features/heading/i18n.d.ts.map +0 -1
  1114. package/dist/field/features/heading/i18n.js.map +0 -1
  1115. package/dist/field/features/heading/markdownTransformer.d.ts.map +0 -1
  1116. package/dist/field/features/heading/markdownTransformer.js.map +0 -1
  1117. package/dist/field/features/horizontalRule/component/index.d.ts.map +0 -1
  1118. package/dist/field/features/horizontalRule/component/index.js.map +0 -1
  1119. package/dist/field/features/horizontalRule/feature.client.d.ts +0 -6
  1120. package/dist/field/features/horizontalRule/feature.client.d.ts.map +0 -1
  1121. package/dist/field/features/horizontalRule/feature.client.js +0 -77
  1122. package/dist/field/features/horizontalRule/feature.client.js.map +0 -1
  1123. package/dist/field/features/horizontalRule/feature.server.d.ts +0 -3
  1124. package/dist/field/features/horizontalRule/feature.server.d.ts.map +0 -1
  1125. package/dist/field/features/horizontalRule/feature.server.js +0 -39
  1126. package/dist/field/features/horizontalRule/feature.server.js.map +0 -1
  1127. package/dist/field/features/horizontalRule/i18n.d.ts.map +0 -1
  1128. package/dist/field/features/horizontalRule/i18n.js.map +0 -1
  1129. package/dist/field/features/horizontalRule/markdownTransformer.d.ts.map +0 -1
  1130. package/dist/field/features/horizontalRule/markdownTransformer.js.map +0 -1
  1131. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  1132. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.js.map +0 -1
  1133. package/dist/field/features/horizontalRule/plugin/index.d.ts +0 -7
  1134. package/dist/field/features/horizontalRule/plugin/index.d.ts.map +0 -1
  1135. package/dist/field/features/horizontalRule/plugin/index.js.map +0 -1
  1136. package/dist/field/features/indent/feature.client.d.ts +0 -6
  1137. package/dist/field/features/indent/feature.client.d.ts.map +0 -1
  1138. package/dist/field/features/indent/feature.client.js +0 -63
  1139. package/dist/field/features/indent/feature.client.js.map +0 -1
  1140. package/dist/field/features/indent/feature.server.d.ts +0 -3
  1141. package/dist/field/features/indent/feature.server.d.ts.map +0 -1
  1142. package/dist/field/features/indent/feature.server.js +0 -19
  1143. package/dist/field/features/indent/feature.server.js.map +0 -1
  1144. package/dist/field/features/indent/i18n.d.ts.map +0 -1
  1145. package/dist/field/features/indent/i18n.js.map +0 -1
  1146. package/dist/field/features/indent/toolbarIndentGroup.d.ts.map +0 -1
  1147. package/dist/field/features/indent/toolbarIndentGroup.js.map +0 -1
  1148. package/dist/field/features/link/drawer/baseFields.d.ts +0 -3
  1149. package/dist/field/features/link/drawer/baseFields.d.ts.map +0 -1
  1150. package/dist/field/features/link/drawer/baseFields.js.map +0 -1
  1151. package/dist/field/features/link/drawer/index.d.ts.map +0 -1
  1152. package/dist/field/features/link/drawer/index.js +0 -94
  1153. package/dist/field/features/link/drawer/index.js.map +0 -1
  1154. package/dist/field/features/link/drawer/types.d.ts.map +0 -1
  1155. package/dist/field/features/link/drawer/types.js.map +0 -1
  1156. package/dist/field/features/link/feature.client.d.ts +0 -17
  1157. package/dist/field/features/link/feature.client.d.ts.map +0 -1
  1158. package/dist/field/features/link/feature.client.js +0 -108
  1159. package/dist/field/features/link/feature.client.js.map +0 -1
  1160. package/dist/field/features/link/feature.server.d.ts +0 -37
  1161. package/dist/field/features/link/feature.server.d.ts.map +0 -1
  1162. package/dist/field/features/link/feature.server.js +0 -140
  1163. package/dist/field/features/link/feature.server.js.map +0 -1
  1164. package/dist/field/features/link/graphQLPopulationPromise.d.ts +0 -5
  1165. package/dist/field/features/link/graphQLPopulationPromise.d.ts.map +0 -1
  1166. package/dist/field/features/link/graphQLPopulationPromise.js +0 -31
  1167. package/dist/field/features/link/graphQLPopulationPromise.js.map +0 -1
  1168. package/dist/field/features/link/i18n.d.ts.map +0 -1
  1169. package/dist/field/features/link/i18n.js.map +0 -1
  1170. package/dist/field/features/link/markdownTransformer.d.ts.map +0 -1
  1171. package/dist/field/features/link/markdownTransformer.js.map +0 -1
  1172. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +0 -1
  1173. package/dist/field/features/link/nodes/AutoLinkNode.js.map +0 -1
  1174. package/dist/field/features/link/nodes/LinkNode.d.ts.map +0 -1
  1175. package/dist/field/features/link/nodes/LinkNode.js.map +0 -1
  1176. package/dist/field/features/link/nodes/types.d.ts.map +0 -1
  1177. package/dist/field/features/link/nodes/types.js.map +0 -1
  1178. package/dist/field/features/link/plugins/autoLink/index.d.ts +0 -20
  1179. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +0 -1
  1180. package/dist/field/features/link/plugins/autoLink/index.js.map +0 -1
  1181. package/dist/field/features/link/plugins/clickableLink/index.d.ts +0 -4
  1182. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +0 -1
  1183. package/dist/field/features/link/plugins/clickableLink/index.js.map +0 -1
  1184. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  1185. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
  1186. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  1187. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -295
  1188. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
  1189. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +0 -5
  1190. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  1191. package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
  1192. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  1193. package/dist/field/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
  1194. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -9
  1195. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  1196. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
  1197. package/dist/field/features/link/plugins/link/index.d.ts +0 -4
  1198. package/dist/field/features/link/plugins/link/index.d.ts.map +0 -1
  1199. package/dist/field/features/link/plugins/link/index.js.map +0 -1
  1200. package/dist/field/features/link/validate.d.ts +0 -6
  1201. package/dist/field/features/link/validate.d.ts.map +0 -1
  1202. package/dist/field/features/link/validate.js.map +0 -1
  1203. package/dist/field/features/lists/checklist/feature.client.d.ts +0 -6
  1204. package/dist/field/features/lists/checklist/feature.client.d.ts.map +0 -1
  1205. package/dist/field/features/lists/checklist/feature.client.js +0 -107
  1206. package/dist/field/features/lists/checklist/feature.client.js.map +0 -1
  1207. package/dist/field/features/lists/checklist/feature.server.d.ts +0 -3
  1208. package/dist/field/features/lists/checklist/feature.server.d.ts.map +0 -1
  1209. package/dist/field/features/lists/checklist/feature.server.js +0 -39
  1210. package/dist/field/features/lists/checklist/feature.server.js.map +0 -1
  1211. package/dist/field/features/lists/checklist/i18n.d.ts.map +0 -1
  1212. package/dist/field/features/lists/checklist/i18n.js.map +0 -1
  1213. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  1214. package/dist/field/features/lists/checklist/markdownTransformers.js.map +0 -1
  1215. package/dist/field/features/lists/checklist/plugin/index.d.ts +0 -3
  1216. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +0 -1
  1217. package/dist/field/features/lists/checklist/plugin/index.js.map +0 -1
  1218. package/dist/field/features/lists/htmlConverter.d.ts.map +0 -1
  1219. package/dist/field/features/lists/htmlConverter.js +0 -56
  1220. package/dist/field/features/lists/htmlConverter.js.map +0 -1
  1221. package/dist/field/features/lists/orderedList/feature.client.d.ts +0 -6
  1222. package/dist/field/features/lists/orderedList/feature.client.d.ts.map +0 -1
  1223. package/dist/field/features/lists/orderedList/feature.client.js +0 -97
  1224. package/dist/field/features/lists/orderedList/feature.client.js.map +0 -1
  1225. package/dist/field/features/lists/orderedList/feature.server.d.ts +0 -3
  1226. package/dist/field/features/lists/orderedList/feature.server.d.ts.map +0 -1
  1227. package/dist/field/features/lists/orderedList/feature.server.js +0 -39
  1228. package/dist/field/features/lists/orderedList/feature.server.js.map +0 -1
  1229. package/dist/field/features/lists/orderedList/i18n.d.ts.map +0 -1
  1230. package/dist/field/features/lists/orderedList/i18n.js.map +0 -1
  1231. package/dist/field/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
  1232. package/dist/field/features/lists/orderedList/markdownTransformer.js.map +0 -1
  1233. package/dist/field/features/lists/plugin/index.d.ts +0 -3
  1234. package/dist/field/features/lists/plugin/index.d.ts.map +0 -1
  1235. package/dist/field/features/lists/plugin/index.js.map +0 -1
  1236. package/dist/field/features/lists/shared/markdown.d.ts +0 -6
  1237. package/dist/field/features/lists/shared/markdown.d.ts.map +0 -1
  1238. package/dist/field/features/lists/shared/markdown.js.map +0 -1
  1239. package/dist/field/features/lists/shared/slashMenuListGroup.d.ts.map +0 -1
  1240. package/dist/field/features/lists/shared/slashMenuListGroup.js.map +0 -1
  1241. package/dist/field/features/lists/unorderedList/feature.client.d.ts +0 -6
  1242. package/dist/field/features/lists/unorderedList/feature.client.d.ts.map +0 -1
  1243. package/dist/field/features/lists/unorderedList/feature.client.js +0 -97
  1244. package/dist/field/features/lists/unorderedList/feature.client.js.map +0 -1
  1245. package/dist/field/features/lists/unorderedList/feature.server.d.ts +0 -3
  1246. package/dist/field/features/lists/unorderedList/feature.server.d.ts.map +0 -1
  1247. package/dist/field/features/lists/unorderedList/feature.server.js +0 -39
  1248. package/dist/field/features/lists/unorderedList/feature.server.js.map +0 -1
  1249. package/dist/field/features/lists/unorderedList/i18n.d.ts.map +0 -1
  1250. package/dist/field/features/lists/unorderedList/i18n.js.map +0 -1
  1251. package/dist/field/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
  1252. package/dist/field/features/lists/unorderedList/markdownTransformer.js.map +0 -1
  1253. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -6
  1254. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1255. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
  1256. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1257. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  1258. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1259. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
  1260. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
  1261. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -6
  1262. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
  1263. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
  1264. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1265. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  1266. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
  1267. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
  1268. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
  1269. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -6
  1270. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
  1271. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
  1272. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  1273. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  1274. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
  1275. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
  1276. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
  1277. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -6
  1278. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1279. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
  1280. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1281. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  1282. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1283. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
  1284. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
  1285. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -6
  1286. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
  1287. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
  1288. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  1289. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  1290. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
  1291. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
  1292. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
  1293. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -6
  1294. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1295. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
  1296. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1297. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  1298. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1299. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
  1300. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
  1301. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -6
  1302. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1303. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
  1304. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1305. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  1306. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1307. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
  1308. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
  1309. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  1310. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  1311. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  1312. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  1313. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -31
  1314. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  1315. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  1316. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -6
  1317. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  1318. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js +0 -34
  1319. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  1320. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -9
  1321. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  1322. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +0 -48
  1323. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  1324. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1325. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1326. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1327. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1328. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -6
  1329. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
  1330. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
  1331. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  1332. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  1333. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
  1334. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
  1335. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
  1336. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -6
  1337. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1338. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
  1339. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1340. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  1341. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1342. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
  1343. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
  1344. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -6
  1345. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
  1346. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
  1347. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  1348. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  1349. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
  1350. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
  1351. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
  1352. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -6
  1353. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
  1354. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
  1355. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1356. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  1357. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
  1358. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
  1359. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
  1360. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -6
  1361. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1362. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
  1363. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1364. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  1365. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1366. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
  1367. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
  1368. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -6
  1369. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
  1370. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
  1371. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  1372. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  1373. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
  1374. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
  1375. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
  1376. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -6
  1377. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
  1378. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
  1379. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  1380. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  1381. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
  1382. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
  1383. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
  1384. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -6
  1385. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1386. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
  1387. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1388. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  1389. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1390. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
  1391. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
  1392. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -6
  1393. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
  1394. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
  1395. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  1396. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  1397. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
  1398. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
  1399. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
  1400. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -6
  1401. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1402. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
  1403. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1404. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  1405. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1406. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
  1407. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
  1408. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  1409. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  1410. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  1411. package/dist/field/features/migrations/slateToLexical/converter/index.js.map +0 -1
  1412. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts +0 -25
  1413. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  1414. package/dist/field/features/migrations/slateToLexical/converter/types.js.map +0 -1
  1415. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +0 -6
  1416. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  1417. package/dist/field/features/migrations/slateToLexical/feature.client.js +0 -34
  1418. package/dist/field/features/migrations/slateToLexical/feature.client.js.map +0 -1
  1419. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts +0 -9
  1420. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  1421. package/dist/field/features/migrations/slateToLexical/feature.server.js +0 -48
  1422. package/dist/field/features/migrations/slateToLexical/feature.server.js.map +0 -1
  1423. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1424. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1425. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1426. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1427. package/dist/field/features/paragraph/feature.client.d.ts +0 -6
  1428. package/dist/field/features/paragraph/feature.client.d.ts.map +0 -1
  1429. package/dist/field/features/paragraph/feature.client.js +0 -78
  1430. package/dist/field/features/paragraph/feature.client.js.map +0 -1
  1431. package/dist/field/features/paragraph/feature.server.d.ts +0 -3
  1432. package/dist/field/features/paragraph/feature.server.d.ts.map +0 -1
  1433. package/dist/field/features/paragraph/feature.server.js +0 -19
  1434. package/dist/field/features/paragraph/feature.server.js.map +0 -1
  1435. package/dist/field/features/paragraph/i18n.d.ts.map +0 -1
  1436. package/dist/field/features/paragraph/i18n.js.map +0 -1
  1437. package/dist/field/features/relationship/drawer/commands.d.ts.map +0 -1
  1438. package/dist/field/features/relationship/drawer/commands.js.map +0 -1
  1439. package/dist/field/features/relationship/drawer/index.d.ts.map +0 -1
  1440. package/dist/field/features/relationship/drawer/index.js +0 -83
  1441. package/dist/field/features/relationship/drawer/index.js.map +0 -1
  1442. package/dist/field/features/relationship/feature.client.d.ts +0 -19
  1443. package/dist/field/features/relationship/feature.client.d.ts.map +0 -1
  1444. package/dist/field/features/relationship/feature.client.js +0 -79
  1445. package/dist/field/features/relationship/feature.client.js.map +0 -1
  1446. package/dist/field/features/relationship/feature.server.d.ts +0 -27
  1447. package/dist/field/features/relationship/feature.server.d.ts.map +0 -1
  1448. package/dist/field/features/relationship/feature.server.js +0 -61
  1449. package/dist/field/features/relationship/feature.server.js.map +0 -1
  1450. package/dist/field/features/relationship/graphQLPopulationPromise.d.ts +0 -5
  1451. package/dist/field/features/relationship/graphQLPopulationPromise.d.ts.map +0 -1
  1452. package/dist/field/features/relationship/graphQLPopulationPromise.js +0 -29
  1453. package/dist/field/features/relationship/graphQLPopulationPromise.js.map +0 -1
  1454. package/dist/field/features/relationship/i18n.d.ts.map +0 -1
  1455. package/dist/field/features/relationship/i18n.js.map +0 -1
  1456. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
  1457. package/dist/field/features/relationship/nodes/RelationshipNode.js.map +0 -1
  1458. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  1459. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +0 -172
  1460. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
  1461. package/dist/field/features/relationship/plugins/index.d.ts +0 -7
  1462. package/dist/field/features/relationship/plugins/index.d.ts.map +0 -1
  1463. package/dist/field/features/relationship/plugins/index.js +0 -50
  1464. package/dist/field/features/relationship/plugins/index.js.map +0 -1
  1465. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  1466. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +0 -33
  1467. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
  1468. package/dist/field/features/shared/slashMenu/basicGroup.d.ts.map +0 -1
  1469. package/dist/field/features/shared/slashMenu/basicGroup.js.map +0 -1
  1470. package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts.map +0 -1
  1471. package/dist/field/features/shared/toolbar/addDropdownGroup.js.map +0 -1
  1472. package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts.map +0 -1
  1473. package/dist/field/features/shared/toolbar/featureButtonsGroup.js.map +0 -1
  1474. package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts.map +0 -1
  1475. package/dist/field/features/shared/toolbar/textDropdownGroup.js.map +0 -1
  1476. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts +0 -5
  1477. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts.map +0 -1
  1478. package/dist/field/features/toolbars/fixed/Toolbar/index.js +0 -207
  1479. package/dist/field/features/toolbars/fixed/Toolbar/index.js.map +0 -1
  1480. package/dist/field/features/toolbars/fixed/feature.client.d.ts +0 -7
  1481. package/dist/field/features/toolbars/fixed/feature.client.d.ts.map +0 -1
  1482. package/dist/field/features/toolbars/fixed/feature.client.js +0 -20
  1483. package/dist/field/features/toolbars/fixed/feature.client.js.map +0 -1
  1484. package/dist/field/features/toolbars/fixed/feature.server.d.ts +0 -19
  1485. package/dist/field/features/toolbars/fixed/feature.server.d.ts.map +0 -1
  1486. package/dist/field/features/toolbars/fixed/feature.server.js +0 -21
  1487. package/dist/field/features/toolbars/fixed/feature.server.js.map +0 -1
  1488. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts +0 -4
  1489. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts.map +0 -1
  1490. package/dist/field/features/toolbars/inline/Toolbar/index.js.map +0 -1
  1491. package/dist/field/features/toolbars/inline/feature.client.d.ts +0 -6
  1492. package/dist/field/features/toolbars/inline/feature.client.d.ts.map +0 -1
  1493. package/dist/field/features/toolbars/inline/feature.client.js +0 -20
  1494. package/dist/field/features/toolbars/inline/feature.client.js.map +0 -1
  1495. package/dist/field/features/toolbars/inline/feature.server.d.ts +0 -3
  1496. package/dist/field/features/toolbars/inline/feature.server.d.ts.map +0 -1
  1497. package/dist/field/features/toolbars/inline/feature.server.js +0 -16
  1498. package/dist/field/features/toolbars/inline/feature.server.js.map +0 -1
  1499. package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts.map +0 -1
  1500. package/dist/field/features/toolbars/shared/ToolbarButton/index.js.map +0 -1
  1501. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +0 -1
  1502. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +0 -1
  1503. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +0 -1
  1504. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js +0 -141
  1505. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js.map +0 -1
  1506. package/dist/field/features/toolbars/types.d.ts +0 -48
  1507. package/dist/field/features/toolbars/types.d.ts.map +0 -1
  1508. package/dist/field/features/toolbars/types.js.map +0 -1
  1509. package/dist/field/features/typeUtilities.d.ts +0 -8
  1510. package/dist/field/features/typeUtilities.d.ts.map +0 -1
  1511. package/dist/field/features/typeUtilities.js.map +0 -1
  1512. package/dist/field/features/types.d.ts +0 -468
  1513. package/dist/field/features/types.d.ts.map +0 -1
  1514. package/dist/field/features/types.js.map +0 -1
  1515. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +0 -1
  1516. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +0 -123
  1517. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +0 -1
  1518. package/dist/field/features/upload/component/index.d.ts.map +0 -1
  1519. package/dist/field/features/upload/component/index.js +0 -219
  1520. package/dist/field/features/upload/component/index.js.map +0 -1
  1521. package/dist/field/features/upload/drawer/commands.d.ts.map +0 -1
  1522. package/dist/field/features/upload/drawer/commands.js.map +0 -1
  1523. package/dist/field/features/upload/drawer/index.d.ts.map +0 -1
  1524. package/dist/field/features/upload/drawer/index.js +0 -77
  1525. package/dist/field/features/upload/drawer/index.js.map +0 -1
  1526. package/dist/field/features/upload/feature.client.d.ts +0 -13
  1527. package/dist/field/features/upload/feature.client.d.ts.map +0 -1
  1528. package/dist/field/features/upload/feature.client.js +0 -81
  1529. package/dist/field/features/upload/feature.client.js.map +0 -1
  1530. package/dist/field/features/upload/feature.server.d.ts +0 -19
  1531. package/dist/field/features/upload/feature.server.d.ts.map +0 -1
  1532. package/dist/field/features/upload/feature.server.js +0 -188
  1533. package/dist/field/features/upload/feature.server.js.map +0 -1
  1534. package/dist/field/features/upload/graphQLPopulationPromise.d.ts +0 -5
  1535. package/dist/field/features/upload/graphQLPopulationPromise.d.ts.map +0 -1
  1536. package/dist/field/features/upload/graphQLPopulationPromise.js +0 -52
  1537. package/dist/field/features/upload/graphQLPopulationPromise.js.map +0 -1
  1538. package/dist/field/features/upload/i18n.d.ts.map +0 -1
  1539. package/dist/field/features/upload/i18n.js.map +0 -1
  1540. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +0 -1
  1541. package/dist/field/features/upload/nodes/UploadNode.js.map +0 -1
  1542. package/dist/field/features/upload/plugin/index.d.ts +0 -8
  1543. package/dist/field/features/upload/plugin/index.d.ts.map +0 -1
  1544. package/dist/field/features/upload/plugin/index.js +0 -53
  1545. package/dist/field/features/upload/plugin/index.js.map +0 -1
  1546. package/dist/field/features/upload/validate.d.ts +0 -5
  1547. package/dist/field/features/upload/validate.d.ts.map +0 -1
  1548. package/dist/field/features/upload/validate.js.map +0 -1
  1549. package/dist/field/lexical/EditorPlugin.d.ts +0 -8
  1550. package/dist/field/lexical/EditorPlugin.d.ts.map +0 -1
  1551. package/dist/field/lexical/EditorPlugin.js +0 -15
  1552. package/dist/field/lexical/EditorPlugin.js.map +0 -1
  1553. package/dist/field/lexical/LexicalEditor.d.ts.map +0 -1
  1554. package/dist/field/lexical/LexicalEditor.js +0 -192
  1555. package/dist/field/lexical/LexicalEditor.js.map +0 -1
  1556. package/dist/field/lexical/LexicalProvider.d.ts +0 -18
  1557. package/dist/field/lexical/LexicalProvider.d.ts.map +0 -1
  1558. package/dist/field/lexical/LexicalProvider.js.map +0 -1
  1559. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +0 -35
  1560. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +0 -1
  1561. package/dist/field/lexical/config/client/EditorConfigProvider.js.map +0 -1
  1562. package/dist/field/lexical/config/client/default.d.ts.map +0 -1
  1563. package/dist/field/lexical/config/client/default.js.map +0 -1
  1564. package/dist/field/lexical/config/client/loader.d.ts +0 -12
  1565. package/dist/field/lexical/config/client/loader.d.ts.map +0 -1
  1566. package/dist/field/lexical/config/client/loader.js +0 -46
  1567. package/dist/field/lexical/config/client/loader.js.map +0 -1
  1568. package/dist/field/lexical/config/client/sanitize.d.ts +0 -7
  1569. package/dist/field/lexical/config/client/sanitize.d.ts.map +0 -1
  1570. package/dist/field/lexical/config/client/sanitize.js +0 -176
  1571. package/dist/field/lexical/config/client/sanitize.js.map +0 -1
  1572. package/dist/field/lexical/config/server/default.d.ts +0 -7
  1573. package/dist/field/lexical/config/server/default.d.ts.map +0 -1
  1574. package/dist/field/lexical/config/server/default.js.map +0 -1
  1575. package/dist/field/lexical/config/server/loader.d.ts +0 -10
  1576. package/dist/field/lexical/config/server/loader.d.ts.map +0 -1
  1577. package/dist/field/lexical/config/server/loader.js +0 -120
  1578. package/dist/field/lexical/config/server/loader.js.map +0 -1
  1579. package/dist/field/lexical/config/server/sanitize.d.ts +0 -6
  1580. package/dist/field/lexical/config/server/sanitize.d.ts.map +0 -1
  1581. package/dist/field/lexical/config/server/sanitize.js.map +0 -1
  1582. package/dist/field/lexical/config/types.d.ts +0 -23
  1583. package/dist/field/lexical/config/types.d.ts.map +0 -1
  1584. package/dist/field/lexical/config/types.js.map +0 -1
  1585. package/dist/field/lexical/nodes/index.d.ts.map +0 -1
  1586. package/dist/field/lexical/nodes/index.js.map +0 -1
  1587. package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +0 -1
  1588. package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +0 -1
  1589. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +0 -1
  1590. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +0 -1
  1591. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +0 -1
  1592. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +0 -1
  1593. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +0 -31
  1594. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +0 -1
  1595. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +0 -3
  1596. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +0 -1
  1597. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +0 -1
  1598. package/dist/field/lexical/plugins/SlashMenu/index.js +0 -187
  1599. package/dist/field/lexical/plugins/SlashMenu/index.js.map +0 -1
  1600. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +0 -1
  1601. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +0 -1
  1602. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +0 -1
  1603. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +0 -1
  1604. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +0 -1
  1605. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +0 -1
  1606. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +0 -1
  1607. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +0 -1
  1608. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +0 -1
  1609. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +0 -1
  1610. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +0 -1
  1611. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +0 -1
  1612. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +0 -10
  1613. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +0 -1
  1614. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +0 -1
  1615. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +0 -1
  1616. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +0 -1
  1617. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +0 -1
  1618. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +0 -1
  1619. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +0 -1
  1620. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js.map +0 -1
  1621. package/dist/field/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +0 -1
  1622. package/dist/field/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +0 -1
  1623. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +0 -1
  1624. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +0 -1
  1625. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +0 -1
  1626. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js.map +0 -1
  1627. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +0 -1
  1628. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js.map +0 -1
  1629. package/dist/field/lexical/theme/EditorTheme.d.ts.map +0 -1
  1630. package/dist/field/lexical/theme/EditorTheme.js.map +0 -1
  1631. package/dist/field/lexical/ui/ContentEditable.d.ts.map +0 -1
  1632. package/dist/field/lexical/ui/ContentEditable.js.map +0 -1
  1633. package/dist/field/lexical/ui/icons/AI/index.d.ts.map +0 -1
  1634. package/dist/field/lexical/ui/icons/AI/index.js.map +0 -1
  1635. package/dist/field/lexical/ui/icons/Add/index.d.ts.map +0 -1
  1636. package/dist/field/lexical/ui/icons/Add/index.js.map +0 -1
  1637. package/dist/field/lexical/ui/icons/AlignCenter/index.d.ts.map +0 -1
  1638. package/dist/field/lexical/ui/icons/AlignCenter/index.js.map +0 -1
  1639. package/dist/field/lexical/ui/icons/AlignJustify/index.d.ts.map +0 -1
  1640. package/dist/field/lexical/ui/icons/AlignJustify/index.js.map +0 -1
  1641. package/dist/field/lexical/ui/icons/AlignLeft/index.d.ts.map +0 -1
  1642. package/dist/field/lexical/ui/icons/AlignLeft/index.js.map +0 -1
  1643. package/dist/field/lexical/ui/icons/AlignRight/index.d.ts.map +0 -1
  1644. package/dist/field/lexical/ui/icons/AlignRight/index.js.map +0 -1
  1645. package/dist/field/lexical/ui/icons/Block/index.d.ts.map +0 -1
  1646. package/dist/field/lexical/ui/icons/Block/index.js.map +0 -1
  1647. package/dist/field/lexical/ui/icons/Blockquote/index.d.ts.map +0 -1
  1648. package/dist/field/lexical/ui/icons/Blockquote/index.js.map +0 -1
  1649. package/dist/field/lexical/ui/icons/Bold/index.d.ts.map +0 -1
  1650. package/dist/field/lexical/ui/icons/Bold/index.js.map +0 -1
  1651. package/dist/field/lexical/ui/icons/Checklist/index.d.ts.map +0 -1
  1652. package/dist/field/lexical/ui/icons/Checklist/index.js.map +0 -1
  1653. package/dist/field/lexical/ui/icons/Code/index.d.ts.map +0 -1
  1654. package/dist/field/lexical/ui/icons/Code/index.js.map +0 -1
  1655. package/dist/field/lexical/ui/icons/CodeBlock/index.d.ts.map +0 -1
  1656. package/dist/field/lexical/ui/icons/CodeBlock/index.js.map +0 -1
  1657. package/dist/field/lexical/ui/icons/H1/index.d.ts.map +0 -1
  1658. package/dist/field/lexical/ui/icons/H1/index.js.map +0 -1
  1659. package/dist/field/lexical/ui/icons/H2/index.d.ts.map +0 -1
  1660. package/dist/field/lexical/ui/icons/H2/index.js.map +0 -1
  1661. package/dist/field/lexical/ui/icons/H3/index.d.ts.map +0 -1
  1662. package/dist/field/lexical/ui/icons/H3/index.js.map +0 -1
  1663. package/dist/field/lexical/ui/icons/H4/index.d.ts.map +0 -1
  1664. package/dist/field/lexical/ui/icons/H4/index.js.map +0 -1
  1665. package/dist/field/lexical/ui/icons/H5/index.d.ts.map +0 -1
  1666. package/dist/field/lexical/ui/icons/H5/index.js.map +0 -1
  1667. package/dist/field/lexical/ui/icons/H6/index.d.ts.map +0 -1
  1668. package/dist/field/lexical/ui/icons/H6/index.js.map +0 -1
  1669. package/dist/field/lexical/ui/icons/HorizontalRule/index.d.ts.map +0 -1
  1670. package/dist/field/lexical/ui/icons/HorizontalRule/index.js.map +0 -1
  1671. package/dist/field/lexical/ui/icons/IndentDecrease/index.d.ts.map +0 -1
  1672. package/dist/field/lexical/ui/icons/IndentDecrease/index.js.map +0 -1
  1673. package/dist/field/lexical/ui/icons/IndentIncrease/index.d.ts.map +0 -1
  1674. package/dist/field/lexical/ui/icons/IndentIncrease/index.js.map +0 -1
  1675. package/dist/field/lexical/ui/icons/Italic/index.d.ts.map +0 -1
  1676. package/dist/field/lexical/ui/icons/Italic/index.js.map +0 -1
  1677. package/dist/field/lexical/ui/icons/Link/index.d.ts.map +0 -1
  1678. package/dist/field/lexical/ui/icons/Link/index.js.map +0 -1
  1679. package/dist/field/lexical/ui/icons/OrderedList/index.d.ts.map +0 -1
  1680. package/dist/field/lexical/ui/icons/OrderedList/index.js.map +0 -1
  1681. package/dist/field/lexical/ui/icons/Relationship/index.d.ts.map +0 -1
  1682. package/dist/field/lexical/ui/icons/Relationship/index.js.map +0 -1
  1683. package/dist/field/lexical/ui/icons/Strikethrough/index.d.ts.map +0 -1
  1684. package/dist/field/lexical/ui/icons/Strikethrough/index.js.map +0 -1
  1685. package/dist/field/lexical/ui/icons/Subscript/index.d.ts.map +0 -1
  1686. package/dist/field/lexical/ui/icons/Subscript/index.js.map +0 -1
  1687. package/dist/field/lexical/ui/icons/Superscript/index.d.ts.map +0 -1
  1688. package/dist/field/lexical/ui/icons/Superscript/index.js.map +0 -1
  1689. package/dist/field/lexical/ui/icons/Text/index.d.ts.map +0 -1
  1690. package/dist/field/lexical/ui/icons/Text/index.js.map +0 -1
  1691. package/dist/field/lexical/ui/icons/Underline/index.d.ts.map +0 -1
  1692. package/dist/field/lexical/ui/icons/Underline/index.js.map +0 -1
  1693. package/dist/field/lexical/ui/icons/UnorderedList/index.d.ts.map +0 -1
  1694. package/dist/field/lexical/ui/icons/UnorderedList/index.js.map +0 -1
  1695. package/dist/field/lexical/ui/icons/Upload/index.d.ts.map +0 -1
  1696. package/dist/field/lexical/ui/icons/Upload/index.js.map +0 -1
  1697. package/dist/field/lexical/utils/canUseDOM.d.ts.map +0 -1
  1698. package/dist/field/lexical/utils/canUseDOM.js.map +0 -1
  1699. package/dist/field/lexical/utils/cloneDeep.d.ts.map +0 -1
  1700. package/dist/field/lexical/utils/cloneDeep.js +0 -50
  1701. package/dist/field/lexical/utils/cloneDeep.js.map +0 -1
  1702. package/dist/field/lexical/utils/environment.d.ts.map +0 -1
  1703. package/dist/field/lexical/utils/environment.js.map +0 -1
  1704. package/dist/field/lexical/utils/getDOMRangeRect.d.ts.map +0 -1
  1705. package/dist/field/lexical/utils/getDOMRangeRect.js.map +0 -1
  1706. package/dist/field/lexical/utils/getSelectedNode.d.ts.map +0 -1
  1707. package/dist/field/lexical/utils/getSelectedNode.js.map +0 -1
  1708. package/dist/field/lexical/utils/guard.d.ts.map +0 -1
  1709. package/dist/field/lexical/utils/guard.js.map +0 -1
  1710. package/dist/field/lexical/utils/invariant.d.ts.map +0 -1
  1711. package/dist/field/lexical/utils/invariant.js.map +0 -1
  1712. package/dist/field/lexical/utils/joinClasses.d.ts.map +0 -1
  1713. package/dist/field/lexical/utils/joinClasses.js.map +0 -1
  1714. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts +0 -4
  1715. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts.map +0 -1
  1716. package/dist/field/lexical/utils/markdown/createBlockNode.js.map +0 -1
  1717. package/dist/field/lexical/utils/nodeFormat.d.ts.map +0 -1
  1718. package/dist/field/lexical/utils/nodeFormat.js.map +0 -1
  1719. package/dist/field/lexical/utils/point.d.ts.map +0 -1
  1720. package/dist/field/lexical/utils/point.js.map +0 -1
  1721. package/dist/field/lexical/utils/rect.d.ts.map +0 -1
  1722. package/dist/field/lexical/utils/rect.js.map +0 -1
  1723. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +0 -1
  1724. package/dist/field/lexical/utils/setFloatingElemPosition.js.map +0 -1
  1725. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +0 -1
  1726. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +0 -1
  1727. package/dist/field/lexical/utils/swipe.d.ts.map +0 -1
  1728. package/dist/field/lexical/utils/swipe.js.map +0 -1
  1729. package/dist/field/lexical/utils/url.d.ts.map +0 -1
  1730. package/dist/field/lexical/utils/url.js.map +0 -1
  1731. package/dist/forEachNodeRecursively.d.ts.map +0 -1
  1732. package/dist/forEachNodeRecursively.js.map +0 -1
  1733. package/dist/generateComponentMap.d.ts +0 -6
  1734. package/dist/generateComponentMap.d.ts.map +0 -1
  1735. package/dist/generateComponentMap.js +0 -77
  1736. package/dist/generateComponentMap.js.map +0 -1
  1737. package/dist/generateSchemaMap.d.ts +0 -6
  1738. package/dist/generateSchemaMap.d.ts.map +0 -1
  1739. package/dist/generateSchemaMap.js +0 -22
  1740. package/dist/generateSchemaMap.js.map +0 -1
  1741. package/dist/recurseNodeTree.d.ts.map +0 -1
  1742. package/dist/recurseNodeTree.js.map +0 -1
  1743. package/dist/useLexicalFeature.d.ts +0 -3
  1744. package/dist/useLexicalFeature.d.ts.map +0 -1
  1745. package/dist/useLexicalFeature.js +0 -12
  1746. package/dist/useLexicalFeature.js.map +0 -1
  1747. /package/dist/{field/features → features}/align/i18n.d.ts +0 -0
  1748. /package/dist/{field/features → features}/align/i18n.js +0 -0
  1749. /package/dist/{field/features → features}/align/toolbarAlignGroup.d.ts +0 -0
  1750. /package/dist/{field/features → features}/align/toolbarAlignGroup.js +0 -0
  1751. /package/dist/{field/features → features}/blockquote/i18n.d.ts +0 -0
  1752. /package/dist/{field/features → features}/blockquote/i18n.js +0 -0
  1753. /package/dist/{field/features → features}/blockquote/markdownTransformer.d.ts +0 -0
  1754. /package/dist/{field/features → features}/blockquote/markdownTransformer.js +0 -0
  1755. /package/dist/{field/features → features}/blocks/component/FormSavePlugin.d.ts +0 -0
  1756. /package/dist/{field/features → features}/blocks/component/index.d.ts +0 -0
  1757. /package/dist/{field/features → features}/blocks/component/removeEmptyArrayValues.d.ts +0 -0
  1758. /package/dist/{field/features → features}/blocks/component/removeEmptyArrayValues.js +0 -0
  1759. /package/dist/{field/features → features}/blocks/drawer/index.d.ts +0 -0
  1760. /package/dist/{field/features → features}/blocks/i18n.d.ts +0 -0
  1761. /package/dist/{field/features → features}/blocks/i18n.js +0 -0
  1762. /package/dist/{field/features → features}/blocks/nodes/BlocksNode.d.ts +0 -0
  1763. /package/dist/{field/features → features}/blocks/nodes/BlocksNode.js +0 -0
  1764. /package/dist/{field/features → features}/blocks/plugin/commands.d.ts +0 -0
  1765. /package/dist/{field/features → features}/blocks/plugin/commands.js +0 -0
  1766. /package/dist/{field/features → features}/blocks/plugin/index.js +0 -0
  1767. /package/dist/{field/features → features}/blocks/validate.js +0 -0
  1768. /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.d.ts +0 -0
  1769. /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.js +0 -0
  1770. /package/dist/{field/features → features}/converters/html/converter/converters/paragraph.d.ts +0 -0
  1771. /package/dist/{field/features → features}/converters/html/converter/converters/text.d.ts +0 -0
  1772. /package/dist/{field/features → features}/converters/html/converter/converters/text.js +0 -0
  1773. /package/dist/{field/features → features}/converters/html/converter/defaultConverters.d.ts +0 -0
  1774. /package/dist/{field/features → features}/converters/html/converter/defaultConverters.js +0 -0
  1775. /package/dist/{field/features → features}/converters/html/converter/types.js +0 -0
  1776. /package/dist/{field/features → features}/converters/html/field/index.d.ts +0 -0
  1777. /package/dist/{field/features → features}/createFeaturePropComponent.d.ts +0 -0
  1778. /package/dist/{field/features → features}/debug/testRecorder/plugin/index.js +0 -0
  1779. /package/dist/{field/features → features}/debug/treeView/plugin/index.js +0 -0
  1780. /package/dist/{field/features → features}/format/bold/markdownTransformers.d.ts +0 -0
  1781. /package/dist/{field/features → features}/format/bold/markdownTransformers.js +0 -0
  1782. /package/dist/{field/features → features}/format/inlineCode/markdownTransformers.d.ts +0 -0
  1783. /package/dist/{field/features → features}/format/inlineCode/markdownTransformers.js +0 -0
  1784. /package/dist/{field/features → features}/format/italic/markdownTransformers.d.ts +0 -0
  1785. /package/dist/{field/features → features}/format/italic/markdownTransformers.js +0 -0
  1786. /package/dist/{field/features → features}/format/shared/toolbarFormatGroup.d.ts +0 -0
  1787. /package/dist/{field/features → features}/format/shared/toolbarFormatGroup.js +0 -0
  1788. /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.d.ts +0 -0
  1789. /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.js +0 -0
  1790. /package/dist/{field/features → features}/heading/i18n.d.ts +0 -0
  1791. /package/dist/{field/features → features}/heading/i18n.js +0 -0
  1792. /package/dist/{field/features → features}/heading/markdownTransformer.d.ts +0 -0
  1793. /package/dist/{field/features → features}/heading/markdownTransformer.js +0 -0
  1794. /package/dist/{field/features → features}/horizontalRule/component/index.d.ts +0 -0
  1795. /package/dist/{field/features → features}/horizontalRule/component/index.js +0 -0
  1796. /package/dist/{field/features → features}/horizontalRule/i18n.d.ts +0 -0
  1797. /package/dist/{field/features → features}/horizontalRule/i18n.js +0 -0
  1798. /package/dist/{field/features → features}/horizontalRule/markdownTransformer.d.ts +0 -0
  1799. /package/dist/{field/features → features}/horizontalRule/markdownTransformer.js +0 -0
  1800. /package/dist/{field/features → features}/horizontalRule/nodes/HorizontalRuleNode.d.ts +0 -0
  1801. /package/dist/{field/features → features}/horizontalRule/nodes/HorizontalRuleNode.js +0 -0
  1802. /package/dist/{field/features → features}/horizontalRule/plugin/index.js +0 -0
  1803. /package/dist/{field/features → features}/indent/i18n.d.ts +0 -0
  1804. /package/dist/{field/features → features}/indent/i18n.js +0 -0
  1805. /package/dist/{field/features → features}/indent/toolbarIndentGroup.d.ts +0 -0
  1806. /package/dist/{field/features → features}/indent/toolbarIndentGroup.js +0 -0
  1807. /package/dist/{field/features → features}/link/drawer/baseFields.js +0 -0
  1808. /package/dist/{field/features → features}/link/drawer/index.d.ts +0 -0
  1809. /package/dist/{field/features → features}/link/drawer/types.d.ts +0 -0
  1810. /package/dist/{field/features → features}/link/drawer/types.js +0 -0
  1811. /package/dist/{field/features → features}/link/i18n.d.ts +0 -0
  1812. /package/dist/{field/features → features}/link/i18n.js +0 -0
  1813. /package/dist/{field/features → features}/link/markdownTransformer.d.ts +0 -0
  1814. /package/dist/{field/features → features}/link/markdownTransformer.js +0 -0
  1815. /package/dist/{field/features → features}/link/nodes/AutoLinkNode.d.ts +0 -0
  1816. /package/dist/{field/features → features}/link/nodes/AutoLinkNode.js +0 -0
  1817. /package/dist/{field/features → features}/link/nodes/LinkNode.d.ts +0 -0
  1818. /package/dist/{field/features → features}/link/nodes/LinkNode.js +0 -0
  1819. /package/dist/{field/features → features}/link/nodes/types.d.ts +0 -0
  1820. /package/dist/{field/features → features}/link/nodes/types.js +0 -0
  1821. /package/dist/{field/features → features}/link/plugins/autoLink/index.js +0 -0
  1822. /package/dist/{field/features → features}/link/plugins/clickableLink/index.js +0 -0
  1823. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  1824. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -0
  1825. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
  1826. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/index.js +0 -0
  1827. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/types.d.ts +0 -0
  1828. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/types.js +0 -0
  1829. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/utilities.js +0 -0
  1830. /package/dist/{field/features → features}/link/plugins/link/index.js +0 -0
  1831. /package/dist/{field/features → features}/link/validate.js +0 -0
  1832. /package/dist/{field/features → features}/lists/checklist/i18n.d.ts +0 -0
  1833. /package/dist/{field/features → features}/lists/checklist/i18n.js +0 -0
  1834. /package/dist/{field/features → features}/lists/checklist/markdownTransformers.d.ts +0 -0
  1835. /package/dist/{field/features → features}/lists/checklist/markdownTransformers.js +0 -0
  1836. /package/dist/{field/features → features}/lists/checklist/plugin/index.js +0 -0
  1837. /package/dist/{field/features → features}/lists/htmlConverter.d.ts +0 -0
  1838. /package/dist/{field/features → features}/lists/orderedList/i18n.d.ts +0 -0
  1839. /package/dist/{field/features → features}/lists/orderedList/i18n.js +0 -0
  1840. /package/dist/{field/features → features}/lists/orderedList/markdownTransformer.d.ts +0 -0
  1841. /package/dist/{field/features → features}/lists/orderedList/markdownTransformer.js +0 -0
  1842. /package/dist/{field/features → features}/lists/plugin/index.js +0 -0
  1843. /package/dist/{field/features → features}/lists/shared/markdown.js +0 -0
  1844. /package/dist/{field/features → features}/lists/shared/slashMenuListGroup.d.ts +0 -0
  1845. /package/dist/{field/features → features}/lists/shared/slashMenuListGroup.js +0 -0
  1846. /package/dist/{field/features → features}/lists/unorderedList/i18n.d.ts +0 -0
  1847. /package/dist/{field/features → features}/lists/unorderedList/i18n.js +0 -0
  1848. /package/dist/{field/features → features}/lists/unorderedList/markdownTransformer.d.ts +0 -0
  1849. /package/dist/{field/features → features}/lists/unorderedList/markdownTransformer.js +0 -0
  1850. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -0
  1851. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -0
  1852. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -0
  1853. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -0
  1854. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -0
  1855. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -0
  1856. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -0
  1857. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -0
  1858. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -0
  1859. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -0
  1860. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -0
  1861. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -0
  1862. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -0
  1863. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -0
  1864. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -0
  1865. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -0
  1866. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -0
  1867. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -0
  1868. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -0
  1869. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -0
  1870. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -0
  1871. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -0
  1872. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -0
  1873. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -0
  1874. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -0
  1875. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -0
  1876. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -0
  1877. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -0
  1878. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -0
  1879. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -0
  1880. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -0
  1881. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/index.js +0 -0
  1882. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/types.js +0 -0
  1883. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  1884. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -0
  1885. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -0
  1886. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -0
  1887. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -0
  1888. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -0
  1889. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -0
  1890. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -0
  1891. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/client.js +0 -0
  1892. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -0
  1893. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/converter.js +0 -0
  1894. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -0
  1895. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/client.js +0 -0
  1896. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -0
  1897. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/converter.js +0 -0
  1898. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -0
  1899. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/client.js +0 -0
  1900. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -0
  1901. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/converter.js +0 -0
  1902. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -0
  1903. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/client.js +0 -0
  1904. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -0
  1905. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -0
  1906. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -0
  1907. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -0
  1908. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -0
  1909. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -0
  1910. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -0
  1911. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/client.js +0 -0
  1912. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -0
  1913. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -0
  1914. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -0
  1915. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/client.js +0 -0
  1916. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -0
  1917. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -0
  1918. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -0
  1919. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -0
  1920. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -0
  1921. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -0
  1922. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -0
  1923. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/client.js +0 -0
  1924. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -0
  1925. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/converter.js +0 -0
  1926. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -0
  1927. /package/dist/{field/features → features}/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -0
  1928. /package/dist/{field/features → features}/migrations/slateToLexical/converter/defaultConverters.js +0 -0
  1929. /package/dist/{field/features → features}/migrations/slateToLexical/converter/index.d.ts +0 -0
  1930. /package/dist/{field/features → features}/migrations/slateToLexical/converter/index.js +0 -0
  1931. /package/dist/{field/features → features}/migrations/slateToLexical/converter/types.js +0 -0
  1932. /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  1933. /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -0
  1934. /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -0
  1935. /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -0
  1936. /package/dist/{field/features → features}/paragraph/i18n.d.ts +0 -0
  1937. /package/dist/{field/features → features}/paragraph/i18n.js +0 -0
  1938. /package/dist/{field/features → features}/relationship/drawer/commands.d.ts +0 -0
  1939. /package/dist/{field/features → features}/relationship/drawer/commands.js +0 -0
  1940. /package/dist/{field/features → features}/relationship/drawer/index.d.ts +0 -0
  1941. /package/dist/{field/features → features}/relationship/i18n.d.ts +0 -0
  1942. /package/dist/{field/features → features}/relationship/i18n.js +0 -0
  1943. /package/dist/{field/features → features}/relationship/nodes/RelationshipNode.d.ts +0 -0
  1944. /package/dist/{field/features → features}/relationship/nodes/RelationshipNode.js +0 -0
  1945. /package/dist/{field/features → features}/relationship/nodes/components/RelationshipComponent.d.ts +0 -0
  1946. /package/dist/{field/features → features}/relationship/utils/EnabledRelationshipsCondition.d.ts +0 -0
  1947. /package/dist/{field/features → features}/shared/slashMenu/basicGroup.d.ts +0 -0
  1948. /package/dist/{field/features → features}/shared/slashMenu/basicGroup.js +0 -0
  1949. /package/dist/{field/features → features}/shared/toolbar/addDropdownGroup.d.ts +0 -0
  1950. /package/dist/{field/features → features}/shared/toolbar/addDropdownGroup.js +0 -0
  1951. /package/dist/{field/features → features}/shared/toolbar/featureButtonsGroup.d.ts +0 -0
  1952. /package/dist/{field/features → features}/shared/toolbar/featureButtonsGroup.js +0 -0
  1953. /package/dist/{field/features → features}/shared/toolbar/textDropdownGroup.d.ts +0 -0
  1954. /package/dist/{field/features → features}/shared/toolbar/textDropdownGroup.js +0 -0
  1955. /package/dist/{field/features → features}/toolbars/inline/Toolbar/index.js +0 -0
  1956. /package/dist/{field/features → features}/toolbars/shared/ToolbarButton/index.d.ts +0 -0
  1957. /package/dist/{field/features → features}/toolbars/shared/ToolbarButton/index.js +0 -0
  1958. /package/dist/{field/features → features}/toolbars/shared/ToolbarDropdown/DropDown.d.ts +0 -0
  1959. /package/dist/{field/features → features}/toolbars/shared/ToolbarDropdown/DropDown.js +0 -0
  1960. /package/dist/{field/features → features}/toolbars/shared/ToolbarDropdown/index.d.ts +0 -0
  1961. /package/dist/{field/features → features}/toolbars/types.js +0 -0
  1962. /package/dist/{field/features → features}/typeUtilities.js +0 -0
  1963. /package/dist/{field/features → features}/upload/component/ExtraFieldsDrawer/index.d.ts +0 -0
  1964. /package/dist/{field/features → features}/upload/component/index.d.ts +0 -0
  1965. /package/dist/{field/features → features}/upload/drawer/commands.d.ts +0 -0
  1966. /package/dist/{field/features → features}/upload/drawer/commands.js +0 -0
  1967. /package/dist/{field/features → features}/upload/drawer/index.d.ts +0 -0
  1968. /package/dist/{field/features → features}/upload/i18n.d.ts +0 -0
  1969. /package/dist/{field/features → features}/upload/i18n.js +0 -0
  1970. /package/dist/{field/features → features}/upload/nodes/UploadNode.d.ts +0 -0
  1971. /package/dist/{field/features → features}/upload/nodes/UploadNode.js +0 -0
  1972. /package/dist/{field/features → features}/upload/validate.js +0 -0
  1973. /package/dist/{field/lexical → lexical}/LexicalEditor.d.ts +0 -0
  1974. /package/dist/{field/lexical → lexical}/LexicalProvider.js +0 -0
  1975. /package/dist/{field/lexical → lexical}/config/client/EditorConfigProvider.js +0 -0
  1976. /package/dist/{field/lexical → lexical}/config/client/default.d.ts +0 -0
  1977. /package/dist/{field/lexical → lexical}/config/client/default.js +0 -0
  1978. /package/dist/{field/lexical → lexical}/config/server/default.js +0 -0
  1979. /package/dist/{field/lexical → lexical}/config/server/sanitize.js +0 -0
  1980. /package/dist/{field/features → lexical/config}/types.js +0 -0
  1981. /package/dist/{field/lexical → lexical}/nodes/index.d.ts +0 -0
  1982. /package/dist/{field/lexical → lexical}/nodes/index.js +0 -0
  1983. /package/dist/{field/lexical → lexical}/plugins/MarkdownShortcut/index.d.ts +0 -0
  1984. /package/dist/{field/lexical → lexical}/plugins/MarkdownShortcut/index.js +0 -0
  1985. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -0
  1986. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +0 -0
  1987. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +0 -0
  1988. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +0 -0
  1989. /package/dist/{field/lexical/config → lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin}/types.js +0 -0
  1990. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/index.d.ts +0 -0
  1991. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.d.ts +0 -0
  1992. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.js +0 -0
  1993. /package/dist/{field/lexical → lexical}/plugins/handles/AddBlockHandlePlugin/index.d.ts +0 -0
  1994. /package/dist/{field/lexical → lexical}/plugins/handles/AddBlockHandlePlugin/index.js +0 -0
  1995. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/debounce.d.ts +0 -0
  1996. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/debounce.js +0 -0
  1997. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts +0 -0
  1998. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +0 -0
  1999. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +0 -0
  2000. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +0 -0
  2001. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/index.d.ts +0 -0
  2002. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/index.js +0 -0
  2003. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/setTargetLine.js +0 -0
  2004. /package/dist/{field/lexical → lexical}/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +0 -0
  2005. /package/dist/{field/lexical → lexical}/plugins/handles/utils/calculateDistanceFromScrollerElem.js +0 -0
  2006. /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.d.ts +0 -0
  2007. /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.js +0 -0
  2008. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.d.ts +0 -0
  2009. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.js +0 -0
  2010. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getNodeCloseToPoint.d.ts +0 -0
  2011. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getNodeCloseToPoint.js +0 -0
  2012. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.d.ts +0 -0
  2013. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.js +0 -0
  2014. /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.d.ts +0 -0
  2015. /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.js +0 -0
  2016. /package/dist/{field/lexical → lexical}/plugins/handles/utils/setHandlePosition.d.ts +0 -0
  2017. /package/dist/{field/lexical → lexical}/plugins/handles/utils/setHandlePosition.js +0 -0
  2018. /package/dist/{field/lexical → lexical}/theme/EditorTheme.d.ts +0 -0
  2019. /package/dist/{field/lexical → lexical}/theme/EditorTheme.js +0 -0
  2020. /package/dist/{field/lexical → lexical}/ui/ContentEditable.d.ts +0 -0
  2021. /package/dist/{field/lexical → lexical}/ui/ContentEditable.js +0 -0
  2022. /package/dist/{field/lexical → lexical}/ui/icons/AI/index.d.ts +0 -0
  2023. /package/dist/{field/lexical → lexical}/ui/icons/AI/index.js +0 -0
  2024. /package/dist/{field/lexical → lexical}/ui/icons/Add/index.d.ts +0 -0
  2025. /package/dist/{field/lexical → lexical}/ui/icons/Add/index.js +0 -0
  2026. /package/dist/{field/lexical → lexical}/ui/icons/Add/index.svg +0 -0
  2027. /package/dist/{field/lexical → lexical}/ui/icons/Add/light.svg +0 -0
  2028. /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.d.ts +0 -0
  2029. /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.js +0 -0
  2030. /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.d.ts +0 -0
  2031. /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.js +0 -0
  2032. /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.d.ts +0 -0
  2033. /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.js +0 -0
  2034. /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.d.ts +0 -0
  2035. /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.js +0 -0
  2036. /package/dist/{field/lexical → lexical}/ui/icons/Block/index.d.ts +0 -0
  2037. /package/dist/{field/lexical → lexical}/ui/icons/Block/index.js +0 -0
  2038. /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.d.ts +0 -0
  2039. /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.js +0 -0
  2040. /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.d.ts +0 -0
  2041. /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.js +0 -0
  2042. /package/dist/{field/lexical → lexical}/ui/icons/Caret/index.svg +0 -0
  2043. /package/dist/{field/lexical → lexical}/ui/icons/Checklist/index.d.ts +0 -0
  2044. /package/dist/{field/lexical → lexical}/ui/icons/Checklist/index.js +0 -0
  2045. /package/dist/{field/lexical → lexical}/ui/icons/Code/index.d.ts +0 -0
  2046. /package/dist/{field/lexical → lexical}/ui/icons/Code/index.js +0 -0
  2047. /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.d.ts +0 -0
  2048. /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.js +0 -0
  2049. /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/index.svg +0 -0
  2050. /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/light.svg +0 -0
  2051. /package/dist/{field/lexical → lexical}/ui/icons/Edit/index.svg +0 -0
  2052. /package/dist/{field/lexical → lexical}/ui/icons/H1/index.d.ts +0 -0
  2053. /package/dist/{field/lexical → lexical}/ui/icons/H1/index.js +0 -0
  2054. /package/dist/{field/lexical → lexical}/ui/icons/H2/index.d.ts +0 -0
  2055. /package/dist/{field/lexical → lexical}/ui/icons/H2/index.js +0 -0
  2056. /package/dist/{field/lexical → lexical}/ui/icons/H3/index.d.ts +0 -0
  2057. /package/dist/{field/lexical → lexical}/ui/icons/H3/index.js +0 -0
  2058. /package/dist/{field/lexical → lexical}/ui/icons/H4/index.d.ts +0 -0
  2059. /package/dist/{field/lexical → lexical}/ui/icons/H4/index.js +0 -0
  2060. /package/dist/{field/lexical → lexical}/ui/icons/H5/index.d.ts +0 -0
  2061. /package/dist/{field/lexical → lexical}/ui/icons/H5/index.js +0 -0
  2062. /package/dist/{field/lexical → lexical}/ui/icons/H6/index.d.ts +0 -0
  2063. /package/dist/{field/lexical → lexical}/ui/icons/H6/index.js +0 -0
  2064. /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.d.ts +0 -0
  2065. /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.js +0 -0
  2066. /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.d.ts +0 -0
  2067. /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.js +0 -0
  2068. /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.d.ts +0 -0
  2069. /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.js +0 -0
  2070. /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.d.ts +0 -0
  2071. /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.js +0 -0
  2072. /package/dist/{field/lexical → lexical}/ui/icons/Link/index.d.ts +0 -0
  2073. /package/dist/{field/lexical → lexical}/ui/icons/Link/index.js +0 -0
  2074. /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.d.ts +0 -0
  2075. /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.js +0 -0
  2076. /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.d.ts +0 -0
  2077. /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.js +0 -0
  2078. /package/dist/{field/lexical → lexical}/ui/icons/Remove/index.svg +0 -0
  2079. /package/dist/{field/lexical → lexical}/ui/icons/Strikethrough/index.d.ts +0 -0
  2080. /package/dist/{field/lexical → lexical}/ui/icons/Strikethrough/index.js +0 -0
  2081. /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.d.ts +0 -0
  2082. /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.js +0 -0
  2083. /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.d.ts +0 -0
  2084. /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.js +0 -0
  2085. /package/dist/{field/lexical → lexical}/ui/icons/Text/index.d.ts +0 -0
  2086. /package/dist/{field/lexical → lexical}/ui/icons/Text/index.js +0 -0
  2087. /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.d.ts +0 -0
  2088. /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.js +0 -0
  2089. /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.d.ts +0 -0
  2090. /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.js +0 -0
  2091. /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.d.ts +0 -0
  2092. /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.js +0 -0
  2093. /package/dist/{field/lexical → lexical}/utils/canUseDOM.d.ts +0 -0
  2094. /package/dist/{field/lexical → lexical}/utils/canUseDOM.js +0 -0
  2095. /package/dist/{field/lexical → lexical}/utils/cloneDeep.d.ts +0 -0
  2096. /package/dist/{field/lexical → lexical}/utils/environment.d.ts +0 -0
  2097. /package/dist/{field/lexical → lexical}/utils/environment.js +0 -0
  2098. /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.d.ts +0 -0
  2099. /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.js +0 -0
  2100. /package/dist/{field/lexical → lexical}/utils/getSelectedNode.d.ts +0 -0
  2101. /package/dist/{field/lexical → lexical}/utils/getSelectedNode.js +0 -0
  2102. /package/dist/{field/lexical → lexical}/utils/guard.d.ts +0 -0
  2103. /package/dist/{field/lexical → lexical}/utils/guard.js +0 -0
  2104. /package/dist/{field/lexical → lexical}/utils/invariant.d.ts +0 -0
  2105. /package/dist/{field/lexical → lexical}/utils/invariant.js +0 -0
  2106. /package/dist/{field/lexical → lexical}/utils/joinClasses.d.ts +0 -0
  2107. /package/dist/{field/lexical → lexical}/utils/joinClasses.js +0 -0
  2108. /package/dist/{field/lexical → lexical}/utils/markdown/createBlockNode.js +0 -0
  2109. /package/dist/{field/lexical → lexical}/utils/nodeFormat.d.ts +0 -0
  2110. /package/dist/{field/lexical → lexical}/utils/nodeFormat.js +0 -0
  2111. /package/dist/{field/lexical → lexical}/utils/point.d.ts +0 -0
  2112. /package/dist/{field/lexical → lexical}/utils/point.js +0 -0
  2113. /package/dist/{field/lexical → lexical}/utils/rect.d.ts +0 -0
  2114. /package/dist/{field/lexical → lexical}/utils/rect.js +0 -0
  2115. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPosition.d.ts +0 -0
  2116. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPosition.js +0 -0
  2117. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.d.ts +0 -0
  2118. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.js +0 -0
  2119. /package/dist/{field/lexical → lexical}/utils/swipe.d.ts +0 -0
  2120. /package/dist/{field/lexical → lexical}/utils/swipe.js +0 -0
  2121. /package/dist/{field/lexical → lexical}/utils/url.d.ts +0 -0
  2122. /package/dist/{field/lexical → lexical}/utils/url.js +0 -0
  2123. /package/dist/{forEachNodeRecursively.d.ts → utilities/forEachNodeRecursively.d.ts} +0 -0
  2124. /package/dist/{forEachNodeRecursively.js → utilities/forEachNodeRecursively.js} +0 -0
  2125. /package/dist/{recurseNodeTree.d.ts → utilities/recurseNodeTree.d.ts} +0 -0
  2126. /package/dist/{recurseNodeTree.js → utilities/recurseNodeTree.js} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/field/Field.tsx", "../../../src/field/lexical/LexicalProvider.tsx", "../../../src/field/lexical/LexicalEditor.tsx", "../../../src/field/lexical/EditorPlugin.tsx", "../../../src/field/lexical/plugins/MarkdownShortcut/index.tsx", "../../../src/field/lexical/plugins/SlashMenu/index.tsx", "../../../src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx", "../../../src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx", "../../../src/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.ts", "../../../src/field/lexical/plugins/handles/AddBlockHandlePlugin/index.tsx", "../../../src/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.ts", "../../../src/field/lexical/plugins/handles/utils/getNodeCloseToPoint.ts", "../../../src/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.ts", "../../../src/field/lexical/plugins/handles/utils/getCollapsedMargins.ts", "../../../src/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.ts", "../../../src/field/lexical/plugins/handles/utils/isOnHandleElement.ts", "../../../src/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.ts", "../../../src/field/lexical/plugins/handles/utils/setHandlePosition.ts", "../../../src/field/lexical/plugins/handles/DraggableBlockPlugin/index.tsx", "../../../src/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.ts", "../../../src/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.ts", "../../../src/field/lexical/ui/ContentEditable.tsx"],
4
- "sourcesContent": ["'use client'\nimport type { FormFieldBase } from '@payloadcms/ui/fields/shared'\nimport type { SerializedEditorState } from 'lexical'\n\nimport {\n FieldDescription,\n FieldError,\n FieldLabel,\n useField,\n useFieldProps,\n withCondition,\n} from '@payloadcms/ui/client'\nimport React, { useCallback } from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\n\nimport type { SanitizedClientEditorConfig } from './lexical/config/types.js'\n\nimport './bundled.css'\nimport { LexicalProvider } from './lexical/LexicalProvider.js'\n\nconst baseClass = 'rich-text-lexical'\n\nconst _RichText: React.FC<\n FormFieldBase & {\n editorConfig: SanitizedClientEditorConfig // With rendered features n stuff\n name: string\n richTextComponentMap: Map<string, React.ReactNode>\n width?: string\n }\n> = (props) => {\n const {\n name,\n CustomDescription,\n CustomError,\n CustomLabel,\n className,\n descriptionProps,\n editorConfig,\n errorProps,\n label,\n labelProps,\n path: pathFromProps,\n readOnly,\n required,\n style,\n validate, // Users can pass in client side validation if they WANT to, but it's not required anymore\n width,\n } = props\n\n const memoizedValidate = useCallback(\n (value, validationOptions) => {\n if (typeof validate === 'function') {\n return validate(value, { ...validationOptions, props, required })\n }\n },\n // Important: do not add props to the dependencies array.\n // This would cause an infinite loop and endless re-rendering.\n // Removing props from the dependencies array fixed this issue: https://github.com/payloadcms/payload/issues/3709\n [validate, required],\n )\n const { path: pathFromContext } = useFieldProps()\n\n const fieldType = useField<SerializedEditorState>({\n path: pathFromContext ?? pathFromProps ?? name,\n validate: memoizedValidate,\n })\n\n const { errorMessage, initialValue, path, schemaPath, setValue, showError, value } = fieldType\n\n const classes = [\n baseClass,\n 'field-type',\n className,\n showError && 'error',\n readOnly && `${baseClass}--read-only`,\n editorConfig?.admin?.hideGutter !== true ? `${baseClass}--show-gutter` : null,\n ]\n .filter(Boolean)\n .join(' ')\n\n return (\n <div\n className={classes}\n key={path}\n style={{\n ...style,\n width,\n }}\n >\n <FieldLabel\n CustomLabel={CustomLabel}\n label={label}\n required={required}\n {...(labelProps || {})}\n />\n <div className={`${baseClass}__wrap`}>\n <FieldError CustomError={CustomError} path={path} {...(errorProps || {})} />\n <ErrorBoundary fallbackRender={fallbackRender} onReset={() => {}}>\n <LexicalProvider\n editorConfig={editorConfig}\n fieldProps={props}\n key={JSON.stringify({ initialValue, path })} // makes sure lexical is completely re-rendered when initialValue changes, bypassing the lexical-internal value memoization. That way, external changes to the form will update the editor. More infos in PR description (https://github.com/payloadcms/payload/pull/5010)\n onChange={(editorState) => {\n let serializedEditorState = editorState.toJSON()\n\n // Transform state through save hooks\n if (editorConfig?.features?.hooks?.save?.length) {\n editorConfig.features.hooks.save.forEach((hook) => {\n serializedEditorState = hook({ incomingEditorState: serializedEditorState })\n })\n }\n\n setValue(serializedEditorState)\n }}\n path={path}\n readOnly={readOnly}\n value={value}\n />\n </ErrorBoundary>\n {CustomDescription !== undefined ? (\n CustomDescription\n ) : (\n <FieldDescription {...(descriptionProps || {})} />\n )}\n </div>\n </div>\n )\n}\n\nfunction fallbackRender({ error }): React.ReactElement {\n // Call resetErrorBoundary() to reset the error boundary and retry the render.\n\n return (\n <div className=\"errorBoundary\" role=\"alert\">\n <p>Something went wrong:</p>\n <pre style={{ color: 'red' }}>{error.message}</pre>\n </div>\n )\n}\n\nexport const RichText = withCondition(_RichText)\n", "'use client'\nimport type { InitialConfigType } from '@lexical/react/LexicalComposer.js'\nimport type { FormFieldBase } from '@payloadcms/ui/fields/shared'\nimport type { EditorState, LexicalEditor, SerializedEditorState } from 'lexical'\n\nimport { LexicalComposer } from '@lexical/react/LexicalComposer.js'\nimport * as React from 'react'\nimport { useMemo } from 'react'\n\nimport type { SanitizedClientEditorConfig } from './config/types.js'\n\nimport { LexicalEditor as LexicalEditorComponent } from './LexicalEditor.js'\nimport {\n EditorConfigProvider,\n useEditorConfigContext,\n} from './config/client/EditorConfigProvider.js'\nimport { getEnabledNodes } from './nodes/index.js'\n\nexport type LexicalProviderProps = {\n editorConfig: SanitizedClientEditorConfig\n fieldProps: FormFieldBase & {\n editorConfig: SanitizedClientEditorConfig // With rendered features n stuff\n name: string\n richTextComponentMap: Map<string, React.ReactNode>\n }\n onChange: (editorState: EditorState, editor: LexicalEditor, tags: Set<string>) => void\n path: string\n readOnly: boolean\n value: SerializedEditorState\n}\nexport const LexicalProvider: React.FC<LexicalProviderProps> = (props) => {\n const { editorConfig, fieldProps, onChange, path, readOnly, value } = props\n\n const parentContext = useEditorConfigContext()\n\n const editorContainerRef = React.useRef<HTMLDivElement>(null)\n\n const processedValue = useMemo(() => {\n let processed = value\n if (editorConfig?.features?.hooks?.load?.length) {\n editorConfig.features.hooks.load.forEach((hook) => {\n processed = hook({ incomingEditorState: processed })\n })\n }\n return processed\n }, [editorConfig, value])\n\n // useMemo for the initialConfig that depends on readOnly and processedValue\n const initialConfig = useMemo<InitialConfigType>(() => {\n if (processedValue && typeof processedValue !== 'object') {\n throw new Error(\n 'The value passed to the Lexical editor is not an object. This is not supported. Please remove the data from the field and start again. This is the value that was passed in: ' +\n JSON.stringify(processedValue),\n )\n }\n\n if (processedValue && Array.isArray(processedValue) && !('root' in processedValue)) {\n throw new Error(\n 'You have tried to pass in data from the old, Slate editor, to the new, Lexical editor. This is not supported. There is no automatic conversion from Slate to Lexical data available yet (coming soon). Please remove the data from the field and start again.',\n )\n }\n\n if (processedValue && 'jsonContent' in processedValue) {\n throw new Error(\n 'You have tried to pass in data from payload-plugin-lexical. This is not supported. The data structure has changed in this editor, compared to the plugin, and there is no automatic conversion available yet (coming soon). Please remove the data from the field and start again.',\n )\n }\n\n return {\n editable: readOnly !== true,\n editorState: processedValue != null ? JSON.stringify(processedValue) : undefined,\n namespace: editorConfig.lexical.namespace,\n nodes: [...getEnabledNodes({ editorConfig })],\n onError: (error: Error) => {\n throw error\n },\n theme: editorConfig.lexical.theme,\n }\n }, [editorConfig, processedValue, readOnly])\n\n if (!initialConfig) {\n return <p>Loading...</p>\n }\n\n return (\n <LexicalComposer initialConfig={initialConfig} key={path}>\n <EditorConfigProvider\n editorConfig={editorConfig}\n editorContainerRef={editorContainerRef}\n fieldProps={fieldProps}\n parentContext={parentContext}\n >\n <LexicalEditorComponent\n editorConfig={editorConfig}\n editorContainerRef={editorContainerRef}\n onChange={onChange}\n />\n </EditorConfigProvider>\n </LexicalComposer>\n )\n}\n", "'use client'\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary.js'\nimport { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin.js'\nimport { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin.js'\nimport { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin.js'\nimport { TabIndentationPlugin } from '@lexical/react/LexicalTabIndentationPlugin.js'\nimport { useTranslation } from '@payloadcms/ui/client'\nimport { BLUR_COMMAND, COMMAND_PRIORITY_LOW, FOCUS_COMMAND } from 'lexical'\nimport * as React from 'react'\nimport { useEffect, useState } from 'react'\n\nimport type { LexicalProviderProps } from './LexicalProvider.js'\n\nimport { EditorPlugin } from './EditorPlugin.js'\nimport { useEditorConfigContext } from './config/client/EditorConfigProvider.js'\nimport { MarkdownShortcutPlugin } from './plugins/MarkdownShortcut/index.js'\nimport { SlashMenuPlugin } from './plugins/SlashMenu/index.js'\nimport { AddBlockHandlePlugin } from './plugins/handles/AddBlockHandlePlugin/index.js'\nimport { DraggableBlockPlugin } from './plugins/handles/DraggableBlockPlugin/index.js'\nimport { LexicalContentEditable } from './ui/ContentEditable.js'\n\nexport const LexicalEditor: React.FC<\n Pick<LexicalProviderProps, 'editorConfig' | 'onChange'> & {\n editorContainerRef: React.RefObject<HTMLDivElement>\n }\n> = (props) => {\n const { editorConfig, editorContainerRef, onChange } = props\n const editorConfigContext = useEditorConfigContext()\n const [editor] = useLexicalComposerContext()\n const { t } = useTranslation<{}, string>()\n\n const [floatingAnchorElem, setFloatingAnchorElem] = useState<HTMLDivElement | null>(null)\n const onRef = (_floatingAnchorElem: HTMLDivElement) => {\n if (_floatingAnchorElem !== null) {\n setFloatingAnchorElem(_floatingAnchorElem)\n }\n }\n\n useEffect(() => {\n if (!editorConfigContext?.uuid) {\n console.error('Lexical Editor must be used within an EditorConfigProvider')\n return\n }\n if (editorConfigContext?.parentEditor?.uuid) {\n editorConfigContext.parentEditor?.registerChild(editorConfigContext.uuid, editorConfigContext)\n }\n\n const handleFocus = () => {\n editorConfigContext.focusEditor(editorConfigContext)\n }\n\n const handleBlur = () => {\n editorConfigContext.blurEditor(editorConfigContext)\n }\n\n const unregisterFocus = editor.registerCommand<MouseEvent>(\n FOCUS_COMMAND,\n () => {\n handleFocus()\n return true\n },\n COMMAND_PRIORITY_LOW,\n )\n\n const unregisterBlur = editor.registerCommand<MouseEvent>(\n BLUR_COMMAND,\n () => {\n handleBlur()\n return true\n },\n COMMAND_PRIORITY_LOW,\n )\n\n return () => {\n unregisterFocus()\n unregisterBlur()\n editorConfigContext.parentEditor?.unregisterChild?.(editorConfigContext.uuid)\n }\n }, [editor, editorConfigContext])\n\n const [isSmallWidthViewport, setIsSmallWidthViewport] = useState<boolean>(false)\n\n useEffect(() => {\n const updateViewPortWidth = () => {\n const isNextSmallWidthViewport = window.matchMedia('(max-width: 768px)').matches\n\n if (isNextSmallWidthViewport !== isSmallWidthViewport) {\n setIsSmallWidthViewport(isNextSmallWidthViewport)\n }\n }\n updateViewPortWidth()\n window.addEventListener('resize', updateViewPortWidth)\n\n return () => {\n window.removeEventListener('resize', updateViewPortWidth)\n }\n }, [isSmallWidthViewport])\n\n return (\n <React.Fragment>\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'aboveContainer') {\n return <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n }\n })}\n <div className=\"editor-container\" ref={editorContainerRef}>\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'top') {\n return (\n <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n )\n }\n })}\n <RichTextPlugin\n ErrorBoundary={LexicalErrorBoundary}\n contentEditable={\n <div className=\"editor-scroller\">\n <div className=\"editor\" ref={onRef}>\n <LexicalContentEditable />\n </div>\n </div>\n }\n placeholder={<p className=\"editor-placeholder\">{t('lexical:general:placeholder')}</p>}\n />\n <OnChangePlugin\n // Selection changes can be ignored here, reducing the\n // frequency that the FieldComponent and Payload receive updates.\n // Selection changes are only needed if you are saving selection state\n ignoreSelectionChange\n onChange={(editorState, editor, tags) => {\n // Ignore any onChange event triggered by focus only\n if (!tags.has('focus') || tags.size > 1) {\n if (onChange != null) onChange(editorState, editor, tags)\n }\n }}\n />\n {floatingAnchorElem && (\n <React.Fragment>\n {!isSmallWidthViewport && editor.isEditable() && (\n <React.Fragment>\n <DraggableBlockPlugin anchorElem={floatingAnchorElem} />\n <AddBlockHandlePlugin anchorElem={floatingAnchorElem} />\n </React.Fragment>\n )}\n {editorConfig.features.plugins.map((plugin) => {\n if (\n plugin.position === 'floatingAnchorElem' &&\n !(plugin.desktopOnly === true && isSmallWidthViewport)\n ) {\n return (\n <EditorPlugin\n anchorElem={floatingAnchorElem}\n clientProps={plugin.clientProps}\n key={plugin.key}\n plugin={plugin}\n />\n )\n }\n })}\n {editor.isEditable() && (\n <React.Fragment>\n <SlashMenuPlugin anchorElem={floatingAnchorElem} />\n </React.Fragment>\n )}\n </React.Fragment>\n )}\n {editor.isEditable() && (\n <React.Fragment>\n <HistoryPlugin />\n {editorConfig?.features?.markdownTransformers?.length > 0 && <MarkdownShortcutPlugin />}\n </React.Fragment>\n )}\n\n <TabIndentationPlugin />\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'normal') {\n return (\n <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n )\n }\n })}\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'bottom') {\n return (\n <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n )\n }\n })}\n </div>\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'belowContainer') {\n return <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n }\n })}\n </React.Fragment>\n )\n}\n", "import * as React from 'react'\n\nimport type { SanitizedPlugin } from '../features/types.js'\n\nexport const EditorPlugin: React.FC<{\n anchorElem?: HTMLDivElement\n clientProps: any\n plugin: SanitizedPlugin\n}> = ({ anchorElem, clientProps, plugin }) => {\n if (plugin.position === 'floatingAnchorElem') {\n return (\n plugin.Component && <plugin.Component anchorElem={anchorElem} clientProps={clientProps} />\n )\n }\n\n return plugin.Component && <plugin.Component clientProps={clientProps} />\n}\n", "'use client'\n\nimport { MarkdownShortcutPlugin as LexicalMarkdownShortcutPlugin } from '@lexical/react/LexicalMarkdownShortcutPlugin.js'\nimport * as React from 'react'\n\nimport { useEditorConfigContext } from '../../config/client/EditorConfigProvider.js'\n\nexport const MarkdownShortcutPlugin: React.FC = () => {\n const { editorConfig } = useEditorConfigContext()\n\n return <LexicalMarkdownShortcutPlugin transformers={editorConfig.features.markdownTransformers} />\n}\n", "'use client'\nimport type { TextNode } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useTranslation } from '@payloadcms/ui/client'\nimport { useCallback, useMemo, useState } from 'react'\nimport * as React from 'react'\nimport * as ReactDOM from 'react-dom'\n\nimport type {\n SlashMenuGroup,\n SlashMenuGroupInternal,\n SlashMenuItemInternal,\n SlashMenuItem as SlashMenuItemType,\n} from './LexicalTypeaheadMenuPlugin/types.js'\n\nimport { useEditorConfigContext } from '../../config/client/EditorConfigProvider.js'\nimport { LexicalTypeaheadMenuPlugin } from './LexicalTypeaheadMenuPlugin/index.js'\nimport { useMenuTriggerMatch } from './useMenuTriggerMatch.js'\n\nconst baseClass = 'slash-menu-popup'\n\nfunction SlashMenuItem({\n isSelected,\n item,\n onClick,\n onMouseEnter,\n}: {\n index: number\n isSelected: boolean\n item: SlashMenuItemInternal\n onClick: () => void\n onMouseEnter: () => void\n}) {\n const { i18n } = useTranslation()\n\n let className = `${baseClass}__item ${baseClass}__item-${item.key}`\n if (isSelected) {\n className += ` ${baseClass}__item--selected`\n }\n\n let title = item.key\n if (item.label) {\n title = typeof item.label === 'function' ? item.label({ i18n }) : item.label\n }\n // Crop title to max. 25 characters\n if (title.length > 25) {\n title = title.substring(0, 25) + '...'\n }\n\n return (\n <button\n aria-selected={isSelected}\n className={className}\n id={baseClass + '__item-' + item.key}\n key={item.key}\n onClick={onClick}\n onMouseEnter={onMouseEnter}\n ref={item.ref}\n role=\"option\"\n tabIndex={-1}\n type=\"button\"\n >\n {item?.Icon && <item.Icon />}\n\n <span className={`${baseClass}__item-text`}>{title}</span>\n </button>\n )\n}\n\nexport function SlashMenuPlugin({\n anchorElem = document.body,\n}: {\n anchorElem?: HTMLElement\n}): React.ReactElement {\n const [editor] = useLexicalComposerContext()\n const [queryString, setQueryString] = useState<null | string>(null)\n const { editorConfig } = useEditorConfigContext()\n const { i18n } = useTranslation()\n\n const checkForTriggerMatch = useMenuTriggerMatch('/', {\n minLength: 0,\n })\n\n const getDynamicItems = useCallback(() => {\n let groupWithItems: Array<SlashMenuGroup> = []\n\n for (const dynamicItem of editorConfig.features.slashMenu.dynamicGroups) {\n const dynamicGroupWithItems = dynamicItem({\n editor,\n queryString,\n })\n groupWithItems = groupWithItems.concat(dynamicGroupWithItems)\n }\n\n return groupWithItems\n }, [editor, queryString, editorConfig?.features])\n\n const groups: SlashMenuGroup[] = useMemo(() => {\n let groupsWithItems: SlashMenuGroup[] = []\n for (const groupWithItem of editorConfig?.features.slashMenu.groups ?? []) {\n groupsWithItems.push(groupWithItem)\n }\n\n if (queryString) {\n // Filter current groups first\n groupsWithItems = groupsWithItems.map((group) => {\n const filteredItems = group.items.filter((item) => {\n let itemTitle = item.key\n if (item.label) {\n itemTitle = typeof item.label === 'function' ? item.label({ i18n }) : item.label\n }\n\n if (new RegExp(queryString, 'gi').exec(itemTitle)) {\n return true\n }\n if (item.keywords != null) {\n return item.keywords.some((keyword) => new RegExp(queryString, 'gi').exec(keyword))\n }\n return false\n })\n if (filteredItems.length) {\n return {\n ...group,\n items: filteredItems,\n }\n }\n return null\n })\n\n groupsWithItems = groupsWithItems.filter((group) => group != null)\n\n // Now add dynamic groups\n const dynamicItemGroups = getDynamicItems()\n\n // merge dynamic items into groups\n for (const dynamicGroup of dynamicItemGroups) {\n // 1. find the group with the same name or create new one\n let group = groupsWithItems.find((group) => group.key === dynamicGroup.key)\n if (!group) {\n group = {\n ...dynamicGroup,\n items: [],\n }\n } else {\n groupsWithItems = groupsWithItems.filter((group) => group.key !== dynamicGroup.key)\n }\n\n // 2. Add items to group items array and add to sanitized.slashMenu.groupsWithItems\n if (group?.items?.length) {\n group.items = group.items.concat(group.items)\n }\n groupsWithItems.push(group)\n }\n }\n\n return groupsWithItems\n }, [getDynamicItems, queryString, editorConfig?.features, i18n])\n\n const onSelectItem = useCallback(\n (\n selectedItem: SlashMenuItemType,\n nodeToRemove: TextNode | null,\n closeMenu: () => void,\n matchingString: string,\n ) => {\n if (nodeToRemove) {\n editor.update(() => {\n nodeToRemove.remove()\n })\n }\n selectedItem.onSelect({ editor, queryString: matchingString })\n\n closeMenu()\n },\n [editor],\n )\n\n return (\n <React.Fragment>\n <LexicalTypeaheadMenuPlugin\n anchorElem={anchorElem}\n groups={groups as SlashMenuGroupInternal[]}\n menuRenderFn={(\n anchorElementRef,\n { selectItemAndCleanUp, selectedItemKey, setSelectedItemKey },\n ) =>\n anchorElementRef.current && groups.length\n ? ReactDOM.createPortal(\n <div className={baseClass}>\n {groups.map((group) => {\n let groupTitle = group.key\n if (group.label) {\n groupTitle =\n typeof group.label === 'function' ? group.label({ i18n }) : group.label\n }\n\n return (\n <div\n className={`${baseClass}__group ${baseClass}__group-${group.key}`}\n key={group.key}\n >\n <div className={`${baseClass}__group-title`}>{groupTitle}</div>\n {group.items.map((item, oi: number) => (\n <SlashMenuItem\n index={oi}\n isSelected={selectedItemKey === item.key}\n item={item as SlashMenuItemInternal}\n key={item.key}\n onClick={() => {\n setSelectedItemKey(item.key)\n selectItemAndCleanUp(item)\n }}\n onMouseEnter={() => {\n setSelectedItemKey(item.key)\n }}\n />\n ))}\n </div>\n )\n })}\n </div>,\n anchorElementRef.current,\n )\n : null\n }\n onQueryChange={setQueryString}\n onSelectItem={onSelectItem}\n triggerFn={checkForTriggerMatch}\n />\n </React.Fragment>\n )\n}\n", "'use client'\nimport type {\n LexicalCommand,\n LexicalEditor,\n ParagraphNode,\n RangeSelection,\n TextNode,\n} from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { mergeRegister } from '@lexical/utils'\nimport {\n $getSelection,\n $isRangeSelection,\n $isTextNode,\n COMMAND_PRIORITY_LOW,\n createCommand,\n} from 'lexical'\nimport { type JSX, useCallback, useEffect, useState } from 'react'\nimport * as React from 'react'\n\nimport type { MenuTextMatch, TriggerFn } from '../useMenuTriggerMatch.js'\nimport type { MenuRenderFn, MenuResolution } from './LexicalMenu.js'\nimport type { SlashMenuGroup, SlashMenuGroupInternal, SlashMenuItem } from './types.js'\n\nimport { LexicalMenu, useMenuAnchorRef } from './LexicalMenu.js'\n\nexport const PUNCTUATION = '\\\\.,\\\\+\\\\*\\\\?\\\\$\\\\@\\\\|#{}\\\\(\\\\)\\\\^\\\\-\\\\[\\\\]\\\\\\\\/!%\\'\"~=<>_:;'\n\nfunction getTextUpToAnchor(selection: RangeSelection): null | string {\n const anchor = selection.anchor\n if (anchor.type !== 'text') {\n return null\n }\n const anchorNode = anchor.getNode()\n if (!anchorNode.isSimpleText()) {\n return null\n }\n const anchorOffset = anchor.offset\n return anchorNode.getTextContent().slice(0, anchorOffset)\n}\n\nfunction tryToPositionRange(leadOffset: number, range: Range, editorWindow: Window): boolean {\n const domSelection = editorWindow.getSelection()\n if (domSelection === null || !domSelection.isCollapsed) {\n return false\n }\n const anchorNode = domSelection.anchorNode\n const startOffset = leadOffset\n const endOffset = domSelection.anchorOffset\n\n if (anchorNode == null || endOffset == null) {\n return false\n }\n\n try {\n range.setStart(anchorNode, startOffset)\n // if endOffset is 0, positioning the range for when you click the plus button to open the slash menu will fial\n range.setEnd(anchorNode, endOffset > 1 ? endOffset : 1)\n } catch (error) {\n return false\n }\n\n return true\n}\n\nfunction getQueryTextForSearch(editor: LexicalEditor): null | string {\n let text = null\n editor.getEditorState().read(() => {\n const selection = $getSelection()\n if (!$isRangeSelection(selection)) {\n return\n }\n text = getTextUpToAnchor(selection)\n })\n return text\n}\n\nfunction isSelectionOnEntityBoundary(editor: LexicalEditor, offset: number): boolean {\n if (offset !== 0) {\n return false\n }\n return editor.getEditorState().read(() => {\n const selection = $getSelection()\n if ($isRangeSelection(selection)) {\n const anchor = selection.anchor\n const anchorNode = anchor.getNode()\n const prevSibling = anchorNode.getPreviousSibling()\n return $isTextNode(prevSibling) && prevSibling.isTextEntity()\n }\n return false\n })\n}\n\nfunction startTransition(callback: () => void) {\n if (React.startTransition) {\n React.startTransition(callback)\n } else {\n callback()\n }\n}\n\n// Got from https://stackoverflow.com/a/42543908/2013580\nexport function getScrollParent(\n element: HTMLElement,\n includeHidden: boolean,\n): HTMLBodyElement | HTMLElement {\n let style = getComputedStyle(element)\n const excludeStaticParent = style.position === 'absolute'\n const overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/\n if (style.position === 'fixed') {\n return document.body\n }\n for (let parent: HTMLElement | null = element; (parent = parent.parentElement); ) {\n style = getComputedStyle(parent)\n if (excludeStaticParent && style.position === 'static') {\n continue\n }\n if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX)) {\n return parent\n }\n }\n return document.body\n}\n\nexport { useDynamicPositioning } from './LexicalMenu.js'\n\nexport type TypeaheadMenuPluginProps = {\n anchorClassName?: string\n anchorElem: HTMLElement\n groups: Array<SlashMenuGroupInternal>\n menuRenderFn: MenuRenderFn\n onClose?: () => void\n onOpen?: (resolution: MenuResolution) => void\n onQueryChange: (matchingString: null | string) => void\n onSelectItem: (\n item: SlashMenuItem,\n textNodeContainingQuery: TextNode | null,\n closeMenu: () => void,\n matchingString: string,\n ) => void\n triggerFn: TriggerFn\n}\n\nexport const ENABLE_SLASH_MENU_COMMAND: LexicalCommand<{\n node: ParagraphNode\n}> = createCommand('ENABLE_SLASH_MENU_COMMAND')\n\nexport function LexicalTypeaheadMenuPlugin({\n anchorClassName,\n anchorElem,\n groups,\n menuRenderFn,\n onClose,\n onOpen,\n onQueryChange,\n onSelectItem,\n triggerFn,\n}: TypeaheadMenuPluginProps): JSX.Element | null {\n const [editor] = useLexicalComposerContext()\n const [resolution, setResolution] = useState<MenuResolution | null>(null)\n const anchorElementRef = useMenuAnchorRef(anchorElem, resolution, setResolution, anchorClassName)\n\n const closeTypeahead = useCallback(() => {\n setResolution(null)\n if (onClose != null && resolution !== null) {\n onClose()\n }\n }, [onClose, resolution])\n\n const openTypeahead = useCallback(\n (res: MenuResolution) => {\n setResolution(res)\n if (onOpen != null && resolution === null) {\n onOpen(res)\n }\n },\n [onOpen, resolution],\n )\n\n // This is mainly used for the AddBlockHandlePlugin, so that the slash menu can be opened from there\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand(\n ENABLE_SLASH_MENU_COMMAND,\n ({ node }) => {\n editor.getEditorState().read(() => {\n const match: MenuTextMatch = {\n leadOffset: 0,\n matchingString: '',\n replaceableString: '',\n }\n if (match !== null && !isSelectionOnEntityBoundary(editor, match.leadOffset)) {\n if (node !== null) {\n const editorWindow = editor._window ?? window\n const range = editorWindow.document.createRange()\n\n const isRangePositioned = tryToPositionRange(match.leadOffset, range, editorWindow)\n if (isRangePositioned !== null) {\n startTransition(() =>\n openTypeahead({\n getRect: () => {\n return range.getBoundingClientRect()\n },\n match,\n }),\n )\n }\n\n return\n }\n }\n })\n\n return true\n },\n COMMAND_PRIORITY_LOW,\n ),\n )\n }, [editor, openTypeahead])\n\n useEffect(() => {\n const updateListener = () => {\n editor.getEditorState().read(() => {\n const editorWindow = editor._window ?? window\n const range = editorWindow.document.createRange()\n const selection = $getSelection()\n const text = getQueryTextForSearch(editor)\n\n if (\n !$isRangeSelection(selection) ||\n !selection.isCollapsed() ||\n text === null ||\n range === null\n ) {\n closeTypeahead()\n return\n }\n\n const match = triggerFn({ editor, query: text })\n onQueryChange(match ? match.matchingString : null)\n\n if (match !== null && !isSelectionOnEntityBoundary(editor, match.leadOffset)) {\n const isRangePositioned = tryToPositionRange(match.leadOffset, range, editorWindow)\n if (isRangePositioned !== null) {\n startTransition(() =>\n openTypeahead({\n getRect: () => {\n return range.getBoundingClientRect()\n },\n match,\n }),\n )\n return\n }\n }\n closeTypeahead()\n })\n }\n\n const removeUpdateListener = editor.registerUpdateListener(updateListener)\n\n return () => {\n removeUpdateListener()\n }\n }, [editor, triggerFn, onQueryChange, resolution, closeTypeahead, openTypeahead])\n\n return resolution === null || editor === null ? null : (\n <LexicalMenu\n anchorElementRef={anchorElementRef}\n close={closeTypeahead}\n editor={editor}\n groups={groups}\n menuRenderFn={menuRenderFn}\n onSelectItem={onSelectItem}\n resolution={resolution}\n shouldSplitNodeWithQuery\n />\n )\n}\n\nexport type { MenuRenderFn, MenuResolution, MenuTextMatch, TriggerFn }\n", "'use client'\nimport type { LexicalCommand, LexicalEditor, TextNode } from 'lexical'\nimport type { JSX, MutableRefObject, ReactPortal } from 'react'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { mergeRegister } from '@lexical/utils'\nimport {\n $getSelection,\n $isRangeSelection,\n COMMAND_PRIORITY_LOW,\n KEY_ARROW_DOWN_COMMAND,\n KEY_ARROW_UP_COMMAND,\n KEY_ENTER_COMMAND,\n KEY_ESCAPE_COMMAND,\n KEY_TAB_COMMAND,\n createCommand,\n} from 'lexical'\nimport { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'\n\nimport type { MenuTextMatch } from '../useMenuTriggerMatch.js'\nimport type { SlashMenuGroupInternal, SlashMenuItem, SlashMenuItemInternal } from './types.js'\n\nexport type MenuResolution = {\n getRect: () => DOMRect\n match?: MenuTextMatch\n}\n\nconst baseClass = 'slash-menu-popup'\n\nexport type MenuRenderFn = (\n anchorElementRef: MutableRefObject<HTMLElement | null>,\n itemProps: {\n groups: Array<SlashMenuGroupInternal>\n selectItemAndCleanUp: (selectedItem: SlashMenuItem) => void\n selectedItemKey: null | string\n setSelectedItemKey: (itemKey: string) => void\n },\n matchingString: null | string,\n) => JSX.Element | ReactPortal | null\n\nconst scrollIntoViewIfNeeded = (target: HTMLElement) => {\n const typeaheadContainerNode = document.getElementById('slash-menu')\n if (!typeaheadContainerNode) return\n\n const typeaheadRect = typeaheadContainerNode.getBoundingClientRect()\n\n if (typeaheadRect.top + typeaheadRect.height > window.innerHeight) {\n typeaheadContainerNode.scrollIntoView({\n block: 'center',\n })\n }\n\n if (typeaheadRect.top < 0) {\n typeaheadContainerNode.scrollIntoView({\n block: 'center',\n })\n }\n\n target.scrollIntoView({ block: 'nearest' })\n}\n\n/**\n * Walk backwards along user input and forward through entity title to try\n * and replace more of the user's text with entity.\n */\nfunction getFullMatchOffset(documentText: string, entryText: string, offset: number) {\n let triggerOffset = offset\n for (let i = triggerOffset; i <= entryText.length; i++) {\n if (documentText.substring(documentText.length - i) === entryText.substring(0, i)) {\n triggerOffset = i\n }\n }\n return triggerOffset\n}\n\n/**\n * Split Lexical TextNode and return a new TextNode only containing matched text.\n * Common use cases include: removing the node, replacing with a new node.\n */\nfunction $splitNodeContainingQuery(match: MenuTextMatch): TextNode | null {\n const selection = $getSelection()\n if (!$isRangeSelection(selection) || !selection.isCollapsed()) {\n return null\n }\n const anchor = selection.anchor\n if (anchor.type !== 'text') {\n return null\n }\n const anchorNode = anchor.getNode()\n if (!anchorNode.isSimpleText()) {\n return null\n }\n const selectionOffset = anchor.offset\n const textContent = anchorNode.getTextContent().slice(0, selectionOffset)\n // eslint-disable-next-line react/destructuring-assignment\n const characterOffset = match.replaceableString.length\n // eslint-disable-next-line react/destructuring-assignment\n const queryOffset = getFullMatchOffset(textContent, match.matchingString, characterOffset)\n const startOffset = selectionOffset - queryOffset\n if (startOffset < 0) {\n return null\n }\n let newNode\n if (startOffset === 0) {\n ;[newNode] = anchorNode.splitText(selectionOffset)\n } else {\n ;[, newNode] = anchorNode.splitText(startOffset, selectionOffset)\n }\n\n return newNode\n}\n\n// Got from https://stackoverflow.com/a/42543908/2013580\nexport function getScrollParent(\n element: HTMLElement,\n includeHidden: boolean,\n): HTMLBodyElement | HTMLElement {\n let style = getComputedStyle(element)\n const excludeStaticParent = style.position === 'absolute'\n const overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/\n if (style.position === 'fixed') {\n return document.body\n }\n for (let parent: HTMLElement | null = element; (parent = parent.parentElement); ) {\n style = getComputedStyle(parent)\n if (excludeStaticParent && style.position === 'static') {\n continue\n }\n if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX)) {\n return parent\n }\n }\n return document.body\n}\n\nfunction isTriggerVisibleInNearestScrollContainer(\n targetElement: HTMLElement,\n containerElement: HTMLElement,\n): boolean {\n const tRect = targetElement.getBoundingClientRect()\n const cRect = containerElement.getBoundingClientRect()\n return tRect.top > cRect.top && tRect.top < cRect.bottom\n}\n\n// Reposition the menu on scroll, window resize, and element resize.\nexport function useDynamicPositioning(\n resolution: MenuResolution | null,\n targetElement: HTMLElement | null,\n onReposition: () => void,\n onVisibilityChange?: (isInView: boolean) => void,\n) {\n const [editor] = useLexicalComposerContext()\n useEffect(() => {\n if (targetElement != null && resolution != null) {\n const rootElement = editor.getRootElement()\n const rootScrollParent =\n rootElement != null ? getScrollParent(rootElement, false) : document.body\n let ticking = false\n let previousIsInView = isTriggerVisibleInNearestScrollContainer(\n targetElement,\n rootScrollParent,\n )\n const handleScroll = function () {\n if (!ticking) {\n window.requestAnimationFrame(function () {\n onReposition()\n ticking = false\n })\n ticking = true\n }\n const isInView = isTriggerVisibleInNearestScrollContainer(targetElement, rootScrollParent)\n if (isInView !== previousIsInView) {\n previousIsInView = isInView\n if (onVisibilityChange != null) {\n onVisibilityChange(isInView)\n }\n }\n }\n const resizeObserver = new ResizeObserver(onReposition)\n window.addEventListener('resize', onReposition)\n document.addEventListener('scroll', handleScroll, {\n capture: true,\n passive: true,\n })\n resizeObserver.observe(targetElement)\n return () => {\n resizeObserver.unobserve(targetElement)\n window.removeEventListener('resize', onReposition)\n document.removeEventListener('scroll', handleScroll, true)\n }\n }\n }, [targetElement, editor, onVisibilityChange, onReposition, resolution])\n}\n\nexport const SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND: LexicalCommand<{\n index: number\n item: SlashMenuItemInternal\n}> = createCommand('SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND')\n\nexport function LexicalMenu({\n anchorElementRef,\n close,\n editor,\n // groups filtering is already handled in SlashMenu/index.tsx. Thus, groups always contains the matching items.\n groups,\n menuRenderFn,\n onSelectItem,\n resolution,\n shouldSplitNodeWithQuery = false,\n}: {\n anchorElementRef: MutableRefObject<HTMLElement>\n close: () => void\n editor: LexicalEditor\n groups: Array<SlashMenuGroupInternal>\n menuRenderFn: MenuRenderFn\n onSelectItem: (\n item: SlashMenuItem,\n textNodeContainingQuery: TextNode | null,\n closeMenu: () => void,\n matchingString: string,\n ) => void\n resolution: MenuResolution\n shouldSplitNodeWithQuery?: boolean\n}): JSX.Element | null {\n const [selectedItemKey, setSelectedItemKey] = useState<null | string>(null)\n\n const matchingString = (resolution.match && resolution.match.matchingString) || ''\n\n const updateSelectedItem = useCallback(\n (item: SlashMenuItem) => {\n const rootElem = editor.getRootElement()\n if (rootElem !== null) {\n rootElem.setAttribute('aria-activedescendant', `${baseClass}__item-${item.key}`)\n setSelectedItemKey(item.key)\n }\n },\n [editor],\n )\n\n const setSelectedItemKeyToFirstMatchingItem = useCallback(() => {\n // set selected item to the first of the matching ones\n if (groups !== null && matchingString != null) {\n // groups filtering is already handled in SlashMenu/index.tsx. Thus, groups always contains the matching items.\n const allItems = groups.flatMap((group) => group.items)\n\n if (allItems.length) {\n const firstMatchingItem = allItems[0]\n updateSelectedItem(firstMatchingItem)\n }\n }\n }, [groups, updateSelectedItem, matchingString])\n\n useEffect(() => {\n setSelectedItemKeyToFirstMatchingItem()\n }, [matchingString, setSelectedItemKeyToFirstMatchingItem])\n\n const selectItemAndCleanUp = useCallback(\n (selectedItem: SlashMenuItem) => {\n editor.update(() => {\n const textNodeContainingQuery =\n resolution.match != null && shouldSplitNodeWithQuery\n ? $splitNodeContainingQuery(resolution.match)\n : null\n\n onSelectItem(\n selectedItem,\n textNodeContainingQuery,\n close,\n resolution.match ? resolution.match.matchingString : '',\n )\n })\n },\n [editor, shouldSplitNodeWithQuery, resolution.match, onSelectItem, close],\n )\n\n useEffect(() => {\n return () => {\n const rootElem = editor.getRootElement()\n if (rootElem !== null) {\n rootElem.removeAttribute('aria-activedescendant')\n }\n }\n }, [editor])\n\n useLayoutEffect(() => {\n if (groups === null) {\n setSelectedItemKey(null)\n } else if (selectedItemKey === null) {\n setSelectedItemKeyToFirstMatchingItem()\n }\n }, [groups, selectedItemKey, updateSelectedItem, setSelectedItemKeyToFirstMatchingItem])\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand(\n SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND,\n ({ item }) => {\n if (item.ref && item.ref.current != null) {\n scrollIntoViewIfNeeded(item.ref.current)\n return true\n }\n\n return false\n },\n COMMAND_PRIORITY_LOW,\n ),\n )\n }, [editor, updateSelectedItem])\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<KeyboardEvent>(\n KEY_ARROW_DOWN_COMMAND,\n (payload) => {\n const event = payload\n if (groups !== null && groups.length && selectedItemKey !== null) {\n const allItems = groups.flatMap((group) => group.items)\n const selectedIndex = allItems.findIndex((item) => item.key === selectedItemKey)\n\n const newSelectedIndex = selectedIndex !== allItems.length - 1 ? selectedIndex + 1 : 0\n\n const newSelectedItem = allItems[newSelectedIndex]\n\n updateSelectedItem(newSelectedItem)\n if (newSelectedItem.ref != null && newSelectedItem.ref.current) {\n editor.dispatchCommand(SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND, {\n index: newSelectedIndex,\n item: newSelectedItem,\n })\n }\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n return true\n },\n COMMAND_PRIORITY_LOW,\n ),\n editor.registerCommand<KeyboardEvent>(\n KEY_ARROW_UP_COMMAND,\n (payload) => {\n const event = payload\n if (groups !== null && groups.length && selectedItemKey !== null) {\n const allItems = groups.flatMap((group) => group.items)\n const selectedIndex = allItems.findIndex((item) => item.key === selectedItemKey)\n\n const newSelectedIndex = selectedIndex !== 0 ? selectedIndex - 1 : allItems.length - 1\n\n const newSelectedItem = allItems[newSelectedIndex]\n\n updateSelectedItem(newSelectedItem)\n if (newSelectedItem.ref != null && newSelectedItem.ref.current) {\n scrollIntoViewIfNeeded(newSelectedItem.ref.current)\n }\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n return true\n },\n COMMAND_PRIORITY_LOW,\n ),\n editor.registerCommand<KeyboardEvent>(\n KEY_ESCAPE_COMMAND,\n (payload) => {\n const event = payload\n event.preventDefault()\n event.stopImmediatePropagation()\n close()\n return true\n },\n COMMAND_PRIORITY_LOW,\n ),\n editor.registerCommand<KeyboardEvent>(\n KEY_TAB_COMMAND,\n (payload) => {\n const event = payload\n\n if (groups === null || selectedItemKey === null) {\n return false\n }\n const allItems = groups.flatMap((group) => group.items)\n const selectedItem = allItems.find((item) => item.key === selectedItemKey)\n if (!selectedItem) {\n return false\n }\n\n event.preventDefault()\n event.stopImmediatePropagation()\n selectItemAndCleanUp(selectedItem)\n return true\n },\n COMMAND_PRIORITY_LOW,\n ),\n editor.registerCommand(\n KEY_ENTER_COMMAND,\n (event: KeyboardEvent | null) => {\n if (groups === null || selectedItemKey === null) {\n return false\n }\n const allItems = groups.flatMap((group) => group.items)\n const selectedItem = allItems.find((item) => item.key === selectedItemKey)\n if (!selectedItem) {\n return false\n }\n\n if (event !== null) {\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n selectItemAndCleanUp(selectedItem)\n return true\n },\n COMMAND_PRIORITY_LOW,\n ),\n )\n }, [selectItemAndCleanUp, close, editor, groups, selectedItemKey, updateSelectedItem])\n\n const listItemProps = useMemo(\n () => ({\n groups,\n selectItemAndCleanUp,\n selectedItemKey,\n setSelectedItemKey,\n }),\n [selectItemAndCleanUp, selectedItemKey, groups],\n )\n\n return menuRenderFn(\n anchorElementRef,\n listItemProps,\n resolution.match ? resolution.match.matchingString : '',\n )\n}\n\nexport function useMenuAnchorRef(\n anchorElem: HTMLElement,\n resolution: MenuResolution | null,\n setResolution: (r: MenuResolution | null) => void,\n className?: string,\n): MutableRefObject<HTMLElement> {\n const [editor] = useLexicalComposerContext()\n const anchorElementRef = useRef<HTMLElement>(document.createElement('div'))\n const positionMenu = useCallback(() => {\n const rootElement = editor.getRootElement()\n const containerDiv = anchorElementRef.current\n\n const VERTICAL_OFFSET = 32\n\n const menuEle = containerDiv.firstChild as Element\n if (rootElement !== null && resolution !== null) {\n const { height, width } = resolution.getRect()\n let { left, top } = resolution.getRect()\n\n const rawTop = top\n top -= anchorElem.getBoundingClientRect().top + window.scrollY\n left -= anchorElem.getBoundingClientRect().left + window.scrollX\n containerDiv.style.left = `${left + window.scrollX}px`\n containerDiv.style.height = `${height}px`\n containerDiv.style.width = `${width}px`\n if (menuEle !== null) {\n const menuRect = menuEle.getBoundingClientRect()\n const menuHeight = menuRect.height\n const menuWidth = menuRect.width\n\n const rootElementRect = rootElement.getBoundingClientRect()\n\n if (left + menuWidth > rootElementRect.right) {\n containerDiv.style.left = `${rootElementRect.right - menuWidth + window.scrollX}px`\n }\n\n const wouldGoOffBottomOfScreen = rawTop + menuHeight + VERTICAL_OFFSET > window.innerHeight\n //const wouldGoOffBottomOfContainer = top + menuHeight > rootElementRect.bottom\n const wouldGoOffTopOfScreen = rawTop < 0\n\n // Position slash menu above the cursor instead of below (default) if it would otherwise go off the bottom of the screen.\n if (wouldGoOffBottomOfScreen && !wouldGoOffTopOfScreen) {\n const margin = 24\n containerDiv.style.top = `${\n top + VERTICAL_OFFSET - menuHeight + window.scrollY - (height + margin)\n }px`\n } else {\n containerDiv.style.top = `${top + window.scrollY + VERTICAL_OFFSET}px`\n }\n }\n\n if (!containerDiv.isConnected) {\n if (className != null) {\n containerDiv.className = className\n }\n containerDiv.setAttribute('aria-label', 'Slash menu')\n containerDiv.setAttribute('id', 'slash-menu')\n containerDiv.setAttribute('role', 'listbox')\n containerDiv.style.display = 'block'\n containerDiv.style.position = 'absolute'\n anchorElem.append(containerDiv)\n }\n anchorElementRef.current = containerDiv\n rootElement.setAttribute('aria-controls', 'slash-menu')\n }\n }, [editor, resolution, className, anchorElem])\n\n useEffect(() => {\n const rootElement = editor.getRootElement()\n if (resolution !== null) {\n positionMenu()\n return () => {\n if (rootElement !== null) {\n rootElement.removeAttribute('aria-controls')\n }\n\n const containerDiv = anchorElementRef.current\n if (containerDiv !== null && containerDiv.isConnected) {\n containerDiv.remove()\n }\n }\n }\n }, [editor, positionMenu, resolution])\n\n const onVisibilityChange = useCallback(\n (isInView: boolean) => {\n if (resolution !== null) {\n if (!isInView) {\n setResolution(null)\n }\n }\n },\n [resolution, setResolution],\n )\n\n useDynamicPositioning(resolution, anchorElementRef.current, positionMenu, onVisibilityChange)\n\n return anchorElementRef\n}\n", "import type { LexicalEditor } from 'lexical'\n\nimport { useCallback } from 'react'\n\nimport { PUNCTUATION } from './LexicalTypeaheadMenuPlugin/index.js'\n\nexport type TriggerFn = ({\n editor,\n query,\n}: {\n editor: LexicalEditor\n /** The query string is the POTENTIAL trigger AND the text after the trigger text. */\n query: string\n}) => MenuTextMatch | null\n\nexport type MenuTextMatch = {\n leadOffset: number\n matchingString: string\n replaceableString: string\n}\n\n/**\n * Returns a function which checks if the trigger (e.g. '/') is present in the query and, if so, returns the matching string (text after the trigger)\n */\nexport function useMenuTriggerMatch(\n /**\n * Text which triggers the menu. Everything after this text will be used as the query.\n */\n trigger: string,\n { maxLength = 75, minLength = 1 }: { maxLength?: number; minLength?: number },\n): TriggerFn {\n return useCallback(\n ({ query }) => {\n const validChars = '[^' + trigger + PUNCTUATION + '\\\\s]'\n const TypeaheadTriggerRegex = new RegExp(\n '(^|\\\\s|\\\\()(' +\n '[' +\n trigger +\n ']' +\n '((?:' +\n validChars +\n '){0,' +\n maxLength +\n '})' +\n ')$',\n )\n const match = TypeaheadTriggerRegex.exec(query)\n if (match !== null) {\n const maybeLeadingWhitespace = match[1]\n\n /**\n * matchingString is only the text AFTER the trigger text. (So everything after the /)\n */\n const matchingString = match[3]\n\n if (matchingString.length >= minLength) {\n return {\n leadOffset: match.index + maybeLeadingWhitespace.length,\n matchingString,\n replaceableString: match[2], // replaceableString is the trigger text + the matching string\n }\n }\n }\n return null\n },\n [maxLength, minLength, trigger],\n )\n}\n", "'use client'\nimport type { LexicalEditor, LexicalNode, ParagraphNode } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { $createParagraphNode } from 'lexical'\nimport * as React from 'react'\nimport { type JSX, useCallback, useEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEditorConfigContext } from '../../../config/client/EditorConfigProvider.js'\nimport { isHTMLElement } from '../../../utils/guard.js'\nimport { Point } from '../../../utils/point.js'\nimport { ENABLE_SLASH_MENU_COMMAND } from '../../SlashMenu/LexicalTypeaheadMenuPlugin/index.js'\nimport { calculateDistanceFromScrollerElem } from '../utils/calculateDistanceFromScrollerElem.js'\nimport { getNodeCloseToPoint } from '../utils/getNodeCloseToPoint.js'\nimport { getTopLevelNodeKeys } from '../utils/getTopLevelNodeKeys.js'\nimport { isOnHandleElement } from '../utils/isOnHandleElement.js'\nimport { setHandlePosition } from '../utils/setHandlePosition.js'\nconst ADD_BLOCK_MENU_CLASSNAME = 'add-block-menu'\n\nlet prevIndex = Infinity\n\nfunction getCurrentIndex(keysLength: number): number {\n if (keysLength === 0) {\n return Infinity\n }\n if (prevIndex >= 0 && prevIndex < keysLength) {\n return prevIndex\n }\n\n return Math.floor(keysLength / 2)\n}\n\nfunction useAddBlockHandle(\n editor: LexicalEditor,\n anchorElem: HTMLElement,\n isEditable: boolean,\n): React.ReactElement {\n const scrollerElem = anchorElem.parentElement\n\n const { editorConfig } = useEditorConfigContext()\n const blockHandleHorizontalOffset = editorConfig?.admin?.hideGutter ? -24 : 12\n\n const menuRef = useRef<HTMLButtonElement>(null)\n const [hoveredElement, setHoveredElement] = useState<{\n elem: HTMLElement\n node: LexicalNode\n } | null>(null)\n\n useEffect(() => {\n function onDocumentMouseMove(event: MouseEvent) {\n const target = event.target\n if (!isHTMLElement(target)) {\n return\n }\n\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n )\n\n if (distanceFromScrollerElem === -1) {\n setHoveredElement(null)\n return\n }\n\n if (isOnHandleElement(target, ADD_BLOCK_MENU_CLASSNAME)) {\n return\n }\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const {\n blockElem: _emptyBlockElem,\n blockNode,\n foundAtIndex,\n } = getNodeCloseToPoint({\n anchorElem,\n cache_threshold: 0,\n editor,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n returnEmptyParagraphs: true,\n startIndex: getCurrentIndex(topLevelNodeKeys.length),\n useEdgeAsDefault: false,\n })\n\n prevIndex = foundAtIndex\n\n if (!_emptyBlockElem) {\n return\n }\n if (hoveredElement?.node !== blockNode || hoveredElement?.elem !== _emptyBlockElem) {\n setHoveredElement({\n elem: _emptyBlockElem,\n node: blockNode,\n })\n }\n }\n\n // Since the draggableBlockElem is outside the actual editor, we need to listen to the document\n // to be able to detect when the mouse is outside the editor and respect a buffer around\n // the scrollerElem to avoid the draggableBlockElem disappearing too early.\n document?.addEventListener('mousemove', onDocumentMouseMove)\n\n return () => {\n document?.removeEventListener('mousemove', onDocumentMouseMove)\n }\n }, [scrollerElem, anchorElem, editor, hoveredElement])\n\n useEffect(() => {\n if (menuRef.current && hoveredElement?.node) {\n setHandlePosition(\n hoveredElement?.elem,\n menuRef.current,\n anchorElem,\n blockHandleHorizontalOffset,\n )\n }\n }, [anchorElem, hoveredElement, blockHandleHorizontalOffset])\n\n const handleAddClick = useCallback(\n (event) => {\n let hoveredElementToUse = hoveredElement\n if (!hoveredElementToUse?.node) {\n return\n }\n\n // 1. Update hoveredElement.node to a new paragraph node if the hoveredElement.node is not a paragraph node\n editor.update(() => {\n // Check if blockNode is an empty text node\n let isEmptyParagraph = true\n if (\n hoveredElementToUse.node.getType() !== 'paragraph' ||\n hoveredElementToUse.node.getTextContent() !== ''\n ) {\n isEmptyParagraph = false\n }\n\n if (!isEmptyParagraph) {\n const newParagraph = $createParagraphNode()\n hoveredElementToUse.node.insertAfter(newParagraph)\n\n setTimeout(() => {\n hoveredElementToUse = {\n elem: editor.getElementByKey(newParagraph.getKey()),\n node: newParagraph,\n }\n setHoveredElement(hoveredElementToUse)\n }, 0)\n }\n })\n\n // 2. Focus on the new paragraph node\n setTimeout(() => {\n editor.update(() => {\n editor.focus()\n\n if (\n hoveredElementToUse.node &&\n 'select' in hoveredElementToUse.node &&\n typeof hoveredElementToUse.node.select === 'function'\n ) {\n hoveredElementToUse.node.select()\n }\n })\n }, 1)\n\n // Make sure this is called AFTER the focusing has been processed by the browser\n // Otherwise, this won't work\n setTimeout(() => {\n editor.dispatchCommand(ENABLE_SLASH_MENU_COMMAND, {\n node: hoveredElementToUse.node as ParagraphNode,\n })\n }, 2)\n\n event.stopPropagation()\n event.preventDefault()\n },\n [editor, hoveredElement],\n )\n\n return createPortal(\n <React.Fragment>\n <button\n className=\"icon add-block-menu\"\n onClick={(event) => {\n handleAddClick(event)\n }}\n ref={menuRef}\n type=\"button\"\n >\n <div className={isEditable ? 'icon' : ''} />\n </button>\n </React.Fragment>,\n anchorElem,\n )\n}\n\nexport function AddBlockHandlePlugin({\n anchorElem = document.body,\n}: {\n anchorElem?: HTMLElement\n}): React.ReactElement {\n const [editor] = useLexicalComposerContext()\n return useAddBlockHandle(editor, anchorElem, editor._editable)\n}\n", "/**\n * Calculate distance between scrollerElem and target if target is not in scrollerElem\n */\nexport const calculateDistanceFromScrollerElem = (\n scrollerElem: HTMLElement | null,\n pageX: number,\n pageY: number,\n target: HTMLElement,\n horizontalBuffer: number = 50,\n verticalBuffer: number = 25,\n): number => {\n let distanceFromScrollerElem = 0\n if (scrollerElem && !scrollerElem.contains(target)) {\n const { bottom, left, right, top } = scrollerElem.getBoundingClientRect()\n\n const adjustedTop = top + window.scrollY\n const adjustedBottom = bottom + window.scrollY\n\n if (\n pageY < adjustedTop - verticalBuffer ||\n pageY > adjustedBottom + verticalBuffer ||\n pageX < left - horizontalBuffer ||\n pageX > right + horizontalBuffer\n ) {\n return -1\n }\n\n // This is used to allow the _draggableBlockElem to be found when the mouse is in the\n // buffer zone around the scrollerElem.\n if (pageX < left || pageX > right) {\n distanceFromScrollerElem = pageX < left ? pageX - left : pageX - right\n }\n }\n return distanceFromScrollerElem\n}\n", "import type { LexicalEditor, LexicalNode } from 'lexical'\n\nimport { $getNodeByKey } from 'lexical'\n\nimport { Point } from '../../../utils/point.js'\nimport { Rect } from '../../../utils/rect.js'\nimport { getBoundingClientRectWithoutTransform } from '../DraggableBlockPlugin/getBoundingRectWithoutTransform.js'\nimport { getCollapsedMargins } from '../utils/getCollapsedMargins.js'\nimport { getTopLevelNodeKeys } from '../utils/getTopLevelNodeKeys.js'\n\n// Directions\nconst Downward = 1\nconst Upward = -1\nconst Indeterminate = 0\n\ntype Props = {\n anchorElem: HTMLElement\n cache_threshold?: number\n editor: LexicalEditor\n /** fuzzy makes the search not exact. If no exact match found, find the closes node instead of returning null */\n fuzzy?: boolean\n horizontalOffset?: number\n point: Point\n /**\n * By default, empty paragraphs are not returned. Set this to true to return empty paragraphs. @default false\n */\n returnEmptyParagraphs?: boolean\n /**\n * The index to start searching from. It can be a considerable performance optimization to start searching from the index of the\n * previously found node, as the node is likely to be close to the next node.\n */\n startIndex?: number\n useEdgeAsDefault?: boolean\n verbose?: boolean\n}\n\ntype Output = {\n blockElem: HTMLElement | null\n blockNode: LexicalNode | null\n foundAtIndex: number\n isFoundNodeEmptyParagraph: boolean\n}\n\nconst cache = {\n props: null as Props | null,\n result: null as Output | null,\n}\n\nfunction isPointClose(previous: Point, current: Point, threshold: number = 20): boolean {\n const dx = previous.x - current.x\n const dy = previous.y - current.y\n return dx * dx + dy * dy <= threshold * threshold\n}\n\nexport function getNodeCloseToPoint(props: Props): Output {\n const {\n anchorElem,\n cache_threshold = 20,\n editor,\n fuzzy = false,\n horizontalOffset = 0,\n point: { x, y },\n startIndex = 0,\n useEdgeAsDefault = false,\n verbose = false,\n } = props\n\n // Use cache\n if (\n cache_threshold > 0 &&\n cache.props &&\n cache.result &&\n cache.props.fuzzy === props.fuzzy &&\n cache.props.horizontalOffset === props.horizontalOffset &&\n cache.props.useEdgeAsDefault === props.useEdgeAsDefault &&\n isPointClose(cache.props.point, props.point, cache_threshold)\n ) {\n return cache.result\n }\n\n const anchorElementRect = anchorElem.getBoundingClientRect()\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const closestBlockElem: {\n blockElem: HTMLElement | null\n blockNode: LexicalNode | null\n distance: number\n foundAtIndex: number\n isFoundNodeEmptyParagraph: boolean\n } = {\n blockElem: null,\n blockNode: null,\n distance: Infinity,\n foundAtIndex: -1,\n isFoundNodeEmptyParagraph: false,\n }\n\n // Return null if matching block element is the first or last node\n editor.getEditorState().read(() => {\n if (useEdgeAsDefault) {\n const [firstNode, lastNode] = [\n editor.getElementByKey(topLevelNodeKeys[0]),\n editor.getElementByKey(topLevelNodeKeys[topLevelNodeKeys.length - 1]),\n ]\n\n const [firstNodeRect, lastNodeRect] = [\n getBoundingClientRectWithoutTransform(firstNode),\n getBoundingClientRectWithoutTransform(lastNode),\n ]\n\n if (firstNodeRect && lastNodeRect) {\n if (y < firstNodeRect.top) {\n closestBlockElem.blockElem = firstNode\n closestBlockElem.distance = firstNodeRect.top - y\n closestBlockElem.blockNode = $getNodeByKey(topLevelNodeKeys[0])\n closestBlockElem.foundAtIndex = 0\n } else if (y > lastNodeRect.bottom) {\n closestBlockElem.distance = y - lastNodeRect.bottom\n closestBlockElem.blockNode = $getNodeByKey(topLevelNodeKeys[topLevelNodeKeys.length - 1])\n closestBlockElem.blockElem = lastNode\n closestBlockElem.foundAtIndex = topLevelNodeKeys.length - 1\n }\n\n if (closestBlockElem?.blockElem) {\n return {\n blockElem: null,\n isFoundNodeEmptyParagraph: false,\n } as Output\n }\n }\n }\n\n // Find matching block element\n let index = startIndex\n let direction = Indeterminate\n\n while (index >= 0 && index < topLevelNodeKeys.length) {\n const key = topLevelNodeKeys[index]\n const elem = editor.getElementByKey(key)\n if (elem === null) {\n break\n }\n const point = new Point(x + horizontalOffset, y)\n //const domRect = Rect.fromDOM(elem)\n // Do not consider transform of blocks when calculating distance\n const domRect = Rect.fromDOMRect(getBoundingClientRectWithoutTransform(elem))\n\n const { marginBottom, marginTop } = getCollapsedMargins(elem)\n\n const rect = domRect.generateNewRect({\n bottom: domRect.bottom + marginBottom,\n left: anchorElementRect.left,\n right: anchorElementRect.right,\n top: domRect.top - marginTop,\n })\n\n const { distance, isOnBottomSide, isOnTopSide } = rect.distanceFromPoint(point)\n\n if (distance === 0) {\n closestBlockElem.blockElem = elem\n closestBlockElem.blockNode = $getNodeByKey(key)\n closestBlockElem.foundAtIndex = index\n closestBlockElem.distance = distance\n\n // Check if blockNode is an empty text node\n if (\n closestBlockElem.blockNode &&\n closestBlockElem.blockNode.getType() === 'paragraph' &&\n closestBlockElem.blockNode.getTextContent() === ''\n ) {\n if (!fuzzy && !props.returnEmptyParagraphs) {\n closestBlockElem.blockElem = null\n closestBlockElem.blockNode = null\n }\n\n closestBlockElem.isFoundNodeEmptyParagraph = true\n }\n break\n } else if (fuzzy) {\n if (distance < closestBlockElem.distance) {\n closestBlockElem.blockElem = elem\n closestBlockElem.blockNode = $getNodeByKey(key)\n closestBlockElem.distance = distance\n closestBlockElem.foundAtIndex = index\n }\n }\n\n if (direction === Indeterminate) {\n if (isOnTopSide) {\n direction = Upward\n } else if (isOnBottomSide) {\n direction = Downward\n } else {\n // stop search block element\n direction = Infinity\n }\n }\n\n index += direction\n }\n })\n\n // Store in cache before returning\n cache.props = props\n cache.result = {\n blockElem: closestBlockElem.blockElem,\n blockNode: closestBlockElem.blockNode,\n foundAtIndex: closestBlockElem.foundAtIndex,\n isFoundNodeEmptyParagraph: closestBlockElem.isFoundNodeEmptyParagraph,\n }\n\n return {\n blockElem: closestBlockElem.blockElem,\n blockNode: closestBlockElem.blockNode,\n foundAtIndex: closestBlockElem.foundAtIndex,\n isFoundNodeEmptyParagraph: closestBlockElem.isFoundNodeEmptyParagraph,\n }\n}\n", "export function getBoundingClientRectWithoutTransform(elem: HTMLElement): DOMRect {\n const rect = elem.getBoundingClientRect()\n\n // Extract the translation value from the transform style\n const transformValue = getComputedStyle(elem).getPropertyValue('transform')\n if (!transformValue || transformValue === 'none') {\n return rect\n }\n\n const lastNumberOfTransformValue = transformValue.split(',').pop()\n rect.y = rect.y - Number(lastNumberOfTransformValue.replace(')', ''))\n\n // Return the original bounding rect if no translation is applied\n return rect\n}\n", "export function getCollapsedMargins(elem: HTMLElement): {\n marginBottom: number\n marginTop: number\n} {\n const getMargin = (element: Element | null, margin: 'marginBottom' | 'marginTop'): number =>\n element ? parseFloat(window.getComputedStyle(element)[margin]) : 0\n\n const { marginBottom, marginTop } = window.getComputedStyle(elem)\n const prevElemSiblingMarginBottom = getMargin(elem.previousElementSibling, 'marginBottom')\n const nextElemSiblingMarginTop = getMargin(elem.nextElementSibling, 'marginTop')\n const collapsedTopMargin = Math.max(parseFloat(marginTop), prevElemSiblingMarginBottom)\n const collapsedBottomMargin = Math.max(parseFloat(marginBottom), nextElemSiblingMarginTop)\n\n return { marginBottom: collapsedBottomMargin, marginTop: collapsedTopMargin }\n}\n", "import type { LexicalEditor } from 'lexical'\n\nimport { $getRoot } from 'lexical'\n\nexport function getTopLevelNodeKeys(editor: LexicalEditor): string[] {\n return editor.getEditorState().read(() => $getRoot().getChildrenKeys())\n}\n", "export function isOnHandleElement(element: HTMLElement, handleElementClassName: string): boolean {\n return !!element.closest(`.${handleElementClassName}`)\n}\n", "const replacedElements = [\n 'IMG',\n 'INPUT',\n 'TEXTAREA',\n 'SELECT',\n 'BUTTON',\n 'VIDEO',\n 'OBJECT',\n 'EMBED',\n 'IFRAME',\n 'HR',\n]\n\n/**\n * From ChatGPT, only that verified it works for HR elements.\n *\n * HTML Elements can have CSS lineHeight applied to them, but it doesn't always affect the visual layout.\n * This function checks if the line-height property has an effect on the element's layout.\n * @param htmlElem\n */\nexport function doesLineHeightAffectElement(htmlElem: HTMLElement) {\n if (!htmlElem) return false\n\n // Check for replaced elements, elements that typically don't support line-height adjustments,\n // and elements without visible content\n\n if (\n replacedElements.includes(htmlElem.tagName) ||\n htmlElem.offsetHeight === 0 ||\n htmlElem.offsetWidth === 0\n ) {\n return false\n }\n\n // Check for specific CSS properties that negate line-height's visual effects\n const style = window.getComputedStyle(htmlElem)\n if (\n style.display === 'table-cell' ||\n style.position === 'absolute' ||\n style.visibility === 'hidden' ||\n style.opacity === '0'\n ) {\n return false\n }\n\n // This is a basic check, and there can be more complex scenarios where line-height doesn't have an effect.\n return true\n}\n", "import { doesLineHeightAffectElement } from './doesLineHeightAffectElement.js'\n\nexport function setHandlePosition(\n targetElem: HTMLElement | null,\n handleElem: HTMLElement,\n anchorElem: HTMLElement,\n leftOffset: number = 0, // SPACE\n) {\n if (!targetElem) {\n handleElem.style.opacity = '0'\n handleElem.style.transform = 'translate(-10000px, -10000px)'\n return\n }\n\n const targetRect = targetElem.getBoundingClientRect()\n const targetStyle = window.getComputedStyle(targetElem)\n const floatingElemRect = handleElem.getBoundingClientRect()\n const anchorElementRect = anchorElem.getBoundingClientRect()\n\n let top: number\n\n const shouldDisplayHandleInCenter = targetRect.height < 60\n\n if (!shouldDisplayHandleInCenter) {\n // No need to let line height affect the re-positioning of the floating element if line height has no\n // visual effect on the element. Otherwise, the floating element will be positioned incorrectly.\n const actualLineHeight = doesLineHeightAffectElement(targetElem)\n ? parseInt(targetStyle.lineHeight, 10)\n : 0\n\n top =\n targetRect.top + (actualLineHeight - floatingElemRect.height) / 2 - anchorElementRect.top - 1 // 1px inaccuracy\n } else {\n top =\n targetRect.top -\n floatingElemRect.height / 2 -\n anchorElementRect.top +\n targetRect.height / 2 -\n 1 // 1px inaccuracy\n }\n\n const left = leftOffset\n\n handleElem.style.opacity = '1'\n handleElem.style.transform = `translate(${left}px, ${top}px)`\n}\n", "'use client'\nimport type { LexicalEditor } from 'lexical'\nimport type { JSX, DragEvent as ReactDragEvent } from 'react'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { eventFiles } from '@lexical/rich-text'\nimport { $getNearestNodeFromDOMNode, $getNodeByKey } from 'lexical'\nimport * as React from 'react'\nimport { useEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEditorConfigContext } from '../../../config/client/EditorConfigProvider.js'\nimport { isHTMLElement } from '../../../utils/guard.js'\nimport { Point } from '../../../utils/point.js'\nimport { calculateDistanceFromScrollerElem } from '../utils/calculateDistanceFromScrollerElem.js'\nimport { getNodeCloseToPoint } from '../utils/getNodeCloseToPoint.js'\nimport { getTopLevelNodeKeys } from '../utils/getTopLevelNodeKeys.js'\nimport { isOnHandleElement } from '../utils/isOnHandleElement.js'\nimport { setHandlePosition } from '../utils/setHandlePosition.js'\nimport { getBoundingClientRectWithoutTransform } from './getBoundingRectWithoutTransform.js'\nimport { setTargetLine } from './setTargetLine.js'\n\nconst DRAGGABLE_BLOCK_MENU_CLASSNAME = 'draggable-block-menu'\nconst DRAG_DATA_FORMAT = 'application/x-lexical-drag-block'\n\nlet prevIndex = Infinity\n\nfunction getCurrentIndex(keysLength: number): number {\n if (keysLength === 0) {\n return Infinity\n }\n if (prevIndex >= 0 && prevIndex < keysLength) {\n return prevIndex\n }\n\n return Math.floor(keysLength / 2)\n}\n\nfunction setDragImage(dataTransfer: DataTransfer, draggableBlockElem: HTMLElement) {\n const { transform } = draggableBlockElem.style\n\n // Remove dragImage borders\n dataTransfer.setDragImage(draggableBlockElem, 0, 0)\n\n setTimeout(() => {\n draggableBlockElem.style.transform = transform\n })\n}\n\nfunction hideTargetLine(\n targetLineElem: HTMLElement | null,\n lastTargetBlockElem: HTMLElement | null,\n) {\n if (targetLineElem) {\n targetLineElem.style.opacity = '0'\n }\n if (lastTargetBlockElem) {\n lastTargetBlockElem.style.opacity = ''\n // Delete marginBottom and marginTop values we set\n lastTargetBlockElem.style.marginBottom = ''\n lastTargetBlockElem.style.marginTop = ''\n //lastTargetBlock.style.border = 'none'\n }\n}\n\nfunction useDraggableBlockMenu(\n editor: LexicalEditor,\n anchorElem: HTMLElement,\n isEditable: boolean,\n): React.ReactElement {\n const scrollerElem = anchorElem.parentElement\n\n const menuRef = useRef<HTMLDivElement>(null)\n const targetLineRef = useRef<HTMLDivElement>(null)\n const debugHighlightRef = useRef<HTMLDivElement>(null)\n const isDraggingBlockRef = useRef<boolean>(false)\n const [draggableBlockElem, setDraggableBlockElem] = useState<HTMLElement | null>(null)\n const [lastTargetBlock, setLastTargetBlock] = useState<{\n boundingBox?: DOMRect\n elem: HTMLElement | null\n isBelow: boolean\n }>(null)\n\n const { editorConfig } = useEditorConfigContext()\n\n const blockHandleHorizontalOffset = editorConfig?.admin?.hideGutter ? -44 : -8\n\n useEffect(() => {\n /**\n * Handles positioning of the drag handle\n */\n function onDocumentMouseMove(event: MouseEvent) {\n const target = event.target\n if (!isHTMLElement(target)) {\n return\n }\n\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n )\n if (distanceFromScrollerElem === -1) {\n setDraggableBlockElem(null)\n return\n }\n\n if (isOnHandleElement(target, DRAGGABLE_BLOCK_MENU_CLASSNAME)) {\n return\n }\n\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const {\n blockElem: _draggableBlockElem,\n foundAtIndex,\n isFoundNodeEmptyParagraph,\n } = getNodeCloseToPoint({\n anchorElem,\n cache_threshold: 0,\n editor,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n startIndex: getCurrentIndex(topLevelNodeKeys.length),\n useEdgeAsDefault: false,\n verbose: false,\n })\n\n prevIndex = foundAtIndex\n\n //if (DEBUG && _draggableBlockElem) {\n //targetBlockElem.style.border = '3px solid red'\n // highlightElemOriginalPosition(debugHighlightRef, _draggableBlockElem, anchorElem)\n //}\n\n if (!_draggableBlockElem && !isFoundNodeEmptyParagraph) {\n return\n }\n\n if (draggableBlockElem !== _draggableBlockElem) {\n setDraggableBlockElem(_draggableBlockElem)\n }\n }\n\n // Since the draggableBlockElem is outside the actual editor, we need to listen to the document\n // to be able to detect when the mouse is outside the editor and respect a buffer around\n // the scrollerElem to avoid the draggableBlockElem disappearing too early.\n document?.addEventListener('mousemove', onDocumentMouseMove)\n\n return () => {\n document?.removeEventListener('mousemove', onDocumentMouseMove)\n }\n }, [scrollerElem, anchorElem, editor, draggableBlockElem])\n\n useEffect(() => {\n if (menuRef.current) {\n setHandlePosition(\n draggableBlockElem,\n menuRef.current,\n anchorElem,\n blockHandleHorizontalOffset,\n )\n }\n }, [anchorElem, draggableBlockElem, blockHandleHorizontalOffset])\n\n useEffect(() => {\n function onDragover(event: DragEvent): boolean {\n if (!isDraggingBlockRef.current) {\n return false\n }\n const [isFileTransfer] = eventFiles(event)\n if (isFileTransfer) {\n return false\n }\n\n const { pageY, target } = event\n if (!isHTMLElement(target)) {\n return false\n }\n\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n 100,\n 50,\n )\n\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const {\n blockElem: targetBlockElem,\n foundAtIndex,\n isFoundNodeEmptyParagraph,\n } = getNodeCloseToPoint({\n anchorElem,\n editor,\n fuzzy: true,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n startIndex: getCurrentIndex(topLevelNodeKeys.length),\n useEdgeAsDefault: true,\n verbose: true,\n })\n\n prevIndex = foundAtIndex\n\n const targetLineElem = targetLineRef.current\n // targetBlockElem === null shouldn't happen\n if (targetBlockElem === null || targetLineElem === null) {\n return false\n }\n\n if (draggableBlockElem !== targetBlockElem) {\n const { isBelow, willStayInSamePosition } = setTargetLine(\n editorConfig?.admin?.hideGutter ? '0px' : '3rem',\n blockHandleHorizontalOffset +\n (editorConfig?.admin?.hideGutter\n ? menuRef?.current?.getBoundingClientRect()?.width ?? 0\n : -menuRef?.current?.getBoundingClientRect()?.width ?? 0),\n targetLineElem,\n targetBlockElem,\n lastTargetBlock,\n pageY,\n anchorElem,\n event,\n debugHighlightRef,\n isFoundNodeEmptyParagraph,\n )\n\n // Prevent default event to be able to trigger onDrop events\n // Calling preventDefault() adds the green plus icon to the cursor,\n // indicating that the drop is allowed.\n event.preventDefault()\n\n if (!willStayInSamePosition) {\n setLastTargetBlock({\n boundingBox: targetBlockElem.getBoundingClientRect(),\n elem: targetBlockElem,\n isBelow,\n })\n }\n } else {\n hideTargetLine(targetLineElem, lastTargetBlock?.elem)\n setLastTargetBlock({\n boundingBox: targetBlockElem.getBoundingClientRect(),\n elem: targetBlockElem,\n isBelow: false,\n })\n }\n\n return true\n }\n\n function onDrop(event: DragEvent): boolean {\n if (!isDraggingBlockRef.current) {\n return false\n }\n const [isFileTransfer] = eventFiles(event)\n if (isFileTransfer) {\n return false\n }\n const { dataTransfer, pageY, target } = event\n const dragData = dataTransfer?.getData(DRAG_DATA_FORMAT) || ''\n\n editor.update(() => {\n const draggedNode = $getNodeByKey(dragData)\n if (!draggedNode) {\n return false\n }\n if (!isHTMLElement(target)) {\n return false\n }\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n 100,\n 50,\n )\n\n const { blockElem: targetBlockElem, isFoundNodeEmptyParagraph } = getNodeCloseToPoint({\n anchorElem,\n editor,\n fuzzy: true,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n useEdgeAsDefault: true,\n })\n\n if (!targetBlockElem) {\n return false\n }\n const targetNode = $getNearestNodeFromDOMNode(targetBlockElem)\n if (!targetNode) {\n return false\n }\n if (targetNode === draggedNode) {\n return true\n }\n\n const { height: targetBlockElemHeight, top: targetBlockElemTop } =\n getBoundingClientRectWithoutTransform(targetBlockElem)\n\n const mouseY = pageY\n const isBelow = mouseY >= targetBlockElemTop + targetBlockElemHeight / 2 + window.scrollY\n\n if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n // below targetBlockElem\n targetNode.insertAfter(draggedNode)\n } else {\n // above targetBlockElem\n targetNode.insertBefore(draggedNode)\n }\n } else {\n //\n targetNode.insertBefore(draggedNode)\n targetNode.remove()\n }\n\n /*\n if (pageY >= targetBlockElemTop + targetBlockElemHeight / 2) {\n targetNode.insertAfter(draggedNode)\n } else {\n targetNode.insertBefore(draggedNode)\n }*/\n if (draggableBlockElem !== null) {\n setDraggableBlockElem(null)\n }\n\n // find all previous elements with lexical-block-highlighter class and remove them\n const allPrevHighlighters = document.querySelectorAll('.lexical-block-highlighter')\n allPrevHighlighters.forEach((highlighter) => {\n highlighter.remove()\n })\n\n const newInsertedElem = editor.getElementByKey(draggedNode.getKey())\n setTimeout(() => {\n // add new temp html element to newInsertedElem with the same height and width and the class block-selected\n // to highlight the new inserted element\n const newInsertedElemRect = newInsertedElem.getBoundingClientRect()\n\n const highlightElem = document.createElement('div')\n highlightElem.className = 'lexical-block-highlighter'\n\n // if html data-theme is dark, set the highlighter color to white\n if (document.documentElement.getAttribute('data-theme') === 'dark') {\n highlightElem.style.backgroundColor = 'white'\n } else {\n highlightElem.style.backgroundColor = 'black'\n }\n\n highlightElem.style.transition = 'opacity 0.1s ease-in-out'\n highlightElem.style.zIndex = '1'\n highlightElem.style.pointerEvents = 'none'\n highlightElem.style.boxSizing = 'border-box'\n highlightElem.style.borderRadius = '4px'\n highlightElem.style.position = 'absolute'\n document.body.appendChild(highlightElem)\n\n highlightElem.style.opacity = '0.1'\n\n highlightElem.style.height = `${newInsertedElemRect.height + 8}px`\n highlightElem.style.width = `${newInsertedElemRect.width + 8}px`\n highlightElem.style.top = `${newInsertedElemRect.top + window.scrollY - 4}px`\n highlightElem.style.left = `${newInsertedElemRect.left - 4}px`\n\n setTimeout(() => {\n highlightElem.style.opacity = '0'\n setTimeout(() => {\n highlightElem.remove()\n }, 1000)\n }, 3000)\n }, 120)\n })\n\n return true\n }\n\n // register onDragover event listeners:\n document.addEventListener('dragover', onDragover)\n // register onDrop event listeners:\n document.addEventListener('drop', onDrop)\n\n return () => {\n document.removeEventListener('dragover', onDragover)\n document.removeEventListener('drop', onDrop)\n }\n }, [\n scrollerElem,\n blockHandleHorizontalOffset,\n anchorElem,\n editor,\n lastTargetBlock,\n draggableBlockElem,\n editorConfig?.admin?.hideGutter,\n ])\n\n function onDragStart(event: ReactDragEvent<HTMLDivElement>): void {\n const dataTransfer = event.dataTransfer\n if (!dataTransfer || !draggableBlockElem) {\n return\n }\n setDragImage(dataTransfer, draggableBlockElem)\n let nodeKey = ''\n editor.update(() => {\n const node = $getNearestNodeFromDOMNode(draggableBlockElem)\n if (node) {\n nodeKey = node.getKey()\n }\n })\n isDraggingBlockRef.current = true\n dataTransfer.setData(DRAG_DATA_FORMAT, nodeKey)\n }\n\n function onDragEnd(): void {\n isDraggingBlockRef.current = false\n hideTargetLine(targetLineRef.current, lastTargetBlock?.elem)\n }\n\n return createPortal(\n <React.Fragment>\n <div\n className=\"icon draggable-block-menu\"\n draggable\n onDragEnd={onDragEnd}\n onDragStart={onDragStart}\n ref={menuRef}\n >\n <div className={isEditable ? 'icon' : ''} />\n </div>\n <div className=\"draggable-block-target-line\" ref={targetLineRef} />\n <div className=\"debug-highlight\" ref={debugHighlightRef} />\n </React.Fragment>,\n anchorElem,\n )\n}\n\nexport function DraggableBlockPlugin({\n anchorElem = document.body,\n}: {\n anchorElem?: HTMLElement\n}): React.ReactElement {\n const [editor] = useLexicalComposerContext()\n return useDraggableBlockMenu(editor, anchorElem, editor._editable)\n}\n", "import type React from 'react'\n\nimport { getBoundingClientRectWithoutTransform } from './getBoundingRectWithoutTransform.js'\n\nexport function highlightElemOriginalPosition(\n debugHighlightRef: React.RefObject<HTMLDivElement | null>,\n htmlElem: HTMLElement,\n anchorElem: HTMLElement,\n) {\n if (!debugHighlightRef.current) {\n // If the ref doesn't point to an existing element, we can't set styles\n return\n }\n\n const { left: anchorLeft, top: anchorTop } = anchorElem.getBoundingClientRect()\n\n // Get computed styles of the given element\n const boundingRect = getBoundingClientRectWithoutTransform(htmlElem)\n\n // Extract necessary styles (ignoring transform)\n const width = boundingRect.width\n const height = boundingRect.height\n const top = boundingRect.top - anchorTop\n const left = boundingRect.left - anchorLeft\n\n debugHighlightRef.current.style.border = '2px solid green'\n debugHighlightRef.current.style.boxSizing = 'border-box'\n debugHighlightRef.current.style.height = height + 'px'\n debugHighlightRef.current.style.pointerEvents = 'none'\n debugHighlightRef.current.style.position = 'absolute'\n debugHighlightRef.current.style.top = top + 'px'\n debugHighlightRef.current.style.left = left + 'px'\n debugHighlightRef.current.style.width = width + 'px'\n debugHighlightRef.current.style.zIndex = '1000'\n debugHighlightRef.current.style.opacity = '0.5'\n}\n", "import { getCollapsedMargins } from '../utils/getCollapsedMargins.js'\nimport { getBoundingClientRectWithoutTransform } from './getBoundingRectWithoutTransform.js'\nimport { highlightElemOriginalPosition } from './highlightElemOriginalPosition.js'\nconst TARGET_LINE_HALF_HEIGHT = 25\nconst TEXT_BOX_HORIZONTAL_PADDING = -24\nconst DEBUG = false\n\nlet animationTimer = 0\n\nexport function setTargetLine(\n offsetWidth: string,\n offsetLeft: number,\n targetLineElem: HTMLElement,\n targetBlockElem: HTMLElement,\n lastTargetBlock: {\n boundingBox?: DOMRect\n elem: HTMLElement | null\n isBelow: boolean\n },\n mouseY: number,\n anchorElem: HTMLElement,\n event: DragEvent,\n debugHighlightRef: React.RefObject<HTMLDivElement | null>,\n isFoundNodeEmptyParagraph: boolean = false,\n) {\n const { height: targetBlockElemHeight, top: targetBlockElemTop } =\n targetBlockElem.getBoundingClientRect() // used to be getBoundingClientRectWithoutTransform. Not sure what's better, but the normal getBoundingClientRect seems to work fine\n const { top: anchorTop, width: anchorWidth } = anchorElem.getBoundingClientRect()\n\n const { marginBottom, marginTop } = getCollapsedMargins(targetBlockElem)\n let lineTop = targetBlockElemTop\n\n const isBelow = mouseY >= targetBlockElemTop + targetBlockElemHeight / 2 + window.scrollY\n\n let willStayInSamePosition = false\n\n /**\n * Do not run any transform or changes if the actual new line position would be the same (even if it's now inserted BEFORE rather than AFTER - position would still be the same)\n * This prevents unnecessary flickering.\n *\n * We still need to let it run even if the position (IGNORING the transform) would not change, as the transform animation is not finished yet. This is what animationTimer does. Otherwise, the positioning will be inaccurate\n */\n if (lastTargetBlock?.elem) {\n if (targetBlockElem !== lastTargetBlock?.elem) {\n if (\n isBelow &&\n lastTargetBlock?.elem &&\n lastTargetBlock?.elem === targetBlockElem.nextElementSibling\n ) {\n animationTimer++\n\n if (animationTimer < 200) {\n willStayInSamePosition = true\n }\n } else if (\n !isBelow &&\n lastTargetBlock?.elem &&\n lastTargetBlock?.elem === targetBlockElem.previousElementSibling\n ) {\n animationTimer++\n if (animationTimer < 200) {\n willStayInSamePosition = true\n }\n }\n } else {\n animationTimer++\n\n const lastBoundingBoxPosition = lastTargetBlock?.boundingBox?.y\n const currentBoundingBoxPosition = targetBlockElem.getBoundingClientRect().y\n\n if (\n (isBelow === lastTargetBlock?.isBelow &&\n lastBoundingBoxPosition === currentBoundingBoxPosition) ||\n animationTimer < 200\n ) {\n willStayInSamePosition = false\n }\n }\n }\n if (willStayInSamePosition) {\n return {\n isBelow,\n willStayInSamePosition,\n }\n }\n\n /**\n * Paragraphs need no isBelow/above handling,\n */\n if (!isFoundNodeEmptyParagraph) {\n //if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n // below targetBlockElem\n lineTop += targetBlockElemHeight + marginBottom / 2\n } else {\n // above targetBlockElem\n lineTop -= marginTop / 2\n }\n } else {\n lineTop += targetBlockElemHeight / 2\n }\n\n let targetElemTranslate2 = 0\n\n if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n targetElemTranslate2 = -TARGET_LINE_HALF_HEIGHT\n } else {\n targetElemTranslate2 = TARGET_LINE_HALF_HEIGHT\n }\n }\n\n const top = lineTop - anchorTop + targetElemTranslate2\n\n const left = TEXT_BOX_HORIZONTAL_PADDING - offsetLeft\n\n targetLineElem.style.width = `calc(${anchorWidth}px - ${offsetWidth})`\n targetLineElem.style.opacity = '.4'\n\n /**\n * Move around element below or above the line (= the target / targetBlockElem). Creates \"space\" for the targetLineElem\n *\n * Not needed for empty paragraphs, as an empty paragraph is enough space for the targetLineElem anyways.\n */\n //targetBlockElem.style.opacity = '0.4'\n const buffer = 12 // creates more spacing/padding so target line is not directly next to the targetBlockElem\n if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n targetBlockElem.style.marginBottom = TARGET_LINE_HALF_HEIGHT * 2 + buffer + 'px'\n targetLineElem.style.transform = `translate(${left}px, calc(${top}px - ${'0px'}))`\n } else {\n targetBlockElem.style.marginTop = TARGET_LINE_HALF_HEIGHT * 2 + buffer + 'px'\n targetLineElem.style.transform = `translate(${left}px, calc(${top - TARGET_LINE_HALF_HEIGHT * 2}px - ${'0px'}))`\n }\n } else {\n targetLineElem.style.transform = `translate(${left}px, ${top - TARGET_LINE_HALF_HEIGHT}px)`\n }\n\n if (DEBUG) {\n //targetBlockElem.style.border = '3px solid red'\n highlightElemOriginalPosition(debugHighlightRef, targetBlockElem, anchorElem)\n }\n\n /**\n * Properly reset previous targetBlockElem styles\n */\n lastTargetBlock.elem.style.opacity = ''\n\n if (lastTargetBlock?.elem === targetBlockElem) {\n if (isBelow) {\n lastTargetBlock.elem.style.marginTop = ''\n } else {\n lastTargetBlock.elem.style.marginBottom = ''\n }\n } else {\n lastTargetBlock.elem.style.marginBottom = ''\n lastTargetBlock.elem.style.marginTop = ''\n }\n animationTimer = 0\n return {\n isBelow,\n willStayInSamePosition,\n }\n}\n", "import type { JSX } from 'react'\n\nimport { ContentEditable } from '@lexical/react/LexicalContentEditable.js'\nimport * as React from 'react'\n\nexport function LexicalContentEditable({ className }: { className?: string }): JSX.Element {\n return <ContentEditable className={className ?? 'ContentEditable__root'} />\n}\n"],
5
- "mappings": "4HAIA,OACE,oBAAAA,GACA,cAAAC,GACA,cAAAC,GACA,YAAAC,GACA,iBAAAC,GACA,iBAAAC,OACK,wBACP,OAAgB,eAAAC,OAAmB,QACnC,OAAS,iBAAAC,OAAqB,uBAI9B,MAAO,gBCZP,OAAS,mBAAAC,OAAuB,oCAChC,UAAYC,OAAW,QACvB,OAAS,WAAAC,OAAe,QCNxB,OAAS,6BAAAC,OAAiC,2CAC1C,OAAS,wBAAAC,OAA4B,yCACrC,OAAS,iBAAAC,OAAqB,yCAC9B,OAAS,kBAAAC,OAAsB,0CAC/B,OAAS,kBAAAC,OAAsB,0CAC/B,OAAS,wBAAAC,OAA4B,gDACrC,OAAS,kBAAAC,OAAsB,wBAC/B,OAAS,gBAAAC,GAAc,wBAAAC,GAAsB,iBAAAC,OAAqB,UAClE,UAAYC,MAAW,QACvB,OAAS,aAAAC,GAAW,YAAAC,OAAgB,QCCV,cAAAC,OAAA,oBAPnB,IAAMC,EAIR,CAAC,CAAE,WAAAC,EAAY,YAAAC,EAAa,OAAAC,CAAO,IAClCA,EAAO,WAAa,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AGC,EAAS,SAC1B,UAAAF,EAACqC,GAAA,CAAW,YAAa9B,EAAa,KAAMwB,EAAO,GAAInB,GAAc,CAAC,EAAI,EAC1EZ,EAACsC,GAAA,CAAc,eAAgBC,GAAgB,QAAS,IAAM,CAAC,EAC7D,SAAAvC,EAACwC,GAAA,CACC,aAAc7B,EACd,WAAYP,EAEZ,SAAWqC,GAAgB,CACzB,IAAIC,EAAwBD,EAAY,OAAO,EAG3C9B,GAAc,UAAU,OAAO,MAAM,QACvCA,EAAa,SAAS,MAAM,KAAK,QAASgC,IAAS,CACjDD,EAAwBC,GAAK,CAAE,oBAAqBD,CAAsB,CAAC,CAC7E,CAAC,EAGHT,EAASS,CAAqB,CAChC,EACA,KAAMX,EACN,SAAUf,EACV,MAAOO,GAfF,KAAK,UAAU,CAAE,aAAAO,EAAc,KAAAC,CAAK,CAAC,CAgB5C,EACF,EACCzB,IAAsB,OACrBA,EAEAN,EAAC4C,GAAA,CAAkB,GAAIlC,GAAoB,CAAC,EAAI,GAEpD,IAzCKqB,CA0CP,CAEJ,EAEA,SAASQ,GAAe,CAAE,MAAAM,CAAM,EAAuB,CAGrD,OACE5C,GAAC,OAAI,UAAU,gBAAgB,KAAK,QAClC,UAAAD,EAAC,KAAE,iCAAqB,EACxBA,EAAC,OAAI,MAAO,CAAE,MAAO,KAAM,EAAI,SAAA6C,EAAM,QAAQ,GAC/C,CAEJ,CAEO,IAAMC,GAAWC,GAAc5C,EAAS",
6
- "names": ["FieldDescription", "FieldError", "FieldLabel", "useField", "useFieldProps", "withCondition", "useCallback", "ErrorBoundary", "LexicalComposer", "React", "useMemo", "useLexicalComposerContext", "LexicalErrorBoundary", "HistoryPlugin", "OnChangePlugin", "RichTextPlugin", "TabIndentationPlugin", "useTranslation", "BLUR_COMMAND", "COMMAND_PRIORITY_LOW", "FOCUS_COMMAND", "React", "useEffect", "useState", "jsx", "EditorPlugin", "anchorElem", "clientProps", "plugin", "LexicalMarkdownShortcutPlugin", "jsx", "MarkdownShortcutPlugin", "editorConfig", "useEditorConfigContext", "LexicalMarkdownShortcutPlugin", "useLexicalComposerContext", "useTranslation", "useCallback", "useMemo", "useState", "React", "ReactDOM", "useLexicalComposerContext", "mergeRegister", "$getSelection", "$isRangeSelection", "$isTextNode", "COMMAND_PRIORITY_LOW", "createCommand", "useCallback", "useEffect", "useState", "React", "useLexicalComposerContext", "mergeRegister", "$getSelection", "$isRangeSelection", "COMMAND_PRIORITY_LOW", "KEY_ARROW_DOWN_COMMAND", "KEY_ARROW_UP_COMMAND", "KEY_ENTER_COMMAND", "KEY_ESCAPE_COMMAND", "KEY_TAB_COMMAND", "createCommand", "useCallback", "useEffect", "useLayoutEffect", "useMemo", "useRef", "useState", "baseClass", "scrollIntoViewIfNeeded", "target", "typeaheadContainerNode", "typeaheadRect", "getFullMatchOffset", "documentText", "entryText", "offset", "triggerOffset", "i", "$splitNodeContainingQuery", "match", "selection", "anchor", "anchorNode", "selectionOffset", "textContent", "characterOffset", "queryOffset", "startOffset", "newNode", "getScrollParent", "element", "includeHidden", "style", "excludeStaticParent", "overflowRegex", "parent", "isTriggerVisibleInNearestScrollContainer", "targetElement", "containerElement", "tRect", "cRect", "useDynamicPositioning", "resolution", "onReposition", "onVisibilityChange", "editor", "rootElement", "rootScrollParent", "ticking", "previousIsInView", "handleScroll", "isInView", "resizeObserver", "SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND", "LexicalMenu", "anchorElementRef", "close", "groups", "menuRenderFn", "onSelectItem", "shouldSplitNodeWithQuery", "selectedItemKey", "setSelectedItemKey", "matchingString", "updateSelectedItem", "item", "rootElem", "setSelectedItemKeyToFirstMatchingItem", "allItems", "group", "firstMatchingItem", "selectItemAndCleanUp", "selectedItem", "textNodeContainingQuery", "payload", "event", "selectedIndex", "newSelectedIndex", "newSelectedItem", "listItemProps", "useMenuAnchorRef", "anchorElem", "setResolution", "className", "positionMenu", "containerDiv", "VERTICAL_OFFSET", "menuEle", "height", "width", "left", "top", "rawTop", "menuRect", "menuHeight", "menuWidth", "rootElementRect", "wouldGoOffBottomOfScreen", "wouldGoOffTopOfScreen", "jsx", "PUNCTUATION", "getTextUpToAnchor", "selection", "anchor", "anchorNode", "anchorOffset", "tryToPositionRange", "leadOffset", "range", "editorWindow", "domSelection", "startOffset", "endOffset", "getQueryTextForSearch", "editor", "text", "$getSelection", "$isRangeSelection", "isSelectionOnEntityBoundary", "offset", "prevSibling", "$isTextNode", "startTransition", "callback", "ENABLE_SLASH_MENU_COMMAND", "createCommand", "LexicalTypeaheadMenuPlugin", "anchorClassName", "anchorElem", "groups", "menuRenderFn", "onClose", "onOpen", "onQueryChange", "onSelectItem", "triggerFn", "editor", "useLexicalComposerContext", "resolution", "setResolution", "useState", "anchorElementRef", "useMenuAnchorRef", "closeTypeahead", "useCallback", "openTypeahead", "res", "useEffect", "mergeRegister", "node", "match", "isSelectionOnEntityBoundary", "editorWindow", "range", "tryToPositionRange", "startTransition", "COMMAND_PRIORITY_LOW", "updateListener", "selection", "$getSelection", "text", "getQueryTextForSearch", "$isRangeSelection", "removeUpdateListener", "jsx", "LexicalMenu", "useCallback", "useMenuTriggerMatch", "trigger", "maxLength", "minLength", "useCallback", "query", "validChars", "PUNCTUATION", "match", "maybeLeadingWhitespace", "matchingString", "jsx", "jsxs", "baseClass", "SlashMenuItem", "isSelected", "item", "onClick", "onMouseEnter", "i18n", "useTranslation", "className", "title", "SlashMenuPlugin", "anchorElem", "editor", "useLexicalComposerContext", "queryString", "setQueryString", "useState", "editorConfig", "useEditorConfigContext", "checkForTriggerMatch", "useMenuTriggerMatch", "getDynamicItems", "useCallback", "groupWithItems", "dynamicItem", "dynamicGroupWithItems", "groups", "useMemo", "groupsWithItems", "groupWithItem", "group", "filteredItems", "itemTitle", "keyword", "dynamicItemGroups", "dynamicGroup", "onSelectItem", "selectedItem", "nodeToRemove", "closeMenu", "matchingString", "LexicalTypeaheadMenuPlugin", "anchorElementRef", "selectItemAndCleanUp", "selectedItemKey", "setSelectedItemKey", "groupTitle", "oi", "useLexicalComposerContext", "$createParagraphNode", "React", "useCallback", "useEffect", "useRef", "useState", "createPortal", "calculateDistanceFromScrollerElem", "scrollerElem", "pageX", "pageY", "target", "horizontalBuffer", "verticalBuffer", "distanceFromScrollerElem", "bottom", "left", "right", "top", "adjustedTop", "adjustedBottom", "$getNodeByKey", "getBoundingClientRectWithoutTransform", "elem", "rect", "transformValue", "lastNumberOfTransformValue", "getCollapsedMargins", "elem", "getMargin", "element", "margin", "marginBottom", "marginTop", "prevElemSiblingMarginBottom", "nextElemSiblingMarginTop", "collapsedTopMargin", "$getRoot", "getTopLevelNodeKeys", "editor", "Downward", "Upward", "Indeterminate", "cache", "isPointClose", "previous", "current", "threshold", "dx", "dy", "getNodeCloseToPoint", "props", "anchorElem", "cache_threshold", "editor", "fuzzy", "horizontalOffset", "x", "y", "startIndex", "useEdgeAsDefault", "verbose", "anchorElementRect", "topLevelNodeKeys", "getTopLevelNodeKeys", "closestBlockElem", "firstNode", "lastNode", "firstNodeRect", "lastNodeRect", "getBoundingClientRectWithoutTransform", "$getNodeByKey", "index", "direction", "key", "elem", "point", "Point", "domRect", "Rect", "marginBottom", "marginTop", "getCollapsedMargins", "rect", "distance", "isOnBottomSide", "isOnTopSide", "isOnHandleElement", "element", "handleElementClassName", "replacedElements", "doesLineHeightAffectElement", "htmlElem", "style", "setHandlePosition", "targetElem", "handleElem", "anchorElem", "leftOffset", "targetRect", "targetStyle", "floatingElemRect", "anchorElementRect", "top", "actualLineHeight", "doesLineHeightAffectElement", "left", "jsx", "ADD_BLOCK_MENU_CLASSNAME", "prevIndex", "getCurrentIndex", "keysLength", "useAddBlockHandle", "editor", "anchorElem", "isEditable", "scrollerElem", "editorConfig", "useEditorConfigContext", "blockHandleHorizontalOffset", "menuRef", "useRef", "hoveredElement", "setHoveredElement", "useState", "useEffect", "onDocumentMouseMove", "event", "target", "isHTMLElement", "distanceFromScrollerElem", "calculateDistanceFromScrollerElem", "isOnHandleElement", "topLevelNodeKeys", "getTopLevelNodeKeys", "_emptyBlockElem", "blockNode", "foundAtIndex", "getNodeCloseToPoint", "Point", "setHandlePosition", "handleAddClick", "useCallback", "hoveredElementToUse", "isEmptyParagraph", "newParagraph", "$createParagraphNode", "ENABLE_SLASH_MENU_COMMAND", "createPortal", "AddBlockHandlePlugin", "useLexicalComposerContext", "useLexicalComposerContext", "eventFiles", "$getNearestNodeFromDOMNode", "$getNodeByKey", "React", "useEffect", "useRef", "useState", "createPortal", "highlightElemOriginalPosition", "debugHighlightRef", "htmlElem", "anchorElem", "anchorLeft", "anchorTop", "boundingRect", "getBoundingClientRectWithoutTransform", "width", "height", "top", "left", "TARGET_LINE_HALF_HEIGHT", "TEXT_BOX_HORIZONTAL_PADDING", "DEBUG", "animationTimer", "setTargetLine", "offsetWidth", "offsetLeft", "targetLineElem", "targetBlockElem", "lastTargetBlock", "mouseY", "anchorElem", "event", "debugHighlightRef", "isFoundNodeEmptyParagraph", "targetBlockElemHeight", "targetBlockElemTop", "anchorTop", "anchorWidth", "marginBottom", "marginTop", "getCollapsedMargins", "lineTop", "isBelow", "willStayInSamePosition", "lastBoundingBoxPosition", "currentBoundingBoxPosition", "targetElemTranslate2", "top", "left", "buffer", "highlightElemOriginalPosition", "jsx", "jsxs", "DRAGGABLE_BLOCK_MENU_CLASSNAME", "DRAG_DATA_FORMAT", "prevIndex", "getCurrentIndex", "keysLength", "setDragImage", "dataTransfer", "draggableBlockElem", "transform", "hideTargetLine", "targetLineElem", "lastTargetBlockElem", "useDraggableBlockMenu", "editor", "anchorElem", "isEditable", "scrollerElem", "menuRef", "useRef", "targetLineRef", "debugHighlightRef", "isDraggingBlockRef", "setDraggableBlockElem", "useState", "lastTargetBlock", "setLastTargetBlock", "editorConfig", "useEditorConfigContext", "blockHandleHorizontalOffset", "useEffect", "onDocumentMouseMove", "event", "target", "isHTMLElement", "distanceFromScrollerElem", "calculateDistanceFromScrollerElem", "isOnHandleElement", "topLevelNodeKeys", "getTopLevelNodeKeys", "_draggableBlockElem", "foundAtIndex", "isFoundNodeEmptyParagraph", "getNodeCloseToPoint", "Point", "setHandlePosition", "onDragover", "isFileTransfer", "eventFiles", "pageY", "targetBlockElem", "isBelow", "willStayInSamePosition", "setTargetLine", "onDrop", "dragData", "draggedNode", "$getNodeByKey", "targetNode", "$getNearestNodeFromDOMNode", "targetBlockElemHeight", "targetBlockElemTop", "getBoundingClientRectWithoutTransform", "highlighter", "newInsertedElem", "newInsertedElemRect", "highlightElem", "onDragStart", "nodeKey", "node", "onDragEnd", "createPortal", "DraggableBlockPlugin", "useLexicalComposerContext", "ContentEditable", "jsx", "LexicalContentEditable", "className", "jsx", "jsxs", "LexicalEditor", "props", "editorConfig", "editorContainerRef", "onChange", "editorConfigContext", "useEditorConfigContext", "editor", "useLexicalComposerContext", "t", "useTranslation", "floatingAnchorElem", "setFloatingAnchorElem", "useState", "onRef", "_floatingAnchorElem", "useEffect", "handleFocus", "handleBlur", "unregisterFocus", "FOCUS_COMMAND", "COMMAND_PRIORITY_LOW", "unregisterBlur", "BLUR_COMMAND", "isSmallWidthViewport", "setIsSmallWidthViewport", "updateViewPortWidth", "isNextSmallWidthViewport", "plugin", "EditorPlugin", "RichTextPlugin", "LexicalErrorBoundary", "LexicalContentEditable", "OnChangePlugin", "editorState", "tags", "DraggableBlockPlugin", "AddBlockHandlePlugin", "SlashMenuPlugin", "HistoryPlugin", "MarkdownShortcutPlugin", "TabIndentationPlugin", "jsx", "LexicalProvider", "props", "editorConfig", "fieldProps", "onChange", "path", "readOnly", "value", "parentContext", "useEditorConfigContext", "editorContainerRef", "processedValue", "useMemo", "processed", "hook", "initialConfig", "getEnabledNodes", "error", "LexicalComposer", "EditorConfigProvider", "LexicalEditor", "jsx", "jsxs", "baseClass", "_RichText", "props", "name", "CustomDescription", "CustomError", "CustomLabel", "className", "descriptionProps", "editorConfig", "errorProps", "label", "labelProps", "pathFromProps", "readOnly", "required", "style", "validate", "width", "memoizedValidate", "useCallback", "value", "validationOptions", "pathFromContext", "useFieldProps", "fieldType", "useField", "errorMessage", "initialValue", "path", "schemaPath", "setValue", "showError", "classes", "FieldLabel", "FieldError", "ErrorBoundary", "fallbackRender", "LexicalProvider", "editorState", "serializedEditorState", "hook", "FieldDescription", "error", "RichText", "withCondition"]
7
- }
@@ -1,2 +0,0 @@
1
- "use client";import{a as $,d as S}from"./chunk-FSTRW2TI.js";import{b as y}from"./chunk-Y5455JF3.js";import{useLexicalComposerContext as W}from"@lexical/react/LexicalComposerContext.js";import{useLexicalNodeSelection as Y}from"@lexical/react/useLexicalNodeSelection.js";import{mergeRegister as j}from"@lexical/utils";import{getTranslation as U}from"@payloadcms/translations";import{Button as T,useConfig as q,useDocumentDrawer as z,usePayloadAPI as G,useTranslation as J}from"@payloadcms/ui/client";import{$getNodeByKey as M,$getSelection as Q,$isNodeSelection as V,CLICK_COMMAND as X,COMMAND_PRIORITY_LOW as C,KEY_BACKSPACE_COMMAND as Z,KEY_DELETE_COMMAND as ee}from"lexical";import te,{useCallback as R,useEffect as oe,useReducer as ae,useRef as se,useState as ne}from"react";import{jsx as n,jsxs as g}from"react/jsx-runtime";var t="lexical-relationship",A={depth:0},le=d=>{let{children:w,data:{relationTo:K,value:l},nodeKey:a}=d,m=se(null),[o]=W(),[s,i,p]=Y(a),{field:v}=y(),{collections:O,routes:{api:P},serverURL:B}=q(),[r,ie]=ne(()=>O.find(e=>e.slug===K)),{i18n:I,t:u}=J(),[_,L]=ae(e=>e+1,0),[{data:N},{setParams:D}]=G(`${B}${P}/${r.slug}/${l}`,{initialParams:A}),[x,k,{closeDrawer:E}]=z({id:l,collectionSlug:r.slug}),F=R(()=>{o.update(()=>{M(a).remove()})},[o,a]),H=te.useCallback(({doc:e})=>{D({...A,cacheBust:_}),E(),L()},[_,D,E]),f=R(e=>{if(s&&V(Q())){e.preventDefault();let b=M(a);if(S(b))return b.remove(),!0}return!1},[s,a]),h=R(e=>{let c=e;return c.target===m.current||m.current?.contains(c.target)?(c.shiftKey?i(!s):s||(p(),i(!0)),!0):!1},[s,i,p]);return oe(()=>j(o.registerCommand(X,h,C),o.registerCommand(ee,f,C),o.registerCommand(Z,f,C)),[p,o,s,a,f,i,h]),g("div",{className:[t,s&&`${t}--selected`].filter(Boolean).join(" "),contentEditable:!1,ref:m,children:[g("div",{className:`${t}__wrap`,children:[n("p",{className:`${t}__label`,children:u("fields:labelRelationship",{label:U(r.labels.singular,I)})}),n(k,{className:`${t}__doc-drawer-toggler`,children:n("p",{className:`${t}__title`,children:N?N[r?.admin?.useAsTitle||"id"]:l})})]}),o.isEditable()&&g("div",{className:`${t}__actions`,children:[n(T,{buttonStyle:"icon-label",className:`${t}__swapButton`,disabled:v?.readOnly,el:"div",icon:"swap",onClick:()=>{o.dispatchCommand($,{replace:{nodeKey:a}})},round:!0,tooltip:u("fields:swapRelationship")}),n(T,{buttonStyle:"icon-label",className:`${t}__removeButton`,disabled:v?.readOnly,icon:"x",onClick:e=>{e.preventDefault(),F()},round:!0,tooltip:u("fields:removeRelationship")})]}),l&&n(x,{onSave:H}),w]})},ve=d=>n(le,{...d});export{ve as RelationshipComponent};
2
- //# sourceMappingURL=RelationshipComponent-FGUPLCD2.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/field/features/relationship/nodes/components/RelationshipComponent.tsx"],
4
- "sourcesContent": ["'use client'\nimport type { ElementFormatType } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection.js'\nimport { mergeRegister } from '@lexical/utils'\nimport { getTranslation } from '@payloadcms/translations'\nimport {\n Button,\n useConfig,\n useDocumentDrawer,\n usePayloadAPI,\n useTranslation,\n} from '@payloadcms/ui/client'\nimport {\n $getNodeByKey,\n $getSelection,\n $isNodeSelection,\n CLICK_COMMAND,\n COMMAND_PRIORITY_LOW,\n KEY_BACKSPACE_COMMAND,\n KEY_DELETE_COMMAND,\n} from 'lexical'\nimport React, { useCallback, useEffect, useReducer, useRef, useState } from 'react'\n\nimport type { RelationshipData } from '../RelationshipNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND } from '../../drawer/commands.js'\nimport { $isRelationshipNode } from '../RelationshipNode.js'\nconst baseClass = 'lexical-relationship'\n\nconst initialParams = {\n depth: 0,\n}\n\ntype Props = {\n children?: React.ReactNode\n className?: string\n data: RelationshipData\n format?: ElementFormatType\n nodeKey?: string\n}\n\nconst Component: React.FC<Props> = (props) => {\n const {\n children,\n data: { relationTo, value: id },\n nodeKey,\n } = props\n\n const relationshipElemRef = useRef<HTMLDivElement | null>(null)\n\n const [editor] = useLexicalComposerContext()\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n const { field } = useEditorConfigContext()\n const {\n collections,\n routes: { api },\n serverURL,\n } = useConfig()\n\n const [relatedCollection, setRelatedCollection] = useState(() =>\n collections.find((coll) => coll.slug === relationTo),\n )\n\n const { i18n, t } = useTranslation()\n const [cacheBust, dispatchCacheBust] = useReducer((state) => state + 1, 0)\n const [{ data }, { setParams }] = usePayloadAPI(\n `${serverURL}${api}/${relatedCollection.slug}/${id}`,\n { initialParams },\n )\n\n const [DocumentDrawer, DocumentDrawerToggler, { closeDrawer }] = useDocumentDrawer({\n id,\n collectionSlug: relatedCollection.slug,\n })\n\n const removeRelationship = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey).remove()\n })\n }, [editor, nodeKey])\n\n const updateRelationship = React.useCallback(\n ({ doc }) => {\n setParams({\n ...initialParams,\n cacheBust, // do this to get the usePayloadAPI to re-fetch the data even though the URL string hasn't changed\n })\n\n closeDrawer()\n dispatchCacheBust()\n },\n [cacheBust, setParams, closeDrawer],\n )\n\n const $onDelete = useCallback(\n (payload: KeyboardEvent) => {\n if (isSelected && $isNodeSelection($getSelection())) {\n const event: KeyboardEvent = payload\n event.preventDefault()\n const node = $getNodeByKey(nodeKey)\n if ($isRelationshipNode(node)) {\n node.remove()\n return true\n }\n }\n return false\n },\n [isSelected, nodeKey],\n )\n const onClick = useCallback(\n (payload: MouseEvent) => {\n const event = payload\n // Check if relationshipElemRef.target or anything WITHIN relationshipElemRef.target was clicked\n if (\n event.target === relationshipElemRef.current ||\n relationshipElemRef.current?.contains(event.target as Node)\n ) {\n if (event.shiftKey) {\n setSelected(!isSelected)\n } else {\n if (!isSelected) {\n clearSelection()\n setSelected(true)\n }\n }\n return true\n }\n\n return false\n },\n [isSelected, setSelected, clearSelection],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<MouseEvent>(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW),\n\n editor.registerCommand(KEY_DELETE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n editor.registerCommand(KEY_BACKSPACE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n )\n }, [clearSelection, editor, isSelected, nodeKey, $onDelete, setSelected, onClick])\n\n return (\n <div\n className={[baseClass, isSelected && `${baseClass}--selected`].filter(Boolean).join(' ')}\n contentEditable={false}\n ref={relationshipElemRef}\n >\n <div className={`${baseClass}__wrap`}>\n <p className={`${baseClass}__label`}>\n {t('fields:labelRelationship', {\n label: getTranslation(relatedCollection.labels.singular, i18n),\n })}\n </p>\n <DocumentDrawerToggler className={`${baseClass}__doc-drawer-toggler`}>\n <p className={`${baseClass}__title`}>\n {data ? data[relatedCollection?.admin?.useAsTitle || 'id'] : id}\n </p>\n </DocumentDrawerToggler>\n </div>\n {editor.isEditable() && (\n <div className={`${baseClass}__actions`}>\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__swapButton`}\n disabled={field?.readOnly}\n el=\"div\"\n icon=\"swap\"\n onClick={() => {\n editor.dispatchCommand(INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND, {\n replace: { nodeKey },\n })\n }}\n round\n tooltip={t('fields:swapRelationship')}\n />\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeRelationship()\n }}\n round\n tooltip={t('fields:removeRelationship')}\n />\n </div>\n )}\n\n {id && <DocumentDrawer onSave={updateRelationship} />}\n {children}\n </div>\n )\n}\n\nexport const RelationshipComponent = (props: Props): React.ReactNode => {\n return <Component {...props} />\n}\n"],
5
- "mappings": "oGAGA,OAAS,6BAAAA,MAAiC,2CAC1C,OAAS,2BAAAC,MAA+B,4CACxC,OAAS,iBAAAC,MAAqB,iBAC9B,OAAS,kBAAAC,MAAsB,2BAC/B,OACE,UAAAC,EACA,aAAAC,EACA,qBAAAC,EACA,iBAAAC,EACA,kBAAAC,MACK,wBACP,OACE,iBAAAC,EACA,iBAAAC,EACA,oBAAAC,EACA,iBAAAC,EACA,wBAAAC,EACA,yBAAAC,EACA,sBAAAC,OACK,UACP,OAAOC,IAAS,eAAAC,EAAa,aAAAC,GAAW,cAAAC,GAAY,UAAAC,GAAQ,YAAAC,OAAgB,QAgItE,OACE,OAAAC,EADF,QAAAC,MAAA,oBAzHN,IAAMC,EAAY,uBAEZC,EAAgB,CACpB,MAAO,CACT,EAUMC,GAA8BC,GAAU,CAC5C,GAAM,CACJ,SAAAC,EACA,KAAM,CAAE,WAAAC,EAAY,MAAOC,CAAG,EAC9B,QAAAC,CACF,EAAIJ,EAEEK,EAAsBC,GAA8B,IAAI,EAExD,CAACC,CAAM,EAAIC,EAA0B,EACrC,CAACC,EAAYC,EAAaC,CAAc,EAAIC,EAAwBR,CAAO,EAC3E,CAAE,MAAAS,CAAM,EAAIC,EAAuB,EACnC,CACJ,YAAAC,EACA,OAAQ,CAAE,IAAAC,CAAI,EACd,UAAAC,CACF,EAAIC,EAAU,EAER,CAACC,EAAmBC,EAAoB,EAAIC,GAAS,IACzDN,EAAY,KAAMO,GAASA,EAAK,OAASpB,CAAU,CACrD,EAEM,CAAE,KAAAqB,EAAM,EAAAC,CAAE,E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Ae,OAAQO,EAAoB,EAClDvC,GACH,CAEJ,EAEa2D,GAAyB5D,GAC7BL,EAACI,GAAA,CAAW,GAAGC,EAAO",
6
- "names": ["useLexicalComposerContext", "useLexicalNodeSelection", "mergeRegister", "getTranslation", "Button", "useConfig", "useDocumentDrawer", "usePayloadAPI", "useTranslation", "$getNodeByKey", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "React", "useCallback", "useEffect", "useReducer", "useRef", "useState", "jsx", "jsxs", "baseClass", "initialParams", "Component", "props", "children", "relationTo", "id", "nodeKey", "relationshipElemRef", "useRef", "editor", "useLexicalComposerContext", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "field", "useEditorConfigContext", "collections", "api", "serverURL", "useConfig", "relatedCollection", "setRelatedCollection", "useState", "coll", "i18n", "t", "useTranslation", "cacheBust", "dispatchCacheBust", "useReducer", "state", "data", "setParams", "usePayloadAPI", "DocumentDrawer", "DocumentDrawerToggler", "closeDrawer", "useDocumentDrawer", "removeRelationship", "useCallback", "$getNodeByKey", "updateRelationship", "React", "doc", "$onDelete", "payload", "$isNodeSelection", "$getSelection", "node", "$isRelationshipNode", "onClick", "event", "useEffect", "mergeRegister", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "getTranslation", "Button", "INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND", "RelationshipComponent"]
7
- }
@@ -1,2 +0,0 @@
1
- function _(r){return r instanceof HTMLElement}var m=class{_x;_y;constructor(t,e){this._x=t,this._y=e}calcDeltaXTo({x:t}){return this.x-t}calcDeltaYTo({y:t}){return this.y-t}calcDistanceTo(t){return Math.sqrt(Math.pow(this.calcDeltaXTo(t),2)+Math.pow(this.calcDeltaYTo(t),2))}calcHorizontalDistanceTo(t){return Math.abs(this.calcDeltaXTo(t))}calcVerticalDistance(t){return Math.abs(this.calcDeltaYTo(t))}equals({x:t,y:e}){return this.x===t&&this.y===e}get x(){return this._x}get y(){return this._y}};function d(r){return r instanceof m}var f=class r{_bottom;_left;_right;_top;constructor(t,e,i,n){let[o,s]=e<=n?[e,n]:[n,e],[h,c]=t<=i?[t,i]:[i,t];this._top=o,this._right=c,this._left=h,this._bottom=s}static fromDOM(t){let{height:e,left:i,top:n,width:o}=t.getBoundingClientRect();return r.fromLWTH(i,o,n,e)}static fromDOMRect(t){let{height:e,left:i,top:n,width:o}=t;return r.fromLWTH(i,o,n,e)}static fromLTRB(t,e,i,n){return new r(t,e,i,n)}static fromLWTH(t,e,i,n){return new r(t,i,t+e,i+n)}static fromPoints(t,e){let{x:i,y:n}=t,{x:o,y:s}=e;return r.fromLTRB(i,n,o,s)}contains(t){if(d(t)){let{x:s,y:h}=t,c=h<this._top,a=h>this._bottom,l=s<this._left,u=s>this._right;return{reason:{isOnBottomSide:a,isOnLeftSide:l,isOnRightSide:u,isOnTopSide:c},result:!c&&!a&&!l&&!u}}let{bottom:e,left:i,right:n,top:o}=t;return o>=this._top&&o<=this._bottom&&e>=this._top&&e<=this._bottom&&i>=this._left&&i<=this._right&&n>=this._left&&n<=this._right}distanceFromPoint(t){let e=this.contains(t);if(e.result)return{distance:0,isOnBottomSide:e.reason.isOnBottomSide,isOnLeftSide:e.reason.isOnLeftSide,isOnRightSide:e.reason.isOnRightSide,isOnTopSide:e.reason.isOnTopSide};let i=0,n=0;return t.x<this._left?i=this._left-t.x:t.x>this._right&&(i=t.x-this._right),t.y<this._top?n=this._top-t.y:t.y>this._bottom&&(n=t.y-this._bottom),{distance:Math.sqrt(i*i+n*n),isOnBottomSide:t.y>this._bottom,isOnLeftSide:t.x<this._left,isOnRightSide:t.x>this._right,isOnTopSide:t.y<this._top}}equals({bottom:t,left:e,right:i,top:n}){return n===this._top&&t===this._bottom&&e===this._left&&i===this._right}generateNewRect({bottom:t=this.bottom,left:e=this.left,right:i=this.right,top:n=this.top}){return new r(e,n,i,t)}intersectsWith(t){let{height:e,left:i,top:n,width:o}=t,{height:s,left:h,top:c,width:a}=this,l=i+o>=h+a?i+o:h+a,u=n+e>=c+s?n+e:c+s,b=i<=h?i:h,p=n<=c?n:c;return l-b<=o+a&&u-p<=e+s}get bottom(){return this._bottom}get height(){return Math.abs(this._bottom-this._top)}get left(){return this._left}get right(){return this._right}get top(){return this._top}get width(){return Math.abs(this._left-this._right)}};function R({editorConfig:r}){return r.features.nodes.map(t=>"node"in t?t.node:t)}export{R as a,_ as b,m as c,d,f as e};
2
- //# sourceMappingURL=chunk-35NZOHAF.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/field/lexical/utils/guard.ts", "../../../src/field/lexical/utils/point.ts", "../../../src/field/lexical/utils/rect.ts", "../../../src/field/lexical/nodes/index.ts"],
4
- "sourcesContent": ["export function isHTMLElement(x: unknown): x is HTMLElement {\n return x instanceof HTMLElement\n}\n", "export class Point {\n private readonly _x: number\n\n private readonly _y: number\n\n constructor(x: number, y: number) {\n this._x = x\n this._y = y\n }\n\n public calcDeltaXTo({ x }: Point): number {\n return this.x - x\n }\n\n public calcDeltaYTo({ y }: Point): number {\n return this.y - y\n }\n\n public calcDistanceTo(point: Point): number {\n return Math.sqrt(Math.pow(this.calcDeltaXTo(point), 2) + Math.pow(this.calcDeltaYTo(point), 2))\n }\n\n public calcHorizontalDistanceTo(point: Point): number {\n return Math.abs(this.calcDeltaXTo(point))\n }\n\n public calcVerticalDistance(point: Point): number {\n return Math.abs(this.calcDeltaYTo(point))\n }\n\n public equals({ x, y }: Point): boolean {\n return this.x === x && this.y === y\n }\n\n get x(): number {\n return this._x\n }\n\n get y(): number {\n return this._y\n }\n}\n\nexport function isPoint(x: unknown): x is Point {\n return x instanceof Point\n}\n", "import { type Point, isPoint } from './point.js'\n\ninterface ContainsPointReturn {\n reason: {\n isOnBottomSide: boolean\n isOnLeftSide: boolean\n isOnRightSide: boolean\n isOnTopSide: boolean\n }\n result: boolean\n}\n\nexport class Rect {\n private readonly _bottom: number\n\n private readonly _left: number\n\n private readonly _right: number\n\n private readonly _top: number\n\n constructor(left: number, top: number, right: number, bottom: number) {\n const [physicTop, physicBottom] = top <= bottom ? [top, bottom] : [bottom, top]\n\n const [physicLeft, physicRight] = left <= right ? [left, right] : [right, left]\n\n this._top = physicTop\n this._right = physicRight\n this._left = physicLeft\n this._bottom = physicBottom\n }\n\n static fromDOM(dom: HTMLElement): Rect {\n const { height, left, top, width } = dom.getBoundingClientRect()\n return Rect.fromLWTH(left, width, top, height)\n }\n\n static fromDOMRect(domRect: DOMRect): Rect {\n const { height, left, top, width } = domRect\n return Rect.fromLWTH(left, width, top, height)\n }\n\n static fromLTRB(left: number, top: number, right: number, bottom: number): Rect {\n return new Rect(left, top, right, bottom)\n }\n\n static fromLWTH(left: number, width: number, top: number, height: number): Rect {\n return new Rect(left, top, left + width, top + height)\n }\n\n static fromPoints(startPoint: Point, endPoint: Point): Rect {\n const { x: left, y: top } = startPoint\n const { x: right, y: bottom } = endPoint\n return Rect.fromLTRB(left, top, right, bottom)\n }\n\n public contains({ x, y }: Point): ContainsPointReturn\n\n public contains({ bottom, left, right, top }: Rect): boolean\n\n public contains(target: Point | Rect): ContainsPointReturn | boolean {\n if (isPoint(target)) {\n const { x, y } = target\n\n const isOnTopSide = y < this._top\n const isOnBottomSide = y > this._bottom\n const isOnLeftSide = x < this._left\n const isOnRightSide = x > this._right\n\n const result = !isOnTopSide && !isOnBottomSide && !isOnLeftSide && !isOnRightSide\n\n return {\n reason: {\n isOnBottomSide,\n isOnLeftSide,\n isOnRightSide,\n isOnTopSide,\n },\n result,\n }\n }\n const { bottom, left, right, top } = target\n\n return (\n top >= this._top &&\n top <= this._bottom &&\n bottom >= this._top &&\n bottom <= this._bottom &&\n left >= this._left &&\n left <= this._right &&\n right >= this._left &&\n right <= this._right\n )\n }\n\n public distanceFromPoint(point: Point): {\n distance: number\n isOnBottomSide: boolean\n isOnLeftSide: boolean\n isOnRightSide: boolean\n isOnTopSide: boolean\n } {\n const containsResult = this.contains(point)\n if (containsResult.result) {\n return {\n distance: 0,\n isOnBottomSide: containsResult.reason.isOnBottomSide,\n isOnLeftSide: containsResult.reason.isOnLeftSide,\n isOnRightSide: containsResult.reason.isOnRightSide,\n isOnTopSide: containsResult.reason.isOnTopSide,\n }\n }\n\n let dx = 0 // Horizontal distance to the closest edge\n let dy = 0 // Vertical distance to the closest edge\n\n // If the point is to the left of the rectangle\n if (point.x < this._left) {\n dx = this._left - point.x\n }\n // If the point is to the right of the rectangle\n else if (point.x > this._right) {\n dx = point.x - this._right\n }\n\n // If the point is above the rectangle\n if (point.y < this._top) {\n dy = this._top - point.y\n }\n // If the point is below the rectangle\n else if (point.y > this._bottom) {\n dy = point.y - this._bottom\n }\n\n // Use the Pythagorean theorem to calculate the distance\n return {\n distance: Math.sqrt(dx * dx + dy * dy),\n isOnBottomSide: point.y > this._bottom,\n isOnLeftSide: point.x < this._left,\n isOnRightSide: point.x > this._right,\n isOnTopSide: point.y < this._top,\n }\n }\n\n public equals({ bottom, left, right, top }: Rect): boolean {\n return (\n top === this._top && bottom === this._bottom && left === this._left && right === this._right\n )\n }\n\n public generateNewRect({\n bottom = this.bottom,\n left = this.left,\n right = this.right,\n top = this.top,\n }): Rect {\n return new Rect(left, top, right, bottom)\n }\n\n public intersectsWith(rect: Rect): boolean {\n const { height: h1, left: x1, top: y1, width: w1 } = rect\n const { height: h2, left: x2, top: y2, width: w2 } = this\n const maxX = x1 + w1 >= x2 + w2 ? x1 + w1 : x2 + w2\n const maxY = y1 + h1 >= y2 + h2 ? y1 + h1 : y2 + h2\n const minX = x1 <= x2 ? x1 : x2\n const minY = y1 <= y2 ? y1 : y2\n return maxX - minX <= w1 + w2 && maxY - minY <= h1 + h2\n }\n\n get bottom(): number {\n return this._bottom\n }\n\n get height(): number {\n return Math.abs(this._bottom - this._top)\n }\n\n get left(): number {\n return this._left\n }\n\n get right(): number {\n return this._right\n }\n\n get top(): number {\n return this._top\n }\n\n get width(): number {\n return Math.abs(this._left - this._right)\n }\n}\n", "import type { Klass, LexicalNode, LexicalNodeReplacement } from 'lexical'\n\nimport type { SanitizedClientEditorConfig, SanitizedServerEditorConfig } from '../config/types.js'\n\nexport function getEnabledNodes({\n editorConfig,\n}: {\n editorConfig: SanitizedClientEditorConfig | SanitizedServerEditorConfig\n}): Array<Klass<LexicalNode> | LexicalNodeReplacement> {\n return editorConfig.features.nodes.map((node) => {\n if ('node' in node) {\n return node.node\n }\n return node\n })\n}\n"],
5
- "mappings": "AAAO,SAASA,EAAcC,EAA8B,CAC1D,OAAOA,aAAa,WACtB,CCFO,IAAMC,EAAN,KAAY,CACA,GAEA,GAEjB,YAAYC,EAAWC,EAAW,CAChC,KAAK,GAAKD,EACV,KAAK,GAAKC,CACZ,CAEO,aAAa,CAAE,EAAAD,CAAE,EAAkB,CACxC,OAAO,KAAK,EAAIA,CAClB,CAEO,aAAa,CAAE,EAAAC,CAAE,EAAkB,CACxC,OAAO,KAAK,EAAIA,CAClB,CAEO,eAAeC,EAAsB,CAC1C,OAAO,KAAK,KAAK,KAAK,IAAI,KAAK,aAAaA,CAAK,EAAG,CAAC,EAAI,KAAK,IAAI,KAAK,aAAaA,CAAK,EAAG,CAAC,CAAC,CAChG,CAEO,yBAAyBA,EAAsB,CACpD,OAAO,KAAK,IAAI,KAAK,aAAaA,CAAK,CAAC,CAC1C,CAEO,qBAAqBA,EAAsB,CAChD,OAAO,KAAK,IAAI,KAAK,aAAaA,CAAK,CAAC,CAC1C,CAEO,OAAO,CAAE,EAAAF,EAAG,EAAAC,CAAE,EAAmB,CACtC,OAAO,KAAK,IAAMD,GAAK,KAAK,IAAMC,CACpC,CAEA,IAAI,GAAY,CACd,OAAO,KAAK,EACd,CAEA,IAAI,GAAY,CACd,OAAO,KAAK,EACd,CACF,EAEO,SAASE,EAAQH,EAAwB,CAC9C,OAAOA,aAAaD,CACtB,CCjCO,IAAMK,EAAN,MAAMC,CAAK,CACC,Q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", "_Rect", "left", "top", "right", "bottom", "physicTop", "physicBottom", "physicLeft", "physicRight", "dom", "height", "width", "domRect", "startPoint", "endPoint", "target", "isPoint", "x", "y", "isOnTopSide", "isOnBottomSide", "isOnLeftSide", "isOnRightSide", "point", "containsResult", "dx", "dy", "rect", "h1", "x1", "y1", "w1", "h2", "x2", "y2", "w2", "maxX", "maxY", "minX", "minY", "getEnabledNodes", "editorConfig", "node"]
7
- }
@@ -1,3 +0,0 @@
1
- import{addClassNamesToElement as l}from"@lexical/utils";import{$applyNodeReplacement as a,DecoratorNode as u,createCommand as d}from"lexical";import*as n from"react";import{jsx as m}from"react/jsx-runtime";var c=n.lazy(()=>import("./component-FFLILIUZ.js").then(e=>({default:e.HorizontalRuleComponent}))),R=d("INSERT_HORIZONTAL_RULE_COMMAND"),o=class e extends u{static clone(t){return new e(t.__key)}static getType(){return"horizontalrule"}static importDOM(){return{hr:()=>({conversion:p,priority:0})}}static importJSON(t){return i()}createDOM(t){let r=document.createElement("hr");return l(r,t.theme.hr),r}decorate(){return m(c,{nodeKey:this.__key})}exportDOM(){return{element:document.createElement("hr")}}exportJSON(){return{type:"horizontalrule",version:1}}getTextContent(){return`
2
- `}isInline(){return!1}updateDOM(){return!1}};function p(){return{node:i()}}function i(){return a(new o)}function O(e){return e instanceof o}export{R as a,o as b,i as c,O as d};
3
- //# sourceMappingURL=chunk-3PZ2ZFQG.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/field/features/horizontalRule/nodes/HorizontalRuleNode.tsx"],
4
- "sourcesContent": ["import type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n LexicalCommand,\n LexicalNode,\n SerializedLexicalNode,\n} from 'lexical'\n\nimport { addClassNamesToElement } from '@lexical/utils'\nimport { $applyNodeReplacement, DecoratorNode, createCommand } from 'lexical'\nimport * as React from 'react'\n\nconst HorizontalRuleComponent = React.lazy(() =>\n import('../component/index.js').then((module) => ({\n default: module.HorizontalRuleComponent,\n })),\n)\n\n/**\n * Serialized representation of a horizontal rule node. Serialized = converted to JSON. This is what is stored in the database / in the lexical editor state.\n */\nexport type SerializedHorizontalRuleNode = SerializedLexicalNode\n\nexport const INSERT_HORIZONTAL_RULE_COMMAND: LexicalCommand<void> = createCommand(\n 'INSERT_HORIZONTAL_RULE_COMMAND',\n)\n\n/**\n * This node is a DecoratorNode. DecoratorNodes allow you to render React components in the editor.\n *\n * They need both createDom and decorate functions. createDom => outside of the html. decorate => React Component inside of the html.\n *\n * If we used DecoratorBlockNode instead, we would only need a decorate method\n */\nexport class HorizontalRuleNode extends DecoratorNode<React.ReactElement> {\n static clone(node: HorizontalRuleNode): HorizontalRuleNode {\n return new HorizontalRuleNode(node.__key)\n }\n\n static getType(): string {\n return 'horizontalrule'\n }\n\n /**\n * Defines what happens if you copy an hr element from another page and paste it into the lexical editor\n *\n * This also determines the behavior of lexical's internal HTML -> Lexical converter\n */\n static importDOM(): DOMConversionMap | null {\n return {\n hr: () => ({\n conversion: $convertHorizontalRuleElement,\n priority: 0,\n }),\n }\n }\n\n /**\n * The data for this node is stored serialized as JSON. This is the \"load function\" of that node: it takes the saved data and converts it into a node.\n */\n static importJSON(serializedNode: SerializedHorizontalRuleNode): HorizontalRuleNode {\n return $createHorizontalRuleNode()\n }\n\n /**\n * Determines how the hr element is rendered in the lexical editor. This is only the \"initial\" / \"outer\" HTML element.\n */\n createDOM(config: EditorConfig): HTMLElement {\n const element = document.createElement('hr')\n addClassNamesToElement(element, config.theme.hr)\n return element\n }\n\n /**\n * Allows you to render a React component within whatever createDOM returns.\n */\n decorate(): React.ReactElement {\n return <HorizontalRuleComponent nodeKey={this.__key} />\n }\n\n /**\n * Opposite of importDOM, this function defines what happens when you copy an hr element from the lexical editor and paste it into another page.\n *\n * This also determines the behavior of lexical's internal Lexical -> HTML converter\n */\n exportDOM(): DOMExportOutput {\n return { element: document.createElement('hr') }\n }\n /**\n * Opposite of importJSON. This determines what data is saved in the database / in the lexical editor state.\n */\n exportJSON(): SerializedLexicalNode {\n return {\n type: 'horizontalrule',\n version: 1,\n }\n }\n\n getTextContent(): string {\n return '\\n'\n }\n\n isInline(): false {\n return false\n }\n\n updateDOM(): boolean {\n return false\n }\n}\n\nfunction $convertHorizontalRuleElement(): DOMConversionOutput {\n return { node: $createHorizontalRuleNode() }\n}\n\nexport function $createHorizontalRuleNode(): HorizontalRuleNode {\n return $applyNodeReplacement(new HorizontalRuleNode())\n}\n\nexport function $isHorizontalRuleNode(\n node: LexicalNode | null | undefined,\n): node is HorizontalRuleNode {\n return node instanceof HorizontalRuleNode\n}\n"],
5
- "mappings": "AAUA,OAAS,0BAAAA,MAA8B,iBACvC,OAAS,yBAAAC,EAAuB,iBAAAC,EAAe,iBAAAC,MAAqB,UACpE,UAAYC,MAAW,QAmEZ,cAAAC,MAAA,oBAjEX,IAAMC,EAAgC,OAAK,IACzC,OAAO,yBAAuB,EAAE,KAAMC,IAAY,CAChD,QAASA,EAAO,uBAClB,EAAE,CACJ,EAOaC,EAAuDL,EAClE,gCACF,EASaM,EAAN,MAAMC,UAA2BR,CAAkC,CACxE,OAAO,MAAMS,EAA8C,CACzD,OAAO,IAAID,EAAmBC,EAAK,KAAK,CAC1C,CAEA,OAAO,SAAkB,CACvB,MAAO,gBACT,CAOA,OAAO,WAAqC,CAC1C,MAAO,CACL,GAAI,KAAO,CACT,WAAYC,EACZ,SAAU,CACZ,EACF,CACF,CAKA,OAAO,WAAWC,EAAkE,CAClF,OAAOC,EAA0B,CACnC,CAKA,UAAUC,EAAmC,CAC3C,IAAMC,EAAU,SAAS,cAAc,IAAI,EAC3C,OAAAhB,EAAuBgB,EAASD,EAAO,MAAM,EAAE,EACxCC,CACT,CAKA,UAA+B,CAC7B,OAAOX,EAACC,EAAA,CAAwB,QAAS,KAAK,MAAO,CACvD,CAOA,WAA6B,CAC3B,MAAO,CAAE,QAAS,SAAS,cAAc,IAAI,CAAE,CACjD,CAIA,YAAoC,CAClC,MAAO,CACL,KAAM,iBACN,QAAS,CACX,CACF,CAEA,gBAAyB,CACvB,MAAO;AAAA,CACT,CAEA,UAAkB,CAChB,MAAO,EACT,CAEA,WAAqB,CACnB,MAAO,EACT,CACF,EAEA,SAASM,GAAqD,CAC5D,MAAO,CAAE,KAAME,EAA0B,CAAE,CAC7C,CAEO,SAASA,GAAgD,CAC9D,OAAOb,EAAsB,IAAIQ,CAAoB,CACvD,CAEO,SAASQ,EACdN,EAC4B,CAC5B,OAAOA,aAAgBF,CACzB",
6
- "names": ["addClassNamesToElement", "$applyNodeReplacement", "DecoratorNode", "createCommand", "React", "jsx", "HorizontalRuleComponent", "module", "INSERT_HORIZONTAL_RULE_COMMAND", "HorizontalRuleNode", "_HorizontalRuleNode", "node", "$convertHorizontalRuleElement", "serializedNode", "$createHorizontalRuleNode", "config", "element", "$isHorizontalRuleNode"]
7
- }
@@ -1,2 +0,0 @@
1
- import{createCommand as l}from"lexical";var h=l("INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND");import{DecoratorBlockNode as s}from"@lexical/react/LexicalDecoratorBlockNode.js";import*as n from"react";import{jsx as c}from"react/jsx-runtime";var p=n.lazy(()=>import("./RelationshipComponent-FGUPLCD2.js").then(a=>({default:a.RelationshipComponent})));function d(a){let t=a.getAttribute("data-lexical-relationship-id"),e=a.getAttribute("data-lexical-relationship-relationTo");return t!=null&&e!=null?{node:r({relationTo:e,value:t})}:null}var o=class a extends s{__data;constructor({data:t,format:e,key:i}){super(e,i),this.__data=t}static clone(t){return new a({data:t.__data,format:t.__format,key:t.__key})}static getType(){return"relationship"}static importDOM(){return{div:t=>!t.hasAttribute("data-lexical-relationship-relationTo")||!t.hasAttribute("data-lexical-relationship-id")?null:{conversion:d,priority:2}}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id);let e={relationTo:t.relationTo,value:t.value},i=r(e);return i.setFormat(t.format),i}static isInline(){return!1}decorate(t,e){return c(p,{className:e.theme.relationship??"LexicalEditorTheme__relationship",data:this.__data,format:this.__format,nodeKey:this.getKey()})}exportDOM(){let t=document.createElement("div");t.setAttribute("data-lexical-relationship-id",String(this.__data?.value)),t.setAttribute("data-lexical-relationship-relationTo",this.__data?.relationTo);let e=document.createTextNode(this.getTextContent());return t.append(e),{element:t}}exportJSON(){return{...super.exportJSON(),...this.getData(),type:this.getType(),version:2}}getData(){return this.getLatest().__data}getTextContent(){return`${this.__data?.relationTo} relation to ${this.__data?.value}`}setData(t){let e=this.getWritable();e.__data=t}};function r(a){return new o({data:a})}function x(a){return a instanceof o}export{h as a,o as b,r as c,x as d};
2
- //# sourceMappingURL=chunk-FSTRW2TI.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/field/features/relationship/drawer/commands.ts", "../../../src/field/features/relationship/nodes/RelationshipNode.tsx"],
4
- "sourcesContent": ["import type { LexicalCommand } from 'lexical'\n\nimport { createCommand } from 'lexical'\n\nexport const INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND: LexicalCommand<{\n replace: { nodeKey: string } | false\n}> = createCommand('INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND')\n", "import type { SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n ElementFormatType,\n LexicalEditor,\n LexicalNode,\n NodeKey,\n Spread,\n} from 'lexical'\nimport type { JSX } from 'react'\n\nimport { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport * as React from 'react'\n\nconst RelationshipComponent = React.lazy(() =>\n import('./components/RelationshipComponent.js').then((module) => ({\n default: module.RelationshipComponent,\n })),\n)\n\nexport type RelationshipData = {\n relationTo: string\n value: number | string\n}\n\nexport type SerializedRelationshipNode = Spread<RelationshipData, SerializedDecoratorBlockNode>\n\nfunction $relationshipElementToNode(domNode: HTMLDivElement): DOMConversionOutput | null {\n const id = domNode.getAttribute('data-lexical-relationship-id')\n const relationTo = domNode.getAttribute('data-lexical-relationship-relationTo')\n\n if (id != null && relationTo != null) {\n const node = $createRelationshipNode({\n relationTo,\n value: id,\n })\n return { node }\n }\n return null\n}\n\nexport class RelationshipNode extends DecoratorBlockNode {\n __data: RelationshipData\n\n constructor({\n data,\n format,\n key,\n }: {\n data: RelationshipData\n format?: ElementFormatType\n key?: NodeKey\n }) {\n super(format, key)\n this.__data = data\n }\n\n static clone(node: RelationshipNode): RelationshipNode {\n return new RelationshipNode({\n data: node.__data,\n format: node.__format,\n key: node.__key,\n })\n }\n\n static getType(): string {\n return 'relationship'\n }\n\n static importDOM(): DOMConversionMap<HTMLDivElement> | null {\n return {\n div: (domNode: HTMLDivElement) => {\n if (\n !domNode.hasAttribute('data-lexical-relationship-relationTo') ||\n !domNode.hasAttribute('data-lexical-relationship-id')\n ) {\n return null\n }\n return {\n conversion: $relationshipElementToNode,\n priority: 2,\n }\n },\n }\n }\n\n static importJSON(serializedNode: SerializedRelationshipNode): RelationshipNode {\n if (serializedNode.version === 1 && (serializedNode?.value as unknown as { id: string })?.id) {\n serializedNode.value = (serializedNode.value as unknown as { id: string }).id\n }\n\n const importedData: RelationshipData = {\n relationTo: serializedNode.relationTo,\n value: serializedNode.value,\n }\n const node = $createRelationshipNode(importedData)\n node.setFormat(serializedNode.format)\n return node\n }\n\n static isInline(): false {\n return false\n }\n\n decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element {\n return (\n <RelationshipComponent\n className={config.theme.relationship ?? 'LexicalEditorTheme__relationship'}\n data={this.__data}\n format={this.__format}\n nodeKey={this.getKey()}\n />\n )\n }\n exportDOM(): DOMExportOutput {\n const element = document.createElement('div')\n element.setAttribute('data-lexical-relationship-id', String(this.__data?.value))\n element.setAttribute('data-lexical-relationship-relationTo', this.__data?.relationTo)\n\n const text = document.createTextNode(this.getTextContent())\n element.append(text)\n return { element }\n }\n\n exportJSON(): SerializedRelationshipNode {\n return {\n ...super.exportJSON(),\n ...this.getData(),\n type: this.getType(),\n version: 2,\n }\n }\n\n getData(): RelationshipData {\n return this.getLatest().__data\n }\n\n getTextContent(): string {\n return `${this.__data?.relationTo} relation to ${this.__data?.value}`\n }\n\n setData(data: RelationshipData): void {\n const writable = this.getWritable()\n writable.__data = data\n }\n}\n\nexport function $createRelationshipNode(data: RelationshipData): RelationshipNode {\n return new RelationshipNode({\n data,\n })\n}\n\nexport function $isRelationshipNode(\n node: LexicalNode | RelationshipNode | null | undefined,\n): node is RelationshipNode {\n return node instanceof RelationshipNode\n}\n"],
5
- "mappings": "AAEA,OAAS,iBAAAA,MAAqB,UAEvB,IAAMC,EAERD,EAAc,yCAAyC,ECQ5D,OAAS,sBAAAE,MAA0B,8CACnC,UAAYC,MAAW,QA8FjB,cAAAC,MAAA,oBA5FN,IAAMC,EAA8B,OAAK,IACvC,OAAO,qCAAuC,EAAE,KAAMC,IAAY,CAChE,QAASA,EAAO,qBAClB,EAAE,CACJ,EASA,SAASC,EAA2BC,EAAqD,CACvF,IAAMC,EAAKD,EAAQ,aAAa,8BAA8B,EACxDE,EAAaF,EAAQ,aAAa,sCAAsC,EAE9E,OAAIC,GAAM,MAAQC,GAAc,KAKvB,CAAE,KAJIC,EAAwB,CACnC,WAAAD,EACA,MAAOD,CACT,CAAC,CACa,EAET,IACT,CAEO,IAAMG,EAAN,MAAMC,UAAyBX,CAAmB,CACvD,OAEA,YAAY,CACV,KAAAY,EACA,OAAAC,EACA,IAAAC,CACF,EAIG,CACD,MAAMD,EAAQC,CAAG,EACjB,KAAK,OAASF,CAChB,CAEA,OAAO,MAAMG,EAA0C,CACrD,OAAO,IAAIJ,EAAiB,CAC1B,KAAMI,EAAK,OACX,OAAQA,EAAK,SACb,IAAKA,EAAK,KACZ,CAAC,CACH,CAEA,OAAO,SAAkB,CACvB,MAAO,cACT,CAEA,OAAO,WAAqD,CAC1D,MAAO,CACL,IAAMT,GAEF,CAACA,EAAQ,aAAa,sCAAsC,GAC5D,CAACA,EAAQ,aAAa,8BAA8B,EAE7C,KA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AAgBL,CACzB",
6
- "names": ["createCommand", "INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND", "DecoratorBlockNode", "React", "jsx", "RelationshipComponent", "module", "$relationshipElementToNode", "domNode", "id", "relationTo", "$createRelationshipNode", "RelationshipNode", "_RelationshipNode", "data", "format", "key", "node", "serializedNode", "importedData", "editor", "config", "element", "text", "writable", "$isRelationshipNode"]
7
- }
@@ -1,2 +0,0 @@
1
- import{useAuth as f,useConfig as D,useEntityVisibility as g}from"@payloadcms/ui/client";import*as i from"react";var x=(e,t)=>e.filter(({slug:o,admin:{enableRichTextRelationship:a},upload:n})=>t.visibleEntities.collections.includes(o)?t?.uploads?a&&!!n:n?!1:a:!1),S=e=>{let{children:t,uploads:o=!1,...a}=e,{collections:n}=D(),{user:d}=f(),{visibleEntities:u}=g(),[r]=i.useState(()=>x(n,{uploads:o,user:d,visibleEntities:u}).map(({slug:m})=>m));return r.length?i.cloneElement(t,{...a,enabledCollectionSlugs:r}):null};import{createCommand as y}from"lexical";var T=y("INSERT_UPLOAD_WITH_DRAWER_COMMAND");import{DecoratorBlockNode as C}from"@lexical/react/LexicalDecoratorBlockNode.js";import s from"bson-objectid";import{$applyNodeReplacement as _}from"lexical";import*as p from"react";import{jsx as b}from"react/jsx-runtime";var U=p.lazy(()=>import("./component-Z34HXRX3.js").then(e=>({default:e.UploadComponent})));function E(e){return e.parentElement!=null&&e.parentElement.tagName==="LI"&&e.previousSibling===null&&e.getAttribute("aria-roledescription")==="checkbox"}function O(e){if(e.hasAttribute("data-lexical-upload-relation-to")&&e.hasAttribute("data-lexical-upload-id")){let o=e.getAttribute("data-lexical-upload-id"),a=e.getAttribute("data-lexical-upload-relation-to");if(o!=null&&a!=null)return{node:c({data:{fields:{},relationTo:a,value:o}})}}let t=e;return t.src.startsWith("file:///")||E(t),null}var l=class e extends C{__data;constructor({data:t,format:o,key:a}){super(o,a),this.__data=t}static clone(t){return new e({data:t.__data,format:t.__format,key:t.__key})}static getType(){return"upload"}static importDOM(){return{img:t=>({conversion:O,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new s.default().toHexString(),t.version=3);let o={id:t.id,fields:t.fields,relationTo:t.relationTo,value:t.value},a=c({data:o});return a.setFormat(t.format),a}static isInline(){return!1}decorate(){return b(U,{data:this.__data,format:this.__format,nodeKey:this.getKey()})}exportDOM(){let t=document.createElement("img");return t.setAttribute("data-lexical-upload-id",String(this.__data?.value)),t.setAttribute("data-lexical-upload-relation-to",this.__data?.relationTo),{element:t}}exportJSON(){return{...super.exportJSON(),...this.getData(),type:this.getType(),version:3}}getData(){return this.getLatest().__data}setData(t){let o=this.getWritable();o.__data=t}updateDOM(){return!1}};function c({data:e}){return e?.id||(e.id=new s.default().toHexString()),_(new l({data:e}))}function I(e){return e instanceof l}export{S as a,T as b,l as c,c as d,I as e};
2
- //# sourceMappingURL=chunk-M6MN4CA5.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/field/features/relationship/utils/EnabledRelationshipsCondition.tsx", "../../../src/field/features/upload/drawer/commands.ts", "../../../src/field/features/upload/nodes/UploadNode.tsx"],
4
- "sourcesContent": ["import type { ClientCollectionConfig, ClientUser, VisibleEntities } from 'payload'\n\nimport { useAuth, useConfig, useEntityVisibility } from '@payloadcms/ui/client'\nimport * as React from 'react'\n\ntype Options = {\n uploads: boolean\n user: ClientUser\n visibleEntities: VisibleEntities\n}\n\ntype FilteredCollectionsT = (\n collections: ClientCollectionConfig[],\n options?: Options,\n) => ClientCollectionConfig[]\n\nconst filterRichTextCollections: FilteredCollectionsT = (collections, options) => {\n return collections.filter(({ slug, admin: { enableRichTextRelationship }, upload }) => {\n if (!options.visibleEntities.collections.includes(slug)) {\n return false\n }\n\n if (options?.uploads) {\n return enableRichTextRelationship && Boolean(upload) === true\n }\n\n return upload ? false : enableRichTextRelationship\n })\n}\n\nexport const EnabledRelationshipsCondition: React.FC<any> = (props) => {\n const { children, uploads = false, ...rest } = props\n const { collections } = useConfig()\n const { user } = useAuth()\n const { visibleEntities } = useEntityVisibility()\n\n const [enabledCollectionSlugs] = React.useState(() =>\n filterRichTextCollections(collections, { uploads, user, visibleEntities }).map(\n ({ slug }) => slug,\n ),\n )\n\n if (!enabledCollectionSlugs.length) {\n return null\n }\n\n return React.cloneElement(children, { ...rest, enabledCollectionSlugs })\n}\n", "'use client'\nimport type { LexicalCommand } from 'lexical'\n\nimport { createCommand } from 'lexical'\n\nexport const INSERT_UPLOAD_WITH_DRAWER_COMMAND: LexicalCommand<{\n replace: { nodeKey: string } | false\n}> = createCommand('INSERT_UPLOAD_WITH_DRAWER_COMMAND')\n", "import type { SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n ElementFormatType,\n LexicalNode,\n NodeKey,\n Spread,\n} from 'lexical'\nimport type { JSX } from 'react'\n\nimport { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport ObjectID from 'bson-objectid'\nimport { $applyNodeReplacement } from 'lexical'\nimport * as React from 'react'\n\nconst RawUploadComponent = React.lazy(() =>\n import('../component/index.js').then((module) => ({ default: module.UploadComponent })),\n)\n\nexport type UploadData = {\n fields: {\n // unknown, custom fields:\n [key: string]: unknown\n }\n id: string\n relationTo: string\n value: number | string\n}\n\nfunction isGoogleDocCheckboxImg(img: HTMLImageElement): boolean {\n return (\n img.parentElement != null &&\n img.parentElement.tagName === 'LI' &&\n img.previousSibling === null &&\n img.getAttribute('aria-roledescription') === 'checkbox'\n )\n}\n\nfunction $convertUploadElement(domNode: HTMLImageElement): DOMConversionOutput | null {\n if (\n domNode.hasAttribute('data-lexical-upload-relation-to') &&\n domNode.hasAttribute('data-lexical-upload-id')\n ) {\n const id = domNode.getAttribute('data-lexical-upload-id')\n const relationTo = domNode.getAttribute('data-lexical-upload-relation-to')\n\n if (id != null && relationTo != null) {\n const node = $createUploadNode({\n data: {\n fields: {},\n relationTo,\n value: id,\n },\n })\n return { node }\n }\n }\n const img = domNode\n if (img.src.startsWith('file:///') || isGoogleDocCheckboxImg(img)) {\n return null\n }\n // TODO: Auto-upload functionality here!\n //}\n return null\n}\n\nexport type SerializedUploadNode = Spread<UploadData, SerializedDecoratorBlockNode>\n\nexport class UploadNode extends DecoratorBlockNode {\n __data: UploadData\n\n constructor({\n data,\n format,\n key,\n }: {\n data: UploadData\n format?: ElementFormatType\n key?: NodeKey\n }) {\n super(format, key)\n this.__data = data\n }\n\n static clone(node: UploadNode): UploadNode {\n return new UploadNode({\n data: node.__data,\n format: node.__format,\n key: node.__key,\n })\n }\n\n static getType(): string {\n return 'upload'\n }\n\n static importDOM(): DOMConversionMap | null {\n return {\n img: (node: HTMLImageElement) => ({\n conversion: $convertUploadElement,\n priority: 0,\n }),\n }\n }\n\n static importJSON(serializedNode: SerializedUploadNode): UploadNode {\n if (serializedNode.version === 1 && (serializedNode?.value as unknown as { id: string })?.id) {\n serializedNode.value = (serializedNode.value as unknown as { id: string }).id\n }\n if (serializedNode.version === 2 && !serializedNode?.id) {\n serializedNode.id = new ObjectID.default().toHexString()\n serializedNode.version = 3\n }\n\n const importedData: UploadData = {\n id: serializedNode.id,\n fields: serializedNode.fields,\n relationTo: serializedNode.relationTo,\n value: serializedNode.value,\n }\n\n const node = $createUploadNode({ data: importedData })\n node.setFormat(serializedNode.format)\n\n return node\n }\n\n static isInline(): false {\n return false\n }\n\n decorate(): JSX.Element {\n // @ts-expect-error\n return <RawUploadComponent data={this.__data} format={this.__format} nodeKey={this.getKey()} />\n }\n\n exportDOM(): DOMExportOutput {\n const element = document.createElement('img')\n element.setAttribute('data-lexical-upload-id', String(this.__data?.value))\n element.setAttribute('data-lexical-upload-relation-to', this.__data?.relationTo)\n\n return { element }\n }\n\n exportJSON(): SerializedUploadNode {\n return {\n ...super.exportJSON(),\n ...this.getData(),\n type: this.getType(),\n version: 3,\n }\n }\n\n getData(): UploadData {\n return this.getLatest().__data\n }\n\n setData(data: UploadData): void {\n const writable = this.getWritable()\n writable.__data = data\n }\n\n // eslint-disable-next-line class-methods-use-this\n updateDOM(): false {\n return false\n }\n}\n\nexport function $createUploadNode({\n data,\n}: {\n data: Omit<UploadData, 'id'> & Partial<Pick<UploadData, 'id'>>\n}): UploadNode {\n if (!data?.id) {\n data.id = new ObjectID.default().toHexString()\n }\n return $applyNodeReplacement(new UploadNode({ data: data as UploadData }))\n}\n\nexport function $isUploadNode(node: LexicalNode | null | undefined): node is UploadNode {\n return node instanceof UploadNode\n}\n"],
5
- "mappings": "AAEA,OAAS,WAAAA,EAAS,aAAAC,EAAW,uBAAAC,MAA2B,wBACxD,UAAYC,MAAW,QAavB,IAAMC,EAAkD,CAACC,EAAaC,IAC7DD,EAAY,OAAO,CAAC,CAAE,KAAAE,EAAM,MAAO,CAAE,2BAAAC,CAA2B,EAAG,OAAAC,CAAO,IAC1EH,EAAQ,gBAAgB,YAAY,SAASC,CAAI,EAIlDD,GAAS,QACJE,GAA8B,EAAQC,EAGxCA,EAAS,GAAQD,EAPf,EAQV,EAGUE,EAAgDC,GAAU,CACrE,GAAM,CAAE,SAAAC,EAAU,QAAAC,EAAU,GAAO,GAAGC,CAAK,EAAIH,EACzC,CAAE,YAAAN,CAAY,EAAIJ,EAAU,EAC5B,CAAE,KAAAc,CAAK,EAAIf,EAAQ,EACnB,CAAE,gBAAAgB,CAAgB,EAAId,EAAoB,EAE1C,CAACe,CAAsB,EAAU,WAAS,IAC9Cb,EAA0BC,EAAa,CAAE,QAAAQ,EAAS,KAAAE,EAAM,gBAAAC,CAAgB,CAAC,EAAE,IACzE,CAAC,CAAE,KAAAT,CAAK,IAAMA,CAChB,CACF,EAEA,OAAKU,EAAuB,OAIf,eAAaL,EAAU,CAAE,GAAGE,EAAM,uBAAAG,CAAuB,CAAC,EAH9D,IAIX,EC5CA,OAAS,iBAAAC,MAAqB,UAEvB,IAAMC,EAERD,EAAc,mCAAmC,ECK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,aAAgBL,CACzB",
6
- "names": ["useAuth", "useConfig", "useEntityVisibility", "React", "filterRichTextCollections", "collections", "options", "slug", "enableRichTextRelationship", "upload", "EnabledRelationshipsCondition", "props", "children", "uploads", "rest", "user", "visibleEntities", "enabledCollectionSlugs", "createCommand", "INSERT_UPLOAD_WITH_DRAWER_COMMAND", "DecoratorBlockNode", "ObjectID", "$applyNodeReplacement", "React", "jsx", "RawUploadComponent", "module", "isGoogleDocCheckboxImg", "img", "$convertUploadElement", "domNode", "id", "relationTo", "$createUploadNode", "UploadNode", "_UploadNode", "data", "format", "key", "node", "serializedNode", "importedData", "element", "writable", "$isUploadNode"]
7
- }
@@ -1,2 +0,0 @@
1
- import{useLexicalComposerContext as m}from"@lexical/react/LexicalComposerContext.js";import{createContext as y,useContext as T,useMemo as R,useRef as g,useState as l}from"react";import{jsx as M}from"react/jsx-runtime";function h(){return Math.random().toString(36).substring(2,12)+Math.random().toString(36).substring(2,12)}var p=y({editorConfig:null,field:null,uuid:null}),b=({children:i,editorConfig:s,editorContainerRef:c,fieldProps:u,parentContext:r})=>{let[C]=m(),[a]=l(h()),e=g(new Map),[f,E]=l(null),n=g(new Set),x=R(()=>({blurEditor:t=>{n.current.clear()},childrenEditors:e,editor:C,editorConfig:s,editorContainerRef:c,field:u,focusEditor:t=>{let o=t.uuid;n.current.has(o)||(n.current.add(o),E(t),r?.uuid&&r.focusEditor(t),e.current.forEach((d,v)=>{d.focusEditor(t)}),n.current.clear())},focusedEditor:f,parentEditor:r,registerChild:(t,o)=>{if(!e.current.has(t)){let d=new Map(e.current);d.set(t,o),e.current=d}},unregisterChild:t=>{if(e.current.has(t)){let o=new Map(e.current);o.delete(t),e.current=o}},uuid:a}),[C,e,s,c,u,f,r,a]);return M(p.Provider,{value:x,children:i})},F=()=>{let i=T(p);if(i===void 0)throw new Error("useEditorConfigContext must be used within an EditorConfigProvider");return i};export{b as a,F as b};
2
- //# sourceMappingURL=chunk-Y5455JF3.js.map