@payloadcms/richtext-lexical 0.7.0 → 3.0.0-alpha.19

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 (993) hide show
  1. package/README.md +1 -3
  2. package/components.d.ts +1 -1
  3. package/components.js +6 -33
  4. package/dist/cell/index.d.ts +4 -4
  5. package/dist/cell/index.d.ts.map +1 -1
  6. package/dist/cell/index.js +98 -79
  7. package/dist/exports/components.d.ts +1 -1
  8. package/dist/exports/components.d.ts.map +1 -1
  9. package/dist/exports/components.js +6 -33
  10. package/dist/field/Field.d.ts +8 -3
  11. package/dist/field/Field.d.ts.map +1 -1
  12. package/dist/field/Field.js +26 -98
  13. package/dist/field/features/align/feature.client.d.ts +3 -0
  14. package/dist/field/features/align/feature.client.d.ts.map +1 -0
  15. package/dist/field/features/align/feature.client.js +71 -0
  16. package/dist/field/features/align/feature.server.d.ts +3 -0
  17. package/dist/field/features/align/feature.server.d.ts.map +1 -0
  18. package/dist/field/features/align/feature.server.js +16 -0
  19. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +1 -1
  20. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +6 -57
  21. package/dist/field/features/blockquote/feature.client.d.ts +3 -0
  22. package/dist/field/features/blockquote/feature.client.d.ts.map +1 -0
  23. package/dist/field/features/blockquote/feature.client.js +67 -0
  24. package/dist/field/features/blockquote/feature.server.d.ts +3 -0
  25. package/dist/field/features/blockquote/feature.server.d.ts.map +1 -0
  26. package/dist/field/features/blockquote/feature.server.js +46 -0
  27. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +1 -0
  28. package/dist/field/features/blockquote/markdownTransformer.js +40 -0
  29. package/dist/field/features/blocks/component/BlockContent.d.ts +25 -0
  30. package/dist/field/features/blocks/component/BlockContent.d.ts.map +1 -0
  31. package/dist/field/features/blocks/component/BlockContent.js +163 -0
  32. package/dist/field/features/blocks/component/FormSavePlugin.d.ts +12 -0
  33. package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +1 -0
  34. package/dist/field/features/blocks/component/FormSavePlugin.js +24 -0
  35. package/dist/field/features/blocks/component/index.d.ts +16 -0
  36. package/dist/field/features/blocks/component/index.d.ts.map +1 -0
  37. package/dist/field/features/blocks/component/index.js +121 -0
  38. package/dist/field/features/blocks/component/index.scss +153 -0
  39. package/dist/field/features/blocks/drawer/index.d.ts.map +1 -0
  40. package/dist/field/features/blocks/drawer/index.js +78 -0
  41. package/dist/field/features/blocks/feature.client.d.ts +7 -0
  42. package/dist/field/features/blocks/feature.client.d.ts.map +1 -0
  43. package/dist/field/features/blocks/feature.client.js +61 -0
  44. package/dist/field/features/blocks/feature.server.d.ts +8 -0
  45. package/dist/field/features/blocks/feature.server.d.ts.map +1 -0
  46. package/dist/field/features/blocks/feature.server.js +86 -0
  47. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +1 -0
  48. package/dist/field/features/blocks/nodes/BlocksNode.js +91 -0
  49. package/dist/field/features/blocks/plugin/commands.d.ts.map +1 -0
  50. package/dist/field/features/blocks/plugin/commands.js +4 -0
  51. package/dist/field/features/blocks/plugin/index.d.ts +5 -0
  52. package/dist/field/features/blocks/plugin/index.d.ts.map +1 -0
  53. package/dist/field/features/blocks/plugin/index.js +40 -0
  54. package/dist/field/features/blocks/populationPromise.d.ts +5 -0
  55. package/dist/field/features/blocks/populationPromise.d.ts.map +1 -0
  56. package/dist/field/features/blocks/populationPromise.js +45 -0
  57. package/dist/field/features/blocks/validate.d.ts +5 -0
  58. package/dist/field/features/blocks/validate.d.ts.map +1 -0
  59. package/dist/field/features/blocks/validate.js +49 -0
  60. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +4 -14
  61. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +1 -1
  62. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +6 -57
  63. package/dist/field/features/converters/html/converter/converters/linebreak.js +2 -12
  64. package/dist/field/features/converters/html/converter/converters/paragraph.d.ts.map +1 -1
  65. package/dist/field/features/converters/html/converter/converters/paragraph.js +7 -16
  66. package/dist/field/features/converters/html/converter/converters/text.js +10 -20
  67. package/dist/field/features/converters/html/converter/defaultConverters.js +8 -18
  68. package/dist/field/features/converters/html/converter/index.d.ts +11 -2
  69. package/dist/field/features/converters/html/converter/index.d.ts.map +1 -1
  70. package/dist/field/features/converters/html/converter/index.js +9 -24
  71. package/dist/field/features/converters/html/converter/types.d.ts +6 -1
  72. package/dist/field/features/converters/html/converter/types.d.ts.map +1 -1
  73. package/dist/field/features/converters/html/converter/types.js +2 -5
  74. package/dist/field/features/converters/html/feature.server.d.ts +9 -0
  75. package/dist/field/features/converters/html/feature.server.d.ts.map +1 -0
  76. package/dist/field/features/converters/html/feature.server.js +14 -0
  77. package/dist/field/features/converters/html/field/index.d.ts +2 -2
  78. package/dist/field/features/converters/html/field/index.d.ts.map +1 -1
  79. package/dist/field/features/converters/html/field/index.js +18 -31
  80. package/dist/field/features/createClientComponent.d.ts +7 -0
  81. package/dist/field/features/createClientComponent.d.ts.map +1 -0
  82. package/dist/field/features/createClientComponent.js +12 -0
  83. package/dist/field/features/createFeaturePropComponent.d.ts +6 -0
  84. package/dist/field/features/createFeaturePropComponent.d.ts.map +1 -0
  85. package/dist/field/features/createFeaturePropComponent.js +14 -0
  86. package/dist/field/features/debug/testrecorder/feature.client.d.ts +3 -0
  87. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +1 -0
  88. package/dist/field/features/debug/testrecorder/feature.client.js +20 -0
  89. package/dist/field/features/debug/testrecorder/feature.server.d.ts +3 -0
  90. package/dist/field/features/debug/testrecorder/feature.server.d.ts.map +1 -0
  91. package/dist/field/features/debug/testrecorder/feature.server.js +15 -0
  92. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +1 -0
  93. package/dist/field/features/debug/testrecorder/plugin/index.js +446 -0
  94. package/dist/field/features/debug/testrecorder/plugin/index.scss +49 -0
  95. package/dist/field/features/debug/treeview/feature.client.d.ts +3 -0
  96. package/dist/field/features/debug/treeview/feature.client.d.ts.map +1 -0
  97. package/dist/field/features/debug/treeview/feature.client.js +20 -0
  98. package/dist/field/features/debug/treeview/feature.server.d.ts +3 -0
  99. package/dist/field/features/debug/treeview/feature.server.d.ts.map +1 -0
  100. package/dist/field/features/debug/treeview/feature.server.js +15 -0
  101. package/dist/field/features/debug/treeview/plugin/index.d.ts +4 -0
  102. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +1 -0
  103. package/dist/field/features/debug/treeview/plugin/index.js +19 -0
  104. package/dist/field/features/format/bold/feature.client.d.ts +3 -0
  105. package/dist/field/features/format/bold/feature.client.d.ts.map +1 -0
  106. package/dist/field/features/format/bold/feature.client.js +47 -0
  107. package/dist/field/features/format/bold/feature.server.d.ts +3 -0
  108. package/dist/field/features/format/bold/feature.server.d.ts.map +1 -0
  109. package/dist/field/features/format/bold/feature.server.js +27 -0
  110. package/dist/field/features/format/bold/markdownTransformers.d.ts.map +1 -0
  111. package/dist/field/features/format/bold/markdownTransformers.js +34 -0
  112. package/dist/field/features/format/common/floatingSelectToolbarSection.js +4 -14
  113. package/dist/field/features/format/inlinecode/feature.client.d.ts +3 -0
  114. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +1 -0
  115. package/dist/field/features/format/inlinecode/feature.client.js +42 -0
  116. package/dist/field/features/format/inlinecode/feature.server.d.ts +3 -0
  117. package/dist/field/features/format/inlinecode/feature.server.d.ts.map +1 -0
  118. package/dist/field/features/format/inlinecode/feature.server.js +19 -0
  119. package/dist/field/features/format/inlinecode/markdownTransformers.d.ts.map +1 -0
  120. package/dist/field/features/format/inlinecode/markdownTransformers.js +9 -0
  121. package/dist/field/features/format/italic/feature.client.d.ts +3 -0
  122. package/dist/field/features/format/italic/feature.client.d.ts.map +1 -0
  123. package/dist/field/features/format/italic/feature.client.js +43 -0
  124. package/dist/field/features/format/italic/feature.server.d.ts +3 -0
  125. package/dist/field/features/format/italic/feature.server.d.ts.map +1 -0
  126. package/dist/field/features/format/italic/feature.server.js +20 -0
  127. package/dist/field/features/format/italic/markdownTransformers.d.ts.map +1 -0
  128. package/dist/field/features/format/italic/markdownTransformers.js +17 -0
  129. package/dist/field/features/format/strikethrough/feature.client.d.ts +3 -0
  130. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +1 -0
  131. package/dist/field/features/format/strikethrough/feature.client.js +42 -0
  132. package/dist/field/features/format/strikethrough/feature.server.d.ts +3 -0
  133. package/dist/field/features/format/strikethrough/feature.server.d.ts.map +1 -0
  134. package/dist/field/features/format/strikethrough/feature.server.js +19 -0
  135. package/dist/field/features/format/strikethrough/markdownTransformers.js +4 -14
  136. package/dist/field/features/format/subscript/feature.client.d.ts +3 -0
  137. package/dist/field/features/format/subscript/feature.client.d.ts.map +1 -0
  138. package/dist/field/features/format/subscript/feature.client.js +38 -0
  139. package/dist/field/features/format/subscript/feature.server.d.ts +3 -0
  140. package/dist/field/features/format/subscript/feature.server.d.ts.map +1 -0
  141. package/dist/field/features/format/subscript/feature.server.js +15 -0
  142. package/dist/field/features/format/superscript/feature.client.d.ts +3 -0
  143. package/dist/field/features/format/superscript/feature.client.d.ts.map +1 -0
  144. package/dist/field/features/format/superscript/feature.client.js +38 -0
  145. package/dist/field/features/format/superscript/feature.server.d.ts +3 -0
  146. package/dist/field/features/format/superscript/feature.server.d.ts.map +1 -0
  147. package/dist/field/features/format/superscript/feature.server.js +15 -0
  148. package/dist/field/features/format/underline/feature.client.d.ts +3 -0
  149. package/dist/field/features/format/underline/feature.client.d.ts.map +1 -0
  150. package/dist/field/features/format/underline/feature.client.js +38 -0
  151. package/dist/field/features/format/underline/feature.server.d.ts +3 -0
  152. package/dist/field/features/format/underline/feature.server.d.ts.map +1 -0
  153. package/dist/field/features/format/underline/feature.server.js +15 -0
  154. package/dist/field/features/heading/feature.client.d.ts +4 -0
  155. package/dist/field/features/heading/feature.client.d.ts.map +1 -0
  156. package/dist/field/features/heading/feature.client.js +95 -0
  157. package/dist/field/features/heading/feature.server.d.ts +7 -0
  158. package/dist/field/features/heading/feature.server.d.ts.map +1 -0
  159. package/dist/field/features/heading/feature.server.js +57 -0
  160. package/dist/field/features/heading/markdownTransformer.d.ts.map +1 -0
  161. package/dist/field/features/heading/markdownTransformer.js +29 -0
  162. package/dist/field/features/indent/feature.client.d.ts +3 -0
  163. package/dist/field/features/indent/feature.client.d.ts.map +1 -0
  164. package/dist/field/features/indent/feature.client.js +57 -0
  165. package/dist/field/features/indent/feature.server.d.ts +3 -0
  166. package/dist/field/features/indent/feature.server.d.ts.map +1 -0
  167. package/dist/field/features/indent/feature.server.js +16 -0
  168. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +4 -14
  169. package/dist/field/features/link/drawer/baseFields.d.ts.map +1 -0
  170. package/dist/field/features/link/drawer/baseFields.js +118 -0
  171. package/dist/field/features/link/drawer/index.d.ts.map +1 -0
  172. package/dist/field/features/link/drawer/index.js +83 -0
  173. package/dist/field/features/link/drawer/index.scss +50 -0
  174. package/dist/field/features/link/drawer/types.d.ts +8 -0
  175. package/dist/field/features/link/drawer/types.d.ts.map +1 -0
  176. package/dist/field/features/link/drawer/types.js +3 -0
  177. package/dist/field/features/link/feature.client.d.ts +5 -0
  178. package/dist/field/features/link/feature.client.d.ts.map +1 -0
  179. package/dist/field/features/link/feature.client.js +88 -0
  180. package/dist/field/features/link/feature.server.d.ts +33 -0
  181. package/dist/field/features/link/feature.server.d.ts.map +1 -0
  182. package/dist/field/features/link/feature.server.js +98 -0
  183. package/dist/field/features/link/nodes/AutoLinkNode.d.ts +16 -0
  184. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
  185. package/dist/field/features/link/nodes/AutoLinkNode.js +60 -0
  186. package/dist/field/features/link/nodes/LinkNode.d.ts +35 -0
  187. package/dist/field/features/link/nodes/LinkNode.d.ts.map +1 -0
  188. package/dist/field/features/link/nodes/LinkNode.js +299 -0
  189. package/dist/field/features/link/nodes/types.d.ts +19 -0
  190. package/dist/field/features/link/nodes/types.d.ts.map +1 -0
  191. package/dist/field/features/link/nodes/types.js +3 -0
  192. package/dist/field/features/link/plugins/autoLink/index.d.ts +19 -0
  193. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +1 -0
  194. package/dist/field/features/link/plugins/autoLink/index.js +318 -0
  195. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +1 -0
  196. package/dist/field/features/link/plugins/clickableLink/index.js +8 -0
  197. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  198. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +4 -0
  199. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +5 -0
  200. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  201. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +243 -0
  202. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +6 -0
  203. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  204. package/dist/field/features/link/plugins/floatingLinkEditor/index.js +13 -0
  205. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +78 -0
  206. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts +13 -0
  207. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  208. package/dist/field/features/link/plugins/floatingLinkEditor/types.js +6 -0
  209. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +12 -0
  210. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -0
  211. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +37 -0
  212. package/dist/field/features/link/plugins/link/index.d.ts.map +1 -0
  213. package/dist/field/features/link/plugins/link/index.js +59 -0
  214. package/dist/field/features/link/populationPromise.d.ts +5 -0
  215. package/dist/field/features/link/populationPromise.d.ts.map +1 -0
  216. package/dist/field/features/link/populationPromise.js +46 -0
  217. package/dist/field/features/lists/checklist/feature.client.d.ts +3 -0
  218. package/dist/field/features/lists/checklist/feature.client.d.ts.map +1 -0
  219. package/dist/field/features/lists/checklist/feature.client.js +81 -0
  220. package/dist/field/features/lists/checklist/feature.server.d.ts +3 -0
  221. package/dist/field/features/lists/checklist/feature.server.d.ts.map +1 -0
  222. package/dist/field/features/lists/checklist/feature.server.js +35 -0
  223. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
  224. package/dist/field/features/lists/checklist/markdownTransformers.js +16 -0
  225. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +1 -0
  226. package/dist/field/features/lists/checklist/plugin/index.js +8 -0
  227. package/dist/field/features/lists/common/markdown.js +10 -28
  228. package/dist/field/features/lists/htmlConverter.d.ts.map +1 -1
  229. package/dist/field/features/lists/htmlConverter.js +15 -31
  230. package/dist/field/features/lists/orderedlist/feature.client.d.ts +3 -0
  231. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +1 -0
  232. package/dist/field/features/lists/orderedlist/feature.client.js +71 -0
  233. package/dist/field/features/lists/orderedlist/feature.server.d.ts +3 -0
  234. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +1 -0
  235. package/dist/field/features/lists/orderedlist/feature.server.js +35 -0
  236. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +1 -0
  237. package/dist/field/features/lists/orderedlist/markdownTransformer.js +16 -0
  238. package/dist/field/features/lists/plugin/index.js +5 -20
  239. package/dist/field/features/lists/unorderedlist/feature.client.d.ts +3 -0
  240. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +1 -0
  241. package/dist/field/features/lists/unorderedlist/feature.client.js +71 -0
  242. package/dist/field/features/lists/unorderedlist/feature.server.d.ts +3 -0
  243. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +1 -0
  244. package/dist/field/features/lists/unorderedlist/feature.server.js +35 -0
  245. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +1 -0
  246. package/dist/field/features/lists/unorderedlist/markdownTransformer.js +16 -0
  247. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +6 -0
  248. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +1 -0
  249. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +6 -0
  250. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +3 -0
  251. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  252. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +20 -0
  253. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +3 -0
  254. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +1 -0
  255. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +8 -0
  256. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +6 -0
  257. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +1 -0
  258. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js +6 -0
  259. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +3 -0
  260. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
  261. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +31 -0
  262. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +3 -0
  263. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +1 -0
  264. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +8 -0
  265. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +6 -0
  266. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +1 -0
  267. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js +6 -0
  268. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +3 -0
  269. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
  270. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +22 -0
  271. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +3 -0
  272. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +1 -0
  273. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +8 -0
  274. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +6 -0
  275. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  276. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +6 -0
  277. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +3 -0
  278. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  279. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +22 -0
  280. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +3 -0
  281. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  282. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +8 -0
  283. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +6 -0
  284. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +1 -0
  285. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +6 -0
  286. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +3 -0
  287. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
  288. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +20 -0
  289. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +3 -0
  290. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +1 -0
  291. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +8 -0
  292. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +6 -0
  293. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  294. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +6 -0
  295. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +3 -0
  296. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  297. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +26 -0
  298. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +3 -0
  299. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  300. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +8 -0
  301. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +6 -0
  302. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +1 -0
  303. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +6 -0
  304. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +3 -0
  305. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  306. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +25 -0
  307. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +3 -0
  308. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +1 -0
  309. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +8 -0
  310. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +3 -0
  311. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
  312. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +18 -0
  313. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts +17 -0
  314. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
  315. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js +63 -0
  316. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts +31 -0
  317. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
  318. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js +3 -0
  319. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +3 -0
  320. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
  321. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js +34 -0
  322. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts +9 -0
  323. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
  324. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +47 -0
  325. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  326. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +8 -0
  327. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  328. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +69 -0
  329. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +14 -0
  330. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +6 -0
  331. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +1 -0
  332. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +6 -0
  333. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +3 -0
  334. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
  335. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +23 -0
  336. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +3 -0
  337. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +1 -0
  338. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +8 -0
  339. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +6 -0
  340. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +1 -0
  341. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js +6 -0
  342. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +3 -0
  343. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  344. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js +29 -0
  345. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts +3 -0
  346. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +1 -0
  347. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js +8 -0
  348. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +6 -0
  349. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +1 -0
  350. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js +6 -0
  351. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +3 -0
  352. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
  353. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js +35 -0
  354. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts +3 -0
  355. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +1 -0
  356. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js +8 -0
  357. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts +6 -0
  358. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +1 -0
  359. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js +6 -0
  360. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +3 -0
  361. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
  362. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js +30 -0
  363. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts +3 -0
  364. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +1 -0
  365. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js +8 -0
  366. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +6 -0
  367. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  368. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js +6 -0
  369. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +3 -0
  370. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  371. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js +25 -0
  372. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts +3 -0
  373. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  374. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js +8 -0
  375. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +6 -0
  376. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +1 -0
  377. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js +6 -0
  378. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +3 -0
  379. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
  380. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +26 -0
  381. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +3 -0
  382. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +1 -0
  383. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js +8 -0
  384. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +6 -0
  385. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +1 -0
  386. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js +6 -0
  387. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +3 -0
  388. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
  389. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +18 -0
  390. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts +3 -0
  391. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +1 -0
  392. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js +8 -0
  393. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +6 -0
  394. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  395. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js +6 -0
  396. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +3 -0
  397. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  398. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js +27 -0
  399. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts +3 -0
  400. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  401. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js +8 -0
  402. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +6 -0
  403. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +1 -0
  404. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js +6 -0
  405. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +3 -0
  406. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
  407. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +26 -0
  408. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +3 -0
  409. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +1 -0
  410. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +8 -0
  411. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +6 -0
  412. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +1 -0
  413. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js +6 -0
  414. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +3 -0
  415. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  416. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +21 -0
  417. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts +3 -0
  418. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +1 -0
  419. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js +8 -0
  420. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts +3 -0
  421. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
  422. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js +24 -0
  423. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts +19 -0
  424. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
  425. package/dist/field/features/migrations/slateToLexical/converter/index.js +107 -0
  426. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts +25 -0
  427. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
  428. package/dist/field/features/migrations/slateToLexical/converter/types.js +3 -0
  429. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +3 -0
  430. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
  431. package/dist/field/features/migrations/slateToLexical/feature.client.js +34 -0
  432. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts +9 -0
  433. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
  434. package/dist/field/features/migrations/slateToLexical/feature.server.js +47 -0
  435. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  436. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +8 -0
  437. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  438. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +69 -0
  439. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +14 -0
  440. package/dist/field/features/paragraph/feature.client.d.ts +3 -0
  441. package/dist/field/features/paragraph/feature.client.d.ts.map +1 -0
  442. package/dist/field/features/paragraph/feature.client.js +63 -0
  443. package/dist/field/features/paragraph/feature.server.d.ts +3 -0
  444. package/dist/field/features/paragraph/feature.server.d.ts.map +1 -0
  445. package/dist/field/features/paragraph/feature.server.js +16 -0
  446. package/dist/field/features/relationship/drawer/commands.d.ts.map +1 -0
  447. package/dist/field/features/relationship/drawer/commands.js +4 -0
  448. package/dist/field/features/relationship/drawer/index.d.ts.map +1 -0
  449. package/dist/field/features/relationship/drawer/index.js +79 -0
  450. package/dist/field/features/relationship/feature.client.d.ts +4 -0
  451. package/dist/field/features/relationship/feature.client.d.ts.map +1 -0
  452. package/dist/field/features/relationship/feature.client.js +56 -0
  453. package/dist/field/features/relationship/feature.server.d.ts +18 -0
  454. package/dist/field/features/relationship/feature.server.d.ts.map +1 -0
  455. package/dist/field/features/relationship/feature.server.js +26 -0
  456. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +1 -0
  457. package/dist/field/features/relationship/nodes/RelationshipNode.js +110 -0
  458. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -0
  459. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +103 -0
  460. package/dist/field/features/relationship/nodes/components/index.scss +97 -0
  461. package/dist/field/features/relationship/plugins/index.d.ts +7 -0
  462. package/dist/field/features/relationship/plugins/index.d.ts.map +1 -0
  463. package/dist/field/features/relationship/plugins/index.js +49 -0
  464. package/dist/field/features/relationship/populationPromise.d.ts.map +1 -0
  465. package/dist/field/features/relationship/populationPromise.js +24 -0
  466. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  467. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +33 -0
  468. package/dist/field/features/types.d.ts +139 -70
  469. package/dist/field/features/types.d.ts.map +1 -1
  470. package/dist/field/features/types.js +2 -5
  471. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +1 -0
  472. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +110 -0
  473. package/dist/field/features/upload/component/index.d.ts.map +1 -0
  474. package/dist/field/features/upload/component/index.js +135 -0
  475. package/dist/field/features/upload/component/index.scss +152 -0
  476. package/dist/field/features/upload/drawer/commands.d.ts.map +1 -0
  477. package/dist/field/features/upload/drawer/commands.js +5 -0
  478. package/dist/field/features/upload/drawer/index.d.ts.map +1 -0
  479. package/dist/field/features/upload/drawer/index.js +76 -0
  480. package/dist/field/features/upload/feature.client.d.ts +10 -0
  481. package/dist/field/features/upload/feature.client.d.ts.map +1 -0
  482. package/dist/field/features/upload/feature.client.js +55 -0
  483. package/dist/field/features/upload/feature.server.d.ts +12 -0
  484. package/dist/field/features/upload/feature.server.d.ts.map +1 -0
  485. package/dist/field/features/upload/feature.server.js +103 -0
  486. package/dist/field/features/upload/nodes/UploadNode.d.ts +47 -0
  487. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +1 -0
  488. package/dist/field/features/upload/nodes/UploadNode.js +98 -0
  489. package/dist/field/features/upload/plugin/index.d.ts.map +1 -0
  490. package/dist/field/features/upload/plugin/index.js +52 -0
  491. package/dist/field/features/upload/populationPromise.d.ts +5 -0
  492. package/dist/field/features/upload/populationPromise.d.ts.map +1 -0
  493. package/dist/field/features/upload/populationPromise.js +46 -0
  494. package/dist/field/features/upload/validate.d.ts.map +1 -0
  495. package/dist/field/features/upload/validate.js +19 -0
  496. package/dist/field/index.d.ts +7 -2
  497. package/dist/field/index.d.ts.map +1 -1
  498. package/dist/field/index.js +78 -57
  499. package/dist/field/index.scss +2 -2
  500. package/dist/field/lexical/EditorPlugin.d.ts.map +1 -1
  501. package/dist/field/lexical/EditorPlugin.js +6 -65
  502. package/dist/field/lexical/LexicalEditor.js +39 -94
  503. package/dist/field/lexical/LexicalEditor.scss +1 -3
  504. package/dist/field/lexical/LexicalProvider.d.ts +8 -4
  505. package/dist/field/lexical/LexicalProvider.d.ts.map +1 -1
  506. package/dist/field/lexical/LexicalProvider.js +30 -83
  507. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +24 -0
  508. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
  509. package/dist/field/lexical/config/client/EditorConfigProvider.js +41 -0
  510. package/dist/field/lexical/config/client/default.d.ts +3 -0
  511. package/dist/field/lexical/config/client/default.d.ts.map +1 -0
  512. package/dist/field/lexical/config/client/default.js +8 -0
  513. package/dist/field/lexical/config/client/loader.d.ts +11 -0
  514. package/dist/field/lexical/config/client/loader.d.ts.map +1 -0
  515. package/dist/field/lexical/config/client/loader.js +46 -0
  516. package/dist/field/lexical/config/client/sanitize.d.ts +6 -0
  517. package/dist/field/lexical/config/client/sanitize.d.ts.map +1 -0
  518. package/dist/field/lexical/config/client/sanitize.js +126 -0
  519. package/dist/field/lexical/config/server/default.d.ts +8 -0
  520. package/dist/field/lexical/config/server/default.d.ts.map +1 -0
  521. package/dist/field/lexical/config/server/default.js +51 -0
  522. package/dist/field/lexical/config/server/loader.d.ts +7 -0
  523. package/dist/field/lexical/config/server/loader.d.ts.map +1 -0
  524. package/dist/field/lexical/config/server/loader.js +118 -0
  525. package/dist/field/lexical/config/server/sanitize.d.ts +5 -0
  526. package/dist/field/lexical/config/server/sanitize.d.ts.map +1 -0
  527. package/dist/field/lexical/config/server/sanitize.js +65 -0
  528. package/dist/field/lexical/config/types.d.ts +18 -9
  529. package/dist/field/lexical/config/types.d.ts.map +1 -1
  530. package/dist/field/lexical/config/types.js +2 -5
  531. package/dist/field/lexical/nodes/index.d.ts +2 -2
  532. package/dist/field/lexical/nodes/index.d.ts.map +1 -1
  533. package/dist/field/lexical/nodes/index.js +8 -13
  534. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js +19 -70
  535. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +0 -2
  536. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +3 -3
  537. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +1 -1
  538. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js +40 -98
  539. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +1 -1
  540. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +12 -85
  541. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +1 -1
  542. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +1 -1
  543. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +57 -127
  544. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +1 -1
  545. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +4 -4
  546. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +1 -1
  547. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js +2 -5
  548. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +7 -58
  549. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +39 -64
  550. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +2 -2
  551. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -1
  552. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +32 -104
  553. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +6 -6
  554. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  555. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +3 -21
  556. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  557. package/dist/field/lexical/plugins/SlashMenu/index.js +27 -84
  558. package/dist/field/lexical/plugins/SlashMenu/index.scss +1 -1
  559. package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +8 -16
  560. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +35 -84
  561. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -2
  562. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +2 -12
  563. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +2 -12
  564. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js +18 -28
  565. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +4 -14
  566. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +52 -102
  567. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -2
  568. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +8 -18
  569. package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js +2 -12
  570. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +4 -14
  571. package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js +2 -12
  572. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js +2 -12
  573. package/dist/field/lexical/theme/EditorTheme.js +3 -13
  574. package/dist/field/lexical/theme/EditorTheme.scss +0 -2
  575. package/dist/field/lexical/ui/ContentEditable.js +6 -57
  576. package/dist/field/lexical/ui/icons/AI/index.js +7 -22
  577. package/dist/field/lexical/ui/icons/AlignCenter/index.js +6 -21
  578. package/dist/field/lexical/ui/icons/AlignJustify/index.js +6 -21
  579. package/dist/field/lexical/ui/icons/AlignLeft/index.js +6 -21
  580. package/dist/field/lexical/ui/icons/AlignRight/index.js +6 -21
  581. package/dist/field/lexical/ui/icons/Block/index.js +6 -21
  582. package/dist/field/lexical/ui/icons/Blockquote/index.js +4 -19
  583. package/dist/field/lexical/ui/icons/Bold/index.js +4 -19
  584. package/dist/field/lexical/ui/icons/Checklist/index.js +5 -20
  585. package/dist/field/lexical/ui/icons/Code/index.js +5 -20
  586. package/dist/field/lexical/ui/icons/CodeBlock/index.js +5 -20
  587. package/dist/field/lexical/ui/icons/H1/index.js +4 -19
  588. package/dist/field/lexical/ui/icons/H2/index.js +4 -19
  589. package/dist/field/lexical/ui/icons/H3/index.js +4 -19
  590. package/dist/field/lexical/ui/icons/H4/index.js +4 -19
  591. package/dist/field/lexical/ui/icons/H5/index.js +4 -19
  592. package/dist/field/lexical/ui/icons/H6/index.js +4 -19
  593. package/dist/field/lexical/ui/icons/IndentDecrease/index.js +7 -22
  594. package/dist/field/lexical/ui/icons/IndentIncrease/index.js +7 -22
  595. package/dist/field/lexical/ui/icons/Italic/index.js +4 -19
  596. package/dist/field/lexical/ui/icons/Link/index.js +7 -22
  597. package/dist/field/lexical/ui/icons/OrderedList/index.js +8 -23
  598. package/dist/field/lexical/ui/icons/Relationship/index.js +7 -22
  599. package/dist/field/lexical/ui/icons/Strikethrough/index.js +5 -20
  600. package/dist/field/lexical/ui/icons/Subscript/index.js +4 -19
  601. package/dist/field/lexical/ui/icons/Superscript/index.js +4 -19
  602. package/dist/field/lexical/ui/icons/Text/index.js +4 -19
  603. package/dist/field/lexical/ui/icons/Underline/index.js +5 -20
  604. package/dist/field/lexical/ui/icons/UnorderedList/index.js +9 -24
  605. package/dist/field/lexical/ui/icons/Upload/index.js +6 -21
  606. package/dist/field/lexical/utils/canUseDOM.js +2 -12
  607. package/dist/field/lexical/utils/cloneDeep.js +2 -12
  608. package/dist/field/lexical/utils/environment.js +13 -51
  609. package/dist/field/lexical/utils/getDOMRangeRect.js +2 -12
  610. package/dist/field/lexical/utils/getSelectedNode.js +5 -15
  611. package/dist/field/lexical/utils/guard.js +2 -12
  612. package/dist/field/lexical/utils/invariant.js +2 -12
  613. package/dist/field/lexical/utils/joinClasses.js +2 -12
  614. package/dist/field/lexical/utils/markdown/createBlockNode.js +2 -12
  615. package/dist/field/lexical/utils/nodeFormat.js +17 -61
  616. package/dist/field/lexical/utils/point.js +3 -21
  617. package/dist/field/lexical/utils/rect.js +4 -14
  618. package/dist/field/lexical/utils/setFloatingElemPosition.js +5 -12
  619. package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js +2 -12
  620. package/dist/field/lexical/utils/swipe.js +5 -29
  621. package/dist/field/lexical/utils/url.js +3 -21
  622. package/dist/generateComponentMap.d.ts +6 -0
  623. package/dist/generateComponentMap.d.ts.map +1 -0
  624. package/dist/generateComponentMap.js +77 -0
  625. package/dist/generateSchemaMap.d.ts +6 -0
  626. package/dist/generateSchemaMap.d.ts.map +1 -0
  627. package/dist/generateSchemaMap.js +27 -0
  628. package/dist/index.d.ts +59 -56
  629. package/dist/index.d.ts.map +1 -1
  630. package/dist/index.js +130 -488
  631. package/dist/populate/defaultValue.js +8 -26
  632. package/dist/populate/populate.js +2 -12
  633. package/dist/populate/recurseNestedFields.d.ts.map +1 -1
  634. package/dist/populate/recurseNestedFields.js +6 -14
  635. package/dist/populate/richTextRelationshipPromise.js +4 -22
  636. package/dist/scss/app.scss +209 -0
  637. package/dist/scss/colors.scss +269 -0
  638. package/dist/scss/custom.css +1 -0
  639. package/dist/scss/fonts.scss +75 -0
  640. package/dist/scss/queries.scss +27 -0
  641. package/dist/scss/resets.scss +17 -0
  642. package/dist/scss/styles.scss +11 -0
  643. package/dist/scss/svg.scss +10 -0
  644. package/dist/scss/toastify.scss +58 -0
  645. package/dist/scss/type.scss +117 -0
  646. package/dist/scss/vars.scss +220 -0
  647. package/dist/scss/z-index.scss +9 -0
  648. package/dist/types.d.ts +8 -2
  649. package/dist/types.d.ts.map +1 -1
  650. package/dist/types.js +2 -5
  651. package/dist/useLexicalFeature.d.ts +3 -0
  652. package/dist/useLexicalFeature.d.ts.map +1 -0
  653. package/dist/useLexicalFeature.js +9 -0
  654. package/dist/validate/index.d.ts +4 -4
  655. package/dist/validate/index.d.ts.map +1 -1
  656. package/dist/validate/index.js +7 -18
  657. package/dist/validate/validateNodes.d.ts +2 -4
  658. package/dist/validate/validateNodes.d.ts.map +1 -1
  659. package/dist/validate/validateNodes.js +2 -14
  660. package/package.json +13 -7
  661. package/dist/field/features/BlockQuote/index.d.ts +0 -3
  662. package/dist/field/features/BlockQuote/index.d.ts.map +0 -1
  663. package/dist/field/features/BlockQuote/index.js +0 -140
  664. package/dist/field/features/BlockQuote/markdownTransformer.d.ts.map +0 -1
  665. package/dist/field/features/BlockQuote/markdownTransformer.js +0 -50
  666. package/dist/field/features/Blocks/component/BlockContent.d.ts +0 -20
  667. package/dist/field/features/Blocks/component/BlockContent.d.ts.map +0 -1
  668. package/dist/field/features/Blocks/component/BlockContent.js +0 -220
  669. package/dist/field/features/Blocks/component/FormSavePlugin.d.ts +0 -11
  670. package/dist/field/features/Blocks/component/FormSavePlugin.d.ts.map +0 -1
  671. package/dist/field/features/Blocks/component/FormSavePlugin.js +0 -34
  672. package/dist/field/features/Blocks/component/index.d.ts +0 -15
  673. package/dist/field/features/Blocks/component/index.d.ts.map +0 -1
  674. package/dist/field/features/Blocks/component/index.js +0 -150
  675. package/dist/field/features/Blocks/component/index.scss +0 -153
  676. package/dist/field/features/Blocks/drawer/index.d.ts.map +0 -1
  677. package/dist/field/features/Blocks/drawer/index.js +0 -140
  678. package/dist/field/features/Blocks/index.d.ts +0 -7
  679. package/dist/field/features/Blocks/index.d.ts.map +0 -1
  680. package/dist/field/features/Blocks/index.js +0 -147
  681. package/dist/field/features/Blocks/nodes/BlocksNode.d.ts.map +0 -1
  682. package/dist/field/features/Blocks/nodes/BlocksNode.js +0 -173
  683. package/dist/field/features/Blocks/plugin/commands.d.ts.map +0 -1
  684. package/dist/field/features/Blocks/plugin/commands.js +0 -14
  685. package/dist/field/features/Blocks/plugin/index.d.ts +0 -5
  686. package/dist/field/features/Blocks/plugin/index.d.ts.map +0 -1
  687. package/dist/field/features/Blocks/plugin/index.js +0 -91
  688. package/dist/field/features/Blocks/populationPromise.d.ts +0 -5
  689. package/dist/field/features/Blocks/populationPromise.d.ts.map +0 -1
  690. package/dist/field/features/Blocks/populationPromise.js +0 -55
  691. package/dist/field/features/Blocks/utils/transformInputFormData.d.ts +0 -11
  692. package/dist/field/features/Blocks/utils/transformInputFormData.d.ts.map +0 -1
  693. package/dist/field/features/Blocks/utils/transformInputFormData.js +0 -35
  694. package/dist/field/features/Blocks/utils/transformInputFormSchema.d.ts +0 -3
  695. package/dist/field/features/Blocks/utils/transformInputFormSchema.d.ts.map +0 -1
  696. package/dist/field/features/Blocks/utils/transformInputFormSchema.js +0 -43
  697. package/dist/field/features/Blocks/validate.d.ts +0 -5
  698. package/dist/field/features/Blocks/validate.d.ts.map +0 -1
  699. package/dist/field/features/Blocks/validate.js +0 -62
  700. package/dist/field/features/Heading/index.d.ts +0 -8
  701. package/dist/field/features/Heading/index.d.ts.map +0 -1
  702. package/dist/field/features/Heading/index.js +0 -164
  703. package/dist/field/features/Heading/markdownTransformer.d.ts.map +0 -1
  704. package/dist/field/features/Heading/markdownTransformer.js +0 -39
  705. package/dist/field/features/Link/drawer/baseFields.d.ts.map +0 -1
  706. package/dist/field/features/Link/drawer/baseFields.js +0 -128
  707. package/dist/field/features/Link/drawer/index.d.ts.map +0 -1
  708. package/dist/field/features/Link/drawer/index.js +0 -40
  709. package/dist/field/features/Link/drawer/index.scss +0 -50
  710. package/dist/field/features/Link/drawer/types.d.ts +0 -8
  711. package/dist/field/features/Link/drawer/types.d.ts.map +0 -1
  712. package/dist/field/features/Link/drawer/types.js +0 -6
  713. package/dist/field/features/Link/index.d.ts +0 -33
  714. package/dist/field/features/Link/index.d.ts.map +0 -1
  715. package/dist/field/features/Link/index.js +0 -201
  716. package/dist/field/features/Link/nodes/AutoLinkNode.d.ts +0 -16
  717. package/dist/field/features/Link/nodes/AutoLinkNode.d.ts.map +0 -1
  718. package/dist/field/features/Link/nodes/AutoLinkNode.js +0 -79
  719. package/dist/field/features/Link/nodes/LinkNode.d.ts +0 -50
  720. package/dist/field/features/Link/nodes/LinkNode.d.ts.map +0 -1
  721. package/dist/field/features/Link/nodes/LinkNode.js +0 -326
  722. package/dist/field/features/Link/plugins/autoLink/index.d.ts +0 -19
  723. package/dist/field/features/Link/plugins/autoLink/index.d.ts.map +0 -1
  724. package/dist/field/features/Link/plugins/autoLink/index.js +0 -336
  725. package/dist/field/features/Link/plugins/clickableLink/index.d.ts.map +0 -1
  726. package/dist/field/features/Link/plugins/clickableLink/index.js +0 -23
  727. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  728. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -14
  729. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -6
  730. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  731. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -336
  732. package/dist/field/features/Link/plugins/floatingLinkEditor/index.d.ts +0 -7
  733. package/dist/field/features/Link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  734. package/dist/field/features/Link/plugins/floatingLinkEditor/index.js +0 -65
  735. package/dist/field/features/Link/plugins/floatingLinkEditor/index.scss +0 -78
  736. package/dist/field/features/Link/plugins/floatingLinkEditor/types.d.ts +0 -13
  737. package/dist/field/features/Link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  738. package/dist/field/features/Link/plugins/floatingLinkEditor/types.js +0 -6
  739. package/dist/field/features/Link/plugins/floatingLinkEditor/utilities.d.ts +0 -12
  740. package/dist/field/features/Link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  741. package/dist/field/features/Link/plugins/floatingLinkEditor/utilities.js +0 -45
  742. package/dist/field/features/Link/plugins/link/index.d.ts.map +0 -1
  743. package/dist/field/features/Link/plugins/link/index.js +0 -69
  744. package/dist/field/features/Link/populationPromise.d.ts +0 -5
  745. package/dist/field/features/Link/populationPromise.d.ts.map +0 -1
  746. package/dist/field/features/Link/populationPromise.js +0 -56
  747. package/dist/field/features/Paragraph/index.d.ts +0 -3
  748. package/dist/field/features/Paragraph/index.d.ts.map +0 -1
  749. package/dist/field/features/Paragraph/index.js +0 -114
  750. package/dist/field/features/Relationship/drawer/commands.d.ts.map +0 -1
  751. package/dist/field/features/Relationship/drawer/commands.js +0 -14
  752. package/dist/field/features/Relationship/drawer/index.d.ts.map +0 -1
  753. package/dist/field/features/Relationship/drawer/index.js +0 -130
  754. package/dist/field/features/Relationship/index.d.ts +0 -18
  755. package/dist/field/features/Relationship/index.d.ts.map +0 -1
  756. package/dist/field/features/Relationship/index.js +0 -115
  757. package/dist/field/features/Relationship/nodes/RelationshipNode.d.ts.map +0 -1
  758. package/dist/field/features/Relationship/nodes/RelationshipNode.js +0 -172
  759. package/dist/field/features/Relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  760. package/dist/field/features/Relationship/nodes/components/RelationshipComponent.js +0 -161
  761. package/dist/field/features/Relationship/nodes/components/index.scss +0 -97
  762. package/dist/field/features/Relationship/plugins/index.d.ts +0 -7
  763. package/dist/field/features/Relationship/plugins/index.d.ts.map +0 -1
  764. package/dist/field/features/Relationship/plugins/index.js +0 -107
  765. package/dist/field/features/Relationship/populationPromise.d.ts.map +0 -1
  766. package/dist/field/features/Relationship/populationPromise.js +0 -34
  767. package/dist/field/features/Relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  768. package/dist/field/features/Relationship/utils/EnabledRelationshipsCondition.js +0 -84
  769. package/dist/field/features/Upload/component/ExtraFieldsDrawer/index.d.ts.map +0 -1
  770. package/dist/field/features/Upload/component/ExtraFieldsDrawer/index.js +0 -148
  771. package/dist/field/features/Upload/component/index.d.ts.map +0 -1
  772. package/dist/field/features/Upload/component/index.js +0 -191
  773. package/dist/field/features/Upload/component/index.scss +0 -152
  774. package/dist/field/features/Upload/drawer/commands.d.ts.map +0 -1
  775. package/dist/field/features/Upload/drawer/commands.js +0 -14
  776. package/dist/field/features/Upload/drawer/index.d.ts.map +0 -1
  777. package/dist/field/features/Upload/drawer/index.js +0 -127
  778. package/dist/field/features/Upload/index.d.ts +0 -11
  779. package/dist/field/features/Upload/index.d.ts.map +0 -1
  780. package/dist/field/features/Upload/index.js +0 -168
  781. package/dist/field/features/Upload/nodes/UploadNode.d.ts +0 -47
  782. package/dist/field/features/Upload/nodes/UploadNode.d.ts.map +0 -1
  783. package/dist/field/features/Upload/nodes/UploadNode.js +0 -160
  784. package/dist/field/features/Upload/plugin/index.d.ts.map +0 -1
  785. package/dist/field/features/Upload/plugin/index.js +0 -111
  786. package/dist/field/features/Upload/populationPromise.d.ts +0 -5
  787. package/dist/field/features/Upload/populationPromise.d.ts.map +0 -1
  788. package/dist/field/features/Upload/populationPromise.js +0 -56
  789. package/dist/field/features/Upload/validate.d.ts.map +0 -1
  790. package/dist/field/features/Upload/validate.js +0 -29
  791. package/dist/field/features/align/index.d.ts +0 -3
  792. package/dist/field/features/align/index.d.ts.map +0 -1
  793. package/dist/field/features/align/index.js +0 -121
  794. package/dist/field/features/converters/html/index.d.ts +0 -13
  795. package/dist/field/features/converters/html/index.d.ts.map +0 -1
  796. package/dist/field/features/converters/html/index.js +0 -25
  797. package/dist/field/features/debug/TestRecorder/index.d.ts +0 -3
  798. package/dist/field/features/debug/TestRecorder/index.d.ts.map +0 -1
  799. package/dist/field/features/debug/TestRecorder/index.js +0 -70
  800. package/dist/field/features/debug/TestRecorder/plugin/index.d.ts.map +0 -1
  801. package/dist/field/features/debug/TestRecorder/plugin/index.js +0 -500
  802. package/dist/field/features/debug/TestRecorder/plugin/index.scss +0 -51
  803. package/dist/field/features/debug/TreeView/index.d.ts +0 -3
  804. package/dist/field/features/debug/TreeView/index.d.ts.map +0 -1
  805. package/dist/field/features/debug/TreeView/index.js +0 -70
  806. package/dist/field/features/debug/TreeView/plugin.d.ts +0 -4
  807. package/dist/field/features/debug/TreeView/plugin.d.ts.map +0 -1
  808. package/dist/field/features/debug/TreeView/plugin.js +0 -70
  809. package/dist/field/features/format/Bold/index.d.ts +0 -3
  810. package/dist/field/features/format/Bold/index.d.ts.map +0 -1
  811. package/dist/field/features/format/Bold/index.js +0 -98
  812. package/dist/field/features/format/Bold/markdownTransformers.d.ts.map +0 -1
  813. package/dist/field/features/format/Bold/markdownTransformers.js +0 -58
  814. package/dist/field/features/format/InlineCode/index.d.ts +0 -3
  815. package/dist/field/features/format/InlineCode/index.d.ts.map +0 -1
  816. package/dist/field/features/format/InlineCode/index.js +0 -90
  817. package/dist/field/features/format/InlineCode/markdownTransformers.d.ts.map +0 -1
  818. package/dist/field/features/format/InlineCode/markdownTransformers.js +0 -19
  819. package/dist/field/features/format/Italic/index.d.ts +0 -3
  820. package/dist/field/features/format/Italic/index.d.ts.map +0 -1
  821. package/dist/field/features/format/Italic/index.js +0 -91
  822. package/dist/field/features/format/Italic/markdownTransformers.d.ts.map +0 -1
  823. package/dist/field/features/format/Italic/markdownTransformers.js +0 -35
  824. package/dist/field/features/format/strikethrough/index.d.ts +0 -3
  825. package/dist/field/features/format/strikethrough/index.d.ts.map +0 -1
  826. package/dist/field/features/format/strikethrough/index.js +0 -90
  827. package/dist/field/features/format/subscript/index.d.ts +0 -3
  828. package/dist/field/features/format/subscript/index.d.ts.map +0 -1
  829. package/dist/field/features/format/subscript/index.js +0 -86
  830. package/dist/field/features/format/superscript/index.d.ts +0 -3
  831. package/dist/field/features/format/superscript/index.d.ts.map +0 -1
  832. package/dist/field/features/format/superscript/index.js +0 -86
  833. package/dist/field/features/format/underline/index.d.ts +0 -3
  834. package/dist/field/features/format/underline/index.d.ts.map +0 -1
  835. package/dist/field/features/format/underline/index.js +0 -86
  836. package/dist/field/features/indent/index.d.ts +0 -3
  837. package/dist/field/features/indent/index.d.ts.map +0 -1
  838. package/dist/field/features/indent/index.js +0 -114
  839. package/dist/field/features/indent/plugin.d.ts +0 -3
  840. package/dist/field/features/indent/plugin.d.ts.map +0 -1
  841. package/dist/field/features/indent/plugin.js +0 -17
  842. package/dist/field/features/lists/CheckList/index.d.ts +0 -3
  843. package/dist/field/features/lists/CheckList/index.d.ts.map +0 -1
  844. package/dist/field/features/lists/CheckList/index.js +0 -135
  845. package/dist/field/features/lists/CheckList/markdownTransformers.d.ts.map +0 -1
  846. package/dist/field/features/lists/CheckList/markdownTransformers.js +0 -26
  847. package/dist/field/features/lists/CheckList/plugin/index.d.ts.map +0 -1
  848. package/dist/field/features/lists/CheckList/plugin/index.js +0 -23
  849. package/dist/field/features/lists/OrderedList/index.d.ts +0 -3
  850. package/dist/field/features/lists/OrderedList/index.d.ts.map +0 -1
  851. package/dist/field/features/lists/OrderedList/index.js +0 -133
  852. package/dist/field/features/lists/OrderedList/markdownTransformer.d.ts.map +0 -1
  853. package/dist/field/features/lists/OrderedList/markdownTransformer.js +0 -26
  854. package/dist/field/features/lists/UnorderedList/index.d.ts +0 -3
  855. package/dist/field/features/lists/UnorderedList/index.d.ts.map +0 -1
  856. package/dist/field/features/lists/UnorderedList/index.js +0 -133
  857. package/dist/field/features/lists/UnorderedList/markdownTransformer.d.ts.map +0 -1
  858. package/dist/field/features/lists/UnorderedList/markdownTransformer.js +0 -26
  859. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/heading.d.ts +0 -3
  860. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/heading.d.ts.map +0 -1
  861. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/heading.js +0 -30
  862. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/link.d.ts +0 -3
  863. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/link.d.ts.map +0 -1
  864. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/link.js +0 -41
  865. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/list.d.ts +0 -3
  866. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/list.d.ts.map +0 -1
  867. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/list.js +0 -32
  868. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/listItem.d.ts +0 -3
  869. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/listItem.d.ts.map +0 -1
  870. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/listItem.js +0 -32
  871. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/quote.d.ts +0 -3
  872. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/quote.d.ts.map +0 -1
  873. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/quote.js +0 -30
  874. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/unknown.d.ts +0 -3
  875. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/unknown.d.ts.map +0 -1
  876. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/unknown.js +0 -36
  877. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/upload.d.ts +0 -3
  878. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/upload.d.ts.map +0 -1
  879. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/upload.js +0 -35
  880. package/dist/field/features/migrations/LexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  881. package/dist/field/features/migrations/LexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  882. package/dist/field/features/migrations/LexicalPluginToLexical/converter/defaultConverters.js +0 -28
  883. package/dist/field/features/migrations/LexicalPluginToLexical/converter/index.d.ts +0 -18
  884. package/dist/field/features/migrations/LexicalPluginToLexical/converter/index.d.ts.map +0 -1
  885. package/dist/field/features/migrations/LexicalPluginToLexical/converter/index.js +0 -90
  886. package/dist/field/features/migrations/LexicalPluginToLexical/converter/types.d.ts +0 -20
  887. package/dist/field/features/migrations/LexicalPluginToLexical/converter/types.d.ts.map +0 -1
  888. package/dist/field/features/migrations/LexicalPluginToLexical/converter/types.js +0 -6
  889. package/dist/field/features/migrations/LexicalPluginToLexical/index.d.ts +0 -10
  890. package/dist/field/features/migrations/LexicalPluginToLexical/index.d.ts.map +0 -1
  891. package/dist/field/features/migrations/LexicalPluginToLexical/index.js +0 -50
  892. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  893. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -23
  894. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  895. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -131
  896. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -16
  897. package/dist/field/features/migrations/SlateToLexical/converter/converters/blockquote.d.ts +0 -3
  898. package/dist/field/features/migrations/SlateToLexical/converter/converters/blockquote.d.ts.map +0 -1
  899. package/dist/field/features/migrations/SlateToLexical/converter/converters/blockquote.js +0 -33
  900. package/dist/field/features/migrations/SlateToLexical/converter/converters/heading.d.ts +0 -3
  901. package/dist/field/features/migrations/SlateToLexical/converter/converters/heading.d.ts.map +0 -1
  902. package/dist/field/features/migrations/SlateToLexical/converter/converters/heading.js +0 -39
  903. package/dist/field/features/migrations/SlateToLexical/converter/converters/indent.d.ts +0 -3
  904. package/dist/field/features/migrations/SlateToLexical/converter/converters/indent.d.ts.map +0 -1
  905. package/dist/field/features/migrations/SlateToLexical/converter/converters/indent.js +0 -57
  906. package/dist/field/features/migrations/SlateToLexical/converter/converters/link.d.ts +0 -3
  907. package/dist/field/features/migrations/SlateToLexical/converter/converters/link.d.ts.map +0 -1
  908. package/dist/field/features/migrations/SlateToLexical/converter/converters/link.js +0 -40
  909. package/dist/field/features/migrations/SlateToLexical/converter/converters/listItem.d.ts +0 -3
  910. package/dist/field/features/migrations/SlateToLexical/converter/converters/listItem.d.ts.map +0 -1
  911. package/dist/field/features/migrations/SlateToLexical/converter/converters/listItem.js +0 -35
  912. package/dist/field/features/migrations/SlateToLexical/converter/converters/orderedList.d.ts +0 -3
  913. package/dist/field/features/migrations/SlateToLexical/converter/converters/orderedList.d.ts.map +0 -1
  914. package/dist/field/features/migrations/SlateToLexical/converter/converters/orderedList.js +0 -36
  915. package/dist/field/features/migrations/SlateToLexical/converter/converters/relationship.d.ts +0 -3
  916. package/dist/field/features/migrations/SlateToLexical/converter/converters/relationship.d.ts.map +0 -1
  917. package/dist/field/features/migrations/SlateToLexical/converter/converters/relationship.js +0 -28
  918. package/dist/field/features/migrations/SlateToLexical/converter/converters/unknown.d.ts +0 -3
  919. package/dist/field/features/migrations/SlateToLexical/converter/converters/unknown.d.ts.map +0 -1
  920. package/dist/field/features/migrations/SlateToLexical/converter/converters/unknown.js +0 -37
  921. package/dist/field/features/migrations/SlateToLexical/converter/converters/unorderedList.d.ts +0 -3
  922. package/dist/field/features/migrations/SlateToLexical/converter/converters/unorderedList.d.ts.map +0 -1
  923. package/dist/field/features/migrations/SlateToLexical/converter/converters/unorderedList.js +0 -36
  924. package/dist/field/features/migrations/SlateToLexical/converter/converters/upload.d.ts +0 -3
  925. package/dist/field/features/migrations/SlateToLexical/converter/converters/upload.d.ts.map +0 -1
  926. package/dist/field/features/migrations/SlateToLexical/converter/converters/upload.js +0 -31
  927. package/dist/field/features/migrations/SlateToLexical/converter/defaultConverters.d.ts +0 -3
  928. package/dist/field/features/migrations/SlateToLexical/converter/defaultConverters.d.ts.map +0 -1
  929. package/dist/field/features/migrations/SlateToLexical/converter/defaultConverters.js +0 -34
  930. package/dist/field/features/migrations/SlateToLexical/converter/index.d.ts +0 -19
  931. package/dist/field/features/migrations/SlateToLexical/converter/index.d.ts.map +0 -1
  932. package/dist/field/features/migrations/SlateToLexical/converter/index.js +0 -131
  933. package/dist/field/features/migrations/SlateToLexical/converter/types.d.ts +0 -16
  934. package/dist/field/features/migrations/SlateToLexical/converter/types.d.ts.map +0 -1
  935. package/dist/field/features/migrations/SlateToLexical/converter/types.js +0 -6
  936. package/dist/field/features/migrations/SlateToLexical/index.d.ts +0 -10
  937. package/dist/field/features/migrations/SlateToLexical/index.d.ts.map +0 -1
  938. package/dist/field/features/migrations/SlateToLexical/index.js +0 -50
  939. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  940. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/Component.js +0 -23
  941. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  942. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/index.js +0 -131
  943. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/index.scss +0 -16
  944. package/dist/field/lexical/config/EditorConfigProvider.d.ts +0 -16
  945. package/dist/field/lexical/config/EditorConfigProvider.d.ts.map +0 -1
  946. package/dist/field/lexical/config/EditorConfigProvider.js +0 -99
  947. package/dist/field/lexical/config/default.d.ts +0 -6
  948. package/dist/field/lexical/config/default.d.ts.map +0 -1
  949. package/dist/field/lexical/config/default.js +0 -112
  950. package/dist/field/lexical/config/defaultClient.d.ts +0 -3
  951. package/dist/field/lexical/config/defaultClient.d.ts.map +0 -1
  952. package/dist/field/lexical/config/defaultClient.js +0 -17
  953. package/dist/field/lexical/config/loader.d.ts +0 -7
  954. package/dist/field/lexical/config/loader.d.ts.map +0 -1
  955. package/dist/field/lexical/config/loader.js +0 -133
  956. package/dist/field/lexical/config/sanitize.d.ts +0 -5
  957. package/dist/field/lexical/config/sanitize.d.ts.map +0 -1
  958. package/dist/field/lexical/config/sanitize.js +0 -170
  959. /package/dist/field/features/{BlockQuote → blockquote}/markdownTransformer.d.ts +0 -0
  960. /package/dist/field/features/{Blocks → blocks}/drawer/index.d.ts +0 -0
  961. /package/dist/field/features/{Blocks → blocks}/nodes/BlocksNode.d.ts +0 -0
  962. /package/dist/field/features/{Blocks → blocks}/plugin/commands.d.ts +0 -0
  963. /package/dist/field/features/debug/{TestRecorder → testrecorder}/plugin/index.d.ts +0 -0
  964. /package/dist/field/features/debug/{TreeView → treeview/plugin}/index.scss +0 -0
  965. /package/dist/field/features/format/{Bold → bold}/markdownTransformers.d.ts +0 -0
  966. /package/dist/field/features/format/{InlineCode → inlinecode}/markdownTransformers.d.ts +0 -0
  967. /package/dist/field/features/format/{Italic → italic}/markdownTransformers.d.ts +0 -0
  968. /package/dist/field/features/{Heading → heading}/markdownTransformer.d.ts +0 -0
  969. /package/dist/field/features/{Link → link}/drawer/baseFields.d.ts +0 -0
  970. /package/dist/field/features/{Link → link}/drawer/index.d.ts +0 -0
  971. /package/dist/field/features/{Link → link}/plugins/clickableLink/index.d.ts +0 -0
  972. /package/dist/field/features/{Link → link}/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  973. /package/dist/field/features/{Link → link}/plugins/link/index.d.ts +0 -0
  974. /package/dist/field/features/lists/{CheckList → checklist}/markdownTransformers.d.ts +0 -0
  975. /package/dist/field/features/lists/{CheckList → checklist}/plugin/index.d.ts +0 -0
  976. /package/dist/field/features/lists/{OrderedList → orderedlist}/markdownTransformer.d.ts +0 -0
  977. /package/dist/field/features/lists/{UnorderedList → unorderedlist}/markdownTransformer.d.ts +0 -0
  978. /package/dist/field/features/migrations/{LexicalPluginToLexical → lexicalPluginToLexical}/nodes/unknownConvertedNode/Component.d.ts +0 -0
  979. /package/dist/field/features/migrations/{LexicalPluginToLexical → lexicalPluginToLexical}/nodes/unknownConvertedNode/index.d.ts +0 -0
  980. /package/dist/field/features/migrations/{SlateToLexical → slateToLexical}/nodes/unknownConvertedNode/Component.d.ts +0 -0
  981. /package/dist/field/features/migrations/{SlateToLexical → slateToLexical}/nodes/unknownConvertedNode/index.d.ts +0 -0
  982. /package/dist/field/features/{Relationship → relationship}/drawer/commands.d.ts +0 -0
  983. /package/dist/field/features/{Relationship → relationship}/drawer/index.d.ts +0 -0
  984. /package/dist/field/features/{Relationship → relationship}/nodes/RelationshipNode.d.ts +0 -0
  985. /package/dist/field/features/{Relationship → relationship}/nodes/components/RelationshipComponent.d.ts +0 -0
  986. /package/dist/field/features/{Relationship → relationship}/populationPromise.d.ts +0 -0
  987. /package/dist/field/features/{Relationship → relationship}/utils/EnabledRelationshipsCondition.d.ts +0 -0
  988. /package/dist/field/features/{Upload → upload}/component/ExtraFieldsDrawer/index.d.ts +0 -0
  989. /package/dist/field/features/{Upload → upload}/component/index.d.ts +0 -0
  990. /package/dist/field/features/{Upload → upload}/drawer/commands.d.ts +0 -0
  991. /package/dist/field/features/{Upload → upload}/drawer/index.d.ts +0 -0
  992. /package/dist/field/features/{Upload → upload}/plugin/index.d.ts +0 -0
  993. /package/dist/field/features/{Upload → upload}/validate.d.ts +0 -0
