@payloadcms/richtext-lexical 3.0.0-beta.11 → 3.0.0-beta.111

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 (2309) hide show
  1. package/README.md +1 -1
  2. package/dist/cell/index.d.ts +6 -3
  3. package/dist/cell/index.d.ts.map +1 -1
  4. package/dist/cell/index.js +115 -126
  5. package/dist/cell/index.js.map +1 -1
  6. package/dist/exports/client/Component-DOSSWC76.js +2 -0
  7. package/dist/exports/client/Component-DOSSWC76.js.map +7 -0
  8. package/dist/exports/client/Component-MBLHTKDK.js +2 -0
  9. package/dist/exports/client/Component-MBLHTKDK.js.map +7 -0
  10. package/dist/exports/client/Field-ETCEVZLL.js +2 -0
  11. package/dist/exports/client/Field-ETCEVZLL.js.map +7 -0
  12. package/dist/exports/client/RelationshipComponent-FTWR5YDX.js +2 -0
  13. package/dist/exports/client/RelationshipComponent-FTWR5YDX.js.map +7 -0
  14. package/dist/exports/client/bundled.css +1 -0
  15. package/dist/exports/client/chunk-32KXGBIQ.js +2 -0
  16. package/dist/exports/client/chunk-32KXGBIQ.js.map +7 -0
  17. package/dist/exports/client/chunk-6LZZDOEO.js +2 -0
  18. package/dist/exports/client/chunk-6LZZDOEO.js.map +7 -0
  19. package/dist/exports/client/chunk-GD6LBQBJ.js +2 -0
  20. package/dist/exports/client/chunk-GD6LBQBJ.js.map +7 -0
  21. package/dist/exports/client/chunk-IIWHHN4J.js +2 -0
  22. package/dist/exports/client/chunk-IIWHHN4J.js.map +7 -0
  23. package/dist/exports/client/chunk-QZNJUROL.js +2 -0
  24. package/dist/exports/client/chunk-QZNJUROL.js.map +7 -0
  25. package/dist/exports/client/chunk-WAMTSCVM.js +2 -0
  26. package/dist/exports/client/chunk-WAMTSCVM.js.map +7 -0
  27. package/dist/exports/client/chunk-XCEM47RI.js +3 -0
  28. package/dist/exports/client/chunk-XCEM47RI.js.map +7 -0
  29. package/dist/exports/client/component-6PBZ2U3Z.js +2 -0
  30. package/dist/exports/client/component-6PBZ2U3Z.js.map +7 -0
  31. package/dist/exports/client/component-6Y2K2RNP.js +2 -0
  32. package/dist/exports/client/component-6Y2K2RNP.js.map +7 -0
  33. package/dist/exports/client/component-ANB7VZLA.js +2 -0
  34. package/dist/exports/client/component-ANB7VZLA.js.map +7 -0
  35. package/dist/exports/client/componentInline-NUDJIIQ4.js +2 -0
  36. package/dist/exports/client/componentInline-NUDJIIQ4.js.map +7 -0
  37. package/dist/exports/client/index.d.ts +62 -0
  38. package/dist/exports/client/index.d.ts.map +1 -0
  39. package/dist/exports/client/index.js +38 -0
  40. package/dist/exports/client/index.js.map +7 -0
  41. package/dist/exports/server/migrate.d.ts +16 -0
  42. package/dist/exports/server/migrate.d.ts.map +1 -0
  43. package/dist/exports/server/migrate.js +16 -0
  44. package/dist/exports/server/migrate.js.map +1 -0
  45. package/dist/features/align/client/index.d.ts +2 -0
  46. package/dist/features/align/client/index.d.ts.map +1 -0
  47. package/dist/features/align/client/index.js +163 -0
  48. package/dist/features/align/client/index.js.map +1 -0
  49. package/dist/features/align/client/toolbarAlignGroup.d.ts +3 -0
  50. package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -0
  51. package/dist/features/align/client/toolbarAlignGroup.js +13 -0
  52. package/dist/features/align/client/toolbarAlignGroup.js.map +1 -0
  53. package/dist/features/align/server/i18n.d.ts +3 -0
  54. package/dist/features/align/server/i18n.d.ts.map +1 -0
  55. package/dist/features/align/server/i18n.js +195 -0
  56. package/dist/features/align/server/i18n.js.map +1 -0
  57. package/dist/features/align/server/index.d.ts +2 -0
  58. package/dist/features/align/server/index.d.ts.map +1 -0
  59. package/dist/features/align/server/index.js +10 -0
  60. package/dist/features/align/server/index.js.map +1 -0
  61. package/dist/features/blockquote/client/index.d.ts +2 -0
  62. package/dist/features/blockquote/client/index.d.ts.map +1 -0
  63. package/dist/features/blockquote/client/index.js +72 -0
  64. package/dist/features/blockquote/client/index.js.map +1 -0
  65. package/dist/features/blockquote/markdownTransformer.d.ts.map +1 -0
  66. package/dist/features/blockquote/markdownTransformer.js +34 -0
  67. package/dist/features/blockquote/markdownTransformer.js.map +1 -0
  68. package/dist/features/blockquote/server/i18n.d.ts +3 -0
  69. package/dist/features/blockquote/server/i18n.d.ts.map +1 -0
  70. package/dist/features/blockquote/server/i18n.js +99 -0
  71. package/dist/features/blockquote/server/i18n.js.map +1 -0
  72. package/dist/features/blockquote/server/index.d.ts +7 -0
  73. package/dist/features/blockquote/server/index.d.ts.map +1 -0
  74. package/dist/features/blockquote/server/index.js +51 -0
  75. package/dist/features/blockquote/server/index.js.map +1 -0
  76. package/dist/features/blocks/client/component/BlockContent.d.ts +22 -0
  77. package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -0
  78. package/dist/features/blocks/client/component/BlockContent.js +193 -0
  79. package/dist/features/blocks/client/component/BlockContent.js.map +1 -0
  80. package/dist/features/blocks/client/component/FormSavePlugin.d.ts +11 -0
  81. package/dist/features/blocks/client/component/FormSavePlugin.d.ts.map +1 -0
  82. package/dist/features/blocks/client/component/FormSavePlugin.js +53 -0
  83. package/dist/features/blocks/client/component/FormSavePlugin.js.map +1 -0
  84. package/dist/features/blocks/client/component/index.d.ts +11 -0
  85. package/dist/features/blocks/client/component/index.d.ts.map +1 -0
  86. package/dist/features/blocks/client/component/index.js +149 -0
  87. package/dist/features/blocks/client/component/index.js.map +1 -0
  88. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +11 -0
  89. package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -0
  90. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +20 -0
  91. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -0
  92. package/dist/features/blocks/client/componentInline/index.d.ts +10 -0
  93. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -0
  94. package/dist/features/blocks/client/componentInline/index.js +125 -0
  95. package/dist/features/blocks/client/componentInline/index.js.map +1 -0
  96. package/dist/features/blocks/client/index.d.ts +6 -0
  97. package/dist/features/blocks/client/index.d.ts.map +1 -0
  98. package/dist/features/blocks/client/index.js +169 -0
  99. package/dist/features/blocks/client/index.js.map +1 -0
  100. package/dist/features/blocks/client/nodes/BlocksNode.d.ts +14 -0
  101. package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -0
  102. package/dist/features/blocks/client/nodes/BlocksNode.js +53 -0
  103. package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -0
  104. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +25 -0
  105. package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -0
  106. package/dist/features/blocks/client/nodes/InlineBlocksNode.js +42 -0
  107. package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -0
  108. package/dist/features/blocks/client/plugin/commands.d.ts +9 -0
  109. package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -0
  110. package/dist/features/blocks/client/plugin/commands.js +7 -0
  111. package/dist/features/blocks/client/plugin/commands.js.map +1 -0
  112. package/dist/features/blocks/client/plugin/index.d.ts +6 -0
  113. package/dist/features/blocks/client/plugin/index.d.ts.map +1 -0
  114. package/dist/features/blocks/client/plugin/index.js +202 -0
  115. package/dist/features/blocks/client/plugin/index.js.map +1 -0
  116. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +6 -0
  117. package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -0
  118. package/dist/features/blocks/server/graphQLPopulationPromise.js +44 -0
  119. package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -0
  120. package/dist/features/blocks/server/i18n.d.ts +3 -0
  121. package/dist/features/blocks/server/i18n.d.ts.map +1 -0
  122. package/dist/features/blocks/server/i18n.js +291 -0
  123. package/dist/features/blocks/server/i18n.js.map +1 -0
  124. package/dist/features/blocks/server/index.d.ts +8 -0
  125. package/dist/features/blocks/server/index.d.ts.map +1 -0
  126. package/dist/features/blocks/server/index.js +164 -0
  127. package/dist/features/blocks/server/index.js.map +1 -0
  128. package/dist/features/blocks/server/nodes/BlocksNode.d.ts +44 -0
  129. package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -0
  130. package/dist/features/blocks/server/nodes/BlocksNode.js +87 -0
  131. package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -0
  132. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +40 -0
  133. package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -0
  134. package/dist/features/blocks/server/nodes/InlineBlocksNode.js +88 -0
  135. package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -0
  136. package/dist/features/blocks/server/validate.d.ts +6 -0
  137. package/dist/features/blocks/server/validate.d.ts.map +1 -0
  138. package/dist/features/blocks/server/validate.js +48 -0
  139. package/dist/features/blocks/server/validate.js.map +1 -0
  140. package/dist/features/converters/html/converter/converters/linebreak.d.ts.map +1 -0
  141. package/dist/features/converters/html/converter/converters/linebreak.js +7 -0
  142. package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -0
  143. package/dist/features/converters/html/converter/converters/paragraph.d.ts.map +1 -0
  144. package/dist/features/converters/html/converter/converters/paragraph.js +32 -0
  145. package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -0
  146. package/dist/features/converters/html/converter/converters/text.d.ts.map +1 -0
  147. package/dist/features/converters/html/converter/converters/text.js +33 -0
  148. package/dist/features/converters/html/converter/converters/text.js.map +1 -0
  149. package/dist/features/converters/html/converter/defaultConverters.d.ts.map +1 -0
  150. package/dist/features/converters/html/converter/defaultConverters.js +5 -0
  151. package/dist/features/converters/html/converter/defaultConverters.js.map +1 -0
  152. package/dist/features/converters/html/converter/index.d.ts +52 -0
  153. package/dist/features/converters/html/converter/index.d.ts.map +1 -0
  154. package/dist/features/converters/html/converter/index.js +88 -0
  155. package/dist/features/converters/html/converter/index.js.map +1 -0
  156. package/dist/features/converters/html/converter/types.d.ts +24 -0
  157. package/dist/features/converters/html/converter/types.d.ts.map +1 -0
  158. package/dist/features/converters/html/converter/types.js +2 -0
  159. package/dist/features/converters/html/converter/types.js.map +1 -0
  160. package/dist/features/converters/html/field/index.d.ts +35 -0
  161. package/dist/features/converters/html/field/index.d.ts.map +1 -0
  162. package/dist/features/converters/html/field/index.js +158 -0
  163. package/dist/features/converters/html/field/index.js.map +1 -0
  164. package/dist/features/converters/html/index.d.ts +8 -0
  165. package/dist/features/converters/html/index.d.ts.map +1 -0
  166. package/dist/features/converters/html/index.js +7 -0
  167. package/dist/features/converters/html/index.js.map +1 -0
  168. package/dist/features/debug/testRecorder/client/index.d.ts +2 -0
  169. package/dist/features/debug/testRecorder/client/index.d.ts.map +1 -0
  170. package/dist/features/debug/testRecorder/client/index.js +11 -0
  171. package/dist/features/debug/testRecorder/client/index.js.map +1 -0
  172. package/dist/features/debug/testRecorder/client/plugin/index.d.ts +5 -0
  173. package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -0
  174. package/dist/features/debug/testRecorder/client/plugin/index.js +411 -0
  175. package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -0
  176. package/dist/features/debug/testRecorder/server/index.d.ts +2 -0
  177. package/dist/features/debug/testRecorder/server/index.d.ts.map +1 -0
  178. package/dist/features/debug/testRecorder/server/index.js +8 -0
  179. package/dist/features/debug/testRecorder/server/index.js.map +1 -0
  180. package/dist/features/debug/treeView/client/index.d.ts +2 -0
  181. package/dist/features/debug/treeView/client/index.d.ts.map +1 -0
  182. package/dist/features/debug/treeView/client/index.js +11 -0
  183. package/dist/features/debug/treeView/client/index.js.map +1 -0
  184. package/dist/features/debug/treeView/client/plugin/index.d.ts +4 -0
  185. package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -0
  186. package/dist/features/debug/treeView/client/plugin/index.js +29 -0
  187. package/dist/features/debug/treeView/client/plugin/index.js.map +1 -0
  188. package/dist/features/debug/treeView/server/index.d.ts +2 -0
  189. package/dist/features/debug/treeView/server/index.d.ts.map +1 -0
  190. package/dist/features/debug/treeView/server/index.js +8 -0
  191. package/dist/features/debug/treeView/server/index.js.map +1 -0
  192. package/dist/features/experimental_table/client/index.d.ts +2 -0
  193. package/dist/features/experimental_table/client/index.d.ts.map +1 -0
  194. package/dist/features/experimental_table/client/index.js +54 -0
  195. package/dist/features/experimental_table/client/index.js.map +1 -0
  196. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +4 -0
  197. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
  198. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +509 -0
  199. package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
  200. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +3 -0
  201. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
  202. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +308 -0
  203. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
  204. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +5 -0
  205. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
  206. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +186 -0
  207. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
  208. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +24 -0
  209. package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -0
  210. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +151 -0
  211. package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -0
  212. package/dist/features/experimental_table/client/utils/debounce.d.ts +61 -0
  213. package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -0
  214. package/dist/features/experimental_table/client/utils/debounce.js +221 -0
  215. package/dist/features/experimental_table/client/utils/debounce.js.map +1 -0
  216. package/dist/features/experimental_table/client/utils/useDebounce.d.ts +6 -0
  217. package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -0
  218. package/dist/features/experimental_table/client/utils/useDebounce.js +16 -0
  219. package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -0
  220. package/dist/features/experimental_table/server/index.d.ts +13 -0
  221. package/dist/features/experimental_table/server/index.d.ts.map +1 -0
  222. package/dist/features/experimental_table/server/index.js +150 -0
  223. package/dist/features/experimental_table/server/index.js.map +1 -0
  224. package/dist/features/format/bold/feature.client.d.ts +2 -0
  225. package/dist/features/format/bold/feature.client.d.ts.map +1 -0
  226. package/dist/features/format/bold/feature.client.js +43 -0
  227. package/dist/features/format/bold/feature.client.js.map +1 -0
  228. package/dist/features/format/bold/feature.server.d.ts +2 -0
  229. package/dist/features/format/bold/feature.server.d.ts.map +1 -0
  230. package/dist/features/format/bold/feature.server.js +19 -0
  231. package/dist/features/format/bold/feature.server.js.map +1 -0
  232. package/dist/features/format/bold/markdownTransformers.d.ts.map +1 -0
  233. package/dist/features/format/bold/markdownTransformers.js +23 -0
  234. package/dist/features/format/bold/markdownTransformers.js.map +1 -0
  235. package/dist/features/format/inlineCode/feature.client.d.ts +2 -0
  236. package/dist/features/format/inlineCode/feature.client.d.ts.map +1 -0
  237. package/dist/features/format/inlineCode/feature.client.js +35 -0
  238. package/dist/features/format/inlineCode/feature.client.js.map +1 -0
  239. package/dist/features/format/inlineCode/feature.server.d.ts +2 -0
  240. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -0
  241. package/dist/features/format/inlineCode/feature.server.js +10 -0
  242. package/dist/features/format/inlineCode/feature.server.js.map +1 -0
  243. package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +1 -0
  244. package/dist/features/format/inlineCode/markdownTransformers.js +6 -0
  245. package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -0
  246. package/dist/features/format/italic/feature.client.d.ts +2 -0
  247. package/dist/features/format/italic/feature.client.d.ts.map +1 -0
  248. package/dist/features/format/italic/feature.client.js +35 -0
  249. package/dist/features/format/italic/feature.client.js.map +1 -0
  250. package/dist/features/format/italic/feature.server.d.ts +2 -0
  251. package/dist/features/format/italic/feature.server.d.ts.map +1 -0
  252. package/dist/features/format/italic/feature.server.js +10 -0
  253. package/dist/features/format/italic/feature.server.js.map +1 -0
  254. package/dist/features/format/italic/markdownTransformers.d.ts.map +1 -0
  255. package/dist/features/format/italic/markdownTransformers.js +12 -0
  256. package/dist/features/format/italic/markdownTransformers.js.map +1 -0
  257. package/dist/features/format/shared/toolbarFormatGroup.d.ts +3 -0
  258. package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  259. package/dist/features/format/shared/toolbarFormatGroup.js +11 -0
  260. package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -0
  261. package/dist/features/format/strikethrough/feature.client.d.ts +2 -0
  262. package/dist/features/format/strikethrough/feature.client.d.ts.map +1 -0
  263. package/dist/features/format/strikethrough/feature.client.js +35 -0
  264. package/dist/features/format/strikethrough/feature.client.js.map +1 -0
  265. package/dist/features/format/strikethrough/feature.server.d.ts +2 -0
  266. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -0
  267. package/dist/features/format/strikethrough/feature.server.js +10 -0
  268. package/dist/features/format/strikethrough/feature.server.js.map +1 -0
  269. package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +1 -0
  270. package/dist/features/format/strikethrough/markdownTransformers.js +6 -0
  271. package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -0
  272. package/dist/features/format/subscript/feature.client.d.ts +2 -0
  273. package/dist/features/format/subscript/feature.client.d.ts.map +1 -0
  274. package/dist/features/format/subscript/feature.client.js +33 -0
  275. package/dist/features/format/subscript/feature.client.js.map +1 -0
  276. package/dist/features/format/subscript/feature.server.d.ts +2 -0
  277. package/dist/features/format/subscript/feature.server.d.ts.map +1 -0
  278. package/dist/features/format/subscript/feature.server.js +8 -0
  279. package/dist/features/format/subscript/feature.server.js.map +1 -0
  280. package/dist/features/format/superscript/feature.client.d.ts +2 -0
  281. package/dist/features/format/superscript/feature.client.d.ts.map +1 -0
  282. package/dist/features/format/superscript/feature.client.js +33 -0
  283. package/dist/features/format/superscript/feature.client.js.map +1 -0
  284. package/dist/features/format/superscript/feature.server.d.ts +2 -0
  285. package/dist/features/format/superscript/feature.server.d.ts.map +1 -0
  286. package/dist/features/format/superscript/feature.server.js +8 -0
  287. package/dist/features/format/superscript/feature.server.js.map +1 -0
  288. package/dist/features/format/underline/feature.client.d.ts +2 -0
  289. package/dist/features/format/underline/feature.client.d.ts.map +1 -0
  290. package/dist/features/format/underline/feature.client.js +33 -0
  291. package/dist/features/format/underline/feature.client.js.map +1 -0
  292. package/dist/features/format/underline/feature.server.d.ts +2 -0
  293. package/dist/features/format/underline/feature.server.d.ts.map +1 -0
  294. package/dist/features/format/underline/feature.server.js +8 -0
  295. package/dist/features/format/underline/feature.server.js.map +1 -0
  296. package/dist/features/heading/client/index.d.ts +3 -0
  297. package/dist/features/heading/client/index.d.ts.map +1 -0
  298. package/dist/features/heading/client/index.js +108 -0
  299. package/dist/features/heading/client/index.js.map +1 -0
  300. package/dist/features/heading/markdownTransformer.d.ts.map +1 -0
  301. package/dist/features/heading/markdownTransformer.js +26 -0
  302. package/dist/features/heading/markdownTransformer.js.map +1 -0
  303. package/dist/features/heading/server/i18n.d.ts +3 -0
  304. package/dist/features/heading/server/i18n.d.ts.map +1 -0
  305. package/dist/features/heading/server/i18n.js +99 -0
  306. package/dist/features/heading/server/i18n.js.map +1 -0
  307. package/dist/features/heading/server/index.d.ts +10 -0
  308. package/dist/features/heading/server/index.d.ts.map +1 -0
  309. package/dist/features/heading/server/index.js +62 -0
  310. package/dist/features/heading/server/index.js.map +1 -0
  311. package/dist/features/horizontalRule/client/component/index.d.ts +10 -0
  312. package/dist/features/horizontalRule/client/component/index.d.ts.map +1 -0
  313. package/dist/features/horizontalRule/client/component/index.js +100 -0
  314. package/dist/features/horizontalRule/client/component/index.js.map +1 -0
  315. package/dist/features/horizontalRule/client/index.d.ts +2 -0
  316. package/dist/features/horizontalRule/client/index.d.ts.map +1 -0
  317. package/dist/features/horizontalRule/client/index.js +62 -0
  318. package/dist/features/horizontalRule/client/index.js.map +1 -0
  319. package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -0
  320. package/dist/features/horizontalRule/client/markdownTransformer.js +20 -0
  321. package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -0
  322. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +20 -0
  323. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -0
  324. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +46 -0
  325. package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -0
  326. package/dist/features/horizontalRule/client/plugin/index.d.ts +7 -0
  327. package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -0
  328. package/dist/features/horizontalRule/client/plugin/index.js +42 -0
  329. package/dist/features/horizontalRule/client/plugin/index.js.map +1 -0
  330. package/dist/features/horizontalRule/server/i18n.d.ts +3 -0
  331. package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -0
  332. package/dist/features/horizontalRule/server/i18n.js +99 -0
  333. package/dist/features/horizontalRule/server/i18n.js.map +1 -0
  334. package/dist/features/horizontalRule/server/index.d.ts +2 -0
  335. package/dist/features/horizontalRule/server/index.d.ts.map +1 -0
  336. package/dist/features/horizontalRule/server/index.js +25 -0
  337. package/dist/features/horizontalRule/server/index.js.map +1 -0
  338. package/dist/features/horizontalRule/server/markdownTransformer.d.ts +3 -0
  339. package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -0
  340. package/dist/features/horizontalRule/server/markdownTransformer.js +20 -0
  341. package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -0
  342. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +53 -0
  343. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -0
  344. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +88 -0
  345. package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -0
  346. package/dist/features/indent/client/index.d.ts +2 -0
  347. package/dist/features/indent/client/index.d.ts.map +1 -0
  348. package/dist/features/indent/client/index.js +62 -0
  349. package/dist/features/indent/client/index.js.map +1 -0
  350. package/dist/features/indent/client/toolbarIndentGroup.d.ts +3 -0
  351. package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -0
  352. package/dist/features/indent/client/toolbarIndentGroup.js +11 -0
  353. package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -0
  354. package/dist/features/indent/server/i18n.d.ts +3 -0
  355. package/dist/features/indent/server/i18n.d.ts.map +1 -0
  356. package/dist/features/indent/server/i18n.js +131 -0
  357. package/dist/features/indent/server/i18n.js.map +1 -0
  358. package/dist/features/indent/server/index.d.ts +2 -0
  359. package/dist/features/indent/server/index.d.ts.map +1 -0
  360. package/dist/features/indent/server/index.js +10 -0
  361. package/dist/features/indent/server/index.js.map +1 -0
  362. package/dist/features/link/client/index.d.ts +4 -0
  363. package/dist/features/link/client/index.d.ts.map +1 -0
  364. package/dist/features/link/client/index.js +96 -0
  365. package/dist/features/link/client/index.js.map +1 -0
  366. package/dist/features/link/client/plugins/autoLink/index.d.ts +20 -0
  367. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -0
  368. package/dist/features/link/client/plugins/autoLink/index.js +333 -0
  369. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -0
  370. package/dist/features/link/client/plugins/clickableLink/index.d.ts +4 -0
  371. package/dist/features/link/client/plugins/clickableLink/index.d.ts.map +1 -0
  372. package/dist/features/link/client/plugins/clickableLink/index.js +9 -0
  373. package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -0
  374. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  375. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js +5 -0
  376. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
  377. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  378. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +275 -0
  379. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
  380. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +5 -0
  381. package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  382. package/dist/features/link/client/plugins/floatingLinkEditor/index.js +15 -0
  383. package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -0
  384. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +15 -0
  385. package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  386. package/dist/features/link/client/plugins/floatingLinkEditor/types.js +5 -0
  387. package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -0
  388. package/dist/features/link/client/plugins/link/index.d.ts +4 -0
  389. package/dist/features/link/client/plugins/link/index.d.ts.map +1 -0
  390. package/dist/features/link/client/plugins/link/index.js +60 -0
  391. package/dist/features/link/client/plugins/link/index.js.map +1 -0
  392. package/dist/features/link/markdownTransformer.d.ts +6 -0
  393. package/dist/features/link/markdownTransformer.d.ts.map +1 -0
  394. package/dist/features/link/markdownTransformer.js +49 -0
  395. package/dist/features/link/markdownTransformer.js.map +1 -0
  396. package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
  397. package/dist/features/link/nodes/AutoLinkNode.js +69 -0
  398. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -0
  399. package/dist/features/link/nodes/LinkNode.d.ts +39 -0
  400. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
  401. package/dist/features/link/nodes/LinkNode.js +323 -0
  402. package/dist/features/link/nodes/LinkNode.js.map +1 -0
  403. package/dist/features/link/nodes/types.d.ts +24 -0
  404. package/dist/features/link/nodes/types.d.ts.map +1 -0
  405. package/dist/features/link/nodes/types.js +2 -0
  406. package/dist/features/link/nodes/types.js.map +1 -0
  407. package/dist/features/link/server/baseFields.d.ts +3 -0
  408. package/dist/features/link/server/baseFields.d.ts.map +1 -0
  409. package/dist/features/link/server/baseFields.js +136 -0
  410. package/dist/features/link/server/baseFields.js.map +1 -0
  411. package/dist/features/link/server/graphQLPopulationPromise.d.ts +5 -0
  412. package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -0
  413. package/dist/features/link/server/graphQLPopulationPromise.js +45 -0
  414. package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -0
  415. package/dist/features/link/server/i18n.d.ts +3 -0
  416. package/dist/features/link/server/i18n.d.ts.map +1 -0
  417. package/dist/features/link/server/i18n.js +99 -0
  418. package/dist/features/link/server/i18n.js.map +1 -0
  419. package/dist/features/link/server/index.d.ts +35 -0
  420. package/dist/features/link/server/index.d.ts.map +1 -0
  421. package/dist/features/link/server/index.js +149 -0
  422. package/dist/features/link/server/index.js.map +1 -0
  423. package/dist/features/link/server/transformExtraFields.d.ts +9 -0
  424. package/dist/features/link/server/transformExtraFields.d.ts.map +1 -0
  425. package/dist/features/link/server/transformExtraFields.js +20 -0
  426. package/dist/features/link/server/transformExtraFields.js.map +1 -0
  427. package/dist/features/link/server/validate.d.ts +6 -0
  428. package/dist/features/link/server/validate.d.ts.map +1 -0
  429. package/dist/features/link/server/validate.js +40 -0
  430. package/dist/features/link/server/validate.js.map +1 -0
  431. package/dist/features/lists/checklist/client/index.d.ts +2 -0
  432. package/dist/features/lists/checklist/client/index.d.ts.map +1 -0
  433. package/dist/features/lists/checklist/client/index.js +92 -0
  434. package/dist/features/lists/checklist/client/index.js.map +1 -0
  435. package/dist/features/lists/checklist/client/plugin/index.d.ts +3 -0
  436. package/dist/features/lists/checklist/client/plugin/index.d.ts.map +1 -0
  437. package/dist/features/lists/checklist/client/plugin/index.js +9 -0
  438. package/dist/features/lists/checklist/client/plugin/index.js.map +1 -0
  439. package/dist/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
  440. package/dist/features/lists/checklist/markdownTransformers.js +12 -0
  441. package/dist/features/lists/checklist/markdownTransformers.js.map +1 -0
  442. package/dist/features/lists/checklist/server/i18n.d.ts +3 -0
  443. package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -0
  444. package/dist/features/lists/checklist/server/i18n.js +99 -0
  445. package/dist/features/lists/checklist/server/i18n.js.map +1 -0
  446. package/dist/features/lists/checklist/server/index.d.ts +2 -0
  447. package/dist/features/lists/checklist/server/index.d.ts.map +1 -0
  448. package/dist/features/lists/checklist/server/index.js +30 -0
  449. package/dist/features/lists/checklist/server/index.js.map +1 -0
  450. package/dist/features/lists/htmlConverter.d.ts +5 -0
  451. package/dist/features/lists/htmlConverter.d.ts.map +1 -0
  452. package/dist/features/lists/htmlConverter.js +81 -0
  453. package/dist/features/lists/htmlConverter.js.map +1 -0
  454. package/dist/features/lists/orderedList/client/index.d.ts +2 -0
  455. package/dist/features/lists/orderedList/client/index.d.ts.map +1 -0
  456. package/dist/features/lists/orderedList/client/index.js +84 -0
  457. package/dist/features/lists/orderedList/client/index.js.map +1 -0
  458. package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  459. package/dist/features/lists/orderedList/markdownTransformer.js +12 -0
  460. package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -0
  461. package/dist/features/lists/orderedList/server/i18n.d.ts +3 -0
  462. package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -0
  463. package/dist/features/lists/orderedList/server/i18n.js +99 -0
  464. package/dist/features/lists/orderedList/server/i18n.js.map +1 -0
  465. package/dist/features/lists/orderedList/server/index.d.ts +2 -0
  466. package/dist/features/lists/orderedList/server/index.d.ts.map +1 -0
  467. package/dist/features/lists/orderedList/server/index.js +30 -0
  468. package/dist/features/lists/orderedList/server/index.js.map +1 -0
  469. package/dist/features/lists/plugin/index.d.ts +13 -0
  470. package/dist/features/lists/plugin/index.d.ts.map +1 -0
  471. package/dist/features/lists/plugin/index.js +9 -0
  472. package/dist/features/lists/plugin/index.js.map +1 -0
  473. package/dist/features/lists/shared/markdown.d.ts +6 -0
  474. package/dist/features/lists/shared/markdown.d.ts.map +1 -0
  475. package/dist/features/lists/shared/markdown.js +57 -0
  476. package/dist/features/lists/shared/markdown.js.map +1 -0
  477. package/dist/features/lists/shared/slashMenuListGroup.d.ts +3 -0
  478. package/dist/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
  479. package/dist/features/lists/shared/slashMenuListGroup.js +12 -0
  480. package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -0
  481. package/dist/features/lists/unorderedList/client/index.d.ts +2 -0
  482. package/dist/features/lists/unorderedList/client/index.d.ts.map +1 -0
  483. package/dist/features/lists/unorderedList/client/index.js +80 -0
  484. package/dist/features/lists/unorderedList/client/index.js.map +1 -0
  485. package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  486. package/dist/features/lists/unorderedList/markdownTransformer.js +12 -0
  487. package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  488. package/dist/features/lists/unorderedList/server/i18n.d.ts +3 -0
  489. package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -0
  490. package/dist/features/lists/unorderedList/server/i18n.js +99 -0
  491. package/dist/features/lists/unorderedList/server/i18n.js.map +1 -0
  492. package/dist/features/lists/unorderedList/server/index.d.ts +2 -0
  493. package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -0
  494. package/dist/features/lists/unorderedList/server/index.js +26 -0
  495. package/dist/features/lists/unorderedList/server/index.js.map +1 -0
  496. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +3 -0
  497. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  498. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +22 -0
  499. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -0
  500. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +3 -0
  501. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
  502. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +33 -0
  503. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -0
  504. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +3 -0
  505. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
  506. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +24 -0
  507. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -0
  508. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +3 -0
  509. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  510. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +25 -0
  511. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -0
  512. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +3 -0
  513. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
  514. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +22 -0
  515. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -0
  516. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +3 -0
  517. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  518. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +28 -0
  519. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -0
  520. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +3 -0
  521. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  522. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +22 -0
  523. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -0
  524. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +3 -0
  525. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
  526. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +9 -0
  527. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -0
  528. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +19 -0
  529. package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
  530. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +78 -0
  531. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -0
  532. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +23 -0
  533. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
  534. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +2 -0
  535. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -0
  536. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +2 -0
  537. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
  538. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +10 -0
  539. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -0
  540. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +10 -0
  541. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
  542. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +49 -0
  543. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -0
  544. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  545. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  546. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  547. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  548. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  549. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +74 -0
  550. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  551. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +3 -0
  552. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
  553. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +23 -0
  554. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -0
  555. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +3 -0
  556. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  557. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +24 -0
  558. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -0
  559. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +3 -0
  560. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
  561. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +33 -0
  562. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -0
  563. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +3 -0
  564. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
  565. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +30 -0
  566. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -0
  567. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +3 -0
  568. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  569. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +26 -0
  570. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -0
  571. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +3 -0
  572. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
  573. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +26 -0
  574. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -0
  575. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +3 -0
  576. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
  577. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +15 -0
  578. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -0
  579. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +3 -0
  580. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  581. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +27 -0
  582. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -0
  583. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +3 -0
  584. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
  585. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +26 -0
  586. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -0
  587. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +3 -0
  588. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  589. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +18 -0
  590. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -0
  591. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +3 -0
  592. package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
  593. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +12 -0
  594. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -0
  595. package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
  596. package/dist/features/migrations/slateToLexical/converter/index.js +117 -0
  597. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -0
  598. package/dist/features/migrations/slateToLexical/converter/types.d.ts +16 -0
  599. package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
  600. package/dist/features/migrations/slateToLexical/converter/types.js +2 -0
  601. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -0
  602. package/dist/features/migrations/slateToLexical/feature.client.d.ts +2 -0
  603. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
  604. package/dist/features/migrations/slateToLexical/feature.client.js +10 -0
  605. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -0
  606. package/dist/features/migrations/slateToLexical/feature.server.d.ts +11 -0
  607. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
  608. package/dist/features/migrations/slateToLexical/feature.server.js +50 -0
  609. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -0
  610. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  611. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +15 -0
  612. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
  613. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
  614. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  615. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +74 -0
  616. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
  617. package/dist/features/paragraph/client/index.d.ts +2 -0
  618. package/dist/features/paragraph/client/index.d.ts.map +1 -0
  619. package/dist/features/paragraph/client/index.js +68 -0
  620. package/dist/features/paragraph/client/index.js.map +1 -0
  621. package/dist/features/paragraph/server/i18n.d.ts +3 -0
  622. package/dist/features/paragraph/server/i18n.d.ts.map +1 -0
  623. package/dist/features/paragraph/server/i18n.js +131 -0
  624. package/dist/features/paragraph/server/i18n.js.map +1 -0
  625. package/dist/features/paragraph/server/index.d.ts +2 -0
  626. package/dist/features/paragraph/server/index.d.ts.map +1 -0
  627. package/dist/features/paragraph/server/index.js +11 -0
  628. package/dist/features/paragraph/server/index.js.map +1 -0
  629. package/dist/features/relationship/client/components/RelationshipComponent.d.ts +13 -0
  630. package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -0
  631. package/dist/features/relationship/client/components/RelationshipComponent.js +171 -0
  632. package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -0
  633. package/dist/features/relationship/client/drawer/commands.d.ts.map +1 -0
  634. package/dist/features/relationship/client/drawer/commands.js +3 -0
  635. package/dist/features/relationship/client/drawer/commands.js.map +1 -0
  636. package/dist/features/relationship/client/drawer/index.d.ts.map +1 -0
  637. package/dist/features/relationship/client/drawer/index.js +154 -0
  638. package/dist/features/relationship/client/drawer/index.js.map +1 -0
  639. package/dist/features/relationship/client/index.d.ts +3 -0
  640. package/dist/features/relationship/client/index.d.ts.map +1 -0
  641. package/dist/features/relationship/client/index.js +66 -0
  642. package/dist/features/relationship/client/index.js.map +1 -0
  643. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +15 -0
  644. package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -0
  645. package/dist/features/relationship/client/nodes/RelationshipNode.js +75 -0
  646. package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -0
  647. package/dist/features/relationship/client/plugins/index.d.ts +7 -0
  648. package/dist/features/relationship/client/plugins/index.d.ts.map +1 -0
  649. package/dist/features/relationship/client/plugins/index.js +105 -0
  650. package/dist/features/relationship/client/plugins/index.js.map +1 -0
  651. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  652. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js +104 -0
  653. package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js.map +1 -0
  654. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +5 -0
  655. package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -0
  656. package/dist/features/relationship/server/graphQLPopulationPromise.js +37 -0
  657. package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -0
  658. package/dist/features/relationship/server/i18n.d.ts +3 -0
  659. package/dist/features/relationship/server/i18n.d.ts.map +1 -0
  660. package/dist/features/relationship/server/i18n.js +99 -0
  661. package/dist/features/relationship/server/i18n.js.map +1 -0
  662. package/dist/features/relationship/server/index.d.ts +27 -0
  663. package/dist/features/relationship/server/index.d.ts.map +1 -0
  664. package/dist/features/relationship/server/index.js +65 -0
  665. package/dist/features/relationship/server/index.js.map +1 -0
  666. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +37 -0
  667. package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -0
  668. package/dist/features/relationship/server/nodes/RelationshipNode.js +104 -0
  669. package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -0
  670. package/dist/features/shared/slashMenu/basicGroup.d.ts +3 -0
  671. package/dist/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
  672. package/dist/features/shared/slashMenu/basicGroup.js +12 -0
  673. package/dist/features/shared/slashMenu/basicGroup.js.map +1 -0
  674. package/dist/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
  675. package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  676. package/dist/features/shared/toolbar/addDropdownGroup.js +11 -0
  677. package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  678. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
  679. package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  680. package/dist/features/shared/toolbar/featureButtonsGroup.js +9 -0
  681. package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  682. package/dist/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
  683. package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  684. package/dist/features/shared/toolbar/textDropdownGroup.js +11 -0
  685. package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  686. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +5 -0
  687. package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -0
  688. package/dist/features/toolbars/fixed/client/Toolbar/index.js +285 -0
  689. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -0
  690. package/dist/features/toolbars/fixed/client/index.d.ts +3 -0
  691. package/dist/features/toolbars/fixed/client/index.d.ts.map +1 -0
  692. package/dist/features/toolbars/fixed/client/index.js +11 -0
  693. package/dist/features/toolbars/fixed/client/index.js.map +1 -0
  694. package/dist/features/toolbars/fixed/server/index.d.ts +18 -0
  695. package/dist/features/toolbars/fixed/server/index.d.ts.map +1 -0
  696. package/dist/features/toolbars/fixed/server/index.js +18 -0
  697. package/dist/features/toolbars/fixed/server/index.js.map +1 -0
  698. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +4 -0
  699. package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -0
  700. package/dist/features/toolbars/inline/client/Toolbar/index.js +365 -0
  701. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -0
  702. package/dist/features/toolbars/inline/client/index.d.ts +2 -0
  703. package/dist/features/toolbars/inline/client/index.d.ts.map +1 -0
  704. package/dist/features/toolbars/inline/client/index.js +11 -0
  705. package/dist/features/toolbars/inline/client/index.js.map +1 -0
  706. package/dist/features/toolbars/inline/server/index.d.ts +2 -0
  707. package/dist/features/toolbars/inline/server/index.d.ts.map +1 -0
  708. package/dist/features/toolbars/inline/server/index.js +8 -0
  709. package/dist/features/toolbars/inline/server/index.js.map +1 -0
  710. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
  711. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  712. package/dist/features/toolbars/shared/ToolbarButton/index.js +89 -0
  713. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  714. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +22 -0
  715. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  716. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +208 -0
  717. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  718. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +22 -0
  719. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  720. package/dist/features/toolbars/shared/ToolbarDropdown/index.js +308 -0
  721. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  722. package/dist/features/toolbars/types.d.ts +91 -0
  723. package/dist/features/toolbars/types.d.ts.map +1 -0
  724. package/dist/features/toolbars/types.js +2 -0
  725. package/dist/features/toolbars/types.js.map +1 -0
  726. package/dist/features/typeUtilities.d.ts +8 -0
  727. package/dist/features/typeUtilities.d.ts.map +1 -0
  728. package/dist/features/typeUtilities.js +7 -0
  729. package/dist/features/typeUtilities.js.map +1 -0
  730. package/dist/features/typesClient.d.ts +185 -0
  731. package/dist/features/typesClient.d.ts.map +1 -0
  732. package/dist/features/typesClient.js +2 -0
  733. package/dist/features/typesClient.js.map +1 -0
  734. package/dist/features/typesServer.d.ts +320 -0
  735. package/dist/features/typesServer.d.ts.map +1 -0
  736. package/dist/features/typesServer.js +2 -0
  737. package/dist/features/typesServer.js.map +1 -0
  738. package/dist/features/upload/client/component/index.d.ts +9 -0
  739. package/dist/features/upload/client/component/index.d.ts.map +1 -0
  740. package/dist/features/upload/client/component/index.js +237 -0
  741. package/dist/features/upload/client/component/index.js.map +1 -0
  742. package/dist/features/upload/client/drawer/commands.d.ts.map +1 -0
  743. package/dist/features/upload/client/drawer/commands.js +5 -0
  744. package/dist/features/upload/client/drawer/commands.js.map +1 -0
  745. package/dist/features/upload/client/drawer/index.d.ts.map +1 -0
  746. package/dist/features/upload/client/drawer/index.js +128 -0
  747. package/dist/features/upload/client/drawer/index.js.map +1 -0
  748. package/dist/features/upload/client/feature.client.d.ts +9 -0
  749. package/dist/features/upload/client/feature.client.d.ts.map +1 -0
  750. package/dist/features/upload/client/feature.client.js +64 -0
  751. package/dist/features/upload/client/feature.client.js.map +1 -0
  752. package/dist/features/upload/client/nodes/UploadNode.d.ts +22 -0
  753. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -0
  754. package/dist/features/upload/client/nodes/UploadNode.js +94 -0
  755. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -0
  756. package/dist/features/upload/client/plugin/index.d.ts +8 -0
  757. package/dist/features/upload/client/plugin/index.d.ts.map +1 -0
  758. package/dist/features/upload/client/plugin/index.js +81 -0
  759. package/dist/features/upload/client/plugin/index.js.map +1 -0
  760. package/dist/features/upload/server/feature.server.d.ts +18 -0
  761. package/dist/features/upload/server/feature.server.d.ts.map +1 -0
  762. package/dist/features/upload/server/feature.server.js +213 -0
  763. package/dist/features/upload/server/feature.server.js.map +1 -0
  764. package/dist/features/upload/server/graphQLPopulationPromise.d.ts +5 -0
  765. package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -0
  766. package/dist/features/upload/server/graphQLPopulationPromise.js +65 -0
  767. package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -0
  768. package/dist/features/upload/server/i18n.d.ts +3 -0
  769. package/dist/features/upload/server/i18n.d.ts.map +1 -0
  770. package/dist/features/upload/server/i18n.js +99 -0
  771. package/dist/features/upload/server/i18n.js.map +1 -0
  772. package/dist/features/upload/server/nodes/UploadNode.d.ts +42 -0
  773. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -0
  774. package/dist/features/upload/server/nodes/UploadNode.js +133 -0
  775. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -0
  776. package/dist/features/upload/server/validate.d.ts +5 -0
  777. package/dist/features/upload/server/validate.d.ts.map +1 -0
  778. package/dist/features/upload/server/validate.js +58 -0
  779. package/dist/features/upload/server/validate.js.map +1 -0
  780. package/dist/field/Field.d.ts +9 -10
  781. package/dist/field/Field.d.ts.map +1 -1
  782. package/dist/field/Field.js +123 -86
  783. package/dist/field/Field.js.map +1 -1
  784. package/dist/field/bundled.css +1 -0
  785. package/dist/field/index.d.ts +2 -7
  786. package/dist/field/index.d.ts.map +1 -1
  787. package/dist/field/index.js +79 -81
  788. package/dist/field/index.js.map +1 -1
  789. package/dist/i18n.d.ts +3 -0
  790. package/dist/i18n.d.ts.map +1 -0
  791. package/dist/i18n.js +163 -0
  792. package/dist/i18n.js.map +1 -0
  793. package/dist/index.d.ts +62 -84
  794. package/dist/index.d.ts.map +1 -1
  795. package/dist/index.js +729 -251
  796. package/dist/index.js.map +1 -1
  797. package/dist/lexical/EditorPlugin.d.ts +8 -0
  798. package/dist/lexical/EditorPlugin.d.ts.map +1 -0
  799. package/dist/lexical/EditorPlugin.js +21 -0
  800. package/dist/lexical/EditorPlugin.js.map +1 -0
  801. package/dist/lexical/LexicalEditor.d.ts +7 -0
  802. package/dist/lexical/LexicalEditor.d.ts.map +1 -0
  803. package/dist/lexical/LexicalEditor.js +231 -0
  804. package/dist/lexical/LexicalEditor.js.map +1 -0
  805. package/dist/lexical/LexicalProvider.d.ts +14 -0
  806. package/dist/lexical/LexicalProvider.d.ts.map +1 -0
  807. package/dist/lexical/LexicalProvider.js +99 -0
  808. package/dist/lexical/LexicalProvider.js.map +1 -0
  809. package/dist/lexical/config/client/EditorConfigProvider.d.ts +27 -0
  810. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
  811. package/dist/lexical/config/client/EditorConfigProvider.js +89 -0
  812. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -0
  813. package/dist/lexical/config/client/default.d.ts +3 -0
  814. package/dist/lexical/config/client/default.d.ts.map +1 -0
  815. package/dist/lexical/config/client/default.js +8 -0
  816. package/dist/lexical/config/client/default.js.map +1 -0
  817. package/dist/lexical/config/client/loader.d.ts +10 -0
  818. package/dist/lexical/config/client/loader.d.ts.map +1 -0
  819. package/dist/lexical/config/client/loader.js +37 -0
  820. package/dist/lexical/config/client/loader.js.map +1 -0
  821. package/dist/lexical/config/client/sanitize.d.ts +7 -0
  822. package/dist/lexical/config/client/sanitize.d.ts.map +1 -0
  823. package/dist/lexical/config/client/sanitize.js +180 -0
  824. package/dist/lexical/config/client/sanitize.js.map +1 -0
  825. package/dist/lexical/config/server/default.d.ts +7 -0
  826. package/dist/lexical/config/server/default.d.ts.map +1 -0
  827. package/dist/lexical/config/server/default.js +31 -0
  828. package/dist/lexical/config/server/default.js.map +1 -0
  829. package/dist/lexical/config/server/loader.d.ts +11 -0
  830. package/dist/lexical/config/server/loader.d.ts.map +1 -0
  831. package/dist/lexical/config/server/loader.js +122 -0
  832. package/dist/lexical/config/server/loader.js.map +1 -0
  833. package/dist/lexical/config/server/sanitize.d.ts +6 -0
  834. package/dist/lexical/config/server/sanitize.d.ts.map +1 -0
  835. package/dist/lexical/config/server/sanitize.js +113 -0
  836. package/dist/lexical/config/server/sanitize.js.map +1 -0
  837. package/dist/lexical/config/types.d.ts +24 -0
  838. package/dist/lexical/config/types.d.ts.map +1 -0
  839. package/dist/lexical/config/types.js +2 -0
  840. package/dist/lexical/config/types.js.map +1 -0
  841. package/dist/lexical/nodes/index.d.ts +6 -0
  842. package/dist/lexical/nodes/index.d.ts.map +1 -0
  843. package/dist/lexical/nodes/index.js +11 -0
  844. package/dist/lexical/nodes/index.js.map +1 -0
  845. package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -0
  846. package/dist/lexical/plugins/MarkdownShortcut/index.js +25 -0
  847. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -0
  848. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +32 -0
  849. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
  850. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +386 -0
  851. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
  852. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +24 -0
  853. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
  854. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +249 -0
  855. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
  856. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +50 -0
  857. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -0
  858. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +2 -0
  859. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -0
  860. package/dist/lexical/plugins/SlashMenu/index.d.ts +6 -0
  861. package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -0
  862. package/dist/lexical/plugins/SlashMenu/index.js +214 -0
  863. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -0
  864. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -0
  865. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +48 -0
  866. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -0
  867. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +6 -0
  868. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -0
  869. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +153 -0
  870. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -0
  871. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts +2 -0
  872. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -0
  873. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +15 -0
  874. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -0
  875. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -0
  876. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +15 -0
  877. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -0
  878. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +3 -0
  879. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -0
  880. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +31 -0
  881. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -0
  882. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +6 -0
  883. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -0
  884. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +353 -0
  885. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -0
  886. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +9 -0
  887. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -0
  888. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +113 -0
  889. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -0
  890. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +5 -0
  891. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
  892. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +28 -0
  893. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
  894. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -0
  895. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +28 -0
  896. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -0
  897. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -0
  898. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js +18 -0
  899. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -0
  900. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts +31 -0
  901. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
  902. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +152 -0
  903. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
  904. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -0
  905. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +7 -0
  906. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -0
  907. package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -0
  908. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js +6 -0
  909. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -0
  910. package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -0
  911. package/dist/lexical/plugins/handles/utils/setHandlePosition.js +28 -0
  912. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -0
  913. package/dist/lexical/theme/EditorTheme.d.ts +3 -0
  914. package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
  915. package/dist/lexical/theme/EditorTheme.js +102 -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 +34 -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 +34 -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 +19 -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 +28 -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 +28 -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 +28 -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 +28 -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 +37 -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 +19 -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 +19 -0
  949. package/dist/lexical/ui/icons/Bold/index.js.map +1 -0
  950. package/dist/lexical/ui/icons/Caret/index.svg +3 -0
  951. package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -0
  952. package/dist/lexical/ui/icons/Checklist/index.js +27 -0
  953. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -0
  954. package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -0
  955. package/dist/lexical/ui/icons/Code/index.js +22 -0
  956. package/dist/lexical/ui/icons/Code/index.js.map +1 -0
  957. package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -0
  958. package/dist/lexical/ui/icons/CodeBlock/index.js +22 -0
  959. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -0
  960. package/dist/lexical/ui/icons/DraggableBlock/light.svg +9 -0
  961. package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -0
  962. package/dist/lexical/ui/icons/H1/index.js +19 -0
  963. package/dist/lexical/ui/icons/H1/index.js.map +1 -0
  964. package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -0
  965. package/dist/lexical/ui/icons/H2/index.js +19 -0
  966. package/dist/lexical/ui/icons/H2/index.js.map +1 -0
  967. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -0
  968. package/dist/lexical/ui/icons/H3/index.js +19 -0
  969. package/dist/lexical/ui/icons/H3/index.js.map +1 -0
  970. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -0
  971. package/dist/lexical/ui/icons/H4/index.js +19 -0
  972. package/dist/lexical/ui/icons/H4/index.js.map +1 -0
  973. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -0
  974. package/dist/lexical/ui/icons/H5/index.js +19 -0
  975. package/dist/lexical/ui/icons/H5/index.js.map +1 -0
  976. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -0
  977. package/dist/lexical/ui/icons/H6/index.js +19 -0
  978. package/dist/lexical/ui/icons/H6/index.js.map +1 -0
  979. package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -0
  980. package/dist/lexical/ui/icons/HorizontalRule/index.js +22 -0
  981. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -0
  982. package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -0
  983. package/dist/lexical/ui/icons/IndentDecrease/index.js +31 -0
  984. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -0
  985. package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
  986. package/dist/lexical/ui/icons/IndentIncrease/index.js +31 -0
  987. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -0
  988. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -0
  989. package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -0
  990. package/dist/lexical/ui/icons/InlineBlocks/index.js +21 -0
  991. package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -0
  992. package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -0
  993. package/dist/lexical/ui/icons/Italic/index.js +19 -0
  994. package/dist/lexical/ui/icons/Italic/index.js.map +1 -0
  995. package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
  996. package/dist/lexical/ui/icons/Link/index.js +20 -0
  997. package/dist/lexical/ui/icons/Link/index.js.map +1 -0
  998. package/dist/lexical/ui/icons/Meatballs/index.d.ts +3 -0
  999. package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -0
  1000. package/dist/lexical/ui/icons/Meatballs/index.js +22 -0
  1001. package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -0
  1002. package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -0
  1003. package/dist/lexical/ui/icons/OrderedList/index.js +34 -0
  1004. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -0
  1005. package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -0
  1006. package/dist/lexical/ui/icons/Relationship/index.js +34 -0
  1007. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -0
  1008. package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -0
  1009. package/dist/lexical/ui/icons/Strikethrough/index.js +22 -0
  1010. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -0
  1011. package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -0
  1012. package/dist/lexical/ui/icons/Subscript/index.js +19 -0
  1013. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -0
  1014. package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -0
  1015. package/dist/lexical/ui/icons/Superscript/index.js +19 -0
  1016. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -0
  1017. package/dist/lexical/ui/icons/Table/index.d.ts +3 -0
  1018. package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -0
  1019. package/dist/lexical/ui/icons/Table/index.js +21 -0
  1020. package/dist/lexical/ui/icons/Table/index.js.map +1 -0
  1021. package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -0
  1022. package/dist/lexical/ui/icons/Text/index.js +19 -0
  1023. package/dist/lexical/ui/icons/Text/index.js.map +1 -0
  1024. package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -0
  1025. package/dist/lexical/ui/icons/Underline/index.js +22 -0
  1026. package/dist/lexical/ui/icons/Underline/index.js.map +1 -0
  1027. package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -0
  1028. package/dist/lexical/ui/icons/UnorderedList/index.js +49 -0
  1029. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -0
  1030. package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -0
  1031. package/dist/lexical/ui/icons/Upload/index.js +31 -0
  1032. package/dist/lexical/ui/icons/Upload/index.js.map +1 -0
  1033. package/dist/lexical/utils/canUseDOM.d.ts.map +1 -0
  1034. package/dist/lexical/utils/canUseDOM.js +4 -0
  1035. package/dist/lexical/utils/canUseDOM.js.map +1 -0
  1036. package/dist/lexical/utils/environment.d.ts.map +1 -0
  1037. package/dist/lexical/utils/environment.js +15 -0
  1038. package/dist/lexical/utils/environment.js.map +1 -0
  1039. package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -0
  1040. package/dist/lexical/utils/getDOMRangeRect.js +17 -0
  1041. package/dist/lexical/utils/getDOMRangeRect.js.map +1 -0
  1042. package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -0
  1043. package/dist/lexical/utils/getSelectedNode.js +22 -0
  1044. package/dist/lexical/utils/getSelectedNode.js.map +1 -0
  1045. package/dist/lexical/utils/guard.d.ts.map +1 -0
  1046. package/dist/lexical/utils/guard.js +6 -0
  1047. package/dist/lexical/utils/guard.js.map +1 -0
  1048. package/dist/lexical/utils/joinClasses.d.ts.map +1 -0
  1049. package/dist/lexical/utils/joinClasses.js +6 -0
  1050. package/dist/lexical/utils/joinClasses.js.map +1 -0
  1051. package/dist/lexical/utils/markdown/createBlockNode.d.ts +4 -0
  1052. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -0
  1053. package/dist/lexical/utils/markdown/createBlockNode.js +11 -0
  1054. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -0
  1055. package/dist/lexical/utils/nodeFormat.d.ts +41 -0
  1056. package/dist/lexical/utils/nodeFormat.d.ts.map +1 -0
  1057. package/dist/lexical/utils/nodeFormat.js +87 -0
  1058. package/dist/lexical/utils/nodeFormat.js.map +1 -0
  1059. package/dist/lexical/utils/point.d.ts.map +1 -0
  1060. package/dist/lexical/utils/point.js +45 -0
  1061. package/dist/lexical/utils/point.js.map +1 -0
  1062. package/dist/lexical/utils/rect.d.ts +47 -0
  1063. package/dist/lexical/utils/rect.d.ts.map +1 -0
  1064. package/dist/lexical/utils/rect.js +171 -0
  1065. package/dist/lexical/utils/rect.js.map +1 -0
  1066. package/dist/lexical/utils/setFloatingElemPosition.d.ts +12 -0
  1067. package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -0
  1068. package/dist/lexical/utils/setFloatingElemPosition.js +67 -0
  1069. package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -0
  1070. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
  1071. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js +28 -0
  1072. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
  1073. package/dist/lexical/utils/swipe.d.ts.map +1 -0
  1074. package/dist/lexical/utils/swipe.js +99 -0
  1075. package/dist/lexical/utils/swipe.js.map +1 -0
  1076. package/dist/lexical/utils/url.d.ts +8 -0
  1077. package/dist/lexical/utils/url.d.ts.map +1 -0
  1078. package/dist/lexical/utils/url.js +57 -0
  1079. package/dist/lexical/utils/url.js.map +1 -0
  1080. package/dist/nodeTypes.d.ts +32 -0
  1081. package/dist/nodeTypes.d.ts.map +1 -0
  1082. package/dist/nodeTypes.js +2 -0
  1083. package/dist/nodeTypes.js.map +1 -0
  1084. package/dist/populateGraphQL/defaultValue.d.ts +3 -0
  1085. package/dist/populateGraphQL/defaultValue.d.ts.map +1 -0
  1086. package/dist/populateGraphQL/defaultValue.js +28 -0
  1087. package/dist/populateGraphQL/defaultValue.js.map +1 -0
  1088. package/dist/populateGraphQL/populate.d.ts +17 -0
  1089. package/dist/populateGraphQL/populate.d.ts.map +1 -0
  1090. package/dist/populateGraphQL/populate.js +38 -0
  1091. package/dist/populateGraphQL/populate.js.map +1 -0
  1092. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +12 -0
  1093. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -0
  1094. package/dist/populateGraphQL/populateLexicalPopulationPromises.js +53 -0
  1095. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -0
  1096. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +28 -0
  1097. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -0
  1098. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +42 -0
  1099. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -0
  1100. package/dist/types.d.ts +57 -22
  1101. package/dist/types.d.ts.map +1 -1
  1102. package/dist/types.js +1 -2
  1103. package/dist/types.js.map +1 -1
  1104. package/dist/utilities/createClientFeature.d.ts +11 -0
  1105. package/dist/utilities/createClientFeature.d.ts.map +1 -0
  1106. package/dist/utilities/createClientFeature.js +41 -0
  1107. package/dist/utilities/createClientFeature.js.map +1 -0
  1108. package/dist/utilities/createServerFeature.d.ts +17 -0
  1109. package/dist/utilities/createServerFeature.d.ts.map +1 -0
  1110. package/dist/utilities/createServerFeature.js +51 -0
  1111. package/dist/utilities/createServerFeature.js.map +1 -0
  1112. package/dist/utilities/fieldsDrawer/Drawer.d.ts +20 -0
  1113. package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -0
  1114. package/dist/utilities/fieldsDrawer/Drawer.js +39 -0
  1115. package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -0
  1116. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -0
  1117. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -0
  1118. package/dist/utilities/fieldsDrawer/DrawerContent.js +166 -0
  1119. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -0
  1120. package/dist/utilities/forEachNodeRecursively.d.ts +10 -0
  1121. package/dist/utilities/forEachNodeRecursively.d.ts.map +1 -0
  1122. package/dist/utilities/forEachNodeRecursively.js +29 -0
  1123. package/dist/utilities/forEachNodeRecursively.js.map +1 -0
  1124. package/dist/utilities/generateComponentMap.d.ts +6 -0
  1125. package/dist/utilities/generateComponentMap.d.ts.map +1 -0
  1126. package/dist/utilities/generateComponentMap.js +93 -0
  1127. package/dist/utilities/generateComponentMap.js.map +1 -0
  1128. package/dist/utilities/generateImportMap.d.ts +6 -0
  1129. package/dist/utilities/generateImportMap.d.ts.map +1 -0
  1130. package/dist/utilities/generateImportMap.js +56 -0
  1131. package/dist/utilities/generateImportMap.js.map +1 -0
  1132. package/dist/utilities/generateSchemaMap.d.ts +6 -0
  1133. package/dist/utilities/generateSchemaMap.d.ts.map +1 -0
  1134. package/dist/utilities/generateSchemaMap.js +37 -0
  1135. package/dist/utilities/generateSchemaMap.js.map +1 -0
  1136. package/dist/utilities/migrateSlateToLexical/index.d.ts +15 -0
  1137. package/dist/utilities/migrateSlateToLexical/index.d.ts.map +1 -0
  1138. package/dist/utilities/migrateSlateToLexical/index.js +149 -0
  1139. package/dist/utilities/migrateSlateToLexical/index.js.map +1 -0
  1140. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +9 -0
  1141. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -0
  1142. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +80 -0
  1143. package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -0
  1144. package/dist/utilities/recurseNodeTree.d.ts +9 -0
  1145. package/dist/utilities/recurseNodeTree.d.ts.map +1 -0
  1146. package/dist/utilities/recurseNodeTree.js +30 -0
  1147. package/dist/utilities/recurseNodeTree.js.map +1 -0
  1148. package/dist/utilities/upgradeLexicalData/index.d.ts +11 -0
  1149. package/dist/utilities/upgradeLexicalData/index.d.ts.map +1 -0
  1150. package/dist/utilities/upgradeLexicalData/index.js +114 -0
  1151. package/dist/utilities/upgradeLexicalData/index.js.map +1 -0
  1152. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts +9 -0
  1153. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -0
  1154. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +79 -0
  1155. package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -0
  1156. package/dist/utilities/useLexicalFeature.d.ts +3 -0
  1157. package/dist/utilities/useLexicalFeature.d.ts.map +1 -0
  1158. package/dist/utilities/useLexicalFeature.js +13 -0
  1159. package/dist/utilities/useLexicalFeature.js.map +1 -0
  1160. package/dist/validate/index.d.ts +3 -3
  1161. package/dist/validate/index.d.ts.map +1 -1
  1162. package/dist/validate/index.js +45 -23
  1163. package/dist/validate/index.js.map +1 -1
  1164. package/dist/validate/validateNodes.d.ts +5 -5
  1165. package/dist/validate/validateNodes.d.ts.map +1 -1
  1166. package/dist/validate/validateNodes.js +31 -28
  1167. package/dist/validate/validateNodes.js.map +1 -1
  1168. package/package.json +98 -57
  1169. package/dist/exports/components.d.ts +0 -6
  1170. package/dist/exports/components.d.ts.map +0 -1
  1171. package/dist/exports/components.js +0 -7
  1172. package/dist/exports/components.js.map +0 -1
  1173. package/dist/field/features/align/feature.client.d.ts +0 -3
  1174. package/dist/field/features/align/feature.client.d.ts.map +0 -1
  1175. package/dist/field/features/align/feature.client.js +0 -72
  1176. package/dist/field/features/align/feature.client.js.map +0 -1
  1177. package/dist/field/features/align/feature.server.d.ts +0 -3
  1178. package/dist/field/features/align/feature.server.d.ts.map +0 -1
  1179. package/dist/field/features/align/feature.server.js +0 -16
  1180. package/dist/field/features/align/feature.server.js.map +0 -1
  1181. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts +0 -3
  1182. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +0 -1
  1183. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +0 -12
  1184. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js.map +0 -1
  1185. package/dist/field/features/blockquote/feature.client.d.ts +0 -3
  1186. package/dist/field/features/blockquote/feature.client.d.ts.map +0 -1
  1187. package/dist/field/features/blockquote/feature.client.js +0 -70
  1188. package/dist/field/features/blockquote/feature.client.js.map +0 -1
  1189. package/dist/field/features/blockquote/feature.server.d.ts +0 -3
  1190. package/dist/field/features/blockquote/feature.server.d.ts.map +0 -1
  1191. package/dist/field/features/blockquote/feature.server.js +0 -47
  1192. package/dist/field/features/blockquote/feature.server.js.map +0 -1
  1193. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +0 -1
  1194. package/dist/field/features/blockquote/markdownTransformer.js +0 -42
  1195. package/dist/field/features/blockquote/markdownTransformer.js.map +0 -1
  1196. package/dist/field/features/blocks/component/BlockContent.d.ts +0 -27
  1197. package/dist/field/features/blocks/component/BlockContent.d.ts.map +0 -1
  1198. package/dist/field/features/blocks/component/BlockContent.js +0 -183
  1199. package/dist/field/features/blocks/component/BlockContent.js.map +0 -1
  1200. package/dist/field/features/blocks/component/FormSavePlugin.d.ts +0 -12
  1201. package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
  1202. package/dist/field/features/blocks/component/FormSavePlugin.js +0 -29
  1203. package/dist/field/features/blocks/component/FormSavePlugin.js.map +0 -1
  1204. package/dist/field/features/blocks/component/index.d.ts +0 -16
  1205. package/dist/field/features/blocks/component/index.d.ts.map +0 -1
  1206. package/dist/field/features/blocks/component/index.js +0 -131
  1207. package/dist/field/features/blocks/component/index.js.map +0 -1
  1208. package/dist/field/features/blocks/component/index.scss +0 -153
  1209. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts +0 -11
  1210. package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
  1211. package/dist/field/features/blocks/component/removeEmptyArrayValues.js +0 -16
  1212. package/dist/field/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
  1213. package/dist/field/features/blocks/drawer/index.d.ts +0 -9
  1214. package/dist/field/features/blocks/drawer/index.d.ts.map +0 -1
  1215. package/dist/field/features/blocks/drawer/index.js +0 -84
  1216. package/dist/field/features/blocks/drawer/index.js.map +0 -1
  1217. package/dist/field/features/blocks/feature.client.d.ts +0 -7
  1218. package/dist/field/features/blocks/feature.client.d.ts.map +0 -1
  1219. package/dist/field/features/blocks/feature.client.js +0 -61
  1220. package/dist/field/features/blocks/feature.client.js.map +0 -1
  1221. package/dist/field/features/blocks/feature.server.d.ts +0 -11
  1222. package/dist/field/features/blocks/feature.server.d.ts.map +0 -1
  1223. package/dist/field/features/blocks/feature.server.js +0 -112
  1224. package/dist/field/features/blocks/feature.server.js.map +0 -1
  1225. package/dist/field/features/blocks/nodes/BlocksNode.d.ts +0 -38
  1226. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
  1227. package/dist/field/features/blocks/nodes/BlocksNode.js +0 -92
  1228. package/dist/field/features/blocks/nodes/BlocksNode.js.map +0 -1
  1229. package/dist/field/features/blocks/plugin/commands.d.ts +0 -4
  1230. package/dist/field/features/blocks/plugin/commands.d.ts.map +0 -1
  1231. package/dist/field/features/blocks/plugin/commands.js +0 -5
  1232. package/dist/field/features/blocks/plugin/commands.js.map +0 -1
  1233. package/dist/field/features/blocks/plugin/index.d.ts +0 -5
  1234. package/dist/field/features/blocks/plugin/index.d.ts.map +0 -1
  1235. package/dist/field/features/blocks/plugin/index.js +0 -43
  1236. package/dist/field/features/blocks/plugin/index.js.map +0 -1
  1237. package/dist/field/features/blocks/populationPromise.d.ts +0 -5
  1238. package/dist/field/features/blocks/populationPromise.d.ts.map +0 -1
  1239. package/dist/field/features/blocks/populationPromise.js +0 -46
  1240. package/dist/field/features/blocks/populationPromise.js.map +0 -1
  1241. package/dist/field/features/blocks/validate.d.ts +0 -5
  1242. package/dist/field/features/blocks/validate.d.ts.map +0 -1
  1243. package/dist/field/features/blocks/validate.js +0 -50
  1244. package/dist/field/features/blocks/validate.js.map +0 -1
  1245. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts +0 -3
  1246. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts.map +0 -1
  1247. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +0 -10
  1248. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js.map +0 -1
  1249. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts +0 -3
  1250. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +0 -1
  1251. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +0 -12
  1252. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js.map +0 -1
  1253. package/dist/field/features/converters/html/converter/converters/linebreak.d.ts.map +0 -1
  1254. package/dist/field/features/converters/html/converter/converters/linebreak.js +0 -10
  1255. package/dist/field/features/converters/html/converter/converters/linebreak.js.map +0 -1
  1256. package/dist/field/features/converters/html/converter/converters/paragraph.d.ts.map +0 -1
  1257. package/dist/field/features/converters/html/converter/converters/paragraph.js +0 -20
  1258. package/dist/field/features/converters/html/converter/converters/paragraph.js.map +0 -1
  1259. package/dist/field/features/converters/html/converter/converters/text.d.ts.map +0 -1
  1260. package/dist/field/features/converters/html/converter/converters/text.js +0 -33
  1261. package/dist/field/features/converters/html/converter/converters/text.js.map +0 -1
  1262. package/dist/field/features/converters/html/converter/defaultConverters.d.ts.map +0 -1
  1263. package/dist/field/features/converters/html/converter/defaultConverters.js +0 -10
  1264. package/dist/field/features/converters/html/converter/defaultConverters.js.map +0 -1
  1265. package/dist/field/features/converters/html/converter/index.d.ts +0 -21
  1266. package/dist/field/features/converters/html/converter/index.d.ts.map +0 -1
  1267. package/dist/field/features/converters/html/converter/index.js +0 -44
  1268. package/dist/field/features/converters/html/converter/index.js.map +0 -1
  1269. package/dist/field/features/converters/html/converter/types.d.ts +0 -19
  1270. package/dist/field/features/converters/html/converter/types.d.ts.map +0 -1
  1271. package/dist/field/features/converters/html/converter/types.js +0 -3
  1272. package/dist/field/features/converters/html/converter/types.js.map +0 -1
  1273. package/dist/field/features/converters/html/feature.server.d.ts +0 -9
  1274. package/dist/field/features/converters/html/feature.server.d.ts.map +0 -1
  1275. package/dist/field/features/converters/html/feature.server.js +0 -14
  1276. package/dist/field/features/converters/html/feature.server.js.map +0 -1
  1277. package/dist/field/features/converters/html/field/index.d.ts +0 -29
  1278. package/dist/field/features/converters/html/field/index.d.ts.map +0 -1
  1279. package/dist/field/features/converters/html/field/index.js +0 -117
  1280. package/dist/field/features/converters/html/field/index.js.map +0 -1
  1281. package/dist/field/features/createClientComponent.d.ts +0 -6
  1282. package/dist/field/features/createClientComponent.d.ts.map +0 -1
  1283. package/dist/field/features/createClientComponent.js +0 -12
  1284. package/dist/field/features/createClientComponent.js.map +0 -1
  1285. package/dist/field/features/createFeaturePropComponent.d.ts +0 -6
  1286. package/dist/field/features/createFeaturePropComponent.d.ts.map +0 -1
  1287. package/dist/field/features/createFeaturePropComponent.js +0 -15
  1288. package/dist/field/features/createFeaturePropComponent.js.map +0 -1
  1289. package/dist/field/features/debug/testrecorder/feature.client.d.ts +0 -3
  1290. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +0 -1
  1291. package/dist/field/features/debug/testrecorder/feature.client.js +0 -20
  1292. package/dist/field/features/debug/testrecorder/feature.client.js.map +0 -1
  1293. package/dist/field/features/debug/testrecorder/feature.server.d.ts +0 -3
  1294. package/dist/field/features/debug/testrecorder/feature.server.d.ts.map +0 -1
  1295. package/dist/field/features/debug/testrecorder/feature.server.js +0 -15
  1296. package/dist/field/features/debug/testrecorder/feature.server.js.map +0 -1
  1297. package/dist/field/features/debug/testrecorder/plugin/index.d.ts +0 -5
  1298. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +0 -1
  1299. package/dist/field/features/debug/testrecorder/plugin/index.js +0 -448
  1300. package/dist/field/features/debug/testrecorder/plugin/index.js.map +0 -1
  1301. package/dist/field/features/debug/testrecorder/plugin/index.scss +0 -49
  1302. package/dist/field/features/debug/treeview/feature.client.d.ts +0 -3
  1303. package/dist/field/features/debug/treeview/feature.client.d.ts.map +0 -1
  1304. package/dist/field/features/debug/treeview/feature.client.js +0 -20
  1305. package/dist/field/features/debug/treeview/feature.client.js.map +0 -1
  1306. package/dist/field/features/debug/treeview/feature.server.d.ts +0 -3
  1307. package/dist/field/features/debug/treeview/feature.server.d.ts.map +0 -1
  1308. package/dist/field/features/debug/treeview/feature.server.js +0 -15
  1309. package/dist/field/features/debug/treeview/feature.server.js.map +0 -1
  1310. package/dist/field/features/debug/treeview/plugin/index.d.ts +0 -4
  1311. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +0 -1
  1312. package/dist/field/features/debug/treeview/plugin/index.js +0 -21
  1313. package/dist/field/features/debug/treeview/plugin/index.js.map +0 -1
  1314. package/dist/field/features/debug/treeview/plugin/index.scss +0 -78
  1315. package/dist/field/features/format/bold/feature.client.d.ts +0 -3
  1316. package/dist/field/features/format/bold/feature.client.d.ts.map +0 -1
  1317. package/dist/field/features/format/bold/feature.client.js +0 -48
  1318. package/dist/field/features/format/bold/feature.client.js.map +0 -1
  1319. package/dist/field/features/format/bold/feature.server.d.ts +0 -3
  1320. package/dist/field/features/format/bold/feature.server.d.ts.map +0 -1
  1321. package/dist/field/features/format/bold/feature.server.js +0 -27
  1322. package/dist/field/features/format/bold/feature.server.js.map +0 -1
  1323. package/dist/field/features/format/bold/markdownTransformers.d.ts.map +0 -1
  1324. package/dist/field/features/format/bold/markdownTransformers.js +0 -34
  1325. package/dist/field/features/format/bold/markdownTransformers.js.map +0 -1
  1326. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts +0 -3
  1327. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts.map +0 -1
  1328. package/dist/field/features/format/common/floatingSelectToolbarSection.js +0 -10
  1329. package/dist/field/features/format/common/floatingSelectToolbarSection.js.map +0 -1
  1330. package/dist/field/features/format/inlinecode/feature.client.d.ts +0 -3
  1331. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +0 -1
  1332. package/dist/field/features/format/inlinecode/feature.client.js +0 -43
  1333. package/dist/field/features/format/inlinecode/feature.client.js.map +0 -1
  1334. package/dist/field/features/format/inlinecode/feature.server.d.ts +0 -3
  1335. package/dist/field/features/format/inlinecode/feature.server.d.ts.map +0 -1
  1336. package/dist/field/features/format/inlinecode/feature.server.js +0 -19
  1337. package/dist/field/features/format/inlinecode/feature.server.js.map +0 -1
  1338. package/dist/field/features/format/inlinecode/markdownTransformers.d.ts.map +0 -1
  1339. package/dist/field/features/format/inlinecode/markdownTransformers.js +0 -9
  1340. package/dist/field/features/format/inlinecode/markdownTransformers.js.map +0 -1
  1341. package/dist/field/features/format/italic/feature.client.d.ts +0 -3
  1342. package/dist/field/features/format/italic/feature.client.d.ts.map +0 -1
  1343. package/dist/field/features/format/italic/feature.client.js +0 -44
  1344. package/dist/field/features/format/italic/feature.client.js.map +0 -1
  1345. package/dist/field/features/format/italic/feature.server.d.ts +0 -3
  1346. package/dist/field/features/format/italic/feature.server.d.ts.map +0 -1
  1347. package/dist/field/features/format/italic/feature.server.js +0 -20
  1348. package/dist/field/features/format/italic/feature.server.js.map +0 -1
  1349. package/dist/field/features/format/italic/markdownTransformers.d.ts.map +0 -1
  1350. package/dist/field/features/format/italic/markdownTransformers.js +0 -17
  1351. package/dist/field/features/format/italic/markdownTransformers.js.map +0 -1
  1352. package/dist/field/features/format/strikethrough/feature.client.d.ts +0 -3
  1353. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +0 -1
  1354. package/dist/field/features/format/strikethrough/feature.client.js +0 -43
  1355. package/dist/field/features/format/strikethrough/feature.client.js.map +0 -1
  1356. package/dist/field/features/format/strikethrough/feature.server.d.ts +0 -3
  1357. package/dist/field/features/format/strikethrough/feature.server.d.ts.map +0 -1
  1358. package/dist/field/features/format/strikethrough/feature.server.js +0 -19
  1359. package/dist/field/features/format/strikethrough/feature.server.js.map +0 -1
  1360. package/dist/field/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
  1361. package/dist/field/features/format/strikethrough/markdownTransformers.js +0 -9
  1362. package/dist/field/features/format/strikethrough/markdownTransformers.js.map +0 -1
  1363. package/dist/field/features/format/subscript/feature.client.d.ts +0 -3
  1364. package/dist/field/features/format/subscript/feature.client.d.ts.map +0 -1
  1365. package/dist/field/features/format/subscript/feature.client.js +0 -39
  1366. package/dist/field/features/format/subscript/feature.client.js.map +0 -1
  1367. package/dist/field/features/format/subscript/feature.server.d.ts +0 -3
  1368. package/dist/field/features/format/subscript/feature.server.d.ts.map +0 -1
  1369. package/dist/field/features/format/subscript/feature.server.js +0 -15
  1370. package/dist/field/features/format/subscript/feature.server.js.map +0 -1
  1371. package/dist/field/features/format/superscript/feature.client.d.ts +0 -3
  1372. package/dist/field/features/format/superscript/feature.client.d.ts.map +0 -1
  1373. package/dist/field/features/format/superscript/feature.client.js +0 -39
  1374. package/dist/field/features/format/superscript/feature.client.js.map +0 -1
  1375. package/dist/field/features/format/superscript/feature.server.d.ts +0 -3
  1376. package/dist/field/features/format/superscript/feature.server.d.ts.map +0 -1
  1377. package/dist/field/features/format/superscript/feature.server.js +0 -15
  1378. package/dist/field/features/format/superscript/feature.server.js.map +0 -1
  1379. package/dist/field/features/format/underline/feature.client.d.ts +0 -3
  1380. package/dist/field/features/format/underline/feature.client.d.ts.map +0 -1
  1381. package/dist/field/features/format/underline/feature.client.js +0 -39
  1382. package/dist/field/features/format/underline/feature.client.js.map +0 -1
  1383. package/dist/field/features/format/underline/feature.server.d.ts +0 -3
  1384. package/dist/field/features/format/underline/feature.server.d.ts.map +0 -1
  1385. package/dist/field/features/format/underline/feature.server.js +0 -15
  1386. package/dist/field/features/format/underline/feature.server.js.map +0 -1
  1387. package/dist/field/features/heading/feature.client.d.ts +0 -4
  1388. package/dist/field/features/heading/feature.client.d.ts.map +0 -1
  1389. package/dist/field/features/heading/feature.client.js +0 -97
  1390. package/dist/field/features/heading/feature.client.js.map +0 -1
  1391. package/dist/field/features/heading/feature.server.d.ts +0 -7
  1392. package/dist/field/features/heading/feature.server.d.ts.map +0 -1
  1393. package/dist/field/features/heading/feature.server.js +0 -58
  1394. package/dist/field/features/heading/feature.server.js.map +0 -1
  1395. package/dist/field/features/heading/markdownTransformer.d.ts.map +0 -1
  1396. package/dist/field/features/heading/markdownTransformer.js +0 -30
  1397. package/dist/field/features/heading/markdownTransformer.js.map +0 -1
  1398. package/dist/field/features/horizontalrule/component/index.d.ts +0 -10
  1399. package/dist/field/features/horizontalrule/component/index.d.ts.map +0 -1
  1400. package/dist/field/features/horizontalrule/component/index.js +0 -64
  1401. package/dist/field/features/horizontalrule/component/index.js.map +0 -1
  1402. package/dist/field/features/horizontalrule/feature.client.d.ts +0 -3
  1403. package/dist/field/features/horizontalrule/feature.client.d.ts.map +0 -1
  1404. package/dist/field/features/horizontalrule/feature.client.js +0 -53
  1405. package/dist/field/features/horizontalrule/feature.client.js.map +0 -1
  1406. package/dist/field/features/horizontalrule/feature.server.d.ts +0 -3
  1407. package/dist/field/features/horizontalrule/feature.server.d.ts.map +0 -1
  1408. package/dist/field/features/horizontalrule/feature.server.js +0 -36
  1409. package/dist/field/features/horizontalrule/feature.server.js.map +0 -1
  1410. package/dist/field/features/horizontalrule/markdownTransformer.d.ts.map +0 -1
  1411. package/dist/field/features/horizontalrule/markdownTransformer.js +0 -23
  1412. package/dist/field/features/horizontalrule/markdownTransformer.js.map +0 -1
  1413. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts +0 -55
  1414. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  1415. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js +0 -89
  1416. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js.map +0 -1
  1417. package/dist/field/features/horizontalrule/plugin/index.d.ts +0 -6
  1418. package/dist/field/features/horizontalrule/plugin/index.d.ts.map +0 -1
  1419. package/dist/field/features/horizontalrule/plugin/index.js +0 -34
  1420. package/dist/field/features/horizontalrule/plugin/index.js.map +0 -1
  1421. package/dist/field/features/horizontalrule/plugin/index.scss +0 -20
  1422. package/dist/field/features/indent/feature.client.d.ts +0 -3
  1423. package/dist/field/features/indent/feature.client.d.ts.map +0 -1
  1424. package/dist/field/features/indent/feature.client.js +0 -58
  1425. package/dist/field/features/indent/feature.client.js.map +0 -1
  1426. package/dist/field/features/indent/feature.server.d.ts +0 -3
  1427. package/dist/field/features/indent/feature.server.d.ts.map +0 -1
  1428. package/dist/field/features/indent/feature.server.js +0 -16
  1429. package/dist/field/features/indent/feature.server.js.map +0 -1
  1430. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts +0 -3
  1431. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts.map +0 -1
  1432. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +0 -10
  1433. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js.map +0 -1
  1434. package/dist/field/features/indent/index.scss +0 -4
  1435. package/dist/field/features/link/drawer/baseFields.d.ts +0 -4
  1436. package/dist/field/features/link/drawer/baseFields.d.ts.map +0 -1
  1437. package/dist/field/features/link/drawer/baseFields.js +0 -107
  1438. package/dist/field/features/link/drawer/baseFields.js.map +0 -1
  1439. package/dist/field/features/link/drawer/index.d.ts +0 -5
  1440. package/dist/field/features/link/drawer/index.d.ts.map +0 -1
  1441. package/dist/field/features/link/drawer/index.js +0 -94
  1442. package/dist/field/features/link/drawer/index.js.map +0 -1
  1443. package/dist/field/features/link/drawer/index.scss +0 -50
  1444. package/dist/field/features/link/drawer/types.d.ts +0 -8
  1445. package/dist/field/features/link/drawer/types.d.ts.map +0 -1
  1446. package/dist/field/features/link/drawer/types.js +0 -3
  1447. package/dist/field/features/link/drawer/types.js.map +0 -1
  1448. package/dist/field/features/link/feature.client.d.ts +0 -5
  1449. package/dist/field/features/link/feature.client.d.ts.map +0 -1
  1450. package/dist/field/features/link/feature.client.js +0 -90
  1451. package/dist/field/features/link/feature.client.js.map +0 -1
  1452. package/dist/field/features/link/feature.server.d.ts +0 -33
  1453. package/dist/field/features/link/feature.server.d.ts.map +0 -1
  1454. package/dist/field/features/link/feature.server.js +0 -105
  1455. package/dist/field/features/link/feature.server.js.map +0 -1
  1456. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +0 -1
  1457. package/dist/field/features/link/nodes/AutoLinkNode.js +0 -61
  1458. package/dist/field/features/link/nodes/AutoLinkNode.js.map +0 -1
  1459. package/dist/field/features/link/nodes/LinkNode.d.ts +0 -38
  1460. package/dist/field/features/link/nodes/LinkNode.d.ts.map +0 -1
  1461. package/dist/field/features/link/nodes/LinkNode.js +0 -301
  1462. package/dist/field/features/link/nodes/LinkNode.js.map +0 -1
  1463. package/dist/field/features/link/nodes/types.d.ts +0 -19
  1464. package/dist/field/features/link/nodes/types.d.ts.map +0 -1
  1465. package/dist/field/features/link/nodes/types.js +0 -3
  1466. package/dist/field/features/link/nodes/types.js.map +0 -1
  1467. package/dist/field/features/link/plugins/autoLink/index.d.ts +0 -19
  1468. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +0 -1
  1469. package/dist/field/features/link/plugins/autoLink/index.js +0 -321
  1470. package/dist/field/features/link/plugins/autoLink/index.js.map +0 -1
  1471. package/dist/field/features/link/plugins/clickableLink/index.d.ts +0 -3
  1472. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +0 -1
  1473. package/dist/field/features/link/plugins/clickableLink/index.js +0 -10
  1474. package/dist/field/features/link/plugins/clickableLink/index.js.map +0 -1
  1475. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  1476. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -5
  1477. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
  1478. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  1479. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -259
  1480. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
  1481. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +0 -6
  1482. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  1483. package/dist/field/features/link/plugins/floatingLinkEditor/index.js +0 -13
  1484. package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
  1485. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +0 -78
  1486. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts +0 -15
  1487. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  1488. package/dist/field/features/link/plugins/floatingLinkEditor/types.js +0 -6
  1489. package/dist/field/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
  1490. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -12
  1491. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  1492. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +0 -38
  1493. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
  1494. package/dist/field/features/link/plugins/link/index.d.ts +0 -2
  1495. package/dist/field/features/link/plugins/link/index.d.ts.map +0 -1
  1496. package/dist/field/features/link/plugins/link/index.js +0 -62
  1497. package/dist/field/features/link/plugins/link/index.js.map +0 -1
  1498. package/dist/field/features/link/populationPromise.d.ts +0 -5
  1499. package/dist/field/features/link/populationPromise.d.ts.map +0 -1
  1500. package/dist/field/features/link/populationPromise.js +0 -46
  1501. package/dist/field/features/link/populationPromise.js.map +0 -1
  1502. package/dist/field/features/lists/checklist/feature.client.d.ts +0 -3
  1503. package/dist/field/features/lists/checklist/feature.client.d.ts.map +0 -1
  1504. package/dist/field/features/lists/checklist/feature.client.js +0 -82
  1505. package/dist/field/features/lists/checklist/feature.client.js.map +0 -1
  1506. package/dist/field/features/lists/checklist/feature.server.d.ts +0 -3
  1507. package/dist/field/features/lists/checklist/feature.server.d.ts.map +0 -1
  1508. package/dist/field/features/lists/checklist/feature.server.js +0 -36
  1509. package/dist/field/features/lists/checklist/feature.server.js.map +0 -1
  1510. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
  1511. package/dist/field/features/lists/checklist/markdownTransformers.js +0 -17
  1512. package/dist/field/features/lists/checklist/markdownTransformers.js.map +0 -1
  1513. package/dist/field/features/lists/checklist/plugin/index.d.ts +0 -3
  1514. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +0 -1
  1515. package/dist/field/features/lists/checklist/plugin/index.js +0 -9
  1516. package/dist/field/features/lists/checklist/plugin/index.js.map +0 -1
  1517. package/dist/field/features/lists/common/markdown.d.ts +0 -6
  1518. package/dist/field/features/lists/common/markdown.d.ts.map +0 -1
  1519. package/dist/field/features/lists/common/markdown.js +0 -59
  1520. package/dist/field/features/lists/common/markdown.js.map +0 -1
  1521. package/dist/field/features/lists/htmlConverter.d.ts +0 -5
  1522. package/dist/field/features/lists/htmlConverter.d.ts.map +0 -1
  1523. package/dist/field/features/lists/htmlConverter.js +0 -57
  1524. package/dist/field/features/lists/htmlConverter.js.map +0 -1
  1525. package/dist/field/features/lists/orderedlist/feature.client.d.ts +0 -3
  1526. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +0 -1
  1527. package/dist/field/features/lists/orderedlist/feature.client.js +0 -72
  1528. package/dist/field/features/lists/orderedlist/feature.client.js.map +0 -1
  1529. package/dist/field/features/lists/orderedlist/feature.server.d.ts +0 -3
  1530. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +0 -1
  1531. package/dist/field/features/lists/orderedlist/feature.server.js +0 -36
  1532. package/dist/field/features/lists/orderedlist/feature.server.js.map +0 -1
  1533. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +0 -1
  1534. package/dist/field/features/lists/orderedlist/markdownTransformer.js +0 -17
  1535. package/dist/field/features/lists/orderedlist/markdownTransformer.js.map +0 -1
  1536. package/dist/field/features/lists/plugin/index.d.ts +0 -3
  1537. package/dist/field/features/lists/plugin/index.d.ts.map +0 -1
  1538. package/dist/field/features/lists/plugin/index.js +0 -9
  1539. package/dist/field/features/lists/plugin/index.js.map +0 -1
  1540. package/dist/field/features/lists/unorderedlist/feature.client.d.ts +0 -3
  1541. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +0 -1
  1542. package/dist/field/features/lists/unorderedlist/feature.client.js +0 -72
  1543. package/dist/field/features/lists/unorderedlist/feature.client.js.map +0 -1
  1544. package/dist/field/features/lists/unorderedlist/feature.server.d.ts +0 -3
  1545. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +0 -1
  1546. package/dist/field/features/lists/unorderedlist/feature.server.js +0 -36
  1547. package/dist/field/features/lists/unorderedlist/feature.server.js.map +0 -1
  1548. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +0 -1
  1549. package/dist/field/features/lists/unorderedlist/markdownTransformer.js +0 -17
  1550. package/dist/field/features/lists/unorderedlist/markdownTransformer.js.map +0 -1
  1551. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -6
  1552. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1553. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -6
  1554. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
  1555. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -3
  1556. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1557. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -20
  1558. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
  1559. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -3
  1560. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1561. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
  1562. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
  1563. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -6
  1564. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
  1565. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -6
  1566. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
  1567. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -3
  1568. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1569. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -31
  1570. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
  1571. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -3
  1572. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
  1573. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
  1574. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
  1575. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -6
  1576. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
  1577. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -6
  1578. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
  1579. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -3
  1580. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
  1581. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -22
  1582. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
  1583. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -3
  1584. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
  1585. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
  1586. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
  1587. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -6
  1588. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1589. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -6
  1590. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
  1591. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -3
  1592. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1593. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -22
  1594. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
  1595. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -3
  1596. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1597. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
  1598. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
  1599. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -6
  1600. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
  1601. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -6
  1602. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
  1603. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -3
  1604. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
  1605. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -20
  1606. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
  1607. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -3
  1608. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
  1609. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
  1610. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
  1611. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -6
  1612. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1613. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -6
  1614. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
  1615. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -3
  1616. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1617. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -26
  1618. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
  1619. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -3
  1620. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1621. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
  1622. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
  1623. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -6
  1624. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1625. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -6
  1626. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
  1627. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -3
  1628. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1629. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -25
  1630. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
  1631. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -3
  1632. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1633. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
  1634. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
  1635. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  1636. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  1637. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -18
  1638. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
  1639. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -17
  1640. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
  1641. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js +0 -63
  1642. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
  1643. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -31
  1644. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
  1645. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js +0 -3
  1646. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
  1647. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -3
  1648. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
  1649. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js +0 -34
  1650. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
  1651. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -9
  1652. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
  1653. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +0 -47
  1654. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
  1655. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1656. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -8
  1657. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1658. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
  1659. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1660. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -70
  1661. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1662. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  1663. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -6
  1664. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
  1665. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -6
  1666. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
  1667. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -3
  1668. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
  1669. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -23
  1670. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
  1671. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -3
  1672. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
  1673. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
  1674. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
  1675. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -6
  1676. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
  1677. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js +0 -6
  1678. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
  1679. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -3
  1680. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
  1681. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js +0 -29
  1682. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
  1683. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -3
  1684. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
  1685. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
  1686. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
  1687. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -6
  1688. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
  1689. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js +0 -6
  1690. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
  1691. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -3
  1692. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
  1693. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js +0 -35
  1694. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
  1695. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -3
  1696. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
  1697. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
  1698. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
  1699. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -6
  1700. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
  1701. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js +0 -6
  1702. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
  1703. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -3
  1704. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
  1705. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js +0 -30
  1706. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
  1707. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -3
  1708. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
  1709. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
  1710. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
  1711. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -6
  1712. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
  1713. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js +0 -6
  1714. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
  1715. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -3
  1716. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
  1717. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -25
  1718. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
  1719. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -3
  1720. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
  1721. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
  1722. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
  1723. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -6
  1724. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
  1725. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -6
  1726. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
  1727. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -3
  1728. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
  1729. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -26
  1730. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
  1731. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -3
  1732. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
  1733. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
  1734. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
  1735. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -6
  1736. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
  1737. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js +0 -6
  1738. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
  1739. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -3
  1740. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
  1741. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -18
  1742. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
  1743. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -3
  1744. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
  1745. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
  1746. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
  1747. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -6
  1748. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
  1749. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js +0 -6
  1750. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
  1751. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -3
  1752. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
  1753. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -27
  1754. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
  1755. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -3
  1756. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
  1757. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
  1758. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
  1759. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -6
  1760. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
  1761. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -6
  1762. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
  1763. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -3
  1764. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
  1765. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -26
  1766. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
  1767. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -3
  1768. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
  1769. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
  1770. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
  1771. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -6
  1772. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
  1773. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js +0 -6
  1774. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
  1775. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -3
  1776. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
  1777. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -21
  1778. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
  1779. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -3
  1780. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
  1781. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
  1782. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
  1783. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -3
  1784. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
  1785. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js +0 -24
  1786. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
  1787. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
  1788. package/dist/field/features/migrations/slateToLexical/converter/index.js +0 -107
  1789. package/dist/field/features/migrations/slateToLexical/converter/index.js.map +0 -1
  1790. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts +0 -25
  1791. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
  1792. package/dist/field/features/migrations/slateToLexical/converter/types.js +0 -3
  1793. package/dist/field/features/migrations/slateToLexical/converter/types.js.map +0 -1
  1794. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +0 -3
  1795. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
  1796. package/dist/field/features/migrations/slateToLexical/feature.client.js +0 -34
  1797. package/dist/field/features/migrations/slateToLexical/feature.client.js.map +0 -1
  1798. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts +0 -9
  1799. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
  1800. package/dist/field/features/migrations/slateToLexical/feature.server.js +0 -47
  1801. package/dist/field/features/migrations/slateToLexical/feature.server.js.map +0 -1
  1802. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  1803. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -8
  1804. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
  1805. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
  1806. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  1807. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -70
  1808. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
  1809. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +0 -14
  1810. package/dist/field/features/paragraph/feature.client.d.ts +0 -3
  1811. package/dist/field/features/paragraph/feature.client.d.ts.map +0 -1
  1812. package/dist/field/features/paragraph/feature.client.js +0 -65
  1813. package/dist/field/features/paragraph/feature.client.js.map +0 -1
  1814. package/dist/field/features/paragraph/feature.server.d.ts +0 -3
  1815. package/dist/field/features/paragraph/feature.server.d.ts.map +0 -1
  1816. package/dist/field/features/paragraph/feature.server.js +0 -16
  1817. package/dist/field/features/paragraph/feature.server.js.map +0 -1
  1818. package/dist/field/features/relationship/drawer/commands.d.ts.map +0 -1
  1819. package/dist/field/features/relationship/drawer/commands.js +0 -5
  1820. package/dist/field/features/relationship/drawer/commands.js.map +0 -1
  1821. package/dist/field/features/relationship/drawer/index.d.ts.map +0 -1
  1822. package/dist/field/features/relationship/drawer/index.js +0 -81
  1823. package/dist/field/features/relationship/drawer/index.js.map +0 -1
  1824. package/dist/field/features/relationship/feature.client.d.ts +0 -4
  1825. package/dist/field/features/relationship/feature.client.d.ts.map +0 -1
  1826. package/dist/field/features/relationship/feature.client.js +0 -56
  1827. package/dist/field/features/relationship/feature.client.js.map +0 -1
  1828. package/dist/field/features/relationship/feature.server.d.ts +0 -18
  1829. package/dist/field/features/relationship/feature.server.d.ts.map +0 -1
  1830. package/dist/field/features/relationship/feature.server.js +0 -26
  1831. package/dist/field/features/relationship/feature.server.js.map +0 -1
  1832. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts +0 -36
  1833. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
  1834. package/dist/field/features/relationship/nodes/RelationshipNode.js +0 -110
  1835. package/dist/field/features/relationship/nodes/RelationshipNode.js.map +0 -1
  1836. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts +0 -14
  1837. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  1838. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +0 -109
  1839. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
  1840. package/dist/field/features/relationship/nodes/components/index.scss +0 -97
  1841. package/dist/field/features/relationship/plugins/index.d.ts +0 -7
  1842. package/dist/field/features/relationship/plugins/index.d.ts.map +0 -1
  1843. package/dist/field/features/relationship/plugins/index.js +0 -52
  1844. package/dist/field/features/relationship/plugins/index.js.map +0 -1
  1845. package/dist/field/features/relationship/populationPromise.d.ts +0 -4
  1846. package/dist/field/features/relationship/populationPromise.d.ts.map +0 -1
  1847. package/dist/field/features/relationship/populationPromise.js +0 -24
  1848. package/dist/field/features/relationship/populationPromise.js.map +0 -1
  1849. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  1850. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +0 -35
  1851. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
  1852. package/dist/field/features/types.d.ts +0 -274
  1853. package/dist/field/features/types.d.ts.map +0 -1
  1854. package/dist/field/features/types.js +0 -3
  1855. package/dist/field/features/types.js.map +0 -1
  1856. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts +0 -12
  1857. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +0 -1
  1858. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +0 -126
  1859. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +0 -1
  1860. package/dist/field/features/upload/component/index.d.ts +0 -9
  1861. package/dist/field/features/upload/component/index.d.ts.map +0 -1
  1862. package/dist/field/features/upload/component/index.js +0 -144
  1863. package/dist/field/features/upload/component/index.js.map +0 -1
  1864. package/dist/field/features/upload/component/index.scss +0 -152
  1865. package/dist/field/features/upload/drawer/commands.d.ts.map +0 -1
  1866. package/dist/field/features/upload/drawer/commands.js +0 -6
  1867. package/dist/field/features/upload/drawer/commands.js.map +0 -1
  1868. package/dist/field/features/upload/drawer/index.d.ts.map +0 -1
  1869. package/dist/field/features/upload/drawer/index.js +0 -78
  1870. package/dist/field/features/upload/drawer/index.js.map +0 -1
  1871. package/dist/field/features/upload/feature.client.d.ts +0 -10
  1872. package/dist/field/features/upload/feature.client.d.ts.map +0 -1
  1873. package/dist/field/features/upload/feature.client.js +0 -55
  1874. package/dist/field/features/upload/feature.client.js.map +0 -1
  1875. package/dist/field/features/upload/feature.server.d.ts +0 -12
  1876. package/dist/field/features/upload/feature.server.d.ts.map +0 -1
  1877. package/dist/field/features/upload/feature.server.js +0 -122
  1878. package/dist/field/features/upload/feature.server.js.map +0 -1
  1879. package/dist/field/features/upload/nodes/UploadNode.d.ts +0 -49
  1880. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +0 -1
  1881. package/dist/field/features/upload/nodes/UploadNode.js +0 -102
  1882. package/dist/field/features/upload/nodes/UploadNode.js.map +0 -1
  1883. package/dist/field/features/upload/plugin/index.d.ts +0 -7
  1884. package/dist/field/features/upload/plugin/index.d.ts.map +0 -1
  1885. package/dist/field/features/upload/plugin/index.js +0 -55
  1886. package/dist/field/features/upload/plugin/index.js.map +0 -1
  1887. package/dist/field/features/upload/populationPromise.d.ts +0 -5
  1888. package/dist/field/features/upload/populationPromise.d.ts.map +0 -1
  1889. package/dist/field/features/upload/populationPromise.js +0 -46
  1890. package/dist/field/features/upload/populationPromise.js.map +0 -1
  1891. package/dist/field/features/upload/validate.d.ts +0 -4
  1892. package/dist/field/features/upload/validate.d.ts.map +0 -1
  1893. package/dist/field/features/upload/validate.js +0 -17
  1894. package/dist/field/features/upload/validate.js.map +0 -1
  1895. package/dist/field/index.scss +0 -46
  1896. package/dist/field/lexical/EditorPlugin.d.ts +0 -7
  1897. package/dist/field/lexical/EditorPlugin.d.ts.map +0 -1
  1898. package/dist/field/lexical/EditorPlugin.js +0 -11
  1899. package/dist/field/lexical/EditorPlugin.js.map +0 -1
  1900. package/dist/field/lexical/LexicalEditor.d.ts +0 -5
  1901. package/dist/field/lexical/LexicalEditor.d.ts.map +0 -1
  1902. package/dist/field/lexical/LexicalEditor.js +0 -112
  1903. package/dist/field/lexical/LexicalEditor.js.map +0 -1
  1904. package/dist/field/lexical/LexicalEditor.scss +0 -56
  1905. package/dist/field/lexical/LexicalProvider.d.ts +0 -19
  1906. package/dist/field/lexical/LexicalProvider.d.ts.map +0 -1
  1907. package/dist/field/lexical/LexicalProvider.js +0 -67
  1908. package/dist/field/lexical/LexicalProvider.js.map +0 -1
  1909. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +0 -24
  1910. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +0 -1
  1911. package/dist/field/lexical/config/client/EditorConfigProvider.js +0 -41
  1912. package/dist/field/lexical/config/client/EditorConfigProvider.js.map +0 -1
  1913. package/dist/field/lexical/config/client/default.d.ts +0 -3
  1914. package/dist/field/lexical/config/client/default.d.ts.map +0 -1
  1915. package/dist/field/lexical/config/client/default.js +0 -8
  1916. package/dist/field/lexical/config/client/default.js.map +0 -1
  1917. package/dist/field/lexical/config/client/loader.d.ts +0 -12
  1918. package/dist/field/lexical/config/client/loader.d.ts.map +0 -1
  1919. package/dist/field/lexical/config/client/loader.js +0 -46
  1920. package/dist/field/lexical/config/client/loader.js.map +0 -1
  1921. package/dist/field/lexical/config/client/sanitize.d.ts +0 -6
  1922. package/dist/field/lexical/config/client/sanitize.d.ts.map +0 -1
  1923. package/dist/field/lexical/config/client/sanitize.js +0 -126
  1924. package/dist/field/lexical/config/client/sanitize.js.map +0 -1
  1925. package/dist/field/lexical/config/server/default.d.ts +0 -8
  1926. package/dist/field/lexical/config/server/default.d.ts.map +0 -1
  1927. package/dist/field/lexical/config/server/default.js +0 -53
  1928. package/dist/field/lexical/config/server/default.js.map +0 -1
  1929. package/dist/field/lexical/config/server/loader.d.ts +0 -7
  1930. package/dist/field/lexical/config/server/loader.d.ts.map +0 -1
  1931. package/dist/field/lexical/config/server/loader.js +0 -118
  1932. package/dist/field/lexical/config/server/loader.js.map +0 -1
  1933. package/dist/field/lexical/config/server/sanitize.d.ts +0 -5
  1934. package/dist/field/lexical/config/server/sanitize.d.ts.map +0 -1
  1935. package/dist/field/lexical/config/server/sanitize.js +0 -65
  1936. package/dist/field/lexical/config/server/sanitize.js.map +0 -1
  1937. package/dist/field/lexical/config/types.d.ts +0 -21
  1938. package/dist/field/lexical/config/types.d.ts.map +0 -1
  1939. package/dist/field/lexical/config/types.js +0 -3
  1940. package/dist/field/lexical/config/types.js.map +0 -1
  1941. package/dist/field/lexical/nodes/index.d.ts +0 -7
  1942. package/dist/field/lexical/nodes/index.d.ts.map +0 -1
  1943. package/dist/field/lexical/nodes/index.js +0 -10
  1944. package/dist/field/lexical/nodes/index.js.map +0 -1
  1945. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts +0 -8
  1946. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts.map +0 -1
  1947. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js +0 -97
  1948. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js.map +0 -1
  1949. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +0 -37
  1950. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +0 -17
  1951. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +0 -1
  1952. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js +0 -251
  1953. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js.map +0 -1
  1954. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts +0 -18
  1955. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +0 -1
  1956. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +0 -42
  1957. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js.map +0 -1
  1958. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +0 -100
  1959. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts +0 -6
  1960. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +0 -1
  1961. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +0 -270
  1962. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js.map +0 -1
  1963. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +0 -57
  1964. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +0 -40
  1965. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +0 -1
  1966. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js +0 -3
  1967. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js.map +0 -1
  1968. package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +0 -1
  1969. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +0 -13
  1970. package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +0 -1
  1971. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -32
  1972. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +0 -1
  1973. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +0 -404
  1974. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +0 -1
  1975. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +0 -25
  1976. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +0 -1
  1977. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +0 -207
  1978. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +0 -1
  1979. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +0 -39
  1980. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +0 -1
  1981. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +0 -39
  1982. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +0 -1
  1983. package/dist/field/lexical/plugins/SlashMenu/index.d.ts +0 -6
  1984. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +0 -1
  1985. package/dist/field/lexical/plugins/SlashMenu/index.js +0 -172
  1986. package/dist/field/lexical/plugins/SlashMenu/index.js.map +0 -1
  1987. package/dist/field/lexical/plugins/SlashMenu/index.scss +0 -61
  1988. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +0 -1
  1989. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +0 -33
  1990. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +0 -1
  1991. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +0 -6
  1992. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +0 -1
  1993. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +0 -241
  1994. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +0 -1
  1995. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -31
  1996. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts +0 -2
  1997. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +0 -1
  1998. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +0 -14
  1999. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +0 -1
  2000. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +0 -1
  2001. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +0 -14
  2002. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +0 -1
  2003. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts +0 -27
  2004. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts.map +0 -1
  2005. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js +0 -151
  2006. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js.map +0 -1
  2007. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +0 -3
  2008. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +0 -1
  2009. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +0 -27
  2010. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +0 -1
  2011. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +0 -6
  2012. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +0 -1
  2013. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +0 -298
  2014. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +0 -1
  2015. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -55
  2016. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +0 -3
  2017. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +0 -1
  2018. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +0 -49
  2019. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +0 -1
  2020. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +0 -1
  2021. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +0 -35
  2022. package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +0 -1
  2023. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +0 -1
  2024. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js +0 -14
  2025. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js.map +0 -1
  2026. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +0 -1
  2027. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +0 -7
  2028. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +0 -1
  2029. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +0 -1
  2030. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js +0 -5
  2031. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js.map +0 -1
  2032. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +0 -1
  2033. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js +0 -27
  2034. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js.map +0 -1
  2035. package/dist/field/lexical/theme/EditorTheme.d.ts +0 -4
  2036. package/dist/field/lexical/theme/EditorTheme.d.ts.map +0 -1
  2037. package/dist/field/lexical/theme/EditorTheme.js +0 -106
  2038. package/dist/field/lexical/theme/EditorTheme.js.map +0 -1
  2039. package/dist/field/lexical/theme/EditorTheme.scss +0 -509
  2040. package/dist/field/lexical/ui/ContentEditable.d.ts +0 -6
  2041. package/dist/field/lexical/ui/ContentEditable.d.ts.map +0 -1
  2042. package/dist/field/lexical/ui/ContentEditable.js +0 -11
  2043. package/dist/field/lexical/ui/ContentEditable.js.map +0 -1
  2044. package/dist/field/lexical/ui/ContentEditable.scss +0 -25
  2045. package/dist/field/lexical/ui/icons/AI/index.d.ts.map +0 -1
  2046. package/dist/field/lexical/ui/icons/AI/index.js +0 -27
  2047. package/dist/field/lexical/ui/icons/AI/index.js.map +0 -1
  2048. package/dist/field/lexical/ui/icons/AlignCenter/index.d.ts.map +0 -1
  2049. package/dist/field/lexical/ui/icons/AlignCenter/index.js +0 -25
  2050. package/dist/field/lexical/ui/icons/AlignCenter/index.js.map +0 -1
  2051. package/dist/field/lexical/ui/icons/AlignJustify/index.d.ts.map +0 -1
  2052. package/dist/field/lexical/ui/icons/AlignJustify/index.js +0 -25
  2053. package/dist/field/lexical/ui/icons/AlignJustify/index.js.map +0 -1
  2054. package/dist/field/lexical/ui/icons/AlignLeft/index.d.ts.map +0 -1
  2055. package/dist/field/lexical/ui/icons/AlignLeft/index.js +0 -25
  2056. package/dist/field/lexical/ui/icons/AlignLeft/index.js.map +0 -1
  2057. package/dist/field/lexical/ui/icons/AlignRight/index.d.ts.map +0 -1
  2058. package/dist/field/lexical/ui/icons/AlignRight/index.js +0 -25
  2059. package/dist/field/lexical/ui/icons/AlignRight/index.js.map +0 -1
  2060. package/dist/field/lexical/ui/icons/Block/index.d.ts.map +0 -1
  2061. package/dist/field/lexical/ui/icons/Block/index.js +0 -34
  2062. package/dist/field/lexical/ui/icons/Block/index.js.map +0 -1
  2063. package/dist/field/lexical/ui/icons/Blockquote/index.d.ts.map +0 -1
  2064. package/dist/field/lexical/ui/icons/Blockquote/index.js +0 -16
  2065. package/dist/field/lexical/ui/icons/Blockquote/index.js.map +0 -1
  2066. package/dist/field/lexical/ui/icons/Bold/index.d.ts.map +0 -1
  2067. package/dist/field/lexical/ui/icons/Bold/index.js +0 -16
  2068. package/dist/field/lexical/ui/icons/Bold/index.js.map +0 -1
  2069. package/dist/field/lexical/ui/icons/Caret/index.svg +0 -3
  2070. package/dist/field/lexical/ui/icons/Checklist/index.d.ts.map +0 -1
  2071. package/dist/field/lexical/ui/icons/Checklist/index.js +0 -24
  2072. package/dist/field/lexical/ui/icons/Checklist/index.js.map +0 -1
  2073. package/dist/field/lexical/ui/icons/Code/index.d.ts.map +0 -1
  2074. package/dist/field/lexical/ui/icons/Code/index.js +0 -19
  2075. package/dist/field/lexical/ui/icons/Code/index.js.map +0 -1
  2076. package/dist/field/lexical/ui/icons/CodeBlock/index.d.ts.map +0 -1
  2077. package/dist/field/lexical/ui/icons/CodeBlock/index.js +0 -19
  2078. package/dist/field/lexical/ui/icons/CodeBlock/index.js.map +0 -1
  2079. package/dist/field/lexical/ui/icons/H1/index.d.ts.map +0 -1
  2080. package/dist/field/lexical/ui/icons/H1/index.js +0 -16
  2081. package/dist/field/lexical/ui/icons/H1/index.js.map +0 -1
  2082. package/dist/field/lexical/ui/icons/H2/index.d.ts.map +0 -1
  2083. package/dist/field/lexical/ui/icons/H2/index.js +0 -16
  2084. package/dist/field/lexical/ui/icons/H2/index.js.map +0 -1
  2085. package/dist/field/lexical/ui/icons/H3/index.d.ts.map +0 -1
  2086. package/dist/field/lexical/ui/icons/H3/index.js +0 -16
  2087. package/dist/field/lexical/ui/icons/H3/index.js.map +0 -1
  2088. package/dist/field/lexical/ui/icons/H4/index.d.ts.map +0 -1
  2089. package/dist/field/lexical/ui/icons/H4/index.js +0 -16
  2090. package/dist/field/lexical/ui/icons/H4/index.js.map +0 -1
  2091. package/dist/field/lexical/ui/icons/H5/index.d.ts.map +0 -1
  2092. package/dist/field/lexical/ui/icons/H5/index.js +0 -16
  2093. package/dist/field/lexical/ui/icons/H5/index.js.map +0 -1
  2094. package/dist/field/lexical/ui/icons/H6/index.d.ts.map +0 -1
  2095. package/dist/field/lexical/ui/icons/H6/index.js +0 -16
  2096. package/dist/field/lexical/ui/icons/H6/index.js.map +0 -1
  2097. package/dist/field/lexical/ui/icons/HorizontalRule/index.d.ts.map +0 -1
  2098. package/dist/field/lexical/ui/icons/HorizontalRule/index.js +0 -19
  2099. package/dist/field/lexical/ui/icons/HorizontalRule/index.js.map +0 -1
  2100. package/dist/field/lexical/ui/icons/IndentDecrease/index.d.ts.map +0 -1
  2101. package/dist/field/lexical/ui/icons/IndentDecrease/index.js +0 -28
  2102. package/dist/field/lexical/ui/icons/IndentDecrease/index.js.map +0 -1
  2103. package/dist/field/lexical/ui/icons/IndentIncrease/index.d.ts.map +0 -1
  2104. package/dist/field/lexical/ui/icons/IndentIncrease/index.js +0 -28
  2105. package/dist/field/lexical/ui/icons/IndentIncrease/index.js.map +0 -1
  2106. package/dist/field/lexical/ui/icons/Italic/index.d.ts.map +0 -1
  2107. package/dist/field/lexical/ui/icons/Italic/index.js +0 -16
  2108. package/dist/field/lexical/ui/icons/Italic/index.js.map +0 -1
  2109. package/dist/field/lexical/ui/icons/Link/index.d.ts.map +0 -1
  2110. package/dist/field/lexical/ui/icons/Link/index.js +0 -27
  2111. package/dist/field/lexical/ui/icons/Link/index.js.map +0 -1
  2112. package/dist/field/lexical/ui/icons/OrderedList/index.d.ts.map +0 -1
  2113. package/dist/field/lexical/ui/icons/OrderedList/index.js +0 -31
  2114. package/dist/field/lexical/ui/icons/OrderedList/index.js.map +0 -1
  2115. package/dist/field/lexical/ui/icons/Relationship/index.d.ts.map +0 -1
  2116. package/dist/field/lexical/ui/icons/Relationship/index.js +0 -27
  2117. package/dist/field/lexical/ui/icons/Relationship/index.js.map +0 -1
  2118. package/dist/field/lexical/ui/icons/Strikethrough/index.d.ts.map +0 -1
  2119. package/dist/field/lexical/ui/icons/Strikethrough/index.js +0 -19
  2120. package/dist/field/lexical/ui/icons/Strikethrough/index.js.map +0 -1
  2121. package/dist/field/lexical/ui/icons/Subscript/index.d.ts.map +0 -1
  2122. package/dist/field/lexical/ui/icons/Subscript/index.js +0 -16
  2123. package/dist/field/lexical/ui/icons/Subscript/index.js.map +0 -1
  2124. package/dist/field/lexical/ui/icons/Superscript/index.d.ts.map +0 -1
  2125. package/dist/field/lexical/ui/icons/Superscript/index.js +0 -16
  2126. package/dist/field/lexical/ui/icons/Superscript/index.js.map +0 -1
  2127. package/dist/field/lexical/ui/icons/Text/index.d.ts.map +0 -1
  2128. package/dist/field/lexical/ui/icons/Text/index.js +0 -16
  2129. package/dist/field/lexical/ui/icons/Text/index.js.map +0 -1
  2130. package/dist/field/lexical/ui/icons/Underline/index.d.ts.map +0 -1
  2131. package/dist/field/lexical/ui/icons/Underline/index.js +0 -19
  2132. package/dist/field/lexical/ui/icons/Underline/index.js.map +0 -1
  2133. package/dist/field/lexical/ui/icons/UnorderedList/index.d.ts.map +0 -1
  2134. package/dist/field/lexical/ui/icons/UnorderedList/index.js +0 -46
  2135. package/dist/field/lexical/ui/icons/UnorderedList/index.js.map +0 -1
  2136. package/dist/field/lexical/ui/icons/Upload/index.d.ts.map +0 -1
  2137. package/dist/field/lexical/ui/icons/Upload/index.js +0 -28
  2138. package/dist/field/lexical/ui/icons/Upload/index.js.map +0 -1
  2139. package/dist/field/lexical/utils/canUseDOM.d.ts.map +0 -1
  2140. package/dist/field/lexical/utils/canUseDOM.js +0 -3
  2141. package/dist/field/lexical/utils/canUseDOM.js.map +0 -1
  2142. package/dist/field/lexical/utils/cloneDeep.d.ts +0 -2
  2143. package/dist/field/lexical/utils/cloneDeep.d.ts.map +0 -1
  2144. package/dist/field/lexical/utils/cloneDeep.js +0 -50
  2145. package/dist/field/lexical/utils/cloneDeep.js.map +0 -1
  2146. package/dist/field/lexical/utils/environment.d.ts.map +0 -1
  2147. package/dist/field/lexical/utils/environment.js +0 -14
  2148. package/dist/field/lexical/utils/environment.js.map +0 -1
  2149. package/dist/field/lexical/utils/getDOMRangeRect.d.ts.map +0 -1
  2150. package/dist/field/lexical/utils/getDOMRangeRect.js +0 -16
  2151. package/dist/field/lexical/utils/getDOMRangeRect.js.map +0 -1
  2152. package/dist/field/lexical/utils/getSelectedNode.d.ts.map +0 -1
  2153. package/dist/field/lexical/utils/getSelectedNode.js +0 -18
  2154. package/dist/field/lexical/utils/getSelectedNode.js.map +0 -1
  2155. package/dist/field/lexical/utils/guard.d.ts.map +0 -1
  2156. package/dist/field/lexical/utils/guard.js +0 -5
  2157. package/dist/field/lexical/utils/guard.js.map +0 -1
  2158. package/dist/field/lexical/utils/invariant.d.ts +0 -2
  2159. package/dist/field/lexical/utils/invariant.d.ts.map +0 -1
  2160. package/dist/field/lexical/utils/invariant.js +0 -12
  2161. package/dist/field/lexical/utils/invariant.js.map +0 -1
  2162. package/dist/field/lexical/utils/joinClasses.d.ts.map +0 -1
  2163. package/dist/field/lexical/utils/joinClasses.js +0 -5
  2164. package/dist/field/lexical/utils/joinClasses.js.map +0 -1
  2165. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts +0 -4
  2166. package/dist/field/lexical/utils/markdown/createBlockNode.d.ts.map +0 -1
  2167. package/dist/field/lexical/utils/markdown/createBlockNode.js +0 -12
  2168. package/dist/field/lexical/utils/markdown/createBlockNode.js.map +0 -1
  2169. package/dist/field/lexical/utils/nodeFormat.d.ts +0 -41
  2170. package/dist/field/lexical/utils/nodeFormat.d.ts.map +0 -1
  2171. package/dist/field/lexical/utils/nodeFormat.js +0 -88
  2172. package/dist/field/lexical/utils/nodeFormat.js.map +0 -1
  2173. package/dist/field/lexical/utils/point.d.ts.map +0 -1
  2174. package/dist/field/lexical/utils/point.js +0 -37
  2175. package/dist/field/lexical/utils/point.js.map +0 -1
  2176. package/dist/field/lexical/utils/rect.d.ts +0 -47
  2177. package/dist/field/lexical/utils/rect.d.ts.map +0 -1
  2178. package/dist/field/lexical/utils/rect.js +0 -138
  2179. package/dist/field/lexical/utils/rect.js.map +0 -1
  2180. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts +0 -2
  2181. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +0 -1
  2182. package/dist/field/lexical/utils/setFloatingElemPosition.js +0 -53
  2183. package/dist/field/lexical/utils/setFloatingElemPosition.js.map +0 -1
  2184. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +0 -1
  2185. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js +0 -27
  2186. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +0 -1
  2187. package/dist/field/lexical/utils/swipe.d.ts.map +0 -1
  2188. package/dist/field/lexical/utils/swipe.js +0 -100
  2189. package/dist/field/lexical/utils/swipe.js.map +0 -1
  2190. package/dist/field/lexical/utils/url.d.ts +0 -3
  2191. package/dist/field/lexical/utils/url.d.ts.map +0 -1
  2192. package/dist/field/lexical/utils/url.js +0 -25
  2193. package/dist/field/lexical/utils/url.js.map +0 -1
  2194. package/dist/generateComponentMap.d.ts +0 -6
  2195. package/dist/generateComponentMap.d.ts.map +0 -1
  2196. package/dist/generateComponentMap.js +0 -86
  2197. package/dist/generateComponentMap.js.map +0 -1
  2198. package/dist/generateSchemaMap.d.ts +0 -6
  2199. package/dist/generateSchemaMap.d.ts.map +0 -1
  2200. package/dist/generateSchemaMap.js +0 -31
  2201. package/dist/generateSchemaMap.js.map +0 -1
  2202. package/dist/populate/defaultValue.d.ts +0 -4
  2203. package/dist/populate/defaultValue.d.ts.map +0 -1
  2204. package/dist/populate/defaultValue.js +0 -50
  2205. package/dist/populate/defaultValue.js.map +0 -1
  2206. package/dist/populate/populate.d.ts +0 -21
  2207. package/dist/populate/populate.d.ts.map +0 -1
  2208. package/dist/populate/populate.js +0 -21
  2209. package/dist/populate/populate.js.map +0 -1
  2210. package/dist/populate/recurseNestedFields.d.ts +0 -25
  2211. package/dist/populate/recurseNestedFields.d.ts.map +0 -1
  2212. package/dist/populate/recurseNestedFields.js +0 -26
  2213. package/dist/populate/recurseNestedFields.js.map +0 -1
  2214. package/dist/populate/richTextRelationshipPromise.d.ts +0 -23
  2215. package/dist/populate/richTextRelationshipPromise.d.ts.map +0 -1
  2216. package/dist/populate/richTextRelationshipPromise.js +0 -68
  2217. package/dist/populate/richTextRelationshipPromise.js.map +0 -1
  2218. package/dist/scss/app.scss +0 -208
  2219. package/dist/scss/colors.scss +0 -269
  2220. package/dist/scss/queries.scss +0 -27
  2221. package/dist/scss/resets.scss +0 -17
  2222. package/dist/scss/styles.scss +0 -11
  2223. package/dist/scss/svg.scss +0 -10
  2224. package/dist/scss/toastify.scss +0 -58
  2225. package/dist/scss/type.scss +0 -117
  2226. package/dist/scss/vars.scss +0 -213
  2227. package/dist/scss/z-index.scss +0 -9
  2228. package/dist/useLexicalFeature.d.ts +0 -3
  2229. package/dist/useLexicalFeature.d.ts.map +0 -1
  2230. package/dist/useLexicalFeature.js +0 -9
  2231. package/dist/useLexicalFeature.js.map +0 -1
  2232. package/src/index.ts +0 -423
  2233. /package/dist/{field/features → features}/blockquote/markdownTransformer.d.ts +0 -0
  2234. /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.d.ts +0 -0
  2235. /package/dist/{field/features → features}/converters/html/converter/converters/paragraph.d.ts +0 -0
  2236. /package/dist/{field/features → features}/converters/html/converter/converters/text.d.ts +0 -0
  2237. /package/dist/{field/features → features}/converters/html/converter/defaultConverters.d.ts +0 -0
  2238. /package/dist/{field/features → features}/format/bold/markdownTransformers.d.ts +0 -0
  2239. /package/dist/{field/features/format/inlinecode → features/format/inlineCode}/markdownTransformers.d.ts +0 -0
  2240. /package/dist/{field/features → features}/format/italic/markdownTransformers.d.ts +0 -0
  2241. /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.d.ts +0 -0
  2242. /package/dist/{field/features → features}/heading/markdownTransformer.d.ts +0 -0
  2243. /package/dist/{field/features/horizontalrule → features/horizontalRule/client}/markdownTransformer.d.ts +0 -0
  2244. /package/dist/{field/features/link → features/link/client}/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  2245. /package/dist/{field/features/link → features/link/client}/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
  2246. /package/dist/{field/features → features}/link/nodes/AutoLinkNode.d.ts +0 -0
  2247. /package/dist/{field/features → features}/lists/checklist/markdownTransformers.d.ts +0 -0
  2248. /package/dist/{field/features/lists/orderedlist → features/lists/orderedList}/markdownTransformer.d.ts +0 -0
  2249. /package/dist/{field/features/lists/unorderedlist → features/lists/unorderedList}/markdownTransformer.d.ts +0 -0
  2250. /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  2251. /package/dist/{field/features → features}/migrations/slateToLexical/converter/index.d.ts +0 -0
  2252. /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
  2253. /package/dist/{field/features/relationship → features/relationship/client}/drawer/commands.d.ts +0 -0
  2254. /package/dist/{field/features/relationship → features/relationship/client}/drawer/index.d.ts +0 -0
  2255. /package/dist/{field/features/relationship → features/relationship/client}/utils/EnabledRelationshipsCondition.d.ts +0 -0
  2256. /package/dist/{field/features/upload → features/upload/client}/drawer/commands.d.ts +0 -0
  2257. /package/dist/{field/features/upload → features/upload/client}/drawer/index.d.ts +0 -0
  2258. /package/dist/{field/lexical → lexical}/plugins/MarkdownShortcut/index.d.ts +0 -0
  2259. /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.d.ts +0 -0
  2260. /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts +0 -0
  2261. /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.d.ts +0 -0
  2262. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.d.ts +0 -0
  2263. /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.d.ts +0 -0
  2264. /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.d.ts +0 -0
  2265. /package/dist/{field/lexical → lexical}/plugins/handles/utils/setHandlePosition.d.ts +0 -0
  2266. /package/dist/{field/lexical → lexical}/ui/icons/AI/index.d.ts +0 -0
  2267. /package/dist/{field/lexical → lexical}/ui/icons/Add/index.svg +0 -0
  2268. /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.d.ts +0 -0
  2269. /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.d.ts +0 -0
  2270. /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.d.ts +0 -0
  2271. /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.d.ts +0 -0
  2272. /package/dist/{field/lexical → lexical}/ui/icons/Block/index.d.ts +0 -0
  2273. /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.d.ts +0 -0
  2274. /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.d.ts +0 -0
  2275. /package/dist/{field/lexical → lexical}/ui/icons/Checklist/index.d.ts +0 -0
  2276. /package/dist/{field/lexical → lexical}/ui/icons/Code/index.d.ts +0 -0
  2277. /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.d.ts +0 -0
  2278. /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/index.svg +0 -0
  2279. /package/dist/{field/lexical → lexical}/ui/icons/Edit/index.svg +0 -0
  2280. /package/dist/{field/lexical → lexical}/ui/icons/H1/index.d.ts +0 -0
  2281. /package/dist/{field/lexical → lexical}/ui/icons/H2/index.d.ts +0 -0
  2282. /package/dist/{field/lexical → lexical}/ui/icons/H3/index.d.ts +0 -0
  2283. /package/dist/{field/lexical → lexical}/ui/icons/H4/index.d.ts +0 -0
  2284. /package/dist/{field/lexical → lexical}/ui/icons/H5/index.d.ts +0 -0
  2285. /package/dist/{field/lexical → lexical}/ui/icons/H6/index.d.ts +0 -0
  2286. /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.d.ts +0 -0
  2287. /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.d.ts +0 -0
  2288. /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.d.ts +0 -0
  2289. /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.d.ts +0 -0
  2290. /package/dist/{field/lexical → lexical}/ui/icons/Link/index.d.ts +0 -0
  2291. /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.d.ts +0 -0
  2292. /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.d.ts +0 -0
  2293. /package/dist/{field/lexical → lexical}/ui/icons/Remove/index.svg +0 -0
  2294. /package/dist/{field/lexical → lexical}/ui/icons/Strikethrough/index.d.ts +0 -0
  2295. /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.d.ts +0 -0
  2296. /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.d.ts +0 -0
  2297. /package/dist/{field/lexical → lexical}/ui/icons/Text/index.d.ts +0 -0
  2298. /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.d.ts +0 -0
  2299. /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.d.ts +0 -0
  2300. /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.d.ts +0 -0
  2301. /package/dist/{field/lexical → lexical}/utils/canUseDOM.d.ts +0 -0
  2302. /package/dist/{field/lexical → lexical}/utils/environment.d.ts +0 -0
  2303. /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.d.ts +0 -0
  2304. /package/dist/{field/lexical → lexical}/utils/getSelectedNode.d.ts +0 -0
  2305. /package/dist/{field/lexical → lexical}/utils/guard.d.ts +0 -0
  2306. /package/dist/{field/lexical → lexical}/utils/joinClasses.d.ts +0 -0
  2307. /package/dist/{field/lexical → lexical}/utils/point.d.ts +0 -0
  2308. /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.d.ts +0 -0
  2309. /package/dist/{field/lexical → lexical}/utils/swipe.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lexical/nodes/index.ts", "../../../src/lexical/utils/guard.ts", "../../../src/lexical/utils/point.ts", "../../../src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx", "../../../src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx", "../../../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'\nexport function isHTMLElement(x: unknown): x is HTMLElement {\n return x instanceof HTMLElement\n}\n", "'use client'\nexport 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", "'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): string | undefined {\n let text\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: null | TextNode,\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 === undefined ||\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 createCommand,\n KEY_ARROW_DOWN_COMMAND,\n KEY_ARROW_UP_COMMAND,\n KEY_ENTER_COMMAND,\n KEY_ESCAPE_COMMAND,\n KEY_TAB_COMMAND,\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 selectedItemKey: null | string\n selectItemAndCleanUp: (selectedItem: SlashMenuItem) => void\n setSelectedItemKey: (itemKey: string) => void\n },\n matchingString: null | string,\n) => JSX.Element | null | ReactPortal\n\nconst scrollIntoViewIfNeeded = (target: HTMLElement) => {\n const typeaheadContainerNode = document.getElementById('slash-menu')\n if (!typeaheadContainerNode) {\n return\n }\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): null | TextNode {\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: null | TextNode,\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 selectedItemKey,\n selectItemAndCleanUp,\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", "'use client'\nimport { isPoint, type Point } 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): boolean | ContainsPointReturn {\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,SAAS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
+ "names": ["getEnabledNodes", "editorConfig", "features", "nodes", "map", "node", "isHTMLElement", "x", "HTMLElement", "Point", "_x", "_y", "constructor", "x", "y", "calcDeltaXTo", "calcDeltaYTo", "calcDistanceTo", "point", "Math", "sqrt", "pow", "calcHorizontalDistanceTo", "abs", "calcVerticalDistance", "equals", "isPoint", "c", "_c", "useLexicalComposerContext", "mergeRegister", "$getSelection", "$isRangeSelection", "$isTextNode", "COMMAND_PRIORITY_LOW", "createCommand", "useEffect", "useState", "React", "c", "_c", "useLexicalComposerContext", "mergeRegister", "$getSelection", "$isRangeSelection", "COMMAND_PRIORITY_LOW", "createCommand", "KEY_ARROW_DOWN_COMMAND", "KEY_ARROW_UP_COMMAND", "KEY_ENTER_COMMAND", "KEY_ESCAPE_COMMAND", "KEY_TAB_COMMAND", "useCallback", "useEffect", "useLayoutEffect", "useMemo", "useRef", "useState", "baseClass", "scrollIntoViewIfNeeded", "target", "typeaheadContainerNode", "document", "getElementById", "typeaheadRect", "getBoundingClientRect", "top", "height", "window", "innerHeight", "scrollIntoView", "block", "getFullMatchOffset", "documentText", "entryText", "offset", "triggerOffset", "i", "length", "substring", "$splitNodeContainingQuery", "match", "selection", "isCollapsed", "anchor", "type", "anchorNode", "getNode", "isSimpleText", "selectionOffset", "textContent", "getTextContent", "slice", "characterOffset", "replaceableString", "queryOffset", "matchingString", "startOffset", "newNode", "splitText", "getScrollParent", "element", "includeHidden", "style", "getComputedStyle", "excludeStaticParent", "position", "overflowRegex", "body", "parent", "parentElement", "test", "overflow", "overflowY", "overflowX", "isTriggerVisibleInNearestScrollContainer", "targetElement", "containerElement", "tRect", "cRect", "bottom", "useDynamicPositioning", "resolution", "onReposition", "onVisibilityChange", "$", "editor", "t0", "t1", "rootElement", "getRootElement", "rootScrollParent", "ticking", "previousIsInView", "handleScroll", "requestAnimationFrame", "isInView", "resizeObserver", "ResizeObserver", "addEventListener", "capture", "passive", "observe", "unobserve", "removeEventListener", "SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND", "LexicalMenu", "anchorElementRef", "close", "groups", "menuRenderFn", "onSelectItem", "shouldSplitNodeWithQuery", "selectedItemKey", "setSelectedItemKey", "updateSelectedItem", "item", "rootElem", "setAttribute", "key", "setSelectedItemKeyToFirstMatchingItem", "allItems", "flatMap", "group", "items", "firstMatchingItem", "selectItemAndCleanUp", "selectedItem", "update", "textNodeContainingQuery", "removeAttribute", "registerCommand", "ref", "current", "payload", "event", "selectedIndex", "findIndex", "newSelectedIndex", "newSelectedItem", "dispatchCommand", "index", "preventDefault", "stopImmediatePropagation", "find", "listItemProps", "useMenuAnchorRef", "anchorElem", "setResolution", "className", "createElement", "positionMenu", "containerDiv", "VERTICAL_OFFSET", "menuEle", "firstChild", "width", "getRect", "left", "rawTop", "scrollY", "scrollX", "menuRect", "menuHeight", "menuWidth", "rootElementRect", "right", "wouldGoOffBottomOfScreen", "wouldGoOffTopOfScreen", "margin", "isConnected", "display", "append", "remove", "PUNCTUATION", "getTextUpToAnchor", "selection", "anchor", "type", "anchorNode", "getNode", "isSimpleText", "anchorOffset", "offset", "getTextContent", "slice", "tryToPositionRange", "leadOffset", "range", "editorWindow", "domSelection", "getSelection", "isCollapsed", "startOffset", "endOffset", "setStart", "setEnd", "getQueryTextForSearch", "editor", "text", "getEditorState", "read", "$getSelection", "$isRangeSelection", "isSelectionOnEntityBoundary", "prevSibling", "getPreviousSibling", "$isTextNode", "isTextEntity", "startTransition", "callback", "ENABLE_SLASH_MENU_COMMAND", "createCommand", "LexicalTypeaheadMenuPlugin", "t0", "$", "_c", "anchorClassName", "anchorElem", "groups", "menuRenderFn", "onClose", "onOpen", "onQueryChange", "onSelectItem", "triggerFn", "useLexicalComposerContext", "resolution", "setResolution", "useState", "anchorElementRef", "useMenuAnchorRef", "t1", "closeTypeahead", "t2", "res", "openTypeahead", "t3", "t4", "mergeRegister", "registerCommand", "t5", "node", "match", "matchingString", "replaceableString", "_window", "window", "document", "createRange", "getRect", "getBoundingClientRect", "COMMAND_PRIORITY_LOW", "useEffect", "updateListener", "editorWindow_0", "range_0", "undefined", "match_0", "query", "removeUpdateListener", "registerUpdateListener", "t6", "t7", "_jsx", "LexicalMenu", "close", "shouldSplitNodeWithQuery", "Rect", "_bottom", "_left", "_right", "_top", "constructor", "left", "top", "right", "bottom", "physicTop", "physicBottom", "physicLeft", "physicRight", "fromDOM", "dom", "height", "width", "getBoundingClientRect", "fromLWTH", "fromDOMRect", "domRect", "fromLTRB", "fromPoints", "startPoint", "endPoint", "x", "y", "contains", "target", "isPoint", "isOnTopSide", "isOnBottomSide", "isOnLeftSide", "isOnRightSide", "reason", "result", "distanceFromPoint", "point", "containsResult", "distance", "dx", "dy", "Math", "sqrt", "equals", "generateNewRect", "intersectsWith", "rect", "h1", "x1", "y1", "w1", "h2", "x2", "y2", "w2", "maxX", "maxY", "minX", "minY", "abs"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{createCommand as u}from"lexical";var d=u("INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND");import{jsx as h}from"react/jsx-runtime";import*as l from"react";import{DecoratorBlockNode as c}from"@lexical/react/LexicalDecoratorBlockNode.js";function p(r){let t=r.getAttribute("data-lexical-relationship-id"),e=r.getAttribute("data-lexical-relationship-relationTo");return t!=null&&e!=null?{node:o({relationTo:e,value:t})}:null}var n=class extends c{__data;constructor({data:t,format:e,key:a}){super(e,a),this.__data=t}static clone(t){return new this({data:t.__data,format:t.__format,key:t.__key})}static getType(){return"relationship"}static importDOM(){return{div:t=>!t.hasAttribute("data-lexical-relationship-relationTo")||!t.hasAttribute("data-lexical-relationship-id")?null:{conversion:p,priority:2}}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id);let e={relationTo:t.relationTo,value:t.value},a=o(e);return a.setFormat(t.format),a}static isInline(){return!1}decorate(t,e){return null}exportDOM(){let t=document.createElement("div");t.setAttribute("data-lexical-relationship-id",String(this.__data?.value)),t.setAttribute("data-lexical-relationship-relationTo",this.__data?.relationTo);let e=document.createTextNode(this.getTextContent());return t.append(e),{element:t}}exportJSON(){return{...super.exportJSON(),...this.getData(),type:"relationship",version:2}}getData(){return this.getLatest().__data}getTextContent(){return`${this.__data?.relationTo} relation to ${this.__data?.value}`}setData(t){let e=this.getWritable();e.__data=t}};function o(r){return new n({data:r})}var _=l.lazy(()=>import("./RelationshipComponent-FTWR5YDX.js").then(r=>({default:r.RelationshipComponent})));function m(r){let t=r.getAttribute("data-lexical-relationship-id"),e=r.getAttribute("data-lexical-relationship-relationTo");return t!=null&&e!=null?{node:s({relationTo:e,value:t})}:null}var i=class extends n{static clone(t){return super.clone(t)}static getType(){return super.getType()}static importDOM(){return{div:t=>!t.hasAttribute("data-lexical-relationship-relationTo")||!t.hasAttribute("data-lexical-relationship-id")?null:{conversion:m,priority:2}}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id);let e={relationTo:t.relationTo,value:t.value},a=s(e);return a.setFormat(t.format),a}decorate(t,e){return h(_,{className:e.theme.relationship??"LexicalEditorTheme__relationship",data:this.__data,format:this.__format,nodeKey:this.getKey()})}exportJSON(){return super.exportJSON()}};function s(r){return new i({data:r})}function R(r){return r instanceof i}export{d as a,i as b,s as c,R as d};
2
+ //# sourceMappingURL=chunk-QZNJUROL.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/relationship/client/drawer/commands.ts", "../../../src/features/relationship/client/nodes/RelationshipNode.tsx", "../../../src/features/relationship/server/nodes/RelationshipNode.tsx"],
4
+ "sourcesContent": ["import type { LexicalCommand } from 'lexical'\n\nimport { createCommand } from 'lexical'\n\nexport const INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND: LexicalCommand<{\n replace: { nodeKey: string } | false\n}> = createCommand('INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND')\n", "'use client'\nimport type {\n DOMConversionMap,\n DOMConversionOutput,\n EditorConfig,\n LexicalEditor,\n LexicalNode,\n} from 'lexical'\nimport type { JSX } from 'react'\n\nimport * as React from 'react'\n\nimport type {\n RelationshipData,\n SerializedRelationshipNode,\n} from '../../server/nodes/RelationshipNode.js'\n\nimport { RelationshipServerNode } from '../../server/nodes/RelationshipNode.js'\n\nconst RelationshipComponent = React.lazy(() =>\n import('../components/RelationshipComponent.js').then((module) => ({\n default: module.RelationshipComponent,\n })),\n)\n\nfunction $relationshipElementToNode(domNode: HTMLDivElement): DOMConversionOutput | null {\n const id = domNode.getAttribute('data-lexical-relationship-id')\n const relationTo = domNode.getAttribute('data-lexical-relationship-relationTo')\n\n if (id != null && relationTo != null) {\n const node = $createRelationshipNode({\n relationTo,\n value: id,\n })\n return { node }\n }\n return null\n}\n\nexport class RelationshipNode extends RelationshipServerNode {\n static clone(node: RelationshipServerNode): RelationshipServerNode {\n return super.clone(node)\n }\n\n static getType(): string {\n return super.getType()\n }\n\n static importDOM(): DOMConversionMap<HTMLDivElement> | null {\n return {\n div: (domNode: HTMLDivElement) => {\n if (\n !domNode.hasAttribute('data-lexical-relationship-relationTo') ||\n !domNode.hasAttribute('data-lexical-relationship-id')\n ) {\n return null\n }\n return {\n conversion: $relationshipElementToNode,\n priority: 2,\n }\n },\n }\n }\n\n static importJSON(serializedNode: SerializedRelationshipNode): RelationshipNode {\n if (serializedNode.version === 1 && (serializedNode?.value as unknown as { id: string })?.id) {\n serializedNode.value = (serializedNode.value as unknown as { id: string }).id\n }\n\n const importedData: RelationshipData = {\n relationTo: serializedNode.relationTo,\n value: serializedNode.value,\n }\n const node = $createRelationshipNode(importedData)\n node.setFormat(serializedNode.format)\n return node\n }\n\n decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element {\n return (\n <RelationshipComponent\n className={config.theme.relationship ?? 'LexicalEditorTheme__relationship'}\n data={this.__data}\n format={this.__format}\n nodeKey={this.getKey()}\n />\n )\n }\n\n exportJSON(): SerializedRelationshipNode {\n return super.exportJSON()\n }\n}\n\nexport function $createRelationshipNode(data: RelationshipData): RelationshipNode {\n return new RelationshipNode({\n data,\n })\n}\n\nexport function $isRelationshipNode(\n node: LexicalNode | null | RelationshipNode | undefined,\n): node is RelationshipNode {\n return node instanceof RelationshipNode\n}\n", "import type { SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n ElementFormatType,\n LexicalEditor,\n LexicalNode,\n NodeKey,\n Spread,\n} from 'lexical'\nimport type { CollectionSlug, DataFromCollectionSlug } from 'payload'\nimport type { JSX } from 'react'\n\nimport { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\n\nexport type RelationshipData = {\n [TCollectionSlug in CollectionSlug]: {\n relationTo: TCollectionSlug\n value: DataFromCollectionSlug<TCollectionSlug> | number | string\n }\n}[CollectionSlug]\n\nexport type SerializedRelationshipNode = {\n children?: never // required so that our typed editor state doesn't automatically add children\n type: 'relationship'\n} & Spread<RelationshipData, SerializedDecoratorBlockNode>\n\nfunction $relationshipElementToServerNode(domNode: HTMLDivElement): DOMConversionOutput | null {\n const id = domNode.getAttribute('data-lexical-relationship-id')\n const relationTo = domNode.getAttribute('data-lexical-relationship-relationTo')\n\n if (id != null && relationTo != null) {\n const node = $createServerRelationshipNode({\n relationTo,\n value: id,\n })\n return { node }\n }\n return null\n}\n\nexport class RelationshipServerNode extends DecoratorBlockNode {\n __data: RelationshipData\n\n constructor({\n data,\n format,\n key,\n }: {\n data: RelationshipData\n format?: ElementFormatType\n key?: NodeKey\n }) {\n super(format, key)\n this.__data = data\n }\n\n static clone(node: RelationshipServerNode): RelationshipServerNode {\n return new this({\n data: node.__data,\n format: node.__format,\n key: node.__key,\n })\n }\n\n static getType(): string {\n return 'relationship'\n }\n\n static importDOM(): DOMConversionMap<HTMLDivElement> | null {\n return {\n div: (domNode: HTMLDivElement) => {\n if (\n !domNode.hasAttribute('data-lexical-relationship-relationTo') ||\n !domNode.hasAttribute('data-lexical-relationship-id')\n ) {\n return null\n }\n return {\n conversion: $relationshipElementToServerNode,\n priority: 2,\n }\n },\n }\n }\n\n static importJSON(serializedNode: SerializedRelationshipNode): RelationshipServerNode {\n if (serializedNode.version === 1 && (serializedNode?.value as unknown as { id: string })?.id) {\n serializedNode.value = (serializedNode.value as unknown as { id: string }).id\n }\n\n const importedData: RelationshipData = {\n relationTo: serializedNode.relationTo,\n value: serializedNode.value,\n }\n const node = $createServerRelationshipNode(importedData)\n node.setFormat(serializedNode.format)\n return node\n }\n\n static isInline(): false {\n return false\n }\n\n decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element | null {\n return null\n }\n\n exportDOM(): DOMExportOutput {\n const element = document.createElement('div')\n element.setAttribute('data-lexical-relationship-id', String(this.__data?.value))\n element.setAttribute('data-lexical-relationship-relationTo', this.__data?.relationTo)\n\n const text = document.createTextNode(this.getTextContent())\n element.append(text)\n return { element }\n }\n\n exportJSON(): SerializedRelationshipNode {\n return {\n ...super.exportJSON(),\n ...this.getData(),\n type: 'relationship',\n version: 2,\n }\n }\n\n getData(): RelationshipData {\n return this.getLatest().__data\n }\n\n getTextContent(): string {\n return `${this.__data?.relationTo} relation to ${this.__data?.value}`\n }\n\n setData(data: RelationshipData): void {\n const writable = this.getWritable()\n writable.__data = data\n }\n}\n\nexport function $createServerRelationshipNode(data: RelationshipData): RelationshipServerNode {\n return new RelationshipServerNode({\n data,\n })\n}\n\nexport function $isServerRelationshipNode(\n node: LexicalNode | null | RelationshipServerNode | undefined,\n): node is RelationshipServerNode {\n return node instanceof RelationshipServerNode\n}\n"],
5
+ "mappings": "AAEA,OAASA,iBAAAA,MAAqB,UAEvB,IAAMC,EAERD,EAAc,yCAAA,0CCInB,UAAYE,MAAW,QCKvB,OAASC,sBAAAA,MAA0B,8CAcnC,SAASC,EAAiCC,EAAuB,CAC/D,IAAMC,EAAKD,EAAQE,aAAa,8BAAA,EAC1BC,EAAaH,EAAQE,aAAa,sCAAA,EAExC,OAAID,GAAM,MAAQE,GAAc,KAKvB,CAAEC,KAJIC,EAA8B,C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eX,KACxB,EACMF,EAAOC,EAAwBc,CAAA,EACrCf,OAAAA,EAAKgB,UAAUH,EAAeI,MAAM,EAC7BjB,CACT,CAEAkB,SAASC,EAAuBC,EAAmC,CACjE,OACEC,EAAC/B,EAAA,CACCgC,UAAWF,EAAOG,MAAMC,cAAgB,mCACxCC,KAAM,KAAKC,OACXT,OAAQ,KAAKU,SACbC,QAAS,KAAKC,OAAM,GAG1B,CAEAC,YAAyC,CACvC,OAAO,MAAMA,WAAA,CACf,CACF,EAEO,SAAS7B,EAAwBwB,EAAsB,CAC5D,OAAO,IAAItB,EAAiB,CAC1BsB,KAAAA,CACF,CAAA,CACF,CAEO,SAASM,EACd/B,EAAuD,CAEvD,OAAOA,aAAgBG,CACzB",
6
+ "names": ["createCommand", "INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND", "React", "DecoratorBlockNode", "$relationshipElementToServerNode", "domNode", "id", "getAttribute", "relationTo", "node", "$createServerRelationshipNode", "value", "RelationshipServerNode", "__data", "constructor", "data", "format", "key", "clone", "__format", "__key", "getType", "importDOM", "div", "hasAttribute", "conversion", "priority", "importJSON", "serializedNode", "version", "importedData", "setFormat", "isInline", "decorate", "editor", "config", "exportDOM", "element", "document", "createElement", "setAttribute", "String", "text", "createTextNode", "getTextContent", "append", "exportJSON", "getData", "type", "getLatest", "setData", "writable", "getWritable", "RelationshipComponent", "lazy", "then", "module", "default", "$relationshipElementToNode", "domNode", "id", "getAttribute", "relationTo", "node", "$createRelationshipNode", "value", "RelationshipNode", "RelationshipServerNode", "clone", "getType", "importDOM", "div", "hasAttribute", "conversion", "priority", "importJSON", "serializedNode", "version", "importedData", "setFormat", "format", "decorate", "editor", "config", "_jsx", "className", "theme", "relationship", "data", "__data", "__format", "nodeKey", "getKey", "exportJSON", "$isRelationshipNode"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{b as E}from"./chunk-GD6LBQBJ.js";import{jsx as L}from"react/jsx-runtime";import{Drawer as tt}from"@payloadcms/ui";import"react";import{c as J}from"react/compiler-runtime";import{jsx as T,jsxs as K}from"react/jsx-runtime";import{Form as B,FormSubmit as G,RenderFields as V,useConfig as q,useDocumentInfo as Q,useFieldProps as X,useTranslation as Y}from"@payloadcms/ui";import{getFormState as I}from"@payloadcms/ui/shared";import{useEffect as Z,useState as N}from"react";import{v4 as z}from"uuid";var F=e=>{let t=J(27),{data:a,featureKey:r,fieldMapOverride:o,handleDrawerSubmit:c,schemaFieldsPathOverride:v,schemaPathSuffix:s}=e,{t:f}=Y(),{id:i}=Q(),{schemaPath:x}=X(),{config:n}=q(),[p,m]=N(!1),{field:O}=E(),{richTextComponentMap:w}=O,U=`lexical_internal_feature.${r}.fields${s?`.${s}`:""}`,l=v??`${x}.lexical_internal_feature.${r}${s?`.${s}`:""}`,g;t[0]!==o||t[1]!==w||t[2]!==U?(g=o??w?.get(U),t[0]=o,t[1]=w,t[2]=U,t[3]=g):g=t[3];let u=g,S,b;t[4]!==n.routes.api||t[5]!==n.serverURL||t[6]!==i||t[7]!==a||t[8]!==l?(S=()=>{(async()=>{let{state:d}=await I({apiRoute:n.routes.api,body:{id:i,data:a??{},operation:"update",schemaPath:l},serverURL:n.serverURL});m(d)})()},b=[n.routes.api,n.serverURL,l,i,a],t[4]=n.routes.api,t[5]=n.serverURL,t[6]=i,t[7]=a,t[8]=l,t[9]=S,t[10]=b):(S=t[9],b=t[10]),Z(S,b);let R;t[11]!==n.routes.api||t[12]!==n.serverURL||t[13]!==i||t[14]!==l?(R=async h=>{let{formState:d}=h,{state:H}=await I({apiRoute:n.routes.api,body:{id:i,formState:d,operation:"update",schemaPath:l},serverURL:n.serverURL});return H},t[11]=n.routes.api,t[12]=n.serverURL,t[13]=i,t[14]=l,t[15]=R):R=t[15];let y=R;if(p===!1)return null;let D;if(t[16]!==y||t[17]!==u||t[18]!==l||t[19]!==f||t[20]!==p||t[21]!==c){let h;t[23]!==u?(h=Array.isArray(u)?u:[],t[23]=u,t[24]=h):h=t[24];let d;t[25]!==u?(d=Array.isArray(u)?u:[],t[25]=u,t[26]=d):d=t[26],D=K(B,{beforeSubmit:[y],disableValidationOnSubmit:!0,fields:h,initialState:p,onChange:[y],onSubmit:c,uuid:z(),children:[T(V,{fields:d,forceRender:!0,path:"",readOnly:!1,schemaPath:l}),T(G,{children:f("fields:saveChanges")})]}),t[16]=y,t[17]=u,t[18]=l,t[19]=f,t[20]=p,t[21]=c,t[22]=D}else D=t[22];return D};var $t=({className:e,data:t,drawerSlug:a,drawerTitle:r,featureKey:o,fieldMapOverride:c,handleDrawerSubmit:v,schemaFieldsPathOverride:s,schemaPathSuffix:f})=>L(tt,{className:e,slug:a,title:r??"",children:L(F,{data:t,featureKey:o,fieldMapOverride:c,handleDrawerSubmit:v,schemaFieldsPathOverride:s,schemaPathSuffix:f})});import{c as et}from"react/compiler-runtime";import{useAuth as rt,useConfig as at,useEntityVisibility as nt}from"@payloadcms/ui";import*as A from"react";var ot=(e,t)=>e.filter(({slug:a,admin:{enableRichTextRelationship:r},upload:o})=>t?.visibleEntities.collections.includes(a)?t?.uploads?r&&!!o:o?!1:r:!1),Ft=e=>{let t=et(16),a,r,o;t[0]!==e?({children:o,uploads:a,...r}=e,t[0]=e,t[1]=a,t[2]=r,t[3]=o):(a=t[1],r=t[2],o=t[3]);let c=a===void 0?!1:a,{config:v}=at(),{collections:s}=v,{user:f}=rt(),{visibleEntities:i}=nt(),x;t[4]!==s||t[5]!==c||t[6]!==f||t[7]!==i?(x=()=>ot(s,{uploads:c,user:f,visibleEntities:i}).map(m=>{let{slug:O}=m;return O}),t[4]=s,t[5]=c,t[6]=f,t[7]=i,t[8]=x):x=t[8];let[n]=A.useState(x);if(!n.length)return null;let p;if(t[9]!==r||t[10]!==n||t[11]!==o){let m;t[13]!==r||t[14]!==n?(m={...r,enabledCollectionSlugs:n},t[13]=r,t[14]=n,t[15]=m):m=t[15],p=A.cloneElement(o,m),t[9]=r,t[10]=n,t[11]=o,t[12]=p}else p=t[12];return p};import{createCommand as it}from"lexical";var jt=it("INSERT_UPLOAD_WITH_DRAWER_COMMAND");import{jsx as ft}from"react/jsx-runtime";import M from"bson-objectid";import{$applyNodeReplacement as pt}from"lexical";import*as k from"react";import{jsx as st}from"react/jsx-runtime";import{DecoratorBlockNode as lt}from"@lexical/react/LexicalDecoratorBlockNode.js";import P from"bson-objectid";import{$applyNodeReplacement as ut}from"lexical";import"react";function $(e){return e.parentElement!=null&&e.parentElement.tagName==="LI"&&e.previousSibling===null&&e.getAttribute("aria-roledescription")==="checkbox"}function ct(e){if(e.hasAttribute("data-lexical-upload-relation-to")&&e.hasAttribute("data-lexical-upload-id")){let a=e.getAttribute("data-lexical-upload-id"),r=e.getAttribute("data-lexical-upload-relation-to");if(a!=null&&r!=null)return{node:j({data:{fields:{},relationTo:r,value:a}})}}let t=e;return t.src.startsWith("file:///")||$(t),null}var _=class extends lt{__data;constructor({data:t,format:a,key:r}){super(a,r),this.__data=t}static clone(t){return new this({data:t.__data,format:t.__format,key:t.__key})}static getType(){return"upload"}static importDOM(){return{img:t=>({conversion:ct,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new P.default().toHexString(),t.version=3);let a={id:t.id,fields:t.fields,relationTo:t.relationTo,value:t.value},r=j({data:a});return r.setFormat(t.format),r}static isInline(){return!1}decorate(){return st(RawUploadComponent,{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 a=this.getWritable();a.__data=t}updateDOM(){return!1}};function j({data:e}){return e?.id||(e.id=new P.default().toHexString()),ut(new _({data:e}))}var mt=k.lazy(()=>import("./component-6PBZ2U3Z.js").then(e=>({default:e.UploadComponent})));function dt(e){if(e.hasAttribute("data-lexical-upload-relation-to")&&e.hasAttribute("data-lexical-upload-id")){let a=e.getAttribute("data-lexical-upload-id"),r=e.getAttribute("data-lexical-upload-relation-to");if(a!=null&&r!=null)return{node:W({data:{fields:{},relationTo:r,value:a}})}}let t=e;return t.src.startsWith("file:///")||$(t),null}var C=class extends _{static clone(t){return super.clone(t)}static getType(){return super.getType()}static importDOM(){return{img:t=>({conversion:dt,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new M.default().toHexString(),t.version=3);let a={id:t.id,fields:t.fields,relationTo:t.relationTo,value:t.value},r=W({data:a});return r.setFormat(t.format),r}decorate(){return ft(mt,{data:this.__data,nodeKey:this.getKey()})}exportJSON(){return super.exportJSON()}};function W({data:e}){return e?.id||(e.id=new M.default().toHexString()),pt(new C({data:e}))}function Xt(e){return e instanceof C}export{$t as a,Ft as b,jt as c,C as d,W as e,Xt as f};
2
+ //# sourceMappingURL=chunk-WAMTSCVM.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/client/utils/EnabledRelationshipsCondition.tsx", "../../../src/features/upload/client/drawer/commands.ts", "../../../src/features/upload/client/nodes/UploadNode.tsx", "../../../src/features/upload/server/nodes/UploadNode.tsx"],
4
+ "sourcesContent": ["'use client'\nimport type { ClientField, 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 readonly className?: string\n readonly data?: Data\n readonly drawerSlug: string\n readonly drawerTitle?: string\n readonly featureKey: string\n readonly fieldMapOverride?: ClientField[]\n readonly handleDrawerSubmit: (fields: FormState, data: JsonObject) => void\n readonly schemaFieldsPathOverride?: string\n readonly 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 fieldMapOverride,\n handleDrawerSubmit,\n schemaFieldsPathOverride,\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 fieldMapOverride={fieldMapOverride}\n handleDrawerSubmit={handleDrawerSubmit}\n schemaFieldsPathOverride={schemaFieldsPathOverride}\n schemaPathSuffix={schemaPathSuffix}\n />\n </Drawer>\n )\n}\n", "'use client'\nimport type { ClientField, 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 fieldMapOverride,\n handleDrawerSubmit,\n schemaFieldsPathOverride,\n schemaPathSuffix,\n}) => {\n const { t } = useTranslation()\n const { id } = useDocumentInfo()\n const { schemaPath } = useFieldProps()\n const { config } = useConfig()\n const [initialState, setInitialState] = useState<false | FormState>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedFieldsPath = `lexical_internal_feature.${featureKey}.fields${schemaPathSuffix ? `.${schemaPathSuffix}` : ''}`\n const schemaFieldsPath =\n schemaFieldsPathOverride ??\n `${schemaPath}.lexical_internal_feature.${featureKey}${schemaPathSuffix ? `.${schemaPathSuffix}` : ''}`\n\n const fields: any =\n fieldMapOverride ?? (richTextComponentMap?.get(componentMapRenderedFieldsPath) as ClientField[]) // Field Schema\n\n useEffect(() => {\n const awaitInitialState = async () => {\n const { state } = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id: 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 = useCallback(\n async ({ formState: prevFormState }) => {\n const { state } = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id: id!,\n formState: prevFormState,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n })\n\n return state\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(fields) ? fields : []}\n initialState={initialState}\n onChange={[onChange]}\n onSubmit={handleDrawerSubmit}\n uuid={uuid()}\n >\n <RenderFields\n fields={Array.isArray(fields) ? fields : []}\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", "'use client'\nimport 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 {\n config: { collections },\n } = useConfig()\n const { user } = useAuth()\n const { visibleEntities } = useEntityVisibility()\n\n const [enabledCollectionSlugs] = React.useState(() =>\n filterRichTextCollections(collections, { uploads, user: 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", "'use client'\nimport type { SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'\nimport type { DOMConversionMap, DOMConversionOutput, LexicalNode, Spread } from 'lexical'\nimport type { JSX } from 'react'\n\nimport ObjectID from 'bson-objectid'\nimport { $applyNodeReplacement } from 'lexical'\nimport * as React from 'react'\n\nimport type { UploadData } from '../../server/nodes/UploadNode.js'\n\nimport { isGoogleDocCheckboxImg, UploadServerNode } from '../../server/nodes/UploadNode.js'\n\nconst RawUploadComponent = React.lazy(() =>\n import('../../client/component/index.js').then((module) => ({ default: module.UploadComponent })),\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 UploadServerNode {\n static clone(node: UploadServerNode): UploadServerNode {\n return super.clone(node)\n }\n\n static getType(): string {\n return super.getType()\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 decorate(): JSX.Element {\n return <RawUploadComponent data={this.__data} nodeKey={this.getKey()} />\n }\n\n exportJSON(): SerializedUploadNode {\n return super.exportJSON()\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", "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, DataFromCollectionSlug, 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\nexport type UploadData<TUploadExtraFieldsData extends JsonObject = JsonObject> = {\n [TCollectionSlug in CollectionSlug]: {\n fields: TUploadExtraFieldsData\n // Every lexical node that has sub-fields needs to have a unique ID. This is the ID of this upload node, not the ID of the linked upload document\n id: string\n relationTo: TCollectionSlug\n // Value can be just the document ID, or the full, populated document\n value: DataFromCollectionSlug<TCollectionSlug> | number | string\n }\n}[CollectionSlug]\n\nexport function 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 $convertUploadServerElement(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 = $createUploadServerNode({\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 UploadServerNode 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: UploadServerNode): UploadServerNode {\n return new this({\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: $convertUploadServerElement,\n priority: 0,\n }),\n }\n }\n\n static importJSON(serializedNode: SerializedUploadNode): UploadServerNode {\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 = $createUploadServerNode({ 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 $createUploadServerNode({\n data,\n}: {\n data: Omit<UploadData, 'id'> & Partial<Pick<UploadData, 'id'>>\n}): UploadServerNode {\n if (!data?.id) {\n data.id = new ObjectID.default().toHexString()\n }\n return $applyNodeReplacement(new UploadServerNode({ data: data as UploadData }))\n}\n\nexport function $isUploadServerNode(\n node: LexicalNode | null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AI,EAGL,CACC,OAAKA,GAAML,KACTK,EAAKL,GAAK,IAAIsB,EAAS3B,QAAO,EAAG4B,YAAW,GAEvCU,GAAsB,IAAIrB,EAAW,CAAEP,KAAMA,CAAmB,CAAA,CAAA,CACzE,CAEO,SAAS6B,GAAc/B,EAAoC,CAChE,OAAOA,aAAgBS,CACzB",
6
+ "names": ["Drawer", "c", "_c", "Form", "FormSubmit", "RenderFields", "useConfig", "useDocumentInfo", "useFieldProps", "useTranslation", "getFormState", "useEffect", "useState", "v4", "uuid", "DrawerContent", "t0", "$", "_c", "data", "featureKey", "fieldMapOverride", "handleDrawerSubmit", "schemaFieldsPathOverride", "schemaPathSuffix", "t", "useTranslation", "id", "useDocumentInfo", "schemaPath", "useFieldProps", "config", "useConfig", "initialState", "setInitialState", "useState", "field", "t1", "useEditorConfigContext", "richTextComponentMap", "componentMapRenderedFieldsPath", "schemaFieldsPath", "t2", "get", "fields", "t3", "state", "getFormState", "apiRoute", "routes", "api", "body", "operation", "serverURL", "t4", "useEffect", "t5", "t6", "formState", "prevFormState", "state_0", "onChange", "t7", "Array", "isArray", "t8", "_jsxs", "Form", "beforeSubmit", "disableValidationOnSubmit", "onSubmit", "uuid", "children", "_jsx", "RenderFields", "forceRender", "path", "readOnly", "FormSubmit", "FieldsDrawer", "className", "data", "drawerSlug", "drawerTitle", "featureKey", "fieldMapOverride", "handleDrawerSubmit", "schemaFieldsPathOverride", "schemaPathSuffix", "_jsx", "Drawer", "slug", "title", "DrawerContent", "c", "_c", "useAuth", "useConfig", "useEntityVisibility", "React", "filterRichTextCollections", "collections", "options", "filter", "slug", "admin", "enableRichTextRelationship", "upload", "visibleEntities", "includes", "uploads", "Boolean", "EnabledRelationshipsCondition", "props", "$", "t0", "rest", "children", "undefined", "config", "t1", "user", "t2", "map", "t3", "enabledCollectionSlugs", "useState", "length", "t4", "cloneElement", "createCommand", "INSERT_UPLOAD_WITH_DRAWER_COMMAND", "ObjectID", "$applyNodeReplacement", "React", "DecoratorBlockNode", "ObjectID", "$applyNodeReplacement", "isGoogleDocCheckboxImg", "img", "parentElement", "tagName", "previousSibling", "getAttribute", "$convertUploadServerElement", "domNode", "hasAttribute", "id", "relationTo", "node", "$createUploadServerNode", "data", "fields", "value", "src", "startsWith", "UploadServerNode", "__data", "constructor", "format", "key", "clone", "__format", "__key", "getType", "importDOM", "conversion", "priority", "importJSON", "serializedNode", "version", "default", "toHexString", "importedData", "setFormat", "isInline", "decorate", "_jsx", "RawUploadComponent", "nodeKey", "getKey", "exportDOM", "element", "document", "createElement", "setAttribute", "String", "exportJSON", "getData", "type", "getLatest", "setData", "writable", "getWritable", "updateDOM", "RawUploadComponent", "lazy", "then", "module", "default", "UploadComponent", "$convertUploadElement", "domNode", "hasAttribute", "id", "getAttribute", "relationTo", "node", "$createUploadNode", "data", "fields", "value", "img", "src", "startsWith", "isGoogleDocCheckboxImg", "UploadNode", "UploadServerNode", "clone", "getType", "importDOM", "conversion", "priority", "importJSON", "serializedNode", "version", "ObjectID", "toHexString", "importedData", "setFormat", "format", "decorate", "_jsx", "__data", "nodeKey", "getKey", "exportJSON", "$applyNodeReplacement", "$isUploadNode"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import{jsx as m}from"react/jsx-runtime";import{$applyNodeReplacement as d}from"lexical";import*as a from"react";import{addClassNamesToElement as u}from"@lexical/utils";import{$applyNodeReplacement as l,createCommand as c,DecoratorNode as s}from"lexical";var O=c("INSERT_HORIZONTAL_RULE_COMMAND"),r=class extends s{static clone(e){return new this(e.__key)}static getType(){return"horizontalrule"}static importDOM(){return{hr:()=>({conversion:p,priority:0})}}static importJSON(e){return i()}createDOM(e){let o=document.createElement("hr");return u(o,e.theme.hr),o}decorate(){return null}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 l(new r)}var N=a.lazy(()=>import("./component-ANB7VZLA.js").then(t=>({default:t.HorizontalRuleComponent}))),n=class extends r{static clone(e){return super.clone(e)}static getType(){return super.getType()}static importJSON(e){return f()}decorate(){return m(N,{nodeKey:this.__key})}exportJSON(){return super.exportJSON()}};function f(){return d(new n)}function E(t){return t instanceof n}export{O as a,n as b,f as c,E as d};
3
+ //# sourceMappingURL=chunk-XCEM47RI.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/horizontalRule/client/nodes/HorizontalRuleNode.tsx", "../../../src/features/horizontalRule/server/nodes/HorizontalRuleNode.tsx"],
4
+ "sourcesContent": ["'use client'\nimport type { DOMConversionOutput, LexicalNode, SerializedLexicalNode } from 'lexical'\n\nimport { $applyNodeReplacement } from 'lexical'\nimport * as React from 'react'\n\nimport type { SerializedHorizontalRuleNode } from '../../server/nodes/HorizontalRuleNode.js'\n\nimport { HorizontalRuleServerNode } from '../../server/nodes/HorizontalRuleNode.js'\n\nconst HorizontalRuleComponent = React.lazy(() =>\n import('../../client/component/index.js').then((module) => ({\n default: module.HorizontalRuleComponent,\n })),\n)\n\nexport class HorizontalRuleNode extends HorizontalRuleServerNode {\n static clone(node: HorizontalRuleServerNode): HorizontalRuleServerNode {\n return super.clone(node)\n }\n\n static getType(): string {\n return super.getType()\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 * 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 exportJSON(): SerializedLexicalNode {\n return super.exportJSON()\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", "import type {\n DOMConversionMap,\n DOMConversionOutput,\n DOMExportOutput,\n EditorConfig,\n LexicalCommand,\n LexicalNode,\n SerializedLexicalNode,\n Spread,\n} from 'lexical'\nimport type * as React from 'react'\n\nimport { addClassNamesToElement } from '@lexical/utils'\nimport { $applyNodeReplacement, createCommand, DecoratorNode } from 'lexical'\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 HorizontalRuleServerNode extends DecoratorNode<null | React.ReactElement> {\n static clone(node: HorizontalRuleServerNode): HorizontalRuleServerNode {\n return new this(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): HorizontalRuleServerNode {\n return $createHorizontalRuleServerNode()\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 decorate(): null | React.ReactElement {\n return null\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: $createHorizontalRuleServerNode() }\n}\n\nexport function $createHorizontalRuleServerNode(): HorizontalRuleServerNode {\n return $applyNodeReplacement(new HorizontalRuleServerNode())\n}\n\nexport function $isHorizontalRuleServerNode(\n node: LexicalNode | null | undefined,\n): node is HorizontalRuleServerNode {\n return node instanceof HorizontalRuleServerNode\n}\n"],
5
+ "mappings": "wCAGA,OAASA,yBAAAA,MAA6B,UACtC,UAAYC,MAAW,QCQvB,OAASC,0BAAAA,MAA8B,iBACvC,OAASC,yBAAAA,EAAuBC,iBAAAA,EAAeC,iBAAAA,MAAqB,UAa7D,IAAMC,EAAuDF,EAClE,gCAAA,EAUWG,EAAN,cAAuCF,CAAA,CAC5C,OAAOG,MAAMC,EAA0D,CACrE,OAAO,IAAI,KAAKA,EAAKC,KAAK,CAC5B,CAEA,OAAOC,SAAkB,CACvB,MAAO,gBACT,CAOA,OAAOC,WAAqC,CAC1C,MAAO,CACLC,GAAIA,KAAO,CACTC,WAAYC,EACZC,SAAU,CACZ,EACF,CACF,CAKA,OAAOC,WAAWC,EAAwE,CACxF,OAAOC,EAAA,CACT,CAKAC,UAAUC,EAAmC,CAC3C,IAAMC,EAAUC,SAASC,cAAc,IAAA,EACvCtB,OAAAA,EAAuBoB,EAASD,EAAOI,MAAMZ,EAAE,EACxCS,CACT,CAEAI,UAAsC,CACpC,OAAO,IACT,CAOAC,WAA6B,CAC3B,MAAO,CAAEL,QAASC,SAASC,cAAc,IAAA,CAAM,CACjD,CAIAI,YAAoC,CAClC,MAAO,CACLC,KAAM,iBACNC,QAAS,CACX,CACF,CAEAC,gBAAyB,CACvB,MAAO;CACT,CAEAC,UAAkB,CAChB,MAAO,EACT,CAEAC,WAAqB,CACnB,MAAO,EACT,CACF,EAEA,SAASlB,GAAA,CACP,MAAO,CAAEN,KAAMU,EAAA,CAAkC,CACnD,CAEO,SAASA,GAAA,CACd,OAAOhB,EAAsB,IAAII,CAAA,CACnC,CD3GA,IAAM2B,EAAgCC,OAAK,IACzC,OAAO,yBAAA,EAAmCC,KAAMC,IAAY,CAC1DC,QAASD,EAAOH,uBAClB,EAAA,CAAA,EAGWK,EAAN,cAAiCC,CAAA,CACtC,OAAOC,MAAMC,EAA0D,CACrE,OAAO,MAAMD,MAAMC,CAAA,CACrB,CAEA,OAAOC,SAAkB,CACvB,OAAO,MAAMA,QAAA,CACf,CAKA,OAAOC,WAAWC,EAAkE,CAClF,OAAOC,EAAA,CACT,CAKAC,UAA+B,CAC7B,OAAOC,EAACd,EAAA,CAAwBe,QAAS,KAAKC,OAChD,CAEAC,YAAoC,CAClC,OAAO,MAAMA,WAAA,CACf,CACF,EAMO,SAASC,GAAA,CACd,OAAOC,EAAsB,IAAIC,CAAA,CACnC,CAEO,SAASC,EACdC,EAAoC,CAEpC,OAAOA,aAAgBF,CACzB",
6
+ "names": ["$applyNodeReplacement", "React", "addClassNamesToElement", "$applyNodeReplacement", "createCommand", "DecoratorNode", "INSERT_HORIZONTAL_RULE_COMMAND", "HorizontalRuleServerNode", "clone", "node", "__key", "getType", "importDOM", "hr", "conversion", "$convertHorizontalRuleElement", "priority", "importJSON", "serializedNode", "$createHorizontalRuleServerNode", "createDOM", "config", "element", "document", "createElement", "theme", "decorate", "exportDOM", "exportJSON", "type", "version", "getTextContent", "isInline", "updateDOM", "HorizontalRuleComponent", "lazy", "then", "module", "default", "HorizontalRuleNode", "HorizontalRuleServerNode", "clone", "node", "getType", "importJSON", "serializedNode", "$createHorizontalRuleNode", "decorate", "_jsx", "nodeKey", "__key", "exportJSON", "$createHorizontalRuleNode", "$applyNodeReplacement", "HorizontalRuleNode", "$isHorizontalRuleNode", "node"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{a as O,b as T,c as U,f as A}from"./chunk-WAMTSCVM.js";import{b}from"./chunk-GD6LBQBJ.js";import{jsx as t,jsxs as d}from"react/jsx-runtime";import{useLexicalComposerContext as ee}from"@lexical/react/LexicalComposerContext.js";import{useLexicalNodeSelection as te}from"@lexical/react/useLexicalNodeSelection.js";import{mergeRegister as oe}from"@lexical/utils";import{getTranslation as P}from"@payloadcms/translations";import{Button as v,DrawerToggler as le,File as ae,formatDrawerSlug as re,useConfig as ie,useDocumentDrawer as se,useEditDepth as ne,useModal as de,usePayloadAPI as ce,useTranslation as ue}from"@payloadcms/ui";import{$getNodeByKey as I,$getSelection as me,$isNodeSelection as pe,CLICK_COMMAND as fe,COMMAND_PRIORITY_LOW as w,KEY_BACKSPACE_COMMAND as ge,KEY_DELETE_COMMAND as he}from"lexical";import{useCallback as g,useEffect as _e,useId as Ce,useReducer as De,useRef as be,useState as ve}from"react";var l="lexical-upload",K={depth:0},we=c=>{let{data:{fields:j,relationTo:N,value:n},nodeKey:a}=c;if(typeof n=="object")throw new Error("Upload value should be a string or number. The Lexical Upload component should not receive the populated value object.");let{config:{collections:B,routes:{api:F},serverURL:k}}=ie(),h=be(null),{closeModal:S}=de(),{uuid:W}=b(),Y=ne(),[o]=ee(),[r,_,$]=te(a),{editorConfig:z,field:C}=b(),{i18n:x,t:u}=ue(),[E,H]=De(e=>e+1,0),[i]=ve(()=>B.find(e=>e.slug===N)),q=Ce(),m=re({slug:"lexical-upload-drawer-"+W+q,depth:Y}),[G,J,{closeDrawer:R}]=se({id:n,collectionSlug:i.slug}),[{data:p},{setParams:y}]=ce(`${k}${F}/${i.slug}/${n}`,{initialParams:K}),M=p?.thumbnailURL||p?.url,Q=g(()=>{o.update(()=>{I(a)?.remove()})},[o,a]),V=g(e=>{y({...K,cacheBust:E}),H(),R()},[y,E,R]),D=g(e=>{let f=me();return r&&pe(f)&&(e.preventDefault(),o.update(()=>{f.getNodes().forEach(s=>{A(s)&&s.remove()})})),!1},[o,r]);_e(()=>oe(o.registerCommand(fe,e=>e.target===h.current||h.current?.contains(e.target)?(e.shiftKey?_(!r):r||($(),_(!0)),!0):!1,w),o.registerCommand(he,D,w),o.registerCommand(ge,D,w)),[$,o,r,a,D,_]);let L=z?.resolvedFeatureMap?.get("upload")?.sanitizedClientFeatureProps.collections?.[i.slug]?.hasExtraFields,X=g((e,f)=>{o.update(()=>{let s=I(a);if(s){let Z={...s.getData(),fields:f};s.setData(Z)}}),S(m)},[S,o,m,a]);return d("div",{className:[l,r&&`${l}--selected`].filter(Boolean).join(" "),contentEditable:!1,ref:h,children:[d("div",{className:`${l}__card`,children:[d("div",{className:`${l}__topRow`,children:[t("div",{className:`${l}__thumbnail`,children:M?t("img",{alt:p?.filename,"data-lexical-upload-id":n,"data-lexical-upload-relation-to":N,src:M}):t(ae,{})}),d("div",{className:`${l}__topRowRightPanel`,children:[t("div",{className:`${l}__collectionLabel`,children:P(i.labels.singular,x)}),o.isEditable()&&d("div",{className:`${l}__actions`,children:[L?t(le,{className:`${l}__upload-drawer-toggler`,disabled:C?.admin?.readOnly,slug:m,children:t(v,{buttonStyle:"icon-label",el:"div",icon:"edit",onClick:e=>{e.preventDefault()},round:!0,tooltip:u("fields:editRelationship")})}):null,t(v,{buttonStyle:"icon-label",disabled:C?.admin?.readOnly,el:"div",icon:"swap",onClick:()=>{o.dispatchCommand(U,{replace:{nodeKey:a}})},round:!0,tooltip:u("fields:swapUpload")}),t(v,{buttonStyle:"icon-label",className:`${l}__removeButton`,disabled:C?.admin?.readOnly,icon:"x",onClick:e=>{e.preventDefault(),Q()},round:!0,tooltip:u("fields:removeUpload")})]})]})]}),t("div",{className:`${l}__bottomRow`,children:t(J,{className:`${l}__doc-drawer-toggler`,children:t("strong",{children:p?.filename})})})]}),n?t(G,{onSave:V}):null,L?t(O,{data:j,drawerSlug:m,drawerTitle:u("general:editLabel",{label:P(i.labels.singular,x)}),featureKey:"upload",handleDrawerSubmit:X,schemaPathSuffix:i.slug}):null]})},Ie=c=>t(T,{...c,uploads:!0,children:t(we,{...c})});export{Ie as UploadComponent};
2
+ //# sourceMappingURL=component-6PBZ2U3Z.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/upload/client/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 formatDrawerSlug,\n useConfig,\n useDocumentDrawer,\n useEditDepth,\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, useId, useReducer, useRef, useState } from 'react'\n\nimport type { BaseClientFeatureProps } from '../../../typesClient.js'\nimport type { UploadData } from '../../server/nodes/UploadNode.js'\nimport type { UploadFeaturePropsClient } from '../feature.client.js'\nimport type { 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/client/utils/EnabledRelationshipsCondition.js'\nimport { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from '../drawer/commands.js'\nimport { $isUploadNode } from '../nodes/UploadNode.js'\nimport './index.scss'\n\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 if (typeof value === 'object') {\n throw new Error(\n 'Upload value should be a string or number. The Lexical Upload component should not receive the populated value object.',\n )\n }\n\n const {\n config: {\n collections,\n routes: { api },\n serverURL,\n },\n } = useConfig()\n const uploadRef = useRef<HTMLDivElement | null>(null)\n const { closeModal } = useModal()\n const { uuid } = useEditorConfigContext()\n const editDepth = useEditDepth()\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 componentID = useId()\n\n const drawerSlug = formatDrawerSlug({\n slug: `lexical-upload-drawer-` + uuid + componentID, // There can be multiple upload components, each with their own drawer, in one single editor => separate them by componentID\n depth: editDepth,\n })\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 const deleteSelection = $getSelection()\n if (isSelected && $isNodeSelection(deleteSelection)) {\n event.preventDefault()\n editor.update(() => {\n deleteSelection.getNodes().forEach((node) => {\n if ($isUploadNode(node)) {\n node.remove()\n }\n })\n })\n }\n return false\n },\n [editor, isSelected],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<MouseEvent>(\n CLICK_COMMAND,\n (event: MouseEvent) => {\n // Check if uploadRef.target or anything WITHIN uploadRef.target was clicked\n if (\n event.target === uploadRef.current ||\n uploadRef.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 COMMAND_PRIORITY_LOW,\n ),\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 const hasExtraFields = (\n editorConfig?.resolvedFeatureMap?.get('upload')\n ?.sanitizedClientFeatureProps as BaseClientFeatureProps<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: null | UploadNode = $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?.admin?.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?.admin?.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?.admin?.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} /> : null}\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": "+JAGA,OAASA,6BAAAA,OAAiC,2CAC1C,OAASC,2BAAAA,OAA+B,4CACxC,OAASC,iBAAAA,OAAqB,iBAC9B,OAASC,kBAAAA,MAAsB,2BAC/B,OACEC,UAAAA,EACAC,iBAAAA,GACAC,QAAAA,GACAC,oBAAAA,GACAC,aAAAA,GACAC,qBAAAA,GACAC,gBAAAA,GACAC,YAAAA,GACAC,iBAAAA,GACAC,kBAAAA,OACK,iBACP,OACEC,iBAAAA,EACAC,iBAAAA,GACAC,oBAAAA,GACAC,iBAAAA,GACAC,wBAAAA,EACAC,yBAAAA,GACAC,sBAAAA,OACK,UACP,OAAgBC,eAAAA,EAAaC,aAAAA,GAAWC,SAAAA,GAAOC,cAAAA,GAAYC,UAAAA,GAAQC,YAAAA,OAAgB,QAcnF,IAAMC,EAAY,iBAEZC,EAAgB,CACpBC,MAAO,CACT,EAOMC,GAAqCC,GAAA,CACzC,GAAM,CACJC,KAAM,CAAEC,OAAAA,EAAQC,WAAAA,EAAYC,MAAAA,CAAK,EACjCC,QAAAA,CAAO,EACLL,EAEJ,GAAI,OAAOI,GAAU,SACnB,MAAM,IAAIE,MACR,wHAAA,EAIJ,GAAM,CACJC,OAAQ,CACNC,YAAAA,EACAC,OAAQ,CAAEC,IAAAA,CAAG,EACbC,UAAAA,CAAS,CACV,EACCC,GAAA,EACEC,EAAYC,GAA8B,IAAA,EAC1C,CAAEC,WAAAA,CAAU,EAAKC,GAAA,EACjB,CAAEC,KAAAA,CAAI,EAAKC,EAAA,EACXC,EAAYC,GAAA,EACZ,CAACC,CAAA,EAAUC,GAAA,EACX,CAACC,EA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D,IAAmB,KACnDsB,EACCiB,EAACyB,EAAA,CACC5H,KAAMC,EACNyC,WAAYA,EACZmF,YAAahG,EAAE,oBAAqB,CAClCiG,MAAOtB,EAAerE,EAAkBsE,OAAOC,SAAU9E,CAAA,CAC3D,CAAA,EACAmG,WAAW,SACXC,mBAAoB1C,EACpB2C,iBAAkB9F,EAAkBI,OAEpC,IAAA,GAGV,EAEa2F,GAAmBnI,GAE5BoG,EAACgC,EAAA,CAA+B,GAAGpI,EAAOqI,QAAO,YAC/CjC,EAACrG,GAAA,CAAW,GAAGC",
6
+ "names": ["useLexicalComposerContext", "useLexicalNodeSelection", "mergeRegister", "getTranslation", "Button", "DrawerToggler", "File", "formatDrawerSlug", "useConfig", "useDocumentDrawer", "useEditDepth", "useModal", "usePayloadAPI", "useTranslation", "$getNodeByKey", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "useCallback", "useEffect", "useId", "useReducer", "useRef", "useState", "baseClass", "initialParams", "depth", "Component", "props", "data", "fields", "relationTo", "value", "nodeKey", "Error", "config", "collections", "routes", "api", "serverURL", "useConfig", "uploadRef", "useRef", "closeModal", "useModal", "uuid", "useEditorConfigContext", "editDepth", "useEditDepth", "editor", "useLexicalComposerContext", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "editorConfig", "field", "i18n", "t", "useTranslation", "cacheBust", "dispatchCacheBust", "useReducer", "state", "relatedCollection", "useState", "find", "coll", "slug", "componentID", "useId", "drawerSlug", "formatDrawerSlug", "DocumentDrawer", "DocumentDrawerToggler", "closeDrawer", "useDocumentDrawer", "id", "collectionSlug", "setParams", "usePayloadAPI", "thumbnailSRC", "thumbnailURL", "url", "removeUpload", "useCallback", "update", "$getNodeByKey", "remove", "updateUpload", "$onDelete", "event", "deleteSelection", "$getSelection", "$isNodeSelection", "preventDefault", "getNodes", "forEach", "node", "$isUploadNode", "useEffect", "mergeRegister", "registerCommand", "CLICK_COMMAND", "target", "current", "contains", "shiftKey", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "hasExtraFields", "resolvedFeatureMap", "get", "sanitizedClientFeatureProps", "onExtraFieldsDrawerSubmit", "_", "uploadNode", "newData", "getData", "setData", "_jsxs", "className", "filter", "Boolean", "join", "contentEditable", "ref", "_jsx", "alt", "filename", "src", "File", "getTranslation", "labels", "singular", "isEditable", "DrawerToggler", "disabled", "admin", "readOnly", "Button", "buttonStyle", "el", "icon", "onClick", "e", "round", "tooltip", "dispatchCommand", "INSERT_UPLOAD_WITH_DRAWER_COMMAND", "replace", "onSave", "FieldsDrawer", "drawerTitle", "label", "featureKey", "handleDrawerSubmit", "schemaPathSuffix", "UploadComponent", "EnabledRelationshipsCondition", "uploads"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{c as w}from"./chunk-6LZZDOEO.js";import{b as T}from"./chunk-GD6LBQBJ.js";import{jsx as f,jsxs as se}from"react/jsx-runtime";import{Collapsible as ie,Form as ne,Pill as ae,RenderComponent as re,SectionTitle as ce,ShimmerEffect as de,useConfig as me,useDocumentInfo as ue,useFieldProps as fe,useFormSubmitted as pe,useTranslation as be}from"@payloadcms/ui";import{useCallback as he,useEffect as ke,useMemo as ye,useState as _e}from"react";import{getTranslation as Ce}from"@payloadcms/translations";import{getFormState as K}from"@payloadcms/ui/shared";import{v4 as ve}from"uuid";import{jsx as y,jsxs as B}from"react/jsx-runtime";import{useLexicalComposerContext as H}from"@lexical/react/LexicalComposerContext.js";import{getTranslation as W}from"@payloadcms/translations";import{Button as z,Collapsible as G,ErrorPill as J,Pill as Q,RenderComponent as X,RenderFields as Y,SectionTitle as Z,useDocumentInfo as ee,useFormSubmitted as oe,useTranslation as te}from"@payloadcms/ui";import{dequal as le}from"dequal/lite";import{$getNodeByKey as U}from"lexical";import A,{useCallback as E}from"react";import{c as V}from"react/compiler-runtime";import{useAllFormFields as D}from"@payloadcms/ui";import{reduceFieldsToValues as M}from"payload/shared";import{useEffect as q}from"react";function j({fields:i}){for(let e in i){let o=i[e];Array.isArray(o.rows)&&"value"in o&&(o.disableFormData=!0)}return i}var O=i=>{let e=V(8),{onChange:o}=i,[l]=D(),d,s;e[0]!==l?(s=j({fields:l}),d=M(s,!0),e[0]=l,e[1]=d,e[2]=s):(d=e[1],s=e[2]);let m=d,t,a;return e[3]!==o||e[4]!==s||e[5]!==m?(t=()=>{o&&o({fullFieldsWithValues:s,newFormData:m})},a=[m,o,s],e[3]=o,e[4]=s,e[5]=m,e[6]=t,e[7]=a):(t=e[6],a=e[7]),q(t,a),null};function L(i){for(let e in i){let o=i[e];Array.isArray(o)&&!o?.length?delete i[e]:o&&typeof o=="object"?L(o):o==null&&delete i[e]}}var I=i=>{let{baseClass:e,clientBlock:o,field:l,formSchema:d,nodeKey:s,schemaPath:m}=i,{formData:t}=i,{i18n:a}=te(),[u]=H(),{getDocPreferences:x,setDocFieldPreferences:P}=ee(),[p,N]=A.useState(()=>{let r=!1;return x().then(c=>{let k=c?.fields[l.name]?.collapsed;k&&k.includes(t.id)&&(r=!0,N(!0))}),r}),F=oe(),[n,S]=A.useState(0),C=F&&n>0,$=[`${e}__row`,C?`${e}__row--has-errors`:`${e}__row--no-errors`].filter(Boolean).join(" "),R=E(({fullFieldsWithValues:r,newFormData:c})=>{if(c.id=t.id,c.blockType=t.blockType,L(c),L(t),le(t,c)||setTimeout(()=>{u.update(()=>{let h=U(s);h&&w(h)&&(t=c,h.setFields(c))})},0),F){let h=0;for(let k of Object.values(r))k?.valid===!1&&h++;S(h)}},[u,s,F,t]),v=E(r=>{x().then(c=>{let k=c?.fields[l.name]?.collapsed,g=k&&k?.length?k:[];r?g.includes(t.id)||g.push(t.id):g.includes(t.id)&&g.splice(g.indexOf(t.id),1),P(l.name,{collapsed:g,hello:"hi"})})},[x,l.name,P,t.id]),b=E(()=>{u.update(()=>{U(s)?.remove()})},[u,s]);return B(A.Fragment,{children:[y(G,{className:$,collapsibleStyle:C?"error":"default",header:o?.admin?.components?.Label?y(X,{clientProps:{blockKind:"lexicalBlock",formData:t},mappedComponent:o.admin.components.Label}):B("div",{className:`${e}__block-header`,children:[B("div",{children:[y(Q,{className:`${e}__block-pill ${e}__block-pill-${t?.blockType}`,pillStyle:"white",children:typeof o?.labels?.singular=="string"?W(o?.labels.singular,a):o.slug}),y(Z,{path:"blockName",readOnly:l?.admin?.readOnly||!1}),C&&y(J,{count:n,i18n:a,withMessage:!0})]}),u.isEditable()&&y(z,{buttonStyle:"icon-label",className:`${e}__removeButton`,disabled:l?.admin?.readOnly,icon:"x",onClick:r=>{r.preventDefault(),b()},round:!0,tooltip:"Remove Block"})]}),isCollapsed:p,onToggle:r=>{v(r),N(r)},children:y(Y,{className:`${e}__fields`,fields:d,forceRender:!0,margins:"small",path:"",readOnly:!1,schemaPath:m})},0),y(O,{onChange:R})]})};var _="lexical-block",Ge=i=>{let{formData:e,nodeKey:o}=i,{config:l}=me(),d=pe(),{id:s}=ue(),{path:m,schemaPath:t}=fe(),{field:a}=T(),[u,x]=_e(!1),{field:{richTextComponentMap:P}}=T(),p=`${t}.lexical_internal_feature.blocks.lexical_blocks.lexical_blocks.${e.blockType}`,n=(P?.get("lexical_internal_feature.blocks.fields.lexical_blocks")[0]).blocks.find(v=>v.slug===e.blockType);ke(()=>{e&&(async()=>{let{state:b}=await K({apiRoute:l.routes.api,body:{id:s,data:e,operation:"update",schemaPath:p},serverURL:l.serverURL});b&&(b.blockName={initialValue:"",passesCondition:!0,valid:!0,value:e.blockName},x(b))})()},[l.routes.api,l.serverURL,p,s]);let S=he(async({formState:v})=>{let{state:b}=await K({apiRoute:l.routes.api,body:{id:s,formState:v,operation:"update",schemaPath:p},serverURL:l.serverURL});return b.blockName={initialValue:"",passesCondition:!0,valid:!0,value:e.blockName},b},[l.routes.api,l.serverURL,s,p,e.blockName]),{i18n:C}=be(),$=[`${_}__row`,`${_}__row--no-errors`].filter(Boolean).join(" "),R=ye(()=>n&&u!==!1?f(ne,{beforeSubmit:[S],fields:n.fields,initialState:u,onChange:[S],submitted:d,uuid:ve(),children:f(I,{baseClass:_,clientBlock:n,field:a,formData:e,formSchema:n.fields,nodeKey:o,path:`${m}.lexical_internal_feature.blocks.${e.blockType}`,schemaPath:p})}):f(ie,{className:$,collapsibleStyle:"default",header:n?.admin?.components?.Label?f(re,{clientProps:{blockKind:"lexicalBlock",formData:e},mappedComponent:n.admin.components.Label}):f("div",{className:`${_}__block-header`,children:se("div",{children:[f(ae,{className:`${_}__block-pill ${_}__block-pill-${e?.blockType}`,pillStyle:"white",children:n&&typeof n.labels?.singular=="string"?Ce(n.labels.singular,C):n?.slug}),f(ce,{path:"blockName",readOnly:a?.admin?.readOnly||!1})]})}),children:f(de,{height:"35vh"})},0),[n,u,S,d,a,o,m,p,$,C]);return f("div",{className:_+" "+_+"-"+e.blockType,children:R})};export{Ge as BlockComponent};
2
+ //# sourceMappingURL=component-6Y2K2RNP.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/blocks/client/component/index.tsx", "../../../src/features/blocks/client/component/BlockContent.tsx", "../../../src/features/blocks/client/component/FormSavePlugin.tsx", "../../../src/features/blocks/client/component/removeEmptyArrayValues.ts"],
4
+ "sourcesContent": ["'use client'\n\nimport {\n Collapsible,\n Form,\n Pill,\n RenderComponent,\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\nconst baseClass = 'lexical-block'\nimport type { BlocksFieldClient, FormState } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { getFormState } from '@payloadcms/ui/shared'\nimport { v4 as uuid } from 'uuid'\n\nimport type { BlockFields } from '../../server/nodes/BlocksNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { BlockContent } from './BlockContent.js'\nimport './index.scss'\n\ntype Props = {\n readonly children?: React.ReactNode\n readonly formData: BlockFields\n readonly nodeKey: string\n}\n\nexport const BlockComponent: React.FC<Props> = (props) => {\n const { formData, nodeKey } = props\n const { config } = useConfig()\n const submitted = useFormSubmitted()\n const { id } = useDocumentInfo()\n const { path, schemaPath } = useFieldProps()\n const { field: parentLexicalRichTextField } = useEditorConfigContext()\n\n const [initialState, setInitialState] = useState<false | FormState>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const schemaFieldsPath = `${schemaPath}.lexical_internal_feature.blocks.lexical_blocks.lexical_blocks.${formData.blockType}`\n\n const componentMapRenderedBlockPath = `lexical_internal_feature.blocks.fields.lexical_blocks`\n const blocksField: BlocksFieldClient = richTextComponentMap?.get(componentMapRenderedBlockPath)[0]\n\n const clientBlock = blocksField.blocks.find((block) => block.slug === formData.blockType)\n\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 })\n\n if (state) {\n state.blockName = {\n initialValue: '',\n passesCondition: true,\n valid: true,\n value: formData.blockName,\n }\n\n setInitialState(state)\n }\n }\n\n if (formData) {\n void awaitInitialState()\n }\n }, [config.routes.api, config.serverURL, schemaFieldsPath, id]) // DO NOT ADD FORMDATA HERE! Adding formData will kick you out of sub block editors while writing.\n\n const onChange = useCallback(\n async ({ formState: prevFormState }) => {\n const { state: 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 formState.blockName = {\n initialValue: '',\n passesCondition: true,\n valid: true,\n value: formData.blockName,\n }\n\n return formState\n },\n\n [config.routes.api, config.serverURL, id, schemaFieldsPath, formData.blockName],\n )\n const { i18n } = useTranslation()\n\n const classNames = [`${baseClass}__row`, `${baseClass}__row--no-errors`].filter(Boolean).join(' ')\n\n // Memoized Form JSX\n const formContent = useMemo(() => {\n return clientBlock && initialState !== false ? (\n <Form\n beforeSubmit={[onChange]}\n fields={clientBlock.fields}\n initialState={initialState}\n onChange={[onChange]}\n submitted={submitted}\n uuid={uuid()}\n >\n <BlockContent\n baseClass={baseClass}\n clientBlock={clientBlock}\n field={parentLexicalRichTextField}\n formData={formData}\n formSchema={clientBlock.fields}\n nodeKey={nodeKey}\n path={`${path}.lexical_internal_feature.blocks.${formData.blockType}`}\n schemaPath={schemaFieldsPath}\n />\n </Form>\n ) : (\n <Collapsible\n className={classNames}\n collapsibleStyle=\"default\"\n header={\n clientBlock?.admin?.components?.Label ? (\n <RenderComponent\n clientProps={{ blockKind: 'lexicalBlock', formData }}\n mappedComponent={clientBlock.admin.components.Label}\n />\n ) : (\n <div className={`${baseClass}__block-header`}>\n <div>\n <Pill\n className={`${baseClass}__block-pill ${baseClass}__block-pill-${formData?.blockType}`}\n pillStyle=\"white\"\n >\n {clientBlock && typeof clientBlock.labels?.singular === 'string'\n ? getTranslation(clientBlock.labels.singular, i18n)\n : clientBlock?.slug}\n </Pill>\n <SectionTitle\n path=\"blockName\"\n readOnly={parentLexicalRichTextField?.admin?.readOnly || false}\n />\n </div>\n </div>\n )\n }\n key={0}\n >\n <ShimmerEffect height=\"35vh\" />\n </Collapsible>\n )\n }, [\n clientBlock,\n initialState,\n onChange,\n submitted,\n parentLexicalRichTextField,\n nodeKey,\n path,\n schemaFieldsPath,\n classNames,\n i18n,\n ])\n\n return <div className={baseClass + ' ' + baseClass + '-' + formData.blockType}>{formContent}</div>\n}\n", "'use client'\nimport type { ClientBlock, ClientField, CollapsedPreferences, FormState } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { getTranslation } from '@payloadcms/translations'\nimport {\n Button,\n Collapsible,\n ErrorPill,\n Pill,\n RenderComponent,\n RenderFields,\n SectionTitle,\n useDocumentInfo,\n useFormSubmitted,\n useTranslation,\n} from '@payloadcms/ui'\nimport { dequal } from 'dequal/lite'\nimport { $getNodeByKey } from 'lexical'\nimport React, { useCallback } from 'react'\n\nimport type { LexicalRichTextFieldProps } from '../../../../types.js'\nimport type { BlockFields } from '../../server/nodes/BlocksNode.js'\n\nimport { $isBlockNode } from '../nodes/BlocksNode.js'\nimport { FormSavePlugin } from './FormSavePlugin.js'\n\ntype Props = {\n baseClass: string\n clientBlock: ClientBlock\n field: LexicalRichTextFieldProps['field']\n formData: BlockFields\n formSchema: ClientField[]\n nodeKey: string\n path: string\n schemaPath: string\n}\n\n// Recursively remove all undefined values from even being present in formData, as they will\n// cause isDeepEqual to return false if, for example, formData has a key that fields.data\n// does not have, even if it's undefined.\n// Currently, this happens if a block has another sub-blocks field. Inside formData, that sub-blocks field has an undefined blockName property.\n// Inside of fields.data however, that sub-blocks blockName property does not exist at all.\nfunction removeUndefinedAndNullAndEmptyArraysRecursively(obj: object) {\n for (const key in obj) {\n const value = obj[key]\n if (Array.isArray(value) && !value?.length) {\n delete obj[key]\n } else if (value && typeof value === 'object') {\n removeUndefinedAndNullAndEmptyArraysRecursively(value)\n } else if (value === undefined || value === null) {\n delete obj[key]\n }\n }\n}\n\n/**\n * The actual content of the Block. This should be INSIDE a Form component,\n * scoped to the block. All format operations in here are thus scoped to the block's form, and\n * not the whole document.\n */\nexport const BlockContent: React.FC<Props> = (props) => {\n const { baseClass, clientBlock, field, formSchema, nodeKey, schemaPath } = props\n let { formData } = 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: BlockFields\n }) => {\n newFormData.id = formData.id\n newFormData.blockType = formData.blockType\n\n removeUndefinedAndNullAndEmptyArraysRecursively(newFormData)\n removeUndefinedAndNullAndEmptyArraysRecursively(formData)\n\n // Only update if the data has actually changed. Otherwise, we may be triggering an unnecessary value change,\n // which would trigger the \"Leave without saving\" dialog unnecessarily\n if (!dequal(formData, newFormData)) {\n // Running this in the next tick in the meantime fixes this issue: https://github.com/payloadcms/payload/issues/4108\n // I don't know why. When this is called immediately, it might focus out of a nested lexical editor field if an update is made there.\n // My hypothesis is that the nested editor might not have fully finished its update cycle yet. By updating in the next tick, we\n // ensure that the nested editor has finished its update cycle before we update the block node.\n setTimeout(() => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey)\n if (node && $isBlockNode(node)) {\n formData = newFormData\n node.setFields(newFormData)\n }\n })\n }, 0)\n }\n\n // update error count\n if (hasSubmitted) {\n let rowErrorCount = 0\n for (const formField of Object.values(fullFieldsWithValues)) {\n if (formField?.valid === false) {\n rowErrorCount++\n }\n }\n setErrorCount(rowErrorCount)\n }\n },\n [editor, nodeKey, hasSubmitted, formData],\n )\n\n const onCollapsedChange = useCallback(\n (changedCollapsed: boolean) => {\n void getDocPreferences().then((currentDocPreferences) => {\n const currentFieldPreferences = currentDocPreferences?.fields[field.name]\n\n const collapsedArray = currentFieldPreferences?.collapsed\n\n const newCollapsed: CollapsedPreferences =\n collapsedArray && collapsedArray?.length ? collapsedArray : []\n\n if (changedCollapsed) {\n if (!newCollapsed.includes(formData.id)) {\n newCollapsed.push(formData.id)\n }\n } else {\n if (newCollapsed.includes(formData.id)) {\n newCollapsed.splice(newCollapsed.indexOf(formData.id), 1)\n }\n }\n\n setDocFieldPreferences(field.name, {\n collapsed: newCollapsed,\n hello: 'hi',\n })\n })\n },\n [getDocPreferences, field.name, setDocFieldPreferences, formData.id],\n )\n\n const removeBlock = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey)?.remove()\n })\n }, [editor, nodeKey])\n\n return (\n <React.Fragment>\n <Collapsible\n className={classNames}\n collapsibleStyle={fieldHasErrors ? 'error' : 'default'}\n header={\n clientBlock?.admin?.components?.Label ? (\n <RenderComponent\n clientProps={{ blockKind: 'lexicalBlock', formData }}\n mappedComponent={clientBlock.admin.components.Label}\n />\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 clientBlock?.labels?.singular === 'string'\n ? getTranslation(clientBlock?.labels.singular, i18n)\n : clientBlock.slug}\n </Pill>\n <SectionTitle path=\"blockName\" readOnly={field?.admin?.readOnly || false} />\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n {editor.isEditable() && (\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={field?.admin?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeBlock()\n }}\n round\n tooltip=\"Remove Block\"\n />\n )}\n </div>\n )\n }\n isCollapsed={isCollapsed}\n key={0}\n onToggle={(incomingCollapsedState) => {\n onCollapsedChange(incomingCollapsedState)\n setIsCollapsed(incomingCollapsedState)\n }}\n >\n <RenderFields\n className={`${baseClass}__fields`}\n fields={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", "'use client'\nimport type { Data, FormState } from 'payload'\nimport type React from 'react'\n\nimport { useAllFormFields } from '@payloadcms/ui'\nimport { reduceFieldsToValues } from 'payload/shared'\nimport { useEffect } from 'react'\n\nimport { removeEmptyArrayValues } from './removeEmptyArrayValues.js'\n\ntype Props = {\n onChange?: ({\n fullFieldsWithValues,\n newFormData,\n }: {\n fullFieldsWithValues: FormState\n newFormData: Data\n }) => void\n}\n\nexport const FormSavePlugin: React.FC<Props> = (props) => {\n const { onChange } = props\n\n const [_fields] = useAllFormFields()\n\n const fields = removeEmptyArrayValues({ fields: _fields })\n\n // Pass in fields, and indicate if you'd like to \"unflatten\" field data.\n // The result below will reflect the data stored in the form at the given time\n const newFormData = reduceFieldsToValues(fields, true)\n\n useEffect(() => {\n if (onChange) {\n onChange({ fullFieldsWithValues: fields, newFormData })\n }\n }, [newFormData, onChange, fields])\n\n return null\n}\n", "'use client'\nimport type { FormState } from 'payload'\n\n/**\n * By default, if an array field is empty, it will be included in the form state with a value of 0.\n * We do not need this behavior here, By setting `disableFormData` to true, we can prevent the field from being included in the form state\n * like that.\n * @param fields form state\n */\nexport function removeEmptyArrayValues({ fields }: { fields: FormState }): FormState {\n for (const key in fields) {\n const field = fields[key]\n if (Array.isArray(field.rows) && 'value' in field) {\n field.disableFormData = true\n }\n }\n return fields\n}\n"],
5
+ "mappings": "gJAEA,OACEA,eAAAA,GACAC,QAAAA,GACAC,QAAAA,GACAC,mBAAAA,GACAC,gBAAAA,GACAC,iBAAAA,GACAC,aAAAA,GACAC,mBAAAA,GACAC,iBAAAA,GACAC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AIQ,UAAW,GAAGhE,CAAA,0BACjB0E,GAAC,MAAA,WACClB,EAACmB,GAAA,CACCX,UAAW,GAAGhE,CAAA,gBAAyBA,CAAA,gBAAyBG,GAAUmB,SAAA,GAC1EsD,UAAU,iBAETrD,GAAe,OAAOA,EAAYsD,QAAQC,UAAa,SACpDC,GAAexD,EAAYsD,OAAOC,SAAU9B,CAAA,EAC5CzB,GAAaK,OAEnB4B,EAACwB,GAAA,CACCrE,KAAK,YACLsE,SAAUlE,GAA4BoD,OAAOc,UAAY,mBAQnEzB,EAAC0B,GAAA,CAAcC,OAAO,UAFjB,CAAA,EAKR,CACD5D,EACAN,EACA2B,EACArC,EACAQ,EACAX,EACAO,EACAU,EACA6B,EACAF,CAAA,CACD,EAED,OAAOQ,EAAC,MAAA,CAAIQ,UAAWhE,EAAY,IAAMA,EAAY,IAAMG,EAASmB,mBAAYgC,GAClF",
6
+ "names": ["Collapsible", "Form", "Pill", "RenderComponent", "SectionTitle", "ShimmerEffect", "useConfig", "useDocumentInfo", "useFieldProps", "useFormSubmitted", "useTranslation", "useCallback", "useEffect", "useMemo", "useState", "getTranslation", "getFormState", "v4", "uuid", "useLexicalComposerContext", "getTranslation", "Button", "Collapsible", "ErrorPill", "Pill", "RenderComponent", "RenderFields", "SectionTitle", "useDocumentInfo", "useFormSubmitted", "useTranslation", "dequal", "$getNodeByKey", "React", "useCallback", "c", "_c", "useAllFormFields", "reduceFieldsToValues", "useEffect", "removeEmptyArrayValues", "fields", "key", "field", "Array", "isArray", "rows", "disableFormData", "FormSavePlugin", "props", "$", "_c", "onChange", "_fields", "useAllFormFields", "t0", "fields", "removeEmptyArrayValues", "reduceFieldsToValues", "newFormData", "t1", "t2", "fullFieldsWithValues", "useEffect", "removeUndefinedAndNullAndEmptyArraysRecursively", "obj", "key", "value", "Array", "isArray", "length", "BlockContent", "props", "baseClass", "clientBlock", "field", "formSchema", "nodeKey", "schemaPath", "formData", "i18n", "useTranslation", "editor", "useLexicalComposerContext", "getDocPreferences", "setDocFieldPreferences", "useDocumentInfo", "isCollapsed", "setIsCollapsed", "React", "useState", "initialState", "then", "currentDocPreferences", "collapsedArray", "fields", "name", "collapsed", "includes", "id", "hasSubmitted", "useFormSubmitted", "errorCount", "setErrorCount", "fieldHasErrors", "classNames", "filter", "Boolean", "join", "onFormChange", "useCallback", "fullFieldsWithValues", "newFormData", "blockType", "dequal", "setTimeout", "update", "node", "$getNodeByKey", "$isBlockNode", "setFields", "rowErrorCount", "formField", "Object", "values", "valid", "onCollapsedChange", "changedCollapsed", "newCollapsed", "push", "splice", "indexOf", "hello", "removeBlock", "remove", "_jsxs", "Fragment", "_jsx", "Collapsible", "className", "collapsibleStyle", "header", "admin", "components", "Label", "RenderComponent", "clientProps", "blockKind", "mappedComponent", "Pill", "pillStyle", "labels", "singular", "getTranslation", "slug", "SectionTitle", "path", "readOnly", "ErrorPill", "count", "withMessage", "isEditable", "Button", "buttonStyle", "disabled", "icon", "onClick", "e", "preventDefault", "round", "tooltip", "onToggle", "incomingCollapsedState", "RenderFields", "forceRender", "margins", "FormSavePlugin", "onChange", "baseClass", "BlockComponent", "props", "formData", "nodeKey", "config", "useConfig", "submitted", "useFormSubmitted", "id", "useDocumentInfo", "path", "schemaPath", "useFieldProps", "field", "parentLexicalRichTextField", "useEditorConfigContext", "initialState", "setInitialState", "useState", "richTextComponentMap", "schemaFieldsPath", "blockType", "clientBlock", "get", "blocks", "find", "block", "slug", "useEffect", "state", "getFormState", "apiRoute", "routes", "api", "body", "data", "operation", "serverURL", "blockName", "initialValue", "passesCondition", "valid", "value", "onChange", "useCallback", "formState", "prevFormState", "i18n", "useTranslation", "classNames", "filter", "Boolean", "join", "formContent", "useMemo", "_jsx", "Form", "beforeSubmit", "fields", "uuid", "BlockContent", "formSchema", "Collapsible", "className", "collapsibleStyle", "header", "admin", "components", "Label", "RenderComponent", "clientProps", "blockKind", "mappedComponent", "_jsxs", "Pill", "pillStyle", "labels", "singular", "getTranslation", "SectionTitle", "readOnly", "ShimmerEffect", "height"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{d as p}from"./chunk-XCEM47RI.js";import{c as K}from"react/compiler-runtime";import{useLexicalComposerContext as M}from"@lexical/react/LexicalComposerContext.js";import{useLexicalNodeSelection as _}from"@lexical/react/useLexicalNodeSelection.js";import{addClassNamesToElement as D,mergeRegister as y,removeClassNamesFromElement as A}from"@lexical/utils";import{$getSelection as O,$isNodeSelection as L,CLICK_COMMAND as R,COMMAND_PRIORITY_LOW as d,KEY_BACKSPACE_COMMAND as $,KEY_DELETE_COMMAND as h}from"lexical";import{useEffect as N}from"react";var g="selected";function P(S){let e=K(16),{nodeKey:l}=S,[t]=M(),[o,i,n]=_(l),m;e[0]!==o||e[1]!==t?(m=r=>{let u=O();return o&&L(u)&&(r.preventDefault(),t.update(()=>{u.getNodes().forEach(E=>{p(E)&&E.remove()})})),!1},e[0]=o,e[1]=t,e[2]=m):m=e[2];let s=m,c,a;e[3]!==t||e[4]!==l||e[5]!==n||e[6]!==i||e[7]!==o||e[8]!==s?(c=()=>y(t.registerCommand(R,r=>{let u=t.getElementByKey(l);return r.target===u?(r.shiftKey||n(),i(!o),!0):!1},d),t.registerCommand(h,s,d),t.registerCommand($,s,d)),a=[n,t,o,l,s,i],e[3]=t,e[4]=l,e[5]=n,e[6]=i,e[7]=o,e[8]=s,e[9]=c,e[10]=a):(c=e[9],a=e[10]),N(c,a);let f,C;return e[11]!==t||e[12]!==l||e[13]!==o?(f=()=>{let r=t.getElementByKey(l);r!==null&&(o?D(r,g):A(r,g))},C=[t,o,l],e[11]=t,e[12]=l,e[13]=o,e[14]=f,e[15]=C):(f=e[14],C=e[15]),N(f,C),null}export{P as HorizontalRuleComponent};
2
+ //# sourceMappingURL=component-ANB7VZLA.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/horizontalRule/client/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 $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 const deleteSelection = $getSelection()\n if (isSelected && $isNodeSelection(deleteSelection)) {\n event.preventDefault()\n editor.update(() => {\n deleteSelection.getNodes().forEach((node) => {\n if ($isHorizontalRuleNode(node)) {\n node.remove()\n }\n })\n })\n }\n return false\n },\n [editor, isSelected],\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": "qDAAA,OAAAA,KAAAC,MAAA,yBAIA,OAASC,6BAAAA,MAAiC,2CAC1C,OAASC,2BAAAA,MAA+B,4CACxC,OAASC,0BAAAA,EAAwBC,iBAAAA,EAAeC,+BAAAA,MAAmC,iBACnF,OACEC,iBAAAA,EACAC,oBAAAA,EACAC,iBAAAA,EACAC,wBAAAA,EACAC,yBAAAA,EACAC,sBAAAA,MACK,UACP,OAAsBC,aAAAA,MAAiB,QAIvC,IAAMC,EAAsB,WAOrB,SAAAC,EAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,EAAiC,CAAAC,QAAAA,CAAA,EAAAH,EACtC,CAAAI,CAAA,EAAiBC,EAAA,EACjB,CAAAC,EAAAC,EAAAC,CAAA,EAAkDC,EAAwBN,CAAA,EAAAO,EAAAT,EAAA,CAAA,IAAAK,GAAAL,EAAA,CAAA,IAAAG,GAGxEM,EAAAC,GAAA,CACE,IAAAC,EAAwBC,EAAA,EAAA,OACpBP,GAAcQ,EAAiBF,CAAA,IACjCD,EAAAI,eAAoB,EACpBX,EAAAY,OAAA,IAAA,CACEJ,EAAAK,SAAwB,EAAAC,QAAAC,GAAA,CAClBC,EAAsBD,CAAA,GACxBA,EAAAE,OAAW,CAAA,CAEf,CAAA,CACF,GAAA,EAAA,EAGJpB,EAAA,CAAA,EAAAK,EAAAL,EAAA,CAAA,EAAAG,EAAAH,EAAA,CAAA,EAAAS,GAAAA,EAAAT,EAAA,CAAA,EAdF,IAAAqB,EAAkBZ,EAeIa,EAAAC,EAAAvB,EAAA,CAAA,IAAAG,GAAAH,EAAA,CAAA,IAAAE,GAAAF,EAAA,CAAA,IAAAO,GAAAP,EAAA,CAAA,IAAAM,GAAA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AArC,EAAA,EAAA,GAThCmC,EAAUC,EASPC,CAA6B,EAAA,IAAA",
6
+ "names": ["c", "_c", "useLexicalComposerContext", "useLexicalNodeSelection", "addClassNamesToElement", "mergeRegister", "removeClassNamesFromElement", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "useEffect", "isSelectedClassName", "HorizontalRuleComponent", "t0", "$", "_c", "nodeKey", "editor", "useLexicalComposerContext", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "t1", "event", "deleteSelection", "$getSelection", "$isNodeSelection", "preventDefault", "update", "getNodes", "forEach", "node", "$isHorizontalRuleNode", "remove", "$onDelete", "t2", "t3", "mergeRegister", "registerCommand", "CLICK_COMMAND", "event_0", "hrElem", "getElementByKey", "target", "shiftKey", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "useEffect", "t4", "t5", "hrElem_0", "addClassNamesToElement", "removeClassNamesFromElement"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use client";import{c as x,f as E}from"./chunk-32KXGBIQ.js";import{b as u}from"./chunk-GD6LBQBJ.js";import{jsx as a,jsxs as M}from"react/jsx-runtime";import{useCallback as f,useEffect as S,useRef as h}from"react";import{useLexicalComposerContext as I}from"@lexical/react/LexicalComposerContext";import{useLexicalNodeSelection as K}from"@lexical/react/useLexicalNodeSelection";import{mergeRegister as L}from"@lexical/utils";import{getTranslation as v}from"@payloadcms/translations";import{Button as D,RenderComponent as $,useTranslation as A}from"@payloadcms/ui";import{$getNodeByKey as T,$getSelection as P,$isNodeSelection as j,CLICK_COMMAND as Y,COMMAND_PRIORITY_LOW as b,KEY_BACKSPACE_COMMAND as z,KEY_DELETE_COMMAND as F}from"lexical";var i="inline-block",te=y=>{let{formData:c,nodeKey:s}=y,[e]=I(),{i18n:C,t:k}=A(),{field:_}=u(),m=h(null),[o,r,d]=K(s),{field:{richTextComponentMap:O}}=u(),t=(O?.get("lexical_internal_feature.blocks.fields.lexical_inline_blocks")[0]).blocks.find(l=>l.slug===c.blockType),R=f(()=>{e.update(()=>{T(s)?.remove()})},[e,s]),p=f(l=>{let n=P();return o&&j(n)&&(l.preventDefault(),e.update(()=>{n.getNodes().forEach(B=>{E(B)&&B.remove()})})),!1},[e,o]),g=f(l=>{let n=l;return n.target===m.current||m.current?.contains(n.target)?(n.shiftKey?r(!o):o||(d(),r(!0)),!0):!1},[o,r,d]);S(()=>L(e.registerCommand(Y,g,b),e.registerCommand(F,p,b),e.registerCommand(z,p,b)),[d,e,o,s,p,r,g]);let N=t?.labels?.singular?v(t.labels.singular,C):t?.slug;return M("div",{className:[i,i+"-"+c.blockType,o&&`${i}--selected`].filter(Boolean).join(" "),ref:m,children:[t?.admin?.components?.Label?a($,{clientProps:{blockKind:"lexicalInlineBlock",formData:c},mappedComponent:t.admin.components.Label}):a("div",{children:v(t.labels.singular,C)}),e.isEditable()&&M("div",{className:`${i}__actions`,children:[a(D,{buttonStyle:"icon-label",className:`${i}__editButton`,disabled:_?.admin?.readOnly,el:"div",icon:"edit",onClick:()=>{e.dispatchCommand(x,{fields:c,nodeKey:s})},round:!0,size:"small",tooltip:k("lexical:blocks:inlineBlocks:edit",{label:N})}),a(D,{buttonStyle:"icon-label",className:`${i}__removeButton`,disabled:_?.admin?.readOnly,icon:"x",onClick:l=>{l.preventDefault(),R()},round:!0,size:"small",tooltip:k("lexical:blocks:inlineBlocks:remove",{label:N})})]})]})};export{te as InlineBlockComponent};
2
+ //# sourceMappingURL=componentInline-NUDJIIQ4.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/blocks/client/componentInline/index.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport React, { useCallback, useEffect, useRef } from 'react'\nconst baseClass = 'inline-block'\n\nimport type { BlocksFieldClient } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'\nimport { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection'\nimport { mergeRegister } from '@lexical/utils'\nimport { getTranslation } from '@payloadcms/translations'\nimport { Button, RenderComponent, useTranslation } from '@payloadcms/ui'\nimport {\n $getNodeByKey,\n $getSelection,\n $isNodeSelection,\n CLICK_COMMAND,\n COMMAND_PRIORITY_LOW,\n KEY_BACKSPACE_COMMAND,\n KEY_DELETE_COMMAND,\n} from 'lexical'\n\nimport type { InlineBlockFields } from '../nodes/InlineBlocksNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { $isInlineBlockNode } from '../nodes/InlineBlocksNode.js'\nimport { OPEN_INLINE_BLOCK_DRAWER_COMMAND } from '../plugin/commands.js'\nimport './index.scss'\n\ntype Props = {\n readonly formData: InlineBlockFields\n readonly nodeKey: string\n}\n\nexport const InlineBlockComponent: React.FC<Props> = (props) => {\n const { formData, nodeKey } = props\n const [editor] = useLexicalComposerContext()\n const { i18n, t } = useTranslation<object, string>()\n const { field } = useEditorConfigContext()\n const inlineBlockElemElemRef = useRef<HTMLDivElement | null>(null)\n const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey)\n\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedBlockPath = `lexical_internal_feature.blocks.fields.lexical_inline_blocks`\n const blocksField: BlocksFieldClient = richTextComponentMap?.get(componentMapRenderedBlockPath)[0]\n const clientBlock = blocksField.blocks.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 const deleteSelection = $getSelection()\n if (isSelected && $isNodeSelection(deleteSelection)) {\n event.preventDefault()\n editor.update(() => {\n deleteSelection.getNodes().forEach((node) => {\n if ($isInlineBlockNode(node)) {\n node.remove()\n }\n })\n })\n }\n return false\n },\n [editor, isSelected],\n )\n const onClick = useCallback(\n (payload: MouseEvent) => {\n const event = payload\n // Check if inlineBlockElemElemRef.target or anything WITHIN inlineBlockElemElemRef.target was clicked\n if (\n event.target === inlineBlockElemElemRef.current ||\n inlineBlockElemElemRef.current?.contains(event.target as Node)\n ) {\n if (event.shiftKey) {\n setSelected(!isSelected)\n } else {\n if (!isSelected) {\n clearSelection()\n setSelected(true)\n }\n }\n return true\n }\n\n return false\n },\n [isSelected, setSelected, clearSelection],\n )\n\n useEffect(() => {\n return mergeRegister(\n editor.registerCommand<MouseEvent>(CLICK_COMMAND, onClick, COMMAND_PRIORITY_LOW),\n\n editor.registerCommand(KEY_DELETE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n editor.registerCommand(KEY_BACKSPACE_COMMAND, $onDelete, COMMAND_PRIORITY_LOW),\n )\n }, [clearSelection, editor, isSelected, nodeKey, $onDelete, setSelected, onClick])\n\n const blockDisplayName = clientBlock?.labels?.singular\n ? getTranslation(clientBlock.labels.singular, i18n)\n : clientBlock?.slug\n\n 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 {clientBlock?.admin?.components?.Label ? (\n <RenderComponent\n clientProps={{ blockKind: 'lexicalInlineBlock', formData }}\n mappedComponent={clientBlock.admin.components.Label}\n />\n ) : (\n <div>{getTranslation(clientBlock!.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?.admin?.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?.admin?.readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeInlineBlock()\n }}\n round\n size=\"small\"\n tooltip={t('lexical:blocks:inlineBlocks:remove', { label: blockDisplayName })}\n />\n </div>\n )}\n </div>\n )\n}\n"],
5
+ "mappings": "sJAEA,OAAgBA,eAAAA,EAAaC,aAAAA,EAAWC,UAAAA,MAAc,QAKtD,OAASC,6BAAAA,MAAiC,wCAC1C,OAASC,2BAAAA,MAA+B,yCACxC,OAASC,iBAAAA,MAAqB,iBAC9B,OAASC,kBAAAA,MAAsB,2BAC/B,OAASC,UAAAA,EAAQC,mBAAAA,EAAiBC,kBAAAA,MAAsB,iBACxD,OACEC,iBAAAA,EACAC,iBAAAA,EACAC,oBAAAA,EACAC,iBAAAA,EACAC,wBAAAA,EACAC,yBAAAA,EACAC,sBAAAA,MACK,UAjBP,IAAMC,EAAY,eA+BLC,GAAyCC,GAAA,CACpD,GAAM,CAAEC,SAAAA,EAAUC,QAAAA,CAAO,EAAKF,EACxB,CAACG,CAAA,EAAUC,EAAA,EACX,CAAEC,KAAAA,EAAMC,EAAAA,CAAC,EAAKC,EAAA,EACd,CAAEC,MAAAA,CAAK,EAAKC,EAAA,EACZC,EAAyBC,EAA8B,IAAA,EACvD,CAACC,EAAYC,EAAaC,CAAA,EAAkBC,EAAwBb,CAAA,EAEpE,CACJM,MAAO,CAAEQ,qBAAAA,CAAoB,CAAE,EAC7BP,EAAA,EAIEQ,GADiCD,GAAsBE,IADvB,8DAC2B,EAA+B,CAAA,GAChEC,OAAOC,KAAMC,GAAUA,EAAMC,OAASrB,EAASsB,SAAS,EAElFC,EAAoBC,EAAY,IAAA,CACpCtB,EAAOuB,OAAO,IAAA,CACZC,EAAczB,CAAA,GAAU0B,OAAA,CAC1B,CAAA,CACF,EAAG,CAACzB,EAAQD,CAAA,CAAQ,EAEd2B,EAAYJ,EACfK,GAAA,CACC,IAAMC,EAAkBC,EAAA,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AU,GAChBd,EAAC,MAAA,CAAIC,UAAW,GAAG3D,CAAA,sBACjBmE,EAACM,EAAA,CACCC,YAAY,aACZf,UAAW,GAAG3D,CAAA,eACd2E,SAAUjE,GAAOsD,OAAOY,SACxBC,GAAG,MACHC,KAAK,OACLrC,QAASA,IAAA,CACPpC,EAAO0E,gBAAgBC,EAAkC,CACvDC,OAAQ9E,EACRC,QAAAA,CACF,CAAA,CACF,EACA8E,MAAK,GACLC,KAAK,QACLC,QAAS5E,EAAE,mCAAoC,CAAE6E,MAAO/B,CAAiB,CAAA,IAE3Ea,EAACM,EAAA,CACCC,YAAY,aACZf,UAAW,GAAG3D,CAAA,iBACd2E,SAAUjE,GAAOsD,OAAOY,SACxBE,KAAK,IACLrC,QAAU6C,GAAA,CACRA,EAAElD,eAAc,EAChBV,EAAA,CACF,EACAwD,MAAK,GACLC,KAAK,QACLC,QAAS5E,EAAE,qCAAsC,CAAE6E,MAAO/B,CAAiB,CAAA,SAMvF",
6
+ "names": ["useCallback", "useEffect", "useRef", "useLexicalComposerContext", "useLexicalNodeSelection", "mergeRegister", "getTranslation", "Button", "RenderComponent", "useTranslation", "$getNodeByKey", "$getSelection", "$isNodeSelection", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_BACKSPACE_COMMAND", "KEY_DELETE_COMMAND", "baseClass", "InlineBlockComponent", "props", "formData", "nodeKey", "editor", "useLexicalComposerContext", "i18n", "t", "useTranslation", "field", "useEditorConfigContext", "inlineBlockElemElemRef", "useRef", "isSelected", "setSelected", "clearSelection", "useLexicalNodeSelection", "richTextComponentMap", "clientBlock", "get", "blocks", "find", "block", "slug", "blockType", "removeInlineBlock", "useCallback", "update", "$getNodeByKey", "remove", "$onDelete", "event", "deleteSelection", "$getSelection", "$isNodeSelection", "preventDefault", "getNodes", "forEach", "node", "$isInlineBlockNode", "onClick", "payload", "target", "current", "contains", "shiftKey", "useEffect", "mergeRegister", "registerCommand", "CLICK_COMMAND", "COMMAND_PRIORITY_LOW", "KEY_DELETE_COMMAND", "KEY_BACKSPACE_COMMAND", "blockDisplayName", "labels", "singular", "getTranslation", "_jsxs", "className", "filter", "Boolean", "join", "ref", "admin", "components", "Label", "_jsx", "RenderComponent", "clientProps", "blockKind", "mappedComponent", "isEditable", "Button", "buttonStyle", "disabled", "readOnly", "el", "icon", "dispatchCommand", "OPEN_INLINE_BLOCK_DRAWER_COMMAND", "fields", "round", "size", "tooltip", "label", "e"]
7
+ }