@payloadcms/richtext-lexical 3.0.0-beta.7 → 3.0.0-beta.71

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 (2293) hide show
  1. package/README.md +1 -1
  2. package/dist/cell/index.d.ts +5 -2
  3. package/dist/cell/index.d.ts.map +1 -1
  4. package/dist/cell/index.js +50 -36
  5. package/dist/cell/index.js.map +1 -1
  6. package/dist/exports/client/Component-7HS6FEJS.js +2 -0
  7. package/dist/exports/client/Component-7HS6FEJS.js.map +7 -0
  8. package/dist/exports/client/Component-LAKSCIDX.js +2 -0
  9. package/dist/exports/client/Component-LAKSCIDX.js.map +7 -0
  10. package/dist/exports/client/Field-YNHIDK3D.js +2 -0
  11. package/dist/exports/client/Field-YNHIDK3D.js.map +7 -0
  12. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js +2 -0
  13. package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js.map +7 -0
  14. package/dist/exports/client/bundled.css +1 -0
  15. package/dist/exports/client/chunk-6QXGZYUK.js +2 -0
  16. package/dist/exports/client/chunk-6QXGZYUK.js.map +7 -0
  17. package/dist/exports/client/chunk-EBB2CEB6.js +2 -0
  18. package/dist/exports/client/chunk-EBB2CEB6.js.map +7 -0
  19. package/dist/exports/client/chunk-IPCJ5EVK.js +2 -0
  20. package/dist/exports/client/chunk-IPCJ5EVK.js.map +7 -0
  21. package/dist/exports/client/chunk-IWZVO3AI.js +2 -0
  22. package/dist/exports/client/chunk-IWZVO3AI.js.map +7 -0
  23. package/dist/exports/client/chunk-Q5DYR7MH.js +3 -0
  24. package/dist/exports/client/chunk-Q5DYR7MH.js.map +7 -0
  25. package/dist/exports/client/chunk-VUVXZJJR.js +2 -0
  26. package/dist/exports/client/chunk-VUVXZJJR.js.map +7 -0
  27. package/dist/exports/client/component-D4GWDXK5.js +2 -0
  28. package/dist/exports/client/component-D4GWDXK5.js.map +7 -0
  29. package/dist/exports/client/component-KA7FDRMA.js +2 -0
  30. package/dist/exports/client/component-KA7FDRMA.js.map +7 -0
  31. package/dist/exports/client/component-VM36FRT2.js +2 -0
  32. package/dist/exports/client/component-VM36FRT2.js.map +7 -0
  33. package/dist/exports/client/componentInline-6EKPZSCV.js +2 -0
  34. package/dist/exports/client/componentInline-6EKPZSCV.js.map +7 -0
  35. package/dist/exports/client/index.d.ts +63 -0
  36. package/dist/exports/client/index.d.ts.map +1 -0
  37. package/dist/exports/client/index.js +38 -0
  38. package/dist/exports/client/index.js.map +7 -0
  39. package/dist/features/align/feature.client.d.ts +5 -0
  40. package/dist/features/align/feature.client.d.ts.map +1 -0
  41. package/dist/features/align/feature.client.js +146 -0
  42. package/dist/features/align/feature.client.js.map +1 -0
  43. package/dist/features/align/feature.server.d.ts +2 -0
  44. package/dist/features/align/feature.server.d.ts.map +1 -0
  45. package/dist/features/align/feature.server.js +13 -0
  46. package/dist/features/align/feature.server.js.map +1 -0
  47. package/dist/features/align/i18n.d.ts +3 -0
  48. package/dist/features/align/i18n.d.ts.map +1 -0
  49. package/dist/features/align/i18n.js +196 -0
  50. package/dist/features/align/i18n.js.map +1 -0
  51. package/dist/features/align/toolbarAlignGroup.d.ts +3 -0
  52. package/dist/features/align/toolbarAlignGroup.d.ts.map +1 -0
  53. package/dist/features/align/toolbarAlignGroup.js +12 -0
  54. package/dist/features/align/toolbarAlignGroup.js.map +1 -0
  55. package/dist/features/blockquote/feature.client.d.ts +5 -0
  56. package/dist/features/blockquote/feature.client.d.ts.map +1 -0
  57. package/dist/features/blockquote/feature.client.js +77 -0
  58. package/dist/features/blockquote/feature.client.js.map +1 -0
  59. package/dist/features/blockquote/feature.server.d.ts +7 -0
  60. package/dist/features/blockquote/feature.server.d.ts.map +1 -0
  61. package/dist/features/blockquote/feature.server.js +45 -0
  62. package/dist/features/blockquote/feature.server.js.map +1 -0
  63. package/dist/features/blockquote/i18n.d.ts +3 -0
  64. package/dist/features/blockquote/i18n.d.ts.map +1 -0
  65. package/dist/features/blockquote/i18n.js +100 -0
  66. package/dist/features/blockquote/i18n.js.map +1 -0
  67. package/dist/features/blockquote/markdownTransformer.d.ts.map +1 -0
  68. package/dist/features/blockquote/markdownTransformer.js +40 -0
  69. package/dist/features/blockquote/markdownTransformer.js.map +1 -0
  70. package/dist/features/blocks/component/BlockContent.d.ts +27 -0
  71. package/dist/features/blocks/component/BlockContent.d.ts.map +1 -0
  72. package/dist/features/blocks/component/BlockContent.js +196 -0
  73. package/dist/features/blocks/component/BlockContent.js.map +1 -0
  74. package/dist/features/blocks/component/FormSavePlugin.d.ts +11 -0
  75. package/dist/features/blocks/component/FormSavePlugin.d.ts.map +1 -0
  76. package/dist/features/blocks/component/FormSavePlugin.js +29 -0
  77. package/dist/features/blocks/component/FormSavePlugin.js.map +1 -0
  78. package/dist/features/blocks/component/index.d.ts +11 -0
  79. package/dist/features/blocks/component/index.d.ts.map +1 -0
  80. package/dist/features/blocks/component/index.js +162 -0
  81. package/dist/features/blocks/component/index.js.map +1 -0
  82. package/dist/features/blocks/component/removeEmptyArrayValues.d.ts +11 -0
  83. package/dist/features/blocks/component/removeEmptyArrayValues.d.ts.map +1 -0
  84. package/dist/features/blocks/component/removeEmptyArrayValues.js.map +1 -0
  85. package/dist/features/blocks/componentInline/index.d.ts +10 -0
  86. package/dist/features/blocks/componentInline/index.d.ts.map +1 -0
  87. package/dist/features/blocks/componentInline/index.js +133 -0
  88. package/dist/features/blocks/componentInline/index.js.map +1 -0
  89. package/dist/features/blocks/feature.client.d.ts +13 -0
  90. package/dist/features/blocks/feature.client.d.ts.map +1 -0
  91. package/dist/features/blocks/feature.client.js +148 -0
  92. package/dist/features/blocks/feature.client.js.map +1 -0
  93. package/dist/features/blocks/feature.server.d.ts +8 -0
  94. package/dist/features/blocks/feature.server.d.ts.map +1 -0
  95. package/dist/features/blocks/feature.server.js +160 -0
  96. package/dist/features/blocks/feature.server.js.map +1 -0
  97. package/dist/features/blocks/graphQLPopulationPromise.d.ts +6 -0
  98. package/dist/features/blocks/graphQLPopulationPromise.d.ts.map +1 -0
  99. package/dist/features/blocks/graphQLPopulationPromise.js +31 -0
  100. package/dist/features/blocks/graphQLPopulationPromise.js.map +1 -0
  101. package/dist/features/blocks/i18n.d.ts +3 -0
  102. package/dist/features/blocks/i18n.d.ts.map +1 -0
  103. package/dist/features/blocks/i18n.js +292 -0
  104. package/dist/features/blocks/i18n.js.map +1 -0
  105. package/dist/features/blocks/nodes/BlocksNode.d.ts +38 -0
  106. package/dist/features/blocks/nodes/BlocksNode.d.ts.map +1 -0
  107. package/dist/features/blocks/nodes/BlocksNode.js +92 -0
  108. package/dist/features/blocks/nodes/BlocksNode.js.map +1 -0
  109. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts +39 -0
  110. package/dist/features/blocks/nodes/InlineBlocksNode.d.ts.map +1 -0
  111. package/dist/features/blocks/nodes/InlineBlocksNode.js +94 -0
  112. package/dist/features/blocks/nodes/InlineBlocksNode.js.map +1 -0
  113. package/dist/features/blocks/plugin/commands.d.ts +9 -0
  114. package/dist/features/blocks/plugin/commands.d.ts.map +1 -0
  115. package/dist/features/blocks/plugin/commands.js +6 -0
  116. package/dist/features/blocks/plugin/commands.js.map +1 -0
  117. package/dist/features/blocks/plugin/index.d.ts +6 -0
  118. package/dist/features/blocks/plugin/index.d.ts.map +1 -0
  119. package/dist/features/blocks/plugin/index.js +111 -0
  120. package/dist/features/blocks/plugin/index.js.map +1 -0
  121. package/dist/features/blocks/validate.d.ts +6 -0
  122. package/dist/features/blocks/validate.d.ts.map +1 -0
  123. package/dist/features/blocks/validate.js +36 -0
  124. package/dist/features/blocks/validate.js.map +1 -0
  125. package/dist/features/converters/html/converter/converters/linebreak.d.ts.map +1 -0
  126. package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -0
  127. package/dist/features/converters/html/converter/converters/paragraph.d.ts.map +1 -0
  128. package/dist/features/converters/html/converter/converters/paragraph.js +20 -0
  129. package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -0
  130. package/dist/features/converters/html/converter/converters/text.d.ts.map +1 -0
  131. package/dist/features/converters/html/converter/converters/text.js.map +1 -0
  132. package/dist/features/converters/html/converter/defaultConverters.d.ts.map +1 -0
  133. package/dist/features/converters/html/converter/defaultConverters.js.map +1 -0
  134. package/dist/features/converters/html/converter/index.d.ts +42 -0
  135. package/dist/features/converters/html/converter/index.d.ts.map +1 -0
  136. package/dist/features/converters/html/converter/index.js +48 -0
  137. package/dist/features/converters/html/converter/index.js.map +1 -0
  138. package/dist/features/converters/html/converter/types.d.ts +19 -0
  139. package/dist/features/converters/html/converter/types.d.ts.map +1 -0
  140. package/dist/features/converters/html/converter/types.js.map +1 -0
  141. package/dist/features/converters/html/feature.server.d.ts +8 -0
  142. package/dist/features/converters/html/feature.server.d.ts.map +1 -0
  143. package/dist/features/converters/html/feature.server.js +8 -0
  144. package/dist/features/converters/html/feature.server.js.map +1 -0
  145. package/dist/features/converters/html/field/index.d.ts +35 -0
  146. package/dist/features/converters/html/field/index.d.ts.map +1 -0
  147. package/dist/features/converters/html/field/index.js +154 -0
  148. package/dist/features/converters/html/field/index.js.map +1 -0
  149. package/dist/features/createClientComponent.d.ts +7 -0
  150. package/dist/features/createClientComponent.d.ts.map +1 -0
  151. package/dist/features/createClientComponent.js +12 -0
  152. package/dist/features/createClientComponent.js.map +1 -0
  153. package/dist/features/createFeaturePropComponent.d.ts.map +1 -0
  154. package/dist/features/createFeaturePropComponent.js +18 -0
  155. package/dist/features/createFeaturePropComponent.js.map +1 -0
  156. package/dist/features/debug/testRecorder/feature.client.d.ts +5 -0
  157. package/dist/features/debug/testRecorder/feature.client.d.ts.map +1 -0
  158. package/dist/features/debug/testRecorder/feature.client.js +13 -0
  159. package/dist/features/debug/testRecorder/feature.client.js.map +1 -0
  160. package/dist/features/debug/testRecorder/feature.server.d.ts +2 -0
  161. package/dist/features/debug/testRecorder/feature.server.d.ts.map +1 -0
  162. package/dist/features/debug/testRecorder/feature.server.js +11 -0
  163. package/dist/features/debug/testRecorder/feature.server.js.map +1 -0
  164. package/dist/features/debug/testRecorder/plugin/index.d.ts +5 -0
  165. package/dist/features/debug/testRecorder/plugin/index.d.ts.map +1 -0
  166. package/dist/features/debug/testRecorder/plugin/index.js +471 -0
  167. package/dist/features/debug/testRecorder/plugin/index.js.map +1 -0
  168. package/dist/features/debug/treeView/feature.client.d.ts +5 -0
  169. package/dist/features/debug/treeView/feature.client.d.ts.map +1 -0
  170. package/dist/features/debug/treeView/feature.client.js +13 -0
  171. package/dist/features/debug/treeView/feature.client.js.map +1 -0
  172. package/dist/features/debug/treeView/feature.server.d.ts +2 -0
  173. package/dist/features/debug/treeView/feature.server.d.ts.map +1 -0
  174. package/dist/features/debug/treeView/feature.server.js +11 -0
  175. package/dist/features/debug/treeView/feature.server.js.map +1 -0
  176. package/dist/features/debug/treeView/plugin/index.d.ts +4 -0
  177. package/dist/features/debug/treeView/plugin/index.d.ts.map +1 -0
  178. package/dist/features/debug/treeView/plugin/index.js +19 -0
  179. package/dist/features/debug/treeView/plugin/index.js.map +1 -0
  180. package/dist/features/experimental_table/feature.client.d.ts +2 -0
  181. package/dist/features/experimental_table/feature.client.d.ts.map +1 -0
  182. package/dist/features/experimental_table/feature.client.js +66 -0
  183. package/dist/features/experimental_table/feature.client.js.map +1 -0
  184. package/dist/features/experimental_table/feature.server.d.ts +2 -0
  185. package/dist/features/experimental_table/feature.server.d.ts.map +1 -0
  186. package/dist/features/experimental_table/feature.server.js +52 -0
  187. package/dist/features/experimental_table/feature.server.js.map +1 -0
  188. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts +4 -0
  189. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  190. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js +602 -0
  191. package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js.map +1 -0
  192. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts +4 -0
  193. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  194. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js +322 -0
  195. package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js.map +1 -0
  196. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts +24 -0
  197. package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts.map +1 -0
  198. package/dist/features/experimental_table/plugins/TablePlugin/index.js +98 -0
  199. package/dist/features/experimental_table/plugins/TablePlugin/index.js.map +1 -0
  200. package/dist/features/format/bold/feature.client.d.ts +5 -0
  201. package/dist/features/format/bold/feature.client.d.ts.map +1 -0
  202. package/dist/features/format/bold/feature.client.js +44 -0
  203. package/dist/features/format/bold/feature.client.js.map +1 -0
  204. package/dist/features/format/bold/feature.server.d.ts +2 -0
  205. package/dist/features/format/bold/feature.server.d.ts.map +1 -0
  206. package/dist/features/format/bold/feature.server.js +25 -0
  207. package/dist/features/format/bold/feature.server.js.map +1 -0
  208. package/dist/features/format/bold/markdownTransformers.d.ts.map +1 -0
  209. package/dist/features/format/bold/markdownTransformers.js.map +1 -0
  210. package/dist/features/format/inlineCode/feature.client.d.ts +5 -0
  211. package/dist/features/format/inlineCode/feature.client.d.ts.map +1 -0
  212. package/dist/features/format/inlineCode/feature.client.js +37 -0
  213. package/dist/features/format/inlineCode/feature.client.js.map +1 -0
  214. package/dist/features/format/inlineCode/feature.server.d.ts +2 -0
  215. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -0
  216. package/dist/features/format/inlineCode/feature.server.js +15 -0
  217. package/dist/features/format/inlineCode/feature.server.js.map +1 -0
  218. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +1 -0
  219. package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -0
  220. package/dist/features/format/italic/feature.client.d.ts +5 -0
  221. package/dist/features/format/italic/feature.client.d.ts.map +1 -0
  222. package/dist/features/format/italic/feature.client.js +38 -0
  223. package/dist/features/format/italic/feature.client.js.map +1 -0
  224. package/dist/features/format/italic/feature.server.d.ts +2 -0
  225. package/dist/features/format/italic/feature.server.d.ts.map +1 -0
  226. package/dist/features/format/italic/feature.server.js +16 -0
  227. package/dist/features/format/italic/feature.server.js.map +1 -0
  228. package/dist/features/format/italic/markdownTransformers.d.ts.map +1 -0
  229. package/dist/features/format/italic/markdownTransformers.js.map +1 -0
  230. package/dist/features/format/shared/toolbarFormatGroup.d.ts +3 -0
  231. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  232. package/dist/features/format/shared/toolbarFormatGroup.js +10 -0
  233. package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -0
  234. package/dist/features/format/strikethrough/feature.client.d.ts +5 -0
  235. package/dist/features/format/strikethrough/feature.client.d.ts.map +1 -0
  236. package/dist/features/format/strikethrough/feature.client.js +37 -0
  237. package/dist/features/format/strikethrough/feature.client.js.map +1 -0
  238. package/dist/features/format/strikethrough/feature.server.d.ts +2 -0
  239. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -0
  240. package/dist/features/format/strikethrough/feature.server.js +15 -0
  241. package/dist/features/format/strikethrough/feature.server.js.map +1 -0
  242. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +1 -0
  243. package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -0
  244. package/dist/features/format/subscript/feature.client.d.ts +5 -0
  245. package/dist/features/format/subscript/feature.client.d.ts.map +1 -0
  246. package/dist/features/format/subscript/feature.client.js +33 -0
  247. package/dist/features/format/subscript/feature.client.js.map +1 -0
  248. package/dist/features/format/subscript/feature.server.d.ts +2 -0
  249. package/dist/features/format/subscript/feature.server.d.ts.map +1 -0
  250. package/dist/features/format/subscript/feature.server.js +11 -0
  251. package/dist/features/format/subscript/feature.server.js.map +1 -0
  252. package/dist/features/format/superscript/feature.client.d.ts +5 -0
  253. package/dist/features/format/superscript/feature.client.d.ts.map +1 -0
  254. package/dist/features/format/superscript/feature.client.js +33 -0
  255. package/dist/features/format/superscript/feature.client.js.map +1 -0
  256. package/dist/features/format/superscript/feature.server.d.ts +2 -0
  257. package/dist/features/format/superscript/feature.server.d.ts.map +1 -0
  258. package/dist/features/format/superscript/feature.server.js +11 -0
  259. package/dist/features/format/superscript/feature.server.js.map +1 -0
  260. package/dist/features/format/underline/feature.client.d.ts +5 -0
  261. package/dist/features/format/underline/feature.client.d.ts.map +1 -0
  262. package/dist/features/format/underline/feature.client.js +33 -0
  263. package/dist/features/format/underline/feature.client.js.map +1 -0
  264. package/dist/features/format/underline/feature.server.d.ts +2 -0
  265. package/dist/features/format/underline/feature.server.d.ts.map +1 -0
  266. package/dist/features/format/underline/feature.server.js +11 -0
  267. package/dist/features/format/underline/feature.server.js.map +1 -0
  268. package/dist/features/heading/feature.client.d.ts +6 -0
  269. package/dist/features/heading/feature.client.d.ts.map +1 -0
  270. package/dist/features/heading/feature.client.js +112 -0
  271. package/dist/features/heading/feature.client.js.map +1 -0
  272. package/dist/features/heading/feature.server.d.ts +10 -0
  273. package/dist/features/heading/feature.server.d.ts.map +1 -0
  274. package/dist/features/heading/feature.server.js +59 -0
  275. package/dist/features/heading/feature.server.js.map +1 -0
  276. package/dist/features/heading/i18n.d.ts +3 -0
  277. package/dist/features/heading/i18n.d.ts.map +1 -0
  278. package/dist/features/heading/i18n.js +100 -0
  279. package/dist/features/heading/i18n.js.map +1 -0
  280. package/dist/features/heading/markdownTransformer.d.ts.map +1 -0
  281. package/dist/features/heading/markdownTransformer.js +29 -0
  282. package/dist/features/heading/markdownTransformer.js.map +1 -0
  283. package/dist/features/horizontalRule/component/index.d.ts.map +1 -0
  284. package/dist/features/horizontalRule/component/index.js +67 -0
  285. package/dist/features/horizontalRule/component/index.js.map +1 -0
  286. package/dist/features/horizontalRule/feature.client.d.ts +5 -0
  287. package/dist/features/horizontalRule/feature.client.d.ts.map +1 -0
  288. package/dist/features/horizontalRule/feature.client.js +70 -0
  289. package/dist/features/horizontalRule/feature.client.js.map +1 -0
  290. package/dist/features/horizontalRule/feature.server.d.ts +2 -0
  291. package/dist/features/horizontalRule/feature.server.d.ts.map +1 -0
  292. package/dist/features/horizontalRule/feature.server.js +34 -0
  293. package/dist/features/horizontalRule/feature.server.js.map +1 -0
  294. package/dist/features/horizontalRule/i18n.d.ts +3 -0
  295. package/dist/features/horizontalRule/i18n.d.ts.map +1 -0
  296. package/dist/features/horizontalRule/i18n.js +100 -0
  297. package/dist/features/horizontalRule/i18n.js.map +1 -0
  298. package/dist/features/horizontalRule/markdownTransformer.d.ts.map +1 -0
  299. package/dist/features/horizontalRule/markdownTransformer.js.map +1 -0
  300. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts +56 -0
  301. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +1 -0
  302. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js +92 -0
  303. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js.map +1 -0
  304. package/dist/features/horizontalRule/plugin/index.d.ts +7 -0
  305. package/dist/features/horizontalRule/plugin/index.d.ts.map +1 -0
  306. package/dist/features/horizontalRule/plugin/index.js +30 -0
  307. package/dist/features/horizontalRule/plugin/index.js.map +1 -0
  308. package/dist/features/indent/feature.client.d.ts +5 -0
  309. package/dist/features/indent/feature.client.d.ts.map +1 -0
  310. package/dist/features/indent/feature.client.js +56 -0
  311. package/dist/features/indent/feature.client.js.map +1 -0
  312. package/dist/features/indent/feature.server.d.ts +2 -0
  313. package/dist/features/indent/feature.server.d.ts.map +1 -0
  314. package/dist/features/indent/feature.server.js +13 -0
  315. package/dist/features/indent/feature.server.js.map +1 -0
  316. package/dist/features/indent/i18n.d.ts +3 -0
  317. package/dist/features/indent/i18n.d.ts.map +1 -0
  318. package/dist/features/indent/i18n.js +132 -0
  319. package/dist/features/indent/i18n.js.map +1 -0
  320. package/dist/features/indent/toolbarIndentGroup.d.ts +3 -0
  321. package/dist/features/indent/toolbarIndentGroup.d.ts.map +1 -0
  322. package/dist/features/indent/toolbarIndentGroup.js +10 -0
  323. package/dist/features/indent/toolbarIndentGroup.js.map +1 -0
  324. package/dist/features/link/drawer/baseFields.d.ts +3 -0
  325. package/dist/features/link/drawer/baseFields.d.ts.map +1 -0
  326. package/dist/features/link/drawer/baseFields.js +94 -0
  327. package/dist/features/link/drawer/baseFields.js.map +1 -0
  328. package/dist/features/link/feature.client.d.ts +16 -0
  329. package/dist/features/link/feature.client.d.ts.map +1 -0
  330. package/dist/features/link/feature.client.js +101 -0
  331. package/dist/features/link/feature.client.js.map +1 -0
  332. package/dist/features/link/feature.server.d.ts +35 -0
  333. package/dist/features/link/feature.server.d.ts.map +1 -0
  334. package/dist/features/link/feature.server.js +128 -0
  335. package/dist/features/link/feature.server.js.map +1 -0
  336. package/dist/features/link/graphQLPopulationPromise.d.ts +5 -0
  337. package/dist/features/link/graphQLPopulationPromise.d.ts.map +1 -0
  338. package/dist/features/link/graphQLPopulationPromise.js +31 -0
  339. package/dist/features/link/graphQLPopulationPromise.js.map +1 -0
  340. package/dist/features/link/i18n.d.ts +3 -0
  341. package/dist/features/link/i18n.d.ts.map +1 -0
  342. package/dist/features/link/i18n.js +100 -0
  343. package/dist/features/link/i18n.js.map +1 -0
  344. package/dist/features/link/markdownTransformer.d.ts +6 -0
  345. package/dist/features/link/markdownTransformer.d.ts.map +1 -0
  346. package/dist/features/link/markdownTransformer.js +50 -0
  347. package/dist/features/link/markdownTransformer.js.map +1 -0
  348. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
  349. package/dist/features/link/nodes/AutoLinkNode.js +68 -0
  350. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -0
  351. package/dist/features/link/nodes/LinkNode.d.ts +39 -0
  352. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
  353. package/dist/features/link/nodes/LinkNode.js +317 -0
  354. package/dist/features/link/nodes/LinkNode.js.map +1 -0
  355. package/dist/features/link/nodes/types.d.ts +24 -0
  356. package/dist/features/link/nodes/types.d.ts.map +1 -0
  357. package/dist/features/link/nodes/types.js.map +1 -0
  358. package/dist/features/link/plugins/autoLink/index.d.ts +20 -0
  359. package/dist/features/link/plugins/autoLink/index.d.ts.map +1 -0
  360. package/dist/features/link/plugins/autoLink/index.js +323 -0
  361. package/dist/features/link/plugins/autoLink/index.js.map +1 -0
  362. package/dist/features/link/plugins/clickableLink/index.d.ts +4 -0
  363. package/dist/features/link/plugins/clickableLink/index.d.ts.map +1 -0
  364. package/dist/features/link/plugins/clickableLink/index.js +9 -0
  365. package/dist/features/link/plugins/clickableLink/index.js.map +1 -0
  366. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  367. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +4 -0
  368. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  369. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  370. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +299 -0
  371. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  372. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts +5 -0
  373. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  374. package/dist/features/link/plugins/floatingLinkEditor/index.js +13 -0
  375. package/dist/features/link/plugins/floatingLinkEditor/index.js.map +1 -0
  376. package/dist/features/link/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  377. package/dist/features/link/plugins/floatingLinkEditor/types.js.map +1 -0
  378. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts +9 -0
  379. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -0
  380. package/dist/features/link/plugins/floatingLinkEditor/utilities.js +20 -0
  381. package/dist/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -0
  382. package/dist/features/link/plugins/link/index.d.ts +4 -0
  383. package/dist/features/link/plugins/link/index.d.ts.map +1 -0
  384. package/dist/features/link/plugins/link/index.js +53 -0
  385. package/dist/features/link/plugins/link/index.js.map +1 -0
  386. package/dist/features/link/validate.d.ts +6 -0
  387. package/dist/features/link/validate.d.ts.map +1 -0
  388. package/dist/features/link/validate.js +28 -0
  389. package/dist/features/link/validate.js.map +1 -0
  390. package/dist/features/lists/checklist/feature.client.d.ts +5 -0
  391. package/dist/features/lists/checklist/feature.client.d.ts.map +1 -0
  392. package/dist/features/lists/checklist/feature.client.js +100 -0
  393. package/dist/features/lists/checklist/feature.client.js.map +1 -0
  394. package/dist/features/lists/checklist/feature.server.d.ts +2 -0
  395. package/dist/features/lists/checklist/feature.server.d.ts.map +1 -0
  396. package/dist/features/lists/checklist/feature.server.js +36 -0
  397. package/dist/features/lists/checklist/feature.server.js.map +1 -0
  398. package/dist/features/lists/checklist/i18n.d.ts +3 -0
  399. package/dist/features/lists/checklist/i18n.d.ts.map +1 -0
  400. package/dist/features/lists/checklist/i18n.js +100 -0
  401. package/dist/features/lists/checklist/i18n.js.map +1 -0
  402. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
  403. package/dist/features/lists/checklist/markdownTransformers.js +16 -0
  404. package/dist/features/lists/checklist/markdownTransformers.js.map +1 -0
  405. package/dist/features/lists/checklist/plugin/index.d.ts +3 -0
  406. package/dist/features/lists/checklist/plugin/index.d.ts.map +1 -0
  407. package/dist/features/lists/checklist/plugin/index.js +9 -0
  408. package/dist/features/lists/checklist/plugin/index.js.map +1 -0
  409. package/dist/features/lists/htmlConverter.d.ts +5 -0
  410. package/dist/features/lists/htmlConverter.d.ts.map +1 -0
  411. package/dist/features/lists/htmlConverter.js +56 -0
  412. package/dist/features/lists/htmlConverter.js.map +1 -0
  413. package/dist/features/lists/orderedList/feature.client.d.ts +5 -0
  414. package/dist/features/lists/orderedList/feature.client.d.ts.map +1 -0
  415. package/dist/features/lists/orderedList/feature.client.js +90 -0
  416. package/dist/features/lists/orderedList/feature.client.js.map +1 -0
  417. package/dist/features/lists/orderedList/feature.server.d.ts +2 -0
  418. package/dist/features/lists/orderedList/feature.server.d.ts.map +1 -0
  419. package/dist/features/lists/orderedList/feature.server.js +36 -0
  420. package/dist/features/lists/orderedList/feature.server.js.map +1 -0
  421. package/dist/features/lists/orderedList/i18n.d.ts +3 -0
  422. package/dist/features/lists/orderedList/i18n.d.ts.map +1 -0
  423. package/dist/features/lists/orderedList/i18n.js +100 -0
  424. package/dist/features/lists/orderedList/i18n.js.map +1 -0
  425. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  426. package/dist/features/lists/orderedList/markdownTransformer.js +16 -0
  427. package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -0
  428. package/dist/features/lists/plugin/index.d.ts +13 -0
  429. package/dist/features/lists/plugin/index.d.ts.map +1 -0
  430. package/dist/features/lists/plugin/index.js +9 -0
  431. package/dist/features/lists/plugin/index.js.map +1 -0
  432. package/dist/features/lists/shared/markdown.d.ts +6 -0
  433. package/dist/features/lists/shared/markdown.d.ts.map +1 -0
  434. package/dist/features/lists/shared/markdown.js +58 -0
  435. package/dist/features/lists/shared/markdown.js.map +1 -0
  436. package/dist/features/lists/shared/slashMenuListGroup.d.ts +3 -0
  437. package/dist/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
  438. package/dist/features/lists/shared/slashMenuListGroup.js +11 -0
  439. package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -0
  440. package/dist/features/lists/unorderedList/feature.client.d.ts +5 -0
  441. package/dist/features/lists/unorderedList/feature.client.d.ts.map +1 -0
  442. package/dist/features/lists/unorderedList/feature.client.js +88 -0
  443. package/dist/features/lists/unorderedList/feature.client.js.map +1 -0
  444. package/dist/features/lists/unorderedList/feature.server.d.ts +2 -0
  445. package/dist/features/lists/unorderedList/feature.server.d.ts.map +1 -0
  446. package/dist/features/lists/unorderedList/feature.server.js +34 -0
  447. package/dist/features/lists/unorderedList/feature.server.js.map +1 -0
  448. package/dist/features/lists/unorderedList/i18n.d.ts +3 -0
  449. package/dist/features/lists/unorderedList/i18n.d.ts.map +1 -0
  450. package/dist/features/lists/unorderedList/i18n.js +100 -0
  451. package/dist/features/lists/unorderedList/i18n.js.map +1 -0
  452. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  453. package/dist/features/lists/unorderedList/markdownTransformer.js +16 -0
  454. package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  455. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +5 -0
  456. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +1 -0
  457. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +1 -0
  458. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  459. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -0
  460. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +1 -0
  461. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +8 -0
  462. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +1 -0
  463. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +5 -0
  464. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +1 -0
  465. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +1 -0
  466. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
  467. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -0
  468. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +1 -0
  469. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +8 -0
  470. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +1 -0
  471. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +5 -0
  472. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +1 -0
  473. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +1 -0
  474. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
  475. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -0
  476. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +1 -0
  477. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +8 -0
  478. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +1 -0
  479. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +5 -0
  480. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  481. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +1 -0
  482. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  483. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -0
  484. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  485. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +8 -0
  486. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +1 -0
  487. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +5 -0
  488. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +1 -0
  489. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +1 -0
  490. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
  491. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -0
  492. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +1 -0
  493. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +8 -0
  494. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +1 -0
  495. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +5 -0
  496. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  497. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +1 -0
  498. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  499. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -0
  500. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  501. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +8 -0
  502. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +1 -0
  503. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +5 -0
  504. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +1 -0
  505. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +1 -0
  506. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  507. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +23 -0
  508. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -0
  509. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +1 -0
  510. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +8 -0
  511. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +1 -0
  512. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
  513. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -0
  514. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
  515. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -0
  516. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +31 -0
  517. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
  518. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -0
  519. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +5 -0
  520. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
  521. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +27 -0
  522. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -0
  523. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +8 -0
  524. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
  525. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +45 -0
  526. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -0
  527. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  528. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  529. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  530. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  531. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  532. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +69 -0
  533. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  534. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +5 -0
  535. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +1 -0
  536. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js +6 -0
  537. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +1 -0
  538. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
  539. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -0
  540. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +1 -0
  541. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js +8 -0
  542. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +1 -0
  543. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +5 -0
  544. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +1 -0
  545. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js.map +1 -0
  546. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  547. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -0
  548. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +1 -0
  549. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js +8 -0
  550. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js.map +1 -0
  551. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +5 -0
  552. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +1 -0
  553. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js.map +1 -0
  554. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
  555. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -0
  556. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +1 -0
  557. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js +8 -0
  558. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js.map +1 -0
  559. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts +5 -0
  560. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +1 -0
  561. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js.map +1 -0
  562. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
  563. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -0
  564. package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +1 -0
  565. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js +8 -0
  566. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js.map +1 -0
  567. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +5 -0
  568. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  569. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +1 -0
  570. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  571. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -0
  572. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  573. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js +8 -0
  574. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +1 -0
  575. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +5 -0
  576. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +1 -0
  577. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +1 -0
  578. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
  579. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -0
  580. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +1 -0
  581. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js +8 -0
  582. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +1 -0
  583. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +5 -0
  584. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +1 -0
  585. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +1 -0
  586. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
  587. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +16 -0
  588. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -0
  589. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +1 -0
  590. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js +8 -0
  591. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +1 -0
  592. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +5 -0
  593. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  594. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +1 -0
  595. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  596. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -0
  597. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  598. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js +8 -0
  599. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +1 -0
  600. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +5 -0
  601. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +1 -0
  602. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +1 -0
  603. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
  604. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -0
  605. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +1 -0
  606. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +8 -0
  607. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +1 -0
  608. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +5 -0
  609. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +1 -0
  610. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js.map +1 -0
  611. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  612. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +19 -0
  613. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -0
  614. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +1 -0
  615. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js +8 -0
  616. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js.map +1 -0
  617. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
  618. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -0
  619. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
  620. package/dist/features/migrations/slateToLexical/converter/index.js +108 -0
  621. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -0
  622. package/dist/features/migrations/slateToLexical/converter/types.d.ts +25 -0
  623. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
  624. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -0
  625. package/dist/features/migrations/slateToLexical/feature.client.d.ts +5 -0
  626. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
  627. package/dist/features/migrations/slateToLexical/feature.client.js +27 -0
  628. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -0
  629. package/dist/features/migrations/slateToLexical/feature.server.d.ts +10 -0
  630. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
  631. package/dist/features/migrations/slateToLexical/feature.server.js +47 -0
  632. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -0
  633. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  634. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  635. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  636. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  637. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  638. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +69 -0
  639. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  640. package/dist/features/paragraph/feature.client.d.ts +5 -0
  641. package/dist/features/paragraph/feature.client.d.ts.map +1 -0
  642. package/dist/features/paragraph/feature.client.js +71 -0
  643. package/dist/features/paragraph/feature.client.js.map +1 -0
  644. package/dist/features/paragraph/feature.server.d.ts +2 -0
  645. package/dist/features/paragraph/feature.server.d.ts.map +1 -0
  646. package/dist/features/paragraph/feature.server.js +14 -0
  647. package/dist/features/paragraph/feature.server.js.map +1 -0
  648. package/dist/features/paragraph/i18n.d.ts +3 -0
  649. package/dist/features/paragraph/i18n.d.ts.map +1 -0
  650. package/dist/features/paragraph/i18n.js +132 -0
  651. package/dist/features/paragraph/i18n.js.map +1 -0
  652. package/dist/features/relationship/drawer/commands.d.ts.map +1 -0
  653. package/dist/features/relationship/drawer/commands.js +4 -0
  654. package/dist/features/relationship/drawer/commands.js.map +1 -0
  655. package/dist/features/relationship/drawer/index.d.ts.map +1 -0
  656. package/dist/features/relationship/drawer/index.js +83 -0
  657. package/dist/features/relationship/drawer/index.js.map +1 -0
  658. package/dist/features/relationship/feature.client.d.ts +18 -0
  659. package/dist/features/relationship/feature.client.d.ts.map +1 -0
  660. package/dist/features/relationship/feature.client.js +72 -0
  661. package/dist/features/relationship/feature.client.js.map +1 -0
  662. package/dist/features/relationship/feature.server.d.ts +27 -0
  663. package/dist/features/relationship/feature.server.d.ts.map +1 -0
  664. package/dist/features/relationship/feature.server.js +55 -0
  665. package/dist/features/relationship/feature.server.js.map +1 -0
  666. package/dist/features/relationship/graphQLPopulationPromise.d.ts +5 -0
  667. package/dist/features/relationship/graphQLPopulationPromise.d.ts.map +1 -0
  668. package/dist/features/relationship/graphQLPopulationPromise.js +29 -0
  669. package/dist/features/relationship/graphQLPopulationPromise.js.map +1 -0
  670. package/dist/features/relationship/i18n.d.ts +3 -0
  671. package/dist/features/relationship/i18n.d.ts.map +1 -0
  672. package/dist/features/relationship/i18n.js +100 -0
  673. package/dist/features/relationship/i18n.js.map +1 -0
  674. package/dist/features/relationship/nodes/RelationshipNode.d.ts +35 -0
  675. package/dist/features/relationship/nodes/RelationshipNode.d.ts.map +1 -0
  676. package/dist/features/relationship/nodes/RelationshipNode.js +111 -0
  677. package/dist/features/relationship/nodes/RelationshipNode.js.map +1 -0
  678. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts +13 -0
  679. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -0
  680. package/dist/features/relationship/nodes/components/RelationshipComponent.js +171 -0
  681. package/dist/features/relationship/nodes/components/RelationshipComponent.js.map +1 -0
  682. package/dist/features/relationship/plugins/index.d.ts +7 -0
  683. package/dist/features/relationship/plugins/index.d.ts.map +1 -0
  684. package/dist/features/relationship/plugins/index.js +50 -0
  685. package/dist/features/relationship/plugins/index.js.map +1 -0
  686. package/dist/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  687. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js +33 -0
  688. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js.map +1 -0
  689. package/dist/features/shared/slashMenu/basicGroup.d.ts +3 -0
  690. package/dist/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
  691. package/dist/features/shared/slashMenu/basicGroup.js +11 -0
  692. package/dist/features/shared/slashMenu/basicGroup.js.map +1 -0
  693. package/dist/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
  694. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  695. package/dist/features/shared/toolbar/addDropdownGroup.js +12 -0
  696. package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  697. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
  698. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  699. package/dist/features/shared/toolbar/featureButtonsGroup.js +10 -0
  700. package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  701. package/dist/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
  702. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  703. package/dist/features/shared/toolbar/textDropdownGroup.js +12 -0
  704. package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  705. package/dist/features/toolbars/fixed/Toolbar/index.d.ts +5 -0
  706. package/dist/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -0
  707. package/dist/features/toolbars/fixed/Toolbar/index.js +207 -0
  708. package/dist/features/toolbars/fixed/Toolbar/index.js.map +1 -0
  709. package/dist/features/toolbars/fixed/feature.client.d.ts +6 -0
  710. package/dist/features/toolbars/fixed/feature.client.d.ts.map +1 -0
  711. package/dist/features/toolbars/fixed/feature.client.js +13 -0
  712. package/dist/features/toolbars/fixed/feature.client.js.map +1 -0
  713. package/dist/features/toolbars/fixed/feature.server.d.ts +18 -0
  714. package/dist/features/toolbars/fixed/feature.server.d.ts.map +1 -0
  715. package/dist/features/toolbars/fixed/feature.server.js +19 -0
  716. package/dist/features/toolbars/fixed/feature.server.js.map +1 -0
  717. package/dist/features/toolbars/inline/Toolbar/index.d.ts +4 -0
  718. package/dist/features/toolbars/inline/Toolbar/index.d.ts.map +1 -0
  719. package/dist/features/toolbars/inline/Toolbar/index.js +319 -0
  720. package/dist/features/toolbars/inline/Toolbar/index.js.map +1 -0
  721. package/dist/features/toolbars/inline/feature.client.d.ts +5 -0
  722. package/dist/features/toolbars/inline/feature.client.d.ts.map +1 -0
  723. package/dist/features/toolbars/inline/feature.client.js +13 -0
  724. package/dist/features/toolbars/inline/feature.client.js.map +1 -0
  725. package/dist/features/toolbars/inline/feature.server.d.ts +2 -0
  726. package/dist/features/toolbars/inline/feature.server.d.ts.map +1 -0
  727. package/dist/features/toolbars/inline/feature.server.js +11 -0
  728. package/dist/features/toolbars/inline/feature.server.js.map +1 -0
  729. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
  730. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  731. package/dist/features/toolbars/shared/ToolbarButton/index.js +108 -0
  732. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  733. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +22 -0
  734. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  735. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +223 -0
  736. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  737. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +23 -0
  738. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  739. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +141 -0
  740. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  741. package/dist/features/toolbars/types.d.ts +80 -0
  742. package/dist/features/toolbars/types.d.ts.map +1 -0
  743. package/dist/features/toolbars/types.js.map +1 -0
  744. package/dist/features/typeUtilities.d.ts +8 -0
  745. package/dist/features/typeUtilities.d.ts.map +1 -0
  746. package/dist/features/typeUtilities.js +8 -0
  747. package/dist/features/typeUtilities.js.map +1 -0
  748. package/dist/features/typesClient.d.ts +186 -0
  749. package/dist/features/typesClient.d.ts.map +1 -0
  750. package/dist/features/typesClient.js +3 -0
  751. package/dist/features/typesClient.js.map +1 -0
  752. package/dist/features/typesServer.d.ts +315 -0
  753. package/dist/features/typesServer.d.ts.map +1 -0
  754. package/dist/features/typesServer.js +3 -0
  755. package/dist/features/typesServer.js.map +1 -0
  756. package/dist/features/upload/component/index.d.ts.map +1 -0
  757. package/dist/features/upload/component/index.js +242 -0
  758. package/dist/features/upload/component/index.js.map +1 -0
  759. package/dist/features/upload/drawer/commands.d.ts.map +1 -0
  760. package/dist/features/upload/drawer/commands.js +5 -0
  761. package/dist/features/upload/drawer/commands.js.map +1 -0
  762. package/dist/features/upload/drawer/index.d.ts.map +1 -0
  763. package/dist/features/upload/drawer/index.js +77 -0
  764. package/dist/features/upload/drawer/index.js.map +1 -0
  765. package/dist/features/upload/feature.client.d.ts +12 -0
  766. package/dist/features/upload/feature.client.d.ts.map +1 -0
  767. package/dist/features/upload/feature.client.js +74 -0
  768. package/dist/features/upload/feature.client.js.map +1 -0
  769. package/dist/features/upload/feature.server.d.ts +18 -0
  770. package/dist/features/upload/feature.server.d.ts.map +1 -0
  771. package/dist/features/upload/feature.server.js +184 -0
  772. package/dist/features/upload/feature.server.js.map +1 -0
  773. package/dist/features/upload/graphQLPopulationPromise.d.ts +5 -0
  774. package/dist/features/upload/graphQLPopulationPromise.d.ts.map +1 -0
  775. package/dist/features/upload/graphQLPopulationPromise.js +52 -0
  776. package/dist/features/upload/graphQLPopulationPromise.js.map +1 -0
  777. package/dist/features/upload/i18n.d.ts +3 -0
  778. package/dist/features/upload/i18n.d.ts.map +1 -0
  779. package/dist/features/upload/i18n.js +100 -0
  780. package/dist/features/upload/i18n.js.map +1 -0
  781. package/dist/features/upload/nodes/UploadNode.d.ts +39 -0
  782. package/dist/features/upload/nodes/UploadNode.d.ts.map +1 -0
  783. package/dist/features/upload/nodes/UploadNode.js +131 -0
  784. package/dist/features/upload/nodes/UploadNode.js.map +1 -0
  785. package/dist/features/upload/plugin/index.d.ts +8 -0
  786. package/dist/features/upload/plugin/index.d.ts.map +1 -0
  787. package/dist/features/upload/plugin/index.js +53 -0
  788. package/dist/features/upload/plugin/index.js.map +1 -0
  789. package/dist/features/upload/validate.d.ts +5 -0
  790. package/dist/features/upload/validate.d.ts.map +1 -0
  791. package/dist/features/upload/validate.js +44 -0
  792. package/dist/features/upload/validate.js.map +1 -0
  793. package/dist/field/Field.d.ts +5 -6
  794. package/dist/field/Field.d.ts.map +1 -1
  795. package/dist/field/Field.js +71 -56
  796. package/dist/field/Field.js.map +1 -1
  797. package/dist/field/bundled.css +0 -0
  798. package/dist/field/index.d.ts +6 -4
  799. package/dist/field/index.d.ts.map +1 -1
  800. package/dist/field/index.js +37 -86
  801. package/dist/field/index.js.map +1 -1
  802. package/dist/i18n.d.ts +3 -0
  803. package/dist/i18n.d.ts.map +1 -0
  804. package/dist/i18n.js +164 -0
  805. package/dist/i18n.js.map +1 -0
  806. package/dist/index.d.ts +76 -84
  807. package/dist/index.d.ts.map +1 -1
  808. package/dist/index.js +673 -251
  809. package/dist/index.js.map +1 -1
  810. package/dist/lexical/EditorPlugin.d.ts +8 -0
  811. package/dist/lexical/EditorPlugin.d.ts.map +1 -0
  812. package/dist/lexical/EditorPlugin.js +15 -0
  813. package/dist/lexical/EditorPlugin.js.map +1 -0
  814. package/dist/lexical/LexicalEditor.d.ts +7 -0
  815. package/dist/lexical/LexicalEditor.d.ts.map +1 -0
  816. package/dist/lexical/LexicalEditor.js +192 -0
  817. package/dist/lexical/LexicalEditor.js.map +1 -0
  818. package/dist/lexical/LexicalProvider.d.ts +18 -0
  819. package/dist/lexical/LexicalProvider.d.ts.map +1 -0
  820. package/dist/lexical/LexicalProvider.js +98 -0
  821. package/dist/lexical/LexicalProvider.js.map +1 -0
  822. package/dist/lexical/config/client/EditorConfigProvider.d.ts +35 -0
  823. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
  824. package/dist/lexical/config/client/EditorConfigProvider.js +91 -0
  825. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -0
  826. package/dist/lexical/config/client/default.d.ts +3 -0
  827. package/dist/lexical/config/client/default.d.ts.map +1 -0
  828. package/dist/lexical/config/client/default.js.map +1 -0
  829. package/dist/lexical/config/client/loader.d.ts +12 -0
  830. package/dist/lexical/config/client/loader.d.ts.map +1 -0
  831. package/dist/lexical/config/client/loader.js +46 -0
  832. package/dist/lexical/config/client/loader.js.map +1 -0
  833. package/dist/lexical/config/client/sanitize.d.ts +7 -0
  834. package/dist/lexical/config/client/sanitize.d.ts.map +1 -0
  835. package/dist/lexical/config/client/sanitize.js +180 -0
  836. package/dist/lexical/config/client/sanitize.js.map +1 -0
  837. package/dist/lexical/config/server/default.d.ts +7 -0
  838. package/dist/lexical/config/server/default.d.ts.map +1 -0
  839. package/dist/lexical/config/server/default.js +53 -0
  840. package/dist/lexical/config/server/default.js.map +1 -0
  841. package/dist/lexical/config/server/loader.d.ts +10 -0
  842. package/dist/lexical/config/server/loader.d.ts.map +1 -0
  843. package/dist/lexical/config/server/loader.js +120 -0
  844. package/dist/lexical/config/server/loader.js.map +1 -0
  845. package/dist/lexical/config/server/sanitize.d.ts +6 -0
  846. package/dist/lexical/config/server/sanitize.d.ts.map +1 -0
  847. package/dist/lexical/config/server/sanitize.js +95 -0
  848. package/dist/lexical/config/server/sanitize.js.map +1 -0
  849. package/dist/lexical/config/types.d.ts +24 -0
  850. package/dist/lexical/config/types.d.ts.map +1 -0
  851. package/dist/lexical/config/types.js.map +1 -0
  852. package/dist/lexical/nodes/index.d.ts +6 -0
  853. package/dist/lexical/nodes/index.d.ts.map +1 -0
  854. package/dist/lexical/nodes/index.js.map +1 -0
  855. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -0
  856. package/dist/lexical/plugins/MarkdownShortcut/index.js +13 -0
  857. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -0
  858. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +32 -0
  859. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
  860. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +399 -0
  861. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
  862. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +24 -0
  863. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
  864. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +186 -0
  865. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
  866. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +46 -0
  867. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -0
  868. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -0
  869. package/dist/lexical/plugins/SlashMenu/index.d.ts +6 -0
  870. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -0
  871. package/dist/lexical/plugins/SlashMenu/index.js +189 -0
  872. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -0
  873. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -0
  874. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -0
  875. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +6 -0
  876. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -0
  877. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +157 -0
  878. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -0
  879. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -0
  880. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -0
  881. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -0
  882. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -0
  883. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +3 -0
  884. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -0
  885. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -0
  886. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +6 -0
  887. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -0
  888. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +342 -0
  889. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -0
  890. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +9 -0
  891. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -0
  892. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +116 -0
  893. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -0
  894. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +5 -0
  895. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
  896. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +21 -0
  897. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
  898. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -0
  899. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -0
  900. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -0
  901. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -0
  902. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts +31 -0
  903. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
  904. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +138 -0
  905. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
  906. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -0
  907. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +6 -0
  908. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -0
  909. package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -0
  910. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -0
  911. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -0
  912. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +29 -0
  913. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -0
  914. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
  915. package/dist/lexical/theme/EditorTheme.js +106 -0
  916. package/dist/lexical/theme/EditorTheme.js.map +1 -0
  917. package/dist/lexical/ui/ContentEditable.d.ts +6 -0
  918. package/dist/lexical/ui/ContentEditable.d.ts.map +1 -0
  919. package/dist/lexical/ui/ContentEditable.js +10 -0
  920. package/dist/lexical/ui/ContentEditable.js.map +1 -0
  921. package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -0
  922. package/dist/lexical/ui/icons/AI/index.js +36 -0
  923. package/dist/lexical/ui/icons/AI/index.js.map +1 -0
  924. package/dist/lexical/ui/icons/Add/index.d.ts +3 -0
  925. package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -0
  926. package/dist/lexical/ui/icons/Add/index.js +21 -0
  927. package/dist/lexical/ui/icons/Add/index.js.map +1 -0
  928. package/dist/lexical/ui/icons/Add/light.svg +4 -0
  929. package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -0
  930. package/dist/lexical/ui/icons/AlignCenter/index.js +31 -0
  931. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -0
  932. package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -0
  933. package/dist/lexical/ui/icons/AlignJustify/index.js +31 -0
  934. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -0
  935. package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -0
  936. package/dist/lexical/ui/icons/AlignLeft/index.js +31 -0
  937. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -0
  938. package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -0
  939. package/dist/lexical/ui/icons/AlignRight/index.js +31 -0
  940. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -0
  941. package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -0
  942. package/dist/lexical/ui/icons/Block/index.js +40 -0
  943. package/dist/lexical/ui/icons/Block/index.js.map +1 -0
  944. package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -0
  945. package/dist/lexical/ui/icons/Blockquote/index.js +18 -0
  946. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -0
  947. package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -0
  948. package/dist/lexical/ui/icons/Bold/index.js +18 -0
  949. package/dist/lexical/ui/icons/Bold/index.js.map +1 -0
  950. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -0
  951. package/dist/lexical/ui/icons/Checklist/index.js +29 -0
  952. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -0
  953. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -0
  954. package/dist/lexical/ui/icons/Code/index.js +24 -0
  955. package/dist/lexical/ui/icons/Code/index.js.map +1 -0
  956. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -0
  957. package/dist/lexical/ui/icons/CodeBlock/index.js +24 -0
  958. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -0
  959. package/dist/lexical/ui/icons/DraggableBlock/light.svg +9 -0
  960. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -0
  961. package/dist/lexical/ui/icons/H1/index.js +18 -0
  962. package/dist/lexical/ui/icons/H1/index.js.map +1 -0
  963. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -0
  964. package/dist/lexical/ui/icons/H2/index.js +18 -0
  965. package/dist/lexical/ui/icons/H2/index.js.map +1 -0
  966. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -0
  967. package/dist/lexical/ui/icons/H3/index.js +18 -0
  968. package/dist/lexical/ui/icons/H3/index.js.map +1 -0
  969. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -0
  970. package/dist/lexical/ui/icons/H4/index.js +18 -0
  971. package/dist/lexical/ui/icons/H4/index.js.map +1 -0
  972. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -0
  973. package/dist/lexical/ui/icons/H5/index.js +18 -0
  974. package/dist/lexical/ui/icons/H5/index.js.map +1 -0
  975. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -0
  976. package/dist/lexical/ui/icons/H6/index.js +18 -0
  977. package/dist/lexical/ui/icons/H6/index.js.map +1 -0
  978. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -0
  979. package/dist/lexical/ui/icons/HorizontalRule/index.js +21 -0
  980. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -0
  981. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -0
  982. package/dist/lexical/ui/icons/IndentDecrease/index.js +35 -0
  983. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -0
  984. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
  985. package/dist/lexical/ui/icons/IndentIncrease/index.js +35 -0
  986. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -0
  987. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -0
  988. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -0
  989. package/dist/lexical/ui/icons/InlineBlocks/index.js +20 -0
  990. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -0
  991. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -0
  992. package/dist/lexical/ui/icons/Italic/index.js +18 -0
  993. package/dist/lexical/ui/icons/Italic/index.js.map +1 -0
  994. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
  995. package/dist/lexical/ui/icons/Link/index.js +19 -0
  996. package/dist/lexical/ui/icons/Link/index.js.map +1 -0
  997. package/dist/lexical/ui/icons/Meatballs/index.d.ts +3 -0
  998. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -0
  999. package/dist/lexical/ui/icons/Meatballs/index.js +25 -0
  1000. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -0
  1001. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -0
  1002. package/dist/lexical/ui/icons/OrderedList/index.js +39 -0
  1003. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -0
  1004. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -0
  1005. package/dist/lexical/ui/icons/Relationship/index.js +36 -0
  1006. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -0
  1007. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -0
  1008. package/dist/lexical/ui/icons/Strikethrough/index.js +24 -0
  1009. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -0
  1010. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -0
  1011. package/dist/lexical/ui/icons/Subscript/index.js +18 -0
  1012. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -0
  1013. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -0
  1014. package/dist/lexical/ui/icons/Superscript/index.js +18 -0
  1015. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -0
  1016. package/dist/lexical/ui/icons/Table/index.d.ts +3 -0
  1017. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -0
  1018. package/dist/lexical/ui/icons/Table/index.js +19 -0
  1019. package/dist/lexical/ui/icons/Table/index.js.map +1 -0
  1020. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -0
  1021. package/dist/lexical/ui/icons/Text/index.js +18 -0
  1022. package/dist/lexical/ui/icons/Text/index.js.map +1 -0
  1023. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -0
  1024. package/dist/lexical/ui/icons/Underline/index.js +24 -0
  1025. package/dist/lexical/ui/icons/Underline/index.js.map +1 -0
  1026. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -0
  1027. package/dist/lexical/ui/icons/UnorderedList/index.js +55 -0
  1028. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -0
  1029. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -0
  1030. package/dist/lexical/ui/icons/Upload/index.js +34 -0
  1031. package/dist/lexical/ui/icons/Upload/index.js.map +1 -0
  1032. package/dist/lexical/utils/canUseDOM.d.ts.map +1 -0
  1033. package/dist/lexical/utils/canUseDOM.js.map +1 -0
  1034. package/dist/lexical/utils/environment.d.ts.map +1 -0
  1035. package/dist/lexical/utils/environment.js.map +1 -0
  1036. package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -0
  1037. package/dist/lexical/utils/getDOMRangeRect.js.map +1 -0
  1038. package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -0
  1039. package/dist/lexical/utils/getSelectedNode.js +17 -0
  1040. package/dist/lexical/utils/getSelectedNode.js.map +1 -0
  1041. package/dist/lexical/utils/guard.d.ts.map +1 -0
  1042. package/dist/lexical/utils/guard.js.map +1 -0
  1043. package/dist/lexical/utils/invariant.d.ts.map +1 -0
  1044. package/dist/lexical/utils/invariant.js.map +1 -0
  1045. package/dist/lexical/utils/joinClasses.d.ts.map +1 -0
  1046. package/dist/lexical/utils/joinClasses.js.map +1 -0
  1047. package/dist/lexical/utils/markdown/createBlockNode.d.ts +4 -0
  1048. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -0
  1049. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -0
  1050. package/dist/lexical/utils/nodeFormat.d.ts +41 -0
  1051. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -0
  1052. package/dist/lexical/utils/nodeFormat.js +88 -0
  1053. package/dist/lexical/utils/nodeFormat.js.map +1 -0
  1054. package/dist/lexical/utils/point.d.ts.map +1 -0
  1055. package/dist/lexical/utils/point.js.map +1 -0
  1056. package/dist/lexical/utils/rect.d.ts.map +1 -0
  1057. package/dist/lexical/utils/rect.js.map +1 -0
  1058. package/dist/lexical/utils/setFloatingElemPosition.d.ts +12 -0
  1059. package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -0
  1060. package/dist/lexical/utils/setFloatingElemPosition.js +56 -0
  1061. package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -0
  1062. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
  1063. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  1064. package/dist/lexical/utils/swipe.d.ts.map +1 -0
  1065. package/dist/lexical/utils/swipe.js.map +1 -0
  1066. package/dist/lexical/utils/url.d.ts.map +1 -0
  1067. package/dist/lexical/utils/url.js +36 -0
  1068. package/dist/lexical/utils/url.js.map +1 -0
  1069. package/dist/nodeTypes.d.ts +30 -0
  1070. package/dist/nodeTypes.d.ts.map +1 -0
  1071. package/dist/nodeTypes.js +3 -0
  1072. package/dist/nodeTypes.js.map +1 -0
  1073. package/dist/populateGraphQL/defaultValue.d.ts +3 -0
  1074. package/dist/populateGraphQL/defaultValue.d.ts.map +1 -0
  1075. package/dist/populateGraphQL/defaultValue.js +32 -0
  1076. package/dist/populateGraphQL/defaultValue.js.map +1 -0
  1077. package/dist/populateGraphQL/populate.d.ts +17 -0
  1078. package/dist/populateGraphQL/populate.d.ts.map +1 -0
  1079. package/dist/populateGraphQL/populate.js +28 -0
  1080. package/dist/populateGraphQL/populate.js.map +1 -0
  1081. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +12 -0
  1082. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -0
  1083. package/dist/populateGraphQL/populateLexicalPopulationPromises.js +37 -0
  1084. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -0
  1085. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +28 -0
  1086. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -0
  1087. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +28 -0
  1088. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -0
  1089. package/dist/types.d.ts +52 -15
  1090. package/dist/types.d.ts.map +1 -1
  1091. package/dist/types.js.map +1 -1
  1092. package/dist/utilities/createClientFeature.d.ts +13 -0
  1093. package/dist/utilities/createClientFeature.d.ts.map +1 -0
  1094. package/dist/utilities/createClientFeature.js +30 -0
  1095. package/dist/utilities/createClientFeature.js.map +1 -0
  1096. package/dist/utilities/createServerFeature.d.ts +16 -0
  1097. package/dist/utilities/createServerFeature.d.ts.map +1 -0
  1098. package/dist/utilities/createServerFeature.js +34 -0
  1099. package/dist/utilities/createServerFeature.js.map +1 -0
  1100. package/dist/utilities/fieldsDrawer/Drawer.d.ts +18 -0
  1101. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -0
  1102. package/dist/utilities/fieldsDrawer/Drawer.js +26 -0
  1103. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -0
  1104. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -0
  1105. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -0
  1106. package/dist/utilities/fieldsDrawer/DrawerContent.js +90 -0
  1107. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -0
  1108. package/dist/utilities/forEachNodeRecursively.d.ts +10 -0
  1109. package/dist/utilities/forEachNodeRecursively.d.ts.map +1 -0
  1110. package/dist/utilities/forEachNodeRecursively.js +24 -0
  1111. package/dist/utilities/forEachNodeRecursively.js.map +1 -0
  1112. package/dist/utilities/generateComponentMap.d.ts +6 -0
  1113. package/dist/utilities/generateComponentMap.d.ts.map +1 -0
  1114. package/dist/utilities/generateComponentMap.js +77 -0
  1115. package/dist/utilities/generateComponentMap.js.map +1 -0
  1116. package/dist/utilities/generateSchemaMap.d.ts +6 -0
  1117. package/dist/utilities/generateSchemaMap.d.ts.map +1 -0
  1118. package/dist/utilities/generateSchemaMap.js +31 -0
  1119. package/dist/utilities/generateSchemaMap.js.map +1 -0
  1120. package/dist/utilities/migrateSlateToLexical/index.d.ts +15 -0
  1121. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +1 -0
  1122. package/dist/utilities/migrateSlateToLexical/index.js +105 -0
  1123. package/dist/utilities/migrateSlateToLexical/index.js.map +1 -0
  1124. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +9 -0
  1125. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -0
  1126. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +77 -0
  1127. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -0
  1128. package/dist/utilities/recurseNodeTree.d.ts +9 -0
  1129. package/dist/utilities/recurseNodeTree.d.ts.map +1 -0
  1130. package/dist/utilities/recurseNodeTree.js +27 -0
  1131. package/dist/utilities/recurseNodeTree.js.map +1 -0
  1132. package/dist/utilities/upgradeLexicalData/index.d.ts +11 -0
  1133. package/dist/utilities/upgradeLexicalData/index.d.ts.map +1 -0
  1134. package/dist/utilities/upgradeLexicalData/index.js +101 -0
  1135. package/dist/utilities/upgradeLexicalData/index.js.map +1 -0
  1136. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts +9 -0
  1137. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -0
  1138. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +74 -0
  1139. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -0
  1140. package/dist/utilities/useLexicalFeature.d.ts +3 -0
  1141. package/dist/utilities/useLexicalFeature.d.ts.map +1 -0
  1142. package/dist/utilities/useLexicalFeature.js +12 -0
  1143. package/dist/utilities/useLexicalFeature.js.map +1 -0
  1144. package/dist/validate/index.d.ts +3 -3
  1145. package/dist/validate/index.d.ts.map +1 -1
  1146. package/dist/validate/index.js +3 -2
  1147. package/dist/validate/index.js.map +1 -1
  1148. package/dist/validate/validateNodes.d.ts +2 -2
  1149. package/dist/validate/validateNodes.d.ts.map +1 -1
  1150. package/dist/validate/validateNodes.js +1 -1
  1151. package/dist/validate/validateNodes.js.map +1 -1
  1152. package/package.json +75 -56
  1153. package/dist/exports/components.d.ts +0 -6
  1154. package/dist/exports/components.d.ts.map +0 -1
  1155. package/dist/exports/components.js +0 -7
  1156. package/dist/exports/components.js.map +0 -1
  1157. package/dist/field/features/align/feature.client.d.ts +0 -3
  1158. package/dist/field/features/align/feature.client.d.ts.map +0 -1
  1159. package/dist/field/features/align/feature.client.js +0 -72
  1160. package/dist/field/features/align/feature.client.js.map +0 -1
  1161. package/dist/field/features/align/feature.server.d.ts +0 -3
  1162. package/dist/field/features/align/feature.server.d.ts.map +0 -1
  1163. package/dist/field/features/align/feature.server.js +0 -16
  1164. package/dist/field/features/align/feature.server.js.map +0 -1
  1165. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts +0 -3
  1166. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +0 -1
  1167. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +0 -12
  1168. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js.map +0 -1
  1169. package/dist/field/features/blockquote/feature.client.d.ts +0 -3
  1170. package/dist/field/features/blockquote/feature.client.d.ts.map +0 -1
  1171. package/dist/field/features/blockquote/feature.client.js +0 -70
  1172. package/dist/field/features/blockquote/feature.client.js.map +0 -1
  1173. package/dist/field/features/blockquote/feature.server.d.ts +0 -3
  1174. package/dist/field/features/blockquote/feature.server.d.ts.map +0 -1
  1175. package/dist/field/features/blockquote/feature.server.js +0 -47
  1176. package/dist/field/features/blockquote/feature.server.js.map +0 -1
  1177. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +0 -1
  1178. package/dist/field/features/blockquote/markdownTransformer.js +0 -42
  1179. package/dist/field/features/blockquote/markdownTransformer.js.map +0 -1
  1180. package/dist/field/features/blocks/component/BlockContent.d.ts +0 -27
  1181. package/dist/field/features/blocks/component/BlockContent.d.ts.map +0 -1
  1182. package/dist/field/features/blocks/component/BlockContent.js +0 -183
  1183. package/dist/field/features/blocks/component/BlockContent.js.map +0 -1
  1184. package/dist/field/features/blocks/component/FormSavePlugin.d.ts +0 -12
  1185. package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
  1186. package/dist/field/features/blocks/component/FormSavePlugin.js +0 -29
  1187. package/dist/field/features/blocks/component/FormSavePlugin.js.map +0 -1
  1188. package/dist/field/features/blocks/component/index.d.ts +0 -16
  1189. package/dist/field/features/blocks/component/index.d.ts.map +0 -1
  1190. package/dist/field/features/blocks/component/index.js +0 -128
  1191. package/dist/field/features/blocks/component/index.js.map +0 -1
  1192. package/dist/field/features/blocks/component/index.scss +0 -153
  1193. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts +0 -11
  1194. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
  1195. package/dist/field/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
  1196. package/dist/field/features/blocks/drawer/index.d.ts +0 -9
  1197. package/dist/field/features/blocks/drawer/index.d.ts.map +0 -1
  1198. package/dist/field/features/blocks/drawer/index.js +0 -84
  1199. package/dist/field/features/blocks/drawer/index.js.map +0 -1
  1200. package/dist/field/features/blocks/feature.client.d.ts +0 -7
  1201. package/dist/field/features/blocks/feature.client.d.ts.map +0 -1
  1202. package/dist/field/features/blocks/feature.client.js +0 -61
  1203. package/dist/field/features/blocks/feature.client.js.map +0 -1
  1204. package/dist/field/features/blocks/feature.server.d.ts +0 -11
  1205. package/dist/field/features/blocks/feature.server.d.ts.map +0 -1
  1206. package/dist/field/features/blocks/feature.server.js +0 -127
  1207. package/dist/field/features/blocks/feature.server.js.map +0 -1
  1208. package/dist/field/features/blocks/nodes/BlocksNode.d.ts +0 -38
  1209. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
  1210. package/dist/field/features/blocks/nodes/BlocksNode.js +0 -92
  1211. package/dist/field/features/blocks/nodes/BlocksNode.js.map +0 -1
  1212. package/dist/field/features/blocks/plugin/commands.d.ts +0 -4
  1213. package/dist/field/features/blocks/plugin/commands.d.ts.map +0 -1
  1214. package/dist/field/features/blocks/plugin/commands.js +0 -5
  1215. package/dist/field/features/blocks/plugin/commands.js.map +0 -1
  1216. package/dist/field/features/blocks/plugin/index.d.ts +0 -5
  1217. package/dist/field/features/blocks/plugin/index.d.ts.map +0 -1
  1218. package/dist/field/features/blocks/plugin/index.js +0 -43
  1219. package/dist/field/features/blocks/plugin/index.js.map +0 -1
  1220. package/dist/field/features/blocks/populationPromise.d.ts +0 -5
  1221. package/dist/field/features/blocks/populationPromise.d.ts.map +0 -1
  1222. package/dist/field/features/blocks/populationPromise.js +0 -46
  1223. package/dist/field/features/blocks/populationPromise.js.map +0 -1
  1224. package/dist/field/features/blocks/validate.d.ts +0 -5
  1225. package/dist/field/features/blocks/validate.d.ts.map +0 -1
  1226. package/dist/field/features/blocks/validate.js +0 -50
  1227. package/dist/field/features/blocks/validate.js.map +0 -1
  1228. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts +0 -3
  1229. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts.map +0 -1
  1230. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +0 -10
  1231. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js.map +0 -1
  1232. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts +0 -3
  1233. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +0 -1
  1234. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +0 -12
  1235. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js.map +0 -1
  1236. package/dist/field/features/converters/html/converter/converters/linebreak.d.ts.map +0 -1
  1237. package/dist/field/features/converters/html/converter/converters/linebreak.js.map +0 -1
  1238. package/dist/field/features/converters/html/converter/converters/paragraph.d.ts.map +0 -1
  1239. package/dist/field/features/converters/html/converter/converters/paragraph.js +0 -20
  1240. package/dist/field/features/converters/html/converter/converters/paragraph.js.map +0 -1
  1241. package/dist/field/features/converters/html/converter/converters/text.d.ts.map +0 -1
  1242. package/dist/field/features/converters/html/converter/converters/text.js.map +0 -1
  1243. package/dist/field/features/converters/html/converter/defaultConverters.d.ts.map +0 -1
  1244. package/dist/field/features/converters/html/converter/defaultConverters.js.map +0 -1
  1245. package/dist/field/features/converters/html/converter/index.d.ts +0 -21
  1246. package/dist/field/features/converters/html/converter/index.d.ts.map +0 -1
  1247. package/dist/field/features/converters/html/converter/index.js +0 -44
  1248. package/dist/field/features/converters/html/converter/index.js.map +0 -1
  1249. package/dist/field/features/converters/html/converter/types.d.ts +0 -19
  1250. package/dist/field/features/converters/html/converter/types.d.ts.map +0 -1
  1251. package/dist/field/features/converters/html/converter/types.js.map +0 -1
  1252. package/dist/field/features/converters/html/feature.server.d.ts +0 -9
  1253. package/dist/field/features/converters/html/feature.server.d.ts.map +0 -1
  1254. package/dist/field/features/converters/html/feature.server.js +0 -14
  1255. package/dist/field/features/converters/html/feature.server.js.map +0 -1
  1256. package/dist/field/features/converters/html/field/index.d.ts +0 -23
  1257. package/dist/field/features/converters/html/field/index.d.ts.map +0 -1
  1258. package/dist/field/features/converters/html/field/index.js +0 -114
  1259. package/dist/field/features/converters/html/field/index.js.map +0 -1
  1260. package/dist/field/features/createClientComponent.d.ts +0 -6
  1261. package/dist/field/features/createClientComponent.d.ts.map +0 -1
  1262. package/dist/field/features/createClientComponent.js +0 -12
  1263. package/dist/field/features/createClientComponent.js.map +0 -1
  1264. package/dist/field/features/createFeaturePropComponent.d.ts.map +0 -1
  1265. package/dist/field/features/createFeaturePropComponent.js +0 -15
  1266. package/dist/field/features/createFeaturePropComponent.js.map +0 -1
  1267. package/dist/field/features/debug/testrecorder/feature.client.d.ts +0 -3
  1268. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +0 -1
  1269. package/dist/field/features/debug/testrecorder/feature.client.js +0 -20
  1270. package/dist/field/features/debug/testrecorder/feature.client.js.map +0 -1
  1271. package/dist/field/features/debug/testrecorder/feature.server.d.ts +0 -3
  1272. package/dist/field/features/debug/testrecorder/feature.server.d.ts.map +0 -1
  1273. package/dist/field/features/debug/testrecorder/feature.server.js +0 -15
  1274. package/dist/field/features/debug/testrecorder/feature.server.js.map +0 -1
  1275. package/dist/field/features/debug/testrecorder/plugin/index.d.ts +0 -5
  1276. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +0 -1
  1277. package/dist/field/features/debug/testrecorder/plugin/index.js +0 -448
  1278. package/dist/field/features/debug/testrecorder/plugin/index.js.map +0 -1
  1279. package/dist/field/features/debug/testrecorder/plugin/index.scss +0 -49
  1280. package/dist/field/features/debug/treeview/feature.client.d.ts +0 -3
  1281. package/dist/field/features/debug/treeview/feature.client.d.ts.map +0 -1
  1282. package/dist/field/features/debug/treeview/feature.client.js +0 -20
  1283. package/dist/field/features/debug/treeview/feature.client.js.map +0 -1
  1284. package/dist/field/features/debug/treeview/feature.server.d.ts +0 -3
  1285. package/dist/field/features/debug/treeview/feature.server.d.ts.map +0 -1
  1286. package/dist/field/features/debug/treeview/feature.server.js +0 -15
  1287. package/dist/field/features/debug/treeview/feature.server.js.map +0 -1
  1288. package/dist/field/features/debug/treeview/plugin/index.d.ts +0 -4
  1289. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +0 -1
  1290. package/dist/field/features/debug/treeview/plugin/index.js +0 -21
  1291. package/dist/field/features/debug/treeview/plugin/index.js.map +0 -1
  1292. package/dist/field/features/debug/treeview/plugin/index.scss +0 -78
  1293. package/dist/field/features/format/bold/feature.client.d.ts +0 -3
  1294. package/dist/field/features/format/bold/feature.client.d.ts.map +0 -1
  1295. package/dist/field/features/format/bold/feature.client.js +0 -48
  1296. package/dist/field/features/format/bold/feature.client.js.map +0 -1
  1297. package/dist/field/features/format/bold/feature.server.d.ts +0 -3
  1298. package/dist/field/features/format/bold/feature.server.d.ts.map +0 -1
  1299. package/dist/field/features/format/bold/feature.server.js +0 -27
  1300. package/dist/field/features/format/bold/feature.server.js.map +0 -1
  1301. package/dist/field/features/format/bold/markdownTransformers.d.ts.map +0 -1
  1302. package/dist/field/features/format/bold/markdownTransformers.js.map +0 -1
  1303. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts +0 -3
  1304. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts.map +0 -1
  1305. package/dist/field/features/format/common/floatingSelectToolbarSection.js +0 -10
  1306. package/dist/field/features/format/common/floatingSelectToolbarSection.js.map +0 -1
  1307. package/dist/field/features/format/inlinecode/feature.client.d.ts +0 -3
  1308. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +0 -1
  1309. package/dist/field/features/format/inlinecode/feature.client.js +0 -43
  1310. package/dist/field/features/format/inlinecode/feature.client.js.map +0 -1
  1311. package/dist/field/features/format/inlinecode/feature.server.d.ts +0 -3
  1312. package/dist/field/features/format/inlinecode/feature.server.d.ts.map +0 -1
  1313. package/dist/field/features/format/inlinecode/feature.server.js +0 -19
  1314. package/dist/field/features/format/inlinecode/feature.server.js.map +0 -1
  1315. package/dist/field/features/format/inlinecode/markdownTransformers.d.ts.map +0 -1
  1316. package/dist/field/features/format/inlinecode/markdownTransformers.js.map +0 -1
  1317. package/dist/field/features/format/italic/feature.client.d.ts +0 -3
  1318. package/dist/field/features/format/italic/feature.client.d.ts.map +0 -1
  1319. package/dist/field/features/format/italic/feature.client.js +0 -44
  1320. package/dist/field/features/format/italic/feature.client.js.map +0 -1
  1321. package/dist/field/features/format/italic/feature.server.d.ts +0 -3
  1322. package/dist/field/features/format/italic/feature.server.d.ts.map +0 -1
  1323. package/dist/field/features/format/italic/feature.server.js +0 -20
  1324. package/dist/field/features/format/italic/feature.server.js.map +0 -1
  1325. package/dist/field/features/format/italic/markdownTransformers.d.ts.map +0 -1
  1326. package/dist/field/features/format/italic/markdownTransformers.js.map +0 -1
  1327. package/dist/field/features/format/strikethrough/feature.client.d.ts +0 -3
  1328. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +0 -1
  1329. package/dist/field/features/format/strikethrough/feature.client.js +0 -43
  1330. package/dist/field/features/format/strikethrough/feature.client.js.map +0 -1
  1331. package/dist/field/features/format/strikethrough/feature.server.d.ts +0 -3
  1332. package/dist/field/features/format/strikethrough/feature.server.d.ts.map +0 -1
  1333. package/dist/field/features/format/strikethrough/feature.server.js +0 -19
  1334. package/dist/field/features/format/strikethrough/feature.server.js.map +0 -1
  1335. package/dist/field/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  1336. package/dist/field/features/format/strikethrough/markdownTransformers.js.map +0 -1
  1337. package/dist/field/features/format/subscript/feature.client.d.ts +0 -3
  1338. package/dist/field/features/format/subscript/feature.client.d.ts.map +0 -1
  1339. package/dist/field/features/format/subscript/feature.client.js +0 -39
  1340. package/dist/field/features/format/subscript/feature.client.js.map +0 -1
  1341. package/dist/field/features/format/subscript/feature.server.d.ts +0 -3
  1342. package/dist/field/features/format/subscript/feature.server.d.ts.map +0 -1
  1343. package/dist/field/features/format/subscript/feature.server.js +0 -15
  1344. package/dist/field/features/format/subscript/feature.server.js.map +0 -1
  1345. package/dist/field/features/format/superscript/feature.client.d.ts +0 -3
  1346. package/dist/field/features/format/superscript/feature.client.d.ts.map +0 -1
  1347. package/dist/field/features/format/superscript/feature.client.js +0 -39
  1348. package/dist/field/features/format/superscript/feature.client.js.map +0 -1
  1349. package/dist/field/features/format/superscript/feature.server.d.ts +0 -3
  1350. package/dist/field/features/format/superscript/feature.server.d.ts.map +0 -1
  1351. package/dist/field/features/format/superscript/feature.server.js +0 -15
  1352. package/dist/field/features/format/superscript/feature.server.js.map +0 -1
  1353. package/dist/field/features/format/underline/feature.client.d.ts +0 -3
  1354. package/dist/field/features/format/underline/feature.client.d.ts.map +0 -1
  1355. package/dist/field/features/format/underline/feature.client.js +0 -39
  1356. package/dist/field/features/format/underline/feature.client.js.map +0 -1
  1357. package/dist/field/features/format/underline/feature.server.d.ts +0 -3
  1358. package/dist/field/features/format/underline/feature.server.d.ts.map +0 -1
  1359. package/dist/field/features/format/underline/feature.server.js +0 -15
  1360. package/dist/field/features/format/underline/feature.server.js.map +0 -1
  1361. package/dist/field/features/heading/feature.client.d.ts +0 -4
  1362. package/dist/field/features/heading/feature.client.d.ts.map +0 -1
  1363. package/dist/field/features/heading/feature.client.js +0 -97
  1364. package/dist/field/features/heading/feature.client.js.map +0 -1
  1365. package/dist/field/features/heading/feature.server.d.ts +0 -7
  1366. package/dist/field/features/heading/feature.server.d.ts.map +0 -1
  1367. package/dist/field/features/heading/feature.server.js +0 -58
  1368. package/dist/field/features/heading/feature.server.js.map +0 -1
  1369. package/dist/field/features/heading/markdownTransformer.d.ts.map +0 -1
  1370. package/dist/field/features/heading/markdownTransformer.js +0 -30
  1371. package/dist/field/features/heading/markdownTransformer.js.map +0 -1
  1372. package/dist/field/features/horizontalrule/component/index.d.ts.map +0 -1
  1373. package/dist/field/features/horizontalrule/component/index.js +0 -64
  1374. package/dist/field/features/horizontalrule/component/index.js.map +0 -1
  1375. package/dist/field/features/horizontalrule/feature.client.d.ts +0 -3
  1376. package/dist/field/features/horizontalrule/feature.client.d.ts.map +0 -1
  1377. package/dist/field/features/horizontalrule/feature.client.js +0 -53
  1378. package/dist/field/features/horizontalrule/feature.client.js.map +0 -1
  1379. package/dist/field/features/horizontalrule/feature.server.d.ts +0 -3
  1380. package/dist/field/features/horizontalrule/feature.server.d.ts.map +0 -1
  1381. package/dist/field/features/horizontalrule/feature.server.js +0 -36
  1382. package/dist/field/features/horizontalrule/feature.server.js.map +0 -1
  1383. package/dist/field/features/horizontalrule/markdownTransformer.d.ts.map +0 -1
  1384. package/dist/field/features/horizontalrule/markdownTransformer.js.map +0 -1
  1385. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts +0 -55
  1386. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  1387. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js +0 -89
  1388. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js.map +0 -1
  1389. package/dist/field/features/horizontalrule/plugin/index.d.ts +0 -6
  1390. package/dist/field/features/horizontalrule/plugin/index.d.ts.map +0 -1
  1391. package/dist/field/features/horizontalrule/plugin/index.js +0 -34
  1392. package/dist/field/features/horizontalrule/plugin/index.js.map +0 -1
  1393. package/dist/field/features/horizontalrule/plugin/index.scss +0 -20
  1394. package/dist/field/features/indent/feature.client.d.ts +0 -3
  1395. package/dist/field/features/indent/feature.client.d.ts.map +0 -1
  1396. package/dist/field/features/indent/feature.client.js +0 -58
  1397. package/dist/field/features/indent/feature.client.js.map +0 -1
  1398. package/dist/field/features/indent/feature.server.d.ts +0 -3
  1399. package/dist/field/features/indent/feature.server.d.ts.map +0 -1
  1400. package/dist/field/features/indent/feature.server.js +0 -16
  1401. package/dist/field/features/indent/feature.server.js.map +0 -1
  1402. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts +0 -3
  1403. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts.map +0 -1
  1404. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +0 -10
  1405. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js.map +0 -1
  1406. package/dist/field/features/indent/index.scss +0 -4
  1407. package/dist/field/features/link/drawer/baseFields.d.ts +0 -4
  1408. package/dist/field/features/link/drawer/baseFields.d.ts.map +0 -1
  1409. package/dist/field/features/link/drawer/baseFields.js +0 -107
  1410. package/dist/field/features/link/drawer/baseFields.js.map +0 -1
  1411. package/dist/field/features/link/drawer/index.d.ts +0 -5
  1412. package/dist/field/features/link/drawer/index.d.ts.map +0 -1
  1413. package/dist/field/features/link/drawer/index.js +0 -93
  1414. package/dist/field/features/link/drawer/index.js.map +0 -1
  1415. package/dist/field/features/link/drawer/index.scss +0 -50
  1416. package/dist/field/features/link/drawer/types.d.ts +0 -8
  1417. package/dist/field/features/link/drawer/types.d.ts.map +0 -1
  1418. package/dist/field/features/link/drawer/types.js.map +0 -1
  1419. package/dist/field/features/link/feature.client.d.ts +0 -5
  1420. package/dist/field/features/link/feature.client.d.ts.map +0 -1
  1421. package/dist/field/features/link/feature.client.js +0 -90
  1422. package/dist/field/features/link/feature.client.js.map +0 -1
  1423. package/dist/field/features/link/feature.server.d.ts +0 -33
  1424. package/dist/field/features/link/feature.server.d.ts.map +0 -1
  1425. package/dist/field/features/link/feature.server.js +0 -91
  1426. package/dist/field/features/link/feature.server.js.map +0 -1
  1427. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +0 -1
  1428. package/dist/field/features/link/nodes/AutoLinkNode.js +0 -61
  1429. package/dist/field/features/link/nodes/AutoLinkNode.js.map +0 -1
  1430. package/dist/field/features/link/nodes/LinkNode.d.ts +0 -38
  1431. package/dist/field/features/link/nodes/LinkNode.d.ts.map +0 -1
  1432. package/dist/field/features/link/nodes/LinkNode.js +0 -301
  1433. package/dist/field/features/link/nodes/LinkNode.js.map +0 -1
  1434. package/dist/field/features/link/nodes/types.d.ts +0 -19
  1435. package/dist/field/features/link/nodes/types.d.ts.map +0 -1
  1436. package/dist/field/features/link/nodes/types.js.map +0 -1
  1437. package/dist/field/features/link/plugins/autoLink/index.d.ts +0 -19
  1438. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +0 -1
  1439. package/dist/field/features/link/plugins/autoLink/index.js +0 -321
  1440. package/dist/field/features/link/plugins/autoLink/index.js.map +0 -1
  1441. package/dist/field/features/link/plugins/clickableLink/index.d.ts +0 -3
  1442. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +0 -1
  1443. package/dist/field/features/link/plugins/clickableLink/index.js +0 -10
  1444. package/dist/field/features/link/plugins/clickableLink/index.js.map +0 -1
  1445. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  1446. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -5
  1447. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
  1448. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  1449. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -259
  1450. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
  1451. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +0 -6
  1452. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  1453. package/dist/field/features/link/plugins/floatingLinkEditor/index.js +0 -13
  1454. package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
  1455. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +0 -78
  1456. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  1457. package/dist/field/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
  1458. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -12
  1459. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  1460. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +0 -38
  1461. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
  1462. package/dist/field/features/link/plugins/link/index.d.ts +0 -2
  1463. package/dist/field/features/link/plugins/link/index.d.ts.map +0 -1
  1464. package/dist/field/features/link/plugins/link/index.js +0 -62
  1465. package/dist/field/features/link/plugins/link/index.js.map +0 -1
  1466. package/dist/field/features/link/populationPromise.d.ts +0 -5
  1467. package/dist/field/features/link/populationPromise.d.ts.map +0 -1
  1468. package/dist/field/features/link/populationPromise.js +0 -46
  1469. package/dist/field/features/link/populationPromise.js.map +0 -1
  1470. package/dist/field/features/lists/checklist/feature.client.d.ts +0 -3
  1471. package/dist/field/features/lists/checklist/feature.client.d.ts.map +0 -1
  1472. package/dist/field/features/lists/checklist/feature.client.js +0 -82
  1473. package/dist/field/features/lists/checklist/feature.client.js.map +0 -1
  1474. package/dist/field/features/lists/checklist/feature.server.d.ts +0 -3
  1475. package/dist/field/features/lists/checklist/feature.server.d.ts.map +0 -1
  1476. package/dist/field/features/lists/checklist/feature.server.js +0 -36
  1477. package/dist/field/features/lists/checklist/feature.server.js.map +0 -1
  1478. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  1479. package/dist/field/features/lists/checklist/markdownTransformers.js +0 -17
  1480. package/dist/field/features/lists/checklist/markdownTransformers.js.map +0 -1
  1481. package/dist/field/features/lists/checklist/plugin/index.d.ts +0 -3
  1482. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +0 -1
  1483. package/dist/field/features/lists/checklist/plugin/index.js +0 -9
  1484. package/dist/field/features/lists/checklist/plugin/index.js.map +0 -1
  1485. package/dist/field/features/lists/common/markdown.d.ts +0 -6
  1486. package/dist/field/features/lists/common/markdown.d.ts.map +0 -1
  1487. package/dist/field/features/lists/common/markdown.js +0 -59
  1488. package/dist/field/features/lists/common/markdown.js.map +0 -1
  1489. package/dist/field/features/lists/htmlConverter.d.ts +0 -5
  1490. package/dist/field/features/lists/htmlConverter.d.ts.map +0 -1
  1491. package/dist/field/features/lists/htmlConverter.js +0 -49
  1492. package/dist/field/features/lists/htmlConverter.js.map +0 -1
  1493. package/dist/field/features/lists/orderedlist/feature.client.d.ts +0 -3
  1494. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +0 -1
  1495. package/dist/field/features/lists/orderedlist/feature.client.js +0 -72
  1496. package/dist/field/features/lists/orderedlist/feature.client.js.map +0 -1
  1497. package/dist/field/features/lists/orderedlist/feature.server.d.ts +0 -3
  1498. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +0 -1
  1499. package/dist/field/features/lists/orderedlist/feature.server.js +0 -36
  1500. package/dist/field/features/lists/orderedlist/feature.server.js.map +0 -1
  1501. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +0 -1
  1502. package/dist/field/features/lists/orderedlist/markdownTransformer.js +0 -17
  1503. package/dist/field/features/lists/orderedlist/markdownTransformer.js.map +0 -1
  1504. package/dist/field/features/lists/plugin/index.d.ts +0 -3
  1505. package/dist/field/features/lists/plugin/index.d.ts.map +0 -1
  1506. package/dist/field/features/lists/plugin/index.js +0 -9
  1507. package/dist/field/features/lists/plugin/index.js.map +0 -1
  1508. package/dist/field/features/lists/unorderedlist/feature.client.d.ts +0 -3
  1509. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +0 -1
  1510. package/dist/field/features/lists/unorderedlist/feature.client.js +0 -72
  1511. package/dist/field/features/lists/unorderedlist/feature.client.js.map +0 -1
  1512. package/dist/field/features/lists/unorderedlist/feature.server.d.ts +0 -3
  1513. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +0 -1
  1514. package/dist/field/features/lists/unorderedlist/feature.server.js +0 -36
  1515. package/dist/field/features/lists/unorderedlist/feature.server.js.map +0 -1
  1516. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +0 -1
  1517. package/dist/field/features/lists/unorderedlist/markdownTransformer.js +0 -17
  1518. package/dist/field/features/lists/unorderedlist/markdownTransformer.js.map +0 -1
  1519. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -6
  1520. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1521. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
  1522. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1523. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  1524. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1525. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
  1526. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
  1527. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -6
  1528. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
  1529. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
  1530. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1531. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  1532. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
  1533. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
  1534. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
  1535. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -6
  1536. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
  1537. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
  1538. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  1539. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  1540. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
  1541. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
  1542. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
  1543. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -6
  1544. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1545. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
  1546. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1547. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  1548. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1549. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
  1550. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
  1551. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -6
  1552. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
  1553. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
  1554. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  1555. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  1556. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
  1557. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
  1558. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
  1559. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -6
  1560. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1561. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
  1562. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1563. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  1564. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1565. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
  1566. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
  1567. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -6
  1568. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1569. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
  1570. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1571. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -25
  1572. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  1573. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1574. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
  1575. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
  1576. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  1577. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  1578. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  1579. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  1580. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -31
  1581. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  1582. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  1583. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -3
  1584. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  1585. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js +0 -34
  1586. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  1587. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -9
  1588. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  1589. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +0 -47
  1590. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  1591. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1592. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -8
  1593. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1594. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
  1595. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1596. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -70
  1597. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1598. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  1599. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -6
  1600. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
  1601. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -6
  1602. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
  1603. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  1604. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  1605. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
  1606. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
  1607. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
  1608. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -6
  1609. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1610. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
  1611. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1612. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  1613. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1614. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
  1615. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
  1616. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -6
  1617. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
  1618. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
  1619. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  1620. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  1621. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
  1622. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
  1623. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
  1624. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -6
  1625. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
  1626. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
  1627. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1628. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  1629. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
  1630. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
  1631. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
  1632. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -6
  1633. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1634. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
  1635. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1636. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  1637. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1638. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
  1639. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
  1640. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -6
  1641. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
  1642. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
  1643. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  1644. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  1645. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
  1646. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
  1647. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
  1648. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -6
  1649. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
  1650. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
  1651. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  1652. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -18
  1653. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  1654. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
  1655. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
  1656. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
  1657. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -6
  1658. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1659. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
  1660. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1661. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  1662. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1663. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
  1664. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
  1665. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -6
  1666. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
  1667. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
  1668. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  1669. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  1670. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
  1671. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
  1672. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
  1673. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -6
  1674. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1675. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
  1676. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1677. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -21
  1678. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  1679. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1680. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
  1681. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
  1682. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  1683. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  1684. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  1685. package/dist/field/features/migrations/slateToLexical/converter/index.js +0 -107
  1686. package/dist/field/features/migrations/slateToLexical/converter/index.js.map +0 -1
  1687. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts +0 -25
  1688. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  1689. package/dist/field/features/migrations/slateToLexical/converter/types.js.map +0 -1
  1690. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +0 -3
  1691. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  1692. package/dist/field/features/migrations/slateToLexical/feature.client.js +0 -34
  1693. package/dist/field/features/migrations/slateToLexical/feature.client.js.map +0 -1
  1694. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts +0 -9
  1695. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  1696. package/dist/field/features/migrations/slateToLexical/feature.server.js +0 -47
  1697. package/dist/field/features/migrations/slateToLexical/feature.server.js.map +0 -1
  1698. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1699. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -8
  1700. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1701. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
  1702. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1703. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -70
  1704. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1705. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  1706. package/dist/field/features/paragraph/feature.client.d.ts +0 -3
  1707. package/dist/field/features/paragraph/feature.client.d.ts.map +0 -1
  1708. package/dist/field/features/paragraph/feature.client.js +0 -65
  1709. package/dist/field/features/paragraph/feature.client.js.map +0 -1
  1710. package/dist/field/features/paragraph/feature.server.d.ts +0 -3
  1711. package/dist/field/features/paragraph/feature.server.d.ts.map +0 -1
  1712. package/dist/field/features/paragraph/feature.server.js +0 -16
  1713. package/dist/field/features/paragraph/feature.server.js.map +0 -1
  1714. package/dist/field/features/relationship/drawer/commands.d.ts.map +0 -1
  1715. package/dist/field/features/relationship/drawer/commands.js +0 -5
  1716. package/dist/field/features/relationship/drawer/commands.js.map +0 -1
  1717. package/dist/field/features/relationship/drawer/index.d.ts.map +0 -1
  1718. package/dist/field/features/relationship/drawer/index.js +0 -81
  1719. package/dist/field/features/relationship/drawer/index.js.map +0 -1
  1720. package/dist/field/features/relationship/feature.client.d.ts +0 -4
  1721. package/dist/field/features/relationship/feature.client.d.ts.map +0 -1
  1722. package/dist/field/features/relationship/feature.client.js +0 -56
  1723. package/dist/field/features/relationship/feature.client.js.map +0 -1
  1724. package/dist/field/features/relationship/feature.server.d.ts +0 -18
  1725. package/dist/field/features/relationship/feature.server.d.ts.map +0 -1
  1726. package/dist/field/features/relationship/feature.server.js +0 -26
  1727. package/dist/field/features/relationship/feature.server.js.map +0 -1
  1728. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts +0 -36
  1729. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
  1730. package/dist/field/features/relationship/nodes/RelationshipNode.js +0 -110
  1731. package/dist/field/features/relationship/nodes/RelationshipNode.js.map +0 -1
  1732. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts +0 -14
  1733. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  1734. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +0 -109
  1735. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
  1736. package/dist/field/features/relationship/nodes/components/index.scss +0 -97
  1737. package/dist/field/features/relationship/plugins/index.d.ts +0 -7
  1738. package/dist/field/features/relationship/plugins/index.d.ts.map +0 -1
  1739. package/dist/field/features/relationship/plugins/index.js +0 -52
  1740. package/dist/field/features/relationship/plugins/index.js.map +0 -1
  1741. package/dist/field/features/relationship/populationPromise.d.ts +0 -4
  1742. package/dist/field/features/relationship/populationPromise.d.ts.map +0 -1
  1743. package/dist/field/features/relationship/populationPromise.js +0 -24
  1744. package/dist/field/features/relationship/populationPromise.js.map +0 -1
  1745. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  1746. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +0 -35
  1747. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
  1748. package/dist/field/features/types.d.ts +0 -278
  1749. package/dist/field/features/types.d.ts.map +0 -1
  1750. package/dist/field/features/types.js.map +0 -1
  1751. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts +0 -12
  1752. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +0 -1
  1753. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +0 -125
  1754. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +0 -1
  1755. package/dist/field/features/upload/component/index.d.ts.map +0 -1
  1756. package/dist/field/features/upload/component/index.js +0 -144
  1757. package/dist/field/features/upload/component/index.js.map +0 -1
  1758. package/dist/field/features/upload/component/index.scss +0 -152
  1759. package/dist/field/features/upload/drawer/commands.d.ts.map +0 -1
  1760. package/dist/field/features/upload/drawer/commands.js +0 -6
  1761. package/dist/field/features/upload/drawer/commands.js.map +0 -1
  1762. package/dist/field/features/upload/drawer/index.d.ts.map +0 -1
  1763. package/dist/field/features/upload/drawer/index.js +0 -78
  1764. package/dist/field/features/upload/drawer/index.js.map +0 -1
  1765. package/dist/field/features/upload/feature.client.d.ts +0 -10
  1766. package/dist/field/features/upload/feature.client.d.ts.map +0 -1
  1767. package/dist/field/features/upload/feature.client.js +0 -55
  1768. package/dist/field/features/upload/feature.client.js.map +0 -1
  1769. package/dist/field/features/upload/feature.server.d.ts +0 -12
  1770. package/dist/field/features/upload/feature.server.d.ts.map +0 -1
  1771. package/dist/field/features/upload/feature.server.js +0 -110
  1772. package/dist/field/features/upload/feature.server.js.map +0 -1
  1773. package/dist/field/features/upload/nodes/UploadNode.d.ts +0 -49
  1774. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +0 -1
  1775. package/dist/field/features/upload/nodes/UploadNode.js +0 -102
  1776. package/dist/field/features/upload/nodes/UploadNode.js.map +0 -1
  1777. package/dist/field/features/upload/plugin/index.d.ts +0 -7
  1778. package/dist/field/features/upload/plugin/index.d.ts.map +0 -1
  1779. package/dist/field/features/upload/plugin/index.js +0 -55
  1780. package/dist/field/features/upload/plugin/index.js.map +0 -1
  1781. package/dist/field/features/upload/populationPromise.d.ts +0 -5
  1782. package/dist/field/features/upload/populationPromise.d.ts.map +0 -1
  1783. package/dist/field/features/upload/populationPromise.js +0 -46
  1784. package/dist/field/features/upload/populationPromise.js.map +0 -1
  1785. package/dist/field/features/upload/validate.d.ts +0 -4
  1786. package/dist/field/features/upload/validate.d.ts.map +0 -1
  1787. package/dist/field/features/upload/validate.js +0 -17
  1788. package/dist/field/features/upload/validate.js.map +0 -1
  1789. package/dist/field/index.scss +0 -46
  1790. package/dist/field/lexical/EditorPlugin.d.ts +0 -7
  1791. package/dist/field/lexical/EditorPlugin.d.ts.map +0 -1
  1792. package/dist/field/lexical/EditorPlugin.js +0 -11
  1793. package/dist/field/lexical/EditorPlugin.js.map +0 -1
  1794. package/dist/field/lexical/LexicalEditor.d.ts +0 -5
  1795. package/dist/field/lexical/LexicalEditor.d.ts.map +0 -1
  1796. package/dist/field/lexical/LexicalEditor.js +0 -112
  1797. package/dist/field/lexical/LexicalEditor.js.map +0 -1
  1798. package/dist/field/lexical/LexicalEditor.scss +0 -56
  1799. package/dist/field/lexical/LexicalProvider.d.ts +0 -19
  1800. package/dist/field/lexical/LexicalProvider.d.ts.map +0 -1
  1801. package/dist/field/lexical/LexicalProvider.js +0 -67
  1802. package/dist/field/lexical/LexicalProvider.js.map +0 -1
  1803. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +0 -24
  1804. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +0 -1
  1805. package/dist/field/lexical/config/client/EditorConfigProvider.js +0 -41
  1806. package/dist/field/lexical/config/client/EditorConfigProvider.js.map +0 -1
  1807. package/dist/field/lexical/config/client/default.d.ts +0 -3
  1808. package/dist/field/lexical/config/client/default.d.ts.map +0 -1
  1809. package/dist/field/lexical/config/client/default.js.map +0 -1
  1810. package/dist/field/lexical/config/client/loader.d.ts +0 -12
  1811. package/dist/field/lexical/config/client/loader.d.ts.map +0 -1
  1812. package/dist/field/lexical/config/client/loader.js +0 -46
  1813. package/dist/field/lexical/config/client/loader.js.map +0 -1
  1814. package/dist/field/lexical/config/client/sanitize.d.ts +0 -6
  1815. package/dist/field/lexical/config/client/sanitize.d.ts.map +0 -1
  1816. package/dist/field/lexical/config/client/sanitize.js +0 -126
  1817. package/dist/field/lexical/config/client/sanitize.js.map +0 -1
  1818. package/dist/field/lexical/config/server/default.d.ts +0 -8
  1819. package/dist/field/lexical/config/server/default.d.ts.map +0 -1
  1820. package/dist/field/lexical/config/server/default.js +0 -53
  1821. package/dist/field/lexical/config/server/default.js.map +0 -1
  1822. package/dist/field/lexical/config/server/loader.d.ts +0 -7
  1823. package/dist/field/lexical/config/server/loader.d.ts.map +0 -1
  1824. package/dist/field/lexical/config/server/loader.js +0 -118
  1825. package/dist/field/lexical/config/server/loader.js.map +0 -1
  1826. package/dist/field/lexical/config/server/sanitize.d.ts +0 -5
  1827. package/dist/field/lexical/config/server/sanitize.d.ts.map +0 -1
  1828. package/dist/field/lexical/config/server/sanitize.js +0 -65
  1829. package/dist/field/lexical/config/server/sanitize.js.map +0 -1
  1830. package/dist/field/lexical/config/types.d.ts +0 -21
  1831. package/dist/field/lexical/config/types.d.ts.map +0 -1
  1832. package/dist/field/lexical/config/types.js.map +0 -1
  1833. package/dist/field/lexical/nodes/index.d.ts +0 -7
  1834. package/dist/field/lexical/nodes/index.d.ts.map +0 -1
  1835. package/dist/field/lexical/nodes/index.js.map +0 -1
  1836. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts +0 -8
  1837. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts.map +0 -1
  1838. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js +0 -97
  1839. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js.map +0 -1
  1840. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +0 -37
  1841. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +0 -17
  1842. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +0 -1
  1843. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js +0 -251
  1844. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js.map +0 -1
  1845. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts +0 -18
  1846. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +0 -1
  1847. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +0 -42
  1848. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js.map +0 -1
  1849. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +0 -100
  1850. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts +0 -6
  1851. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +0 -1
  1852. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +0 -270
  1853. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js.map +0 -1
  1854. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +0 -57
  1855. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +0 -40
  1856. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +0 -1
  1857. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js +0 -3
  1858. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js.map +0 -1
  1859. package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +0 -1
  1860. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +0 -13
  1861. package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +0 -1
  1862. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -32
  1863. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +0 -1
  1864. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +0 -404
  1865. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +0 -1
  1866. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +0 -25
  1867. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +0 -1
  1868. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +0 -207
  1869. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +0 -1
  1870. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +0 -39
  1871. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +0 -1
  1872. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +0 -39
  1873. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +0 -1
  1874. package/dist/field/lexical/plugins/SlashMenu/index.d.ts +0 -6
  1875. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +0 -1
  1876. package/dist/field/lexical/plugins/SlashMenu/index.js +0 -172
  1877. package/dist/field/lexical/plugins/SlashMenu/index.js.map +0 -1
  1878. package/dist/field/lexical/plugins/SlashMenu/index.scss +0 -61
  1879. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +0 -1
  1880. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +0 -1
  1881. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +0 -6
  1882. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +0 -1
  1883. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +0 -241
  1884. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +0 -1
  1885. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -31
  1886. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +0 -1
  1887. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +0 -1
  1888. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +0 -1
  1889. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +0 -1
  1890. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts +0 -27
  1891. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts.map +0 -1
  1892. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js +0 -151
  1893. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js.map +0 -1
  1894. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +0 -3
  1895. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +0 -1
  1896. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +0 -1
  1897. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +0 -6
  1898. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +0 -1
  1899. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +0 -298
  1900. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +0 -1
  1901. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -55
  1902. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +0 -3
  1903. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +0 -1
  1904. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +0 -49
  1905. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +0 -1
  1906. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +0 -1
  1907. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +0 -1
  1908. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +0 -1
  1909. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js.map +0 -1
  1910. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +0 -1
  1911. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +0 -7
  1912. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +0 -1
  1913. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +0 -1
  1914. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js.map +0 -1
  1915. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +0 -1
  1916. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js +0 -27
  1917. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js.map +0 -1
  1918. package/dist/field/lexical/theme/EditorTheme.d.ts.map +0 -1
  1919. package/dist/field/lexical/theme/EditorTheme.js +0 -106
  1920. package/dist/field/lexical/theme/EditorTheme.js.map +0 -1
  1921. package/dist/field/lexical/theme/EditorTheme.scss +0 -505
  1922. package/dist/field/lexical/ui/ContentEditable.d.ts +0 -6
  1923. package/dist/field/lexical/ui/ContentEditable.d.ts.map +0 -1
  1924. package/dist/field/lexical/ui/ContentEditable.js +0 -11
  1925. package/dist/field/lexical/ui/ContentEditable.js.map +0 -1
  1926. package/dist/field/lexical/ui/ContentEditable.scss +0 -25
  1927. package/dist/field/lexical/ui/icons/AI/index.d.ts.map +0 -1
  1928. package/dist/field/lexical/ui/icons/AI/index.js +0 -27
  1929. package/dist/field/lexical/ui/icons/AI/index.js.map +0 -1
  1930. package/dist/field/lexical/ui/icons/AlignCenter/index.d.ts.map +0 -1
  1931. package/dist/field/lexical/ui/icons/AlignCenter/index.js +0 -25
  1932. package/dist/field/lexical/ui/icons/AlignCenter/index.js.map +0 -1
  1933. package/dist/field/lexical/ui/icons/AlignJustify/index.d.ts.map +0 -1
  1934. package/dist/field/lexical/ui/icons/AlignJustify/index.js +0 -25
  1935. package/dist/field/lexical/ui/icons/AlignJustify/index.js.map +0 -1
  1936. package/dist/field/lexical/ui/icons/AlignLeft/index.d.ts.map +0 -1
  1937. package/dist/field/lexical/ui/icons/AlignLeft/index.js +0 -25
  1938. package/dist/field/lexical/ui/icons/AlignLeft/index.js.map +0 -1
  1939. package/dist/field/lexical/ui/icons/AlignRight/index.d.ts.map +0 -1
  1940. package/dist/field/lexical/ui/icons/AlignRight/index.js +0 -25
  1941. package/dist/field/lexical/ui/icons/AlignRight/index.js.map +0 -1
  1942. package/dist/field/lexical/ui/icons/Block/index.d.ts.map +0 -1
  1943. package/dist/field/lexical/ui/icons/Block/index.js +0 -34
  1944. package/dist/field/lexical/ui/icons/Block/index.js.map +0 -1
  1945. package/dist/field/lexical/ui/icons/Blockquote/index.d.ts.map +0 -1
  1946. package/dist/field/lexical/ui/icons/Blockquote/index.js +0 -16
  1947. package/dist/field/lexical/ui/icons/Blockquote/index.js.map +0 -1
  1948. package/dist/field/lexical/ui/icons/Bold/index.d.ts.map +0 -1
  1949. package/dist/field/lexical/ui/icons/Bold/index.js +0 -16
  1950. package/dist/field/lexical/ui/icons/Bold/index.js.map +0 -1
  1951. package/dist/field/lexical/ui/icons/Checklist/index.d.ts.map +0 -1
  1952. package/dist/field/lexical/ui/icons/Checklist/index.js +0 -24
  1953. package/dist/field/lexical/ui/icons/Checklist/index.js.map +0 -1
  1954. package/dist/field/lexical/ui/icons/Code/index.d.ts.map +0 -1
  1955. package/dist/field/lexical/ui/icons/Code/index.js +0 -19
  1956. package/dist/field/lexical/ui/icons/Code/index.js.map +0 -1
  1957. package/dist/field/lexical/ui/icons/CodeBlock/index.d.ts.map +0 -1
  1958. package/dist/field/lexical/ui/icons/CodeBlock/index.js +0 -19
  1959. package/dist/field/lexical/ui/icons/CodeBlock/index.js.map +0 -1
  1960. package/dist/field/lexical/ui/icons/H1/index.d.ts.map +0 -1
  1961. package/dist/field/lexical/ui/icons/H1/index.js +0 -16
  1962. package/dist/field/lexical/ui/icons/H1/index.js.map +0 -1
  1963. package/dist/field/lexical/ui/icons/H2/index.d.ts.map +0 -1
  1964. package/dist/field/lexical/ui/icons/H2/index.js +0 -16
  1965. package/dist/field/lexical/ui/icons/H2/index.js.map +0 -1
  1966. package/dist/field/lexical/ui/icons/H3/index.d.ts.map +0 -1
  1967. package/dist/field/lexical/ui/icons/H3/index.js +0 -16
  1968. package/dist/field/lexical/ui/icons/H3/index.js.map +0 -1
  1969. package/dist/field/lexical/ui/icons/H4/index.d.ts.map +0 -1
  1970. package/dist/field/lexical/ui/icons/H4/index.js +0 -16
  1971. package/dist/field/lexical/ui/icons/H4/index.js.map +0 -1
  1972. package/dist/field/lexical/ui/icons/H5/index.d.ts.map +0 -1
  1973. package/dist/field/lexical/ui/icons/H5/index.js +0 -16
  1974. package/dist/field/lexical/ui/icons/H5/index.js.map +0 -1
  1975. package/dist/field/lexical/ui/icons/H6/index.d.ts.map +0 -1
  1976. package/dist/field/lexical/ui/icons/H6/index.js +0 -16
  1977. package/dist/field/lexical/ui/icons/H6/index.js.map +0 -1
  1978. package/dist/field/lexical/ui/icons/HorizontalRule/index.d.ts.map +0 -1
  1979. package/dist/field/lexical/ui/icons/HorizontalRule/index.js +0 -19
  1980. package/dist/field/lexical/ui/icons/HorizontalRule/index.js.map +0 -1
  1981. package/dist/field/lexical/ui/icons/IndentDecrease/index.d.ts.map +0 -1
  1982. package/dist/field/lexical/ui/icons/IndentDecrease/index.js +0 -28
  1983. package/dist/field/lexical/ui/icons/IndentDecrease/index.js.map +0 -1
  1984. package/dist/field/lexical/ui/icons/IndentIncrease/index.d.ts.map +0 -1
  1985. package/dist/field/lexical/ui/icons/IndentIncrease/index.js +0 -28
  1986. package/dist/field/lexical/ui/icons/IndentIncrease/index.js.map +0 -1
  1987. package/dist/field/lexical/ui/icons/Italic/index.d.ts.map +0 -1
  1988. package/dist/field/lexical/ui/icons/Italic/index.js +0 -16
  1989. package/dist/field/lexical/ui/icons/Italic/index.js.map +0 -1
  1990. package/dist/field/lexical/ui/icons/Link/index.d.ts.map +0 -1
  1991. package/dist/field/lexical/ui/icons/Link/index.js +0 -27
  1992. package/dist/field/lexical/ui/icons/Link/index.js.map +0 -1
  1993. package/dist/field/lexical/ui/icons/OrderedList/index.d.ts.map +0 -1
  1994. package/dist/field/lexical/ui/icons/OrderedList/index.js +0 -31
  1995. package/dist/field/lexical/ui/icons/OrderedList/index.js.map +0 -1
  1996. package/dist/field/lexical/ui/icons/Relationship/index.d.ts.map +0 -1
  1997. package/dist/field/lexical/ui/icons/Relationship/index.js +0 -27
  1998. package/dist/field/lexical/ui/icons/Relationship/index.js.map +0 -1
  1999. package/dist/field/lexical/ui/icons/Strikethrough/index.d.ts.map +0 -1
  2000. package/dist/field/lexical/ui/icons/Strikethrough/index.js +0 -19
  2001. package/dist/field/lexical/ui/icons/Strikethrough/index.js.map +0 -1
  2002. package/dist/field/lexical/ui/icons/Subscript/index.d.ts.map +0 -1
  2003. package/dist/field/lexical/ui/icons/Subscript/index.js +0 -16
  2004. package/dist/field/lexical/ui/icons/Subscript/index.js.map +0 -1
  2005. package/dist/field/lexical/ui/icons/Superscript/index.d.ts.map +0 -1
  2006. package/dist/field/lexical/ui/icons/Superscript/index.js +0 -16
  2007. package/dist/field/lexical/ui/icons/Superscript/index.js.map +0 -1
  2008. package/dist/field/lexical/ui/icons/Text/index.d.ts.map +0 -1
  2009. package/dist/field/lexical/ui/icons/Text/index.js +0 -16
  2010. package/dist/field/lexical/ui/icons/Text/index.js.map +0 -1
  2011. package/dist/field/lexical/ui/icons/Underline/index.d.ts.map +0 -1
  2012. package/dist/field/lexical/ui/icons/Underline/index.js +0 -19
  2013. package/dist/field/lexical/ui/icons/Underline/index.js.map +0 -1
  2014. package/dist/field/lexical/ui/icons/UnorderedList/index.d.ts.map +0 -1
  2015. package/dist/field/lexical/ui/icons/UnorderedList/index.js +0 -46
  2016. package/dist/field/lexical/ui/icons/UnorderedList/index.js.map +0 -1
  2017. package/dist/field/lexical/ui/icons/Upload/index.d.ts.map +0 -1
  2018. package/dist/field/lexical/ui/icons/Upload/index.js +0 -28
  2019. package/dist/field/lexical/ui/icons/Upload/index.js.map +0 -1
  2020. package/dist/field/lexical/utils/canUseDOM.d.ts.map +0 -1
  2021. package/dist/field/lexical/utils/canUseDOM.js.map +0 -1
  2022. package/dist/field/lexical/utils/cloneDeep.d.ts +0 -2
  2023. package/dist/field/lexical/utils/cloneDeep.d.ts.map +0 -1
  2024. package/dist/field/lexical/utils/cloneDeep.js +0 -50
  2025. package/dist/field/lexical/utils/cloneDeep.js.map +0 -1
  2026. package/dist/field/lexical/utils/environment.d.ts.map +0 -1
  2027. package/dist/field/lexical/utils/environment.js.map +0 -1
  2028. package/dist/field/lexical/utils/getDOMRangeRect.d.ts.map +0 -1
  2029. package/dist/field/lexical/utils/getDOMRangeRect.js.map +0 -1
  2030. package/dist/field/lexical/utils/getSelectedNode.d.ts.map +0 -1
  2031. package/dist/field/lexical/utils/getSelectedNode.js +0 -18
  2032. package/dist/field/lexical/utils/getSelectedNode.js.map +0 -1
  2033. package/dist/field/lexical/utils/guard.d.ts.map +0 -1
  2034. package/dist/field/lexical/utils/guard.js.map +0 -1
  2035. package/dist/field/lexical/utils/invariant.d.ts.map +0 -1
  2036. package/dist/field/lexical/utils/invariant.js.map +0 -1
  2037. package/dist/field/lexical/utils/joinClasses.d.ts.map +0 -1
  2038. package/dist/field/lexical/utils/joinClasses.js.map +0 -1
  2039. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts +0 -4
  2040. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts.map +0 -1
  2041. package/dist/field/lexical/utils/markdown/createBlockNode.js.map +0 -1
  2042. package/dist/field/lexical/utils/nodeFormat.d.ts +0 -41
  2043. package/dist/field/lexical/utils/nodeFormat.d.ts.map +0 -1
  2044. package/dist/field/lexical/utils/nodeFormat.js +0 -88
  2045. package/dist/field/lexical/utils/nodeFormat.js.map +0 -1
  2046. package/dist/field/lexical/utils/point.d.ts.map +0 -1
  2047. package/dist/field/lexical/utils/point.js.map +0 -1
  2048. package/dist/field/lexical/utils/rect.d.ts.map +0 -1
  2049. package/dist/field/lexical/utils/rect.js.map +0 -1
  2050. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts +0 -2
  2051. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +0 -1
  2052. package/dist/field/lexical/utils/setFloatingElemPosition.js +0 -53
  2053. package/dist/field/lexical/utils/setFloatingElemPosition.js.map +0 -1
  2054. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +0 -1
  2055. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +0 -1
  2056. package/dist/field/lexical/utils/swipe.d.ts.map +0 -1
  2057. package/dist/field/lexical/utils/swipe.js.map +0 -1
  2058. package/dist/field/lexical/utils/url.d.ts.map +0 -1
  2059. package/dist/field/lexical/utils/url.js +0 -25
  2060. package/dist/field/lexical/utils/url.js.map +0 -1
  2061. package/dist/generateComponentMap.d.ts +0 -6
  2062. package/dist/generateComponentMap.d.ts.map +0 -1
  2063. package/dist/generateComponentMap.js +0 -85
  2064. package/dist/generateComponentMap.js.map +0 -1
  2065. package/dist/generateSchemaMap.d.ts +0 -6
  2066. package/dist/generateSchemaMap.d.ts.map +0 -1
  2067. package/dist/generateSchemaMap.js +0 -30
  2068. package/dist/generateSchemaMap.js.map +0 -1
  2069. package/dist/populate/defaultValue.d.ts +0 -4
  2070. package/dist/populate/defaultValue.d.ts.map +0 -1
  2071. package/dist/populate/defaultValue.js +0 -50
  2072. package/dist/populate/defaultValue.js.map +0 -1
  2073. package/dist/populate/populate.d.ts +0 -21
  2074. package/dist/populate/populate.d.ts.map +0 -1
  2075. package/dist/populate/populate.js +0 -21
  2076. package/dist/populate/populate.js.map +0 -1
  2077. package/dist/populate/recurseNestedFields.d.ts +0 -25
  2078. package/dist/populate/recurseNestedFields.d.ts.map +0 -1
  2079. package/dist/populate/recurseNestedFields.js +0 -26
  2080. package/dist/populate/recurseNestedFields.js.map +0 -1
  2081. package/dist/populate/richTextRelationshipPromise.d.ts +0 -23
  2082. package/dist/populate/richTextRelationshipPromise.d.ts.map +0 -1
  2083. package/dist/populate/richTextRelationshipPromise.js +0 -68
  2084. package/dist/populate/richTextRelationshipPromise.js.map +0 -1
  2085. package/dist/scss/app.scss +0 -208
  2086. package/dist/scss/colors.scss +0 -269
  2087. package/dist/scss/queries.scss +0 -27
  2088. package/dist/scss/resets.scss +0 -17
  2089. package/dist/scss/styles.scss +0 -11
  2090. package/dist/scss/svg.scss +0 -10
  2091. package/dist/scss/toastify.scss +0 -58
  2092. package/dist/scss/type.scss +0 -117
  2093. package/dist/scss/vars.scss +0 -213
  2094. package/dist/scss/z-index.scss +0 -9
  2095. package/dist/useLexicalFeature.d.ts +0 -3
  2096. package/dist/useLexicalFeature.d.ts.map +0 -1
  2097. package/dist/useLexicalFeature.js +0 -9
  2098. package/dist/useLexicalFeature.js.map +0 -1
  2099. package/src/index.ts +0 -423
  2100. /package/dist/{field/features → features}/blockquote/markdownTransformer.d.ts +0 -0
  2101. /package/dist/{field/features → features}/blocks/component/removeEmptyArrayValues.js +0 -0
  2102. /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.d.ts +0 -0
  2103. /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.js +0 -0
  2104. /package/dist/{field/features → features}/converters/html/converter/converters/paragraph.d.ts +0 -0
  2105. /package/dist/{field/features → features}/converters/html/converter/converters/text.d.ts +0 -0
  2106. /package/dist/{field/features → features}/converters/html/converter/converters/text.js +0 -0
  2107. /package/dist/{field/features → features}/converters/html/converter/defaultConverters.d.ts +0 -0
  2108. /package/dist/{field/features → features}/converters/html/converter/defaultConverters.js +0 -0
  2109. /package/dist/{field/features → features}/converters/html/converter/types.js +0 -0
  2110. /package/dist/{field/features → features}/createFeaturePropComponent.d.ts +0 -0
  2111. /package/dist/{field/features → features}/format/bold/markdownTransformers.d.ts +0 -0
  2112. /package/dist/{field/features → features}/format/bold/markdownTransformers.js +0 -0
  2113. /package/dist/{field/features/format/inlinecode → features/format/inlineCode}/markdownTransformers.d.ts +0 -0
  2114. /package/dist/{field/features/format/inlinecode → features/format/inlineCode}/markdownTransformers.js +0 -0
  2115. /package/dist/{field/features → features}/format/italic/markdownTransformers.d.ts +0 -0
  2116. /package/dist/{field/features → features}/format/italic/markdownTransformers.js +0 -0
  2117. /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.d.ts +0 -0
  2118. /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.js +0 -0
  2119. /package/dist/{field/features → features}/heading/markdownTransformer.d.ts +0 -0
  2120. /package/dist/{field/features/horizontalrule → features/horizontalRule}/component/index.d.ts +0 -0
  2121. /package/dist/{field/features/horizontalrule → features/horizontalRule}/markdownTransformer.d.ts +0 -0
  2122. /package/dist/{field/features/horizontalrule → features/horizontalRule}/markdownTransformer.js +0 -0
  2123. /package/dist/{field/features → features}/link/nodes/AutoLinkNode.d.ts +0 -0
  2124. /package/dist/{field/features/link/drawer → features/link/nodes}/types.js +0 -0
  2125. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  2126. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
  2127. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/types.d.ts +0 -0
  2128. /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/types.js +0 -0
  2129. /package/dist/{field/features → features}/lists/checklist/markdownTransformers.d.ts +0 -0
  2130. /package/dist/{field/features/lists/orderedlist → features/lists/orderedList}/markdownTransformer.d.ts +0 -0
  2131. /package/dist/{field/features/lists/unorderedlist → features/lists/unorderedList}/markdownTransformer.d.ts +0 -0
  2132. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -0
  2133. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -0
  2134. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -0
  2135. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -0
  2136. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -0
  2137. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -0
  2138. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -0
  2139. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -0
  2140. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -0
  2141. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -0
  2142. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -0
  2143. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -0
  2144. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -0
  2145. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -0
  2146. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -0
  2147. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -0
  2148. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -0
  2149. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -0
  2150. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -0
  2151. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -0
  2152. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -0
  2153. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -0
  2154. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -0
  2155. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -0
  2156. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -0
  2157. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -0
  2158. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -0
  2159. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -0
  2160. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -0
  2161. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -0
  2162. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/index.js +0 -0
  2163. /package/dist/{field/features/link/nodes → features/migrations/lexicalPluginToLexical/converter}/types.js +0 -0
  2164. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  2165. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -0
  2166. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -0
  2167. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -0
  2168. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/client.js +0 -0
  2169. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -0
  2170. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/converter.js +0 -0
  2171. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -0
  2172. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/client.js +0 -0
  2173. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -0
  2174. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/converter.js +0 -0
  2175. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -0
  2176. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/client.js +0 -0
  2177. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -0
  2178. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/converter.js +0 -0
  2179. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -0
  2180. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/client.js +0 -0
  2181. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -0
  2182. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -0
  2183. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -0
  2184. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -0
  2185. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -0
  2186. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -0
  2187. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -0
  2188. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/client.js +0 -0
  2189. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -0
  2190. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -0
  2191. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/client.js +0 -0
  2192. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -0
  2193. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -0
  2194. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -0
  2195. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -0
  2196. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -0
  2197. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -0
  2198. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -0
  2199. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/client.js +0 -0
  2200. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -0
  2201. /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -0
  2202. /package/dist/{field/features → features}/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -0
  2203. /package/dist/{field/features → features}/migrations/slateToLexical/converter/defaultConverters.js +0 -0
  2204. /package/dist/{field/features → features}/migrations/slateToLexical/converter/index.d.ts +0 -0
  2205. /package/dist/{field/features/migrations/lexicalPluginToLexical → features/migrations/slateToLexical}/converter/types.js +0 -0
  2206. /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  2207. /package/dist/{field/features → features}/relationship/drawer/commands.d.ts +0 -0
  2208. /package/dist/{field/features → features}/relationship/drawer/index.d.ts +0 -0
  2209. /package/dist/{field/features → features}/relationship/utils/EnabledRelationshipsCondition.d.ts +0 -0
  2210. /package/dist/{field/features/migrations/slateToLexical/converter → features/toolbars}/types.js +0 -0
  2211. /package/dist/{field/features → features}/upload/component/index.d.ts +0 -0
  2212. /package/dist/{field/features → features}/upload/drawer/commands.d.ts +0 -0
  2213. /package/dist/{field/features → features}/upload/drawer/index.d.ts +0 -0
  2214. /package/dist/{field/lexical → lexical}/config/client/default.js +0 -0
  2215. /package/dist/{field/features → lexical/config}/types.js +0 -0
  2216. /package/dist/{field/lexical → lexical}/nodes/index.js +0 -0
  2217. /package/dist/{field/lexical → lexical}/plugins/MarkdownShortcut/index.d.ts +0 -0
  2218. /package/dist/{field/lexical/config → lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin}/types.js +0 -0
  2219. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.d.ts +0 -0
  2220. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.js +0 -0
  2221. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/debounce.d.ts +0 -0
  2222. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/debounce.js +0 -0
  2223. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts +0 -0
  2224. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +0 -0
  2225. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +0 -0
  2226. /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.d.ts +0 -0
  2227. /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.js +0 -0
  2228. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.d.ts +0 -0
  2229. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.js +0 -0
  2230. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.d.ts +0 -0
  2231. /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.d.ts +0 -0
  2232. /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.js +0 -0
  2233. /package/dist/{field/lexical → lexical}/plugins/handles/utils/setHandlePosition.d.ts +0 -0
  2234. /package/dist/{field/lexical → lexical}/theme/EditorTheme.d.ts +0 -0
  2235. /package/dist/{field/lexical → lexical}/ui/icons/AI/index.d.ts +0 -0
  2236. /package/dist/{field/lexical → lexical}/ui/icons/Add/index.svg +0 -0
  2237. /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.d.ts +0 -0
  2238. /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.d.ts +0 -0
  2239. /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.d.ts +0 -0
  2240. /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.d.ts +0 -0
  2241. /package/dist/{field/lexical → lexical}/ui/icons/Block/index.d.ts +0 -0
  2242. /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.d.ts +0 -0
  2243. /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.d.ts +0 -0
  2244. /package/dist/{field/lexical → lexical}/ui/icons/Caret/index.svg +0 -0
  2245. /package/dist/{field/lexical → lexical}/ui/icons/Checklist/index.d.ts +0 -0
  2246. /package/dist/{field/lexical → lexical}/ui/icons/Code/index.d.ts +0 -0
  2247. /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.d.ts +0 -0
  2248. /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/index.svg +0 -0
  2249. /package/dist/{field/lexical → lexical}/ui/icons/Edit/index.svg +0 -0
  2250. /package/dist/{field/lexical → lexical}/ui/icons/H1/index.d.ts +0 -0
  2251. /package/dist/{field/lexical → lexical}/ui/icons/H2/index.d.ts +0 -0
  2252. /package/dist/{field/lexical → lexical}/ui/icons/H3/index.d.ts +0 -0
  2253. /package/dist/{field/lexical → lexical}/ui/icons/H4/index.d.ts +0 -0
  2254. /package/dist/{field/lexical → lexical}/ui/icons/H5/index.d.ts +0 -0
  2255. /package/dist/{field/lexical → lexical}/ui/icons/H6/index.d.ts +0 -0
  2256. /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.d.ts +0 -0
  2257. /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.d.ts +0 -0
  2258. /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.d.ts +0 -0
  2259. /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.d.ts +0 -0
  2260. /package/dist/{field/lexical → lexical}/ui/icons/Link/index.d.ts +0 -0
  2261. /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.d.ts +0 -0
  2262. /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.d.ts +0 -0
  2263. /package/dist/{field/lexical → lexical}/ui/icons/Remove/index.svg +0 -0
  2264. /package/dist/{field/lexical → lexical}/ui/icons/Strikethrough/index.d.ts +0 -0
  2265. /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.d.ts +0 -0
  2266. /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.d.ts +0 -0
  2267. /package/dist/{field/lexical → lexical}/ui/icons/Text/index.d.ts +0 -0
  2268. /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.d.ts +0 -0
  2269. /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.d.ts +0 -0
  2270. /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.d.ts +0 -0
  2271. /package/dist/{field/lexical → lexical}/utils/canUseDOM.d.ts +0 -0
  2272. /package/dist/{field/lexical → lexical}/utils/canUseDOM.js +0 -0
  2273. /package/dist/{field/lexical → lexical}/utils/environment.d.ts +0 -0
  2274. /package/dist/{field/lexical → lexical}/utils/environment.js +0 -0
  2275. /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.d.ts +0 -0
  2276. /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.js +0 -0
  2277. /package/dist/{field/lexical → lexical}/utils/getSelectedNode.d.ts +0 -0
  2278. /package/dist/{field/lexical → lexical}/utils/guard.d.ts +0 -0
  2279. /package/dist/{field/lexical → lexical}/utils/guard.js +0 -0
  2280. /package/dist/{field/lexical → lexical}/utils/invariant.d.ts +0 -0
  2281. /package/dist/{field/lexical → lexical}/utils/invariant.js +0 -0
  2282. /package/dist/{field/lexical → lexical}/utils/joinClasses.d.ts +0 -0
  2283. /package/dist/{field/lexical → lexical}/utils/joinClasses.js +0 -0
  2284. /package/dist/{field/lexical → lexical}/utils/markdown/createBlockNode.js +0 -0
  2285. /package/dist/{field/lexical → lexical}/utils/point.d.ts +0 -0
  2286. /package/dist/{field/lexical → lexical}/utils/point.js +0 -0
  2287. /package/dist/{field/lexical → lexical}/utils/rect.d.ts +0 -0
  2288. /package/dist/{field/lexical → lexical}/utils/rect.js +0 -0
  2289. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.d.ts +0 -0
  2290. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.js +0 -0
  2291. /package/dist/{field/lexical → lexical}/utils/swipe.d.ts +0 -0
  2292. /package/dist/{field/lexical → lexical}/utils/swipe.js +0 -0
  2293. /package/dist/{field/lexical → lexical}/utils/url.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lexical/nodes/index.ts", "../../../src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx", "../../../src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx", "../../../src/lexical/utils/guard.ts", "../../../src/lexical/utils/point.ts", "../../../src/lexical/utils/rect.ts"],
