@payloadcms/richtext-lexical 3.0.0-beta.9 → 3.0.0-canary.220bb7c

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 (841) hide show
  1. package/components.d.ts +6 -0
  2. package/components.js +7 -0
  3. package/dist/cell/index.d.ts +5 -2
  4. package/dist/cell/index.d.ts.map +1 -1
  5. package/dist/cell/index.js +44 -29
  6. package/dist/cell/index.js.map +1 -1
  7. package/dist/exports/components.d.ts +7 -2
  8. package/dist/exports/components.d.ts.map +1 -1
  9. package/dist/exports/components.js +7 -2
  10. package/dist/exports/components.js.map +1 -1
  11. package/dist/field/Field.d.ts +0 -2
  12. package/dist/field/Field.d.ts.map +1 -1
  13. package/dist/field/Field.js +66 -47
  14. package/dist/field/Field.js.map +1 -1
  15. package/dist/field/features/align/feature.client.d.ts +4 -1
  16. package/dist/field/features/align/feature.client.d.ts.map +1 -1
  17. package/dist/field/features/align/feature.client.js +135 -54
  18. package/dist/field/features/align/feature.client.js.map +1 -1
  19. package/dist/field/features/align/feature.server.d.ts.map +1 -1
  20. package/dist/field/features/align/feature.server.js +2 -0
  21. package/dist/field/features/align/feature.server.js.map +1 -1
  22. package/dist/field/features/align/i18n.d.ts +3 -0
  23. package/dist/field/features/align/i18n.d.ts.map +1 -0
  24. package/dist/field/features/align/i18n.js +196 -0
  25. package/dist/field/features/align/i18n.js.map +1 -0
  26. package/dist/field/features/align/toolbarAlignGroup.d.ts +3 -0
  27. package/dist/field/features/align/toolbarAlignGroup.d.ts.map +1 -0
  28. package/dist/field/features/align/toolbarAlignGroup.js +12 -0
  29. package/dist/field/features/align/toolbarAlignGroup.js.map +1 -0
  30. package/dist/field/features/blockquote/feature.client.d.ts +4 -1
  31. package/dist/field/features/blockquote/feature.client.d.ts.map +1 -1
  32. package/dist/field/features/blockquote/feature.client.js +60 -46
  33. package/dist/field/features/blockquote/feature.client.js.map +1 -1
  34. package/dist/field/features/blockquote/feature.server.d.ts +1 -1
  35. package/dist/field/features/blockquote/feature.server.d.ts.map +1 -1
  36. package/dist/field/features/blockquote/feature.server.js +9 -7
  37. package/dist/field/features/blockquote/feature.server.js.map +1 -1
  38. package/dist/field/features/blockquote/i18n.d.ts +3 -0
  39. package/dist/field/features/blockquote/i18n.d.ts.map +1 -0
  40. package/dist/field/features/blockquote/i18n.js +100 -0
  41. package/dist/field/features/blockquote/i18n.js.map +1 -0
  42. package/dist/field/features/blockquote/markdownTransformer.d.ts.map +1 -1
  43. package/dist/field/features/blockquote/markdownTransformer.js +2 -4
  44. package/dist/field/features/blockquote/markdownTransformer.js.map +1 -1
  45. package/dist/field/features/blocks/component/BlockContent.d.ts.map +1 -1
  46. package/dist/field/features/blocks/component/BlockContent.js +65 -50
  47. package/dist/field/features/blocks/component/BlockContent.js.map +1 -1
  48. package/dist/field/features/blocks/component/index.d.ts.map +1 -1
  49. package/dist/field/features/blocks/component/index.js +60 -17
  50. package/dist/field/features/blocks/component/index.js.map +1 -1
  51. package/dist/field/features/blocks/component/index.scss +0 -4
  52. package/dist/field/features/blocks/drawer/index.d.ts.map +1 -1
  53. package/dist/field/features/blocks/drawer/index.js +4 -5
  54. package/dist/field/features/blocks/drawer/index.js.map +1 -1
  55. package/dist/field/features/blocks/feature.client.d.ts +4 -1
  56. package/dist/field/features/blocks/feature.client.d.ts.map +1 -1
  57. package/dist/field/features/blocks/feature.client.js +58 -27
  58. package/dist/field/features/blocks/feature.client.js.map +1 -1
  59. package/dist/field/features/blocks/feature.server.d.ts +2 -5
  60. package/dist/field/features/blocks/feature.server.d.ts.map +1 -1
  61. package/dist/field/features/blocks/feature.server.js +111 -77
  62. package/dist/field/features/blocks/feature.server.js.map +1 -1
  63. package/dist/field/features/blocks/i18n.d.ts +3 -0
  64. package/dist/field/features/blocks/i18n.d.ts.map +1 -0
  65. package/dist/field/features/blocks/i18n.js +100 -0
  66. package/dist/field/features/blocks/i18n.js.map +1 -0
  67. package/dist/field/features/blocks/nodes/BlocksNode.d.ts +2 -4
  68. package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +1 -1
  69. package/dist/field/features/blocks/nodes/BlocksNode.js +3 -3
  70. package/dist/field/features/blocks/nodes/BlocksNode.js.map +1 -1
  71. package/dist/field/features/blocks/plugin/commands.d.ts.map +1 -1
  72. package/dist/field/features/blocks/plugin/commands.js +1 -2
  73. package/dist/field/features/blocks/plugin/commands.js.map +1 -1
  74. package/dist/field/features/blocks/plugin/index.d.ts +3 -2
  75. package/dist/field/features/blocks/plugin/index.d.ts.map +1 -1
  76. package/dist/field/features/blocks/plugin/index.js +10 -11
  77. package/dist/field/features/blocks/plugin/index.js.map +1 -1
  78. package/dist/field/features/blocks/populationPromise.d.ts.map +1 -1
  79. package/dist/field/features/blocks/populationPromise.js +5 -19
  80. package/dist/field/features/blocks/populationPromise.js.map +1 -1
  81. package/dist/field/features/blocks/validate.d.ts.map +1 -1
  82. package/dist/field/features/blocks/validate.js +22 -36
  83. package/dist/field/features/blocks/validate.js.map +1 -1
  84. package/dist/field/features/converters/html/field/index.d.ts +8 -2
  85. package/dist/field/features/converters/html/field/index.d.ts.map +1 -1
  86. package/dist/field/features/converters/html/field/index.js +36 -5
  87. package/dist/field/features/converters/html/field/index.js.map +1 -1
  88. package/dist/field/features/createFeaturePropComponent.d.ts.map +1 -1
  89. package/dist/field/features/createFeaturePropComponent.js +6 -1
  90. package/dist/field/features/createFeaturePropComponent.js.map +1 -1
  91. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.d.ts +4 -1
  92. package/dist/field/features/debug/testRecorder/feature.client.d.ts.map +1 -0
  93. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.js.map +1 -1
  94. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.d.ts.map +1 -1
  95. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.js +1 -1
  96. package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.js.map +1 -1
  97. package/dist/field/features/debug/testRecorder/plugin/index.d.ts +5 -0
  98. package/dist/field/features/debug/testRecorder/plugin/index.d.ts.map +1 -0
  99. package/dist/field/features/debug/{testrecorder → testRecorder}/plugin/index.js +68 -44
  100. package/dist/field/features/debug/testRecorder/plugin/index.js.map +1 -0
  101. package/dist/field/features/debug/{treeview → treeView}/feature.client.d.ts +4 -1
  102. package/dist/field/features/debug/treeView/feature.client.d.ts.map +1 -0
  103. package/dist/field/features/debug/{treeview → treeView}/feature.client.js.map +1 -1
  104. package/dist/field/features/debug/{treeview → treeView}/feature.server.d.ts.map +1 -1
  105. package/dist/field/features/debug/{treeview → treeView}/feature.server.js +1 -1
  106. package/dist/field/features/debug/{treeview → treeView}/feature.server.js.map +1 -1
  107. package/dist/field/features/debug/treeView/plugin/index.d.ts +4 -0
  108. package/dist/field/features/debug/treeView/plugin/index.d.ts.map +1 -0
  109. package/dist/field/features/debug/{treeview → treeView}/plugin/index.js +6 -7
  110. package/dist/field/features/debug/treeView/plugin/index.js.map +1 -0
  111. package/dist/field/features/format/bold/feature.client.d.ts +4 -1
  112. package/dist/field/features/format/bold/feature.client.d.ts.map +1 -1
  113. package/dist/field/features/format/bold/feature.client.js +26 -23
  114. package/dist/field/features/format/bold/feature.client.js.map +1 -1
  115. package/dist/field/features/format/{inlinecode → inlineCode}/feature.client.d.ts +4 -1
  116. package/dist/field/features/format/inlineCode/feature.client.d.ts.map +1 -0
  117. package/dist/field/features/format/inlineCode/feature.client.js +46 -0
  118. package/dist/field/features/format/inlineCode/feature.client.js.map +1 -0
  119. package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.d.ts.map +1 -1
  120. package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.js +1 -1
  121. package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.js.map +1 -1
  122. package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.d.ts.map +1 -1
  123. package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.js.map +1 -1
  124. package/dist/field/features/format/italic/feature.client.d.ts +4 -1
  125. package/dist/field/features/format/italic/feature.client.d.ts.map +1 -1
  126. package/dist/field/features/format/italic/feature.client.js +27 -24
  127. package/dist/field/features/format/italic/feature.client.js.map +1 -1
  128. package/dist/field/features/format/shared/toolbarFormatGroup.d.ts +3 -0
  129. package/dist/field/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
  130. package/dist/field/features/format/shared/toolbarFormatGroup.js +10 -0
  131. package/dist/field/features/format/shared/toolbarFormatGroup.js.map +1 -0
  132. package/dist/field/features/format/strikethrough/feature.client.d.ts +4 -1
  133. package/dist/field/features/format/strikethrough/feature.client.d.ts.map +1 -1
  134. package/dist/field/features/format/strikethrough/feature.client.js +27 -24
  135. package/dist/field/features/format/strikethrough/feature.client.js.map +1 -1
  136. package/dist/field/features/format/subscript/feature.client.d.ts +4 -1
  137. package/dist/field/features/format/subscript/feature.client.d.ts.map +1 -1
  138. package/dist/field/features/format/subscript/feature.client.js +25 -22
  139. package/dist/field/features/format/subscript/feature.client.js.map +1 -1
  140. package/dist/field/features/format/superscript/feature.client.d.ts +4 -1
  141. package/dist/field/features/format/superscript/feature.client.d.ts.map +1 -1
  142. package/dist/field/features/format/superscript/feature.client.js +25 -22
  143. package/dist/field/features/format/superscript/feature.client.js.map +1 -1
  144. package/dist/field/features/format/underline/feature.client.d.ts +4 -1
  145. package/dist/field/features/format/underline/feature.client.d.ts.map +1 -1
  146. package/dist/field/features/format/underline/feature.client.js +25 -22
  147. package/dist/field/features/format/underline/feature.client.js.map +1 -1
  148. package/dist/field/features/heading/feature.client.d.ts +4 -1
  149. package/dist/field/features/heading/feature.client.d.ts.map +1 -1
  150. package/dist/field/features/heading/feature.client.js +76 -54
  151. package/dist/field/features/heading/feature.client.js.map +1 -1
  152. package/dist/field/features/heading/feature.server.d.ts.map +1 -1
  153. package/dist/field/features/heading/feature.server.js +7 -5
  154. package/dist/field/features/heading/feature.server.js.map +1 -1
  155. package/dist/field/features/heading/i18n.d.ts +3 -0
  156. package/dist/field/features/heading/i18n.d.ts.map +1 -0
  157. package/dist/field/features/heading/i18n.js +100 -0
  158. package/dist/field/features/heading/i18n.js.map +1 -0
  159. package/dist/field/features/heading/markdownTransformer.d.ts.map +1 -1
  160. package/dist/field/features/heading/markdownTransformer.js +1 -2
  161. package/dist/field/features/heading/markdownTransformer.js.map +1 -1
  162. package/dist/field/features/horizontalRule/component/index.d.ts.map +1 -0
  163. package/dist/field/features/{horizontalrule → horizontalRule}/component/index.js +5 -7
  164. package/dist/field/features/horizontalRule/component/index.js.map +1 -0
  165. package/dist/field/features/{horizontalrule → horizontalRule}/feature.client.d.ts +4 -1
  166. package/dist/field/features/horizontalRule/feature.client.d.ts.map +1 -0
  167. package/dist/field/features/horizontalRule/feature.client.js +77 -0
  168. package/dist/field/features/horizontalRule/feature.client.js.map +1 -0
  169. package/dist/field/features/horizontalRule/feature.server.d.ts.map +1 -0
  170. package/dist/field/features/{horizontalrule → horizontalRule}/feature.server.js +6 -4
  171. package/dist/field/features/horizontalRule/feature.server.js.map +1 -0
  172. package/dist/field/features/horizontalRule/i18n.d.ts +3 -0
  173. package/dist/field/features/horizontalRule/i18n.d.ts.map +1 -0
  174. package/dist/field/features/horizontalRule/i18n.js +100 -0
  175. package/dist/field/features/horizontalRule/i18n.js.map +1 -0
  176. package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.d.ts.map +1 -1
  177. package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.js.map +1 -1
  178. package/dist/field/features/{horizontalrule → horizontalRule}/nodes/HorizontalRuleNode.d.ts +1 -3
  179. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +1 -0
  180. package/dist/field/features/{horizontalrule → horizontalRule}/nodes/HorizontalRuleNode.js +5 -5
  181. package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.js.map +1 -0
  182. package/dist/field/features/horizontalRule/plugin/index.d.ts +7 -0
  183. package/dist/field/features/horizontalRule/plugin/index.d.ts.map +1 -0
  184. package/dist/field/features/{horizontalrule → horizontalRule}/plugin/index.js +5 -8
  185. package/dist/field/features/horizontalRule/plugin/index.js.map +1 -0
  186. package/dist/field/features/indent/feature.client.d.ts +4 -1
  187. package/dist/field/features/indent/feature.client.d.ts.map +1 -1
  188. package/dist/field/features/indent/feature.client.js +47 -42
  189. package/dist/field/features/indent/feature.client.js.map +1 -1
  190. package/dist/field/features/indent/feature.server.d.ts.map +1 -1
  191. package/dist/field/features/indent/feature.server.js +2 -0
  192. package/dist/field/features/indent/feature.server.js.map +1 -1
  193. package/dist/field/features/indent/i18n.d.ts +3 -0
  194. package/dist/field/features/indent/i18n.d.ts.map +1 -0
  195. package/dist/field/features/indent/i18n.js +132 -0
  196. package/dist/field/features/indent/i18n.js.map +1 -0
  197. package/dist/field/features/indent/toolbarIndentGroup.d.ts +3 -0
  198. package/dist/field/features/indent/toolbarIndentGroup.d.ts.map +1 -0
  199. package/dist/field/features/indent/toolbarIndentGroup.js +10 -0
  200. package/dist/field/features/indent/toolbarIndentGroup.js.map +1 -0
  201. package/dist/field/features/link/drawer/baseFields.d.ts +2 -2
  202. package/dist/field/features/link/drawer/baseFields.d.ts.map +1 -1
  203. package/dist/field/features/link/drawer/baseFields.js +30 -43
  204. package/dist/field/features/link/drawer/baseFields.js.map +1 -1
  205. package/dist/field/features/link/drawer/index.js +30 -21
  206. package/dist/field/features/link/drawer/index.js.map +1 -1
  207. package/dist/field/features/link/drawer/types.d.ts +4 -2
  208. package/dist/field/features/link/drawer/types.d.ts.map +1 -1
  209. package/dist/field/features/link/drawer/types.js.map +1 -1
  210. package/dist/field/features/link/feature.client.d.ts +13 -1
  211. package/dist/field/features/link/feature.client.d.ts.map +1 -1
  212. package/dist/field/features/link/feature.client.js +65 -47
  213. package/dist/field/features/link/feature.client.js.map +1 -1
  214. package/dist/field/features/link/feature.server.d.ts +10 -5
  215. package/dist/field/features/link/feature.server.d.ts.map +1 -1
  216. package/dist/field/features/link/feature.server.js +58 -11
  217. package/dist/field/features/link/feature.server.js.map +1 -1
  218. package/dist/field/features/link/i18n.d.ts +3 -0
  219. package/dist/field/features/link/i18n.d.ts.map +1 -0
  220. package/dist/field/features/link/i18n.js +100 -0
  221. package/dist/field/features/link/i18n.js.map +1 -0
  222. package/dist/field/features/link/markdownTransformer.d.ts +6 -0
  223. package/dist/field/features/link/markdownTransformer.d.ts.map +1 -0
  224. package/dist/field/features/link/markdownTransformer.js +50 -0
  225. package/dist/field/features/link/markdownTransformer.js.map +1 -0
  226. package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +1 -1
  227. package/dist/field/features/link/nodes/AutoLinkNode.js +1 -2
  228. package/dist/field/features/link/nodes/AutoLinkNode.js.map +1 -1
  229. package/dist/field/features/link/nodes/LinkNode.d.ts +4 -4
  230. package/dist/field/features/link/nodes/LinkNode.d.ts.map +1 -1
  231. package/dist/field/features/link/nodes/LinkNode.js +6 -7
  232. package/dist/field/features/link/nodes/LinkNode.js.map +1 -1
  233. package/dist/field/features/link/plugins/autoLink/index.d.ts +3 -2
  234. package/dist/field/features/link/plugins/autoLink/index.d.ts.map +1 -1
  235. package/dist/field/features/link/plugins/autoLink/index.js +11 -12
  236. package/dist/field/features/link/plugins/autoLink/index.js.map +1 -1
  237. package/dist/field/features/link/plugins/clickableLink/index.d.ts +3 -2
  238. package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +1 -1
  239. package/dist/field/features/link/plugins/clickableLink/index.js +4 -3
  240. package/dist/field/features/link/plugins/clickableLink/index.js.map +1 -1
  241. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -1
  242. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +1 -2
  243. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -1
  244. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
  245. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +177 -135
  246. package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  247. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +3 -4
  248. package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  249. package/dist/field/features/link/plugins/floatingLinkEditor/index.js +2 -1
  250. package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +1 -1
  251. package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +11 -3
  252. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +1 -3
  253. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -1
  254. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +12 -30
  255. package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -1
  256. package/dist/field/features/link/plugins/link/index.d.ts +3 -1
  257. package/dist/field/features/link/plugins/link/index.d.ts.map +1 -1
  258. package/dist/field/features/link/plugins/link/index.js +5 -14
  259. package/dist/field/features/link/plugins/link/index.js.map +1 -1
  260. package/dist/field/features/link/populationPromise.d.ts.map +1 -1
  261. package/dist/field/features/link/populationPromise.js +11 -26
  262. package/dist/field/features/link/populationPromise.js.map +1 -1
  263. package/dist/field/features/link/validate.d.ts +5 -0
  264. package/dist/field/features/link/validate.d.ts.map +1 -0
  265. package/dist/field/features/link/validate.js +32 -0
  266. package/dist/field/features/link/validate.js.map +1 -0
  267. package/dist/field/features/lists/checklist/feature.client.d.ts +4 -1
  268. package/dist/field/features/lists/checklist/feature.client.d.ts.map +1 -1
  269. package/dist/field/features/lists/checklist/feature.client.js +69 -44
  270. package/dist/field/features/lists/checklist/feature.client.js.map +1 -1
  271. package/dist/field/features/lists/checklist/feature.server.d.ts +1 -1
  272. package/dist/field/features/lists/checklist/feature.server.d.ts.map +1 -1
  273. package/dist/field/features/lists/checklist/feature.server.js +12 -10
  274. package/dist/field/features/lists/checklist/feature.server.js.map +1 -1
  275. package/dist/field/features/lists/checklist/i18n.d.ts +3 -0
  276. package/dist/field/features/lists/checklist/i18n.d.ts.map +1 -0
  277. package/dist/field/features/lists/checklist/i18n.js +100 -0
  278. package/dist/field/features/lists/checklist/i18n.js.map +1 -0
  279. package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +1 -1
  280. package/dist/field/features/lists/checklist/markdownTransformers.js +2 -3
  281. package/dist/field/features/lists/checklist/markdownTransformers.js.map +1 -1
  282. package/dist/field/features/lists/checklist/plugin/index.d.ts +2 -2
  283. package/dist/field/features/lists/checklist/plugin/index.d.ts.map +1 -1
  284. package/dist/field/features/lists/checklist/plugin/index.js +5 -5
  285. package/dist/field/features/lists/checklist/plugin/index.js.map +1 -1
  286. package/dist/field/features/lists/htmlConverter.d.ts.map +1 -1
  287. package/dist/field/features/lists/htmlConverter.js +13 -6
  288. package/dist/field/features/lists/htmlConverter.js.map +1 -1
  289. package/dist/field/features/lists/{orderedlist → orderedList}/feature.client.d.ts +4 -1
  290. package/dist/field/features/lists/orderedList/feature.client.d.ts.map +1 -0
  291. package/dist/field/features/lists/orderedList/feature.client.js +97 -0
  292. package/dist/field/features/lists/orderedList/feature.client.js.map +1 -0
  293. package/dist/field/features/lists/orderedList/feature.server.d.ts.map +1 -0
  294. package/dist/field/features/lists/{orderedlist → orderedList}/feature.server.js +10 -8
  295. package/dist/field/features/lists/orderedList/feature.server.js.map +1 -0
  296. package/dist/field/features/lists/orderedList/i18n.d.ts +3 -0
  297. package/dist/field/features/lists/orderedList/i18n.d.ts.map +1 -0
  298. package/dist/field/features/lists/orderedList/i18n.js +100 -0
  299. package/dist/field/features/lists/orderedList/i18n.js.map +1 -0
  300. package/dist/field/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
  301. package/dist/field/features/lists/{orderedlist → orderedList}/markdownTransformer.js +2 -3
  302. package/dist/field/features/lists/orderedList/markdownTransformer.js.map +1 -0
  303. package/dist/field/features/lists/plugin/index.d.ts +2 -2
  304. package/dist/field/features/lists/plugin/index.d.ts.map +1 -1
  305. package/dist/field/features/lists/plugin/index.js +5 -5
  306. package/dist/field/features/lists/plugin/index.js.map +1 -1
  307. package/dist/field/features/lists/{common → shared}/markdown.d.ts.map +1 -1
  308. package/dist/field/features/lists/{common → shared}/markdown.js +1 -2
  309. package/dist/field/features/lists/shared/markdown.js.map +1 -0
  310. package/dist/field/features/lists/shared/slashMenuListGroup.d.ts +3 -0
  311. package/dist/field/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
  312. package/dist/field/features/lists/shared/slashMenuListGroup.js +11 -0
  313. package/dist/field/features/lists/shared/slashMenuListGroup.js.map +1 -0
  314. package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.client.d.ts +4 -1
  315. package/dist/field/features/lists/unorderedList/feature.client.d.ts.map +1 -0
  316. package/dist/field/features/lists/unorderedList/feature.client.js +97 -0
  317. package/dist/field/features/lists/unorderedList/feature.client.js.map +1 -0
  318. package/dist/field/features/lists/unorderedList/feature.server.d.ts.map +1 -0
  319. package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.server.js +9 -7
  320. package/dist/field/features/lists/unorderedList/feature.server.js.map +1 -0
  321. package/dist/field/features/lists/unorderedList/i18n.d.ts +3 -0
  322. package/dist/field/features/lists/unorderedList/i18n.d.ts.map +1 -0
  323. package/dist/field/features/lists/unorderedList/i18n.js +100 -0
  324. package/dist/field/features/lists/unorderedList/i18n.js.map +1 -0
  325. package/dist/field/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
  326. package/dist/field/features/lists/{unorderedlist → unorderedList}/markdownTransformer.js +2 -3
  327. package/dist/field/features/lists/unorderedList/markdownTransformer.js.map +1 -0
  328. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  329. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +2 -4
  330. package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
  331. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +4 -1
  332. package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -1
  333. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +9 -1
  334. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  335. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +2 -4
  336. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
  337. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +4 -5
  338. package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  339. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +1 -1
  340. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +1 -1
  341. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +1 -1
  342. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +2 -2
  343. package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +1 -1
  344. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -1
  345. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +2 -4
  346. package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
  347. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -1
  348. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +2 -4
  349. package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
  350. package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +1 -1
  351. package/dist/field/features/migrations/slateToLexical/converter/index.js +2 -1
  352. package/dist/field/features/migrations/slateToLexical/converter/index.js.map +1 -1
  353. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +4 -1
  354. package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +1 -1
  355. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +9 -1
  356. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  357. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +2 -4
  358. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
  359. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +4 -5
  360. package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  361. package/dist/field/features/paragraph/feature.client.d.ts +4 -1
  362. package/dist/field/features/paragraph/feature.client.d.ts.map +1 -1
  363. package/dist/field/features/paragraph/feature.client.js +54 -41
  364. package/dist/field/features/paragraph/feature.client.js.map +1 -1
  365. package/dist/field/features/paragraph/feature.server.d.ts.map +1 -1
  366. package/dist/field/features/paragraph/feature.server.js +2 -0
  367. package/dist/field/features/paragraph/feature.server.js.map +1 -1
  368. package/dist/field/features/paragraph/i18n.d.ts +3 -0
  369. package/dist/field/features/paragraph/i18n.d.ts.map +1 -0
  370. package/dist/field/features/paragraph/i18n.js +132 -0
  371. package/dist/field/features/paragraph/i18n.js.map +1 -0
  372. package/dist/field/features/relationship/drawer/commands.d.ts.map +1 -1
  373. package/dist/field/features/relationship/drawer/commands.js +1 -2
  374. package/dist/field/features/relationship/drawer/commands.js.map +1 -1
  375. package/dist/field/features/relationship/drawer/index.d.ts.map +1 -1
  376. package/dist/field/features/relationship/drawer/index.js +17 -15
  377. package/dist/field/features/relationship/drawer/index.js.map +1 -1
  378. package/dist/field/features/relationship/feature.client.d.ts +17 -2
  379. package/dist/field/features/relationship/feature.client.d.ts.map +1 -1
  380. package/dist/field/features/relationship/feature.client.js +51 -28
  381. package/dist/field/features/relationship/feature.client.js.map +1 -1
  382. package/dist/field/features/relationship/feature.server.d.ts +10 -1
  383. package/dist/field/features/relationship/feature.server.d.ts.map +1 -1
  384. package/dist/field/features/relationship/feature.server.js +7 -4
  385. package/dist/field/features/relationship/feature.server.js.map +1 -1
  386. package/dist/field/features/relationship/i18n.d.ts +3 -0
  387. package/dist/field/features/relationship/i18n.d.ts.map +1 -0
  388. package/dist/field/features/relationship/i18n.js +100 -0
  389. package/dist/field/features/relationship/i18n.js.map +1 -0
  390. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts +4 -9
  391. package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +1 -1
  392. package/dist/field/features/relationship/nodes/RelationshipNode.js +12 -11
  393. package/dist/field/features/relationship/nodes/RelationshipNode.js.map +1 -1
  394. package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -1
  395. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +119 -50
  396. package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +1 -1
  397. package/dist/field/features/relationship/plugins/index.d.ts +2 -2
  398. package/dist/field/features/relationship/plugins/index.d.ts.map +1 -1
  399. package/dist/field/features/relationship/plugins/index.js +14 -15
  400. package/dist/field/features/relationship/plugins/index.js.map +1 -1
  401. package/dist/field/features/relationship/populationPromise.d.ts +2 -1
  402. package/dist/field/features/relationship/populationPromise.d.ts.map +1 -1
  403. package/dist/field/features/relationship/populationPromise.js +25 -19
  404. package/dist/field/features/relationship/populationPromise.js.map +1 -1
  405. package/dist/field/features/shared/slashMenu/basicGroup.d.ts +3 -0
  406. package/dist/field/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
  407. package/dist/field/features/shared/slashMenu/basicGroup.js +11 -0
  408. package/dist/field/features/shared/slashMenu/basicGroup.js.map +1 -0
  409. package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
  410. package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
  411. package/dist/field/features/shared/toolbar/addDropdownGroup.js +12 -0
  412. package/dist/field/features/shared/toolbar/addDropdownGroup.js.map +1 -0
  413. package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
  414. package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
  415. package/dist/field/features/shared/toolbar/featureButtonsGroup.js +10 -0
  416. package/dist/field/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
  417. package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
  418. package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
  419. package/dist/field/features/shared/toolbar/textDropdownGroup.js +12 -0
  420. package/dist/field/features/shared/toolbar/textDropdownGroup.js.map +1 -0
  421. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts +5 -0
  422. package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -0
  423. package/dist/field/features/toolbars/fixed/Toolbar/index.js +211 -0
  424. package/dist/field/features/toolbars/fixed/Toolbar/index.js.map +1 -0
  425. package/dist/field/features/toolbars/fixed/Toolbar/index.scss +119 -0
  426. package/dist/field/features/toolbars/fixed/feature.client.d.ts +7 -0
  427. package/dist/field/features/toolbars/fixed/feature.client.d.ts.map +1 -0
  428. package/dist/field/features/toolbars/fixed/feature.client.js +20 -0
  429. package/dist/field/features/toolbars/fixed/feature.client.js.map +1 -0
  430. package/dist/field/features/toolbars/fixed/feature.server.d.ts +19 -0
  431. package/dist/field/features/toolbars/fixed/feature.server.d.ts.map +1 -0
  432. package/dist/field/features/toolbars/fixed/feature.server.js +20 -0
  433. package/dist/field/features/toolbars/fixed/feature.server.js.map +1 -0
  434. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts +4 -0
  435. package/dist/field/features/toolbars/inline/Toolbar/index.d.ts.map +1 -0
  436. package/dist/field/features/toolbars/inline/Toolbar/index.js +320 -0
  437. package/dist/field/features/toolbars/inline/Toolbar/index.js.map +1 -0
  438. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/inline/Toolbar}/index.scss +7 -11
  439. package/dist/field/features/toolbars/inline/feature.client.d.ts +6 -0
  440. package/dist/field/features/toolbars/inline/feature.client.d.ts.map +1 -0
  441. package/dist/field/features/toolbars/inline/feature.client.js +20 -0
  442. package/dist/field/features/toolbars/inline/feature.client.js.map +1 -0
  443. package/dist/field/features/toolbars/inline/feature.server.d.ts +3 -0
  444. package/dist/field/features/toolbars/inline/feature.server.d.ts.map +1 -0
  445. package/dist/field/features/toolbars/inline/feature.server.js +15 -0
  446. package/dist/field/features/toolbars/inline/feature.server.js.map +1 -0
  447. package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
  448. package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
  449. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarButton/index.js +34 -22
  450. package/dist/field/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
  451. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarButton/index.scss +3 -1
  452. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +23 -0
  453. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
  454. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarDropdown/DropDown.js +74 -100
  455. package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
  456. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts +23 -0
  457. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
  458. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js +142 -0
  459. package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
  460. package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars/shared}/ToolbarDropdown/index.scss +25 -13
  461. package/dist/field/features/toolbars/types.d.ts +48 -0
  462. package/dist/field/features/toolbars/types.d.ts.map +1 -0
  463. package/dist/field/features/toolbars/types.js.map +1 -0
  464. package/dist/field/features/typeUtilities.d.ts +8 -0
  465. package/dist/field/features/typeUtilities.d.ts.map +1 -0
  466. package/dist/field/features/typeUtilities.js +8 -0
  467. package/dist/field/features/typeUtilities.js.map +1 -0
  468. package/dist/field/features/types.d.ts +172 -63
  469. package/dist/field/features/types.d.ts.map +1 -1
  470. package/dist/field/features/types.js.map +1 -1
  471. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +1 -1
  472. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +32 -25
  473. package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +1 -1
  474. package/dist/field/features/upload/component/index.d.ts.map +1 -1
  475. package/dist/field/features/upload/component/index.js +159 -76
  476. package/dist/field/features/upload/component/index.js.map +1 -1
  477. package/dist/field/features/upload/drawer/commands.d.ts.map +1 -1
  478. package/dist/field/features/upload/drawer/commands.js +1 -2
  479. package/dist/field/features/upload/drawer/commands.js.map +1 -1
  480. package/dist/field/features/upload/drawer/index.d.ts.map +1 -1
  481. package/dist/field/features/upload/drawer/index.js +16 -16
  482. package/dist/field/features/upload/drawer/index.js.map +1 -1
  483. package/dist/field/features/upload/feature.client.d.ts +4 -1
  484. package/dist/field/features/upload/feature.client.d.ts.map +1 -1
  485. package/dist/field/features/upload/feature.client.js +52 -26
  486. package/dist/field/features/upload/feature.client.js.map +1 -1
  487. package/dist/field/features/upload/feature.server.d.ts +10 -3
  488. package/dist/field/features/upload/feature.server.d.ts.map +1 -1
  489. package/dist/field/features/upload/feature.server.js +41 -11
  490. package/dist/field/features/upload/feature.server.js.map +1 -1
  491. package/dist/field/features/upload/i18n.d.ts +3 -0
  492. package/dist/field/features/upload/i18n.d.ts.map +1 -0
  493. package/dist/field/features/upload/i18n.js +100 -0
  494. package/dist/field/features/upload/i18n.js.map +1 -0
  495. package/dist/field/features/upload/nodes/UploadNode.d.ts +3 -15
  496. package/dist/field/features/upload/nodes/UploadNode.d.ts.map +1 -1
  497. package/dist/field/features/upload/nodes/UploadNode.js +28 -14
  498. package/dist/field/features/upload/nodes/UploadNode.js.map +1 -1
  499. package/dist/field/features/upload/plugin/index.d.ts +5 -4
  500. package/dist/field/features/upload/plugin/index.d.ts.map +1 -1
  501. package/dist/field/features/upload/plugin/index.js +16 -19
  502. package/dist/field/features/upload/plugin/index.js.map +1 -1
  503. package/dist/field/features/upload/populationPromise.d.ts.map +1 -1
  504. package/dist/field/features/upload/populationPromise.js +16 -10
  505. package/dist/field/features/upload/populationPromise.js.map +1 -1
  506. package/dist/field/features/upload/validate.d.ts +2 -1
  507. package/dist/field/features/upload/validate.d.ts.map +1 -1
  508. package/dist/field/features/upload/validate.js +36 -9
  509. package/dist/field/features/upload/validate.js.map +1 -1
  510. package/dist/field/index.d.ts +3 -1
  511. package/dist/field/index.d.ts.map +1 -1
  512. package/dist/field/index.js +39 -26
  513. package/dist/field/index.js.map +1 -1
  514. package/dist/field/index.scss +1 -22
  515. package/dist/field/lexical/EditorPlugin.d.ts +1 -0
  516. package/dist/field/lexical/EditorPlugin.d.ts.map +1 -1
  517. package/dist/field/lexical/EditorPlugin.js +8 -4
  518. package/dist/field/lexical/EditorPlugin.js.map +1 -1
  519. package/dist/field/lexical/LexicalEditor.d.ts +3 -1
  520. package/dist/field/lexical/LexicalEditor.d.ts.map +1 -1
  521. package/dist/field/lexical/LexicalEditor.js +157 -74
  522. package/dist/field/lexical/LexicalEditor.js.map +1 -1
  523. package/dist/field/lexical/LexicalEditor.scss +13 -20
  524. package/dist/field/lexical/LexicalProvider.d.ts +1 -1
  525. package/dist/field/lexical/LexicalProvider.d.ts.map +1 -1
  526. package/dist/field/lexical/LexicalProvider.js +52 -41
  527. package/dist/field/lexical/LexicalProvider.js.map +1 -1
  528. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +15 -4
  529. package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  530. package/dist/field/lexical/config/client/EditorConfigProvider.js +61 -11
  531. package/dist/field/lexical/config/client/EditorConfigProvider.js.map +1 -1
  532. package/dist/field/lexical/config/client/default.d.ts +1 -1
  533. package/dist/field/lexical/config/client/default.d.ts.map +1 -1
  534. package/dist/field/lexical/config/client/default.js.map +1 -1
  535. package/dist/field/lexical/config/client/sanitize.d.ts +3 -2
  536. package/dist/field/lexical/config/client/sanitize.d.ts.map +1 -1
  537. package/dist/field/lexical/config/client/sanitize.js +83 -33
  538. package/dist/field/lexical/config/client/sanitize.js.map +1 -1
  539. package/dist/field/lexical/config/server/default.d.ts +2 -3
  540. package/dist/field/lexical/config/server/default.d.ts.map +1 -1
  541. package/dist/field/lexical/config/server/default.js +11 -11
  542. package/dist/field/lexical/config/server/default.js.map +1 -1
  543. package/dist/field/lexical/config/server/loader.d.ts +5 -2
  544. package/dist/field/lexical/config/server/loader.d.ts.map +1 -1
  545. package/dist/field/lexical/config/server/loader.js +4 -2
  546. package/dist/field/lexical/config/server/loader.js.map +1 -1
  547. package/dist/field/lexical/config/server/sanitize.d.ts +2 -1
  548. package/dist/field/lexical/config/server/sanitize.d.ts.map +1 -1
  549. package/dist/field/lexical/config/server/sanitize.js +32 -6
  550. package/dist/field/lexical/config/server/sanitize.js.map +1 -1
  551. package/dist/field/lexical/config/types.d.ts +3 -1
  552. package/dist/field/lexical/config/types.d.ts.map +1 -1
  553. package/dist/field/lexical/config/types.js.map +1 -1
  554. package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -1
  555. package/dist/field/lexical/plugins/MarkdownShortcut/index.js +3 -3
  556. package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  557. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +10 -10
  558. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  559. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +74 -77
  560. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  561. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +5 -5
  562. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -1
  563. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +8 -10
  564. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
  565. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +19 -27
  566. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  567. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +1 -37
  568. package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  569. package/dist/field/lexical/plugins/SlashMenu/index.d.ts +2 -2
  570. package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +1 -1
  571. package/dist/field/lexical/plugins/SlashMenu/index.js +108 -92
  572. package/dist/field/lexical/plugins/SlashMenu/index.js.map +1 -1
  573. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +2 -2
  574. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -1
  575. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +39 -122
  576. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  577. package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +2 -2
  578. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +1 -1
  579. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -1
  580. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -1
  581. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +2 -2
  582. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -1
  583. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +109 -64
  584. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  585. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +20 -3
  586. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +8 -1
  587. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -1
  588. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +83 -16
  589. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  590. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +5 -0
  591. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
  592. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +21 -0
  593. package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
  594. package/dist/field/lexical/plugins/handles/{DraggableBlockPlugin → utils}/getNodeCloseToPoint.d.ts +5 -1
  595. package/dist/field/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
  596. package/dist/field/lexical/plugins/handles/{DraggableBlockPlugin → utils}/getNodeCloseToPoint.js +5 -18
  597. package/dist/field/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
  598. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -1
  599. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +1 -2
  600. package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -1
  601. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
  602. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js +4 -2
  603. package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  604. package/dist/field/lexical/theme/EditorTheme.scss +18 -14
  605. package/dist/field/lexical/ui/ContentEditable.d.ts +1 -1
  606. package/dist/field/lexical/ui/ContentEditable.d.ts.map +1 -1
  607. package/dist/field/lexical/ui/ContentEditable.js +3 -3
  608. package/dist/field/lexical/ui/ContentEditable.js.map +1 -1
  609. package/dist/field/lexical/ui/ContentEditable.scss +55 -4
  610. package/dist/field/lexical/ui/icons/AI/index.js +26 -17
  611. package/dist/field/lexical/ui/icons/AI/index.js.map +1 -1
  612. package/dist/field/lexical/ui/icons/Add/index.d.ts +3 -0
  613. package/dist/field/lexical/ui/icons/Add/index.d.ts.map +1 -0
  614. package/dist/field/lexical/ui/icons/Add/index.js +21 -0
  615. package/dist/field/lexical/ui/icons/Add/index.js.map +1 -0
  616. package/dist/field/lexical/ui/icons/Add/light.svg +4 -0
  617. package/dist/field/lexical/ui/icons/AlignCenter/index.js +21 -15
  618. package/dist/field/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  619. package/dist/field/lexical/ui/icons/AlignJustify/index.js +21 -15
  620. package/dist/field/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  621. package/dist/field/lexical/ui/icons/AlignLeft/index.js +21 -15
  622. package/dist/field/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  623. package/dist/field/lexical/ui/icons/AlignRight/index.js +21 -15
  624. package/dist/field/lexical/ui/icons/AlignRight/index.js.map +1 -1
  625. package/dist/field/lexical/ui/icons/Block/index.js +30 -24
  626. package/dist/field/lexical/ui/icons/Block/index.js.map +1 -1
  627. package/dist/field/lexical/ui/icons/Blockquote/index.js +8 -6
  628. package/dist/field/lexical/ui/icons/Blockquote/index.js.map +1 -1
  629. package/dist/field/lexical/ui/icons/Bold/index.js +8 -6
  630. package/dist/field/lexical/ui/icons/Bold/index.js.map +1 -1
  631. package/dist/field/lexical/ui/icons/Checklist/index.js +19 -14
  632. package/dist/field/lexical/ui/icons/Checklist/index.js.map +1 -1
  633. package/dist/field/lexical/ui/icons/Code/index.js +14 -9
  634. package/dist/field/lexical/ui/icons/Code/index.js.map +1 -1
  635. package/dist/field/lexical/ui/icons/CodeBlock/index.js +14 -9
  636. package/dist/field/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  637. package/dist/field/lexical/ui/icons/DraggableBlock/light.svg +9 -0
  638. package/dist/field/lexical/ui/icons/H1/index.js +8 -6
  639. package/dist/field/lexical/ui/icons/H1/index.js.map +1 -1
  640. package/dist/field/lexical/ui/icons/H2/index.js +8 -6
  641. package/dist/field/lexical/ui/icons/H2/index.js.map +1 -1
  642. package/dist/field/lexical/ui/icons/H3/index.js +8 -6
  643. package/dist/field/lexical/ui/icons/H3/index.js.map +1 -1
  644. package/dist/field/lexical/ui/icons/H4/index.js +8 -6
  645. package/dist/field/lexical/ui/icons/H4/index.js.map +1 -1
  646. package/dist/field/lexical/ui/icons/H5/index.js +8 -6
  647. package/dist/field/lexical/ui/icons/H5/index.js.map +1 -1
  648. package/dist/field/lexical/ui/icons/H6/index.js +8 -6
  649. package/dist/field/lexical/ui/icons/H6/index.js.map +1 -1
  650. package/dist/field/lexical/ui/icons/HorizontalRule/index.js +11 -9
  651. package/dist/field/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  652. package/dist/field/lexical/ui/icons/IndentDecrease/index.js +25 -18
  653. package/dist/field/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  654. package/dist/field/lexical/ui/icons/IndentIncrease/index.js +25 -18
  655. package/dist/field/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  656. package/dist/field/lexical/ui/icons/Italic/index.js +8 -6
  657. package/dist/field/lexical/ui/icons/Italic/index.js.map +1 -1
  658. package/dist/field/lexical/ui/icons/Link/index.d.ts.map +1 -1
  659. package/dist/field/lexical/ui/icons/Link/index.js +10 -18
  660. package/dist/field/lexical/ui/icons/Link/index.js.map +1 -1
  661. package/dist/field/lexical/ui/icons/OrderedList/index.js +29 -21
  662. package/dist/field/lexical/ui/icons/OrderedList/index.js.map +1 -1
  663. package/dist/field/lexical/ui/icons/Relationship/index.js +26 -17
  664. package/dist/field/lexical/ui/icons/Relationship/index.js.map +1 -1
  665. package/dist/field/lexical/ui/icons/Strikethrough/index.js +14 -9
  666. package/dist/field/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  667. package/dist/field/lexical/ui/icons/Subscript/index.js +8 -6
  668. package/dist/field/lexical/ui/icons/Subscript/index.js.map +1 -1
  669. package/dist/field/lexical/ui/icons/Superscript/index.js +8 -6
  670. package/dist/field/lexical/ui/icons/Superscript/index.js.map +1 -1
  671. package/dist/field/lexical/ui/icons/Text/index.js +8 -6
  672. package/dist/field/lexical/ui/icons/Text/index.js.map +1 -1
  673. package/dist/field/lexical/ui/icons/Underline/index.js +14 -9
  674. package/dist/field/lexical/ui/icons/Underline/index.js.map +1 -1
  675. package/dist/field/lexical/ui/icons/UnorderedList/index.js +45 -36
  676. package/dist/field/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  677. package/dist/field/lexical/ui/icons/Upload/index.js +24 -18
  678. package/dist/field/lexical/ui/icons/Upload/index.js.map +1 -1
  679. package/dist/field/lexical/utils/getSelectedNode.d.ts.map +1 -1
  680. package/dist/field/lexical/utils/getSelectedNode.js +1 -2
  681. package/dist/field/lexical/utils/getSelectedNode.js.map +1 -1
  682. package/dist/field/lexical/utils/nodeFormat.d.ts +2 -1
  683. package/dist/field/lexical/utils/nodeFormat.d.ts.map +1 -1
  684. package/dist/field/lexical/utils/nodeFormat.js.map +1 -1
  685. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts +11 -1
  686. package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +1 -1
  687. package/dist/field/lexical/utils/setFloatingElemPosition.js +16 -13
  688. package/dist/field/lexical/utils/setFloatingElemPosition.js.map +1 -1
  689. package/dist/field/lexical/utils/url.d.ts.map +1 -1
  690. package/dist/field/lexical/utils/url.js +13 -2
  691. package/dist/field/lexical/utils/url.js.map +1 -1
  692. package/dist/forEachNodeRecursively.d.ts +10 -0
  693. package/dist/forEachNodeRecursively.d.ts.map +1 -0
  694. package/dist/forEachNodeRecursively.js +24 -0
  695. package/dist/forEachNodeRecursively.js.map +1 -0
  696. package/dist/generateComponentMap.d.ts.map +1 -1
  697. package/dist/generateComponentMap.js +21 -29
  698. package/dist/generateComponentMap.js.map +1 -1
  699. package/dist/generateSchemaMap.d.ts.map +1 -1
  700. package/dist/generateSchemaMap.js +4 -12
  701. package/dist/generateSchemaMap.js.map +1 -1
  702. package/dist/i18n.d.ts +3 -0
  703. package/dist/i18n.d.ts.map +1 -0
  704. package/dist/i18n.js +164 -0
  705. package/dist/i18n.js.map +1 -0
  706. package/dist/index.d.ts +25 -21
  707. package/dist/index.d.ts.map +1 -1
  708. package/dist/index.js +296 -183
  709. package/dist/index.js.map +1 -1
  710. package/dist/populate/defaultValue.d.ts +0 -1
  711. package/dist/populate/defaultValue.d.ts.map +1 -1
  712. package/dist/populate/defaultValue.js +1 -19
  713. package/dist/populate/defaultValue.js.map +1 -1
  714. package/dist/populate/populate.d.ts +5 -4
  715. package/dist/populate/populate.d.ts.map +1 -1
  716. package/dist/populate/populate.js +13 -11
  717. package/dist/populate/populate.js.map +1 -1
  718. package/dist/populate/populateLexicalPopulationPromises.d.ts +12 -0
  719. package/dist/populate/populateLexicalPopulationPromises.d.ts.map +1 -0
  720. package/dist/populate/populateLexicalPopulationPromises.js +36 -0
  721. package/dist/populate/populateLexicalPopulationPromises.js.map +1 -0
  722. package/dist/populate/recurseNestedFields.d.ts +8 -4
  723. package/dist/populate/recurseNestedFields.d.ts.map +1 -1
  724. package/dist/populate/recurseNestedFields.js +4 -5
  725. package/dist/populate/recurseNestedFields.js.map +1 -1
  726. package/dist/types.d.ts +45 -6
  727. package/dist/types.d.ts.map +1 -1
  728. package/dist/types.js.map +1 -1
  729. package/dist/useLexicalFeature.d.ts.map +1 -1
  730. package/dist/useLexicalFeature.js +6 -1
  731. package/dist/useLexicalFeature.js.map +1 -1
  732. package/dist/validate/index.d.ts +1 -1
  733. package/dist/validate/index.d.ts.map +1 -1
  734. package/dist/validate/index.js +3 -2
  735. package/dist/validate/index.js.map +1 -1
  736. package/dist/validate/validateNodes.js +1 -1
  737. package/dist/validate/validateNodes.js.map +1 -1
  738. package/package.json +68 -48
  739. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts +0 -3
  740. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +0 -1
  741. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +0 -12
  742. package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js.map +0 -1
  743. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts +0 -3
  744. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts.map +0 -1
  745. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +0 -10
  746. package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js.map +0 -1
  747. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts +0 -3
  748. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +0 -1
  749. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +0 -12
  750. package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js.map +0 -1
  751. package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +0 -1
  752. package/dist/field/features/debug/testrecorder/plugin/index.d.ts +0 -5
  753. package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +0 -1
  754. package/dist/field/features/debug/testrecorder/plugin/index.js.map +0 -1
  755. package/dist/field/features/debug/treeview/feature.client.d.ts.map +0 -1
  756. package/dist/field/features/debug/treeview/plugin/index.d.ts +0 -4
  757. package/dist/field/features/debug/treeview/plugin/index.d.ts.map +0 -1
  758. package/dist/field/features/debug/treeview/plugin/index.js.map +0 -1
  759. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts +0 -3
  760. package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts.map +0 -1
  761. package/dist/field/features/format/common/floatingSelectToolbarSection.js +0 -10
  762. package/dist/field/features/format/common/floatingSelectToolbarSection.js.map +0 -1
  763. package/dist/field/features/format/inlinecode/feature.client.d.ts.map +0 -1
  764. package/dist/field/features/format/inlinecode/feature.client.js +0 -43
  765. package/dist/field/features/format/inlinecode/feature.client.js.map +0 -1
  766. package/dist/field/features/horizontalrule/component/index.d.ts.map +0 -1
  767. package/dist/field/features/horizontalrule/component/index.js.map +0 -1
  768. package/dist/field/features/horizontalrule/feature.client.d.ts.map +0 -1
  769. package/dist/field/features/horizontalrule/feature.client.js +0 -53
  770. package/dist/field/features/horizontalrule/feature.client.js.map +0 -1
  771. package/dist/field/features/horizontalrule/feature.server.d.ts.map +0 -1
  772. package/dist/field/features/horizontalrule/feature.server.js.map +0 -1
  773. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts.map +0 -1
  774. package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js.map +0 -1
  775. package/dist/field/features/horizontalrule/plugin/index.d.ts +0 -6
  776. package/dist/field/features/horizontalrule/plugin/index.d.ts.map +0 -1
  777. package/dist/field/features/horizontalrule/plugin/index.js.map +0 -1
  778. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts +0 -3
  779. package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts.map +0 -1
  780. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +0 -10
  781. package/dist/field/features/indent/floatingSelectToolbarIndentSection.js.map +0 -1
  782. package/dist/field/features/indent/index.scss +0 -4
  783. package/dist/field/features/lists/common/markdown.js.map +0 -1
  784. package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +0 -1
  785. package/dist/field/features/lists/orderedlist/feature.client.js +0 -72
  786. package/dist/field/features/lists/orderedlist/feature.client.js.map +0 -1
  787. package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +0 -1
  788. package/dist/field/features/lists/orderedlist/feature.server.js.map +0 -1
  789. package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +0 -1
  790. package/dist/field/features/lists/orderedlist/markdownTransformer.js.map +0 -1
  791. package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +0 -1
  792. package/dist/field/features/lists/unorderedlist/feature.client.js +0 -72
  793. package/dist/field/features/lists/unorderedlist/feature.client.js.map +0 -1
  794. package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +0 -1
  795. package/dist/field/features/lists/unorderedlist/feature.server.js.map +0 -1
  796. package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +0 -1
  797. package/dist/field/features/lists/unorderedlist/markdownTransformer.js.map +0 -1
  798. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts +0 -8
  799. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts.map +0 -1
  800. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js.map +0 -1
  801. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +0 -17
  802. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +0 -1
  803. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js.map +0 -1
  804. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts +0 -18
  805. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +0 -1
  806. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +0 -42
  807. package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js.map +0 -1
  808. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts +0 -6
  809. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +0 -1
  810. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +0 -270
  811. package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js.map +0 -1
  812. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +0 -40
  813. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +0 -1
  814. package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js.map +0 -1
  815. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts.map +0 -1
  816. package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js.map +0 -1
  817. package/dist/populate/richTextRelationshipPromise.d.ts +0 -23
  818. package/dist/populate/richTextRelationshipPromise.d.ts.map +0 -1
  819. package/dist/populate/richTextRelationshipPromise.js +0 -68
  820. package/dist/populate/richTextRelationshipPromise.js.map +0 -1
  821. package/src/index.ts +0 -423
  822. /package/dist/field/features/debug/{testrecorder → testRecorder}/feature.client.js +0 -0
  823. /package/dist/field/features/debug/{testrecorder → testRecorder}/feature.server.d.ts +0 -0
  824. /package/dist/field/features/debug/{testrecorder → testRecorder}/plugin/index.scss +0 -0
  825. /package/dist/field/features/debug/{treeview → treeView}/feature.client.js +0 -0
  826. /package/dist/field/features/debug/{treeview → treeView}/feature.server.d.ts +0 -0
  827. /package/dist/field/features/debug/{treeview → treeView}/plugin/index.scss +0 -0
  828. /package/dist/field/features/format/{inlinecode → inlineCode}/feature.server.d.ts +0 -0
  829. /package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.d.ts +0 -0
  830. /package/dist/field/features/format/{inlinecode → inlineCode}/markdownTransformers.js +0 -0
  831. /package/dist/field/features/{horizontalrule → horizontalRule}/component/index.d.ts +0 -0
  832. /package/dist/field/features/{horizontalrule → horizontalRule}/feature.server.d.ts +0 -0
  833. /package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.d.ts +0 -0
  834. /package/dist/field/features/{horizontalrule → horizontalRule}/markdownTransformer.js +0 -0
  835. /package/dist/field/features/{horizontalrule → horizontalRule}/plugin/index.scss +0 -0
  836. /package/dist/field/features/lists/{orderedlist → orderedList}/feature.server.d.ts +0 -0
  837. /package/dist/field/features/lists/{orderedlist → orderedList}/markdownTransformer.d.ts +0 -0
  838. /package/dist/field/features/lists/{common → shared}/markdown.d.ts +0 -0
  839. /package/dist/field/features/lists/{unorderedlist → unorderedList}/feature.server.d.ts +0 -0
  840. /package/dist/field/features/lists/{unorderedlist → unorderedList}/markdownTransformer.d.ts +0 -0
  841. /package/dist/field/{lexical/plugins/FloatingSelectToolbar → features/toolbars}/types.js +0 -0
