@payloadcms/richtext-lexical 0.6.1 → 3.0.0-alpha.18

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 (931) hide show
  1. package/README.md +1 -3
  2. package/components.d.ts +1 -1
  3. package/components.js +5 -5
  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 +96 -24
  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 +5 -5
  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 +19 -38
  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 +81 -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 +26 -0
  19. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +1 -1
  20. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +5 -44
  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 +77 -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 +56 -0
  27. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +1 -0
  28. package/dist/field/features/blockquote/markdownTransformer.js +50 -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 +214 -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 +34 -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 +172 -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 +137 -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 +71 -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 +96 -0
  47. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +1 -0
  48. package/dist/field/features/blocks/nodes/BlocksNode.js +158 -0
  49. package/dist/field/features/blocks/plugin/commands.d.ts.map +1 -0
  50. package/dist/field/features/blocks/plugin/commands.js +14 -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 +91 -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 +55 -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 +59 -0
  60. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +3 -3
  61. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +1 -1
  62. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +5 -44
  63. package/dist/field/features/converters/html/converter/converters/paragraph.d.ts.map +1 -1
  64. package/dist/field/features/converters/html/converter/converters/paragraph.js +4 -3
  65. package/dist/field/features/converters/html/converter/index.d.ts +11 -2
  66. package/dist/field/features/converters/html/converter/index.d.ts.map +1 -1
  67. package/dist/field/features/converters/html/converter/index.js +12 -9
  68. package/dist/field/features/converters/html/converter/types.d.ts +6 -1
  69. package/dist/field/features/converters/html/converter/types.d.ts.map +1 -1
  70. package/dist/field/features/converters/html/feature.server.d.ts +9 -0
  71. package/dist/field/features/converters/html/feature.server.d.ts.map +1 -0
  72. package/dist/field/features/converters/html/feature.server.js +24 -0
  73. package/dist/field/features/converters/html/field/index.d.ts +2 -2
  74. package/dist/field/features/converters/html/field/index.d.ts.map +1 -1
  75. package/dist/field/features/converters/html/field/index.js +10 -9
  76. package/dist/field/features/createClientComponent.d.ts +7 -0
  77. package/dist/field/features/createClientComponent.d.ts.map +1 -0
  78. package/dist/field/features/createClientComponent.js +20 -0
  79. package/dist/field/features/createFeaturePropComponent.d.ts +6 -0
  80. package/dist/field/features/createFeaturePropComponent.d.ts.map +1 -0
  81. package/dist/field/features/createFeaturePropComponent.js +24 -0
  82. package/dist/field/features/debug/testrecorder/feature.client.d.ts +3 -0
  83. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +1 -0
  84. package/dist/field/features/debug/testrecorder/feature.client.js +30 -0
  85. package/dist/field/features/debug/testrecorder/feature.server.d.ts +3 -0
  86. package/dist/field/features/debug/testrecorder/feature.server.d.ts.map +1 -0
  87. package/dist/field/features/debug/testrecorder/feature.server.js +25 -0
  88. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +1 -0
  89. package/dist/field/features/debug/testrecorder/plugin/index.js +504 -0
  90. package/dist/field/features/debug/testrecorder/plugin/index.scss +49 -0
  91. package/dist/field/features/debug/treeview/feature.client.d.ts +3 -0
  92. package/dist/field/features/debug/treeview/feature.client.d.ts.map +1 -0
  93. package/dist/field/features/debug/treeview/feature.client.js +30 -0
  94. package/dist/field/features/debug/treeview/feature.server.d.ts +3 -0
  95. package/dist/field/features/debug/treeview/feature.server.d.ts.map +1 -0
  96. package/dist/field/features/debug/treeview/feature.server.js +25 -0
  97. package/dist/field/features/debug/treeview/plugin/index.d.ts +4 -0
  98. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +1 -0
  99. package/dist/field/features/debug/treeview/plugin/index.js +70 -0
  100. package/dist/field/features/format/bold/feature.client.d.ts +3 -0
  101. package/dist/field/features/format/bold/feature.client.d.ts.map +1 -0
  102. package/dist/field/features/format/bold/feature.client.js +57 -0
  103. package/dist/field/features/format/bold/feature.server.d.ts +3 -0
  104. package/dist/field/features/format/bold/feature.server.d.ts.map +1 -0
  105. package/dist/field/features/format/bold/feature.server.js +37 -0
  106. package/dist/field/features/format/bold/markdownTransformers.d.ts.map +1 -0
  107. package/dist/field/features/format/bold/markdownTransformers.js +58 -0
  108. package/dist/field/features/format/common/floatingSelectToolbarSection.js +3 -3
  109. package/dist/field/features/format/inlinecode/feature.client.d.ts +3 -0
  110. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +1 -0
  111. package/dist/field/features/format/inlinecode/feature.client.js +52 -0
  112. package/dist/field/features/format/inlinecode/feature.server.d.ts +3 -0
  113. package/dist/field/features/format/inlinecode/feature.server.d.ts.map +1 -0
  114. package/dist/field/features/format/inlinecode/feature.server.js +29 -0
  115. package/dist/field/features/format/inlinecode/markdownTransformers.d.ts.map +1 -0
  116. package/dist/field/features/format/inlinecode/markdownTransformers.js +19 -0
  117. package/dist/field/features/format/italic/feature.client.d.ts +3 -0
  118. package/dist/field/features/format/italic/feature.client.d.ts.map +1 -0
  119. package/dist/field/features/format/italic/feature.client.js +53 -0
  120. package/dist/field/features/format/italic/feature.server.d.ts +3 -0
  121. package/dist/field/features/format/italic/feature.server.d.ts.map +1 -0
  122. package/dist/field/features/format/italic/feature.server.js +30 -0
  123. package/dist/field/features/format/italic/markdownTransformers.d.ts.map +1 -0
  124. package/dist/field/features/format/italic/markdownTransformers.js +35 -0
  125. package/dist/field/features/format/strikethrough/feature.client.d.ts +3 -0
  126. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +1 -0
  127. package/dist/field/features/format/strikethrough/feature.client.js +52 -0
  128. package/dist/field/features/format/strikethrough/feature.server.d.ts +3 -0
  129. package/dist/field/features/format/strikethrough/feature.server.d.ts.map +1 -0
  130. package/dist/field/features/format/strikethrough/feature.server.js +29 -0
  131. package/dist/field/features/format/strikethrough/markdownTransformers.js +3 -3
  132. package/dist/field/features/format/subscript/feature.client.d.ts +3 -0
  133. package/dist/field/features/format/subscript/feature.client.d.ts.map +1 -0
  134. package/dist/field/features/format/subscript/feature.client.js +48 -0
  135. package/dist/field/features/format/subscript/feature.server.d.ts +3 -0
  136. package/dist/field/features/format/subscript/feature.server.d.ts.map +1 -0
  137. package/dist/field/features/format/subscript/feature.server.js +25 -0
  138. package/dist/field/features/format/superscript/feature.client.d.ts +3 -0
  139. package/dist/field/features/format/superscript/feature.client.d.ts.map +1 -0
  140. package/dist/field/features/format/superscript/feature.client.js +48 -0
  141. package/dist/field/features/format/superscript/feature.server.d.ts +3 -0
  142. package/dist/field/features/format/superscript/feature.server.d.ts.map +1 -0
  143. package/dist/field/features/format/superscript/feature.server.js +25 -0
  144. package/dist/field/features/format/underline/feature.client.d.ts +3 -0
  145. package/dist/field/features/format/underline/feature.client.d.ts.map +1 -0
  146. package/dist/field/features/format/underline/feature.client.js +48 -0
  147. package/dist/field/features/format/underline/feature.server.d.ts +3 -0
  148. package/dist/field/features/format/underline/feature.server.d.ts.map +1 -0
  149. package/dist/field/features/format/underline/feature.server.js +25 -0
  150. package/dist/field/features/heading/feature.client.d.ts +4 -0
  151. package/dist/field/features/heading/feature.client.d.ts.map +1 -0
  152. package/dist/field/features/heading/feature.client.js +104 -0
  153. package/dist/field/features/heading/feature.server.d.ts +7 -0
  154. package/dist/field/features/heading/feature.server.d.ts.map +1 -0
  155. package/dist/field/features/heading/feature.server.js +67 -0
  156. package/dist/field/features/heading/markdownTransformer.d.ts.map +1 -0
  157. package/dist/field/features/heading/markdownTransformer.js +39 -0
  158. package/dist/field/features/indent/feature.client.d.ts +3 -0
  159. package/dist/field/features/indent/feature.client.d.ts.map +1 -0
  160. package/dist/field/features/indent/feature.client.js +67 -0
  161. package/dist/field/features/indent/feature.server.d.ts +3 -0
  162. package/dist/field/features/indent/feature.server.d.ts.map +1 -0
  163. package/dist/field/features/indent/feature.server.js +26 -0
  164. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +3 -3
  165. package/dist/field/features/link/drawer/baseFields.d.ts.map +1 -0
  166. package/dist/field/features/link/drawer/baseFields.js +128 -0
  167. package/dist/field/features/link/drawer/index.d.ts.map +1 -0
  168. package/dist/field/features/link/drawer/index.js +133 -0
  169. package/dist/field/features/link/drawer/index.scss +50 -0
  170. package/dist/field/features/link/drawer/types.d.ts +8 -0
  171. package/dist/field/features/link/drawer/types.d.ts.map +1 -0
  172. package/dist/field/features/link/feature.client.d.ts +5 -0
  173. package/dist/field/features/link/feature.client.d.ts.map +1 -0
  174. package/dist/field/features/link/feature.client.js +98 -0
  175. package/dist/field/features/link/feature.server.d.ts +33 -0
  176. package/dist/field/features/link/feature.server.d.ts.map +1 -0
  177. package/dist/field/features/link/feature.server.js +108 -0
  178. package/dist/field/features/link/nodes/AutoLinkNode.d.ts +16 -0
  179. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
  180. package/dist/field/features/link/nodes/AutoLinkNode.js +79 -0
  181. package/dist/field/features/link/nodes/LinkNode.d.ts +35 -0
  182. package/dist/field/features/link/nodes/LinkNode.d.ts.map +1 -0
  183. package/dist/field/features/link/nodes/LinkNode.js +326 -0
  184. package/dist/field/features/link/nodes/types.d.ts +19 -0
  185. package/dist/field/features/link/nodes/types.d.ts.map +1 -0
  186. package/dist/field/features/link/plugins/autoLink/index.d.ts +19 -0
  187. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +1 -0
  188. package/dist/field/features/link/plugins/autoLink/index.js +336 -0
  189. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +1 -0
  190. package/dist/field/features/link/plugins/clickableLink/index.js +23 -0
  191. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
  192. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +14 -0
  193. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +5 -0
  194. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
  195. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +293 -0
  196. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +6 -0
  197. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -0
  198. package/dist/field/features/link/plugins/floatingLinkEditor/index.js +64 -0
  199. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +78 -0
  200. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts +13 -0
  201. package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts.map +1 -0
  202. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +12 -0
  203. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -0
  204. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +45 -0
  205. package/dist/field/features/link/plugins/link/index.d.ts.map +1 -0
  206. package/dist/field/features/link/plugins/link/index.js +69 -0
  207. package/dist/field/features/link/populationPromise.d.ts +5 -0
  208. package/dist/field/features/link/populationPromise.d.ts.map +1 -0
  209. package/dist/field/features/link/populationPromise.js +56 -0
  210. package/dist/field/features/lists/checklist/feature.client.d.ts +3 -0
  211. package/dist/field/features/lists/checklist/feature.client.d.ts.map +1 -0
  212. package/dist/field/features/lists/checklist/feature.client.js +91 -0
  213. package/dist/field/features/lists/checklist/feature.server.d.ts +3 -0
  214. package/dist/field/features/lists/checklist/feature.server.d.ts.map +1 -0
  215. package/dist/field/features/lists/checklist/feature.server.js +45 -0
  216. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
  217. package/dist/field/features/lists/checklist/markdownTransformers.js +26 -0
  218. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +1 -0
  219. package/dist/field/features/lists/checklist/plugin/index.js +23 -0
  220. package/dist/field/features/lists/common/markdown.js +4 -4
  221. package/dist/field/features/lists/htmlConverter.d.ts.map +1 -1
  222. package/dist/field/features/lists/htmlConverter.js +7 -5
  223. package/dist/field/features/lists/orderedlist/feature.client.d.ts +3 -0
  224. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +1 -0
  225. package/dist/field/features/lists/orderedlist/feature.client.js +81 -0
  226. package/dist/field/features/lists/orderedlist/feature.server.d.ts +3 -0
  227. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +1 -0
  228. package/dist/field/features/lists/orderedlist/feature.server.js +45 -0
  229. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +1 -0
  230. package/dist/field/features/lists/orderedlist/markdownTransformer.js +26 -0
  231. package/dist/field/features/lists/unorderedlist/feature.client.d.ts +3 -0
  232. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +1 -0
  233. package/dist/field/features/lists/unorderedlist/feature.client.js +81 -0
  234. package/dist/field/features/lists/unorderedlist/feature.server.d.ts +3 -0
  235. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +1 -0
  236. package/dist/field/features/lists/unorderedlist/feature.server.js +45 -0
  237. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +1 -0
  238. package/dist/field/features/lists/unorderedlist/markdownTransformer.js +26 -0
  239. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +6 -0
  240. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +1 -0
  241. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +16 -0
  242. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +3 -0
  243. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  244. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +30 -0
  245. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +3 -0
  246. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +1 -0
  247. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +18 -0
  248. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +6 -0
  249. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +1 -0
  250. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js +16 -0
  251. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +3 -0
  252. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
  253. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +41 -0
  254. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +3 -0
  255. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +1 -0
  256. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +18 -0
  257. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +6 -0
  258. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +1 -0
  259. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js +16 -0
  260. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +3 -0
  261. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
  262. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +32 -0
  263. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +3 -0
  264. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +1 -0
  265. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +18 -0
  266. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +6 -0
  267. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  268. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +16 -0
  269. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +3 -0
  270. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  271. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +32 -0
  272. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +3 -0
  273. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  274. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +18 -0
  275. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +6 -0
  276. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +1 -0
  277. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +16 -0
  278. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +3 -0
  279. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
  280. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +30 -0
  281. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +3 -0
  282. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +1 -0
  283. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +18 -0
  284. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +6 -0
  285. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  286. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +16 -0
  287. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +3 -0
  288. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  289. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +36 -0
  290. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +3 -0
  291. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  292. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +18 -0
  293. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +6 -0
  294. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +1 -0
  295. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +16 -0
  296. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +3 -0
  297. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  298. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +35 -0
  299. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +3 -0
  300. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +1 -0
  301. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +18 -0
  302. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +3 -0
  303. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
  304. package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +28 -0
  305. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts +17 -0
  306. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
  307. package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js +87 -0
  308. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts +31 -0
  309. package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
  310. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +3 -0
  311. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
  312. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js +44 -0
  313. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts +9 -0
  314. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
  315. package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +57 -0
  316. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  317. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +23 -0
  318. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  319. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +131 -0
  320. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +14 -0
  321. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +6 -0
  322. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +1 -0
  323. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +16 -0
  324. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +3 -0
  325. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
  326. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +33 -0
  327. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +3 -0
  328. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +1 -0
  329. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +18 -0
  330. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +6 -0
  331. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +1 -0
  332. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js +16 -0
  333. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +3 -0
  334. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
  335. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js +39 -0
  336. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts +3 -0
  337. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +1 -0
  338. package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js +18 -0
  339. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +6 -0
  340. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +1 -0
  341. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js +16 -0
  342. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +3 -0
  343. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
  344. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js +45 -0
  345. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts +3 -0
  346. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +1 -0
  347. package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js +18 -0
  348. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts +6 -0
  349. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +1 -0
  350. package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js +16 -0
  351. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +3 -0
  352. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
  353. package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js +40 -0
  354. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts +3 -0
  355. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +1 -0
  356. package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js +18 -0
  357. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +6 -0
  358. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +1 -0
  359. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js +16 -0
  360. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +3 -0
  361. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
  362. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js +35 -0
  363. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts +3 -0
  364. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +1 -0
  365. package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js +18 -0
  366. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +6 -0
  367. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +1 -0
  368. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js +16 -0
  369. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +3 -0
  370. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
  371. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +36 -0
  372. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +3 -0
  373. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +1 -0
  374. package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js +18 -0
  375. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +6 -0
  376. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +1 -0
  377. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js +16 -0
  378. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +3 -0
  379. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
  380. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +28 -0
  381. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts +3 -0
  382. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +1 -0
  383. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js +18 -0
  384. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +6 -0
  385. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +1 -0
  386. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js +16 -0
  387. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +3 -0
  388. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
  389. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js +37 -0
  390. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts +3 -0
  391. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +1 -0
  392. package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js +18 -0
  393. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +6 -0
  394. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +1 -0
  395. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js +16 -0
  396. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +3 -0
  397. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
  398. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +36 -0
  399. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +3 -0
  400. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +1 -0
  401. package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +18 -0
  402. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +6 -0
  403. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +1 -0
  404. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js +16 -0
  405. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +3 -0
  406. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
  407. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +31 -0
  408. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts +3 -0
  409. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +1 -0
  410. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js +18 -0
  411. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts +3 -0
  412. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
  413. package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js +34 -0
  414. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts +19 -0
  415. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
  416. package/dist/field/features/migrations/slateToLexical/converter/index.js +134 -0
  417. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts +25 -0
  418. package/dist/field/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
  419. package/dist/field/features/migrations/slateToLexical/converter/types.js +6 -0
  420. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +3 -0
  421. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
  422. package/dist/field/features/migrations/slateToLexical/feature.client.js +44 -0
  423. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts +9 -0
  424. package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
  425. package/dist/field/features/migrations/slateToLexical/feature.server.js +57 -0
  426. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
  427. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +23 -0
  428. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
  429. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +131 -0
  430. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +14 -0
  431. package/dist/field/features/paragraph/feature.client.d.ts +3 -0
  432. package/dist/field/features/paragraph/feature.client.d.ts.map +1 -0
  433. package/dist/field/features/paragraph/feature.client.js +73 -0
  434. package/dist/field/features/paragraph/feature.server.d.ts +3 -0
  435. package/dist/field/features/paragraph/feature.server.d.ts.map +1 -0
  436. package/dist/field/features/paragraph/feature.server.js +26 -0
  437. package/dist/field/features/relationship/drawer/commands.d.ts.map +1 -0
  438. package/dist/field/features/relationship/drawer/commands.js +14 -0
  439. package/dist/field/features/relationship/drawer/index.d.ts.map +1 -0
  440. package/dist/field/features/relationship/drawer/index.js +130 -0
  441. package/dist/field/features/relationship/feature.client.d.ts +4 -0
  442. package/dist/field/features/relationship/feature.client.d.ts.map +1 -0
  443. package/dist/field/features/relationship/feature.client.js +66 -0
  444. package/dist/field/features/relationship/feature.server.d.ts +18 -0
  445. package/dist/field/features/relationship/feature.server.d.ts.map +1 -0
  446. package/dist/field/features/relationship/feature.server.js +36 -0
  447. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +1 -0
  448. package/dist/field/features/relationship/nodes/RelationshipNode.js +172 -0
  449. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -0
  450. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +154 -0
  451. package/dist/field/features/relationship/nodes/components/index.scss +97 -0
  452. package/dist/field/features/relationship/plugins/index.d.ts +7 -0
  453. package/dist/field/features/relationship/plugins/index.d.ts.map +1 -0
  454. package/dist/field/features/relationship/plugins/index.js +107 -0
  455. package/dist/field/features/relationship/populationPromise.d.ts.map +1 -0
  456. package/dist/field/features/relationship/populationPromise.js +34 -0
  457. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
  458. package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +84 -0
  459. package/dist/field/features/types.d.ts +139 -70
  460. package/dist/field/features/types.d.ts.map +1 -1
  461. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +1 -0
  462. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +158 -0
  463. package/dist/field/features/upload/component/index.d.ts.map +1 -0
  464. package/dist/field/features/upload/component/index.js +186 -0
  465. package/dist/field/features/upload/component/index.scss +152 -0
  466. package/dist/field/features/upload/drawer/commands.d.ts.map +1 -0
  467. package/dist/field/features/upload/drawer/commands.js +15 -0
  468. package/dist/field/features/upload/drawer/index.d.ts.map +1 -0
  469. package/dist/field/features/upload/drawer/index.js +127 -0
  470. package/dist/field/features/upload/feature.client.d.ts +10 -0
  471. package/dist/field/features/upload/feature.client.d.ts.map +1 -0
  472. package/dist/field/features/upload/feature.client.js +65 -0
  473. package/dist/field/features/upload/feature.server.d.ts +12 -0
  474. package/dist/field/features/upload/feature.server.d.ts.map +1 -0
  475. package/dist/field/features/upload/feature.server.js +113 -0
  476. package/dist/field/features/upload/nodes/UploadNode.d.ts +47 -0
  477. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +1 -0
  478. package/dist/field/features/upload/nodes/UploadNode.js +160 -0
  479. package/dist/field/features/upload/plugin/index.d.ts.map +1 -0
  480. package/dist/field/features/upload/plugin/index.js +111 -0
  481. package/dist/field/features/upload/populationPromise.d.ts +5 -0
  482. package/dist/field/features/upload/populationPromise.d.ts.map +1 -0
  483. package/dist/field/features/upload/populationPromise.js +56 -0
  484. package/dist/field/features/upload/validate.d.ts.map +1 -0
  485. package/dist/field/features/upload/validate.js +29 -0
  486. package/dist/field/index.d.ts +7 -2
  487. package/dist/field/index.d.ts.map +1 -1
  488. package/dist/field/index.js +80 -6
  489. package/dist/field/index.scss +2 -2
  490. package/dist/field/lexical/EditorPlugin.d.ts.map +1 -1
  491. package/dist/field/lexical/EditorPlugin.js +7 -13
  492. package/dist/field/lexical/LexicalEditor.js +5 -3
  493. package/dist/field/lexical/LexicalEditor.scss +1 -3
  494. package/dist/field/lexical/LexicalProvider.d.ts +8 -4
  495. package/dist/field/lexical/LexicalProvider.d.ts.map +1 -1
  496. package/dist/field/lexical/LexicalProvider.js +21 -21
  497. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +24 -0
  498. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
  499. package/dist/field/lexical/config/client/EditorConfigProvider.js +99 -0
  500. package/dist/field/lexical/config/client/default.d.ts +3 -0
  501. package/dist/field/lexical/config/client/default.d.ts.map +1 -0
  502. package/dist/field/lexical/config/client/default.js +18 -0
  503. package/dist/field/lexical/config/client/loader.d.ts +11 -0
  504. package/dist/field/lexical/config/client/loader.d.ts.map +1 -0
  505. package/dist/field/lexical/config/client/loader.js +53 -0
  506. package/dist/field/lexical/config/client/sanitize.d.ts +6 -0
  507. package/dist/field/lexical/config/client/sanitize.d.ts.map +1 -0
  508. package/dist/field/lexical/config/client/sanitize.js +144 -0
  509. package/dist/field/lexical/config/server/default.d.ts +8 -0
  510. package/dist/field/lexical/config/server/default.d.ts.map +1 -0
  511. package/dist/field/lexical/config/server/default.js +75 -0
  512. package/dist/field/lexical/config/server/loader.d.ts +7 -0
  513. package/dist/field/lexical/config/server/loader.d.ts.map +1 -0
  514. package/dist/field/lexical/config/server/loader.js +136 -0
  515. package/dist/field/lexical/config/server/sanitize.d.ts +5 -0
  516. package/dist/field/lexical/config/server/sanitize.d.ts.map +1 -0
  517. package/dist/field/lexical/config/server/sanitize.js +83 -0
  518. package/dist/field/lexical/config/types.d.ts +18 -9
  519. package/dist/field/lexical/config/types.d.ts.map +1 -1
  520. package/dist/field/lexical/nodes/index.d.ts +2 -2
  521. package/dist/field/lexical/nodes/index.d.ts.map +1 -1
  522. package/dist/field/lexical/nodes/index.js +7 -2
  523. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js +4 -2
  524. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +0 -2
  525. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +3 -3
  526. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +1 -1
  527. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js +15 -13
  528. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +1 -1
  529. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +12 -60
  530. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +1 -1
  531. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +1 -1
  532. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +11 -29
  533. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +1 -1
  534. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +4 -4
  535. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +1 -1
  536. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +5 -3
  537. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +7 -7
  538. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +2 -2
  539. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -1
  540. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +10 -15
  541. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +6 -6
  542. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  543. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +4 -4
  544. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  545. package/dist/field/lexical/plugins/SlashMenu/index.js +9 -14
  546. package/dist/field/lexical/plugins/SlashMenu/index.scss +1 -1
  547. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  548. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +59 -35
  549. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -2
  550. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +4 -2
  551. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -2
  552. package/dist/field/lexical/theme/EditorTheme.d.ts.map +1 -1
  553. package/dist/field/lexical/theme/EditorTheme.js +2 -1
  554. package/dist/field/lexical/theme/EditorTheme.scss +0 -2
  555. package/dist/field/lexical/ui/ContentEditable.js +4 -2
  556. package/dist/field/lexical/ui/icons/AlignJustify/index.d.ts +3 -0
  557. package/dist/field/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -0
  558. package/dist/field/lexical/ui/icons/AlignJustify/index.js +40 -0
  559. package/dist/field/lexical/utils/environment.js +15 -15
  560. package/dist/field/lexical/utils/nodeFormat.js +19 -19
  561. package/dist/field/lexical/utils/swipe.js +4 -4
  562. package/dist/generateComponentMap.d.ts +6 -0
  563. package/dist/generateComponentMap.d.ts.map +1 -0
  564. package/dist/generateComponentMap.js +92 -0
  565. package/dist/generateSchemaMap.d.ts +6 -0
  566. package/dist/generateSchemaMap.d.ts.map +1 -0
  567. package/dist/generateSchemaMap.js +37 -0
  568. package/dist/index.d.ts +59 -56
  569. package/dist/index.d.ts.map +1 -1
  570. package/dist/index.js +291 -260
  571. package/dist/populate/defaultValue.js +6 -6
  572. package/dist/populate/recurseNestedFields.d.ts.map +1 -1
  573. package/dist/populate/recurseNestedFields.js +3 -1
  574. package/dist/populate/richTextRelationshipPromise.js +2 -2
  575. package/dist/scss/app.scss +209 -0
  576. package/dist/scss/colors.scss +269 -0
  577. package/dist/scss/custom.css +1 -0
  578. package/dist/scss/fonts.scss +75 -0
  579. package/dist/scss/queries.scss +27 -0
  580. package/dist/scss/resets.scss +17 -0
  581. package/dist/scss/styles.scss +11 -0
  582. package/dist/scss/svg.scss +10 -0
  583. package/dist/scss/toastify.scss +58 -0
  584. package/dist/scss/type.scss +117 -0
  585. package/dist/scss/vars.scss +220 -0
  586. package/dist/scss/z-index.scss +9 -0
  587. package/dist/types.d.ts +8 -2
  588. package/dist/types.d.ts.map +1 -1
  589. package/dist/useLexicalFeature.d.ts +3 -0
  590. package/dist/useLexicalFeature.d.ts.map +1 -0
  591. package/dist/useLexicalFeature.js +19 -0
  592. package/dist/validate/index.d.ts +4 -4
  593. package/dist/validate/index.d.ts.map +1 -1
  594. package/dist/validate/index.js +2 -3
  595. package/dist/validate/validateNodes.d.ts +2 -4
  596. package/dist/validate/validateNodes.d.ts.map +1 -1
  597. package/dist/validate/validateNodes.js +2 -4
  598. package/package.json +25 -19
  599. package/dist/field/features/BlockQuote/index.d.ts +0 -3
  600. package/dist/field/features/BlockQuote/index.d.ts.map +0 -1
  601. package/dist/field/features/BlockQuote/index.js +0 -142
  602. package/dist/field/features/BlockQuote/markdownTransformer.d.ts.map +0 -1
  603. package/dist/field/features/BlockQuote/markdownTransformer.js +0 -50
  604. package/dist/field/features/Blocks/component/BlockContent.d.ts +0 -20
  605. package/dist/field/features/Blocks/component/BlockContent.d.ts.map +0 -1
  606. package/dist/field/features/Blocks/component/BlockContent.js +0 -218
  607. package/dist/field/features/Blocks/component/FormSavePlugin.d.ts +0 -11
  608. package/dist/field/features/Blocks/component/FormSavePlugin.d.ts.map +0 -1
  609. package/dist/field/features/Blocks/component/FormSavePlugin.js +0 -34
  610. package/dist/field/features/Blocks/component/index.d.ts +0 -15
  611. package/dist/field/features/Blocks/component/index.d.ts.map +0 -1
  612. package/dist/field/features/Blocks/component/index.js +0 -148
  613. package/dist/field/features/Blocks/component/index.scss +0 -153
  614. package/dist/field/features/Blocks/drawer/index.d.ts.map +0 -1
  615. package/dist/field/features/Blocks/drawer/index.js +0 -138
  616. package/dist/field/features/Blocks/index.d.ts +0 -7
  617. package/dist/field/features/Blocks/index.d.ts.map +0 -1
  618. package/dist/field/features/Blocks/index.js +0 -145
  619. package/dist/field/features/Blocks/nodes/BlocksNode.d.ts.map +0 -1
  620. package/dist/field/features/Blocks/nodes/BlocksNode.js +0 -171
  621. package/dist/field/features/Blocks/plugin/commands.d.ts.map +0 -1
  622. package/dist/field/features/Blocks/plugin/commands.js +0 -14
  623. package/dist/field/features/Blocks/plugin/index.d.ts +0 -5
  624. package/dist/field/features/Blocks/plugin/index.d.ts.map +0 -1
  625. package/dist/field/features/Blocks/plugin/index.js +0 -88
  626. package/dist/field/features/Blocks/populationPromise.d.ts +0 -5
  627. package/dist/field/features/Blocks/populationPromise.d.ts.map +0 -1
  628. package/dist/field/features/Blocks/populationPromise.js +0 -55
  629. package/dist/field/features/Blocks/utils/transformInputFormData.d.ts +0 -11
  630. package/dist/field/features/Blocks/utils/transformInputFormData.d.ts.map +0 -1
  631. package/dist/field/features/Blocks/utils/transformInputFormData.js +0 -35
  632. package/dist/field/features/Blocks/utils/transformInputFormSchema.d.ts +0 -3
  633. package/dist/field/features/Blocks/utils/transformInputFormSchema.d.ts.map +0 -1
  634. package/dist/field/features/Blocks/utils/transformInputFormSchema.js +0 -43
  635. package/dist/field/features/Blocks/validate.d.ts +0 -5
  636. package/dist/field/features/Blocks/validate.d.ts.map +0 -1
  637. package/dist/field/features/Blocks/validate.js +0 -62
  638. package/dist/field/features/Heading/index.d.ts +0 -8
  639. package/dist/field/features/Heading/index.d.ts.map +0 -1
  640. package/dist/field/features/Heading/index.js +0 -164
  641. package/dist/field/features/Heading/markdownTransformer.d.ts.map +0 -1
  642. package/dist/field/features/Heading/markdownTransformer.js +0 -39
  643. package/dist/field/features/Link/drawer/baseFields.d.ts.map +0 -1
  644. package/dist/field/features/Link/drawer/baseFields.js +0 -128
  645. package/dist/field/features/Link/drawer/index.d.ts.map +0 -1
  646. package/dist/field/features/Link/drawer/index.js +0 -40
  647. package/dist/field/features/Link/drawer/index.scss +0 -50
  648. package/dist/field/features/Link/drawer/types.d.ts +0 -8
  649. package/dist/field/features/Link/drawer/types.d.ts.map +0 -1
  650. package/dist/field/features/Link/index.d.ts +0 -33
  651. package/dist/field/features/Link/index.d.ts.map +0 -1
  652. package/dist/field/features/Link/index.js +0 -199
  653. package/dist/field/features/Link/nodes/AutoLinkNode.d.ts +0 -16
  654. package/dist/field/features/Link/nodes/AutoLinkNode.d.ts.map +0 -1
  655. package/dist/field/features/Link/nodes/AutoLinkNode.js +0 -79
  656. package/dist/field/features/Link/nodes/LinkNode.d.ts +0 -50
  657. package/dist/field/features/Link/nodes/LinkNode.d.ts.map +0 -1
  658. package/dist/field/features/Link/nodes/LinkNode.js +0 -326
  659. package/dist/field/features/Link/plugins/autoLink/index.d.ts +0 -19
  660. package/dist/field/features/Link/plugins/autoLink/index.d.ts.map +0 -1
  661. package/dist/field/features/Link/plugins/autoLink/index.js +0 -335
  662. package/dist/field/features/Link/plugins/clickableLink/index.d.ts.map +0 -1
  663. package/dist/field/features/Link/plugins/clickableLink/index.js +0 -23
  664. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
  665. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -14
  666. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -6
  667. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
  668. package/dist/field/features/Link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -310
  669. package/dist/field/features/Link/plugins/floatingLinkEditor/index.d.ts +0 -7
  670. package/dist/field/features/Link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
  671. package/dist/field/features/Link/plugins/floatingLinkEditor/index.js +0 -63
  672. package/dist/field/features/Link/plugins/floatingLinkEditor/index.scss +0 -78
  673. package/dist/field/features/Link/plugins/floatingLinkEditor/types.d.ts +0 -13
  674. package/dist/field/features/Link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
  675. package/dist/field/features/Link/plugins/floatingLinkEditor/utilities.d.ts +0 -12
  676. package/dist/field/features/Link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
  677. package/dist/field/features/Link/plugins/floatingLinkEditor/utilities.js +0 -45
  678. package/dist/field/features/Link/plugins/link/index.d.ts.map +0 -1
  679. package/dist/field/features/Link/plugins/link/index.js +0 -69
  680. package/dist/field/features/Link/populationPromise.d.ts +0 -5
  681. package/dist/field/features/Link/populationPromise.d.ts.map +0 -1
  682. package/dist/field/features/Link/populationPromise.js +0 -56
  683. package/dist/field/features/Paragraph/index.d.ts +0 -3
  684. package/dist/field/features/Paragraph/index.d.ts.map +0 -1
  685. package/dist/field/features/Paragraph/index.js +0 -116
  686. package/dist/field/features/Relationship/drawer/commands.d.ts.map +0 -1
  687. package/dist/field/features/Relationship/drawer/commands.js +0 -14
  688. package/dist/field/features/Relationship/drawer/index.d.ts.map +0 -1
  689. package/dist/field/features/Relationship/drawer/index.js +0 -128
  690. package/dist/field/features/Relationship/index.d.ts +0 -18
  691. package/dist/field/features/Relationship/index.d.ts.map +0 -1
  692. package/dist/field/features/Relationship/index.js +0 -113
  693. package/dist/field/features/Relationship/nodes/RelationshipNode.d.ts.map +0 -1
  694. package/dist/field/features/Relationship/nodes/RelationshipNode.js +0 -170
  695. package/dist/field/features/Relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
  696. package/dist/field/features/Relationship/nodes/components/RelationshipComponent.js +0 -159
  697. package/dist/field/features/Relationship/nodes/components/index.scss +0 -97
  698. package/dist/field/features/Relationship/plugins/index.d.ts +0 -7
  699. package/dist/field/features/Relationship/plugins/index.d.ts.map +0 -1
  700. package/dist/field/features/Relationship/plugins/index.js +0 -104
  701. package/dist/field/features/Relationship/populationPromise.d.ts.map +0 -1
  702. package/dist/field/features/Relationship/populationPromise.js +0 -34
  703. package/dist/field/features/Relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
  704. package/dist/field/features/Relationship/utils/EnabledRelationshipsCondition.js +0 -82
  705. package/dist/field/features/Upload/component/ExtraFieldsDrawer/index.d.ts.map +0 -1
  706. package/dist/field/features/Upload/component/ExtraFieldsDrawer/index.js +0 -146
  707. package/dist/field/features/Upload/component/index.d.ts.map +0 -1
  708. package/dist/field/features/Upload/component/index.js +0 -189
  709. package/dist/field/features/Upload/component/index.scss +0 -152
  710. package/dist/field/features/Upload/drawer/commands.d.ts.map +0 -1
  711. package/dist/field/features/Upload/drawer/commands.js +0 -14
  712. package/dist/field/features/Upload/drawer/index.d.ts.map +0 -1
  713. package/dist/field/features/Upload/drawer/index.js +0 -125
  714. package/dist/field/features/Upload/index.d.ts +0 -11
  715. package/dist/field/features/Upload/index.d.ts.map +0 -1
  716. package/dist/field/features/Upload/index.js +0 -166
  717. package/dist/field/features/Upload/nodes/UploadNode.d.ts +0 -47
  718. package/dist/field/features/Upload/nodes/UploadNode.d.ts.map +0 -1
  719. package/dist/field/features/Upload/nodes/UploadNode.js +0 -158
  720. package/dist/field/features/Upload/plugin/index.d.ts.map +0 -1
  721. package/dist/field/features/Upload/plugin/index.js +0 -108
  722. package/dist/field/features/Upload/populationPromise.d.ts +0 -5
  723. package/dist/field/features/Upload/populationPromise.d.ts.map +0 -1
  724. package/dist/field/features/Upload/populationPromise.js +0 -56
  725. package/dist/field/features/Upload/validate.d.ts.map +0 -1
  726. package/dist/field/features/Upload/validate.js +0 -29
  727. package/dist/field/features/align/index.d.ts +0 -3
  728. package/dist/field/features/align/index.d.ts.map +0 -1
  729. package/dist/field/features/align/index.js +0 -106
  730. package/dist/field/features/converters/html/index.d.ts +0 -13
  731. package/dist/field/features/converters/html/index.d.ts.map +0 -1
  732. package/dist/field/features/converters/html/index.js +0 -25
  733. package/dist/field/features/debug/TestRecorder/index.d.ts +0 -3
  734. package/dist/field/features/debug/TestRecorder/index.d.ts.map +0 -1
  735. package/dist/field/features/debug/TestRecorder/index.js +0 -68
  736. package/dist/field/features/debug/TestRecorder/plugin/index.d.ts.map +0 -1
  737. package/dist/field/features/debug/TestRecorder/plugin/index.js +0 -498
  738. package/dist/field/features/debug/TestRecorder/plugin/index.scss +0 -51
  739. package/dist/field/features/debug/TreeView/index.d.ts +0 -3
  740. package/dist/field/features/debug/TreeView/index.d.ts.map +0 -1
  741. package/dist/field/features/debug/TreeView/index.js +0 -68
  742. package/dist/field/features/debug/TreeView/plugin.d.ts +0 -4
  743. package/dist/field/features/debug/TreeView/plugin.d.ts.map +0 -1
  744. package/dist/field/features/debug/TreeView/plugin.js +0 -68
  745. package/dist/field/features/format/Bold/index.d.ts +0 -3
  746. package/dist/field/features/format/Bold/index.d.ts.map +0 -1
  747. package/dist/field/features/format/Bold/index.js +0 -96
  748. package/dist/field/features/format/Bold/markdownTransformers.d.ts.map +0 -1
  749. package/dist/field/features/format/Bold/markdownTransformers.js +0 -58
  750. package/dist/field/features/format/InlineCode/index.d.ts +0 -3
  751. package/dist/field/features/format/InlineCode/index.d.ts.map +0 -1
  752. package/dist/field/features/format/InlineCode/index.js +0 -88
  753. package/dist/field/features/format/InlineCode/markdownTransformers.d.ts.map +0 -1
  754. package/dist/field/features/format/InlineCode/markdownTransformers.js +0 -19
  755. package/dist/field/features/format/Italic/index.d.ts +0 -3
  756. package/dist/field/features/format/Italic/index.d.ts.map +0 -1
  757. package/dist/field/features/format/Italic/index.js +0 -89
  758. package/dist/field/features/format/Italic/markdownTransformers.d.ts.map +0 -1
  759. package/dist/field/features/format/Italic/markdownTransformers.js +0 -35
  760. package/dist/field/features/format/strikethrough/index.d.ts +0 -3
  761. package/dist/field/features/format/strikethrough/index.d.ts.map +0 -1
  762. package/dist/field/features/format/strikethrough/index.js +0 -88
  763. package/dist/field/features/format/subscript/index.d.ts +0 -3
  764. package/dist/field/features/format/subscript/index.d.ts.map +0 -1
  765. package/dist/field/features/format/subscript/index.js +0 -84
  766. package/dist/field/features/format/superscript/index.d.ts +0 -3
  767. package/dist/field/features/format/superscript/index.d.ts.map +0 -1
  768. package/dist/field/features/format/superscript/index.js +0 -84
  769. package/dist/field/features/format/underline/index.d.ts +0 -3
  770. package/dist/field/features/format/underline/index.d.ts.map +0 -1
  771. package/dist/field/features/format/underline/index.js +0 -84
  772. package/dist/field/features/indent/index.d.ts +0 -3
  773. package/dist/field/features/indent/index.d.ts.map +0 -1
  774. package/dist/field/features/indent/index.js +0 -112
  775. package/dist/field/features/indent/plugin.d.ts +0 -3
  776. package/dist/field/features/indent/plugin.d.ts.map +0 -1
  777. package/dist/field/features/indent/plugin.js +0 -17
  778. package/dist/field/features/lists/CheckList/index.d.ts +0 -3
  779. package/dist/field/features/lists/CheckList/index.d.ts.map +0 -1
  780. package/dist/field/features/lists/CheckList/index.js +0 -133
  781. package/dist/field/features/lists/CheckList/markdownTransformers.d.ts.map +0 -1
  782. package/dist/field/features/lists/CheckList/markdownTransformers.js +0 -26
  783. package/dist/field/features/lists/CheckList/plugin/index.d.ts.map +0 -1
  784. package/dist/field/features/lists/CheckList/plugin/index.js +0 -23
  785. package/dist/field/features/lists/OrderedList/index.d.ts +0 -3
  786. package/dist/field/features/lists/OrderedList/index.d.ts.map +0 -1
  787. package/dist/field/features/lists/OrderedList/index.js +0 -131
  788. package/dist/field/features/lists/OrderedList/markdownTransformer.d.ts.map +0 -1
  789. package/dist/field/features/lists/OrderedList/markdownTransformer.js +0 -26
  790. package/dist/field/features/lists/UnorderedList/index.d.ts +0 -3
  791. package/dist/field/features/lists/UnorderedList/index.d.ts.map +0 -1
  792. package/dist/field/features/lists/UnorderedList/index.js +0 -131
  793. package/dist/field/features/lists/UnorderedList/markdownTransformer.d.ts.map +0 -1
  794. package/dist/field/features/lists/UnorderedList/markdownTransformer.js +0 -26
  795. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/heading.d.ts +0 -3
  796. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/heading.d.ts.map +0 -1
  797. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/heading.js +0 -30
  798. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/link.d.ts +0 -3
  799. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/link.d.ts.map +0 -1
  800. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/link.js +0 -41
  801. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/list.d.ts +0 -3
  802. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/list.d.ts.map +0 -1
  803. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/list.js +0 -32
  804. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/listItem.d.ts +0 -3
  805. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/listItem.d.ts.map +0 -1
  806. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/listItem.js +0 -32
  807. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/quote.d.ts +0 -3
  808. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/quote.d.ts.map +0 -1
  809. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/quote.js +0 -30
  810. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/unknown.d.ts +0 -3
  811. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/unknown.d.ts.map +0 -1
  812. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/unknown.js +0 -36
  813. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/upload.d.ts +0 -3
  814. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/upload.d.ts.map +0 -1
  815. package/dist/field/features/migrations/LexicalPluginToLexical/converter/converters/upload.js +0 -35
  816. package/dist/field/features/migrations/LexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
  817. package/dist/field/features/migrations/LexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
  818. package/dist/field/features/migrations/LexicalPluginToLexical/converter/defaultConverters.js +0 -28
  819. package/dist/field/features/migrations/LexicalPluginToLexical/converter/index.d.ts +0 -18
  820. package/dist/field/features/migrations/LexicalPluginToLexical/converter/index.d.ts.map +0 -1
  821. package/dist/field/features/migrations/LexicalPluginToLexical/converter/index.js +0 -90
  822. package/dist/field/features/migrations/LexicalPluginToLexical/converter/types.d.ts +0 -20
  823. package/dist/field/features/migrations/LexicalPluginToLexical/converter/types.d.ts.map +0 -1
  824. package/dist/field/features/migrations/LexicalPluginToLexical/index.d.ts +0 -10
  825. package/dist/field/features/migrations/LexicalPluginToLexical/index.d.ts.map +0 -1
  826. package/dist/field/features/migrations/LexicalPluginToLexical/index.js +0 -50
  827. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  828. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -23
  829. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  830. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -129
  831. package/dist/field/features/migrations/LexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -16
  832. package/dist/field/features/migrations/SlateToLexical/converter/converters/blockquote.d.ts +0 -3
  833. package/dist/field/features/migrations/SlateToLexical/converter/converters/blockquote.d.ts.map +0 -1
  834. package/dist/field/features/migrations/SlateToLexical/converter/converters/blockquote.js +0 -33
  835. package/dist/field/features/migrations/SlateToLexical/converter/converters/heading.d.ts +0 -3
  836. package/dist/field/features/migrations/SlateToLexical/converter/converters/heading.d.ts.map +0 -1
  837. package/dist/field/features/migrations/SlateToLexical/converter/converters/heading.js +0 -39
  838. package/dist/field/features/migrations/SlateToLexical/converter/converters/indent.d.ts +0 -3
  839. package/dist/field/features/migrations/SlateToLexical/converter/converters/indent.d.ts.map +0 -1
  840. package/dist/field/features/migrations/SlateToLexical/converter/converters/indent.js +0 -57
  841. package/dist/field/features/migrations/SlateToLexical/converter/converters/link.d.ts +0 -3
  842. package/dist/field/features/migrations/SlateToLexical/converter/converters/link.d.ts.map +0 -1
  843. package/dist/field/features/migrations/SlateToLexical/converter/converters/link.js +0 -40
  844. package/dist/field/features/migrations/SlateToLexical/converter/converters/listItem.d.ts +0 -3
  845. package/dist/field/features/migrations/SlateToLexical/converter/converters/listItem.d.ts.map +0 -1
  846. package/dist/field/features/migrations/SlateToLexical/converter/converters/listItem.js +0 -35
  847. package/dist/field/features/migrations/SlateToLexical/converter/converters/orderedList.d.ts +0 -3
  848. package/dist/field/features/migrations/SlateToLexical/converter/converters/orderedList.d.ts.map +0 -1
  849. package/dist/field/features/migrations/SlateToLexical/converter/converters/orderedList.js +0 -36
  850. package/dist/field/features/migrations/SlateToLexical/converter/converters/relationship.d.ts +0 -3
  851. package/dist/field/features/migrations/SlateToLexical/converter/converters/relationship.d.ts.map +0 -1
  852. package/dist/field/features/migrations/SlateToLexical/converter/converters/relationship.js +0 -28
  853. package/dist/field/features/migrations/SlateToLexical/converter/converters/unknown.d.ts +0 -3
  854. package/dist/field/features/migrations/SlateToLexical/converter/converters/unknown.d.ts.map +0 -1
  855. package/dist/field/features/migrations/SlateToLexical/converter/converters/unknown.js +0 -37
  856. package/dist/field/features/migrations/SlateToLexical/converter/converters/unorderedList.d.ts +0 -3
  857. package/dist/field/features/migrations/SlateToLexical/converter/converters/unorderedList.d.ts.map +0 -1
  858. package/dist/field/features/migrations/SlateToLexical/converter/converters/unorderedList.js +0 -36
  859. package/dist/field/features/migrations/SlateToLexical/converter/converters/upload.d.ts +0 -3
  860. package/dist/field/features/migrations/SlateToLexical/converter/converters/upload.d.ts.map +0 -1
  861. package/dist/field/features/migrations/SlateToLexical/converter/converters/upload.js +0 -31
  862. package/dist/field/features/migrations/SlateToLexical/converter/defaultConverters.d.ts +0 -3
  863. package/dist/field/features/migrations/SlateToLexical/converter/defaultConverters.d.ts.map +0 -1
  864. package/dist/field/features/migrations/SlateToLexical/converter/defaultConverters.js +0 -34
  865. package/dist/field/features/migrations/SlateToLexical/converter/index.d.ts +0 -19
  866. package/dist/field/features/migrations/SlateToLexical/converter/index.d.ts.map +0 -1
  867. package/dist/field/features/migrations/SlateToLexical/converter/index.js +0 -131
  868. package/dist/field/features/migrations/SlateToLexical/converter/types.d.ts +0 -16
  869. package/dist/field/features/migrations/SlateToLexical/converter/types.d.ts.map +0 -1
  870. package/dist/field/features/migrations/SlateToLexical/index.d.ts +0 -10
  871. package/dist/field/features/migrations/SlateToLexical/index.d.ts.map +0 -1
  872. package/dist/field/features/migrations/SlateToLexical/index.js +0 -50
  873. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
  874. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/Component.js +0 -23
  875. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
  876. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/index.js +0 -129
  877. package/dist/field/features/migrations/SlateToLexical/nodes/unknownConvertedNode/index.scss +0 -16
  878. package/dist/field/lexical/config/EditorConfigProvider.d.ts +0 -16
  879. package/dist/field/lexical/config/EditorConfigProvider.d.ts.map +0 -1
  880. package/dist/field/lexical/config/EditorConfigProvider.js +0 -97
  881. package/dist/field/lexical/config/default.d.ts +0 -6
  882. package/dist/field/lexical/config/default.d.ts.map +0 -1
  883. package/dist/field/lexical/config/default.js +0 -110
  884. package/dist/field/lexical/config/defaultClient.d.ts +0 -3
  885. package/dist/field/lexical/config/defaultClient.d.ts.map +0 -1
  886. package/dist/field/lexical/config/defaultClient.js +0 -17
  887. package/dist/field/lexical/config/loader.d.ts +0 -7
  888. package/dist/field/lexical/config/loader.d.ts.map +0 -1
  889. package/dist/field/lexical/config/loader.js +0 -133
  890. package/dist/field/lexical/config/sanitize.d.ts +0 -5
  891. package/dist/field/lexical/config/sanitize.d.ts.map +0 -1
  892. package/dist/field/lexical/config/sanitize.js +0 -170
  893. /package/dist/field/features/{BlockQuote → blockquote}/markdownTransformer.d.ts +0 -0
  894. /package/dist/field/features/{Blocks → blocks}/drawer/index.d.ts +0 -0
  895. /package/dist/field/features/{Blocks → blocks}/nodes/BlocksNode.d.ts +0 -0
  896. /package/dist/field/features/{Blocks → blocks}/plugin/commands.d.ts +0 -0
  897. /package/dist/field/features/debug/{TestRecorder → testrecorder}/plugin/index.d.ts +0 -0
  898. /package/dist/field/features/debug/{TreeView → treeview/plugin}/index.scss +0 -0
  899. /package/dist/field/features/format/{Bold → bold}/markdownTransformers.d.ts +0 -0
  900. /package/dist/field/features/format/{InlineCode → inlinecode}/markdownTransformers.d.ts +0 -0
  901. /package/dist/field/features/format/{Italic → italic}/markdownTransformers.d.ts +0 -0
  902. /package/dist/field/features/{Heading → heading}/markdownTransformer.d.ts +0 -0
  903. /package/dist/field/features/{Link → link}/drawer/baseFields.d.ts +0 -0
  904. /package/dist/field/features/{Link → link}/drawer/index.d.ts +0 -0
  905. /package/dist/field/features/{Link → link}/drawer/types.js +0 -0
  906. /package/dist/field/features/{Link/plugins/floatingLinkEditor → link/nodes}/types.js +0 -0
  907. /package/dist/field/features/{Link → link}/plugins/clickableLink/index.d.ts +0 -0
  908. /package/dist/field/features/{Link → link}/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
  909. /package/dist/field/features/{migrations/LexicalPluginToLexical/converter → link/plugins/floatingLinkEditor}/types.js +0 -0
  910. /package/dist/field/features/{Link → link}/plugins/link/index.d.ts +0 -0
  911. /package/dist/field/features/lists/{CheckList → checklist}/markdownTransformers.d.ts +0 -0
  912. /package/dist/field/features/lists/{CheckList → checklist}/plugin/index.d.ts +0 -0
  913. /package/dist/field/features/lists/{OrderedList → orderedlist}/markdownTransformer.d.ts +0 -0
  914. /package/dist/field/features/lists/{UnorderedList → unorderedlist}/markdownTransformer.d.ts +0 -0
  915. /package/dist/field/features/migrations/{SlateToLexical → lexicalPluginToLexical}/converter/types.js +0 -0
  916. /package/dist/field/features/migrations/{LexicalPluginToLexical → lexicalPluginToLexical}/nodes/unknownConvertedNode/Component.d.ts +0 -0
  917. /package/dist/field/features/migrations/{LexicalPluginToLexical → lexicalPluginToLexical}/nodes/unknownConvertedNode/index.d.ts +0 -0
  918. /package/dist/field/features/migrations/{SlateToLexical → slateToLexical}/nodes/unknownConvertedNode/Component.d.ts +0 -0
  919. /package/dist/field/features/migrations/{SlateToLexical → slateToLexical}/nodes/unknownConvertedNode/index.d.ts +0 -0
  920. /package/dist/field/features/{Relationship → relationship}/drawer/commands.d.ts +0 -0
  921. /package/dist/field/features/{Relationship → relationship}/drawer/index.d.ts +0 -0
  922. /package/dist/field/features/{Relationship → relationship}/nodes/RelationshipNode.d.ts +0 -0
  923. /package/dist/field/features/{Relationship → relationship}/nodes/components/RelationshipComponent.d.ts +0 -0
  924. /package/dist/field/features/{Relationship → relationship}/populationPromise.d.ts +0 -0
  925. /package/dist/field/features/{Relationship → relationship}/utils/EnabledRelationshipsCondition.d.ts +0 -0
  926. /package/dist/field/features/{Upload → upload}/component/ExtraFieldsDrawer/index.d.ts +0 -0
  927. /package/dist/field/features/{Upload → upload}/component/index.d.ts +0 -0
  928. /package/dist/field/features/{Upload → upload}/drawer/commands.d.ts +0 -0
  929. /package/dist/field/features/{Upload → upload}/drawer/index.d.ts +0 -0
  930. /package/dist/field/features/{Upload → upload}/plugin/index.d.ts +0 -0
  931. /package/dist/field/features/{Upload → upload}/validate.d.ts +0 -0