4
+ "sourcesContent": ["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", "'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 { 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\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 (!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, ReactPortal, RefObject } 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: RefObject<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 const characterOffset = match.replaceableString.length\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: RefObject<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): RefObject<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", "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"],
5
+ "mappings": "AAIO,SAASA,GAAgB,CAC9B,aAAAC,CACF,EAEuD,CACrD,OAAOA,EAAa,SAAS,MAAM,IAAKC,GAClC,SAAUA,EACLA,EAAK,KAEPA,CACR,CACH,CCNA,OAAS,6BAAAC,OAAiC,2CAC1C,OAAS,iBAAAC,OAAqB,iBAC9B,OACE,iBAAAC,EACA,qBAAAC,EACA,eAAAC,GACA,wBAAAC,GACA,iBAAAC,OACK,UACP,OAAmB,eAAAC,EAAa,aAAAC,EAAW,YAAAC,OAAgB,QAC3D,UAAYC,MAAW,QCfvB,OAAS,6BAAAC,MAAiC,2CAC1C,OAAS,iBAAAC,MAAqB,iBAC9B,OACE,iBAAAC,EACA,qBAAAC,EACA,wBAAAC,EACA,0BAAAC,EACA,wBAAAC,EACA,qBAAAC,EACA,sBAAAC,EACA,mBAAAC,EACA,iBAAAC,MACK,UACP,OAAS,eAAAC,EAAa,aAAAC,EAAW,mBAAAC,EAAiB,WAAAC,EAAS,UAAAC,GAAQ,YAAAC,OAAgB,QAUnF,IAAMC,GAAY,mBAaZC,EAA0BC,GAAwB,CACtD,IAAMC,EAAyB,SAAS,eAAe,YAAY,EACnE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AE,EAAO,IAAAD,CAAI,EAAkB,CACzD,OACEA,IAAQ,KAAK,MAAQE,IAAW,KAAK,SAAWH,IAAS,KAAK,OAASE,IAAU,KAAK,MAE1F,CAEO,gBAAgB,CACrB,OAAAC,EAAS,KAAK,OACd,KAAAH,EAAO,KAAK,KACZ,MAAAE,EAAQ,KAAK,MACb,IAAAD,EAAM,KAAK,GACb,EAAS,CACP,OAAO,IAAIF,EAAKC,EAAMC,EAAKC,EAAOC,CAAM,CAC1C,CAEO,eAAeuB,EAAqB,CACzC,GAAM,CAAE,OAAQC,EAAI,KAAMC,EAAI,IAAKC,EAAI,MAAOC,CAAG,EAAIJ,EAC/C,CAAE,OAAQK,EAAI,KAAMC,EAAI,IAAKC,EAAI,MAAOC,CAAG,EAAI,KAC/CC,EAAOP,EAAKE,GAAME,EAAKE,EAAKN,EAAKE,EAAKE,EAAKE,EAC3CE,EAAOP,EAAKF,GAAMM,EAAKF,EAAKF,EAAKF,EAAKM,EAAKF,EAC3CM,EAAOT,GAAMI,EAAKJ,EAAKI,EACvBM,EAAOT,GAAMI,EAAKJ,EAAKI,EAC7B,OAAOE,EAAOE,GAAQP,EAAKI,GAAME,EAAOE,GAAQX,EAAKI,CACvD,CAEA,IAAI,QAAiB,CACnB,OAAO,KAAK,OACd,CAEA,IAAI,QAAiB,CACnB,OAAO,KAAK,IAAI,KAAK,QAAU,KAAK,IAAI,CAC1C,CAEA,IAAI,MAAe,CACjB,OAAO,KAAK,KACd,CAEA,IAAI,OAAgB,CAClB,OAAO,KAAK,MACd,CAEA,IAAI,KAAc,CAChB,OAAO,KAAK,IACd,CAEA,IAAI,OAAgB,CAClB,OAAO,KAAK,IAAI,KAAK,MAAQ,KAAK,MAAM,CAC1C,CACF",
6
+ "names": ["getEnabledNodes", "editorConfig", "node", "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", "useLexicalComposerContext", "resolution", "setResolution", "useState", "anchorElementRef", "useMenuAnchorRef", "closeTypeahead", "useCallback", "openTypeahead", "res", "useEffect", "mergeRegister", "node", "match", "COMMAND_PRIORITY_LOW", "updateListener", "removeUpdateListener", "LexicalMenu", "isHTMLElement", "x", "Point", "x", "y", "point", "isPoint", "Rect", "_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"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{b as y}from"./chunk-IWZVO3AI.js";import{Drawer as $}from"@payloadcms/ui";import{Form as w,FormSubmit as R,RenderFields as F,useConfig as E,useDocumentInfo as M,useFieldProps as T,useTranslation as A}from"@payloadcms/ui";import{getFormState as g}from"@payloadcms/ui/shared";import{useCallback as L,useEffect as P,useState as I}from"react";import{v4 as k}from"uuid";import{jsx as D,jsxs as N}from"react/jsx-runtime";var C=({data:e,featureKey:t,handleDrawerSubmit:o,schemaPathSuffix:a})=>{let{t:i}=A(),{id:n}=M(),{schemaPath:l}=T(),r=E(),[p,x]=I(!1),{field:{richTextComponentMap:_}}=y(),U=`lexical_internal_feature.${t}.fields${a?`.${a}`:""}`,s=`${l}.lexical_internal_feature.${t}${a?`.${a}`:""}`,d=_.get(U);P(()=>{(async()=>{let O=await g({apiRoute:r.routes.api,body:{id:n,data:e??{},operation:"update",schemaPath:s},serverURL:r.serverURL});x(O)})()},[r.routes.api,r.serverURL,s,n,e]);let m=L(async({formState:f})=>await g({apiRoute:r.routes.api,body:{id:n,formState:f,operation:"update",schemaPath:s},serverURL:r.serverURL}),[r.routes.api,r.serverURL,s,n]);return p===!1?null:N(w,{beforeSubmit:[m],disableValidationOnSubmit:!0,fields:Array.isArray(d)?d:[],initialState:p,onChange:[m],onSubmit:o,uuid:k(),children:[D(F,{fieldMap:Array.isArray(d)?d:[],forceRender:!0,path:"",readOnly:!1,schemaPath:s}),D(R,{children:i("fields:saveChanges")})]})};import{jsx as S}from"react/jsx-runtime";var lt=({className:e,data:t,drawerSlug:o,drawerTitle:a,featureKey:i,handleDrawerSubmit:n,schemaPathSuffix:l})=>S($,{className:e,slug:o,title:a??"",children:S(C,{data:t,featureKey:i,handleDrawerSubmit:n,schemaPathSuffix:l})});import{useAuth as J,useConfig as H,useEntityVisibility as B}from"@payloadcms/ui";import*as c from"react";var K=(e,t)=>e.filter(({slug:o,admin:{enableRichTextRelationship:a},upload:i})=>t.visibleEntities.collections.includes(o)?t?.uploads?a&&!!i:i?!1:a:!1),ct=e=>{let{children:t,uploads:o=!1,...a}=e,{collections:i}=H(),{user:n}=J(),{visibleEntities:l}=B(),[r]=c.useState(()=>K(i,{uploads:o,user:n,visibleEntities:l}).map(({slug:p})=>p));return r.length?c.cloneElement(t,{...a,enabledCollectionSlugs:r}):null};import{createCommand as W}from"lexical";var ft=W("INSERT_UPLOAD_WITH_DRAWER_COMMAND");import{DecoratorBlockNode as j}from"@lexical/react/LexicalDecoratorBlockNode.js";import b from"bson-objectid";import{$applyNodeReplacement as V}from"lexical";import*as h from"react";import{jsx as Q}from"react/jsx-runtime";var X=h.lazy(()=>import("./component-D4GWDXK5.js").then(e=>({default:e.UploadComponent})));function G(e){return e.parentElement!=null&&e.parentElement.tagName==="LI"&&e.previousSibling===null&&e.getAttribute("aria-roledescription")==="checkbox"}function q(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:v({data:{fields:{},relationTo:a,value:o}})}}let t=e;return t.src.startsWith("file:///")||G(t),null}var u=class e extends j{__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:q,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new b.default().toHexString(),t.version=3);let o={id:t.id,fields:t.fields,relationTo:t.relationTo,value:t.value},a=v({data:o});return a.setFormat(t.format),a}static isInline(){return!1}decorate(){return Q(X,{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:"upload",version:3}}getData(){return this.getLatest().__data}setData(t){let o=this.getWritable();o.__data=t}updateDOM(){return!1}};function v({data:e}){return e?.id||(e.id=new b.default().toHexString()),V(new u({data:e}))}function St(e){return e instanceof u}export{lt as a,ct as b,ft as c,u as d,v as e,St as f};
2
+ //# sourceMappingURL=chunk-IPCJ5EVK.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utilities/fieldsDrawer/Drawer.tsx", "../../../src/utilities/fieldsDrawer/DrawerContent.tsx", "../../../src/features/relationship/utils/EnabledRelationshipsCondition.tsx", "../../../src/features/upload/drawer/commands.ts", "../../../src/features/upload/nodes/UploadNode.tsx"],
4
+ "sourcesContent": ["'use client'\nimport type { Data, FormState, JsonObject } from 'payload'\n\nimport { Drawer } from '@payloadcms/ui'\nimport React from 'react'\n\nimport { DrawerContent } from './DrawerContent.js'\n\nexport type FieldsDrawerProps = {\n className?: string\n data?: Data\n drawerSlug: string\n drawerTitle?: string\n featureKey: string\n handleDrawerSubmit: (fields: FormState, data: JsonObject) => void\n schemaPathSuffix?: string\n}\n\n/**\n * This FieldsDrawer component can be used to easily create a Drawer that contains a form with fields within your feature.\n * The fields are taken directly from the schema map based on your `featureKey` and `schemaPathSuffix`. Thus, this can only\n * be used if you provide your field schema inside the `generateSchemaMap` prop of your feature.server.ts.\n */\nexport const FieldsDrawer: React.FC<FieldsDrawerProps> = ({\n className,\n data,\n drawerSlug,\n drawerTitle,\n featureKey,\n handleDrawerSubmit,\n schemaPathSuffix,\n}) => {\n // The Drawer only renders its children (and itself) if it's open. Thus, by extracting the main content\n // to DrawerContent, this should be faster\n return (\n <Drawer className={className} slug={drawerSlug} title={drawerTitle ?? ''}>\n <DrawerContent\n data={data}\n featureKey={featureKey}\n handleDrawerSubmit={handleDrawerSubmit}\n schemaPathSuffix={schemaPathSuffix}\n />\n </Drawer>\n )\n}\n", "'use client'\nimport type { FormProps } from '@payloadcms/ui'\nimport type { FormState } from 'payload'\n\nimport {\n Form,\n FormSubmit,\n RenderFields,\n useConfig,\n useDocumentInfo,\n useFieldProps,\n useTranslation,\n} from '@payloadcms/ui'\nimport { getFormState } from '@payloadcms/ui/shared'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { v4 as uuid } from 'uuid'\n\nimport type { FieldsDrawerProps } from './Drawer.js'\n\nimport { useEditorConfigContext } from '../../lexical/config/client/EditorConfigProvider.js'\n\nexport const DrawerContent: React.FC<Omit<FieldsDrawerProps, 'drawerSlug' | 'drawerTitle'>> = ({\n data,\n featureKey,\n handleDrawerSubmit,\n schemaPathSuffix,\n}) => {\n const { t } = useTranslation()\n const { id } = useDocumentInfo()\n const { schemaPath } = useFieldProps()\n const config = useConfig()\n const [initialState, setInitialState] = useState<FormState | false>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedFieldsPath = `lexical_internal_feature.${featureKey}.fields${schemaPathSuffix ? `.${schemaPathSuffix}` : ''}`\n const schemaFieldsPath = `${schemaPath}.lexical_internal_feature.${featureKey}${schemaPathSuffix ? `.${schemaPathSuffix}` : ''}`\n\n const fieldMap = richTextComponentMap.get(componentMapRenderedFieldsPath) // Field Schema\n\n useEffect(() => {\n const awaitInitialState = async () => {\n const state = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n data: data ?? {},\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n }) // Form State\n\n setInitialState(state)\n }\n\n void awaitInitialState()\n }, [config.routes.api, config.serverURL, schemaFieldsPath, id, data])\n\n const onChange: FormProps['onChange'][0] = useCallback(\n async ({ formState: prevFormState }) => {\n return await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n formState: prevFormState,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n })\n },\n\n [config.routes.api, config.serverURL, schemaFieldsPath, id],\n )\n\n if (initialState === false) {\n return null\n }\n\n return (\n <Form\n beforeSubmit={[onChange]}\n disableValidationOnSubmit\n fields={Array.isArray(fieldMap) ? fieldMap : []}\n initialState={initialState}\n onChange={[onChange]}\n onSubmit={handleDrawerSubmit}\n uuid={uuid()}\n >\n <RenderFields\n fieldMap={Array.isArray(fieldMap) ? fieldMap : []}\n forceRender\n path=\"\" // See Blocks feature path for details as for why this is empty\n readOnly={false}\n schemaPath={schemaFieldsPath}\n />\n\n <FormSubmit>{t('fields:saveChanges')}</FormSubmit>\n </Form>\n )\n}\n", "import type { ClientCollectionConfig, ClientUser, VisibleEntities } from 'payload'\n\nimport { useAuth, useConfig, useEntityVisibility } from '@payloadcms/ui'\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 { CollectionSlug, JsonObject } from 'payload'\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: JsonObject\n id: string\n relationTo: CollectionSlug\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 = {\n children?: never // required so that our typed editor state doesn't automatically add children\n type: 'upload'\n} & 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: 'upload',\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 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": "wCAGA,OAAS,UAAAA,MAAc,iBCCvB,OACE,QAAAC,EACA,cAAAC,EACA,gBAAAC,EACA,aAAAC,EACA,mBAAAC,EACA,iBAAAC,EACA,kBAAAC,MACK,iBACP,OAAS,gBAAAC,MAAoB,wBAC7B,OAAgB,eAAAC,EAAa,aAAAC,EAAW,YAAAC,MAAgB,QACxD,OAAS,MAAMC,MAAY,OAmEvB,OASE,OAAAC,EATF,QAAAC,MAAA,oBA7DG,IAAMC,EAAiF,CAAC,CAC7F,KAAAC,EACA,WAAAC,EACA,mBAAAC,EACA,iBAAAC,CACF,IAAM,CACJ,GAAM,CAAE,EAAAC,CAAE,EAAIC,EAAe,EACvB,CAAE,GAAAC,CAAG,EAAIC,EAAgB,EACzB,CAAE,WAAAC,CAAW,EAAIC,EAAc,EAC/BC,EAASC,EAAU,EACnB,CAACC,EAAcC,CAAe,EAAIC,EAA4B,EAAK,EACnE,CACJ,MAAO,CAAE,qBAAAC,CAAqB,CAChC,EAAIC,EAAuB,EAErBC,EAAiC,4BAA4BhB,CAAU,UAAUE,EAAmB,IAA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AU,GAG3B,IAAMC,EAA2B,CAC/B,GAAID,EAAe,GACnB,OAAQA,EAAe,OACvB,WAAYA,EAAe,WAC3B,MAAOA,EAAe,KACxB,EAEMD,EAAON,EAAkB,CAAE,KAAMQ,CAAa,CAAC,EACrD,OAAAF,EAAK,UAAUC,EAAe,MAAM,EAE7BD,CACT,CAEA,OAAO,UAAkB,CACvB,MAAO,EACT,CAEA,UAAwB,CAEtB,OAAOf,EAACC,EAAA,CAAmB,KAAM,KAAK,OAAQ,OAAQ,KAAK,SAAU,QAAS,KAAK,OAAO,EAAG,CAC/F,CAEA,WAA6B,CAC3B,IAAMiB,EAAU,SAAS,cAAc,KAAK,EAC5C,OAAAA,EAAQ,aAAa,yBAA0B,OAAO,KAAK,QAAQ,KAAK,CAAC,EACzEA,EAAQ,aAAa,kCAAmC,KAAK,QAAQ,UAAU,EAExE,CAAE,QAAAA,CAAQ,CACnB,CAEA,YAAmC,CACjC,MAAO,CACL,GAAG,MAAM,WAAW,EACpB,GAAG,KAAK,QAAQ,EAChB,KAAM,SACN,QAAS,CACX,CACF,CAEA,SAAsB,CACpB,OAAO,KAAK,UAAU,EAAE,MAC1B,CAEA,QAAQN,EAAwB,CAC9B,IAAMO,EAAW,KAAK,YAAY,EAClCA,EAAS,OAASP,CACpB,CAEA,WAAmB,CACjB,MAAO,EACT,CACF,EAEO,SAASH,EAAkB,CAChC,KAAAG,CACF,EAEe,CACb,OAAKA,GAAM,KACTA,EAAK,GAAK,IAAIf,EAAS,QAAQ,EAAE,YAAY,GAExCC,EAAsB,IAAIY,EAAW,CAAE,KAAME,CAAmB,CAAC,CAAC,CAC3E,CAEO,SAASQ,GAAcL,EAA0D,CACtF,OAAOA,aAAgBL,CACzB",
6
+ "names": ["Drawer", "Form", "FormSubmit", "RenderFields", "useConfig", "useDocumentInfo", "useFieldProps", "useTranslation", "getFormState", "useCallback", "useEffect", "useState", "uuid", "jsx", "jsxs", "DrawerContent", "data", "featureKey", "handleDrawerSubmit", "schemaPathSuffix", "t", "useTranslation", "id", "useDocumentInfo", "schemaPath", "useFieldProps", "config", "useConfig", "initialState", "setInitialState", "useState", "richTextComponentMap", "useEditorConfigContext", "componentMapRenderedFieldsPath", "schemaFieldsPath", "fieldMap", "useEffect", "state", "getFormState", "onChange", "useCallback", "prevFormState", "Form", "uuid", "RenderFields", "FormSubmit", "jsx", "FieldsDrawer", "className", "data", "drawerSlug", "drawerTitle", "featureKey", "handleDrawerSubmit", "schemaPathSuffix", "Drawer", "DrawerContent", "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
+ }
@@ -0,0 +1,2 @@
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:C,parentContext:r})=>{let[u]=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:u,editorConfig:s,editorContainerRef:c,field:C,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}),[u,e,s,c,C,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-IWZVO3AI.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lexical/config/client/EditorConfigProvider.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport type { LexicalEditor } from 'lexical'\nimport type { FormFieldBase } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport * as React from 'react'\nimport { createContext, useContext, useMemo, useRef, useState } from 'react'\n\nimport type { SanitizedClientEditorConfig } from '../types.js'\n\n// Should always produce a 20 character pseudo-random string\nfunction generateQuickGuid(): string {\n return Math.random().toString(36).substring(2, 12) + Math.random().toString(36).substring(2, 12)\n}\n\nexport interface EditorConfigContextType {\n // Editor focus handling\n blurEditor: (editorContext: EditorConfigContextType) => void\n childrenEditors: React.RefObject<Map<string, EditorConfigContextType>>\n editor: LexicalEditor\n editorConfig: SanitizedClientEditorConfig\n editorContainerRef: React.RefObject<HTMLDivElement>\n field: {\n editorConfig: SanitizedClientEditorConfig // With rendered features n stuff\n name: string\n richTextComponentMap: Map<string, React.ReactNode>\n } & FormFieldBase\n // Editor focus handling\n focusEditor: (editorContext: EditorConfigContextType) => void\n focusedEditor: EditorConfigContextType | null\n parentEditor: EditorConfigContextType\n registerChild: (uuid: string, editorContext: EditorConfigContextType) => void\n unregisterChild?: (uuid: string) => void\n uuid: string\n}\n\nconst Context: React.Context<EditorConfigContextType> = createContext({\n editorConfig: null,\n field: null,\n uuid: null,\n})\n\nexport const EditorConfigProvider = ({\n children,\n editorConfig,\n editorContainerRef,\n fieldProps,\n parentContext,\n}: {\n children: React.ReactNode\n editorConfig: SanitizedClientEditorConfig\n editorContainerRef: React.RefObject<HTMLDivElement>\n fieldProps: {\n editorConfig: SanitizedClientEditorConfig // With rendered features n stuff\n name: string\n richTextComponentMap: Map<string, React.ReactNode>\n } & FormFieldBase\n parentContext?: EditorConfigContextType\n}): React.ReactNode => {\n const [editor] = useLexicalComposerContext()\n // State to store the UUID\n const [uuid] = useState(generateQuickGuid())\n\n const childrenEditors = useRef<Map<string, EditorConfigContextType>>(new Map())\n const [focusedEditor, setFocusedEditor] = useState<EditorConfigContextType | null>(null)\n const focusHistory = useRef<Set<string>>(new Set())\n\n const editorContext = useMemo(\n () =>\n ({\n blurEditor: (editorContext: EditorConfigContextType) => {\n //setFocusedEditor(null) // Clear focused editor\n focusHistory.current.clear() // Reset focus history when focus is lost\n },\n childrenEditors,\n editor,\n editorConfig,\n editorContainerRef,\n field: fieldProps,\n focusEditor: (editorContext: EditorConfigContextType) => {\n const editorUUID = editorContext.uuid\n\n // Avoid recursion by checking if this editor is already focused in this cycle\n if (focusHistory.current.has(editorUUID)) {\n return\n }\n\n // Add this editor to the history to prevent future recursions in this cycle\n focusHistory.current.add(editorUUID)\n setFocusedEditor(editorContext)\n\n // Propagate focus event to parent and children, ensuring they do not refocus this editor\n if (parentContext?.uuid) {\n parentContext.focusEditor(editorContext)\n }\n childrenEditors.current.forEach((childEditor, childUUID) => {\n childEditor.focusEditor(editorContext)\n })\n\n focusHistory.current.clear()\n },\n focusedEditor,\n parentEditor: parentContext,\n registerChild: (childUUID, childEditorContext) => {\n if (!childrenEditors.current.has(childUUID)) {\n const newMap = new Map(childrenEditors.current)\n newMap.set(childUUID, childEditorContext)\n childrenEditors.current = newMap\n }\n },\n unregisterChild: (childUUID) => {\n if (childrenEditors.current.has(childUUID)) {\n const newMap = new Map(childrenEditors.current)\n newMap.delete(childUUID)\n childrenEditors.current = newMap\n }\n },\n\n uuid,\n }) as EditorConfigContextType,\n [\n editor,\n childrenEditors,\n editorConfig,\n editorContainerRef,\n fieldProps,\n focusedEditor,\n parentContext,\n uuid,\n ],\n )\n\n return <Context.Provider value={editorContext}>{children}</Context.Provider>\n}\n\nexport const useEditorConfigContext = (): EditorConfigContextType => {\n const context = useContext(Context)\n if (context === undefined) {\n throw new Error('useEditorConfigContext must be used within an EditorConfigProvider')\n }\n return context\n}\n"],
5
+ "mappings": "AAKA,OAAS,6BAAAA,MAAiC,2CAE1C,OAAS,iBAAAC,EAAe,cAAAC,EAAY,WAAAC,EAAS,UAAAC,EAAQ,YAAAC,MAAgB,QA8H5D,cAAAC,MAAA,oBAzHT,SAASC,GAA4B,CACnC,OAAO,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAG,EAAE,EAAI,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAG,EAAE,CACjG,CAuBA,IAAMC,EAAkDP,EAAc,CACpE,aAAc,KACd,MAAO,KACP,KAAM,IACR,CAAC,EAEYQ,EAAuB,CAAC,CACnC,SAAAC,EACA,aAAAC,EACA,mBAAAC,EACA,WAAAC,EACA,cAAAC,CACF,IAUuB,CACrB,GAAM,CAACC,CAAM,EAAIf,EAA0B,EAErC,CAACgB,CAAI,EAAIX,EAASE,EAAkB,CAAC,EAErCU,EAAkBb,EAA6C,IAAI,GAAK,EACxE,CAACc,EAAeC,CAAgB,EAAId,EAAyC,IAAI,EACjFe,EAAehB,EAAoB,IAAI,GAAK,EAE5CiB,EAAgBlB,EACpB,KACG,CACC,WAAakB,GAA2C,CAEtDD,EAAa,QAAQ,MAAM,CAC7B,EACA,gBAAAH,EACA,OAAAF,EACA,aAAAJ,EACA,mBAAAC,EACA,MAAOC,EACP,YAAcQ,GAA2C,CACvD,IAAMC,EAAaD,EAAc,KAG7BD,EAAa,QAAQ,IAAIE,CAAU,IAKvCF,EAAa,QAAQ,IAAIE,CAAU,EACnCH,EAAiBE,CAAa,EAG1BP,GAAe,MACjBA,EAAc,YAAYO,CAAa,EAEzCJ,EAAgB,QAAQ,QAAQ,CAACM,EAAaC,IAAc,CAC1DD,EAAY,YAAYF,CAAa,CACvC,CAAC,EAEDD,EAAa,QAAQ,MAAM,EAC7B,EACA,cAAAF,EACA,aAAcJ,EACd,cAAe,CAACU,EAAWC,IAAuB,CAChD,GAAI,CAACR,EAAgB,QAAQ,IAAIO,CAAS,EAAG,CAC3C,IAAME,EAAS,IAAI,IAAIT,EAAgB,OAAO,EAC9CS,EAAO,IAAIF,EAAWC,CAAkB,EACxCR,EAAgB,QAAUS,CAC5B,CACF,EACA,gBAAkBF,GAAc,CAC9B,GAAIP,EAAgB,QAAQ,IAAIO,CAAS,EAAG,CAC1C,IAAME,EAAS,IAAI,IAAIT,EAAgB,OAAO,EAC9CS,EAAO,OAAOF,CAAS,EACvBP,EAAgB,QAAUS,CAC5B,CACF,EAEA,KAAAV,CACF,GACF,CACED,EACAE,EACAN,EACAC,EACAC,EACAK,EACAJ,EACAE,CACF,CACF,EAEA,OAAOV,EAACE,EAAQ,SAAR,CAAiB,MAAOa,EAAgB,SAAAX,EAAS,CAC3D,EAEaiB,EAAyB,IAA+B,CACnE,IAAMC,EAAU1B,EAAWM,CAAO,EAClC,GAAIoB,IAAY,OACd,MAAM,IAAI,MAAM,oEAAoE,EAEtF,OAAOA,CACT",
6
+ "names": ["useLexicalComposerContext", "createContext", "useContext", "useMemo", "useRef", "useState", "jsx", "generateQuickGuid", "Context", "EditorConfigProvider", "children", "editorConfig", "editorContainerRef", "fieldProps", "parentContext", "editor", "uuid", "childrenEditors", "focusedEditor", "setFocusedEditor", "focusHistory", "editorContext", "editorUUID", "childEditor", "childUUID", "childEditorContext", "newMap", "useEditorConfigContext", "context"]
7
+ }
@@ -0,0 +1,3 @@
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-VM36FRT2.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-Q5DYR7MH.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/horizontalRule/nodes/HorizontalRuleNode.tsx"],
4
+ "sourcesContent": ["import type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n LexicalCommand,\n LexicalNode,\n SerializedLexicalNode,\n Spread,\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 = Spread<\n {\n children?: never // required so that our typed editor state doesn't automatically add children\n type: 'horizontalrule'\n },\n SerializedLexicalNode\n>\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": "AAWA,OAAS,0BAAAA,MAA8B,iBACvC,OAAS,yBAAAC,EAAuB,iBAAAC,EAAe,iBAAAC,MAAqB,UACpE,UAAYC,MAAW,QAyEZ,cAAAC,MAAA,oBAvEX,IAAMC,EAAgC,OAAK,IACzC,OAAO,yBAAuB,EAAE,KAAMC,IAAY,CAChD,QAASA,EAAO,uBAClB,EAAE,CACJ,EAaaC,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
+ }
@@ -0,0 +1,2 @@
1
+ import{createCommand as o}from"lexical";var I=o("INSERT_BLOCK_COMMAND"),u=o("INSERT_INLINE_BLOCK_COMMAND"),k=o("OPEN_INLINE_BLOCK_DRAWER_COMMAND");import r from"bson-objectid";import{DecoratorNode as d}from"lexical";import{deepCopyObjectSimple as c}from"payload/shared";import s from"react";import{jsx as m}from"react/jsx-runtime";var a=s.lazy(()=>import("./componentInline-6EKPZSCV.js").then(t=>({default:t.InlineBlockComponent}))),i=class t extends d{__fields;constructor({fields:e,key:n}){super(n),this.__fields=e}static clone(e){return new t({fields:e.__fields,key:e.__key})}static getType(){return"inlineBlock"}static importDOM(){return{}}static importJSON(e){return p(e.fields)}static isInline(){return!1}canIndent(){return!0}createDOM(){let e=document.createElement("span");return e.classList.add("inline-block-container"),e}decorate(e,n){return m(a,{formData:this.getFields(),nodeKey:this.getKey()})}exportDOM(){let e=document.createElement("span");e.classList.add("inline-block-container");let n=document.createTextNode(this.getTextContent());return e.append(n),{element:e}}exportJSON(){return{type:"inlineBlock",fields:this.getFields(),version:1}}getFields(){return this.getLatest().__fields}getTextContent(){return"Block Field"}isInline(){return!0}setFields(e){let n=c(e),l=this.getWritable();l.__fields=n}updateDOM(){return!1}};function p(t){return new i({fields:{...t,id:t?.id||new r.default().toHexString()}})}function y(t){return t instanceof i}export{I as a,u as b,k as c,i as d,p as e,y as f};
2
+ //# sourceMappingURL=chunk-VUVXZJJR.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/blocks/plugin/commands.ts", "../../../src/features/blocks/nodes/InlineBlocksNode.tsx"],
4
+ "sourcesContent": ["import type { LexicalCommand } from 'lexical'\n\nimport { createCommand } from 'lexical'\n\nimport type { InsertBlockPayload } from './index.js'\n\nexport const INSERT_BLOCK_COMMAND: LexicalCommand<InsertBlockPayload> =\n createCommand('INSERT_BLOCK_COMMAND')\n\nexport const INSERT_INLINE_BLOCK_COMMAND: LexicalCommand<Partial<InsertBlockPayload>> =\n createCommand('INSERT_INLINE_BLOCK_COMMAND')\n\nexport const OPEN_INLINE_BLOCK_DRAWER_COMMAND: LexicalCommand<{\n fields: Partial<InsertBlockPayload>\n nodeKey?: string\n}> = createCommand('OPEN_INLINE_BLOCK_DRAWER_COMMAND')\n", "import type {\n DOMConversionMap,\n DOMExportOutput,\n EditorConfig,\n LexicalEditor,\n LexicalNode,\n NodeKey,\n SerializedLexicalNode,\n Spread,\n} from 'lexical'\n\nimport ObjectID from 'bson-objectid'\nimport { DecoratorNode } from 'lexical'\nimport { deepCopyObjectSimple } from 'payload/shared'\nimport React, { type JSX } from 'react'\n\nexport type InlineBlockFields = {\n /** Block form data */\n [key: string]: any\n //blockName: string\n blockType: string\n id: string\n}\n\nconst InlineBlockComponent = React.lazy(() =>\n import('../componentInline/index.js').then((module) => ({\n default: module.InlineBlockComponent,\n })),\n)\n\nexport type SerializedInlineBlockNode = Spread<\n {\n children?: never // required so that our typed editor state doesn't automatically add children\n fields: InlineBlockFields\n type: 'inlineBlock'\n },\n SerializedLexicalNode\n>\n\nexport class InlineBlockNode extends DecoratorNode<React.ReactElement> {\n __fields: InlineBlockFields\n\n constructor({ fields, key }: { fields: InlineBlockFields; key?: NodeKey }) {\n super(key)\n this.__fields = fields\n }\n\n static clone(node: InlineBlockNode): InlineBlockNode {\n return new InlineBlockNode({\n fields: node.__fields,\n key: node.__key,\n })\n }\n\n static getType(): string {\n return 'inlineBlock'\n }\n\n static importDOM(): DOMConversionMap<HTMLDivElement> | null {\n return {}\n }\n\n static importJSON(serializedNode: SerializedInlineBlockNode): InlineBlockNode {\n const node = $createInlineBlockNode(serializedNode.fields)\n return node\n }\n\n static isInline(): false {\n return false\n }\n canIndent() {\n return true\n }\n\n createDOM() {\n const element = document.createElement('span')\n element.classList.add('inline-block-container')\n\n return element\n }\n\n decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element {\n return <InlineBlockComponent formData={this.getFields()} nodeKey={this.getKey()} />\n }\n\n exportDOM(): DOMExportOutput {\n const element = document.createElement('span')\n element.classList.add('inline-block-container')\n\n const text = document.createTextNode(this.getTextContent())\n element.append(text)\n return { element }\n }\n\n exportJSON(): SerializedInlineBlockNode {\n return {\n type: 'inlineBlock',\n fields: this.getFields(),\n version: 1,\n }\n }\n\n getFields(): InlineBlockFields {\n return this.getLatest().__fields\n }\n\n getTextContent(): string {\n return `Block Field`\n }\n\n isInline() {\n return true\n }\n\n setFields(fields: InlineBlockFields): void {\n const fieldsCopy = deepCopyObjectSimple(fields)\n\n const writable = this.getWritable()\n writable.__fields = fieldsCopy\n }\n\n updateDOM(): boolean {\n return false\n }\n}\n\nexport function $createInlineBlockNode(fields: Exclude<InlineBlockFields, 'id'>): InlineBlockNode {\n return new InlineBlockNode({\n fields: {\n ...fields,\n id: fields?.id || new ObjectID.default().toHexString(),\n },\n })\n}\n\nexport function $isInlineBlockNode(\n node: InlineBlockNode | LexicalNode | null | undefined,\n): node is InlineBlockNode {\n return node instanceof InlineBlockNode\n}\n"],
5
+ "mappings": "AAEA,OAAS,iBAAAA,MAAqB,UAIvB,IAAMC,EACXD,EAAc,sBAAsB,EAEzBE,EACXF,EAAc,6BAA6B,EAEhCG,EAGRH,EAAc,kCAAkC,ECJrD,OAAOI,MAAc,gBACrB,OAAS,iBAAAC,MAAqB,UAC9B,OAAS,wBAAAC,MAA4B,iBACrC,OAAOC,MAAyB,QAoErB,cAAAC,MAAA,oBA1DX,IAAMC,EAAuBF,EAAM,KAAK,IACtC,OAAO,+BAA6B,EAAE,KAAMG,IAAY,CACtD,QAASA,EAAO,oBAClB,EAAE,CACJ,EAWaC,EAAN,MAAMC,UAAwBP,CAAkC,CACrE,SAEA,YAAY,CAAE,OAAAQ,EAAQ,IAAAC,CAA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IAAIT,EAAS,QAAQ,EAAE,YAAY,CACvD,CACF,CAAC,CACH,CAEO,SAASoB,EACdT,EACyB,CACzB,OAAOA,aAAgBJ,CACzB",
6
+ "names": ["createCommand", "INSERT_BLOCK_COMMAND", "INSERT_INLINE_BLOCK_COMMAND", "OPEN_INLINE_BLOCK_DRAWER_COMMAND", "ObjectID", "DecoratorNode", "deepCopyObjectSimple", "React", "jsx", "InlineBlockComponent", "module", "InlineBlockNode", "_InlineBlockNode", "fields", "key", "node", "serializedNode", "$createInlineBlockNode", "element", "editor", "config", "text", "fieldsCopy", "writable", "$isInlineBlockNode"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{a as L,b as O,c as A,f as F}from"./chunk-IPCJ5EVK.js";import{b as T}from"./chunk-IWZVO3AI.js";import{useLexicalComposerContext as X}from"@lexical/react/LexicalComposerContext.js";import{useLexicalNodeSelection as Z}from"@lexical/react/useLexicalNodeSelection.js";import{mergeRegister as ee}from"@lexical/utils";import{getTranslation as K}from"@payloadcms/translations";import{Button as N,DrawerToggler as oe,File as te,useConfig as ae,useDocumentDrawer as le,useDrawerSlug as re,useModal as ne,usePayloadAPI as ie,useTranslation as se}from"@payloadcms/ui";import{$getNodeByKey as E,$getSelection as de,$isNodeSelection as ce,CLICK_COMMAND as ue,COMMAND_PRIORITY_LOW as w,KEY_BACKSPACE_COMMAND as pe,KEY_DELETE_COMMAND as me}from"lexical";import{useCallback as i,useEffect as fe,useReducer as ge,useRef as Ce,useState as De}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";var t="lexical-upload",B={depth:0},ve=d=>{let{data:{fields:I,relationTo:R,value:c},nodeKey:l}=d,{collections:k,routes:{api:j},serverURL:W}=ae(),C=Ce(null),{closeModal:y}=ne(),[a]=X(),[r,u,D]=Z(l),{editorConfig:Y,field:v}=T(),{i18n:S,t:p}=se(),[$,H]=ge(e=>e+1,0),[n]=De(()=>k.find(e=>e.slug===R)),m=re("upload-drawer"),[z,q,{closeDrawer:h}]=le({id:c,collectionSlug:n.slug}),[{data:f},{setParams:P}]=ie(`${W}${j}/${n.slug}/${c}`,{initialParams:B}),U=f?.thumbnailURL||f?.url,G=i(()=>{a.update(()=>{E(l).remove()})},[a,l]),J=i(e=>{P({...B,cacheBust:$}),H(),h()},[P,$,h]),_=i(e=>{if(r&&ce(de())){e.preventDefault();let g=E(l);if(F(g))return g.remove(),!0}return!1},[r,l]),M=i(e=>e.target===C.current||C.current?.contains(e.target)?(e.shiftKey?u(!r):r||(D(),u(!0)),!0):!1,[r,u,D]);fe(()=>ee(a.registerCommand(ue,M,w),a.registerCommand(me,_,w),a.registerCommand(pe,_,w)),[D,a,r,l,_,u,M]);let x=(Y?.resolvedFeatureMap?.get("upload")?.sanitizedClientFeatureProps).collections?.[n.slug]?.hasExtraFields,Q=i((e,g)=>{a.update(()=>{let b=E(l);if(b){let V={...b.getData(),fields:g};b.setData(V)}}),y(m)},[y,a,m,l]);return s("div",{className:[t,r&&`${t}--selected`].filter(Boolean).join(" "),contentEditable:!1,ref:C,children:[s("div",{className:`${t}__card`,children:[s("div",{className:`${t}__topRow`,children:[o("div",{className:`${t}__thumbnail`,children:U?o("img",{alt:f?.filename,"data-lexical-upload-id":c,"data-lexical-upload-relation-to":R,src:U}):o(te,{})}),s("div",{className:`${t}__topRowRightPanel`,children:[o("div",{className:`${t}__collectionLabel`,children:K(n.labels.singular,S)}),a.isEditable()&&s("div",{className:`${t}__actions`,children:[x?o(oe,{className:`${t}__upload-drawer-toggler`,disabled:v?.readOnly,slug:m,children:o(N,{buttonStyle:"icon-label",el:"div",icon:"edit",onClick:e=>{e.preventDefault()},round:!0,tooltip:p("fields:editRelationship")})}):null,o(N,{buttonStyle:"icon-label",disabled:v?.readOnly,el:"div",icon:"swap",onClick:()=>{a.dispatchCommand(A,{replace:{nodeKey:l}})},round:!0,tooltip:p("fields:swapUpload")}),o(N,{buttonStyle:"icon-label",className:`${t}__removeButton`,disabled:v?.readOnly,icon:"x",onClick:e=>{e.preventDefault(),G()},round:!0,tooltip:p("fields:removeUpload")})]})]})]}),o("div",{className:`${t}__bottomRow`,children:o(q,{className:`${t}__doc-drawer-toggler`,children:o("strong",{children:f?.filename})})})]}),c&&o(z,{onSave:J}),x?o(L,{data:I,drawerSlug:m,drawerTitle:p("general:editLabel",{label:K(n.labels.singular,S)}),featureKey:"upload",handleDrawerSubmit:Q,schemaPathSuffix:n.slug}):null]})},xe=d=>o(O,{...d,uploads:!0,children:o(ve,{...d})});export{xe as UploadComponent};
2
+ //# sourceMappingURL=component-D4GWDXK5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/upload/component/index.tsx"],
4
+ "sourcesContent": ["'use client'\nimport type { ClientCollectionConfig, Data } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection.js'\nimport { mergeRegister } from '@lexical/utils'\nimport { getTranslation } from '@payloadcms/translations'\nimport {\n Button,\n DrawerToggler,\n File,\n useConfig,\n useDocumentDrawer,\n useDrawerSlug,\n useModal,\n usePayloadAPI,\n useTranslation,\n} from '@payloadcms/ui'\nimport {\n $getNodeByKey,\n $getSelection,\n $isNodeSelection,\n CLICK_COMMAND,\n COMMAND_PRIORITY_LOW,\n KEY_BACKSPACE_COMMAND,\n KEY_DELETE_COMMAND,\n} from 'lexical'\nimport React, { useCallback, useEffect, useReducer, useRef, useState } from 'react'\n\nimport type { ClientComponentProps } from '../../typesClient.js'\nimport type { UploadFeaturePropsClient } from '../feature.client.js'\nimport type { UploadData, UploadNode } from '../nodes/UploadNode.js'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport { FieldsDrawer } from '../../../utilities/fieldsDrawer/Drawer.js'\nimport { EnabledRelationshipsCondition } from '../../relationship/utils/EnabledRelationshipsCondition.js'\nimport { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from '../drawer/commands.js'\nimport { $isUploadNode } from '../nodes/UploadNode.js'\nconst baseClass = 'lexical-upload'\n\nconst initialParams = {\n depth: 0,\n}\n\nexport type ElementProps = {\n data: UploadData\n nodeKey: string\n}\n\nconst Component: React.FC<ElementProps> = (props) => {\n const {\n data: { fields, relationTo, value },\n nodeKey,\n } = props\n\n const {\n collections,\n routes: { api },\n serverURL,\n } = useConfig()\n const uploadRef = useRef<HTMLDivElement | null>(null)\n const { closeModal } = useModal()\n\n const [editor] = useLexicalComposerContext()\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n\n const { editorConfig, field } = useEditorConfigContext()\n\n const { i18n, t } = useTranslation()\n const [cacheBust, dispatchCacheBust] = useReducer((state) => state + 1, 0)\n const [relatedCollection] = useState<ClientCollectionConfig>(() =>\n collections.find((coll) => coll.slug === relationTo),\n )\n\n const drawerSlug = useDrawerSlug('upload-drawer')\n\n const [DocumentDrawer, DocumentDrawerToggler, { closeDrawer }] = useDocumentDrawer({\n id: value,\n collectionSlug: relatedCollection.slug,\n })\n\n // Get the referenced document\n const [{ data }, { setParams }] = usePayloadAPI(\n `${serverURL}${api}/${relatedCollection.slug}/${value}`,\n { initialParams },\n )\n\n const thumbnailSRC = data?.thumbnailURL || data?.url\n\n const removeUpload = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey).remove()\n })\n }, [editor, nodeKey])\n\n const updateUpload = useCallback(\n (data: Data) => {\n setParams({\n ...initialParams,\n cacheBust, // do this to get the usePayloadAPI to re-fetch the data even though the URL string hasn't changed\n })\n\n dispatchCacheBust()\n closeDrawer()\n },\n [setParams, cacheBust, closeDrawer],\n )\n\n const $onDelete = useCallback(\n (event: KeyboardEvent) => {\n if (isSelected && $isNodeSelection($getSelection())) {\n event.preventDefault()\n const node = $getNodeByKey(nodeKey)\n if ($isUploadNode(node)) {\n node.remove()\n return true\n }\n }\n return false\n },\n [isSelected, nodeKey],\n )\n const onClick = useCallback(\n (event: MouseEvent) => {\n // Check if uploadRef.target or anything WITHIN uploadRef.target was clicked\n if (event.target === uploadRef.current || uploadRef.current?.contains(event.target as Node)) {\n if (event.shiftKey) {\n setSelected(!isSelected)\n } else {\n if (!isSelected) {\n clearSelection()\n setSelected(true)\n }\n }\n return true\n }\n\n return false\n },\n [isSelected, setSelected, clearSelection],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<MouseEvent>(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW),\n\n editor.registerCommand(KEY_DELETE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n editor.registerCommand(KEY_BACKSPACE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n )\n }, [clearSelection, editor, isSelected, nodeKey, $onDelete, setSelected, onClick])\n\n const hasExtraFields = (\n editorConfig?.resolvedFeatureMap?.get('upload')\n ?.sanitizedClientFeatureProps as ClientComponentProps<UploadFeaturePropsClient>\n ).collections?.[relatedCollection.slug]?.hasExtraFields\n\n const onExtraFieldsDrawerSubmit = useCallback(\n (_, data) => {\n // Update lexical node (with key nodeKey) with new data\n editor.update(() => {\n const uploadNode: UploadNode | null = $getNodeByKey(nodeKey)\n if (uploadNode) {\n const newData: UploadData = {\n ...uploadNode.getData(),\n fields: data,\n }\n uploadNode.setData(newData)\n }\n })\n\n closeModal(drawerSlug)\n },\n [closeModal, editor, drawerSlug, nodeKey],\n )\n\n return (\n <div\n className={[baseClass, isSelected && `${baseClass}--selected`].filter(Boolean).join(' ')}\n contentEditable={false}\n ref={uploadRef}\n >\n <div className={`${baseClass}__card`}>\n <div className={`${baseClass}__topRow`}>\n {/* TODO: migrate to use @payloadcms/ui/elements/Thumbnail component */}\n <div className={`${baseClass}__thumbnail`}>\n {thumbnailSRC ? (\n <img\n alt={data?.filename}\n data-lexical-upload-id={value}\n data-lexical-upload-relation-to={relationTo}\n src={thumbnailSRC}\n />\n ) : (\n <File />\n )}\n </div>\n <div className={`${baseClass}__topRowRightPanel`}>\n <div className={`${baseClass}__collectionLabel`}>\n {getTranslation(relatedCollection.labels.singular, i18n)}\n </div>\n {editor.isEditable() && (\n <div className={`${baseClass}__actions`}>\n {hasExtraFields ? (\n <DrawerToggler\n className={`${baseClass}__upload-drawer-toggler`}\n disabled={field?.readOnly}\n slug={drawerSlug}\n >\n <Button\n buttonStyle=\"icon-label\"\n el=\"div\"\n icon=\"edit\"\n onClick={(e) => {\n e.preventDefault()\n }}\n round\n tooltip={t('fields:editRelationship')}\n />\n </DrawerToggler>\n ) : null}\n\n <Button\n buttonStyle=\"icon-label\"\n disabled={field?.readOnly}\n el=\"div\"\n icon=\"swap\"\n onClick={() => {\n editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {\n replace: { nodeKey },\n })\n }}\n round\n tooltip={t('fields:swapUpload')}\n />\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeUpload()\n }}\n round\n tooltip={t('fields:removeUpload')}\n />\n </div>\n )}\n </div>\n </div>\n <div className={`${baseClass}__bottomRow`}>\n <DocumentDrawerToggler className={`${baseClass}__doc-drawer-toggler`}>\n <strong>{data?.filename}</strong>\n </DocumentDrawerToggler>\n </div>\n </div>\n {value && <DocumentDrawer onSave={updateUpload} />}\n {hasExtraFields ? (\n <FieldsDrawer\n data={fields}\n drawerSlug={drawerSlug}\n drawerTitle={t('general:editLabel', {\n label: getTranslation(relatedCollection.labels.singular, i18n),\n })}\n featureKey=\"upload\"\n handleDrawerSubmit={onExtraFieldsDrawerSubmit}\n schemaPathSuffix={relatedCollection.slug}\n />\n ) : null}\n </div>\n )\n}\n\nexport const UploadComponent = (props: ElementProps): React.ReactNode => {\n return (\n <EnabledRelationshipsCondition {...props} uploads>\n <Component {...props} />\n </EnabledRelationshipsCondition>\n )\n}\n"],
5
+ "mappings": "kHAGA,OAAS,6BAAAA,MAAiC,2CAC1C,OAAS,2BAAAC,MAA+B,4CACxC,OAAS,iBAAA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C,GAAO,SACjB,GAAG,MACH,KAAK,OACL,QAAS,IAAM,CACbP,EAAO,gBAAgBuD,EAAmC,CACxD,QAAS,CAAE,QAAAhE,CAAQ,CACrB,CAAC,CACH,EACA,MAAK,GACL,QAASmB,EAAE,mBAAmB,EAChC,EACA5B,EAACwE,EAAA,CACC,YAAY,aACZ,UAAW,GAAGtE,CAAS,iBACvB,SAAUuB,GAAO,SACjB,KAAK,IACL,QAAU,GAAM,CACd,EAAE,eAAe,EACjBsB,EAAa,CACf,EACA,MAAK,GACL,QAASnB,EAAE,qBAAqB,EAClC,GACF,GAEJ,GACF,EACA5B,EAAC,OAAI,UAAW,GAAGE,CAAS,cAC1B,SAAAF,EAACwC,EAAA,CAAsB,UAAW,GAAGtC,CAAS,uBAC5C,SAAAF,EAAC,UAAQ,SAAA2C,GAAM,SAAS,EAC1B,EACF,GACF,EACCnC,GAASR,EAACuC,EAAA,CAAe,OAAQW,EAAc,EAC/Cc,EACChE,EAAC0E,EAAA,CACC,KAAMpE,EACN,WAAY+B,EACZ,YAAaT,EAAE,oBAAqB,CAClC,MAAO0C,EAAepC,EAAkB,OAAO,SAAUP,CAAI,CAC/D,CAAC,EACD,WAAW,SACX,mBAAoBsC,EACpB,iBAAkB/B,EAAkB,KACtC,EACE,MACN,CAEJ,EAEayC,GAAmBtE,GAE5BL,EAAC4E,EAAA,CAA+B,GAAGvE,EAAO,QAAO,GAC/C,SAAAL,EAACI,GAAA,CAAW,GAAGC,EAAO,EACxB",
6
+ "names": ["useLexicalComposerContext", "useLexicalNodeSelection", "mergeRegister", "getTranslation", "Button", "DrawerToggler", "File", "useConfig", "useDocumentDrawer", "useDrawerSlug", "useModal", "usePayloadAPI", "useTranslation", "$getNodeByKey", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "useCallback", "useEffect", "useReducer", "useRef", "useState", "jsx", "jsxs", "baseClass", "initialParams", "Component", "props", "fields", "relationTo", "value", "nodeKey", "collections", "api", "serverURL", "useConfig", "uploadRef", "useRef", "closeModal", "useModal", "editor", "useLexicalComposerContext", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "editorConfig", "field", "useEditorConfigContext", "i18n", "t", "useTranslation", "cacheBust", "dispatchCacheBust", "useReducer", "state", "relatedCollection", "useState", "coll", "drawerSlug", "useDrawerSlug", "DocumentDrawer", "DocumentDrawerToggler", "closeDrawer", "useDocumentDrawer", "data", "setParams", "usePayloadAPI", "thumbnailSRC", "removeUpload", "useCallback", "$getNodeByKey", "updateUpload", "$onDelete", "event", "$isNodeSelection", "$getSelection", "node", "$isUploadNode", "onClick", "useEffect", "mergeRegister", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "hasExtraFields", "onExtraFieldsDrawerSubmit", "_", "uploadNode", "newData", "File", "getTranslation", "DrawerToggler", "Button", "INSERT_UPLOAD_WITH_DRAWER_COMMAND", "FieldsDrawer", "UploadComponent", "EnabledRelationshipsCondition"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{b as D}from"./chunk-IWZVO3AI.js";import{Collapsible as te,Form as ae,Pill as le,SectionTitle as re,ShimmerEffect as ie,useConfig as se,useDocumentInfo as ne,useFieldProps as ce,useFormSubmitted as de,useTranslation as me}from"@payloadcms/ui";import{useCallback as pe,useEffect as fe,useMemo as ue,useState as ye}from"react";import{getTranslation as he}from"@payloadcms/translations";import{getFormState as K}from"@payloadcms/ui/shared";import{v4 as be}from"uuid";import{useLexicalComposerContext as W}from"@lexical/react/LexicalComposerContext.js";import{getTranslation as z}from"@payloadcms/translations";import{Button as H,Collapsible as q,ErrorPill as G,Pill as J,RenderFields as Q,SectionTitle as X,useDocumentInfo as Y,useFormSubmitted as Z,useTranslation as ee}from"@payloadcms/ui";import{dequal as oe}from"dequal/lite";import{$getNodeByKey as M}from"lexical";import w,{useCallback as A}from"react";import{useAllFormFields as U}from"@payloadcms/ui";import{reduceFieldsToValues as I}from"payload/shared";import{useEffect as j}from"react";function E({fields:s}){for(let e in s){let a=s[e];Array.isArray(a.rows)&&"value"in a&&(a.disableFormData=!0)}return s}var O=s=>{let{onChange:e}=s,[a]=U(),o=E({fields:a}),f=I(o,!0);return j(()=>{e&&e({fullFieldsWithValues:o,newFormData:f})},[f,e,o]),null};import{jsx as u,jsxs as L}from"react/jsx-runtime";var V=s=>{let{baseClass:e,field:a,formData:o,formSchema:f,nodeKey:n,reducedBlock:{LabelComponent:g,labels:B},schemaPath:T}=s,{i18n:C}=ee(),[c]=W(),{getDocPreferences:v,setDocFieldPreferences:_}=Y(),[x,d]=w.useState(()=>{let l=!1;return v().then(m=>{let t=m?.fields[a.name]?.collapsed;t&&t.includes(o.id)&&(l=!0,d(!0))}),l}),i=Z(),[h,S]=w.useState(0),k=i&&h>0,R=[`${e}__row`,k?`${e}__row--has-errors`:`${e}__row--no-errors`].filter(Boolean).join(" "),N=A(({fullFieldsWithValues:l,newFormData:m})=>{m={...m,id:o.id,blockType:o.blockType};function P(t){for(let r in t){let b=t[r];Array.isArray(b)&&!b?.length?delete t[r]:b&&typeof b=="object"?P(b):b==null&&delete t[r]}}if(P(m),P(o),oe(o,m)||setTimeout(()=>{c.update(()=>{let t=M(n);t&&t.setFields(m)})},0),i){let t=0;for(let r of Object.values(l))r?.valid===!1&&t++;S(t)}},[c,n,i,o]),$=A(l=>{v().then(m=>{let t=m?.fields[a.name]?.collapsed,r=t&&t?.length?t:[];l?r.includes(o.id)||r.push(o.id):r.includes(o.id)&&r.splice(r.indexOf(o.id),1),_(a.name,{collapsed:r,hello:"hi"})})},[v,a.name,_,o.id]),F=A(()=>{c.update(()=>{M(n).remove()})},[c,n]);return L(w.Fragment,{children:[u(q,{className:R,collapsibleStyle:k?"error":"default",header:g?u(g,{blockKind:"lexicalBlock",formData:o}):L("div",{className:`${e}__block-header`,children:[L("div",{children:[u(J,{className:`${e}__block-pill ${e}__block-pill-${o?.blockType}`,pillStyle:"white",children:typeof B.singular=="string"?z(B.singular,C):"[Singular Label]"}),u(X,{path:"blockName",readOnly:a?.readOnly}),k&&u(G,{count:h,i18n:C,withMessage:!0})]}),c.isEditable()&&u(H,{buttonStyle:"icon-label",className:`${e}__removeButton`,disabled:a?.readOnly,icon:"x",onClick:l=>{l.preventDefault(),F()},round:!0,tooltip:"Remove Block"})]}),isCollapsed:x,onToggle:l=>{$(l),d(l)},children:u(Q,{className:`${e}__fields`,fieldMap:Array.isArray(f)?f:[],forceRender:!0,margins:"small",path:"",readOnly:!1,schemaPath:T})},0),u(O,{onChange:N})]})};import{jsx as p,jsxs as Ce}from"react/jsx-runtime";var y="lexical-block",Ie=s=>{let{formData:e,nodeKey:a}=s,o=se(),f=de(),{id:n}=ne(),{path:g,schemaPath:B}=ce(),{editorConfig:T,field:C}=D(),[c,v]=ye(!1),{field:{richTextComponentMap:_}}=D(),x=`lexical_internal_feature.blocks.fields.${e?.blockType}`,d=`${B}.lexical_internal_feature.blocks.${e?.blockType}`,i=T?.resolvedFeatureMap?.get("blocks")?.sanitizedClientFeatureProps?.reducedBlocks?.find(F=>F.slug===e?.blockType),h=_.get(x);fe(()=>{e&&(async()=>{let l=await K({apiRoute:o.routes.api,body:{id:n,data:e,operation:"update",schemaPath:d},serverURL:o.serverURL});l&&v({...l,blockName:{initialValue:"",passesCondition:!0,valid:!0,value:e.blockName}})})()},[o.routes.api,o.serverURL,d,n]);let S=pe(async({formState:F})=>({...await K({apiRoute:o.routes.api,body:{id:n,formState:F,operation:"update",schemaPath:d},serverURL:o.serverURL}),blockName:{initialValue:"",passesCondition:!0,valid:!0,value:e.blockName}}),[o.routes.api,o.serverURL,d,n,e.blockName]),{i18n:k}=me(),R=[`${y}__row`,`${y}__row--no-errors`].filter(Boolean).join(" "),N=i?.LabelComponent,$=ue(()=>i&&c!==!1?p(ae,{beforeSubmit:[S],fields:h,initialState:c,onChange:[S],submitted:f,uuid:be(),children:p(V,{baseClass:y,field:C,formData:e,formSchema:Array.isArray(h)?h:[],nodeKey:a,path:`${g}.lexical_internal_feature.blocks.${e.blockType}`,reducedBlock:i,schemaPath:d})}):p(te,{className:R,collapsibleStyle:"default",header:N?p(N,{blockKind:"lexicalBlock",formData:e}):p("div",{className:`${y}__block-header`,children:Ce("div",{children:[p(le,{className:`${y}__block-pill ${y}__block-pill-${e?.blockType}`,pillStyle:"white",children:i&&typeof i.labels.singular=="string"?he(i.labels.singular,k):"[Singular Label]"}),p(re,{path:"blockName",readOnly:C?.readOnly})]})}),children:p(ie,{height:"35vh"})},0),[R,h,C,a,k,f,c,i,S,d,g]);return p("div",{className:y+" "+y+"-"+e.blockType,children:$})};export{Ie as BlockComponent};
2
+ //# sourceMappingURL=component-KA7FDRMA.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/blocks/component/index.tsx", "../../../src/features/blocks/component/BlockContent.tsx", "../../../src/features/blocks/component/FormSavePlugin.tsx", "../../../src/features/blocks/component/removeEmptyArrayValues.ts"],
4
+ "sourcesContent": ["'use client'\n\nimport type { FormProps } from '@payloadcms/ui'\n\nimport {\n Collapsible,\n Form,\n Pill,\n SectionTitle,\n ShimmerEffect,\n useConfig,\n useDocumentInfo,\n useFieldProps,\n useFormSubmitted,\n useTranslation,\n} from '@payloadcms/ui'\nimport React, { useCallback, useEffect, useMemo, useState } from 'react'\n\nimport { type BlockFields } from '../nodes/BlocksNode.js'\nconst baseClass = 'lexical-block'\nimport type { FormState } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { getFormState } from '@payloadcms/ui/shared'\nimport { v4 as uuid } from 'uuid'\n\nimport type { ClientComponentProps } from '../../typesClient.js'\nimport type { BlocksFeatureClientProps, ClientBlock } from '../feature.client.js'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport { BlockContent } from './BlockContent.js'\ntype Props = {\n children?: React.ReactNode\n formData: BlockFields\n nodeKey?: string\n}\n\nexport const BlockComponent: React.FC<Props> = (props) => {\n const { formData, nodeKey } = props\n const config = useConfig()\n const submitted = useFormSubmitted()\n const { id } = useDocumentInfo()\n const { path, schemaPath } = useFieldProps()\n const { editorConfig, field: parentLexicalRichTextField } = useEditorConfigContext()\n\n const [initialState, setInitialState] = useState<FormState | false>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedFieldsPath = `lexical_internal_feature.blocks.fields.${formData?.blockType}`\n const schemaFieldsPath = `${schemaPath}.lexical_internal_feature.blocks.${formData?.blockType}`\n\n const reducedBlock: ClientBlock = (\n editorConfig?.resolvedFeatureMap?.get('blocks')\n ?.sanitizedClientFeatureProps as ClientComponentProps<BlocksFeatureClientProps>\n )?.reducedBlocks?.find((block) => block.slug === formData?.blockType)\n\n const fieldMap = richTextComponentMap.get(componentMapRenderedFieldsPath)\n // Field Schema\n useEffect(() => {\n const awaitInitialState = async () => {\n const state = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n data: formData,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n }) // Form State\n\n if (state) {\n setInitialState({\n ...state,\n blockName: {\n initialValue: '',\n passesCondition: true,\n valid: true,\n value: formData.blockName,\n },\n })\n }\n }\n\n if (formData) {\n void awaitInitialState()\n }\n }, [config.routes.api, config.serverURL, schemaFieldsPath, id])\n\n const onChange: FormProps['onChange'][0] = useCallback(\n async ({ formState: prevFormState }) => {\n const formState = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n formState: prevFormState,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n })\n\n return {\n ...formState,\n blockName: {\n initialValue: '',\n passesCondition: true,\n valid: true,\n value: formData.blockName,\n },\n }\n },\n\n [config.routes.api, config.serverURL, schemaFieldsPath, id, formData.blockName],\n )\n const { i18n } = useTranslation()\n\n const classNames = [`${baseClass}__row`, `${baseClass}__row--no-errors`].filter(Boolean).join(' ')\n\n const LabelComponent = reducedBlock?.LabelComponent\n\n // Memoized Form JSX\n const formContent = useMemo(() => {\n return reducedBlock && initialState !== false ? (\n <Form\n beforeSubmit={[onChange]}\n // @ts-expect-error TODO: Fix this\n fields={fieldMap}\n initialState={initialState}\n onChange={[onChange]}\n submitted={submitted}\n uuid={uuid()}\n >\n <BlockContent\n baseClass={baseClass}\n field={parentLexicalRichTextField}\n formData={formData}\n formSchema={Array.isArray(fieldMap) ? fieldMap : []}\n nodeKey={nodeKey}\n path={`${path}.lexical_internal_feature.blocks.${formData.blockType}`}\n reducedBlock={reducedBlock}\n schemaPath={schemaFieldsPath}\n />\n </Form>\n ) : (\n <Collapsible\n className={classNames}\n collapsibleStyle=\"default\"\n header={\n LabelComponent ? (\n <LabelComponent blockKind={'lexicalBlock'} formData={formData} />\n ) : (\n <div className={`${baseClass}__block-header`}>\n <div>\n <Pill\n className={`${baseClass}__block-pill ${baseClass}__block-pill-${formData?.blockType}`}\n pillStyle=\"white\"\n >\n {reducedBlock && typeof reducedBlock.labels.singular === 'string'\n ? getTranslation(reducedBlock.labels.singular, i18n)\n : '[Singular Label]'}\n </Pill>\n <SectionTitle path=\"blockName\" readOnly={parentLexicalRichTextField?.readOnly} />\n </div>\n </div>\n )\n }\n key={0}\n >\n <ShimmerEffect height=\"35vh\" />\n </Collapsible>\n )\n }, [\n classNames,\n fieldMap,\n parentLexicalRichTextField,\n nodeKey,\n i18n,\n submitted,\n initialState,\n reducedBlock,\n onChange,\n schemaFieldsPath,\n path,\n ]) // Adding formData to the dependencies here might break it\n return <div className={baseClass + ' ' + baseClass + '-' + formData.blockType}>{formContent}</div>\n}\n", "import type { CollapsedPreferences, Data, FieldMap, FormFieldBase, FormState } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { getTranslation } from '@payloadcms/translations'\nimport {\n Button,\n Collapsible,\n ErrorPill,\n Pill,\n RenderFields,\n SectionTitle,\n useDocumentInfo,\n useFormSubmitted,\n useTranslation,\n} from '@payloadcms/ui'\nimport { dequal } from 'dequal/lite' // lite: no need for Map and Set support\nimport { $getNodeByKey } from 'lexical'\nimport React, { useCallback } from 'react'\n\nimport type { SanitizedClientEditorConfig } from '../../../lexical/config/types.js'\nimport type { ClientBlock } from '../feature.client.js'\nimport type { BlockFields, BlockNode } from '../nodes/BlocksNode.js'\n\nimport { FormSavePlugin } from './FormSavePlugin.js'\n\ntype Props = {\n baseClass: string\n field: {\n editorConfig: SanitizedClientEditorConfig // With rendered features n stuff\n name: string\n richTextComponentMap: Map<string, React.ReactNode>\n } & FormFieldBase\n formData: BlockFields\n formSchema: FieldMap\n nodeKey: string\n path: string\n reducedBlock: ClientBlock\n schemaPath: string\n}\n\n/**\n * The actual content of the Block. This should be INSIDE a Form component,\n * scoped to the block. All format operations in here are thus scoped to the block's form, and\n * not the whole document.\n */\nexport const BlockContent: React.FC<Props> = (props) => {\n const {\n baseClass,\n field,\n formData,\n formSchema,\n nodeKey,\n reducedBlock: { LabelComponent, labels },\n schemaPath,\n } = props\n\n const { i18n } = useTranslation()\n const [editor] = useLexicalComposerContext()\n // Used for saving collapsed to preferences (and gettin' it from there again)\n // Remember, these preferences are scoped to the whole document, not just this form. This\n // is important to consider for the data path used in setDocFieldPreferences\n const { getDocPreferences, setDocFieldPreferences } = useDocumentInfo()\n\n const [isCollapsed, setIsCollapsed] = React.useState<boolean>(() => {\n let initialState = false\n\n void getDocPreferences().then((currentDocPreferences) => {\n const currentFieldPreferences = currentDocPreferences?.fields[field.name]\n\n const collapsedArray = currentFieldPreferences?.collapsed\n\n if (collapsedArray && collapsedArray.includes(formData.id)) {\n initialState = true\n setIsCollapsed(true)\n }\n })\n return initialState\n })\n\n const hasSubmitted = useFormSubmitted()\n\n const [errorCount, setErrorCount] = React.useState(0)\n\n const fieldHasErrors = hasSubmitted && errorCount > 0\n\n const classNames = [\n `${baseClass}__row`,\n fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`,\n ]\n .filter(Boolean)\n .join(' ')\n\n const onFormChange = useCallback(\n ({\n fullFieldsWithValues,\n newFormData,\n }: {\n fullFieldsWithValues: FormState\n newFormData: Data\n }) => {\n newFormData = {\n ...newFormData,\n id: formData.id,\n blockType: formData.blockType,\n }\n\n // Recursively remove all undefined values from even being present in formData, as they will\n // cause isDeepEqual to return false if, for example, formData has a key that fields.data\n // does not have, even if it's undefined.\n // Currently, this happens if a block has another sub-blocks field. Inside formData, that sub-blocks field has an undefined blockName property.\n // Inside of fields.data however, that sub-blocks blockName property does not exist at all.\n function removeUndefinedAndNullAndEmptyArraysRecursively(obj: object) {\n for (const key in obj) {\n const value = obj[key]\n if (Array.isArray(value) && !value?.length) {\n delete obj[key]\n } else if (value && typeof value === 'object') {\n removeUndefinedAndNullAndEmptyArraysRecursively(value)\n } else if (value === undefined || value === null) {\n delete obj[key]\n }\n }\n }\n removeUndefinedAndNullAndEmptyArraysRecursively(newFormData)\n\n removeUndefinedAndNullAndEmptyArraysRecursively(formData)\n\n // Only update if the data has actually changed. Otherwise, we may be triggering an unnecessary value change,\n // which would trigger the \"Leave without saving\" dialog unnecessarily\n if (!dequal(formData, newFormData)) {\n // Running this in the next tick in the meantime fixes this issue: https://github.com/payloadcms/payload/issues/4108\n // I don't know why. When this is called immediately, it might focus out of a nested lexical editor field if an update is made there.\n // My hypothesis is that the nested editor might not have fully finished its update cycle yet. By updating in the next tick, we\n // ensure that the nested editor has finished its update cycle before we update the block node.\n setTimeout(() => {\n editor.update(() => {\n const node: BlockNode = $getNodeByKey(nodeKey)\n if (node) {\n node.setFields(newFormData as BlockFields)\n }\n })\n }, 0)\n }\n\n // update error count\n if (hasSubmitted) {\n let rowErrorCount = 0\n for (const formField of Object.values(fullFieldsWithValues)) {\n if (formField?.valid === false) {\n rowErrorCount++\n }\n }\n setErrorCount(rowErrorCount)\n }\n },\n [editor, nodeKey, hasSubmitted, formData],\n )\n\n const onCollapsedChange = useCallback(\n (changedCollapsed: boolean) => {\n void getDocPreferences().then((currentDocPreferences) => {\n const currentFieldPreferences = currentDocPreferences?.fields[field.name]\n\n const collapsedArray = currentFieldPreferences?.collapsed\n\n const newCollapsed: CollapsedPreferences =\n collapsedArray && collapsedArray?.length ? collapsedArray : []\n\n if (changedCollapsed) {\n if (!newCollapsed.includes(formData.id)) {\n newCollapsed.push(formData.id)\n }\n } else {\n if (newCollapsed.includes(formData.id)) {\n newCollapsed.splice(newCollapsed.indexOf(formData.id), 1)\n }\n }\n\n setDocFieldPreferences(field.name, {\n collapsed: newCollapsed,\n hello: 'hi',\n })\n })\n },\n [getDocPreferences, field.name, setDocFieldPreferences, formData.id],\n )\n\n const removeBlock = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey).remove()\n })\n }, [editor, nodeKey])\n\n return (\n <React.Fragment>\n <Collapsible\n className={classNames}\n collapsibleStyle={fieldHasErrors ? 'error' : 'default'}\n header={\n LabelComponent ? (\n <LabelComponent blockKind={'lexicalBlock'} formData={formData} />\n ) : (\n <div className={`${baseClass}__block-header`}>\n <div>\n <Pill\n className={`${baseClass}__block-pill ${baseClass}__block-pill-${formData?.blockType}`}\n pillStyle=\"white\"\n >\n {typeof labels.singular === 'string'\n ? getTranslation(labels.singular, i18n)\n : '[Singular Label]'}\n </Pill>\n <SectionTitle path=\"blockName\" readOnly={field?.readOnly} />\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n {editor.isEditable() && (\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeBlock()\n }}\n round\n tooltip=\"Remove Block\"\n />\n )}\n </div>\n )\n }\n isCollapsed={isCollapsed}\n key={0}\n onToggle={(incomingCollapsedState) => {\n onCollapsedChange(incomingCollapsedState)\n setIsCollapsed(incomingCollapsedState)\n }}\n >\n <RenderFields\n className={`${baseClass}__fields`}\n fieldMap={Array.isArray(formSchema) ? formSchema : []}\n forceRender\n margins=\"small\"\n path=\"\" // Leaving path empty makes it so field values are not prefixed / scoped by the entire schemaPath. e.g. we can access \"myField\" instead of \"someLexicalField.feature.blocks.someArrayB\" // TODO: Could there be any implications leaving path different than schemaPath?\n readOnly={false}\n schemaPath={schemaPath} // Having the correct schemaPath here allows sub-fields (like array > addRow) to run correct form-state calls and retrieve their needed form state from the server\n />\n </Collapsible>\n\n <FormSavePlugin onChange={onFormChange} />\n </React.Fragment>\n )\n}\n", "import type { Data, FormState } from 'payload'\nimport type React from 'react'\n\nimport { useAllFormFields } from '@payloadcms/ui'\nimport { reduceFieldsToValues } from 'payload/shared'\nimport { useEffect } from 'react'\n\nimport { removeEmptyArrayValues } from './removeEmptyArrayValues.js'\n\ntype Props = {\n onChange?: ({\n fullFieldsWithValues,\n newFormData,\n }: {\n fullFieldsWithValues: FormState\n newFormData: Data\n }) => void\n}\n\nexport const FormSavePlugin: React.FC<Props> = (props) => {\n const { onChange } = props\n\n const [_fields] = useAllFormFields()\n\n const fields = removeEmptyArrayValues({ fields: _fields })\n\n // Pass in fields, and indicate if you'd like to \"unflatten\" field data.\n // The result below will reflect the data stored in the form at the given time\n const newFormData = reduceFieldsToValues(fields, true)\n\n useEffect(() => {\n if (onChange) {\n onChange({ fullFieldsWithValues: fields, newFormData })\n }\n }, [newFormData, onChange, fields])\n\n return null\n}\n", "import type { FormState } from 'payload'\n\n/**\n * By default, if an array field is empty, it will be included in the form state with a value of 0.\n * We do not need this behavior here, By setting `disableFormData` to true, we can prevent the field from being included in the form state\n * like that.\n * @param fields form state\n */\nexport function removeEmptyArrayValues({ fields }: { fields: FormState }): FormState {\n for (const key in fields) {\n const field = fields[key]\n if (Array.isArray(field.rows) && 'value' in field) {\n field.disableFormData = true\n }\n }\n return fields\n}\n"],
5
+ "mappings": "qDAIA,OACE,eAAAA,GACA,QAAAC,GACA,QAAAC,GACA,gBAAAC,GACA,iBAAAC,GACA,aAAAC,GACA,mBAAAC,GACA,iBAAAC,GACA,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,EACX,KAAMgC,GAAK,EAEX,SAAAzC,EAAC0C,EAAA,CACC,UAAWxC,EACX,MAAOe,EACP,SAAUZ,EACV,WAAY,MAAM,QAAQsB,CAAQ,EAAIA,EAAW,CAAC,EAClD,QAASrB,EACT,KAAM,GAAGO,CAAI,oCAAoCR,EAAS,SAAS,GACnE,aAAcoB,EACd,WAAYD,EACd,EACF,EAEAxB,EAAC2C,GAAA,CACC,UAAWP,EACX,iBAAiB,UACjB,OACEC,EACErC,EAACqC,EAAA,CAAe,UAAW,eAAgB,SAAUhC,EAAU,EAE/DL,EAAC,OAAI,UAAW,GAAGE,CAAS,iBAC1B,SAAAD,GAAC,OACC,UAAAD,EAAC4C,GAAA,CACC,UAAW,GAAG1C,CAAS,gBAAgBA,CAAS,gBAAgBG,GAAU,SAAS,GACnF,UAAU,QAET,SAAAoB,GAAgB,OAAOA,EAAa,OAAO,UAAa,SACrDoB,GAAepB,EAAa,OAAO,SAAUS,CAAI,EACjD,mBACN,EACAlC,EAAC8C,GAAA,CAAa,KAAK,YAAY,SAAU7B,GAA4B,SAAU,GACjF,EACF,EAKJ,SAAAjB,EAAC+C,GAAA,CAAc,OAAO,OAAO,GAFxB,CAGP,EAED,CACDX,EACAT,EACAV,EACAX,EACA4B,EACAzB,EACAU,EACAM,EACAM,EACAP,EACAX,CACF,CAAC,EACD,OAAOb,EAAC,OAAI,UAAWE,EAAY,IAAMA,EAAY,IAAMG,EAAS,UAAY,SAAAiC,EAAY,CAC9F",
6
+ "names": ["Collapsible", "Form", "Pill", "SectionTitle", "ShimmerEffect", "useConfig", "useDocumentInfo", "useFieldProps", "useFormSubmitted", "useTranslation", "useCallback", "useEffect", "useMemo", "useState", "getTranslation", "getFormState", "uuid", "useLexicalComposerContext", "getTranslation", "Button", "Collapsible", "ErrorPill", "Pill", "RenderFields", "SectionTitle", "useDocumentInfo", "useFormSubmitted", "useTranslation", "dequal", "$getNodeByKey", "React", "useCallback", "useAllFormFields", "reduceFieldsToValues", "useEffect", "removeEmptyArrayValues", "fields", "key", "field", "FormSavePlugin", "props", "onChange", "_fields", "useAllFormFields", "fields", "removeEmptyArrayValues", "newFormData", "reduceFieldsToValues", "useEffect", "jsx", "jsxs", "BlockContent", "props", "baseClass", "field", "formData", "formSchema", "nodeKey", "LabelComponent", "labels", "schemaPath", "i18n", "useTranslation", "editor", "useLexicalComposerContext", "getDocPreferences", "setDocFieldPreferences", "useDocumentInfo", "isCollapsed", "setIsCollapsed", "React", "initialState", "currentDocPreferences", "collapsedArray", "hasSubmitted", "useFormSubmitted", "errorCount", "setErrorCount", "fieldHasErrors", "classNames", "onFormChange", "useCallback", "fullFieldsWithValues", "newFormData", "removeUndefinedAndNullAndEmptyArraysRecursively", "obj", "key", "value", "dequal", "node", "$getNodeByKey", "rowErrorCount", "formField", "onCollapsedChange", "changedCollapsed", "newCollapsed", "removeBlock", "Collapsible", "Pill", "getTranslation", "SectionTitle", "ErrorPill", "Button", "e", "incomingCollapsedState", "RenderFields", "FormSavePlugin", "jsx", "jsxs", "baseClass", "BlockComponent", "props", "formData", "nodeKey", "config", "useConfig", "submitted", "useFormSubmitted", "id", "useDocumentInfo", "path", "schemaPath", "useFieldProps", "editorConfig", "parentLexicalRichTextField", "useEditorConfigContext", "initialState", "setInitialState", "useState", "richTextComponentMap", "componentMapRenderedFieldsPath", "schemaFieldsPath", "reducedBlock", "block", "fieldMap", "useEffect", "state", "getFormState", "onChange", "useCallback", "prevFormState", "i18n", "useTranslation", "classNames", "LabelComponent", "formContent", "useMemo", "Form", "uuid", "BlockContent", "Collapsible", "Pill", "getTranslation", "SectionTitle", "ShimmerEffect"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{d as a}from"./chunk-Q5DYR7MH.js";import{useLexicalComposerContext as u}from"@lexical/react/LexicalComposerContext.js";import{useLexicalNodeSelection as C}from"@lexical/react/useLexicalNodeSelection.js";import{addClassNamesToElement as E,mergeRegister as d,removeClassNamesFromElement as N}from"@lexical/utils";import{$getNodeByKey as p,$getSelection as g,$isNodeSelection as M,CLICK_COMMAND as S,COMMAND_PRIORITY_LOW as m,KEY_BACKSPACE_COMMAND as D,KEY_DELETE_COMMAND as _}from"lexical";import{useCallback as y,useEffect as c}from"react";var f="selected";function $({nodeKey:t}){let[r]=u(),[o,i,n]=C(t),s=y(e=>{if(o&&M(g())){e.preventDefault();let l=p(t);if(a(l))return l.remove(),!0}return!1},[o,t]);return c(()=>d(r.registerCommand(S,e=>{let l=r.getElementByKey(t);return e.target===l?(e.shiftKey||n(),i(!o),!0):!1},m),r.registerCommand(_,s,m),r.registerCommand(D,s,m)),[n,r,o,t,s,i]),c(()=>{let e=r.getElementByKey(t);e!==null&&(o?E(e,f):N(e,f))},[r,o,t]),null}export{$ as HorizontalRuleComponent};
2
+ //# sourceMappingURL=component-VM36FRT2.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/horizontalRule/component/index.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport type { NodeKey } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection.js'\nimport { addClassNamesToElement, mergeRegister, removeClassNamesFromElement } from '@lexical/utils'\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 { useCallback, useEffect } from 'react'\n\nimport { $isHorizontalRuleNode } from '../nodes/HorizontalRuleNode.js'\n\nconst isSelectedClassName = 'selected'\n\n/**\n * React component rendered in the lexical editor, WITHIN the hr element created by createDOM of the HorizontalRuleNode.\n *\n * @param nodeKey every node has a unique key (this key is not saved to the database and thus may differ between sessions). It's useful for working with the CURRENT lexical editor state\n */\nexport function HorizontalRuleComponent({ nodeKey }: { nodeKey: NodeKey }) {\n const [editor] = useLexicalComposerContext()\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n\n const $onDelete = useCallback(\n (event: KeyboardEvent) => {\n if (isSelected && $isNodeSelection($getSelection())) {\n event.preventDefault()\n const node = $getNodeByKey(nodeKey)\n if ($isHorizontalRuleNode(node)) {\n node.remove()\n return true\n }\n }\n return false\n },\n [isSelected, nodeKey],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand(\n CLICK_COMMAND,\n (event: MouseEvent) => {\n const hrElem = editor.getElementByKey(nodeKey)\n\n if (event.target === hrElem) {\n if (!event.shiftKey) {\n clearSelection()\n }\n setSelected(!isSelected)\n return true\n }\n\n return false\n },\n 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])\n\n useEffect(() => {\n const hrElem = editor.getElementByKey(nodeKey)\n if (hrElem !== null) {\n if (isSelected) {\n addClassNamesToElement(hrElem, isSelectedClassName)\n } else {\n removeClassNamesFromElement(hrElem, isSelectedClassName)\n }\n }\n }, [editor, isSelected, nodeKey])\n\n return null\n}\n"],
5
+ "mappings": "qDAIA,OAAS,6BAAAA,MAAiC,2CAC1C,OAAS,2BAAAC,MAA+B,4CACxC,OAAS,0BAAAC,EAAwB,iBAAAC,EAAe,+BAAAC,MAAmC,iBACnF,OACE,iBAAAC,EACA,iBAAAC,EACA,oBAAAC,EACA,iBAAAC,EACA,wBAAAC,EACA,yBAAAC,EACA,sBAAAC,MACK,UACP,OAAS,eAAAC,EAAa,aAAAC,MAAiB,QAIvC,IAAMC,EAAsB,WAOrB,SAASC,EAAwB,CAAE,QAAAC,CAAQ,EAAyB,CACzE,GAAM,CAACC,CAAM,EAAIC,EAA0B,EACrC,CAACC,EAAYC,EAAaC,CAAc,EAAIC,EAAwBN,CAAO,EAE3EO,EAAYC,EACfC,GAAyB,CACxB,GAAIN,GAAcO,EAAiBC,EAAc,CAAC,EAAG,CACnDF,EAAM,eAAe,EACrB,IAAMG,EAAOC,EAAcb,CAAO,EAClC,GAAIc,EAAsBF,CAAI,EAC5B,OAAAA,EAAK,OAAO,EACL,EAEX,CACA,MAAO,EACT,EACA,CAACT,EAAYH,CAAO,CACtB,EAEA,OAAAe,EAAU,IACDC,EACLf,EAAO,gBACLgB,EACCR,GAAsB,CACrB,IAAMS,EAASjB,EAAO,gBAAgBD,CAAO,EAE7C,OAAIS,EAAM,SAAWS,GACdT,EAAM,UACTJ,EAAe,EAEjBD,EAAY,CAACD,CAAU,EAChB,IAGF,EACT,EACAgB,CACF,EACAlB,EAAO,gBAAgBmB,EAAoBb,EAAWY,CAAoB,EAC1ElB,EAAO,gBAAgBoB,EAAuBd,EAAWY,CAAoB,CAC/E,EACC,CAACd,EAAgBJ,EAAQE,EAAYH,EAASO,EAAWH,CAAW,CAAC,EAExEW,EAAU,IAAM,CACd,IAAMG,EAASjB,EAAO,gBAAgBD,CAAO,EACzCkB,IAAW,OACTf,EACFmB,EAAuBJ,EAAQpB,CAAmB,EAElDyB,EAA4BL,EAAQpB,CAAmB,EAG7D,EAAG,CAACG,EAAQE,EAAYH,CAAO,CAAC,EAEzB,IACT",
6
+ "names": ["useLexicalComposerContext", "useLexicalNodeSelection", "addClassNamesToElement", "mergeRegister", "removeClassNamesFromElement", "$getNodeByKey", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "useCallback", "useEffect", "isSelectedClassName", "HorizontalRuleComponent", "nodeKey", "editor", "useLexicalComposerContext", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "$onDelete", "useCallback", "event", "$isNodeSelection", "$getSelection", "node", "$getNodeByKey", "$isHorizontalRuleNode", "useEffect", "mergeRegister", "CLICK_COMMAND", "hrElem", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "addClassNamesToElement", "removeClassNamesFromElement"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{c as N,f as E}from"./chunk-VUVXZJJR.js";import{b as y}from"./chunk-IWZVO3AI.js";import{useCallback as p,useEffect as P,useRef as R}from"react";import{useLexicalComposerContext as S}from"@lexical/react/LexicalComposerContext";import{useLexicalNodeSelection as $}from"@lexical/react/useLexicalNodeSelection";import{mergeRegister as x}from"@lexical/utils";import{getTranslation as _}from"@payloadcms/translations";import{Button as D,useTranslation as A}from"@payloadcms/ui";import{$getNodeByKey as M,$getSelection as F,$isNodeSelection as T,CLICK_COMMAND as j,COMMAND_PRIORITY_LOW as f,KEY_BACKSPACE_COMMAND as z,KEY_DELETE_COMMAND as Y}from"lexical";import{jsx as c,jsxs as I}from"react/jsx-runtime";var i="inline-block",Z=K=>{let{formData:r,nodeKey:o}=K,[e]=S(),{i18n:C,t:k}=A(),{editorConfig:O,field:b}=y(),m=R(null),[t,a,d]=$(o),s=O?.resolvedFeatureMap?.get("blocks")?.sanitizedClientFeatureProps?.reducedInlineBlocks?.find(l=>l.slug===r?.blockType),L=p(()=>{e.update(()=>{M(o).remove()})},[e,o]),u=p(l=>{if(t&&T(F())){l.preventDefault();let n=M(o);if(E(n))return n.remove(),!0}return!1},[t,o]),B=p(l=>{let n=l;return n.target===m.current||m.current?.contains(n.target)?(n.shiftKey?a(!t):t||(d(),a(!0)),!0):!1},[t,a,d]);P(()=>x(e.registerCommand(j,B,f),e.registerCommand(Y,u,f),e.registerCommand(z,u,f)),[d,e,t,o,u,a,B]);let g=s?.LabelComponent,v=s.labels.singular?_(s.labels.singular,C):s.slug;return I("div",{className:[i,i+"-"+r.blockType,t&&`${i}--selected`].filter(Boolean).join(" "),ref:m,children:[g?c(g,{blockKind:"lexicalInlineBlock",formData:r}):c("div",{children:_(s.labels.singular,C)}),e.isEditable()&&I("div",{className:`${i}__actions`,children:[c(D,{buttonStyle:"icon-label",className:`${i}__editButton`,disabled:b?.readOnly,el:"div",icon:"edit",onClick:()=>{e.dispatchCommand(N,{fields:r,nodeKey:o})},round:!0,size:"small",tooltip:k("lexical:blocks:inlineBlocks:edit",{label:v})}),c(D,{buttonStyle:"icon-label",className:`${i}__removeButton`,disabled:b?.readOnly,icon:"x",onClick:l=>{l.preventDefault(),L()},round:!0,size:"small",tooltip:k("lexical:blocks:inlineBlocks:remove",{label:v})})]})]})};export{Z as InlineBlockComponent};
2
+ //# sourceMappingURL=componentInline-6EKPZSCV.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/blocks/componentInline/index.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport React, { useCallback, useEffect, useRef } from 'react'\nconst baseClass = 'inline-block'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\nimport { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection'\nimport { mergeRegister } from '@lexical/utils'\nimport { getTranslation } from '@payloadcms/translations'\nimport { Button, useTranslation } from '@payloadcms/ui'\nimport {\n $getNodeByKey,\n $getSelection,\n $isNodeSelection,\n CLICK_COMMAND,\n COMMAND_PRIORITY_LOW,\n KEY_BACKSPACE_COMMAND,\n KEY_DELETE_COMMAND,\n} from 'lexical'\n\nimport type { ClientComponentProps } from '../../typesClient.js'\nimport type { BlocksFeatureClientProps, ClientBlock } from '../feature.client.js'\nimport type { InlineBlockFields } from '../nodes/InlineBlocksNode.js'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport { $isInlineBlockNode } from '../nodes/InlineBlocksNode.js'\nimport { OPEN_INLINE_BLOCK_DRAWER_COMMAND } from '../plugin/commands.js'\ntype Props = {\n readonly formData: InlineBlockFields\n readonly nodeKey?: string\n}\n\nexport const InlineBlockComponent: React.FC<Props> = (props) => {\n const { formData, nodeKey } = props\n const [editor] = useLexicalComposerContext()\n const { i18n, t } = useTranslation<object, string>()\n const { editorConfig, field } = useEditorConfigContext()\n const inlineBlockElemElemRef = useRef<HTMLDivElement | null>(null)\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n\n const reducedBlock: ClientBlock = (\n editorConfig?.resolvedFeatureMap?.get('blocks')\n ?.sanitizedClientFeatureProps as ClientComponentProps<BlocksFeatureClientProps>\n )?.reducedInlineBlocks?.find((block) => block.slug === formData?.blockType)\n\n const removeInlineBlock = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey).remove()\n })\n }, [editor, nodeKey])\n\n const $onDelete = useCallback(\n (event: KeyboardEvent) => {\n if (isSelected && $isNodeSelection($getSelection())) {\n event.preventDefault()\n const node = $getNodeByKey(nodeKey)\n if ($isInlineBlockNode(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 inlineBlockElemElemRef.target or anything WITHIN inlineBlockElemElemRef.target was clicked\n if (\n event.target === inlineBlockElemElemRef.current ||\n inlineBlockElemElemRef.current?.contains(event.target as Node)\n ) {\n if (event.shiftKey) {\n setSelected(!isSelected)\n } else {\n if (!isSelected) {\n clearSelection()\n setSelected(true)\n }\n }\n return true\n }\n\n return false\n },\n [isSelected, setSelected, clearSelection],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<MouseEvent>(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW),\n\n editor.registerCommand(KEY_DELETE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n editor.registerCommand(KEY_BACKSPACE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n )\n }, [clearSelection, editor, isSelected, nodeKey, $onDelete, setSelected, onClick])\n\n const LabelComponent = reducedBlock?.LabelComponent\n\n const blockDisplayName = reducedBlock.labels.singular\n ? getTranslation(reducedBlock.labels.singular, i18n)\n : reducedBlock.slug\n\n return (\n <div\n className={[\n baseClass,\n baseClass + '-' + formData.blockType,\n isSelected && `${baseClass}--selected`,\n ]\n .filter(Boolean)\n .join(' ')}\n ref={inlineBlockElemElemRef}\n >\n {LabelComponent ? (\n <LabelComponent blockKind={'lexicalInlineBlock'} formData={formData} />\n ) : (\n <div>{getTranslation(reducedBlock.labels.singular, i18n)}</div>\n )}\n {editor.isEditable() && (\n <div className={`${baseClass}__actions`}>\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__editButton`}\n disabled={field?.readOnly}\n el=\"div\"\n icon=\"edit\"\n onClick={() => {\n editor.dispatchCommand(OPEN_INLINE_BLOCK_DRAWER_COMMAND, {\n fields: formData,\n nodeKey,\n })\n }}\n round\n size=\"small\"\n tooltip={t('lexical:blocks:inlineBlocks:edit', { label: blockDisplayName })}\n />\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeInlineBlock()\n }}\n round\n size=\"small\"\n tooltip={t('lexical:blocks:inlineBlocks:remove', { label: blockDisplayName })}\n />\n </div>\n )}\n </div>\n )\n}\n"],
5
+ "mappings": "oGAEA,OAAgB,eAAAA,EAAa,aAAAC,EAAW,UAAAC,MAAc,QAGtD,OAAS,6BAAAC,MAAiC,wCAC1C,OAAS,2BAAAC,MAA+B,yCACxC,OAAS,iBAAAC,MAAqB,iBAC9B,OAAS,kBAAAC,MAAsB,2BAC/B,OAAS,UAAAC,EAAQ,kBAAAC,MAAsB,iBACvC,OACE,iBAAAC,EACA,iBAAAC,EACA,oBAAAC,EACA,iBAAAC,EACA,wBAAAC,EACA,yBAAAC,EACA,sBAAAC,MACK,UAkGC,cAAAC,EAKA,QAAAC,MALA,oBAjHR,IAAMC,EAAY,eA6BLC,EAAyCC,GAAU,CAC9D,GAAM,CAAE,SAAAC,EAAU,QAAAC,CAAQ,EAAIF,EACxB,CAACG,CAAM,EAAIC,EAA0B,EACrC,CAAE,KAAAC,EAAM,EAAAC,CAAE,EAAIC,EAA+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AAa,KAEjB,OACEpB,EAAC,OACC,UAAW,CACTC,EACAA,EAAY,IAAMG,EAAS,UAC3BY,GAAc,GAAGf,CAAS,YAC5B,EACG,OAAO,OAAO,EACd,KAAK,GAAG,EACX,IAAKa,EAEJ,UAAAyB,EACCxC,EAACwC,EAAA,CAAe,UAAW,qBAAsB,SAAUnC,EAAU,EAErEL,EAAC,OAAK,SAAA0C,EAAerB,EAAa,OAAO,SAAUZ,CAAI,EAAE,EAE1DF,EAAO,WAAW,GACjBN,EAAC,OAAI,UAAW,GAAGC,CAAS,YAC1B,UAAAF,EAAC2C,EAAA,CACC,YAAY,aACZ,UAAW,GAAGzC,CAAS,eACvB,SAAUW,GAAO,SACjB,GAAG,MACH,KAAK,OACL,QAAS,IAAM,CACbN,EAAO,gBAAgBqC,EAAkC,CACvD,OAAQvC,EACR,QAAAC,CACF,CAAC,CACH,EACA,MAAK,GACL,KAAK,QACL,QAASI,EAAE,mCAAoC,CAAE,MAAO+B,CAAiB,CAAC,EAC5E,EACAzC,EAAC2C,EAAA,CACC,YAAY,aACZ,UAAW,GAAGzC,CAAS,iBACvB,SAAUW,GAAO,SACjB,KAAK,IACL,QAAUgC,GAAM,CACdA,EAAE,eAAe,EACjBtB,EAAkB,CACpB,EACA,MAAK,GACL,KAAK,QACL,QAASb,EAAE,qCAAsC,CAAE,MAAO+B,CAAiB,CAAC,EAC9E,GACF,GAEJ,CAEJ",
6
+ "names": ["useCallback", "useEffect", "useRef", "useLexicalComposerContext", "useLexicalNodeSelection", "mergeRegister", "getTranslation", "Button", "useTranslation", "$getNodeByKey", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "jsx", "jsxs", "baseClass", "InlineBlockComponent", "props", "formData", "nodeKey", "editor", "useLexicalComposerContext", "i18n", "t", "useTranslation", "editorConfig", "field", "useEditorConfigContext", "inlineBlockElemElemRef", "useRef", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "reducedBlock", "block", "removeInlineBlock", "useCallback", "$getNodeByKey", "$onDelete", "event", "$isNodeSelection", "$getSelection", "node", "$isInlineBlockNode", "onClick", "payload", "useEffect", "mergeRegister", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "LabelComponent", "blockDisplayName", "getTranslation", "Button", "OPEN_INLINE_BLOCK_DRAWER_COMMAND", "e"]
7
+ }
@@ -0,0 +1,63 @@
1
+ export { slashMenuBasicGroupWithItems } from '../../features/shared/slashMenu/basicGroup.js';
2
+ export { RichTextCell } from '../../cell/index.js';
3
+ export { AlignFeatureClient } from '../../features/align/feature.client.js';
4
+ export { BlockquoteFeatureClient } from '../../features/blockquote/feature.client.js';
5
+ export { BlocksFeatureClient } from '../../features/blocks/feature.client.js';
6
+ export { createClientComponent } from '../../features/createClientComponent.js';
7
+ export { TestRecorderFeatureClient } from '../../features/debug/testRecorder/feature.client.js';
8
+ export { TreeViewFeatureClient } from '../../features/debug/treeView/feature.client.js';
9
+ export { BoldFeatureClient } from '../../features/format/bold/feature.client.js';
10
+ export { InlineCodeFeatureClient } from '../../features/format/inlineCode/feature.client.js';
11
+ export { ItalicFeatureClient } from '../../features/format/italic/feature.client.js';
12
+ export { StrikethroughFeatureClient } from '../../features/format/strikethrough/feature.client.js';
13
+ export { SubscriptFeatureClient } from '../../features/format/subscript/feature.client.js';
14
+ export { SuperscriptFeatureClient } from '../../features/format/superscript/feature.client.js';
15
+ export { UnderlineFeatureClient } from '../../features/format/underline/feature.client.js';
16
+ export { HeadingFeatureClient } from '../../features/heading/feature.client.js';
17
+ export { HorizontalRuleFeatureClient } from '../../features/horizontalRule/feature.client.js';
18
+ export { IndentFeatureClient } from '../../features/indent/feature.client.js';
19
+ export { LinkFeatureClient } from '../../features/link/feature.client.js';
20
+ export { ChecklistFeatureClient } from '../../features/lists/checklist/feature.client.js';
21
+ export { OrderedListFeatureClient } from '../../features/lists/orderedList/feature.client.js';
22
+ export { UnorderedListFeatureClient } from '../../features/lists/unorderedList/feature.client.js';
23
+ export { LexicalPluginToLexicalFeatureClient } from '../../features/migrations/lexicalPluginToLexical/feature.client.js';
24
+ export { SlateToLexicalFeatureClient } from '../../features/migrations/slateToLexical/feature.client.js';
25
+ export { ParagraphFeatureClient } from '../../features/paragraph/feature.client.js';
26
+ export { RelationshipFeatureClient } from '../../features/relationship/feature.client.js';
27
+ export { toolbarFormatGroupWithItems } from '../../features/format/shared/toolbarFormatGroup.js';
28
+ export { toolbarAddDropdownGroupWithItems } from '../../features/shared/toolbar/addDropdownGroup.js';
29
+ export { toolbarFeatureButtonsGroupWithItems } from '../../features/shared/toolbar/featureButtonsGroup.js';
30
+ export { toolbarTextDropdownGroupWithItems } from '../../features/shared/toolbar/textDropdownGroup.js';
31
+ export { FixedToolbarFeatureClient } from '../../features/toolbars/fixed/feature.client.js';
32
+ export { InlineToolbarFeatureClient } from '../../features/toolbars/inline/feature.client.js';
33
+ export { ToolbarButton } from '../../features/toolbars/shared/ToolbarButton/index.js';
34
+ export { TableFeatureClient } from '../../features/experimental_table/feature.client.js';
35
+ export { ToolbarDropdown } from '../../features/toolbars/shared/ToolbarDropdown/index.js';
36
+ export { UploadFeatureClient } from '../../features/upload/feature.client.js';
37
+ export { RichTextField } from '../../field/index.js';
38
+ export { EditorConfigProvider, useEditorConfigContext, } from '../../lexical/config/client/EditorConfigProvider.js';
39
+ export { defaultEditorLexicalConfig } from '../../lexical/config/client/default.js';
40
+ export { sanitizeClientEditorConfig, sanitizeClientFeatures, } from '../../lexical/config/client/sanitize.js';
41
+ export { CAN_USE_DOM } from '../../lexical/utils/canUseDOM.js';
42
+ export { getDOMRangeRect } from '../../lexical/utils/getDOMRangeRect.js';
43
+ export { getSelectedNode } from '../../lexical/utils/getSelectedNode.js';
44
+ export { isHTMLElement } from '../../lexical/utils/guard.js';
45
+ export { invariant } from '../../lexical/utils/invariant.js';
46
+ export { joinClasses } from '../../lexical/utils/joinClasses.js';
47
+ export { createBlockNode } from '../../lexical/utils/markdown/createBlockNode.js';
48
+ export { Point, isPoint } from '../../lexical/utils/point.js';
49
+ export { Rect } from '../../lexical/utils/rect.js';
50
+ export { setFloatingElemPosition } from '../../lexical/utils/setFloatingElemPosition.js';
51
+ export { setFloatingElemPositionForLinkEditor } from '../../lexical/utils/setFloatingElemPositionForLinkEditor.js';
52
+ export { addSwipeDownListener, addSwipeLeftListener, addSwipeRightListener, addSwipeUpListener, } from '../../lexical/utils/swipe.js';
53
+ export { createClientFeature } from '../../utilities/createClientFeature.js';
54
+ export { DETAIL_TYPE_TO_DETAIL, DOUBLE_LINE_BREAK, ELEMENT_FORMAT_TO_TYPE, ELEMENT_TYPE_TO_FORMAT, IS_ALL_FORMATTING, LTR_REGEX, NON_BREAKING_SPACE, NodeFormat, RTL_REGEX, TEXT_MODE_TO_TYPE, TEXT_TYPE_TO_FORMAT, TEXT_TYPE_TO_MODE, } from '../../lexical/utils/nodeFormat.js';
55
+ export { ENABLE_SLASH_MENU_COMMAND } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js';
56
+ export { getEnabledNodes } from '../../lexical/nodes/index.js';
57
+ export { $createUploadNode, $isUploadNode, UploadNode, } from '../../features/upload/nodes/UploadNode.js';
58
+ export { $createRelationshipNode, $isRelationshipNode, RelationshipNode, } from '../../features/relationship/nodes/RelationshipNode.js';
59
+ export { $createLinkNode, $isLinkNode, LinkNode, TOGGLE_LINK_COMMAND, } from '../../features/link/nodes/LinkNode.js';
60
+ export { $createAutoLinkNode, $isAutoLinkNode, AutoLinkNode, } from '../../features/link/nodes/AutoLinkNode.js';
61
+ export { $createBlockNode, $isBlockNode, BlockNode, } from '../../features/blocks/nodes/BlocksNode.js';
62
+ export { FieldsDrawer } from '../../utilities/fieldsDrawer/Drawer.js';
63
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources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