@@ -1,150 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "BlockComponent", {
7
- enumerable: true,
8
- get: function() {
9
- return BlockComponent;
10
- }
11
- });
12
- const _forms = require("payload/components/forms");
13
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
14
- const _utilities = require("payload/components/utilities");
15
- const _config = require("payload/config");
16
- const _reacti18next = require("react-i18next");
17
- const _EditorConfigProvider = require("../../../lexical/config/EditorConfigProvider");
18
- const _transformInputFormSchema = require("../utils/transformInputFormSchema");
19
- const _BlockContent = require("./BlockContent");
20
- require("./index.scss");
21
- function _getRequireWildcardCache(nodeInterop) {
22
- if (typeof WeakMap !== "function") return null;
23
- var cacheBabelInterop = new WeakMap();
24
- var cacheNodeInterop = new WeakMap();
25
- return (_getRequireWildcardCache = function(nodeInterop) {
26
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
27
- })(nodeInterop);
28
- }
29
- function _interop_require_wildcard(obj, nodeInterop) {
30
- if (!nodeInterop && obj && obj.__esModule) {
31
- return obj;
32
- }
33
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
34
- return {
35
- default: obj
36
- };
37
- }
38
- var cache = _getRequireWildcardCache(nodeInterop);
39
- if (cache && cache.has(obj)) {
40
- return cache.get(obj);
41
- }
42
- var newObj = {
43
- __proto__: null
44
- };
45
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
46
- for(var key in obj){
47
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
48
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
49
- if (desc && (desc.get || desc.set)) {
50
- Object.defineProperty(newObj, key, desc);
51
- } else {
52
- newObj[key] = obj[key];
53
- }
54
- }
55
- }
56
- newObj.default = obj;
57
- if (cache) {
58
- cache.set(obj, newObj);
59
- }
60
- return newObj;
61
- }
62
- const baseClass = 'lexical-block';
63
- const BlockComponent = (props)=>{
64
- const { blockFieldWrapperName, formData, nodeKey } = props;
65
- const payloadConfig = (0, _utilities.useConfig)();
66
- const submitted = (0, _forms.useFormSubmitted)();
67
- const { editorConfig, field: parentLexicalRichTextField } = (0, _EditorConfigProvider.useEditorConfigContext)();
68
- const block = editorConfig?.resolvedFeatureMap?.get('blocks')?.props?.blocks?.find((block)=>block.slug === formData?.blockType);
69
- const unsanitizedFormSchema = block?.fields || [];
70
- // Sanitize block's fields here. This is done here and not in the feature, because the payload config is available here
71
- const validRelationships = payloadConfig.collections.map((c)=>c.slug) || [];
72
- const formSchema = (0, _transformInputFormSchema.transformInputFormSchema)((0, _config.sanitizeFields)({
73
- config: payloadConfig,
74
- fields: unsanitizedFormSchema,
75
- validRelationships
76
- }), blockFieldWrapperName);
77
- const initialStateRef = _react.default.useRef(null) // Store initial value in a ref, so it doesn't change on re-render and only gets initialized once
78
- ;
79
- const config = (0, _utilities.useConfig)();
80
- const { t } = (0, _reacti18next.useTranslation)('general');
81
- const { code: locale } = (0, _utilities.useLocale)();
82
- const { getDocPreferences } = (0, _utilities.useDocumentInfo)();
83
- // initialState State
84
- const [initialState, setInitialState] = _react.default.useState(null);
85
- (0, _react.useEffect)(()=>{
86
- async function createInitialState() {
87
- const preferences = await getDocPreferences();
88
- const stateFromSchema = await (0, _utilities.buildStateFromSchema)({
89
- config,
90
- data: JSON.parse(JSON.stringify(formData)),
91
- fieldSchema: formSchema,
92
- locale,
93
- operation: 'create',
94
- preferences,
95
- t
96
- });
97
- if (!initialStateRef.current) {
98
- initialStateRef.current = (0, _forms.buildInitialState)(JSON.parse(JSON.stringify(formData)));
99
- }
100
- // We have to merge the output of buildInitialState (above this useEffect) with the output of buildStateFromSchema.
101
- // That's because the output of buildInitialState provides important properties necessary for THIS block,
102
- // like blockName, blockType and id, while buildStateFromSchema provides the correct output of this block's data,
103
- // e.g. if this block has a sub-block (like the `rows` property)
104
- const consolidatedInitialState = {
105
- ...initialStateRef.current,
106
- ...stateFromSchema
107
- };
108
- // We need to delete consolidatedInitialState[blockFieldWrapperName] - it's an unnecessary property.
109
- // It causes issues when we later use reduceFieldsToValues in the FormSavePlugin, because that may
110
- // cause some sub-fields to "use" the wrong value from the blockFieldWrapperName property (which shouldn't be there)
111
- // This fixes the 'should respect row removal in nested array field' fields lexical e2e test
112
- delete consolidatedInitialState[blockFieldWrapperName];
113
- setInitialState(consolidatedInitialState);
114
- }
115
- void createInitialState();
116
- }, [
117
- setInitialState,
118
- config,
119
- locale,
120
- getDocPreferences,
121
- t
122
- ]) // do not add formData or formSchema here, it causes an endless loop
123
- ;
124
- // Memoized Form JSX
125
- const formContent = (0, _react.useMemo)(()=>{
126
- return block && initialState && /*#__PURE__*/ _react.default.createElement(_forms.Form, {
127
- fields: formSchema,
128
- initialState: initialState,
129
- submitted: submitted
130
- }, /*#__PURE__*/ _react.default.createElement(_BlockContent.BlockContent, {
131
- baseClass: baseClass,
132
- block: block,
133
- field: parentLexicalRichTextField,
134
- formData: formData,
135
- formSchema: formSchema,
136
- nodeKey: nodeKey
137
- }));
138
- }, [
139
- block,
140
- parentLexicalRichTextField,
141
- nodeKey,
142
- submitted,
143
- initialState
144
- ]);
145
- return /*#__PURE__*/ _react.default.createElement("div", {
146
- className: baseClass
147
- }, formContent);
148
- };
149
-
150
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9maWVsZC9mZWF0dXJlcy9CbG9ja3MvY29tcG9uZW50L2luZGV4LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcbmltcG9ydCB7IEZvcm0sIGJ1aWxkSW5pdGlhbFN0YXRlLCB1c2VGb3JtU3VibWl0dGVkIH0gZnJvbSAncGF5bG9hZC9jb21wb25lbnRzL2Zvcm1zJ1xuaW1wb3J0IFJlYWN0LCB7IHVzZUVmZmVjdCwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0J1xuXG5pbXBvcnQgeyB0eXB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DLFNBQ0EyQiw4QkFDRSw2QkFBQ21CLFdBQUk7WUFBQ3RDLFFBQVFLO1lBQVljLGNBQWNBO1lBQWNqQyxXQUFXQTt5QkFDL0QsNkJBQUNxRCwwQkFBWTtZQUNYNUQsV0FBV0E7WUFDWGEsT0FBT0E7WUFDUEgsT0FBT0M7WUFDUFIsVUFBVUE7WUFDVnVCLFlBQVlBO1lBQ1p0QixTQUFTQTs7SUFLbkIsR0FBRztRQUFDUztRQUFPRjtRQUE0QlA7UUFBU0c7UUFBV2lDO0tBQWE7SUFFeEUscUJBQU8sNkJBQUNxQjtRQUFJQyxXQUFXOUQ7T0FBWXlEO0FBQ3JDIn0=
@@ -1,153 +0,0 @@
1
- @import 'payload/scss';
2
-
3
- .ContentEditable__root > div:has(.lexical-block) {
4
- // Fixes a bug where, if the block field has a Select field, the Select field's dropdown menu would be hidden behind the lexical editor.
5
- z-index: 1;
6
- }
7
-
8
- .lexical-block {
9
- display: flex;
10
- flex-direction: column;
11
- gap: calc(var(--base) / 2);
12
- font-family: var(
13
- --font-body
14
- ); // Reset font to non-serif, body font, as the lexical editor parent uses a serif font.
15
-
16
- margin: 0 0 1.5em;
17
-
18
- &__header {
19
- h3 {
20
- margin: 0;
21
- }
22
- }
23
-
24
- &__header-wrap {
25
- display: flex;
26
- align-items: flex-end;
27
- width: 100%;
28
- justify-content: space-between;
29
- }
30
-
31
- &__heading-with-error {
32
- display: flex;
33
- align-items: center;
34
- gap: base(0.5);
35
- }
36
-
37
- &--has-no-error {
38
- > .array-field__header .array-field__heading-with-error {
39
- color: var(--theme-text);
40
- }
41
- }
42
-
43
- &--has-error {
44
- > .array-field__header {
45
- color: var(--theme-error-500);
46
- }
47
- }
48
-
49
- &__error-pill {
50
- align-self: center;
51
- }
52
-
53
- &__header-actions {
54
- list-style: none;
55
- margin: 0;
56
- padding: 0;
57
- display: flex;
58
- }
59
-
60
- &__header-action {
61
- @extend %btn-reset;
62
- cursor: pointer;
63
- margin-left: base(0.5);
64
-
65
- &:hover,
66
- &:focus-visible {
67
- text-decoration: underline;
68
- }
69
- }
70
-
71
- .collapsible {
72
- &__header-wrap {
73
- // Make more space for the block header (default right: is base(3)) so that the remove button aligns nicely to the right
74
- right: base(1.5);
75
- }
76
- }
77
-
78
- &__removeButton.btn {
79
- margin: 0;
80
- }
81
-
82
- &__block-header {
83
- pointer-events: none;
84
- }
85
-
86
- &__block-header * {
87
- pointer-events: all;
88
- }
89
-
90
- &__block-header,
91
- &__block-header > div {
92
- display: flex;
93
- max-width: 100%;
94
- overflow: hidden;
95
- gap: base(0.375);
96
- justify-content: space-between;
97
- }
98
-
99
- &__block-number {
100
- flex-shrink: 0;
101
- }
102
-
103
- &__block-pill {
104
- flex-shrink: 0;
105
- display: block;
106
- line-height: unset;
107
- }
108
-
109
- &__error-wrap {
110
- position: relative;
111
- }
112
-
113
- &__rows {
114
- display: flex;
115
- flex-direction: column;
116
- gap: calc(var(--base) / 2);
117
- }
118
-
119
- &__drawer-toggler {
120
- background-color: transparent;
121
- margin: 0;
122
- padding: 0;
123
- border: none;
124
- align-self: flex-start;
125
-
126
- .btn {
127
- color: var(--theme-elevation-400);
128
- margin: 0;
129
-
130
- &:hover {
131
- color: var(--theme-elevation-800);
132
- }
133
- }
134
- }
135
- }
136
-
137
- html[data-theme='light'] {
138
- .blocks-field--has-error {
139
- .section-title__input,
140
- .blocks-field__heading-with-error {
141
- color: var(--theme-error-750);
142
- }
143
- }
144
- }
145
-
146
- html[data-theme='dark'] {
147
- .blocks-field--has-error {
148
- .section-title__input,
149
- .blocks-field__heading-with-error {
150
- color: var(--theme-error-500);
151
- }
152
- }
153
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/Blocks/drawer/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,cAAc,EAGpB,MAAM,SAAS,CAAA;AAIhB,OAAO,KAA2C,MAAM,OAAO,CAAA;AAU/D,eAAO,MAAM,gCAAgC,EAAE,cAAc,CAAC;IAC5D,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,KAAK,CAAA;CACrC,CAAqD,CAAA;AAiCtD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAwDzC,CAAA"}
@@ -1,140 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- function _export(target, all) {
7
- for(var name in all)Object.defineProperty(target, name, {
8
- enumerable: true,
9
- get: all[name]
10
- });
11
- }
12
- _export(exports, {
13
- BlocksDrawerComponent: function() {
14
- return BlocksDrawerComponent;
15
- },
16
- INSERT_BLOCK_WITH_DRAWER_COMMAND: function() {
17
- return INSERT_BLOCK_WITH_DRAWER_COMMAND;
18
- }
19
- });
20
- const _modal = require("@faceless-ui/modal");
21
- const _LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
22
- const _lexical = require("lexical");
23
- const _elements = require("payload/components/elements");
24
- const _Blocks = require("payload/components/fields/Blocks");
25
- const _utilities = require("payload/components/utilities");
26
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
27
- const _reacti18next = require("react-i18next");
28
- const _EditorConfigProvider = require("../../../lexical/config/EditorConfigProvider");
29
- const _BlocksNode = require("../nodes/BlocksNode");
30
- const _commands = require("../plugin/commands");
31
- function _getRequireWildcardCache(nodeInterop) {
32
- if (typeof WeakMap !== "function") return null;
33
- var cacheBabelInterop = new WeakMap();
34
- var cacheNodeInterop = new WeakMap();
35
- return (_getRequireWildcardCache = function(nodeInterop) {
36
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
37
- })(nodeInterop);
38
- }
39
- function _interop_require_wildcard(obj, nodeInterop) {
40
- if (!nodeInterop && obj && obj.__esModule) {
41
- return obj;
42
- }
43
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
44
- return {
45
- default: obj
46
- };
47
- }
48
- var cache = _getRequireWildcardCache(nodeInterop);
49
- if (cache && cache.has(obj)) {
50
- return cache.get(obj);
51
- }
52
- var newObj = {
53
- __proto__: null
54
- };
55
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
56
- for(var key in obj){
57
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
58
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
59
- if (desc && (desc.get || desc.set)) {
60
- Object.defineProperty(newObj, key, desc);
61
- } else {
62
- newObj[key] = obj[key];
63
- }
64
- }
65
- }
66
- newObj.default = obj;
67
- if (cache) {
68
- cache.set(obj, newObj);
69
- }
70
- return newObj;
71
- }
72
- const baseClass = 'lexical-blocks-drawer';
73
- const INSERT_BLOCK_WITH_DRAWER_COMMAND = (0, _lexical.createCommand)('INSERT_BLOCK_WITH_DRAWER_COMMAND');
74
- const insertBlock = ({ blockType, editor, replaceNodeKey })=>{
75
- if (!replaceNodeKey) {
76
- editor.dispatchCommand(_commands.INSERT_BLOCK_COMMAND, {
77
- id: null,
78
- blockName: '',
79
- blockType: blockType
80
- });
81
- } else {
82
- editor.update(()=>{
83
- const node = (0, _lexical.$getNodeByKey)(replaceNodeKey);
84
- if (node) {
85
- node.replace((0, _BlocksNode.$createBlockNode)({
86
- id: null,
87
- blockName: '',
88
- blockType: blockType
89
- }));
90
- }
91
- });
92
- }
93
- };
94
- const BlocksDrawerComponent = ()=>{
95
- const [editor] = (0, _LexicalComposerContext.useLexicalComposerContext)();
96
- const { editorConfig, uuid } = (0, _EditorConfigProvider.useEditorConfigContext)();
97
- const [replaceNodeKey, setReplaceNodeKey] = (0, _react.useState)(null);
98
- const editDepth = (0, _utilities.useEditDepth)();
99
- const { t } = (0, _reacti18next.useTranslation)('fields');
100
- const { openModal } = (0, _modal.useModal)();
101
- const labels = {
102
- plural: t('blocks') || 'Blocks',
103
- singular: t('block') || 'Block'
104
- };
105
- const addRow = (0, _react.useCallback)(async (rowIndex, blockType)=>{
106
- insertBlock({
107
- blockType: blockType,
108
- editor,
109
- replaceNodeKey
110
- });
111
- }, [
112
- editor,
113
- replaceNodeKey
114
- ]);
115
- const drawerSlug = (0, _elements.formatDrawerSlug)({
116
- depth: editDepth,
117
- slug: `lexical-rich-text-blocks-` + uuid
118
- });
119
- const blocks = editorConfig?.resolvedFeatureMap?.get('blocks')?.props?.blocks;
120
- (0, _react.useEffect)(()=>{
121
- return editor.registerCommand(INSERT_BLOCK_WITH_DRAWER_COMMAND, (payload)=>{
122
- setReplaceNodeKey(payload?.replace ? payload?.replace.nodeKey : null);
123
- openModal(drawerSlug);
124
- return true;
125
- }, _lexical.COMMAND_PRIORITY_EDITOR);
126
- }, [
127
- editor,
128
- drawerSlug,
129
- openModal
130
- ]);
131
- return /*#__PURE__*/ _react.default.createElement(_Blocks.BlocksDrawer, {
132
- addRow: addRow,
133
- addRowIndex: 0,
134
- blocks: blocks,
135
- drawerSlug: drawerSlug,
136
- labels: labels
137
- });
138
- };
139
-
140
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9maWVsZC9mZWF0dXJlcy9CbG9ja3MvZHJhd2VyL2luZGV4LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcbmltcG9ydCB7IHVzZU1vZGFsIH0gZnJvbSAnQGZhY2VsZXNzLXVpL21vZGFsJ1xuaW1wb3J0IHsgdXNlTGV4aWNhbENvbXBvc2VyQ29udGV4dCB9IGZyb20gJ0BsZXhpY2FsL3JlYWN0L0xleGljYWxDb21wb3NlckNvbnRleHQnXG5pbXBvcnQge1xuICAkZ2V0Tm9kZUJ5S2V5LFxuICBDT01NQU5EX1BSSU9SSVRZX0VESVRPUixcbiAgdHlwZSBMZXhpY2FsQ29tbWFuZCxcbiAgdHlwZSBMZXhpY2FsRWRpdG9yLFxuICBjcmVhdGVDb21tYW5kLFxufSBmcm9tICdsZXhpY2FsJ1xuaW1wb3J0IHsgZm9ybWF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QUFPckMsT0FBT3NDLGVBQWUsQ0FHM0IzQyxrQ0FDQSxDQUFDNEM7WUFDQ3hCLGtCQUFrQndCLFNBQVM5QixVQUFVOEIsU0FBUzlCLFFBQVErQixVQUFVO1lBQ2hFbkIsVUFBVVE7WUFDVixPQUFPO1FBQ1QsR0FDQVksZ0NBQXVCO0lBRTNCLEdBQUc7UUFBQ3pDO1FBQVE2QjtRQUFZUjtLQUFVO0lBRWxDLHFCQUNFLDZCQUFDcUIsb0JBQVk7UUFDWGhCLFFBQVFBO1FBQ1JpQixhQUFhO1FBQ2JWLFFBQVFBO1FBQ1JKLFlBQVlBO1FBQ1pOLFFBQVFBOztBQUdkIn0=
@@ -1,7 +0,0 @@
1
- import type { Block } from 'payload/types';
2
- import type { FeatureProvider } from '../types';
3
- export type BlocksFeatureProps = {
4
- blocks: Block[];
5
- };
6
- export declare const BlocksFeature: (props?: BlocksFeatureProps) => FeatureProvider;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/field/features/Blocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAKtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAQ/C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,WAAY,kBAAkB,KAAG,eA+E1D,CAAA"}
@@ -1,147 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "BlocksFeature", {
6
- enumerable: true,
7
- get: function() {
8
- return BlocksFeature;
9
- }
10
- });
11
- const _config = require("payload/config");
12
- const _utilities = require("payload/utilities");
13
- const _types = require("../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types");
14
- const _BlocksNode = require("./nodes/BlocksNode");
15
- const _commands = require("./plugin/commands");
16
- const _populationPromise = require("./populationPromise");
17
- const _validate = require("./validate");
18
- function _getRequireWildcardCache(nodeInterop) {
19
- if (typeof WeakMap !== "function") return null;
20
- var cacheBabelInterop = new WeakMap();
21
- var cacheNodeInterop = new WeakMap();
22
- return (_getRequireWildcardCache = function(nodeInterop) {
23
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
24
- })(nodeInterop);
25
- }
26
- function _interop_require_wildcard(obj, nodeInterop) {
27
- if (!nodeInterop && obj && obj.__esModule) {
28
- return obj;
29
- }
30
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
31
- return {
32
- default: obj
33
- };
34
- }
35
- var cache = _getRequireWildcardCache(nodeInterop);
36
- if (cache && cache.has(obj)) {
37
- return cache.get(obj);
38
- }
39
- var newObj = {
40
- __proto__: null
41
- };
42
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
43
- for(var key in obj){
44
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
45
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
46
- if (desc && (desc.get || desc.set)) {
47
- Object.defineProperty(newObj, key, desc);
48
- } else {
49
- newObj[key] = obj[key];
50
- }
51
- }
52
- }
53
- newObj.default = obj;
54
- if (cache) {
55
- cache.set(obj, newObj);
56
- }
57
- return newObj;
58
- }
59
- const BlocksFeature = (props)=>{
60
- // Sanitization taken from payload/src/fields/config/sanitize.ts
61
- if (props?.blocks?.length) {
62
- props.blocks = props.blocks.map((block)=>{
63
- return {
64
- ...block,
65
- fields: block.fields.concat(_config.baseBlockFields),
66
- labels: !block.labels ? (0, _utilities.formatLabels)(block.slug) : block.labels
67
- };
68
- });
69
- // unsanitizedBlock.fields are sanitized in the React component and not here.
70
- // That's because we do not have access to the payload config here.
71
- }
72
- return {
73
- feature: ()=>{
74
- return {
75
- generatedTypes: {
76
- modifyOutputSchema: ({ currentSchema, field, interfaceNameDefinitions })=>{
77
- const blocksField = {
78
- name: field?.name + '_lexical_blocks',
79
- blocks: props.blocks,
80
- type: 'blocks'
81
- };
82
- // This is only done so that interfaceNameDefinitions sets those block's interfaceNames.
83
- // we don't actually use the JSON Schema itself in the generated types yet.
84
- (0, _utilities.fieldsToJSONSchema)({}, [
85
- blocksField
86
- ], interfaceNameDefinitions);
87
- return currentSchema;
88
- }
89
- },
90
- nodes: [
91
- {
92
- node: _BlocksNode.BlockNode,
93
- populationPromises: [
94
- (0, _populationPromise.blockPopulationPromiseHOC)(props)
95
- ],
96
- type: _BlocksNode.BlockNode.getType(),
97
- validations: [
98
- (0, _validate.blockValidationHOC)(props)
99
- ]
100
- }
101
- ],
102
- plugins: [
103
- {
104
- Component: ()=>// @ts-expect-error
105
- Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./plugin"))).then((module)=>module.BlocksPlugin),
106
- position: 'normal'
107
- }
108
- ],
109
- props: props,
110
- slashMenu: {
111
- options: [
112
- {
113
- displayName: 'Blocks',
114
- key: 'blocks',
115
- options: [
116
- ...props.blocks.map((block)=>{
117
- return new _types.SlashMenuOption('block-' + block.slug, {
118
- Icon: ()=>// @ts-expect-error
119
- Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../../lexical/ui/icons/Block"))).then((module)=>module.BlockIcon),
120
- displayName: ({ i18n })=>{
121
- return (0, _utilities.getTranslation)(block.labels.singular, i18n);
122
- },
123
- keywords: [
124
- 'block',
125
- 'blocks',
126
- block.slug
127
- ],
128
- onSelect: ({ editor })=>{
129
- editor.dispatchCommand(_commands.INSERT_BLOCK_COMMAND, {
130
- id: null,
131
- blockName: '',
132
- blockType: block.slug
133
- });
134
- }
135
- });
136
- })
137
- ]
138
- }
139
- ]
140
- }
141
- };
142
- },
143
- key: 'blocks'
144
- };
145
- };
146
-
147
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyY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G9ubHkgZG9uZSBzbyB0aGF0IGludGVyZmFjZU5hbWVEZWZpbml0aW9ucyBzZXRzIHRob3NlIGJsb2NrJ3MgaW50ZXJmYWNlTmFtZXMuXG4gICAgICAgICAgICAvLyB3ZSBkb24ndCBhY3R1YWxseSB1c2UgdGhlIEpTT04gU2NoZW1hIGl0c2VsZiBpbiB0aGUgZ2VuZXJhdGVkIHR5cGVzIHlldC5cbiAgICAgICAgICAgIGZpZWxkc1RvSlNPTlNjaGVtYSh7fSwgW2Jsb2Nrc0ZpZWxkXSwgaW50ZXJmYWNlTmFtZURlZmluaXRpb25zKVxuXG4gICAgICAgICAgICByZXR1cm4gY3VycmVudFNjaGVtYVxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIG5vZGVzOiBbXG4gICAgICAgICAge1xuICAgICAgICAgICAgbm9kZTogQmxvY2tOb2RlLFxuICAgICAgICAgICAgcG9wdWxhdGlvblByb21pc2VzOiBbYmxvY2tQb3B1bGF0aW9uUHJvbWlzZUhPQyhwcm9wcyldLFxuICAgICAgICAgICAgdHlwZTogQmxvY2tOb2RlLmdldFR5cGUoKSxcbiAgICAgICAgICAgIHZhbGlkYXRpb25zOiBbYmxvY2tWYWxpZGF0aW9uSE9DKHByb3BzKV0sXG4gICAgICAgICAgfSxcbiAgICAgICAgXSxcbiAgICAgICAgcGx1Z2luczogW1xuICAgICAgICAgIHtcbiAgICAgICAgICAgIENvbXBvbmVudDogKCkgPT5cbiAgICAgICAgICAgICAgLy8gQHRzLWV4cGVjdC1lcnJvclxuICAgICAgICAgICAgICBpbXBvcnQoJy4vcGx1Z2luJykudGhlbigobW9kdWxlKSA9PiBtb2R1bGUuQmxvY2tzUGx1Z2luKSxcbiAgICAgICAgICAgIHBvc2l0aW9uOiAnbm9ybWFsJyxcbiAgICAgICAgICB9LFxuICAgICAgICBdLFxuICAgICAgICBwcm9wczogcHJvcHMsXG4gICAgICAgIHNsYXNoTWVudToge1xuICAgICAgICAgIG9wdGlvbnM6IFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgZGlzcGxheU5hbWU6ICdCbG9ja3MnLFxuICAgICAgICAgICAgICBrZXk6ICdibG9ja3MnLFxuICAgICAgICAgICAgICBvcHRpb25zOiBbXG4gICAgICAgICAgICAgICAgLi4ucHJvcHMuYmxvY2tzLm1hcCgoYmxvY2spID0+IHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgU2xhc2hNZW51T3B0aW9uKCdibG9jay0nICsgYmxvY2suc2x1Zywge1xuICAgICAgICAgICAgICAgICAgICBJY29uOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgICAgIC8vIEB0cy1leHBlY3QtZXJyb3JcbiAgICAgICAgICAgICAgICAgICAgICBpbXBvcnQoJy4uLy4uL2xleGljYWwvdWkvaWNvbnMvQmxvY2snKS50aGVuKChtb2R1bGUpID0+IG1vZHVsZS5CbG9ja0ljb24pLFxuICAgICAgICAgICAgICAgICAgICBkaXNwbGF5TmFtZTogKHsgaTE4biB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGdldFRyYW5zbGF0aW9uKGJsb2NrLmxhYmVscy5zaW5ndWxhciwgaTE4bilcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAga2V5d29yZHM6IFsnYmxvY2snLCAnYmxvY2tzJywgYmxvY2suc2x1Z10sXG4gICAgICAgICAgICAgICAgICAgIG9uU2VsZWN0OiAoeyBlZGl0b3IgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5kaXNwYXRjaENvbW1hbmQoSU5TRVJUX0JMT0NLX0NPTU1BTkQsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgYmxvY2tOYW1lOiAnJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGJsb2NrVHlwZTogYmxvY2suc2x1ZyxcbiAgICAgICAgICAgICAgICAg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QUFPQyxlQUFlLENBQUNDLDhCQUFvQixFQUFFO2dEQUMzQ0MsSUFBSTtnREFDSkMsV0FBVztnREFDWEMsV0FBV2hELE1BQU1NLElBQUk7NENBQ3ZCO3dDQUNGO29DQUNGO2dDQUNGOzZCQUNEO3dCQUNIO3FCQUNEO2dCQUNIO1lBQ0Y7UUFDRjtRQUNBNEIsS0FBSztJQUNQO0FBQ0YifQ==
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlocksNode.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/Blocks/nodes/BlocksNode.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAA;AAC5F,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,OAAO,EACP,MAAM,EACP,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAM7E,MAAM,MAAM,WAAW,GAAG;IACxB,sBAAsB;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AASD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CACtC;IACE,MAAM,EAAE,WAAW,CAAA;CACpB,EACD,4BAA4B,CAC7B,CAAA;AAED,qBAAa,SAAU,SAAQ,kBAAkB;IAC/C,QAAQ,EAAE,WAAW,CAAA;gBAET,EACV,MAAM,EACN,MAAM,EACN,GAAG,GACJ,EAAE;QACD,MAAM,EAAE,WAAW,CAAA;QACnB,MAAM,CAAC,EAAE,iBAAiB,CAAA;QAC1B,GAAG,CAAC,EAAE,OAAO,CAAA;KACd;IAKD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS;IAQxC,MAAM,CAAC,OAAO,I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