@@ -1,54 +1,59 @@
1
1
  'use client';
2
- import lexicalImport from 'lexical';
3
- const { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } = lexicalImport;
2
+ import { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } from 'lexical';
4
3
  import { IndentDecreaseIcon } from '../../lexical/ui/icons/IndentDecrease/index.js';
5
4
  import { IndentIncreaseIcon } from '../../lexical/ui/icons/IndentIncrease/index.js';
6
5
  import { createClientComponent } from '../createClientComponent.js';
7
- import { IndentSectionWithEntries } from './floatingSelectToolbarIndentSection.js';
6
+ import { toolbarIndentGroupWithItems } from './toolbarIndentGroup.js';
7
+ const toolbarGroups = [
8
+ toolbarIndentGroupWithItems([
9
+ {
10
+ ChildComponent: IndentDecreaseIcon,
11
+ isActive: ()=>false,
12
+ isEnabled: ({ selection })=>{
13
+ if (!selection || !selection?.getNodes()?.length) {
14
+ return false;
15
+ }
16
+ for (const node of selection.getNodes()){
17
+ // If at least one node is indented, this should be active
18
+ if ('__indent' in node && node.__indent > 0 || node.getParent() && '__indent' in node.getParent() && node.getParent().__indent > 0) {
19
+ return true;
20
+ }
21
+ }
22
+ return false;
23
+ },
24
+ key: 'indentDecrease',
25
+ label: ({ i18n })=>{
26
+ return i18n.t('lexical:indent:decreaseLabel');
27
+ },
28
+ onSelect: ({ editor })=>{
29
+ editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined);
30
+ },
31
+ order: 1
32
+ },
33
+ {
34
+ ChildComponent: IndentIncreaseIcon,
35
+ isActive: ()=>false,
36
+ key: 'indentIncrease',
37
+ label: ({ i18n })=>{
38
+ return i18n.t('lexical:indent:increaseLabel');
39
+ },
40
+ onSelect: ({ editor })=>{
41
+ editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined);
42
+ },
43
+ order: 2
44
+ }
45
+ ])
46
+ ];
8
47
  const IndentFeatureClient = (props)=>{
9
48
  return {
10
49
  clientFeatureProps: props,
11
50
  feature: ()=>({
12
51
  clientFeatureProps: props,
13
- floatingSelectToolbar: {
14
- sections: [
15
- IndentSectionWithEntries([
16
- {
17
- ChildComponent: IndentDecreaseIcon,
18
- isActive: ()=>false,
19
- isEnabled: ({ selection })=>{
20
- if (!selection || !selection?.getNodes()?.length) {
21
- return false;
22
- }
23
- for (const node of selection.getNodes()){
24
- // If at least one node is indented, this should be active
25
- if ('__indent' in node && node.__indent > 0 || node.getParent() && '__indent' in node.getParent() && node.getParent().__indent > 0) {
26
- return true;
27
- }
28
- }
29
- return false;
30
- },
31
- key: 'indent-decrease',
32
- label: `Decrease Indent`,
33
- onClick: ({ editor })=>{
34
- editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined);
35
- },
36
- order: 1
37
- }
38
- ]),
39
- IndentSectionWithEntries([
40
- {
41
- ChildComponent: IndentIncreaseIcon,
42
- isActive: ()=>false,
43
- key: 'indent-increase',
44
- label: `Increase Indent`,
45
- onClick: ({ editor })=>{
46
- editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined);
47
- },
48
- order: 2
49
- }
50
- ])
51
- ]
52
+ toolbarFixed: {
53
+ groups: toolbarGroups
54
+ },
55
+ toolbarInline: {
56
+ groups: toolbarGroups
52
57
  }
53
58
  })
54
59
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/field/features/indent/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport lexicalImport from 'lexical'\nconst { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } = lexicalImport\n\nimport type { FeatureProviderProviderClient } from '../types.js'\n\nimport { IndentDecreaseIcon } from '../../lexical/ui/icons/IndentDecrease/index.js'\nimport { IndentIncreaseIcon } from '../../lexical/ui/icons/IndentIncrease/index.js'\nimport { createClientComponent } from '../createClientComponent.js'\nimport { IndentSectionWithEntries } from './floatingSelectToolbarIndentSection.js'\n\nconst IndentFeatureClient: FeatureProviderProviderClient<undefined> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n floatingSelectToolbar: {\n sections: [\n IndentSectionWithEntries([\n {\n ChildComponent: IndentDecreaseIcon,\n isActive: () => false,\n isEnabled: ({ selection }) => {\n if (!selection || !selection?.getNodes()?.length) {\n return false\n }\n for (const node of selection.getNodes()) {\n // If at least one node is indented, this should be active\n if (\n ('__indent' in node && (node.__indent as number) > 0) ||\n (node.getParent() &&\n '__indent' in node.getParent() &&\n node.getParent().__indent > 0)\n ) {\n return true\n }\n }\n return false\n },\n key: 'indent-decrease',\n label: `Decrease Indent`,\n onClick: ({ editor }) => {\n editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined)\n },\n order: 1,\n },\n ]),\n IndentSectionWithEntries([\n {\n ChildComponent: IndentIncreaseIcon,\n isActive: () => false,\n key: 'indent-increase',\n label: `Increase Indent`,\n onClick: ({ editor }) => {\n editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined)\n },\n order: 2,\n },\n ]),\n ],\n },\n }),\n }\n}\n\nexport const IndentFeatureClientComponent = createClientComponent(IndentFeatureClient)\n"],"names":["lexicalImport","INDENT_CONTENT_COMMAND","OUTDENT_CONTENT_COMMAND","IndentDecreaseIcon","IndentIncreaseIcon","createClientComponent","IndentSectionWithEntries","IndentFeatureClient","props","clientFeatureProps","feature","floatingSelectToolbar","sections","ChildComponent","isActive","isEnabled","selection","getNodes","length","node","__indent","getParent","key","label","onClick","editor","dispatchCommand","undefined","order","IndentFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAEA,OAAOA,mBAAmB,UAAS;AACnC,MAAM,EAAEC,sBAAsB,EAAEC,uBAAuB,EAAE,GAAGF;AAI5D,SAASG,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,qBAAqB,QAAQ,8BAA6B;AACnE,SAASC,wBAAwB,QAAQ,0CAAyC;AAElF,MAAMC,sBAAgE,CAACC;IACrE,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,uBAAuB;oBACrBC,UAAU;wBACRN,yBAAyB;4BACvB;gCACEO,gBAAgBV;gCAChBW,UAAU,IAAM;gCAChBC,WAAW,CAAC,EAAEC,SAAS,EAAE;oCACvB,IAAI,CAACA,aAAa,CAACA,WAAWC,YAAYC,QAAQ;wCAChD,OAAO;oCACT;oCACA,KAAK,MAAMC,QAAQH,UAAUC,QAAQ,GAAI;wCACvC,0DAA0D;wCAC1D,IACE,AAAC,cAAcE,QAAQ,AAACA,KAAKC,QAAQ,GAAc,KAClDD,KAAKE,SAAS,MACb,cAAcF,KAAKE,SAAS,MAC5BF,KAAKE,SAAS,GAAGD,QAAQ,GAAG,GAC9B;4CACA,OAAO;wCACT;oCACF;oCACA,OAAO;gCACT;gCACAE,KAAK;gCACLC,OAAO,CAAC,eAAe,CAAC;gCACxBC,SAAS,CAAC,EAAEC,MAAM,EAAE;oCAClBA,OAAOC,eAAe,CAACxB,yBAAyByB;gCAClD;gCACAC,OAAO;4BACT;yBACD;wBACDtB,yBAAyB;4BACvB;gCACEO,gBAAgBT;gCAChBU,UAAU,IAAM;gCAChBQ,KAAK;gCACLC,OAAO,CAAC,eAAe,CAAC;gCACxBC,SAAS,CAAC,EAAEC,MAAM,EAAE;oCAClBA,OAAOC,eAAe,CAACzB,wBAAwB0B;gCACjD;gCACAC,OAAO;4BACT;yBACD;qBACF;gBACH;YACF,CAAA;IACF;AACF;AAEA,OAAO,MAAMC,+BAA+BxB,sBAAsBE,qBAAoB"}
1
+ {"version":3,"sources":["../../../../src/field/features/indent/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport { INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND } from 'lexical'\n\nimport type { ToolbarGroup } from '../toolbars/types.js'\nimport type { FeatureProviderProviderClient } from '../types.js'\n\nimport { IndentDecreaseIcon } from '../../lexical/ui/icons/IndentDecrease/index.js'\nimport { IndentIncreaseIcon } from '../../lexical/ui/icons/IndentIncrease/index.js'\nimport { createClientComponent } from '../createClientComponent.js'\nimport { toolbarIndentGroupWithItems } from './toolbarIndentGroup.js'\n\nconst toolbarGroups: ToolbarGroup[] = [\n toolbarIndentGroupWithItems([\n {\n ChildComponent: IndentDecreaseIcon,\n isActive: () => false,\n isEnabled: ({ selection }) => {\n if (!selection || !selection?.getNodes()?.length) {\n return false\n }\n for (const node of selection.getNodes()) {\n // If at least one node is indented, this should be active\n if (\n ('__indent' in node && (node.__indent as number) > 0) ||\n (node.getParent() && '__indent' in node.getParent() && node.getParent().__indent > 0)\n ) {\n return true\n }\n }\n return false\n },\n key: 'indentDecrease',\n label: ({ i18n }) => {\n return i18n.t('lexical:indent:decreaseLabel')\n },\n onSelect: ({ editor }) => {\n editor.dispatchCommand(OUTDENT_CONTENT_COMMAND, undefined)\n },\n order: 1,\n },\n {\n ChildComponent: IndentIncreaseIcon,\n isActive: () => false,\n key: 'indentIncrease',\n label: ({ i18n }) => {\n return i18n.t('lexical:indent:increaseLabel')\n },\n onSelect: ({ editor }) => {\n editor.dispatchCommand(INDENT_CONTENT_COMMAND, undefined)\n },\n order: 2,\n },\n ]),\n]\n\nconst IndentFeatureClient: FeatureProviderProviderClient<undefined> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n toolbarFixed: {\n groups: toolbarGroups,\n },\n toolbarInline: {\n groups: toolbarGroups,\n },\n }),\n }\n}\n\nexport const IndentFeatureClientComponent = createClientComponent(IndentFeatureClient)\n"],"names":["INDENT_CONTENT_COMMAND","OUTDENT_CONTENT_COMMAND","IndentDecreaseIcon","IndentIncreaseIcon","createClientComponent","toolbarIndentGroupWithItems","toolbarGroups","ChildComponent","isActive","isEnabled","selection","getNodes","length","node","__indent","getParent","key","label","i18n","t","onSelect","editor","dispatchCommand","undefined","order","IndentFeatureClient","props","clientFeatureProps","feature","toolbarFixed","groups","toolbarInline","IndentFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAEA,SAASA,sBAAsB,EAAEC,uBAAuB,QAAQ,UAAS;AAKzE,SAASC,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,kBAAkB,QAAQ,iDAAgD;AACnF,SAASC,qBAAqB,QAAQ,8BAA6B;AACnE,SAASC,2BAA2B,QAAQ,0BAAyB;AAErE,MAAMC,gBAAgC;IACpCD,4BAA4B;QAC1B;YACEE,gBAAgBL;YAChBM,UAAU,IAAM;YAChBC,WAAW,CAAC,EAAEC,SAAS,EAAE;gBACvB,IAAI,CAACA,aAAa,CAACA,WAAWC,YAAYC,QAAQ;oBAChD,OAAO;gBACT;gBACA,KAAK,MAAMC,QAAQH,UAAUC,QAAQ,GAAI;oBACvC,0DAA0D;oBAC1D,IACE,AAAC,cAAcE,QAAQ,AAACA,KAAKC,QAAQ,GAAc,KAClDD,KAAKE,SAAS,MAAM,cAAcF,KAAKE,SAAS,MAAMF,KAAKE,SAAS,GAAGD,QAAQ,GAAG,GACnF;wBACA,OAAO;oBACT;gBACF;gBACA,OAAO;YACT;YACAE,KAAK;YACLC,OAAO,CAAC,EAAEC,IAAI,EAAE;gBACd,OAAOA,KAAKC,CAAC,CAAC;YAChB;YACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;gBACnBA,OAAOC,eAAe,CAACrB,yBAAyBsB;YAClD;YACAC,OAAO;QACT;QACA;YACEjB,gBAAgBJ;YAChBK,UAAU,IAAM;YAChBQ,KAAK;YACLC,OAAO,CAAC,EAAEC,IAAI,EAAE;gBACd,OAAOA,KAAKC,CAAC,CAAC;YAChB;YACAC,UAAU,CAAC,EAAEC,MAAM,EAAE;gBACnBA,OAAOC,eAAe,CAACtB,wBAAwBuB;YACjD;YACAC,OAAO;QACT;KACD;CACF;AAED,MAAMC,sBAAgE,CAACC;IACrE,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,cAAc;oBACZC,QAAQxB;gBACV;gBACAyB,eAAe;oBACbD,QAAQxB;gBACV;YACF,CAAA;IACF;AACF;AAEA,OAAO,MAAM0B,+BAA+B5B,sBAAsBqB,qBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAIhE,eAAO,MAAM,aAAa,EAAE,6BAA6B,CAAC,SAAS,EAAE,SAAS,CAY7E,CAAA"}
1
+ {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAKhE,eAAO,MAAM,aAAa,EAAE,6BAA6B,CAAC,SAAS,EAAE,SAAS,CAa7E,CAAA"}
@@ -1,10 +1,12 @@
1
1
  import { IndentFeatureClientComponent } from './feature.client.js';
2
+ import { i18n } from './i18n.js';
2
3
  export const IndentFeature = (props)=>{
3
4
  return {
4
5
  feature: ()=>{
5
6
  return {
6
7
  ClientComponent: IndentFeatureClientComponent,
7
8
  clientFeatureProps: null,
9
+ i18n,
8
10
  serverFeatureProps: props
9
11
  };
10
12
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/field/features/indent/feature.server.ts"],"sourcesContent":["import type { FeatureProviderProviderServer } from '../types.js'\n\nimport { IndentFeatureClientComponent } from './feature.client.js'\n\nexport const IndentFeature: FeatureProviderProviderServer<undefined, undefined> = (props) => {\n return {\n feature: () => {\n return {\n ClientComponent: IndentFeatureClientComponent,\n clientFeatureProps: null,\n serverFeatureProps: props,\n }\n },\n key: 'indent',\n serverFeatureProps: props,\n }\n}\n"],"names":["IndentFeatureClientComponent","IndentFeature","props","feature","ClientComponent","clientFeatureProps","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAEA,SAASA,4BAA4B,QAAQ,sBAAqB;AAElE,OAAO,MAAMC,gBAAqE,CAACC;IACjF,OAAO;QACLC,SAAS;YACP,OAAO;gBACLC,iBAAiBJ;gBACjBK,oBAAoB;gBACpBC,oBAAoBJ;YACtB;QACF;QACAK,KAAK;QACLD,oBAAoBJ;IACtB;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../src/field/features/indent/feature.server.ts"],"sourcesContent":["import type { FeatureProviderProviderServer } from '../types.js'\n\nimport { IndentFeatureClientComponent } from './feature.client.js'\nimport { i18n } from './i18n.js'\n\nexport const IndentFeature: FeatureProviderProviderServer<undefined, undefined> = (props) => {\n return {\n feature: () => {\n return {\n ClientComponent: IndentFeatureClientComponent,\n clientFeatureProps: null,\n i18n,\n serverFeatureProps: props,\n }\n },\n key: 'indent',\n serverFeatureProps: props,\n }\n}\n"],"names":["IndentFeatureClientComponent","i18n","IndentFeature","props","feature","ClientComponent","clientFeatureProps","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAEA,SAASA,4BAA4B,QAAQ,sBAAqB;AAClE,SAASC,IAAI,QAAQ,YAAW;AAEhC,OAAO,MAAMC,gBAAqE,CAACC;IACjF,OAAO;QACLC,SAAS;YACP,OAAO;gBACLC,iBAAiBL;gBACjBM,oBAAoB;gBACpBL;gBACAM,oBAAoBJ;YACtB;QACF;QACAK,KAAK;QACLD,oBAAoBJ;IACtB;AACF,EAAC"}
@@ -0,0 +1,3 @@
1
+ import type { GenericLanguages } from '@payloadcms/translations';
2
+ export declare const i18n: Partial<GenericLanguages>;
3
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAiI1C,CAAA"}
@@ -0,0 +1,132 @@
1
+ export const i18n = {
2
+ ar: {
3
+ decreaseLabel: 'تقليل المسافة البادئة',
4
+ increaseLabel: 'زيادة المسافة البادئة'
5
+ },
6
+ az: {
7
+ decreaseLabel: 'İntervalı Azaltın',
8
+ increaseLabel: 'Girintiyi Artırın'
9
+ },
10
+ bg: {
11
+ decreaseLabel: 'Намали отстоянието',
12
+ increaseLabel: 'Увеличете отстоянието'
13
+ },
14
+ cs: {
15
+ decreaseLabel: 'Zmenšit odsazení',
16
+ increaseLabel: 'Zvětšit odsazení'
17
+ },
18
+ de: {
19
+ decreaseLabel: 'Einzug verkleinern',
20
+ increaseLabel: 'Einzug erhöhen'
21
+ },
22
+ en: {
23
+ decreaseLabel: 'Decrease Indent',
24
+ increaseLabel: 'Increase Indent'
25
+ },
26
+ es: {
27
+ decreaseLabel: 'Disminuir Sangría',
28
+ increaseLabel: 'Aumentar Sangría'
29
+ },
30
+ fa: {
31
+ decreaseLabel: 'کاهش تورفتگی',
32
+ increaseLabel: 'افزایش تورفتگی'
33
+ },
34
+ fr: {
35
+ decreaseLabel: "Diminuer l'indentation",
36
+ increaseLabel: "Augmenter l'indentation"
37
+ },
38
+ he: {
39
+ decreaseLabel: 'הקטן הזחה',
40
+ increaseLabel: 'הגדל כניסה'
41
+ },
42
+ hr: {
43
+ decreaseLabel: 'Smanji uvlačenje',
44
+ increaseLabel: 'Povećaj uvlačenje'
45
+ },
46
+ hu: {
47
+ decreaseLabel: 'Csökkentse a behúzást',
48
+ increaseLabel: 'Behúzás növelése'
49
+ },
50
+ it: {
51
+ decreaseLabel: 'Diminuisci rientro',
52
+ increaseLabel: 'Aumenta Rientro'
53
+ },
54
+ ja: {
55
+ decreaseLabel: 'インデントを減らす',
56
+ increaseLabel: 'インデントを増やす'
57
+ },
58
+ ko: {
59
+ decreaseLabel: '들여쓰기 줄이기',
60
+ increaseLabel: '들여쓰기 늘리기'
61
+ },
62
+ my: {
63
+ decreaseLabel: 'Kurangkan Inden',
64
+ increaseLabel: 'Tingkatkan Inden'
65
+ },
66
+ nb: {
67
+ decreaseLabel: 'Reduser innrykk',
68
+ increaseLabel: 'Øke innrykk'
69
+ },
70
+ nl: {
71
+ decreaseLabel: 'Verminder Inspringing',
72
+ increaseLabel: 'Inspring verhogen'
73
+ },
74
+ pl: {
75
+ decreaseLabel: 'Zmniejsz wcięcie',
76
+ increaseLabel: 'Zwiększ wcięcie'
77
+ },
78
+ pt: {
79
+ decreaseLabel: 'Diminuir recuo',
80
+ increaseLabel: 'Aumentar Indentação'
81
+ },
82
+ ro: {
83
+ decreaseLabel: 'Reducere indentare',
84
+ increaseLabel: 'Crește indentarea'
85
+ },
86
+ rs: {
87
+ decreaseLabel: 'Smanji uvlačenje',
88
+ increaseLabel: 'Povećaj uvlačenje'
89
+ },
90
+ 'rs-latin': {
91
+ decreaseLabel: 'Smanji uvlačenje',
92
+ increaseLabel: 'Povećaj uvlačenje'
93
+ },
94
+ ru: {
95
+ decreaseLabel: 'Уменьшить отступ',
96
+ increaseLabel: 'Увеличить отступ'
97
+ },
98
+ sk: {
99
+ decreaseLabel: 'Znížiť odsadenie',
100
+ increaseLabel: 'Zväčšiť odsadenie'
101
+ },
102
+ sv: {
103
+ decreaseLabel: 'Minska indrag',
104
+ increaseLabel: 'Öka indrag'
105
+ },
106
+ th: {
107
+ decreaseLabel: 'ลดการเยื้อง',
108
+ increaseLabel: 'เพิ่มการเยื้อง'
109
+ },
110
+ tr: {
111
+ decreaseLabel: 'Girintiyi Azalt',
112
+ increaseLabel: 'Girintiyi Artır'
113
+ },
114
+ uk: {
115
+ decreaseLabel: 'Зменшити відступ',
116
+ increaseLabel: 'Збільшити відступ'
117
+ },
118
+ vi: {
119
+ decreaseLabel: 'Giảm lề',
120
+ increaseLabel: 'Tăng lề'
121
+ },
122
+ zh: {
123
+ decreaseLabel: '减少缩进',
124
+ increaseLabel: '增加缩进'
125
+ },
126
+ 'zh-TW': {
127
+ decreaseLabel: '減少縮排',
128
+ increaseLabel: '增加縮排'
129
+ }
130
+ };
131
+
132
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/field/features/indent/i18n.ts"],"sourcesContent":["import type { GenericLanguages } from '@payloadcms/translations'\n\nexport const i18n: Partial<GenericLanguages> = {\n ar: {\n decreaseLabel: 'تقليل المسافة البادئة',\n increaseLabel: 'زيادة المسافة البادئة',\n },\n az: {\n decreaseLabel: 'İntervalı Azaltın',\n increaseLabel: 'Girintiyi Artırın',\n },\n bg: {\n decreaseLabel: 'Намали отстоянието',\n increaseLabel: 'Увеличете отстоянието',\n },\n cs: {\n decreaseLabel: 'Zmenšit odsazení',\n increaseLabel: 'Zvětšit odsazení',\n },\n de: {\n decreaseLabel: 'Einzug verkleinern',\n increaseLabel: 'Einzug erhöhen',\n },\n en: {\n decreaseLabel: 'Decrease Indent',\n increaseLabel: 'Increase Indent',\n },\n es: {\n decreaseLabel: 'Disminuir Sangría',\n increaseLabel: 'Aumentar Sangría',\n },\n fa: {\n decreaseLabel: 'کاهش تورفتگی',\n increaseLabel: 'افزایش تورفتگی',\n },\n fr: {\n decreaseLabel: \"Diminuer l'indentation\",\n increaseLabel: \"Augmenter l'indentation\",\n },\n he: {\n decreaseLabel: 'הקטן הזחה',\n increaseLabel: 'הגדל כניסה',\n },\n hr: {\n decreaseLabel: 'Smanji uvlačenje',\n increaseLabel: 'Povećaj uvlačenje',\n },\n hu: {\n decreaseLabel: 'Csökkentse a behúzást',\n increaseLabel: 'Behúzás növelése',\n },\n it: {\n decreaseLabel: 'Diminuisci rientro',\n increaseLabel: 'Aumenta Rientro',\n },\n ja: {\n decreaseLabel: 'インデントを減らす',\n increaseLabel: 'インデントを増やす',\n },\n ko: {\n decreaseLabel: '들여쓰기 줄이기',\n increaseLabel: '들여쓰기 늘리기',\n },\n my: {\n decreaseLabel: 'Kurangkan Inden',\n increaseLabel: 'Tingkatkan Inden',\n },\n nb: {\n decreaseLabel: 'Reduser innrykk',\n increaseLabel: 'Øke innrykk',\n },\n nl: {\n decreaseLabel: 'Verminder Inspringing',\n increaseLabel: 'Inspring verhogen',\n },\n pl: {\n decreaseLabel: 'Zmniejsz wcięcie',\n increaseLabel: 'Zwiększ wcięcie',\n },\n pt: {\n decreaseLabel: 'Diminuir recuo',\n increaseLabel: 'Aumentar Indentação',\n },\n ro: {\n decreaseLabel: 'Reducere indentare',\n increaseLabel: 'Crește indentarea',\n },\n rs: {\n decreaseLabel: 'Smanji uvlačenje',\n increaseLabel: 'Povećaj uvlačenje',\n },\n 'rs-latin': {\n decreaseLabel: 'Smanji uvlačenje',\n increaseLabel: 'Povećaj uvlačenje',\n },\n ru: {\n decreaseLabel: 'Уменьшить отступ',\n increaseLabel: 'Увеличить отступ',\n },\n sk: {\n decreaseLabel: 'Znížiť odsadenie',\n increaseLabel: 'Zväčšiť odsadenie',\n },\n sv: {\n decreaseLabel: 'Minska indrag',\n increaseLabel: 'Öka indrag',\n },\n th: {\n decreaseLabel: 'ลดการเยื้อง',\n increaseLabel: 'เพิ่มการเยื้อง',\n },\n tr: {\n decreaseLabel: 'Girintiyi Azalt',\n increaseLabel: 'Girintiyi Artır',\n },\n uk: {\n decreaseLabel: 'Зменшити відступ',\n increaseLabel: 'Збільшити відступ',\n },\n vi: {\n decreaseLabel: 'Giảm lề',\n increaseLabel: 'Tăng lề',\n },\n zh: {\n decreaseLabel: '减少缩进',\n increaseLabel: '增加缩进',\n },\n 'zh-TW': {\n decreaseLabel: '減少縮排',\n increaseLabel: '增加縮排',\n },\n}\n"],"names":["i18n","ar","decreaseLabel","increaseLabel","az","bg","cs","de","en","es","fa","fr","he","hr","hu","it","ja","ko","my","nb","nl","pl","pt","ro","rs","ru","sk","sv","th","tr","uk","vi","zh"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,OAAO,MAAMA,OAAkC;IAC7CC,IAAI;QACFC,eAAe;QACfC,eAAe;IACjB;IACAC,IAAI;QACFF,eAAe;QACfC,eAAe;IACjB;IACAE,IAAI;QACFH,eAAe;QACfC,eAAe;IACjB;IACAG,IAAI;QACFJ,eAAe;QACfC,eAAe;IACjB;IACAI,IAAI;QACFL,eAAe;QACfC,eAAe;IACjB;IACAK,IAAI;QACFN,eAAe;QACfC,eAAe;IACjB;IACAM,IAAI;QACFP,eAAe;QACfC,eAAe;IACjB;IACAO,IAAI;QACFR,eAAe;QACfC,eAAe;IACjB;IACAQ,IAAI;QACFT,eAAe;QACfC,eAAe;IACjB;IACAS,IAAI;QACFV,eAAe;QACfC,eAAe;IACjB;IACAU,IAAI;QACFX,eAAe;QACfC,eAAe;IACjB;IACAW,IAAI;QACFZ,eAAe;QACfC,eAAe;IACjB;IACAY,IAAI;QACFb,eAAe;QACfC,eAAe;IACjB;IACAa,IAAI;QACFd,eAAe;QACfC,eAAe;IACjB;IACAc,IAAI;QACFf,eAAe;QACfC,eAAe;IACjB;IACAe,IAAI;QACFhB,eAAe;QACfC,eAAe;IACjB;IACAgB,IAAI;QACFjB,eAAe;QACfC,eAAe;IACjB;IACAiB,IAAI;QACFlB,eAAe;QACfC,eAAe;IACjB;IACAkB,IAAI;QACFnB,eAAe;QACfC,eAAe;IACjB;IACAmB,IAAI;QACFpB,eAAe;QACfC,eAAe;IACjB;IACAoB,IAAI;QACFrB,eAAe;QACfC,eAAe;IACjB;IACAqB,IAAI;QACFtB,eAAe;QACfC,eAAe;IACjB;IACA,YAAY;QACVD,eAAe;QACfC,eAAe;IACjB;IACAsB,IAAI;QACFvB,eAAe;QACfC,eAAe;IACjB;IACAuB,IAAI;QACFxB,eAAe;QACfC,eAAe;IACjB;IACAwB,IAAI;QACFzB,eAAe;QACfC,eAAe;IACjB;IACAyB,IAAI;QACF1B,eAAe;QACfC,eAAe;IACjB;IACA0B,IAAI;QACF3B,eAAe;QACfC,eAAe;IACjB;IACA2B,IAAI;QACF5B,eAAe;QACfC,eAAe;IACjB;IACA4B,IAAI;QACF7B,eAAe;QACfC,eAAe;IACjB;IACA6B,IAAI;QACF9B,eAAe;QACfC,eAAe;IACjB;IACA,SAAS;QACPD,eAAe;QACfC,eAAe;IACjB;AACF,EAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ToolbarGroup, ToolbarGroupItem } from '../toolbars/types.js';
2
+ export declare const toolbarIndentGroupWithItems: (items: ToolbarGroupItem[]) => ToolbarGroup;
3
+ //# sourceMappingURL=toolbarIndentGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbarIndentGroup.d.ts","sourceRoot":"","sources":["../../../../src/field/features/indent/toolbarIndentGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE1E,eAAO,MAAM,2BAA2B,UAAW,gBAAgB,EAAE,KAAG,YAOvE,CAAA"}
@@ -0,0 +1,10 @@
1
+ export const toolbarIndentGroupWithItems = (items)=>{
2
+ return {
3
+ type: 'buttons',
4
+ items,
5
+ key: 'indent',
6
+ order: 35
7
+ };
8
+ };
9
+
10
+ //# sourceMappingURL=toolbarIndentGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/field/features/indent/toolbarIndentGroup.ts"],"sourcesContent":["import type { ToolbarGroup, ToolbarGroupItem } from '../toolbars/types.js'\n\nexport const toolbarIndentGroupWithItems = (items: ToolbarGroupItem[]): ToolbarGroup => {\n return {\n type: 'buttons',\n items,\n key: 'indent',\n order: 35,\n }\n}\n"],"names":["toolbarIndentGroupWithItems","items","type","key","order"],"rangeMappings":";;;;;;;","mappings":"AAEA,OAAO,MAAMA,8BAA8B,CAACC;IAC1C,OAAO;QACLC,MAAM;QACND;QACAE,KAAK;QACLC,OAAO;IACT;AACF,EAAC"}
@@ -1,4 +1,4 @@
1
- import type { Config } from 'payload/config';
1
+ import type { SanitizedConfig } from 'payload/config';
2
2
  import type { Field } from 'payload/types';
3
- export declare const getBaseFields: (config: Config, enabledCollections: false | string[], disabledCollections: false | string[]) => Field[];
3
+ export declare const getBaseFields: (config: SanitizedConfig, enabledCollections: false | string[], disabledCollections: false | string[], maxDepth?: number) => Field[];
4
4
  //# sourceMappingURL=baseFields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseFields.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/link/drawer/baseFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAyB,MAAM,eAAe,CAAA;AAIjE,eAAO,MAAM,aAAa,WAChB,MAAM,sBACM,KAAK,GAAG,MAAM,EAAE,uBACf,KAAK,GAAG,MAAM,EAAE,KACpC,KAAK,EAmHP,CAAA"}
1
+ {"version":3,"file":"baseFields.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/link/drawer/baseFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAyB,MAAM,eAAe,CAAA;AAIjE,eAAO,MAAM,aAAa,WAChB,eAAe,sBACH,KAAK,GAAG,MAAM,EAAE,uBACf,KAAK,GAAG,MAAM,EAAE,aAC1B,MAAM,KAChB,KAAK,EAsGP,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { validateUrl } from '../../../lexical/utils/url.js';
2
- export const getBaseFields = (config, enabledCollections, disabledCollections)=>{
2
+ export const getBaseFields = (config, enabledCollections, disabledCollections, maxDepth)=>{
3
3
  let enabledRelations;
4
4
  /**
5
5
  * Figure out which relations should be enabled (enabledRelations) based on a collection's admin.enableRichTextLink property,
@@ -24,61 +24,47 @@ export const getBaseFields = (config, enabledCollections, disabledCollections)=>
24
24
  required: true
25
25
  },
26
26
  {
27
- name: 'fields',
28
- type: 'group',
27
+ name: 'linkType',
28
+ type: 'radio',
29
29
  admin: {
30
- style: {
31
- borderBottom: 0,
32
- borderTop: 0,
33
- margin: 0,
34
- padding: 0
35
- }
30
+ description: ({ t })=>t('fields:chooseBetweenCustomTextOrDocument')
36
31
  },
37
- fields: [
38
- {
39
- name: 'linkType',
40
- type: 'radio',
41
- admin: {
42
- description: ({ t })=>t('fields:chooseBetweenCustomTextOrDocument')
43
- },
44
- defaultValue: 'custom',
45
- label: ({ t })=>t('fields:linkType'),
46
- options: [
47
- {
48
- label: ({ t })=>t('fields:customURL'),
49
- value: 'custom'
50
- }
51
- ],
52
- required: true
53
- },
32
+ defaultValue: 'custom',
33
+ label: ({ t })=>t('fields:linkType'),
34
+ options: [
54
35
  {
55
- name: 'url',
56
- type: 'text',
57
- label: ({ t })=>t('fields:enterURL'),
58
- required: true,
59
- validate: (value)=>{
60
- if (value && !validateUrl(value)) {
61
- return 'Invalid URL';
62
- }
63
- }
36
+ label: ({ t })=>t('fields:customURL'),
37
+ value: 'custom'
38
+ }
39
+ ],
40
+ required: true
41
+ },
42
+ {
43
+ name: 'url',
44
+ type: 'text',
45
+ label: ({ t })=>t('fields:enterURL'),
46
+ required: true,
47
+ validate: (value)=>{
48
+ if (!validateUrl(value)) {
49
+ return 'Invalid URL';
64
50
  }
65
- ]
51
+ }
66
52
  }
67
53
  ];
68
54
  // Only display internal link-specific fields / options / conditions if there are enabled relations
69
55
  if (enabledRelations?.length) {
70
- baseFields[1].fields[0].options.push({
56
+ baseFields[1].options.push({
71
57
  label: ({ t })=>t('fields:internalLink'),
72
58
  value: 'internal'
73
59
  });
74
- baseFields[1].fields[1].admin = {
75
- condition: ({ fields })=>fields?.linkType !== 'internal'
60
+ baseFields[2].admin = {
61
+ condition: ({ linkType })=>linkType !== 'internal'
76
62
  };
77
- baseFields[1].fields.push({
63
+ baseFields.push({
78
64
  name: 'doc',
79
65
  admin: {
80
- condition: ({ fields })=>{
81
- return fields?.linkType === 'internal';
66
+ condition: ({ linkType })=>{
67
+ return linkType === 'internal';
82
68
  }
83
69
  },
84
70
  // when admin.hidden is a function we need to dynamically call hidden with the user to know if the collection should be shown
@@ -92,11 +78,12 @@ export const getBaseFields = (config, enabledCollections, disabledCollections)=>
92
78
  }
93
79
  } : null,
94
80
  label: ({ t })=>t('fields:chooseDocumentToLink'),
81
+ maxDepth,
95
82
  relationTo: enabledRelations,
96
83
  required: true
97
84
  });
98
85
  }
99
- baseFields[1].fields.push({
86
+ baseFields.push({
100
87
  name: 'newTab',
101
88
  type: 'checkbox',
102
89
  label: ({ t })=>t('fields:openInNewTab')
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/field/features/link/drawer/baseFields.ts"],"sourcesContent":["import type { User } from 'payload/auth'\nimport type { Config } from 'payload/config'\nimport type { Field, RadioField, TextField } from 'payload/types'\n\nimport { validateUrl } from '../../../lexical/utils/url.js'\n\nexport const getBaseFields = (\n config: Config,\n enabledCollections: false | string[],\n disabledCollections: false | string[],\n): Field[] => {\n let enabledRelations: string[]\n\n /**\n * Figure out which relations should be enabled (enabledRelations) based on a collection's admin.enableRichTextLink property,\n * or the Link Feature's enabledCollections and disabledCollections properties which override it.\n */\n if (enabledCollections) {\n enabledRelations = enabledCollections\n } else if (disabledCollections) {\n enabledRelations = config.collections\n .filter(({ slug }) => !disabledCollections.includes(slug))\n .map(({ slug }) => slug)\n } else {\n enabledRelations = config.collections\n .filter(({ admin: { enableRichTextLink, hidden } }) => {\n if (typeof hidden !== 'function' && hidden) {\n return false\n }\n return enableRichTextLink\n })\n .map(({ slug }) => slug)\n }\n\n const baseFields = [\n {\n name: 'text',\n type: 'text',\n label: ({ t }) => t('fields:textToDisplay'),\n required: true,\n },\n {\n name: 'fields',\n type: 'group',\n admin: {\n style: {\n borderBottom: 0,\n borderTop: 0,\n margin: 0,\n padding: 0,\n },\n },\n fields: [\n {\n name: 'linkType',\n type: 'radio',\n admin: {\n description: ({ t }) => t('fields:chooseBetweenCustomTextOrDocument'),\n },\n defaultValue: 'custom',\n label: ({ t }) => t('fields:linkType'),\n options: [\n {\n label: ({ t }) => t('fields:customURL'),\n value: 'custom',\n },\n ],\n required: true,\n },\n {\n name: 'url',\n type: 'text',\n label: ({ t }) => t('fields:enterURL'),\n required: true,\n validate: (value: string) => {\n if (value && !validateUrl(value)) {\n return 'Invalid URL'\n }\n },\n },\n ] as Field[],\n },\n ]\n\n // Only display internal link-specific fields / options / conditions if there are enabled relations\n if (enabledRelations?.length) {\n ;(baseFields[1].fields[0] as RadioField).options.push({\n label: ({ t }) => t('fields:internalLink'),\n value: 'internal',\n })\n ;(baseFields[1].fields[1] as TextField).admin = {\n condition: ({ fields }) => fields?.linkType !== 'internal',\n }\n\n baseFields[1].fields.push({\n name: 'doc',\n admin: {\n condition: ({ fields }) => {\n return fields?.linkType === 'internal'\n },\n },\n // when admin.hidden is a function we need to dynamically call hidden with the user to know if the collection should be shown\n type: 'relationship',\n filterOptions:\n !enabledCollections && !disabledCollections\n ? ({ relationTo, user }) => {\n const hidden = config.collections.find(({ slug }) => slug === relationTo).admin.hidden\n if (typeof hidden === 'function' && hidden({ user } as { user: User })) {\n return false\n }\n }\n : null,\n label: ({ t }) => t('fields:chooseDocumentToLink'),\n relationTo: enabledRelations,\n required: true,\n })\n }\n\n baseFields[1].fields.push({\n name: 'newTab',\n type: 'checkbox',\n label: ({ t }) => t('fields:openInNewTab'),\n })\n\n return baseFields as Field[]\n}\n"],"names":["validateUrl","getBaseFields","config","enabledCollections","disabledCollections","enabledRelations","collections","filter","slug","includes","map","admin","enableRichTextLink","hidden","baseFields","name","type","label","t","required","style","borderBottom","borderTop","margin","padding","fields","description","defaultValue","options","value","validate","length","push","condition","linkType","filterOptions","relationTo","user","find"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAIA,SAASA,WAAW,QAAQ,gCAA+B;AAE3D,OAAO,MAAMC,gBAAgB,CAC3BC,QACAC,oBACAC;IAEA,IAAIC;IAEJ;;;GAGC,GACD,IAAIF,oBAAoB;QACtBE,mBAAmBF;IACrB,OAAO,IAAIC,qBAAqB;QAC9BC,mBAAmBH,OAAOI,WAAW,CAClCC,MAAM,CAAC,CAAC,EAAEC,IAAI,EAAE,GAAK,CAACJ,oBAAoBK,QAAQ,CAACD,OACnDE,GAAG,CAAC,CAAC,EAAEF,IAAI,EAAE,GAAKA;IACvB,OAAO;QACLH,mBAAmBH,OAAOI,WAAW,CAClCC,MAAM,CAAC,CAAC,EAAEI,OAAO,EAAEC,kBAAkB,EAAEC,MAAM,EAAE,EAAE;YAChD,IAAI,OAAOA,WAAW,cAAcA,QAAQ;gBAC1C,OAAO;YACT;YACA,OAAOD;QACT,GACCF,GAAG,CAAC,CAAC,EAAEF,IAAI,EAAE,GAAKA;IACvB;IAEA,MAAMM,aAAa;QACjB;YACEC,MAAM;YACNC,MAAM;YACNC,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBC,UAAU;QACZ;QACA;YACEJ,MAAM;YACNC,MAAM;YACNL,OAAO;gBACLS,OAAO;oBACLC,cAAc;oBACdC,WAAW;oBACXC,QAAQ;oBACRC,SAAS;gBACX;YACF;YACAC,QAAQ;gBACN;oBACEV,MAAM;oBACNC,MAAM;oBACNL,OAAO;wBACLe,aAAa,CAAC,EAAER,CAAC,EAAE,GAAKA,EAAE;oBAC5B;oBACAS,cAAc;oBACdV,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;oBACpBU,SAAS;wBACP;4BACEX,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;4BACpBW,OAAO;wBACT;qBACD;oBACDV,UAAU;gBACZ;gBACA;oBACEJ,MAAM;oBACNC,MAAM;oBACNC,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;oBACpBC,UAAU;oBACVW,UAAU,CAACD;wBACT,IAAIA,SAAS,CAAC7B,YAAY6B,QAAQ;4BAChC,OAAO;wBACT;oBACF;gBACF;aACD;QACH;KACD;IAED,mGAAmG;IACnG,IAAIxB,kBAAkB0B,QAAQ;QAC1BjB,UAAU,CAAC,EAAE,CAACW,MAAM,CAAC,EAAE,CAAgBG,OAAO,CAACI,IAAI,CAAC;YACpDf,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBW,OAAO;QACT;QACEf,UAAU,CAAC,EAAE,CAACW,MAAM,CAAC,EAAE,CAAed,KAAK,GAAG;YAC9CsB,WAAW,CAAC,EAAER,MAAM,EAAE,GAAKA,QAAQS,aAAa;QAClD;QAEApB,UAAU,CAAC,EAAE,CAACW,MAAM,CAACO,IAAI,CAAC;YACxBjB,MAAM;YACNJ,OAAO;gBACLsB,WAAW,CAAC,EAAER,MAAM,EAAE;oBACpB,OAAOA,QAAQS,aAAa;gBAC9B;YACF;YACA,6HAA6H;YAC7HlB,MAAM;YACNmB,eACE,CAAChC,sBAAsB,CAACC,sBACpB,CAAC,EAAEgC,UAAU,EAAEC,IAAI,EAAE;gBACnB,MAAMxB,SAASX,OAAOI,WAAW,CAACgC,IAAI,CAAC,CAAC,EAAE9B,IAAI,EAAE,GAAKA,SAAS4B,YAAYzB,KAAK,CAACE,MAAM;gBACtF,IAAI,OAAOA,WAAW,cAAcA,OAAO;oBAAEwB;gBAAK,IAAsB;oBACtE,OAAO;gBACT;YACF,IACA;YACNpB,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBkB,YAAY/B;YACZc,UAAU;QACZ;IACF;IAEAL,UAAU,CAAC,EAAE,CAACW,MAAM,CAACO,IAAI,CAAC;QACxBjB,MAAM;QACNC,MAAM;QACNC,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;IACtB;IAEA,OAAOJ;AACT,EAAC"}
1
+ {"version":3,"sources":["../../../../../src/field/features/link/drawer/baseFields.ts"],"sourcesContent":["import type { User } from 'payload/auth'\nimport type { SanitizedConfig } from 'payload/config'\nimport type { Field, RadioField, TextField } from 'payload/types'\n\nimport { validateUrl } from '../../../lexical/utils/url.js'\n\nexport const getBaseFields = (\n config: SanitizedConfig,\n enabledCollections: false | string[],\n disabledCollections: false | string[],\n maxDepth?: number,\n): Field[] => {\n let enabledRelations: string[]\n\n /**\n * Figure out which relations should be enabled (enabledRelations) based on a collection's admin.enableRichTextLink property,\n * or the Link Feature's enabledCollections and disabledCollections properties which override it.\n */\n if (enabledCollections) {\n enabledRelations = enabledCollections\n } else if (disabledCollections) {\n enabledRelations = config.collections\n .filter(({ slug }) => !disabledCollections.includes(slug))\n .map(({ slug }) => slug)\n } else {\n enabledRelations = config.collections\n .filter(({ admin: { enableRichTextLink, hidden } }) => {\n if (typeof hidden !== 'function' && hidden) {\n return false\n }\n return enableRichTextLink\n })\n .map(({ slug }) => slug)\n }\n\n const baseFields: Field[] = [\n {\n name: 'text',\n type: 'text',\n label: ({ t }) => t('fields:textToDisplay'),\n required: true,\n },\n {\n name: 'linkType',\n type: 'radio',\n admin: {\n description: ({ t }) => t('fields:chooseBetweenCustomTextOrDocument'),\n },\n defaultValue: 'custom',\n label: ({ t }) => t('fields:linkType'),\n options: [\n {\n label: ({ t }) => t('fields:customURL'),\n value: 'custom',\n },\n ],\n required: true,\n } as RadioField,\n {\n name: 'url',\n type: 'text',\n label: ({ t }) => t('fields:enterURL'),\n required: true,\n validate: (value: string) => {\n if (!validateUrl(value)) {\n return 'Invalid URL'\n }\n },\n },\n ]\n\n // Only display internal link-specific fields / options / conditions if there are enabled relations\n if (enabledRelations?.length) {\n ;(baseFields[1] as RadioField).options.push({\n label: ({ t }) => t('fields:internalLink'),\n value: 'internal',\n })\n ;(baseFields[2] as TextField).admin = {\n condition: ({ linkType }) => linkType !== 'internal',\n }\n\n baseFields.push({\n name: 'doc',\n admin: {\n condition: ({ linkType }) => {\n return linkType === 'internal'\n },\n },\n // when admin.hidden is a function we need to dynamically call hidden with the user to know if the collection should be shown\n type: 'relationship',\n filterOptions:\n !enabledCollections && !disabledCollections\n ? ({ relationTo, user }) => {\n const hidden = config.collections.find(({ slug }) => slug === relationTo).admin.hidden\n if (typeof hidden === 'function' && hidden({ user } as { user: User })) {\n return false\n }\n }\n : null,\n label: ({ t }) => t('fields:chooseDocumentToLink'),\n maxDepth,\n relationTo: enabledRelations,\n required: true,\n })\n }\n\n baseFields.push({\n name: 'newTab',\n type: 'checkbox',\n label: ({ t }) => t('fields:openInNewTab'),\n })\n\n return baseFields\n}\n"],"names":["validateUrl","getBaseFields","config","enabledCollections","disabledCollections","maxDepth","enabledRelations","collections","filter","slug","includes","map","admin","enableRichTextLink","hidden","baseFields","name","type","label","t","required","description","defaultValue","options","value","validate","length","push","condition","linkType","filterOptions","relationTo","user","find"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAIA,SAASA,WAAW,QAAQ,gCAA+B;AAE3D,OAAO,MAAMC,gBAAgB,CAC3BC,QACAC,oBACAC,qBACAC;IAEA,IAAIC;IAEJ;;;GAGC,GACD,IAAIH,oBAAoB;QACtBG,mBAAmBH;IACrB,OAAO,IAAIC,qBAAqB;QAC9BE,mBAAmBJ,OAAOK,WAAW,CAClCC,MAAM,CAAC,CAAC,EAAEC,IAAI,EAAE,GAAK,CAACL,oBAAoBM,QAAQ,CAACD,OACnDE,GAAG,CAAC,CAAC,EAAEF,IAAI,EAAE,GAAKA;IACvB,OAAO;QACLH,mBAAmBJ,OAAOK,WAAW,CAClCC,MAAM,CAAC,CAAC,EAAEI,OAAO,EAAEC,kBAAkB,EAAEC,MAAM,EAAE,EAAE;YAChD,IAAI,OAAOA,WAAW,cAAcA,QAAQ;gBAC1C,OAAO;YACT;YACA,OAAOD;QACT,GACCF,GAAG,CAAC,CAAC,EAAEF,IAAI,EAAE,GAAKA;IACvB;IAEA,MAAMM,aAAsB;QAC1B;YACEC,MAAM;YACNC,MAAM;YACNC,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBC,UAAU;QACZ;QACA;YACEJ,MAAM;YACNC,MAAM;YACNL,OAAO;gBACLS,aAAa,CAAC,EAAEF,CAAC,EAAE,GAAKA,EAAE;YAC5B;YACAG,cAAc;YACdJ,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBI,SAAS;gBACP;oBACEL,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;oBACpBK,OAAO;gBACT;aACD;YACDJ,UAAU;QACZ;QACA;YACEJ,MAAM;YACNC,MAAM;YACNC,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBC,UAAU;YACVK,UAAU,CAACD;gBACT,IAAI,CAACxB,YAAYwB,QAAQ;oBACvB,OAAO;gBACT;YACF;QACF;KACD;IAED,mGAAmG;IACnG,IAAIlB,kBAAkBoB,QAAQ;QAC1BX,UAAU,CAAC,EAAE,CAAgBQ,OAAO,CAACI,IAAI,CAAC;YAC1CT,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBK,OAAO;QACT;QACET,UAAU,CAAC,EAAE,CAAeH,KAAK,GAAG;YACpCgB,WAAW,CAAC,EAAEC,QAAQ,EAAE,GAAKA,aAAa;QAC5C;QAEAd,WAAWY,IAAI,CAAC;YACdX,MAAM;YACNJ,OAAO;gBACLgB,WAAW,CAAC,EAAEC,QAAQ,EAAE;oBACtB,OAAOA,aAAa;gBACtB;YACF;YACA,6HAA6H;YAC7HZ,MAAM;YACNa,eACE,CAAC3B,sBAAsB,CAACC,sBACpB,CAAC,EAAE2B,UAAU,EAAEC,IAAI,EAAE;gBACnB,MAAMlB,SAASZ,OAAOK,WAAW,CAAC0B,IAAI,CAAC,CAAC,EAAExB,IAAI,EAAE,GAAKA,SAASsB,YAAYnB,KAAK,CAACE,MAAM;gBACtF,IAAI,OAAOA,WAAW,cAAcA,OAAO;oBAAEkB;gBAAK,IAAsB;oBACtE,OAAO;gBACT;YACF,IACA;YACNd,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;YACpBd;YACA0B,YAAYzB;YACZc,UAAU;QACZ;IACF;IAEAL,WAAWY,IAAI,CAAC;QACdX,MAAM;QACNC,MAAM;QACNC,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;IACtB;IAEA,OAAOJ;AACT,EAAC"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { Drawer } from '@payloadcms/ui/elements/Drawer';
2
3
  import { useFieldProps } from '@payloadcms/ui/forms/FieldPropsProvider';
3
4
  import { Form } from '@payloadcms/ui/forms/Form';
@@ -65,29 +66,37 @@ export const LinkDrawer = ({ drawerSlug, handleModalSubmit, stateData })=>{
65
66
  schemaFieldsPath,
66
67
  id
67
68
  ]);
68
- return /*#__PURE__*/ React.createElement(Drawer, {
69
+ return /*#__PURE__*/ _jsx(Drawer, {
69
70
  className: baseClass,
70
71
  slug: drawerSlug,
71
- title: t('fields:editLink') ?? ''
72
- }, initialState !== false && /*#__PURE__*/ React.createElement(Form, {
73
- beforeSubmit: [
74
- onChange
75
- ],
76
- disableValidationOnSubmit: true,
77
- fields: Array.isArray(fieldMap) ? fieldMap : [],
78
- initialState: initialState,
79
- onChange: [
80
- onChange
81
- ],
82
- onSubmit: handleModalSubmit,
83
- uuid: uuid()
84
- }, /*#__PURE__*/ React.createElement(RenderFields, {
85
- fieldMap: Array.isArray(fieldMap) ? fieldMap : [],
86
- forceRender: true,
87
- path: "",
88
- readOnly: false,
89
- schemaPath: ""
90
- }), /*#__PURE__*/ React.createElement(FormSubmit, null, t('general:submit'))));
72
+ title: t('fields:editLink') ?? '',
73
+ children: initialState !== false && /*#__PURE__*/ _jsxs(Form, {
74
+ beforeSubmit: [
75
+ onChange
76
+ ],
77
+ disableValidationOnSubmit: true,
78
+ fields: Array.isArray(fieldMap) ? fieldMap : [],
79
+ initialState: initialState,
80
+ onChange: [
81
+ onChange
82
+ ],
83
+ onSubmit: handleModalSubmit,
84
+ uuid: uuid(),
85
+ children: [
86
+ /*#__PURE__*/ _jsx(RenderFields, {
87
+ fieldMap: Array.isArray(fieldMap) ? fieldMap : [],
88
+ forceRender: true,
89
+ path: "" // See Blocks feature path for details as for why this is empty
90
+ ,
91
+ readOnly: false,
92
+ schemaPath: schemaFieldsPath
93
+ }),
94
+ /*#__PURE__*/ _jsx(FormSubmit, {
95
+ children: t('general:submit')
96
+ })
97
+ ]
98
+ })
99
+ });
91
100
  };
92
101
 
93
102
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/field/features/link/drawer/index.tsx"],"sourcesContent":["import type { FormProps } from '@payloadcms/ui/forms/Form'\nimport type { FormState } from 'payload/types'\n\nimport { Drawer } from '@payloadcms/ui/elements/Drawer'\nimport { useFieldProps } from '@payloadcms/ui/forms/FieldPropsProvider'\nimport { Form } from '@payloadcms/ui/forms/Form'\nimport { RenderFields } from '@payloadcms/ui/forms/RenderFields'\nimport { FormSubmit } from '@payloadcms/ui/forms/Submit'\nimport { useConfig } from '@payloadcms/ui/providers/Config'\nimport { useDocumentInfo } from '@payloadcms/ui/providers/DocumentInfo'\nimport { useTranslation } from '@payloadcms/ui/providers/Translation'\nimport { getFormState } from '@payloadcms/ui/utilities/getFormState'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { v4 as uuid } from 'uuid'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport './index.scss'\nimport { type Props } from './types.js'\n\nconst baseClass = 'lexical-link-edit-drawer'\n\nexport const LinkDrawer: React.FC<Props> = ({ drawerSlug, handleModalSubmit, stateData }) => {\n const { t } = useTranslation()\n const { id } = useDocumentInfo()\n const { schemaPath } = useFieldProps()\n const config = useConfig()\n const [initialState, setInitialState] = useState<FormState | false>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedFieldsPath = `feature.link.fields.fields`\n const schemaFieldsPath = `${schemaPath}.feature.link.fields`\n\n const fieldMap = richTextComponentMap.get(componentMapRenderedFieldsPath) // Field Schema\n\n useEffect(() => {\n const awaitInitialState = async () => {\n const state = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n data: stateData,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n }) // Form State\n\n setInitialState(state)\n }\n\n if (stateData) {\n void awaitInitialState()\n }\n }, [config.routes.api, config.serverURL, schemaFieldsPath, id, stateData])\n\n const onChange: FormProps['onChange'][0] = useCallback(\n async ({ formState: prevFormState }) => {\n return await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n formState: prevFormState,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n })\n },\n\n [config.routes.api, config.serverURL, schemaFieldsPath, id],\n )\n\n return (\n <Drawer className={baseClass} slug={drawerSlug} title={t('fields:editLink') ?? ''}>\n {initialState !== false && (\n <Form\n beforeSubmit={[onChange]}\n disableValidationOnSubmit\n fields={Array.isArray(fieldMap) ? fieldMap : []}\n initialState={initialState}\n onChange={[onChange]}\n onSubmit={handleModalSubmit}\n uuid={uuid()}\n >\n <RenderFields\n fieldMap={Array.isArray(fieldMap) ? fieldMap : []}\n forceRender\n path=\"\"\n readOnly={false}\n schemaPath=\"\"\n />\n\n <FormSubmit>{t('general:submit')}</FormSubmit>\n </Form>\n )}\n </Drawer>\n )\n}\n"],"names":["Drawer","useFieldProps","Form","RenderFields","FormSubmit","useConfig","useDocumentInfo","useTranslation","getFormState","React","useCallback","useEffect","useState","v4","uuid","useEditorConfigContext","baseClass","LinkDrawer","drawerSlug","handleModalSubmit","stateData","t","id","schemaPath","config","initialState","setInitialState","field","richTextComponentMap","componentMapRenderedFieldsPath","schemaFieldsPath","fieldMap","get","awaitInitialState","state","apiRoute","routes","api","body","data","operation","serverURL","onChange","formState","prevFormState","className","slug","title","beforeSubmit","disableValidationOnSubmit","fields","Array","isArray","onSubmit","forceRender","path","readOnly"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAGA,SAASA,MAAM,QAAQ,iCAAgC;AACvD,SAASC,aAAa,QAAQ,0CAAyC;AACvE,SAASC,IAAI,QAAQ,4BAA2B;AAChD,SAASC,YAAY,QAAQ,oCAAmC;AAChE,SAASC,UAAU,QAAQ,8BAA6B;AACxD,SAASC,SAAS,QAAQ,kCAAiC;AAC3D,SAASC,eAAe,QAAQ,wCAAuC;AACvE,SAASC,cAAc,QAAQ,uCAAsC;AACrE,SAASC,YAAY,QAAQ,wCAAuC;AACpE,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AAC/D,SAASC,MAAMC,IAAI,QAAQ,OAAM;AAEjC,SAASC,sBAAsB,QAAQ,yDAAwD;AAC/F,OAAO,eAAc;AAGrB,MAAMC,YAAY;AAElB,OAAO,MAAMC,aAA8B,CAAC,EAAEC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,EAAE;IACtF,MAAM,EAAEC,CAAC,EAAE,GAAGd;IACd,MAAM,EAAEe,EAAE,EAAE,GAAGhB;IACf,MAAM,EAAEiB,UAAU,EAAE,GAAGtB;IACvB,MAAMuB,SAASnB;IACf,MAAM,CAACoB,cAAcC,gBAAgB,GAAGd,SAA4B;IACpE,MAAM,EACJe,OAAO,EAAEC,oBAAoB,EAAE,EAChC,GAAGb;IAEJ,MAAMc,iCAAiC,CAAC,0BAA0B,CAAC;IACnE,MAAMC,mBAAmB,CAAC,EAAEP,WAAW,oBAAoB,CAAC;IAE5D,MAAMQ,WAAWH,qBAAqBI,GAAG,CAACH,gCAAgC,eAAe;;IAEzFlB,UAAU;QACR,MAAMsB,oBAAoB;YACxB,MAAMC,QAAQ,MAAM1B,aAAa;gBAC/B2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;gBAC3BC,MAAM;oBACJhB;oBACAiB,MAAMnB;oBACNoB,WAAW;oBACXjB,YAAYO;gBACd;gBACAW,WAAWjB,OAAOiB,SAAS;YAC7B,GAAG,aAAa;;YAEhBf,gBAAgBQ;QAClB;QAEA,IAAId,WAAW;YACb,KAAKa;QACP;IACF,GAAG;QAACT,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;QAAIF;KAAU;IAEzE,MAAMsB,WAAqChC,YACzC,OAAO,EAAEiC,WAAWC,aAAa,EAAE;QACjC,OAAO,MAAMpC,aAAa;YACxB2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;YAC3BC,MAAM;gBACJhB;gBACAqB,WAAWC;gBACXJ,WAAW;gBACXjB,YAAYO;YACd;YACAW,WAAWjB,OAAOiB,SAAS;QAC7B;IACF,GAEA;QAACjB,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;KAAG;IAG7D,qBACE,oBAACtB;QAAO6C,WAAW7B;QAAW8B,MAAM5B;QAAY6B,OAAO1B,EAAE,sBAAsB;OAC5EI,iBAAiB,uBAChB,oBAACvB;QACC8C,cAAc;YAACN;SAAS;QACxBO,2BAAAA;QACAC,QAAQC,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;QAC/CN,cAAcA;QACdiB,UAAU;YAACA;SAAS;QACpBW,UAAUlC;QACVL,MAAMA;qBAEN,oBAACX;QACC4B,UAAUoB,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;QACjDuB,aAAAA;QACAC,MAAK;QACLC,UAAU;QACVjC,YAAW;sBAGb,oBAACnB,kBAAYiB,EAAE;AAKzB,EAAC"}
1
+ {"version":3,"sources":["../../../../../src/field/features/link/drawer/index.tsx"],"sourcesContent":["import type { FormProps } from '@payloadcms/ui/forms/Form'\nimport type { FormState } from 'payload/types'\n\nimport { Drawer } from '@payloadcms/ui/elements/Drawer'\nimport { useFieldProps } from '@payloadcms/ui/forms/FieldPropsProvider'\nimport { Form } from '@payloadcms/ui/forms/Form'\nimport { RenderFields } from '@payloadcms/ui/forms/RenderFields'\nimport { FormSubmit } from '@payloadcms/ui/forms/Submit'\nimport { useConfig } from '@payloadcms/ui/providers/Config'\nimport { useDocumentInfo } from '@payloadcms/ui/providers/DocumentInfo'\nimport { useTranslation } from '@payloadcms/ui/providers/Translation'\nimport { getFormState } from '@payloadcms/ui/utilities/getFormState'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { v4 as uuid } from 'uuid'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport './index.scss'\nimport { type Props } from './types.js'\n\nconst baseClass = 'lexical-link-edit-drawer'\n\nexport const LinkDrawer: React.FC<Props> = ({ drawerSlug, handleModalSubmit, stateData }) => {\n const { t } = useTranslation()\n const { id } = useDocumentInfo()\n const { schemaPath } = useFieldProps()\n const config = useConfig()\n const [initialState, setInitialState] = useState<FormState | false>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedFieldsPath = `feature.link.fields.fields`\n const schemaFieldsPath = `${schemaPath}.feature.link.fields`\n\n const fieldMap = richTextComponentMap.get(componentMapRenderedFieldsPath) // Field Schema\n\n useEffect(() => {\n const awaitInitialState = async () => {\n const state = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n data: stateData,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n }) // Form State\n\n setInitialState(state)\n }\n\n if (stateData) {\n void awaitInitialState()\n }\n }, [config.routes.api, config.serverURL, schemaFieldsPath, id, stateData])\n\n const onChange: FormProps['onChange'][0] = useCallback(\n async ({ formState: prevFormState }) => {\n return await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n formState: prevFormState,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n })\n },\n\n [config.routes.api, config.serverURL, schemaFieldsPath, id],\n )\n\n return (\n <Drawer className={baseClass} slug={drawerSlug} title={t('fields:editLink') ?? ''}>\n {initialState !== false && (\n <Form\n beforeSubmit={[onChange]}\n disableValidationOnSubmit\n fields={Array.isArray(fieldMap) ? fieldMap : []}\n initialState={initialState}\n onChange={[onChange]}\n onSubmit={handleModalSubmit}\n uuid={uuid()}\n >\n <RenderFields\n fieldMap={Array.isArray(fieldMap) ? fieldMap : []}\n forceRender\n path=\"\" // See Blocks feature path for details as for why this is empty\n readOnly={false}\n schemaPath={schemaFieldsPath}\n />\n\n <FormSubmit>{t('general:submit')}</FormSubmit>\n </Form>\n )}\n </Drawer>\n )\n}\n"],"names":["Drawer","useFieldProps","Form","RenderFields","FormSubmit","useConfig","useDocumentInfo","useTranslation","getFormState","React","useCallback","useEffect","useState","v4","uuid","useEditorConfigContext","baseClass","LinkDrawer","drawerSlug","handleModalSubmit","stateData","t","id","schemaPath","config","initialState","setInitialState","field","richTextComponentMap","componentMapRenderedFieldsPath","schemaFieldsPath","fieldMap","get","awaitInitialState","state","apiRoute","routes","api","body","data","operation","serverURL","onChange","formState","prevFormState","className","slug","title","beforeSubmit","disableValidationOnSubmit","fields","Array","isArray","onSubmit","forceRender","path","readOnly"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAGA,SAASA,MAAM,QAAQ,iCAAgC;AACvD,SAASC,aAAa,QAAQ,0CAAyC;AACvE,SAASC,IAAI,QAAQ,4BAA2B;AAChD,SAASC,YAAY,QAAQ,oCAAmC;AAChE,SAASC,UAAU,QAAQ,8BAA6B;AACxD,SAASC,SAAS,QAAQ,kCAAiC;AAC3D,SAASC,eAAe,QAAQ,wCAAuC;AACvE,SAASC,cAAc,QAAQ,uCAAsC;AACrE,SAASC,YAAY,QAAQ,wCAAuC;AACpE,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AAC/D,SAASC,MAAMC,IAAI,QAAQ,OAAM;AAEjC,SAASC,sBAAsB,QAAQ,yDAAwD;AAC/F,OAAO,eAAc;AAGrB,MAAMC,YAAY;AAElB,OAAO,MAAMC,aAA8B,CAAC,EAAEC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,EAAE;IACtF,MAAM,EAAEC,CAAC,EAAE,GAAGd;IACd,MAAM,EAAEe,EAAE,EAAE,GAAGhB;IACf,MAAM,EAAEiB,UAAU,EAAE,GAAGtB;IACvB,MAAMuB,SAASnB;IACf,MAAM,CAACoB,cAAcC,gBAAgB,GAAGd,SAA4B;IACpE,MAAM,EACJe,OAAO,EAAEC,oBAAoB,EAAE,EAChC,GAAGb;IAEJ,MAAMc,iCAAiC,CAAC,0BAA0B,CAAC;IACnE,MAAMC,mBAAmB,CAAC,EAAEP,WAAW,oBAAoB,CAAC;IAE5D,MAAMQ,WAAWH,qBAAqBI,GAAG,CAACH,gCAAgC,eAAe;;IAEzFlB,UAAU;QACR,MAAMsB,oBAAoB;YACxB,MAAMC,QAAQ,MAAM1B,aAAa;gBAC/B2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;gBAC3BC,MAAM;oBACJhB;oBACAiB,MAAMnB;oBACNoB,WAAW;oBACXjB,YAAYO;gBACd;gBACAW,WAAWjB,OAAOiB,SAAS;YAC7B,GAAG,aAAa;;YAEhBf,gBAAgBQ;QAClB;QAEA,IAAId,WAAW;YACb,KAAKa;QACP;IACF,GAAG;QAACT,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;QAAIF;KAAU;IAEzE,MAAMsB,WAAqChC,YACzC,OAAO,EAAEiC,WAAWC,aAAa,EAAE;QACjC,OAAO,MAAMpC,aAAa;YACxB2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;YAC3BC,MAAM;gBACJhB;gBACAqB,WAAWC;gBACXJ,WAAW;gBACXjB,YAAYO;YACd;YACAW,WAAWjB,OAAOiB,SAAS;QAC7B;IACF,GAEA;QAACjB,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;KAAG;IAG7D,qBACE,KAACtB;QAAO6C,WAAW7B;QAAW8B,MAAM5B;QAAY6B,OAAO1B,EAAE,sBAAsB;kBAC5EI,iBAAiB,uBAChB,MAACvB;YACC8C,cAAc;gBAACN;aAAS;YACxBO,yBAAyB;YACzBC,QAAQC,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;YAC/CN,cAAcA;YACdiB,UAAU;gBAACA;aAAS;YACpBW,UAAUlC;YACVL,MAAMA;;8BAEN,KAACX;oBACC4B,UAAUoB,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;oBACjDuB,WAAW;oBACXC,MAAK,GAAG,+DAA+D;;oBACvEC,UAAU;oBACVjC,YAAYO;;8BAGd,KAAC1B;8BAAYiB,EAAE;;;;;AAKzB,EAAC"}
@@ -1,8 +1,10 @@
1
1
  import type { FormState } from 'payload/types';
2
- import type { LinkPayload } from '../plugins/floatingLinkEditor/types.js';
2
+ import type { LinkFields } from '../nodes/types.js';
3
3
  export interface Props {
4
4
  drawerSlug: string;
5
5
  handleModalSubmit: (fields: FormState, data: Record<string, unknown>) => void;
6
- stateData?: LinkPayload;
6
+ stateData: {} | (LinkFields & {
7
+ text: string;
8
+ });
7
9
  }
8
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/link/drawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAC7E,SAAS,CAAC,EAAE,WAAW,CAAA;CACxB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/link/drawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAC7E,SAAS,EAAE,EAAE,GAAG,CAAC,UAAU,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAChD"}