@@ -1,125 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "UploadDrawer", {
7
- enumerable: true,
8
- get: function() {
9
- return UploadDrawer;
10
- }
11
- });
12
- const _LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
13
- const _lexical = require("lexical");
14
- const _elements = require("payload/components/elements");
15
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
16
- const _EnabledRelationshipsCondition = require("../../Relationship/utils/EnabledRelationshipsCondition");
17
- const _UploadNode = require("../nodes/UploadNode");
18
- const _plugin = require("../plugin");
19
- const _commands = require("./commands");
20
- function _getRequireWildcardCache(nodeInterop) {
21
- if (typeof WeakMap !== "function") return null;
22
- var cacheBabelInterop = new WeakMap();
23
- var cacheNodeInterop = new WeakMap();
24
- return (_getRequireWildcardCache = function(nodeInterop) {
25
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
26
- })(nodeInterop);
27
- }
28
- function _interop_require_wildcard(obj, nodeInterop) {
29
- if (!nodeInterop && obj && obj.__esModule) {
30
- return obj;
31
- }
32
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
33
- return {
34
- default: obj
35
- };
36
- }
37
- var cache = _getRequireWildcardCache(nodeInterop);
38
- if (cache && cache.has(obj)) {
39
- return cache.get(obj);
40
- }
41
- var newObj = {};
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 baseClass = 'lexical-upload-drawer';
60
- const insertUpload = ({ id, editor, relationTo, replaceNodeKey })=>{
61
- if (!replaceNodeKey) {
62
- editor.dispatchCommand(_plugin.INSERT_UPLOAD_COMMAND, {
63
- id,
64
- fields: null,
65
- relationTo
66
- });
67
- } else {
68
- editor.update(()=>{
69
- const node = (0, _lexical.$getNodeByKey)(replaceNodeKey);
70
- if (node) {
71
- node.replace((0, _UploadNode.$createUploadNode)({
72
- data: {
73
- fields: null,
74
- relationTo,
75
- value: {
76
- id
77
- }
78
- }
79
- }));
80
- }
81
- });
82
- }
83
- };
84
- const UploadDrawerComponent = ({ enabledCollectionSlugs })=>{
85
- const [editor] = (0, _LexicalComposerContext.useLexicalComposerContext)();
86
- const [replaceNodeKey, setReplaceNodeKey] = (0, _react.useState)(null);
87
- const [ListDrawer, ListDrawerToggler, { closeDrawer, openDrawer }] = (0, _elements.useListDrawer)({
88
- collectionSlugs: enabledCollectionSlugs,
89
- uploads: true
90
- });
91
- (0, _react.useEffect)(()=>{
92
- return editor.registerCommand(_commands.INSERT_UPLOAD_WITH_DRAWER_COMMAND, (payload)=>{
93
- setReplaceNodeKey(payload?.replace ? payload?.replace.nodeKey : null);
94
- openDrawer();
95
- return true;
96
- }, _lexical.COMMAND_PRIORITY_EDITOR);
97
- }, [
98
- editor,
99
- openDrawer
100
- ]);
101
- const onSelect = (0, _react.useCallback)(({ collectionConfig, docID })=>{
102
- insertUpload({
103
- id: docID,
104
- editor,
105
- relationTo: collectionConfig.slug,
106
- replaceNodeKey
107
- });
108
- closeDrawer();
109
- }, [
110
- editor,
111
- closeDrawer,
112
- replaceNodeKey
113
- ]);
114
- return /*#__PURE__*/ _react.default.createElement(ListDrawer, {
115
- onSelect: onSelect
116
- });
117
- };
118
- const UploadDrawer = (props)=>{
119
- return /*#__PURE__*/ _react.default.createElement(_EnabledRelationshipsCondition.EnabledRelationshipsCondition, {
120
- ...props,
121
- uploads: true
122
- }, /*#__PURE__*/ _react.default.createElement(UploadDrawerComponent, props));
123
- };
124
-
125
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJza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ZU5vZGVLZXksXG59OiB7XG4gIGVkaXRvcjogTGV4aWNhbEVkaXRvclxuICBpZDogc3RyaW5nXG4gIHJlbGF0aW9uVG86IHN0cmluZ1xuICByZXBsYWNlTm9kZUtleTogbnVsbCB8IHN0cmluZ1xufSkgPT4ge1xuICBpZiAoIXJlcGxhY2VOb2RlS2V5KSB7XG4gICAgZWRpdG9yLmRpc3BhdGNoQ29tbWFuZChJTlNFUlRfVVBMT0FEX0NPTU1BTkQsIHtcbiAgICAgIGlkLFxuICAgICAgZmllbGRzOiBudWxsLFxuICAgICAgcmVsYXRpb25UbyxcbiAgICB9KVxuICB9IGVsc2Uge1xuICAgIGVkaXRvci51cGRhdGUoKCkgPT4ge1xuICAgICAgY29uc3Qgbm9kZSA9ICRnZXROb2RlQnlLZXkocmVwbGFjZU5vZGVLZXkpXG4gICAgICBpZiAobm9kZSkge1xuICAgICAgICBub2RlLnJlcGxhY2UoXG4gICAgICAgICAgJGNyZWF0ZVVwbG9hZE5vZGUoe1xuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICBmaWVsZHM6IG51bGwsXG4gICAgICAgICAgICAgIHJlbGF0aW9uVG8sXG4gICAgICAgICAgICAgIHZhbHVlOiB7XG4gICAgICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pLFxuICAgICAgICApXG4gICAgICB9XG4gICAgfSlcbiAgfVxufVxuXG50eXBlIFByb3BzID0ge1xuICBlbmFibGVkQ29sbGVjdGlvblNsdWdzOiBzdHJpbmdbXVxufVxuXG5jb25zdCBVcGxvYWREcmF3ZXJDb21wb25lbnQ6IFJlYWN0LkZDPFByb3BzPiA9ICh7IGVuYWJsZWRDb2xsZWN0aW9uU2x1Z3MgfSkgPT4ge1xuICBjb25zdCBbZWRpdG9yXSA9IHVzZUxleGljYWxDb21wb3NlckNvbnRleHQoKVxuXG4gIGNvbnN0IFtyZXBsYWNlTm9kZUtleSwgc2V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eatureProps = {
4
- collections: {
5
- [collection: string]: {
6
- fields: Field[];
7
- };
8
- };
9
- };
10
- export declare const UploadFeature: (props?: UploadFeatureProps) => FeatureProvider;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/field/features/Upload/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAK1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAS/C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE;QACX,CAAC,UAAU,EAAE,MAAM,GAAG;YACpB,MAAM,EAAE,KAAK,EAAE,CAAA;SAChB,CAAA;KACF,CAAA;CACF,CAAA;AASD,eAAO,MAAM,aAAa,WAAY,kBAAkB,KAAG,eAwG1D,CAAA"}
@@ -1,166 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "UploadFeature", {
6
- enumerable: true,
7
- get: function() {
8
- return UploadFeature;
9
- }
10
- });
11
- const _payload = /*#__PURE__*/ _interop_require_default(require("payload"));
12
- const _types = require("../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types");
13
- const _commands = require("./drawer/commands");
14
- const _UploadNode = require("./nodes/UploadNode");
15
- const _populationPromise = require("./populationPromise");
16
- const _validate = require("./validate");
17
- function _interop_require_default(obj) {
18
- return obj && obj.__esModule ? obj : {
19
- default: obj
20
- };
21
- }
22
- function _getRequireWildcardCache(nodeInterop) {
23
- if (typeof WeakMap !== "function") return null;
24
- var cacheBabelInterop = new WeakMap();
25
- var cacheNodeInterop = new WeakMap();
26
- return (_getRequireWildcardCache = function(nodeInterop) {
27
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
28
- })(nodeInterop);
29
- }
30
- function _interop_require_wildcard(obj, nodeInterop) {
31
- if (!nodeInterop && obj && obj.__esModule) {
32
- return obj;
33
- }
34
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
35
- return {
36
- default: obj
37
- };
38
- }
39
- var cache = _getRequireWildcardCache(nodeInterop);
40
- if (cache && cache.has(obj)) {
41
- return cache.get(obj);
42
- }
43
- var newObj = {};
44
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
45
- for(var key in obj){
46
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
47
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
48
- if (desc && (desc.get || desc.set)) {
49
- Object.defineProperty(newObj, key, desc);
50
- } else {
51
- newObj[key] = obj[key];
52
- }
53
- }
54
- }
55
- newObj.default = obj;
56
- if (cache) {
57
- cache.set(obj, newObj);
58
- }
59
- return newObj;
60
- }
61
- /**
62
- * Get the absolute URL for an upload URL by potentially prepending the serverURL
63
- */ function getAbsoluteURL(url) {
64
- return url?.startsWith('http') ? url : (_payload.default?.config?.serverURL || '') + url;
65
- }
66
- const UploadFeature = (props)=>{
67
- return {
68
- feature: ()=>{
69
- return {
70
- nodes: [
71
- {
72
- converters: {
73
- html: {
74
- converter: async ({ node })=>{
75
- const uploadDocument = await _payload.default.findByID({
76
- id: node.value.id,
77
- collection: node.relationTo
78
- });
79
- const url = getAbsoluteURL(uploadDocument?.url);
80
- /**
81
- * If the upload is not an image, return a link to the upload
82
- */ if (!(uploadDocument?.mimeType)?.startsWith('image')) {
83
- return `<a href="${url}" rel="noopener noreferrer">${uploadDocument.filename}</a>`;
84
- }
85
- /**
86
- * If the upload is a simple image with no different sizes, return a simple img tag
87
- */ if (!uploadDocument?.sizes || !Object.keys(uploadDocument?.sizes).length) {
88
- return `<img src="${url}" alt="${uploadDocument?.filename}" width="${uploadDocument?.width}" height="${uploadDocument?.height}"/>`;
89
- }
90
- /**
91
- * If the upload is an image with different sizes, return a picture element
92
- */ let pictureHTML = '<picture>';
93
- // Iterate through each size in the data.sizes object
94
- for(const size in uploadDocument.sizes){
95
- const imageSize = uploadDocument.sizes[size];
96
- // Skip if any property of the size object is null
97
- if (!imageSize.width || !imageSize.height || !imageSize.mimeType || !imageSize.filesize || !imageSize.filename || !imageSize.url) {
98
- continue;
99
- }
100
- const imageSizeURL = getAbsoluteURL(imageSize?.url);
101
- pictureHTML += `<source srcset="${imageSizeURL}" media="(max-width: ${imageSize.width}px)" type="${imageSize.mimeType}">`;
102
- }
103
- // Add the default img tag
104
- pictureHTML += `<img src="${url}" alt="Image" width="${uploadDocument.width}" height="${uploadDocument.height}">`;
105
- pictureHTML += '</picture>';
106
- return pictureHTML;
107
- },
108
- nodeTypes: [
109
- _UploadNode.UploadNode.getType()
110
- ]
111
- }
112
- },
113
- node: _UploadNode.UploadNode,
114
- populationPromises: [
115
- (0, _populationPromise.uploadPopulationPromiseHOC)(props)
116
- ],
117
- type: _UploadNode.UploadNode.getType(),
118
- validations: [
119
- (0, _validate.uploadValidation)()
120
- ]
121
- }
122
- ],
123
- plugins: [
124
- {
125
- Component: ()=>// @ts-expect-error
126
- Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./plugin"))).then((module)=>module.UploadPlugin),
127
- position: 'normal'
128
- }
129
- ],
130
- props: props,
131
- slashMenu: {
132
- options: [
133
- {
134
- displayName: 'Basic',
135
- key: 'basic',
136
- options: [
137
- new _types.SlashMenuOption('upload', {
138
- Icon: ()=>// @ts-expect-error
139
- Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../../lexical/ui/icons/Upload"))).then((module)=>module.UploadIcon),
140
- displayName: 'Upload',
141
- keywords: [
142
- 'upload',
143
- 'image',
144
- 'file',
145
- 'img',
146
- 'picture',
147
- 'photo',
148
- 'media'
149
- ],
150
- onSelect: ({ editor })=>{
151
- editor.dispatchCommand(_commands.INSERT_UPLOAD_WITH_DRAWER_COMMAND, {
152
- replace: false
153
- });
154
- }
155
- })
156
- ]
157
- }
158
- ]
159
- }
160
- };
161
- },
162
-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xlY3Rpb246IHN0cmluZ106IHtcbiAgICAgIGZpZWxkczogRmllbGRbXVxuICAgIH1cbiAgfVxufVxuXG4vKipcbiAqIEdldCB0aGUgYWJzb2x1dGUgVVJMIGZvciBhbiB1cGxvYWQgVVJMIGJ5IHBvdGVudGlhbGx5IHByZXBlbmRpbmcgdGhlIHNlcnZlclVSTFxuICovXG5mdW5jdGlvbiBnZXRBYnNvbHV0ZVVSTCh1cmw6IHN0cmluZyk6IHN0cmluZyB7XG4gIHJldHVybiB1cmw/LnN0YXJ0c1dpdGgoJ2h0dHAnKSA/IHVybCA6IChwYXlsb2FkPy5jb25maWc/LnNlcnZlclVSTCB8fCAnJykgKyB1cmxcbn1cblxuZXhwb3J0IGNvbnN0IFVwbG9hZEZlYXR1cmUgPSAocHJvcHM/OiBVcGxvYWRGZWF0dXJlUHJvcHMpOiBGZWF0dXJlUHJvdmlkZXIgPT4ge1xuICByZXR1cm4ge1xuICAgIGZlYXR1cmU6ICgpID0+IHtcbiAgICAgIHJldHVybiB7XG4gICAgICAgIG5vZGVzOiBbXG4gICAgICAgICAge1xuICAgICAgICAgICAgY29udmVydGVyczoge1xuICAgICAgICAgICAgICBodG1sOiB7XG4gICAgICAgICAgICAgICAgY29udmVydGVyOiBhc3luYyAoeyBub2RlIH0pID0+IHtcbiAgICAgICAgICAgICAgICAgIGNvbnN0IHVwbG9hZERvY3VtZW50OiBhbnkgPSBhd2FpdCBwYXlsb2FkLmZpbmRCeUlEKHtcbiAgICAgICAgICAgICAgICAgICAgaWQ6IG5vZGUudmFsdWUuaWQsXG4gICAgICAgICAgICAgICAgICAgIGNvbGxlY3Rpb246IG5vZGUucmVsYXRpb25UbyxcbiAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICBjb25zdCB1cmw6IHN0cmluZyA9IGdldEFic29sdXRlVVJMKHVwbG9hZERvY3VtZW50Py51cmwgYXMgc3RyaW5nKVxuXG4gICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAg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HBpY3R1cmUgZWxlbWVudFxuICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICBsZXQgcGljdHVyZUhUTUwgPSAnPHBpY3R1cmU+J1xuXG4gICAgICAgICAgICAgICAgICAvLyBJdGVyYXRlIHRocm91Z2ggZWFjaCBzaXplIGluIHRoZSBkYXRhLnNpemVzIG9iamVjdFxuICAgICAgICAgICAgICAgICAgZm9yIChjb25zdCBzaXplIGluIHVwbG9hZERvY3VtZW50LnNpemVzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGltYWdlU2l6ZSA9IHVwbG9hZERvY3VtZW50LnNpemVzW3NpemVdXG5cbiAgICAgICAgICAgICAgICAgICAgLy8gU2tpcCBpZiBhbnkgcHJvcGVydHkgb2YgdGhlIHNpemUgb2JqZWN0IGlzIG51bGxcbiAgICAgICAgICAgICAgICAgICAgaWYgKFxuICAgICAgICAgICAgICAgICAgICAgICFpbWFnZVNpemUud2lkdGggfHxcbiAgICAgICAgICAgICAgICAgICAgICAhaW1hZ2VTaXplLmhlaWdodCB8fFxuICAgICAgICAgICAgICAgICAgICAgICFpbWFnZVNpemUubWltZVR5cGUgfHxcbiAgICAgICAgICAgICAgICAgICAgICAhaW1hZ2VTaXplLmZpbGVzaXplIHx8XG4gICAgICAgICAgICAgICAgICAgICAgIWltYWdlU2l6ZS5maWxlbmFtZSB8fFxuICAgICAgICAgICAgICAgICAgICAgICFpbWFnZVNpemUudXJsXG4gICAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaW1hZ2VTaXplVVJMOiBzdHJpbmcgPSBnZXRBYnNvbHV0ZVVSTChpbWFnZVNpemU/LnVybCBhcyBzdHJpbmcpXG5cbiAgICAgICAgICAgICAgICAgICAgcGljdHVyZUhUTUwgKz0gYDxzb3VyY2Ugc3Jjc2V0PVwiJHtpbWFnZVNpemVVUkx9XCIgbWVkaWE9XCIobWF4LXdpZHRoOiAke2ltYWdlU2l6ZS53aWR0aH1weClcIiB0eXBlPVwiJHtpbWFnZVNpemUubWltZVR5cGV9XCI+YFxuICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAvLyBBZGQgdGhlIGRlZmF1bHQgaW1nIHRhZ1xuICAgICAgICAgICAgICAgICAgcGljdHVyZUhUTUwgKz0gYDxpbWcgc3JjPVwiJHt1cmx9XCIgYWx0PVwiSW1hZ2VcIiB3aWR0aD1cIiR7dXBsb2FkRG9jdW1lbnQud2lkdGh9XCIgaGVpZ2h0PVwiJHt1cGxvYWREb2N1bWVudC5oZWlnaHR9XCI+YFxuICAgICAgICAgICAgICAgICAgcGljdHVyZUhUTUwgKz0gJzwvcGljdHVyZT4nXG5cbiAgICAgICAgICAgICAgICAgIHJldHVybiBwaWN0dXJlSFRNTFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgbm9kZVR5cGVzOiBbVXBsb2FkTm9kZS5nZXRUeXBlKCldLFxuICAgICAgICAgICAgICB9IGFzIEhUTUxDb252ZXJ0ZXI8U2VyaWFsaXplZFVwbG9hZE5vZGU+LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5vZGU6IFVwbG9hZE5vZGUsXG4gICAgICAgICAgICBwb3B1bGF0aW9uUHJvbWlzZXM6IFt1cGxvYWRQb3B1bGF0aW9uUHJvbWlzZUhPQyhwcm9wcyldLFxuICAgICAgICAgICAgdHlwZTogVXBsb2FkTm9kZS5nZXRUeXBlKCksXG4gICAgICAgICAgICB2YWxpZGF0aW9uczogW3VwbG9hZFZhbGlkYXRpb24oKV0sXG4gICAgICAgICAgfSxcbiAgICAgICAgXSxcbiAgICAgICAgcGx1Z2luczogW1xuICAgICAgICAgIHtcbiAgICAgICAgICAgIENvbXBvbmVudDogKCkgPT5cbiAgICAgICAgICAgICAgLy8gQHRzLWV4cGVjdC1lcnJvclxuICAgICAgICAgICAgICBpbXBvcnQoJy4vcGx1Z2luJykudGhlbigobW9kdWxlKSA9PiBtb2R1bGUuVXBsb2FkUGx1Z2luKSxcbiAgICAgICAgICAgIHBvc2l0aW9uOiAnbm9ybWFsJyxcbiAgICAgICAgICB9LFxuICAgICAgICBdLFxuICAgICAgICBwcm9wczogcHJvcHMsXG4gICAgICAgIHNsYXNoTWVudToge1xuICAgICAgICAgIG9wdGlvbnM6IFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgZGlzcGxheU5hbWU6ICdCYXNpYycsXG4gICAgICAgICAgICAgIGtleTogJ2Jhc2ljJyxcbiAgICAgICAgICAgICAgb3B0aW9uczogW1xuICAgICAgICAgICAgICAgIG5ldyBTbGFzaE1lbnVPcHRpb24oJ3VwbG9hZCcsIHtcbiAgICAgICAgICAgICAgICAgIEljb246ICgpID0+XG4gICAgICAgICAgICAgICAgICAgIC8vIEB0cy1leHBlY3QtZXJyb3JcbiAgICAgICAgICAgICAgICAgICAgaW1wb3J0KCcuLi8uLi9sZXhpY2FsL3VpL2ljb25zL1VwbG9hZCcpLnRoZW4oKG1vZHVsZSkgPT4gbW9kdWxlLlVwbG9hZEljb24pLFxuICAgICAgICAgICAgICAgICAgZGlzcGxheU5hbWU6ICdVcGxvYWQnLFxuICAgICAgICAgICAgICAgICAga2V5d29yZHM6IFsndXBsb2FkJywgJ2ltYWdlJywgJ2ZpbGUnLCAnaW1nJywgJ3BpY3R1cmUnLCAncGhvdG8nLCAnbWVkaWEnXSxcbiAgICAgICAgICAgICAgICAgIG9uU2VsZWN0OiAoeyBlZGl0b3IgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBlZGl0b3IuZGlzcGF0Y2hDb21tYW5kKElOU0VSVF9VUExPQURfV0lUSF9EUkFXRVJfQ09NTUFORCwge1xuICAgICAgICAgICAgICAgICAgICAgIHJlcGxhY2U6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICA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ecoratorBlockNode';
3
- import type { ElementFormatType, NodeKey } from 'lexical';
4
- import { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode';
5
- import { type DOMConversionMap, type DOMExportOutput, type LexicalNode, type Spread } from 'lexical';
6
- export interface RawUploadPayload {
7
- fields: {
8
- [key: string]: unknown;
9
- };
10
- id: string;
11
- relationTo: string;
12
- }
13
- export type UploadData = {
14
- fields: {
15
- [key: string]: unknown;
16
- };
17
- relationTo: string;
18
- value: {
19
- [key: string]: unknown;
20
- id: string;
21
- };
22
- };
23
- export type SerializedUploadNode = Spread<UploadData, SerializedDecoratorBlockNode>;
24
- export declare class UploadNode extends DecoratorBlockNode {
25
- __data: UploadData;
26
- constructor({ data, format, key, }: {
27
- data: UploadData;
28
- format?: ElementFormatType;
29
- key?: NodeKey;
30
- });
31
- static clone(node: UploadNode): UploadNode;
32
- static getType(): string;
33
- static importDOM(): DOMConversionMap | null;
34
- static importJSON(serializedNode: SerializedUploadNode): UploadNode;
35
- static isInline(): false;
36
- decorate(): JSX.Element;
37
- exportDOM(): DOMExportOutput;
38
- exportJSON(): SerializedUploadNode;
39
- getData(): UploadData;
40
- setData(data: UploadData): void;
41
- updateDOM(): false;
42
- }
43
- export declare function $createUploadNode({ data }: {
44
- data: UploadData;
45
- }): UploadNode;
46
- export declare function $isUploadNode(node: LexicalNode | null | undefined): node is UploadNode;
47
- //# sourceMappingURL=UploadNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UploadNode.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/Upload/nodes/UploadNode.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAA;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAC7E,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,eAAe,E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AGnB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,UAAU,CAE5E;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,UAAU,CAEtF"}
@@ -1,158 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- UploadNode: function() {
13
- return UploadNode;
14
- },
15
- $createUploadNode: function() {
16
- return $createUploadNode;
17
- },
18
- $isUploadNode: function() {
19
- return $isUploadNode;
20
- }
21
- });
22
- const _LexicalDecoratorBlockNode = require("@lexical/react/LexicalDecoratorBlockNode");
23
- const _lexical = require("lexical");
24
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
25
- function _getRequireWildcardCache(nodeInterop) {
26
- if (typeof WeakMap !== "function") return null;
27
- var cacheBabelInterop = new WeakMap();
28
- var cacheNodeInterop = new WeakMap();
29
- return (_getRequireWildcardCache = function(nodeInterop) {
30
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
31
- })(nodeInterop);
32
- }
33
- function _interop_require_wildcard(obj, nodeInterop) {
34
- if (!nodeInterop && obj && obj.__esModule) {
35
- return obj;
36
- }
37
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
38
- return {
39
- default: obj
40
- };
41
- }
42
- var cache = _getRequireWildcardCache(nodeInterop);
43
- if (cache && cache.has(obj)) {
44
- return cache.get(obj);
45
- }
46
- var newObj = {};
47
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
48
- for(var key in obj){
49
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
50
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
51
- if (desc && (desc.get || desc.set)) {
52
- Object.defineProperty(newObj, key, desc);
53
- } else {
54
- newObj[key] = obj[key];
55
- }
56
- }
57
- }
58
- newObj.default = obj;
59
- if (cache) {
60
- cache.set(obj, newObj);
61
- }
62
- return newObj;
63
- }
64
- // @ts-expect-error TypeScript being dumb
65
- const RawUploadComponent = /*#__PURE__*/ _react.lazy(async ()=>await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../component"))));
66
- function convertUploadElement(domNode) {
67
- if (domNode instanceof HTMLImageElement) {
68
- // const { alt: altText, src } = domNode;
69
- // const node = $createImageNode({ altText, src });
70
- // return { node };
71
- // TODO: Auto-upload functionality here!
72
- }
73
- return null;
74
- }
75
- class UploadNode extends _LexicalDecoratorBlockNode.DecoratorBlockNode {
76
- __data;
77
- constructor({ data, format, key }){
78
- super(format, key);
79
- this.__data = data;
80
- }
81
- static clone(node) {
82
- return new UploadNode({
83
- data: node.__data,
84
- format: node.__format,
85
- key: node.__key
86
- });
87
- }
88
- static getType() {
89
- return 'upload';
90
- }
91
- static importDOM() {
92
- return {
93
- img: (node)=>({
94
- conversion: convertUploadElement,
95
- priority: 0
96
- })
97
- };
98
- }
99
- static importJSON(serializedNode) {
100
- const importedData = {
101
- fields: serializedNode.fields,
102
- relationTo: serializedNode.relationTo,
103
- value: serializedNode.value
104
- };
105
- const node = $createUploadNode({
106
- data: importedData
107
- });
108
- node.setFormat(serializedNode.format);
109
- return node;
110
- }
111
- static isInline() {
112
- return false;
113
- }
114
- decorate() {
115
- return /*#__PURE__*/ _react.createElement(RawUploadComponent, {
116
- data: this.__data,
117
- format: this.__format,
118
- nodeKey: this.getKey()
119
- });
120
- }
121
- exportDOM() {
122
- const element = document.createElement('img');
123
- // element.setAttribute('src', this.__src);
124
- // element.setAttribute('alt', this.__altText); //TODO
125
- return {
126
- element
127
- };
128
- }
129
- exportJSON() {
130
- return {
131
- ...super.exportJSON(),
132
- ...this.getData(),
133
- type: this.getType(),
134
- version: 1
135
- };
136
- }
137
- getData() {
138
- return this.getLatest().__data;
139
- }
140
- setData(data) {
141
- const writable = this.getWritable();
142
- writable.__data = data;
143
- }
144
- // eslint-disable-next-line class-methods-use-this
145
- updateDOM() {
146
- return false;
147
- }
148
- }
149
- function $createUploadNode({ data }) {
150
- return (0, _lexical.$applyNodeReplacement)(new UploadNode({
151
- data
152
- }));
153
- }
154
- function $isUploadNode(node) {
155
- return node instanceof UploadNode;
156
- }
157
-
158
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9maWVsZC9mZWF0dXJlcy9VcGxvYWQvbm9kZXMvVXBsb2FkTm9kZS50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBTZXJpYWxpemVkRGVjb3JhdG9yQmxvY2tOb2RlIH0gZnJvbSAnQGxleGljYWwvcmVhY3QvTGV4aWNhbERlY29yYXRvckJsb2NrTm9kZSdcbmltcG9ydCB0eXBlIHsgRWxlbWVudEZvcm1hdFR5cGUsIE5vZGVLZXkgfSBmcm9tICdsZXhpY2FsJ1xuXG5pbXBvcnQgeyBEZWNvcmF0b3JCbG9ja05vZGUgfSBmcm9tICdAbGV4aWNhbC9yZWFjdC9MZXhpY2FsRGVjb3JhdG9yQmxvY2tOb2RlJ1xuaW1wb3J0IHtcbiAgJGFwcGx5Tm9kZVJlcGxhY2VtZW50LFxuICB0eXBlIERPTUNvbnZlcnNpb25NYXAsXG4gIHR5cGUgRE9NQ29udmVyc2lvbk91dHB1dCxcbiAgdHlwZSBET01FeHBvcnRPdXRwdXQsXG4gIHR5cGUgTGV4aWNhbE5vZGUsXG4gIHR5cGUgU3ByZWFkLFxufSBmcm9tICdsZXhpY2FsJ1xuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnXG5cbi8vIEB0cy1leHBlY3QtZXJyb3IgVHlwZVNjcmlwdCBiZWluZyBkdW1iXG5jb25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