@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 +1 @@
1
- {"version":3,"sources":["../../../../../src/field/features/link/drawer/types.ts"],"sourcesContent":["import type { FormState } from 'payload/types'\n\nimport type { LinkPayload } from '../plugins/floatingLinkEditor/types.js'\n\nexport interface Props {\n drawerSlug: string\n handleModalSubmit: (fields: FormState, data: Record<string, unknown>) => void\n stateData?: LinkPayload\n}\n"],"names":[],"rangeMappings":"","mappings":"AAIA,WAIC"}
1
+ {"version":3,"sources":["../../../../../src/field/features/link/drawer/types.ts"],"sourcesContent":["import type { FormState } from 'payload/types'\n\nimport type { LinkFields } from '../nodes/types.js'\n\nexport interface Props {\n drawerSlug: string\n handleModalSubmit: (fields: FormState, data: Record<string, unknown>) => void\n stateData: {} | (LinkFields & { text: string })\n}\n"],"names":[],"rangeMappings":"","mappings":"AAIA,WAIC"}
@@ -1,5 +1,17 @@
1
1
  /// <reference types="react" resolution-mode="require"/>
2
2
  import type { ExclusiveLinkCollectionsProps } from './feature.server.js';
3
3
  export type ClientProps = ExclusiveLinkCollectionsProps;
4
- export declare const LinkFeatureClientComponent: import("react").FC<import("../types.js").ClientComponentProps<ExclusiveLinkCollectionsProps>>;
4
+ export declare const LinkFeatureClientComponent: import("react").FC<({
5
+ featureKey: string;
6
+ order: number;
7
+ } & {
8
+ disabledCollections?: string[];
9
+ enabledCollections?: never;
10
+ }) | ({
11
+ featureKey: string;
12
+ order: number;
13
+ } & {
14
+ disabledCollections?: never;
15
+ enabledCollections?: string[];
16
+ })>;
5
17
  //# sourceMappingURL=feature.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../../src/field/features/link/feature.client.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAexE,MAAM,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAuEvD,eAAO,MAAM,0BAA0B,+FAA2C,CAAA"}
1
+ {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../../src/field/features/link/feature.client.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAgBxE,MAAM,MAAM,WAAW,GAAG,6BAA6B,CAAA;AA4FvD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;GAA2C,CAAA"}
@@ -1,12 +1,11 @@
1
1
  'use client';
2
- import lexicalUtilsImport from '@lexical/utils';
3
- const { $findMatchingParent } = lexicalUtilsImport;
4
- import lexicalImport from 'lexical';
5
- const { $getSelection, $isRangeSelection } = lexicalImport;
2
+ import { $findMatchingParent } from '@lexical/utils';
3
+ import { $getSelection, $isRangeSelection } from 'lexical';
6
4
  import { LinkIcon } from '../../lexical/ui/icons/Link/index.js';
7
5
  import { getSelectedNode } from '../../lexical/utils/getSelectedNode.js';
8
- import { FeaturesSectionWithEntries } from '../common/floatingSelectToolbarFeaturesButtonsSection/index.js';
9
6
  import { createClientComponent } from '../createClientComponent.js';
7
+ import { toolbarFeatureButtonsGroupWithItems } from '../shared/toolbar/featureButtonsGroup.js';
8
+ import { LinkMarkdownTransformer } from './markdownTransformer.js';
10
9
  import { AutoLinkNode } from './nodes/AutoLinkNode.js';
11
10
  import { $isLinkNode, LinkNode, TOGGLE_LINK_COMMAND } from './nodes/LinkNode.js';
12
11
  import { AutoLinkPlugin } from './plugins/autoLink/index.js';
@@ -14,52 +13,65 @@ import { ClickableLinkPlugin } from './plugins/clickableLink/index.js';
14
13
  import { TOGGLE_LINK_WITH_MODAL_COMMAND } from './plugins/floatingLinkEditor/LinkEditor/commands.js';
15
14
  import { FloatingLinkEditorPlugin } from './plugins/floatingLinkEditor/index.js';
16
15
  import { LinkPlugin } from './plugins/link/index.js';
16
+ const toolbarGroups = [
17
+ toolbarFeatureButtonsGroupWithItems([
18
+ {
19
+ ChildComponent: LinkIcon,
20
+ isActive: ({ selection })=>{
21
+ if ($isRangeSelection(selection)) {
22
+ const selectedNode = getSelectedNode(selection);
23
+ const linkParent = $findMatchingParent(selectedNode, $isLinkNode);
24
+ return linkParent != null;
25
+ }
26
+ return false;
27
+ },
28
+ isEnabled: ({ selection })=>{
29
+ return !!($isRangeSelection(selection) && $getSelection()?.getTextContent()?.length);
30
+ },
31
+ key: 'link',
32
+ label: ({ i18n })=>{
33
+ return i18n.t('lexical:link:label');
34
+ },
35
+ onSelect: ({ editor, isActive })=>{
36
+ if (!isActive) {
37
+ let selectedText = null;
38
+ let selectedNodes = [];
39
+ editor.getEditorState().read(()=>{
40
+ selectedText = $getSelection()?.getTextContent();
41
+ // We need to selected nodes here before the drawer opens, as clicking around in the drawer may change the original selection
42
+ selectedNodes = $getSelection()?.getNodes() ?? [];
43
+ });
44
+ if (!selectedText?.length) {
45
+ return;
46
+ }
47
+ const linkFields = {
48
+ doc: null,
49
+ linkType: 'custom',
50
+ newTab: false,
51
+ url: 'https://'
52
+ };
53
+ editor.dispatchCommand(TOGGLE_LINK_WITH_MODAL_COMMAND, {
54
+ fields: linkFields,
55
+ selectedNodes,
56
+ text: selectedText
57
+ });
58
+ } else {
59
+ // remove link
60
+ editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
61
+ }
62
+ },
63
+ order: 1
64
+ }
65
+ ])
66
+ ];
17
67
  const LinkFeatureClient = (props)=>{
18
68
  return {
19
69
  clientFeatureProps: props,
20
70
  feature: ()=>({
21
71
  clientFeatureProps: props,
22
- floatingSelectToolbar: {
23
- sections: [
24
- FeaturesSectionWithEntries([
25
- {
26
- ChildComponent: LinkIcon,
27
- isActive: ({ selection })=>{
28
- if ($isRangeSelection(selection)) {
29
- const selectedNode = getSelectedNode(selection);
30
- const linkParent = $findMatchingParent(selectedNode, $isLinkNode);
31
- return linkParent != null;
32
- }
33
- return false;
34
- },
35
- key: 'link',
36
- label: `Link`,
37
- onClick: ({ editor, isActive })=>{
38
- if (!isActive) {
39
- let selectedText = null;
40
- editor.getEditorState().read(()=>{
41
- selectedText = $getSelection().getTextContent();
42
- });
43
- const linkFields = {
44
- doc: null,
45
- linkType: 'custom',
46
- newTab: false,
47
- url: 'https://'
48
- };
49
- editor.dispatchCommand(TOGGLE_LINK_WITH_MODAL_COMMAND, {
50
- fields: linkFields,
51
- text: selectedText
52
- });
53
- } else {
54
- // remove link
55
- editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
56
- }
57
- },
58
- order: 1
59
- }
60
- ])
61
- ]
62
- },
72
+ markdownTransformers: [
73
+ LinkMarkdownTransformer
74
+ ],
63
75
  nodes: [
64
76
  LinkNode,
65
77
  AutoLinkNode
@@ -81,7 +93,13 @@ const LinkFeatureClient = (props)=>{
81
93
  Component: FloatingLinkEditorPlugin,
82
94
  position: 'floatingAnchorElem'
83
95
  }
84
- ]
96
+ ],
97
+ toolbarFixed: {
98
+ groups: toolbarGroups
99
+ },
100
+ toolbarInline: {
101
+ groups: toolbarGroups
102
+ }
85
103
  })
86
104
  };
87
105
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/field/features/link/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport lexicalUtilsImport from '@lexical/utils'\nconst { $findMatchingParent } = lexicalUtilsImport\n\nimport lexicalImport from 'lexical'\nconst { $getSelection, $isRangeSelection } = lexicalImport\n\nimport type { FeatureProviderProviderClient } from '../types.js'\nimport type { ExclusiveLinkCollectionsProps } from './feature.server.js'\nimport type { LinkFields } from './nodes/types.js'\n\nimport { LinkIcon } from '../../lexical/ui/icons/Link/index.js'\nimport { getSelectedNode } from '../../lexical/utils/getSelectedNode.js'\nimport { FeaturesSectionWithEntries } from '../common/floatingSelectToolbarFeaturesButtonsSection/index.js'\nimport { createClientComponent } from '../createClientComponent.js'\nimport { AutoLinkNode } from './nodes/AutoLinkNode.js'\nimport { $isLinkNode, LinkNode, TOGGLE_LINK_COMMAND } from './nodes/LinkNode.js'\nimport { AutoLinkPlugin } from './plugins/autoLink/index.js'\nimport { ClickableLinkPlugin } from './plugins/clickableLink/index.js'\nimport { TOGGLE_LINK_WITH_MODAL_COMMAND } from './plugins/floatingLinkEditor/LinkEditor/commands.js'\nimport { FloatingLinkEditorPlugin } from './plugins/floatingLinkEditor/index.js'\nimport { LinkPlugin } from './plugins/link/index.js'\n\nexport type ClientProps = ExclusiveLinkCollectionsProps\n\nconst LinkFeatureClient: FeatureProviderProviderClient<ClientProps> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n floatingSelectToolbar: {\n sections: [\n FeaturesSectionWithEntries([\n {\n ChildComponent: LinkIcon,\n isActive: ({ selection }) => {\n if ($isRangeSelection(selection)) {\n const selectedNode = getSelectedNode(selection)\n const linkParent = $findMatchingParent(selectedNode, $isLinkNode)\n return linkParent != null\n }\n return false\n },\n key: 'link',\n label: `Link`,\n onClick: ({ editor, isActive }) => {\n if (!isActive) {\n let selectedText = null\n editor.getEditorState().read(() => {\n selectedText = $getSelection().getTextContent()\n })\n const linkFields: LinkFields = {\n doc: null,\n linkType: 'custom',\n newTab: false,\n url: 'https://',\n }\n editor.dispatchCommand(TOGGLE_LINK_WITH_MODAL_COMMAND, {\n fields: linkFields,\n text: selectedText,\n })\n } else {\n // remove link\n editor.dispatchCommand(TOGGLE_LINK_COMMAND, null)\n }\n },\n order: 1,\n },\n ]),\n ],\n },\n nodes: [LinkNode, AutoLinkNode],\n plugins: [\n {\n Component: LinkPlugin,\n position: 'normal',\n },\n {\n Component: AutoLinkPlugin,\n position: 'normal',\n },\n {\n Component: ClickableLinkPlugin,\n position: 'normal',\n },\n {\n Component: FloatingLinkEditorPlugin,\n position: 'floatingAnchorElem',\n },\n ],\n }),\n }\n}\n\nexport const LinkFeatureClientComponent = createClientComponent(LinkFeatureClient)\n"],"names":["lexicalUtilsImport","$findMatchingParent","lexicalImport","$getSelection","$isRangeSelection","LinkIcon","getSelectedNode","FeaturesSectionWithEntries","createClientComponent","AutoLinkNode","$isLinkNode","LinkNode","TOGGLE_LINK_COMMAND","AutoLinkPlugin","ClickableLinkPlugin","TOGGLE_LINK_WITH_MODAL_COMMAND","FloatingLinkEditorPlugin","LinkPlugin","LinkFeatureClient","props","clientFeatureProps","feature","floatingSelectToolbar","sections","ChildComponent","isActive","selection","selectedNode","linkParent","key","label","onClick","editor","selectedText","getEditorState","read","getTextContent","linkFields","doc","linkType","newTab","url","dispatchCommand","fields","text","order","nodes","plugins","Component","position","LinkFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAEA,OAAOA,wBAAwB,iBAAgB;AAC/C,MAAM,EAAEC,mBAAmB,EAAE,GAAGD;AAEhC,OAAOE,mBAAmB,UAAS;AACnC,MAAM,EAAEC,aAAa,EAAEC,iBAAiB,EAAE,GAAGF;AAM7C,SAASG,QAAQ,QAAQ,uCAAsC;AAC/D,SAASC,eAAe,QAAQ,yCAAwC;AACxE,SAASC,0BAA0B,QAAQ,iEAAgE;AAC3G,SAASC,qBAAqB,QAAQ,8BAA6B;AACnE,SAASC,YAAY,QAAQ,0BAAyB;AACtD,SAASC,WAAW,EAAEC,QAAQ,EAAEC,mBAAmB,QAAQ,sBAAqB;AAChF,SAASC,cAAc,QAAQ,8BAA6B;AAC5D,SAASC,mBAAmB,QAAQ,mCAAkC;AACtE,SAASC,8BAA8B,QAAQ,sDAAqD;AACpG,SAASC,wBAAwB,QAAQ,wCAAuC;AAChF,SAASC,UAAU,QAAQ,0BAAyB;AAIpD,MAAMC,oBAAgE,CAACC;IACrE,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,uBAAuB;oBACrBC,UAAU;wBACRhB,2BAA2B;4BACzB;gCACEiB,gBAAgBnB;gCAChBoB,UAAU,CAAC,EAAEC,SAAS,EAAE;oCACtB,IAAItB,kBAAkBsB,YAAY;wCAChC,MAAMC,eAAerB,gBAAgBoB;wCACrC,MAAME,aAAa3B,oBAAoB0B,cAAcjB;wCACrD,OAAOkB,cAAc;oCACvB;oCACA,OAAO;gCACT;gCACAC,KAAK;gCACLC,OAAO,CAAC,IAAI,CAAC;gCACbC,SAAS,CAAC,EAAEC,MAAM,EAAEP,QAAQ,EAAE;oCAC5B,IAAI,CAACA,UAAU;wCACb,IAAIQ,eAAe;wCACnBD,OAAOE,cAAc,GAAGC,IAAI,CAAC;4CAC3BF,eAAe9B,gBAAgBiC,cAAc;wCAC/C;wCACA,MAAMC,aAAyB;4CAC7BC,KAAK;4CACLC,UAAU;4CACVC,QAAQ;4CACRC,KAAK;wCACP;wCACAT,OAAOU,eAAe,CAAC3B,gCAAgC;4CACrD4B,QAAQN;4CACRO,MAAMX;wCACR;oCACF,OAAO;wCACL,cAAc;wCACdD,OAAOU,eAAe,CAAC9B,qBAAqB;oCAC9C;gCACF;gCACAiC,OAAO;4BACT;yBACD;qBACF;gBACH;gBACAC,OAAO;oBAACnC;oBAAUF;iBAAa;gBAC/BsC,SAAS;oBACP;wBACEC,WAAW/B;wBACXgC,UAAU;oBACZ;oBACA;wBACED,WAAWnC;wBACXoC,UAAU;oBACZ;oBACA;wBACED,WAAWlC;wBACXmC,UAAU;oBACZ;oBACA;wBACED,WAAWhC;wBACXiC,UAAU;oBACZ;iBACD;YACH,CAAA;IACF;AACF;AAEA,OAAO,MAAMC,6BAA6B1C,sBAAsBU,mBAAkB"}
1
+ {"version":3,"sources":["../../../../src/field/features/link/feature.client.tsx"],"sourcesContent":["'use client'\n\nimport type { LexicalNode } from 'lexical'\n\nimport { $findMatchingParent } from '@lexical/utils'\nimport { $getSelection, $isRangeSelection } from 'lexical'\n\nimport type { ToolbarGroup } from '../toolbars/types.js'\nimport type { FeatureProviderProviderClient } from '../types.js'\nimport type { ExclusiveLinkCollectionsProps } from './feature.server.js'\nimport type { LinkFields } from './nodes/types.js'\n\nimport { LinkIcon } from '../../lexical/ui/icons/Link/index.js'\nimport { getSelectedNode } from '../../lexical/utils/getSelectedNode.js'\nimport { createClientComponent } from '../createClientComponent.js'\nimport { toolbarFeatureButtonsGroupWithItems } from '../shared/toolbar/featureButtonsGroup.js'\nimport { LinkMarkdownTransformer } from './markdownTransformer.js'\nimport { AutoLinkNode } from './nodes/AutoLinkNode.js'\nimport { $isLinkNode, LinkNode, TOGGLE_LINK_COMMAND } from './nodes/LinkNode.js'\nimport { AutoLinkPlugin } from './plugins/autoLink/index.js'\nimport { ClickableLinkPlugin } from './plugins/clickableLink/index.js'\nimport { TOGGLE_LINK_WITH_MODAL_COMMAND } from './plugins/floatingLinkEditor/LinkEditor/commands.js'\nimport { FloatingLinkEditorPlugin } from './plugins/floatingLinkEditor/index.js'\nimport { LinkPlugin } from './plugins/link/index.js'\n\nexport type ClientProps = ExclusiveLinkCollectionsProps\n\nconst toolbarGroups: ToolbarGroup[] = [\n toolbarFeatureButtonsGroupWithItems([\n {\n ChildComponent: LinkIcon,\n isActive: ({ selection }) => {\n if ($isRangeSelection(selection)) {\n const selectedNode = getSelectedNode(selection)\n const linkParent = $findMatchingParent(selectedNode, $isLinkNode)\n return linkParent != null\n }\n return false\n },\n isEnabled: ({ selection }) => {\n return !!($isRangeSelection(selection) && $getSelection()?.getTextContent()?.length)\n },\n key: 'link',\n label: ({ i18n }) => {\n return i18n.t('lexical:link:label')\n },\n onSelect: ({ editor, isActive }) => {\n if (!isActive) {\n let selectedText: string = null\n let selectedNodes: LexicalNode[] = []\n editor.getEditorState().read(() => {\n selectedText = $getSelection()?.getTextContent()\n // We need to selected nodes here before the drawer opens, as clicking around in the drawer may change the original selection\n selectedNodes = $getSelection()?.getNodes() ?? []\n })\n\n if (!selectedText?.length) {\n return\n }\n\n const linkFields: LinkFields = {\n doc: null,\n linkType: 'custom',\n newTab: false,\n url: 'https://',\n }\n\n editor.dispatchCommand(TOGGLE_LINK_WITH_MODAL_COMMAND, {\n fields: linkFields,\n selectedNodes,\n text: selectedText,\n })\n } else {\n // remove link\n editor.dispatchCommand(TOGGLE_LINK_COMMAND, null)\n }\n },\n order: 1,\n },\n ]),\n]\n\nconst LinkFeatureClient: FeatureProviderProviderClient<ClientProps> = (props) => {\n return {\n clientFeatureProps: props,\n feature: () => ({\n clientFeatureProps: props,\n markdownTransformers: [LinkMarkdownTransformer],\n nodes: [LinkNode, AutoLinkNode],\n plugins: [\n {\n Component: LinkPlugin,\n position: 'normal',\n },\n {\n Component: AutoLinkPlugin,\n position: 'normal',\n },\n {\n Component: ClickableLinkPlugin,\n position: 'normal',\n },\n {\n Component: FloatingLinkEditorPlugin,\n position: 'floatingAnchorElem',\n },\n ],\n toolbarFixed: {\n groups: toolbarGroups,\n },\n toolbarInline: {\n groups: toolbarGroups,\n },\n }),\n }\n}\n\nexport const LinkFeatureClientComponent = createClientComponent(LinkFeatureClient)\n"],"names":["$findMatchingParent","$getSelection","$isRangeSelection","LinkIcon","getSelectedNode","createClientComponent","toolbarFeatureButtonsGroupWithItems","LinkMarkdownTransformer","AutoLinkNode","$isLinkNode","LinkNode","TOGGLE_LINK_COMMAND","AutoLinkPlugin","ClickableLinkPlugin","TOGGLE_LINK_WITH_MODAL_COMMAND","FloatingLinkEditorPlugin","LinkPlugin","toolbarGroups","ChildComponent","isActive","selection","selectedNode","linkParent","isEnabled","getTextContent","length","key","label","i18n","t","onSelect","editor","selectedText","selectedNodes","getEditorState","read","getNodes","linkFields","doc","linkType","newTab","url","dispatchCommand","fields","text","order","LinkFeatureClient","props","clientFeatureProps","feature","markdownTransformers","nodes","plugins","Component","position","toolbarFixed","groups","toolbarInline","LinkFeatureClientComponent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;AAIA,SAASA,mBAAmB,QAAQ,iBAAgB;AACpD,SAASC,aAAa,EAAEC,iBAAiB,QAAQ,UAAS;AAO1D,SAASC,QAAQ,QAAQ,uCAAsC;AAC/D,SAASC,eAAe,QAAQ,yCAAwC;AACxE,SAASC,qBAAqB,QAAQ,8BAA6B;AACnE,SAASC,mCAAmC,QAAQ,2CAA0C;AAC9F,SAASC,uBAAuB,QAAQ,2BAA0B;AAClE,SAASC,YAAY,QAAQ,0BAAyB;AACtD,SAASC,WAAW,EAAEC,QAAQ,EAAEC,mBAAmB,QAAQ,sBAAqB;AAChF,SAASC,cAAc,QAAQ,8BAA6B;AAC5D,SAASC,mBAAmB,QAAQ,mCAAkC;AACtE,SAASC,8BAA8B,QAAQ,sDAAqD;AACpG,SAASC,wBAAwB,QAAQ,wCAAuC;AAChF,SAASC,UAAU,QAAQ,0BAAyB;AAIpD,MAAMC,gBAAgC;IACpCX,oCAAoC;QAClC;YACEY,gBAAgBf;YAChBgB,UAAU,CAAC,EAAEC,SAAS,EAAE;gBACtB,IAAIlB,kBAAkBkB,YAAY;oBAChC,MAAMC,eAAejB,gBAAgBgB;oBACrC,MAAME,aAAatB,oBAAoBqB,cAAcZ;oBACrD,OAAOa,cAAc;gBACvB;gBACA,OAAO;YACT;YACAC,WAAW,CAAC,EAAEH,SAAS,EAAE;gBACvB,OAAO,CAAC,CAAElB,CAAAA,kBAAkBkB,cAAcnB,iBAAiBuB,kBAAkBC,MAAK;YACpF;YACAC,KAAK;YACLC,OAAO,CAAC,EAAEC,IAAI,EAAE;gBACd,OAAOA,KAAKC,CAAC,CAAC;YAChB;YACAC,UAAU,CAAC,EAAEC,MAAM,EAAEZ,QAAQ,EAAE;gBAC7B,IAAI,CAACA,UAAU;oBACb,IAAIa,eAAuB;oBAC3B,IAAIC,gBAA+B,EAAE;oBACrCF,OAAOG,cAAc,GAAGC,IAAI,CAAC;wBAC3BH,eAAe/B,iBAAiBuB;wBAChC,6HAA6H;wBAC7HS,gBAAgBhC,iBAAiBmC,cAAc,EAAE;oBACnD;oBAEA,IAAI,CAACJ,cAAcP,QAAQ;wBACzB;oBACF;oBAEA,MAAMY,aAAyB;wBAC7BC,KAAK;wBACLC,UAAU;wBACVC,QAAQ;wBACRC,KAAK;oBACP;oBAEAV,OAAOW,eAAe,CAAC5B,gCAAgC;wBACrD6B,QAAQN;wBACRJ;wBACAW,MAAMZ;oBACR;gBACF,OAAO;oBACL,cAAc;oBACdD,OAAOW,eAAe,CAAC/B,qBAAqB;gBAC9C;YACF;YACAkC,OAAO;QACT;KACD;CACF;AAED,MAAMC,oBAAgE,CAACC;IACrE,OAAO;QACLC,oBAAoBD;QACpBE,SAAS,IAAO,CAAA;gBACdD,oBAAoBD;gBACpBG,sBAAsB;oBAAC3C;iBAAwB;gBAC/C4C,OAAO;oBAACzC;oBAAUF;iBAAa;gBAC/B4C,SAAS;oBACP;wBACEC,WAAWrC;wBACXsC,UAAU;oBACZ;oBACA;wBACED,WAAWzC;wBACX0C,UAAU;oBACZ;oBACA;wBACED,WAAWxC;wBACXyC,UAAU;oBACZ;oBACA;wBACED,WAAWtC;wBACXuC,UAAU;oBACZ;iBACD;gBACDC,cAAc;oBACZC,QAAQvC;gBACV;gBACAwC,eAAe;oBACbD,QAAQvC;gBACV;YACF,CAAA;IACF;AACF;AAEA,OAAO,MAAMyC,6BAA6BrD,sBAAsByC,mBAAkB"}
@@ -1,6 +1,5 @@
1
- import type { I18n } from '@payloadcms/translations';
2
1
  import type { SanitizedConfig } from 'payload/config';
3
- import type { FieldWithRichTextRequiredEditor } from 'payload/types';
2
+ import type { Field } from 'payload/types';
4
3
  import type { FeatureProviderProviderServer } from '../types.js';
5
4
  import type { ClientProps } from './feature.client.js';
6
5
  export type ExclusiveLinkCollectionsProps = {
@@ -25,9 +24,15 @@ export type LinkFeatureServerProps = ExclusiveLinkCollectionsProps & {
25
24
  */
26
25
  fields?: ((args: {
27
26
  config: SanitizedConfig;
28
- defaultFields: FieldWithRichTextRequiredEditor[];
29
- i18n: I18n;
30
- }) => FieldWithRichTextRequiredEditor[]) | FieldWithRichTextRequiredEditor[];
27
+ defaultFields: Field[];
28
+ }) => Field[]) | Field[];
29
+ /**
30
+ * Sets a maximum population depth for the internal doc default field of link, regardless of the remaining depth when the field is reached.
31
+ * This behaves exactly like the maxDepth properties of relationship and upload fields.
32
+ *
33
+ * {@link https://payloadcms.com/docs/getting-started/concepts#field-level-max-depth}
34
+ */
35
+ maxDepth?: number;
31
36
  };
32
37
  export declare const LinkFeature: FeatureProviderProviderServer<LinkFeatureServerProps, ClientProps>;
33
38
  //# sourceMappingURL=feature.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/field/features/link/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAA;AAGpE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAUtD,MAAM,MAAM,6BAA6B,GACrC;IACE;;;QAGI;IACJ,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAG9B,kBAAkB,CAAC,EAAE,KAAK,CAAA;CAC3B,GACD;IAEE,mBAAmB,CAAC,EAAE,KAAK,CAAA;IAE3B;;;QAGI;IACJ,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B,CAAA;AAEL,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,GAAG;IACnE;;;OAGG;IACH,MAAM,CAAC,EACH,CAAC,CAAC,IAAI,EAAE;QACN,MAAM,EAAE,eAAe,CAAA;QACvB,aAAa,EAAE,+BAA+B,EAAE,CAAA;QAChD,IAAI,EAAE,IAAI,CAAA;KACX,KAAK,+BAA+B,EAAE,CAAC,GACxC,+BAA+B,EAAE,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,6BAA6B,CAAC,sBAAsB,EAAE,WAAW,CA8F1F,CAAA"}
1
+ {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../../src/field/features/link/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAM1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAatD,MAAM,MAAM,6BAA6B,GACrC;IACE;;;QAGI;IACJ,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAG9B,kBAAkB,CAAC,EAAE,KAAK,CAAA;CAC3B,GACD;IAEE,mBAAmB,CAAC,EAAE,KAAK,CAAA;IAE3B;;;QAGI;IACJ,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B,CAAA;AAEL,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,GAAG;IACnE;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,eAAe,CAAC;QAAC,aAAa,EAAE,KAAK,EAAE,CAAA;KAAE,KAAK,KAAK,EAAE,CAAC,GAAG,KAAK,EAAE,CAAA;IAC3F;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,6BAA6B,CAAC,sBAAsB,EAAE,WAAW,CAwI1F,CAAA"}
@@ -1,28 +1,60 @@
1
+ import { traverseFields } from '@payloadcms/ui/utilities/buildFieldSchemaMap/traverseFields';
2
+ import { sanitizeFields } from 'payload/config';
3
+ import { deepCopyObject } from 'payload/utilities';
1
4
  import { convertLexicalNodesToHTML } from '../converters/html/converter/index.js';
5
+ import { createNode } from '../typeUtilities.js';
2
6
  import { LinkFeatureClientComponent } from './feature.client.js';
7
+ import { i18n } from './i18n.js';
8
+ import { LinkMarkdownTransformer } from './markdownTransformer.js';
3
9
  import { AutoLinkNode } from './nodes/AutoLinkNode.js';
4
10
  import { LinkNode } from './nodes/LinkNode.js';
5
11
  import { transformExtraFields } from './plugins/floatingLinkEditor/utilities.js';
6
12
  import { linkPopulationPromiseHOC } from './populationPromise.js';
13
+ import { linkValidation } from './validate.js';
7
14
  export const LinkFeature = (props)=>{
8
15
  if (!props) {
9
16
  props = {};
10
17
  }
11
18
  return {
12
- feature: ()=>{
19
+ feature: async ({ config: _config, isRoot })=>{
20
+ const validRelationships = _config.collections.map((c)=>c.slug) || [];
21
+ const _transformedFields = transformExtraFields(deepCopyObject(props.fields), _config, props.enabledCollections, props.disabledCollections, props.maxDepth);
22
+ const sanitizedFields = await sanitizeFields({
23
+ config: _config,
24
+ fields: _transformedFields,
25
+ requireFieldLevelRichTextEditor: isRoot,
26
+ validRelationships
27
+ });
28
+ props.fields = sanitizedFields;
13
29
  return {
14
30
  ClientComponent: LinkFeatureClientComponent,
15
31
  clientFeatureProps: {
16
32
  disabledCollections: props.disabledCollections,
17
33
  enabledCollections: props.enabledCollections
18
34
  },
19
- generateSchemaMap: ({ config, i18n, props })=>{
20
- return {
21
- fields: transformExtraFields(props.fields, config, i18n, props.enabledCollections, props.disabledCollections)
22
- };
35
+ generateSchemaMap: ({ config, i18n })=>{
36
+ if (!sanitizedFields || !Array.isArray(sanitizedFields) || sanitizedFields.length === 0) {
37
+ return null;
38
+ }
39
+ const schemaMap = new Map();
40
+ const validRelationships = config.collections.map((c)=>c.slug) || [];
41
+ schemaMap.set('fields', sanitizedFields);
42
+ traverseFields({
43
+ config,
44
+ fields: sanitizedFields,
45
+ i18n,
46
+ schemaMap,
47
+ schemaPath: 'fields',
48
+ validRelationships
49
+ });
50
+ return schemaMap;
23
51
  },
52
+ i18n,
53
+ markdownTransformers: [
54
+ LinkMarkdownTransformer
55
+ ],
24
56
  nodes: [
25
- {
57
+ createNode({
26
58
  converters: {
27
59
  html: {
28
60
  converter: async ({ converters, node, parent, payload })=>{
@@ -36,23 +68,34 @@ export const LinkFeature = (props)=>{
36
68
  payload
37
69
  });
38
70
  const rel = node.fields.newTab ? ' rel="noopener noreferrer"' : '';
71
+ const target = node.fields.newTab ? ' target="_blank"' : '';
39
72
  let href = node.fields.url;
40
73
  if (node.fields.linkType === 'internal') {
41
74
  href = typeof node.fields.doc?.value === 'string' ? node.fields.doc?.value : node.fields.doc?.value?.id;
42
75
  }
43
- return `<a href="${href}"${rel}>${childrenText}</a>`;
76
+ return `<a href="${href}"${target}${rel}>${childrenText}</a>`;
44
77
  },
45
78
  nodeTypes: [
46
79
  AutoLinkNode.getType()
47
80
  ]
48
81
  }
49
82
  },
83
+ hooks: {
84
+ afterRead: [
85
+ ({ node })=>{
86
+ return node;
87
+ }
88
+ ]
89
+ },
50
90
  node: AutoLinkNode,
51
91
  populationPromises: [
52
92
  linkPopulationPromiseHOC(props)
93
+ ],
94
+ validations: [
95
+ linkValidation(props)
53
96
  ]
54
- },
55
- {
97
+ }),
98
+ createNode({
56
99
  converters: {
57
100
  html: {
58
101
  converter: async ({ converters, node, parent, payload })=>{
@@ -66,8 +109,9 @@ export const LinkFeature = (props)=>{
66
109
  payload
67
110
  });
68
111
  const rel = node.fields.newTab ? ' rel="noopener noreferrer"' : '';
112
+ const target = node.fields.newTab ? ' target="_blank"' : '';
69
113
  const href = node.fields.linkType === 'custom' ? node.fields.url : node.fields.doc?.value;
70
- return `<a href="${href}"${rel}>${childrenText}</a>`;
114
+ return `<a href="${href}"${target}${rel}>${childrenText}</a>`;
71
115
  },
72
116
  nodeTypes: [
73
117
  LinkNode.getType()
@@ -77,8 +121,11 @@ export const LinkFeature = (props)=>{
77
121
  node: LinkNode,
78
122
  populationPromises: [
79
123
  linkPopulationPromiseHOC(props)
124
+ ],
125
+ validations: [
126
+ linkValidation(props)
80
127
  ]
81
- }
128
+ })
82
129
  ],
83
130
  serverFeatureProps: props
84
131
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/field/features/link/feature.server.ts"],"sourcesContent":["import type { I18n } from '@payloadcms/translations'\nimport type { SanitizedConfig } from 'payload/config'\nimport type { FieldWithRichTextRequiredEditor } from 'payload/types'\n\nimport type { HTMLConverter } from '../converters/html/converter/types.js'\nimport type { FeatureProviderProviderServer } from '../types.js'\nimport type { ClientProps } from './feature.client.js'\nimport type { SerializedAutoLinkNode, SerializedLinkNode } from './nodes/types.js'\n\nimport { convertLexicalNodesToHTML } from '../converters/html/converter/index.js'\nimport { LinkFeatureClientComponent } from './feature.client.js'\nimport { AutoLinkNode } from './nodes/AutoLinkNode.js'\nimport { LinkNode } from './nodes/LinkNode.js'\nimport { transformExtraFields } from './plugins/floatingLinkEditor/utilities.js'\nimport { linkPopulationPromiseHOC } from './populationPromise.js'\n\nexport type ExclusiveLinkCollectionsProps =\n | {\n /**\n * The collections that should be disabled for internal linking. Overrides the `enableRichTextLink` property in the collection config.\n * When this property is set, `enabledCollections` will not be available.\n **/\n disabledCollections?: string[]\n\n // Ensures that enabledCollections is not available when disabledCollections is set\n enabledCollections?: never\n }\n | {\n // Ensures that disabledCollections is not available when enabledCollections is set\n disabledCollections?: never\n\n /**\n * The collections that should be enabled for internal linking. Overrides the `enableRichTextLink` property in the collection config\n * When this property is set, `disabledCollections` will not be available.\n **/\n enabledCollections?: string[]\n }\n\nexport type LinkFeatureServerProps = ExclusiveLinkCollectionsProps & {\n /**\n * A function or array defining additional fields for the link feature. These will be\n * displayed in the link editor drawer.\n */\n fields?:\n | ((args: {\n config: SanitizedConfig\n defaultFields: FieldWithRichTextRequiredEditor[]\n i18n: I18n\n }) => FieldWithRichTextRequiredEditor[])\n | FieldWithRichTextRequiredEditor[]\n}\n\nexport const LinkFeature: FeatureProviderProviderServer<LinkFeatureServerProps, ClientProps> = (\n props,\n) => {\n if (!props) {\n props = {}\n }\n return {\n feature: () => {\n return {\n ClientComponent: LinkFeatureClientComponent,\n clientFeatureProps: {\n disabledCollections: props.disabledCollections,\n enabledCollections: props.enabledCollections,\n } as ExclusiveLinkCollectionsProps,\n generateSchemaMap: ({ config, i18n, props }) => {\n return {\n fields: transformExtraFields(\n props.fields,\n config,\n i18n,\n props.enabledCollections,\n props.disabledCollections,\n ),\n }\n },\n nodes: [\n {\n converters: {\n html: {\n converter: async ({ converters, node, parent, payload }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n payload,\n })\n\n const rel: string = node.fields.newTab ? ' rel=\"noopener noreferrer\"' : ''\n\n let href: string = node.fields.url\n if (node.fields.linkType === 'internal') {\n href =\n typeof node.fields.doc?.value === 'string'\n ? node.fields.doc?.value\n : node.fields.doc?.value?.id\n }\n\n return `<a href=\"${href}\"${rel}>${childrenText}</a>`\n },\n nodeTypes: [AutoLinkNode.getType()],\n } as HTMLConverter<SerializedAutoLinkNode>,\n },\n node: AutoLinkNode,\n populationPromises: [linkPopulationPromiseHOC(props)],\n },\n {\n converters: {\n html: {\n converter: async ({ converters, node, parent, payload }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n payload,\n })\n\n const rel: string = node.fields.newTab ? ' rel=\"noopener noreferrer\"' : ''\n\n const href: string =\n node.fields.linkType === 'custom'\n ? node.fields.url\n : (node.fields.doc?.value as string)\n\n return `<a href=\"${href}\"${rel}>${childrenText}</a>`\n },\n nodeTypes: [LinkNode.getType()],\n } as HTMLConverter<SerializedLinkNode>,\n },\n node: LinkNode,\n populationPromises: [linkPopulationPromiseHOC(props)],\n },\n ],\n serverFeatureProps: props,\n }\n },\n key: 'link',\n serverFeatureProps: props,\n }\n}\n"],"names":["convertLexicalNodesToHTML","LinkFeatureClientComponent","AutoLinkNode","LinkNode","transformExtraFields","linkPopulationPromiseHOC","LinkFeature","props","feature","ClientComponent","clientFeatureProps","disabledCollections","enabledCollections","generateSchemaMap","config","i18n","fields","nodes","converters","html","converter","node","parent","payload","childrenText","lexicalNodes","children","rel","newTab","href","url","linkType","doc","value","id","nodeTypes","getType","populationPromises","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AASA,SAASA,yBAAyB,QAAQ,wCAAuC;AACjF,SAASC,0BAA0B,QAAQ,sBAAqB;AAChE,SAASC,YAAY,QAAQ,0BAAyB;AACtD,SAASC,QAAQ,QAAQ,sBAAqB;AAC9C,SAASC,oBAAoB,QAAQ,4CAA2C;AAChF,SAASC,wBAAwB,QAAQ,yBAAwB;AAsCjE,OAAO,MAAMC,cAAkF,CAC7FC;IAEA,IAAI,CAACA,OAAO;QACVA,QAAQ,CAAC;IACX;IACA,OAAO;QACLC,SAAS;YACP,OAAO;gBACLC,iBAAiBR;gBACjBS,oBAAoB;oBAClBC,qBAAqBJ,MAAMI,mBAAmB;oBAC9CC,oBAAoBL,MAAMK,kBAAkB;gBAC9C;gBACAC,mBAAmB,CAAC,EAAEC,MAAM,EAAEC,IAAI,EAAER,KAAK,EAAE;oBACzC,OAAO;wBACLS,QAAQZ,qBACNG,MAAMS,MAAM,EACZF,QACAC,MACAR,MAAMK,kBAAkB,EACxBL,MAAMI,mBAAmB;oBAE7B;gBACF;gBACAM,OAAO;oBACL;wBACEC,YAAY;4BACVC,MAAM;gCACJC,WAAW,OAAO,EAAEF,UAAU,EAAEG,IAAI,EAAEC,MAAM,EAAEC,OAAO,EAAE;oCACrD,MAAMC,eAAe,MAAMxB,0BAA0B;wCACnDkB;wCACAO,cAAcJ,KAAKK,QAAQ;wCAC3BJ,QAAQ;4CACN,GAAGD,IAAI;4CACPC;wCACF;wCACAC;oCACF;oCAEA,MAAMI,MAAcN,KAAKL,MAAM,CAACY,MAAM,GAAG,+BAA+B;oCAExE,IAAIC,OAAeR,KAAKL,MAAM,CAACc,GAAG;oCAClC,IAAIT,KAAKL,MAAM,CAACe,QAAQ,KAAK,YAAY;wCACvCF,OACE,OAAOR,KAAKL,MAAM,CAACgB,GAAG,EAAEC,UAAU,WAC9BZ,KAAKL,MAAM,CAACgB,GAAG,EAAEC,QACjBZ,KAAKL,MAAM,CAACgB,GAAG,EAAEC,OAAOC;oCAChC;oCAEA,OAAO,CAAC,SAAS,EAAEL,KAAK,CAAC,EAAEF,IAAI,CAAC,EAAEH,aAAa,IAAI,CAAC;gCACtD;gCACAW,WAAW;oCAACjC,aAAakC,OAAO;iCAAG;4BACrC;wBACF;wBACAf,MAAMnB;wBACNmC,oBAAoB;4BAAChC,yBAAyBE;yBAAO;oBACvD;oBACA;wBACEW,YAAY;4BACVC,MAAM;gCACJC,WAAW,OAAO,EAAEF,UAAU,EAAEG,IAAI,EAAEC,MAAM,EAAEC,OAAO,EAAE;oCACrD,MAAMC,eAAe,MAAMxB,0BAA0B;wCACnDkB;wCACAO,cAAcJ,KAAKK,QAAQ;wCAC3BJ,QAAQ;4CACN,GAAGD,IAAI;4CACPC;wCACF;wCACAC;oCACF;oCAEA,MAAMI,MAAcN,KAAKL,MAAM,CAACY,MAAM,GAAG,+BAA+B;oCAExE,MAAMC,OACJR,KAAKL,MAAM,CAACe,QAAQ,KAAK,WACrBV,KAAKL,MAAM,CAACc,GAAG,GACdT,KAAKL,MAAM,CAACgB,GAAG,EAAEC;oCAExB,OAAO,CAAC,SAAS,EAAEJ,KAAK,CAAC,EAAEF,IAAI,CAAC,EAAEH,aAAa,IAAI,CAAC;gCACtD;gCACAW,WAAW;oCAAChC,SAASiC,OAAO;iCAAG;4BACjC;wBACF;wBACAf,MAAMlB;wBACNkC,oBAAoB;4BAAChC,yBAAyBE;yBAAO;oBACvD;iBACD;gBACD+B,oBAAoB/B;YACtB;QACF;QACAgC,KAAK;QACLD,oBAAoB/B;IACtB;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../../src/field/features/link/feature.server.ts"],"sourcesContent":["import type { Config, SanitizedConfig } from 'payload/config'\nimport type { Field } from 'payload/types'\n\nimport { traverseFields } from '@payloadcms/ui/utilities/buildFieldSchemaMap/traverseFields'\nimport { sanitizeFields } from 'payload/config'\nimport { deepCopyObject } from 'payload/utilities'\n\nimport type { FeatureProviderProviderServer } from '../types.js'\nimport type { ClientProps } from './feature.client.js'\n\nimport { convertLexicalNodesToHTML } from '../converters/html/converter/index.js'\nimport { createNode } from '../typeUtilities.js'\nimport { LinkFeatureClientComponent } from './feature.client.js'\nimport { i18n } from './i18n.js'\nimport { LinkMarkdownTransformer } from './markdownTransformer.js'\nimport { AutoLinkNode } from './nodes/AutoLinkNode.js'\nimport { LinkNode } from './nodes/LinkNode.js'\nimport { transformExtraFields } from './plugins/floatingLinkEditor/utilities.js'\nimport { linkPopulationPromiseHOC } from './populationPromise.js'\nimport { linkValidation } from './validate.js'\n\nexport type ExclusiveLinkCollectionsProps =\n | {\n /**\n * The collections that should be disabled for internal linking. Overrides the `enableRichTextLink` property in the collection config.\n * When this property is set, `enabledCollections` will not be available.\n **/\n disabledCollections?: string[]\n\n // Ensures that enabledCollections is not available when disabledCollections is set\n enabledCollections?: never\n }\n | {\n // Ensures that disabledCollections is not available when enabledCollections is set\n disabledCollections?: never\n\n /**\n * The collections that should be enabled for internal linking. Overrides the `enableRichTextLink` property in the collection config\n * When this property is set, `disabledCollections` will not be available.\n **/\n enabledCollections?: string[]\n }\n\nexport type LinkFeatureServerProps = ExclusiveLinkCollectionsProps & {\n /**\n * A function or array defining additional fields for the link feature. These will be\n * displayed in the link editor drawer.\n */\n fields?: ((args: { config: SanitizedConfig; defaultFields: Field[] }) => Field[]) | Field[]\n /**\n * Sets a maximum population depth for the internal doc default field of link, regardless of the remaining depth when the field is reached.\n * This behaves exactly like the maxDepth properties of relationship and upload fields.\n *\n * {@link https://payloadcms.com/docs/getting-started/concepts#field-level-max-depth}\n */\n maxDepth?: number\n}\n\nexport const LinkFeature: FeatureProviderProviderServer<LinkFeatureServerProps, ClientProps> = (\n props,\n) => {\n if (!props) {\n props = {}\n }\n return {\n feature: async ({ config: _config, isRoot }) => {\n const validRelationships = _config.collections.map((c) => c.slug) || []\n\n const _transformedFields = transformExtraFields(\n deepCopyObject(props.fields),\n _config,\n props.enabledCollections,\n props.disabledCollections,\n props.maxDepth,\n )\n\n const sanitizedFields = await sanitizeFields({\n config: _config as unknown as Config,\n fields: _transformedFields,\n requireFieldLevelRichTextEditor: isRoot,\n validRelationships,\n })\n props.fields = sanitizedFields\n\n return {\n ClientComponent: LinkFeatureClientComponent,\n clientFeatureProps: {\n disabledCollections: props.disabledCollections,\n enabledCollections: props.enabledCollections,\n } as ExclusiveLinkCollectionsProps,\n generateSchemaMap: ({ config, i18n }) => {\n if (!sanitizedFields || !Array.isArray(sanitizedFields) || sanitizedFields.length === 0) {\n return null\n }\n\n const schemaMap = new Map<string, Field[]>()\n\n const validRelationships = config.collections.map((c) => c.slug) || []\n\n schemaMap.set('fields', sanitizedFields)\n\n traverseFields({\n config,\n fields: sanitizedFields,\n i18n,\n schemaMap,\n schemaPath: 'fields',\n validRelationships,\n })\n\n return schemaMap\n },\n i18n,\n markdownTransformers: [LinkMarkdownTransformer],\n nodes: [\n createNode({\n converters: {\n html: {\n converter: async ({ converters, node, parent, payload }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n payload,\n })\n\n const rel: string = node.fields.newTab ? ' rel=\"noopener noreferrer\"' : ''\n const target: string = node.fields.newTab ? ' target=\"_blank\"' : ''\n\n let href: string = node.fields.url\n if (node.fields.linkType === 'internal') {\n href =\n typeof node.fields.doc?.value === 'string'\n ? node.fields.doc?.value\n : node.fields.doc?.value?.id\n }\n\n return `<a href=\"${href}\"${target}${rel}>${childrenText}</a>`\n },\n nodeTypes: [AutoLinkNode.getType()],\n },\n },\n hooks: {\n afterRead: [\n ({ node }) => {\n return node\n },\n ],\n },\n node: AutoLinkNode,\n populationPromises: [linkPopulationPromiseHOC(props)],\n validations: [linkValidation(props)],\n }),\n createNode({\n converters: {\n html: {\n converter: async ({ converters, node, parent, payload }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n payload,\n })\n\n const rel: string = node.fields.newTab ? ' rel=\"noopener noreferrer\"' : ''\n const target: string = node.fields.newTab ? ' target=\"_blank\"' : ''\n\n const href: string =\n node.fields.linkType === 'custom'\n ? node.fields.url\n : (node.fields.doc?.value as string)\n\n return `<a href=\"${href}\"${target}${rel}>${childrenText}</a>`\n },\n nodeTypes: [LinkNode.getType()],\n },\n },\n node: LinkNode,\n populationPromises: [linkPopulationPromiseHOC(props)],\n validations: [linkValidation(props)],\n }),\n ],\n serverFeatureProps: props,\n }\n },\n key: 'link',\n serverFeatureProps: props,\n }\n}\n"],"names":["traverseFields","sanitizeFields","deepCopyObject","convertLexicalNodesToHTML","createNode","LinkFeatureClientComponent","i18n","LinkMarkdownTransformer","AutoLinkNode","LinkNode","transformExtraFields","linkPopulationPromiseHOC","linkValidation","LinkFeature","props","feature","config","_config","isRoot","validRelationships","collections","map","c","slug","_transformedFields","fields","enabledCollections","disabledCollections","maxDepth","sanitizedFields","requireFieldLevelRichTextEditor","ClientComponent","clientFeatureProps","generateSchemaMap","Array","isArray","length","schemaMap","Map","set","schemaPath","markdownTransformers","nodes","converters","html","converter","node","parent","payload","childrenText","lexicalNodes","children","rel","newTab","target","href","url","linkType","doc","value","id","nodeTypes","getType","hooks","afterRead","populationPromises","validations","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAGA,SAASA,cAAc,QAAQ,8DAA6D;AAC5F,SAASC,cAAc,QAAQ,iBAAgB;AAC/C,SAASC,cAAc,QAAQ,oBAAmB;AAKlD,SAASC,yBAAyB,QAAQ,wCAAuC;AACjF,SAASC,UAAU,QAAQ,sBAAqB;AAChD,SAASC,0BAA0B,QAAQ,sBAAqB;AAChE,SAASC,IAAI,QAAQ,YAAW;AAChC,SAASC,uBAAuB,QAAQ,2BAA0B;AAClE,SAASC,YAAY,QAAQ,0BAAyB;AACtD,SAASC,QAAQ,QAAQ,sBAAqB;AAC9C,SAASC,oBAAoB,QAAQ,4CAA2C;AAChF,SAASC,wBAAwB,QAAQ,yBAAwB;AACjE,SAASC,cAAc,QAAQ,gBAAe;AAuC9C,OAAO,MAAMC,cAAkF,CAC7FC;IAEA,IAAI,CAACA,OAAO;QACVA,QAAQ,CAAC;IACX;IACA,OAAO;QACLC,SAAS,OAAO,EAAEC,QAAQC,OAAO,EAAEC,MAAM,EAAE;YACzC,MAAMC,qBAAqBF,QAAQG,WAAW,CAACC,GAAG,CAAC,CAACC,IAAMA,EAAEC,IAAI,KAAK,EAAE;YAEvE,MAAMC,qBAAqBd,qBACzBR,eAAeY,MAAMW,MAAM,GAC3BR,SACAH,MAAMY,kBAAkB,EACxBZ,MAAMa,mBAAmB,EACzBb,MAAMc,QAAQ;YAGhB,MAAMC,kBAAkB,MAAM5B,eAAe;gBAC3Ce,QAAQC;gBACRQ,QAAQD;gBACRM,iCAAiCZ;gBACjCC;YACF;YACAL,MAAMW,MAAM,GAAGI;YAEf,OAAO;gBACLE,iBAAiB1B;gBACjB2B,oBAAoB;oBAClBL,qBAAqBb,MAAMa,mBAAmB;oBAC9CD,oBAAoBZ,MAAMY,kBAAkB;gBAC9C;gBACAO,mBAAmB,CAAC,EAAEjB,MAAM,EAAEV,IAAI,EAAE;oBAClC,IAAI,CAACuB,mBAAmB,CAACK,MAAMC,OAAO,CAACN,oBAAoBA,gBAAgBO,MAAM,KAAK,GAAG;wBACvF,OAAO;oBACT;oBAEA,MAAMC,YAAY,IAAIC;oBAEtB,MAAMnB,qBAAqBH,OAAOI,WAAW,CAACC,GAAG,CAAC,CAACC,IAAMA,EAAEC,IAAI,KAAK,EAAE;oBAEtEc,UAAUE,GAAG,CAAC,UAAUV;oBAExB7B,eAAe;wBACbgB;wBACAS,QAAQI;wBACRvB;wBACA+B;wBACAG,YAAY;wBACZrB;oBACF;oBAEA,OAAOkB;gBACT;gBACA/B;gBACAmC,sBAAsB;oBAAClC;iBAAwB;gBAC/CmC,OAAO;oBACLtC,WAAW;wBACTuC,YAAY;4BACVC,MAAM;gCACJC,WAAW,OAAO,EAAEF,UAAU,EAAEG,IAAI,EAAEC,MAAM,EAAEC,OAAO,EAAE;oCACrD,MAAMC,eAAe,MAAM9C,0BAA0B;wCACnDwC;wCACAO,cAAcJ,KAAKK,QAAQ;wCAC3BJ,QAAQ;4CACN,GAAGD,IAAI;4CACPC;wCACF;wCACAC;oCACF;oCAEA,MAAMI,MAAcN,KAAKrB,MAAM,CAAC4B,MAAM,GAAG,+BAA+B;oCACxE,MAAMC,SAAiBR,KAAKrB,MAAM,CAAC4B,MAAM,GAAG,qBAAqB;oCAEjE,IAAIE,OAAeT,KAAKrB,MAAM,CAAC+B,GAAG;oCAClC,IAAIV,KAAKrB,MAAM,CAACgC,QAAQ,KAAK,YAAY;wCACvCF,OACE,OAAOT,KAAKrB,MAAM,CAACiC,GAAG,EAAEC,UAAU,WAC9Bb,KAAKrB,MAAM,CAACiC,GAAG,EAAEC,QACjBb,KAAKrB,MAAM,CAACiC,GAAG,EAAEC,OAAOC;oCAChC;oCAEA,OAAO,CAAC,SAAS,EAAEL,KAAK,CAAC,EAAED,OAAO,EAAEF,IAAI,CAAC,EAAEH,aAAa,IAAI,CAAC;gCAC/D;gCACAY,WAAW;oCAACrD,aAAasD,OAAO;iCAAG;4BACrC;wBACF;wBACAC,OAAO;4BACLC,WAAW;gCACT,CAAC,EAAElB,IAAI,EAAE;oCACP,OAAOA;gCACT;6BACD;wBACH;wBACAA,MAAMtC;wBACNyD,oBAAoB;4BAACtD,yBAAyBG;yBAAO;wBACrDoD,aAAa;4BAACtD,eAAeE;yBAAO;oBACtC;oBACAV,WAAW;wBACTuC,YAAY;4BACVC,MAAM;gCACJC,WAAW,OAAO,EAAEF,UAAU,EAAEG,IAAI,EAAEC,MAAM,EAAEC,OAAO,EAAE;oCACrD,MAAMC,eAAe,MAAM9C,0BAA0B;wCACnDwC;wCACAO,cAAcJ,KAAKK,QAAQ;wCAC3BJ,QAAQ;4CACN,GAAGD,IAAI;4CACPC;wCACF;wCACAC;oCACF;oCAEA,MAAMI,MAAcN,KAAKrB,MAAM,CAAC4B,MAAM,GAAG,+BAA+B;oCACxE,MAAMC,SAAiBR,KAAKrB,MAAM,CAAC4B,MAAM,GAAG,qBAAqB;oCAEjE,MAAME,OACJT,KAAKrB,MAAM,CAACgC,QAAQ,KAAK,WACrBX,KAAKrB,MAAM,CAAC+B,GAAG,GACdV,KAAKrB,MAAM,CAACiC,GAAG,EAAEC;oCAExB,OAAO,CAAC,SAAS,EAAEJ,KAAK,CAAC,EAAED,OAAO,EAAEF,IAAI,CAAC,EAAEH,aAAa,IAAI,CAAC;gCAC/D;gCACAY,WAAW;oCAACpD,SAASqD,OAAO;iCAAG;4BACjC;wBACF;wBACAhB,MAAMrC;wBACNwD,oBAAoB;4BAACtD,yBAAyBG;yBAAO;wBACrDoD,aAAa;4BAACtD,eAAeE;yBAAO;oBACtC;iBACD;gBACDqD,oBAAoBrD;YACtB;QACF;QACAsD,KAAK;QACLD,oBAAoBrD;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/link/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAiG1C,CAAA"}
@@ -0,0 +1,100 @@
1
+ export const i18n = {
2
+ ar: {
3
+ label: 'رابط'
4
+ },
5
+ az: {
6
+ label: 'Keçid'
7
+ },
8
+ bg: {
9
+ label: 'Връзка'
10
+ },
11
+ cs: {
12
+ label: 'Odkaz'
13
+ },
14
+ de: {
15
+ label: 'Verknüpfung'
16
+ },
17
+ en: {
18
+ label: 'Link'
19
+ },
20
+ es: {
21
+ label: 'Enlace'
22
+ },
23
+ fa: {
24
+ label: 'پیوند'
25
+ },
26
+ fr: {
27
+ label: 'Lien'
28
+ },
29
+ he: {
30
+ label: 'קישור'
31
+ },
32
+ hr: {
33
+ label: 'Poveznica'
34
+ },
35
+ hu: {
36
+ label: 'Hivatkozás'
37
+ },
38
+ it: {
39
+ label: 'Collegamento'
40
+ },
41
+ ja: {
42
+ label: 'リンク'
43
+ },
44
+ ko: {
45
+ label: '링크'
46
+ },
47
+ my: {
48
+ label: 'လင့်'
49
+ },
50
+ nb: {
51
+ label: 'Lenke'
52
+ },
53
+ nl: {
54
+ label: 'Link'
55
+ },
56
+ pl: {
57
+ label: 'Łącze'
58
+ },
59
+ pt: {
60
+ label: 'Ligação'
61
+ },
62
+ ro: {
63
+ label: 'Legătură'
64
+ },
65
+ rs: {
66
+ label: 'Veza'
67
+ },
68
+ 'rs-latin': {
69
+ label: 'Veza'
70
+ },
71
+ ru: {
72
+ label: 'Ссылка'
73
+ },
74
+ sk: {
75
+ label: 'Odkaz'
76
+ },
77
+ sv: {
78
+ label: 'Länk'
79
+ },
80
+ th: {
81
+ label: 'ลิงค์'
82
+ },
83
+ tr: {
84
+ label: 'Bağlantı'
85
+ },
86
+ uk: {
87
+ label: 'Посилання'
88
+ },
89
+ vi: {
90
+ label: 'Liên kết'
91
+ },
92
+ zh: {
93
+ label: '链接'
94
+ },
95
+ 'zh-TW': {
96
+ label: '連結'
97
+ }
98
+ };
99
+
100
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/field/features/link/i18n.ts"],"sourcesContent":["import type { GenericLanguages } from '@payloadcms/translations'\n\nexport const i18n: Partial<GenericLanguages> = {\n ar: {\n label: 'رابط',\n },\n az: {\n label: 'Keçid',\n },\n bg: {\n label: 'Връзка',\n },\n cs: {\n label: 'Odkaz',\n },\n de: {\n label: 'Verknüpfung',\n },\n en: {\n label: 'Link',\n },\n es: {\n label: 'Enlace',\n },\n fa: {\n label: 'پیوند',\n },\n fr: {\n label: 'Lien',\n },\n he: {\n label: 'קישור',\n },\n hr: {\n label: 'Poveznica',\n },\n hu: {\n label: 'Hivatkozás',\n },\n it: {\n label: 'Collegamento',\n },\n ja: {\n label: 'リンク',\n },\n ko: {\n label: '링크',\n },\n my: {\n label: 'လင့်',\n },\n nb: {\n label: 'Lenke',\n },\n nl: {\n label: 'Link',\n },\n pl: {\n label: 'Łącze',\n },\n pt: {\n label: 'Ligação',\n },\n ro: {\n label: 'Legătură',\n },\n rs: {\n label: 'Veza',\n },\n 'rs-latin': {\n label: 'Veza',\n },\n ru: {\n label: 'Ссылка',\n },\n sk: {\n label: 'Odkaz',\n },\n sv: {\n label: 'Länk',\n },\n th: {\n label: 'ลิงค์',\n },\n tr: {\n label: 'Bağlantı',\n },\n uk: {\n label: 'Посилання',\n },\n vi: {\n label: 'Liên kết',\n },\n zh: {\n label: '链接',\n },\n 'zh-TW': {\n label: '連結',\n },\n}\n"],"names":["i18n","ar","label","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,OAAO;IACT;IACAC,IAAI;QACFD,OAAO;IACT;IACAE,IAAI;QACFF,OAAO;IACT;IACAG,IAAI;QACFH,OAAO;IACT;IACAI,IAAI;QACFJ,OAAO;IACT;IACAK,IAAI;QACFL,OAAO;IACT;IACAM,IAAI;QACFN,OAAO;IACT;IACAO,IAAI;QACFP,OAAO;IACT;IACAQ,IAAI;QACFR,OAAO;IACT;IACAS,IAAI;QACFT,OAAO;IACT;IACAU,IAAI;QACFV,OAAO;IACT;IACAW,IAAI;QACFX,OAAO;IACT;IACAY,IAAI;QACFZ,OAAO;IACT;IACAa,IAAI;QACFb,OAAO;IACT;IACAc,IAAI;QACFd,OAAO;IACT;IACAe,IAAI;QACFf,OAAO;IACT;IACAgB,IAAI;QACFhB,OAAO;IACT;IACAiB,IAAI;QACFjB,OAAO;IACT;IACAkB,IAAI;QACFlB,OAAO;IACT;IACAmB,IAAI;QACFnB,OAAO;IACT;IACAoB,IAAI;QACFpB,OAAO;IACT;IACAqB,IAAI;QACFrB,OAAO;IACT;IACA,YAAY;QACVA,OAAO;IACT;IACAsB,IAAI;QACFtB,OAAO;IACT;IACAuB,IAAI;QACFvB,OAAO;IACT;IACAwB,IAAI;QACFxB,OAAO;IACT;IACAyB,IAAI;QACFzB,OAAO;IACT;IACA0B,IAAI;QACF1B,OAAO;IACT;IACA2B,IAAI;QACF3B,OAAO;IACT;IACA4B,IAAI;QACF5B,OAAO;IACT;IACA6B,IAAI;QACF7B,OAAO;IACT;IACA,SAAS;QACPA,OAAO;IACT;AACF,EAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Code taken from https://github.com/facebook/lexical/blob/main/packages/lexical-markdown/src/MarkdownTransformers.ts#L357
3
+ */
4
+ import type { TextMatchTransformer } from '@lexical/markdown';
5
+ export declare const LinkMarkdownTransformer: TextMatchTransformer;
6
+ //# sourceMappingURL=markdownTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdownTransformer.d.ts","sourceRoot":"","sources":["../../../../src/field/features/link/markdownTransformer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAO7D,eAAO,MAAM,uBAAuB,EAAE,oBAqCrC,CAAA"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Code taken from https://github.com/facebook/lexical/blob/main/packages/lexical-markdown/src/MarkdownTransformers.ts#L357
3
+ */ // Order of text transformers matters:
4
+ //
5
+ // - code should go first as it prevents any transformations inside
6
+ import { $createTextNode, $isTextNode } from 'lexical';
7
+ import { $createLinkNode, $isLinkNode, LinkNode } from './nodes/LinkNode.js';
8
+ // - then longer tags match (e.g. ** or __ should go before * or _)
9
+ export const LinkMarkdownTransformer = {
10
+ type: 'text-match',
11
+ dependencies: [
12
+ LinkNode
13
+ ],
14
+ export: (_node, exportChildren, exportFormat)=>{
15
+ if (!$isLinkNode(_node)) {
16
+ return null;
17
+ }
18
+ const node = _node;
19
+ const { url } = node.getFields();
20
+ const linkContent = `[${node.getTextContent()}](${url})`;
21
+ const firstChild = node.getFirstChild();
22
+ // Add text styles only if link has single text node inside. If it's more
23
+ // then one we ignore it as markdown does not support nested styles for links
24
+ if (node.getChildrenSize() === 1 && $isTextNode(firstChild)) {
25
+ return exportFormat(firstChild, linkContent);
26
+ } else {
27
+ return linkContent;
28
+ }
29
+ },
30
+ importRegExp: /\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)/,
31
+ regExp: /\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)$/,
32
+ replace: (textNode, match)=>{
33
+ const [, linkText, linkUrl] = match;
34
+ const linkNode = $createLinkNode({
35
+ fields: {
36
+ doc: null,
37
+ linkType: 'custom',
38
+ newTab: false,
39
+ url: linkUrl
40
+ }
41
+ });
42
+ const linkTextNode = $createTextNode(linkText);
43
+ linkTextNode.setFormat(textNode.getFormat());
44
+ linkNode.append(linkTextNode);
45
+ textNode.replace(linkNode);
46
+ },
47
+ trigger: ')'
48
+ };
49
+
50
+ //# sourceMappingURL=markdownTransformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/field/features/link/markdownTransformer.ts"],"sourcesContent":["/**\n * Code taken from https://github.com/facebook/lexical/blob/main/packages/lexical-markdown/src/MarkdownTransformers.ts#L357\n */\n\n// Order of text transformers matters:\n//\n// - code should go first as it prevents any transformations inside\n\nimport type { TextMatchTransformer } from '@lexical/markdown'\n\nimport { $createTextNode, $isTextNode } from 'lexical'\n\nimport { $createLinkNode, $isLinkNode, LinkNode } from './nodes/LinkNode.js'\n\n// - then longer tags match (e.g. ** or __ should go before * or _)\nexport const LinkMarkdownTransformer: TextMatchTransformer = {\n type: 'text-match',\n dependencies: [LinkNode],\n export: (_node, exportChildren, exportFormat) => {\n if (!$isLinkNode(_node)) {\n return null\n }\n const node: LinkNode = _node\n const { url } = node.getFields()\n const linkContent = `[${node.getTextContent()}](${url})`\n const firstChild = node.getFirstChild()\n // Add text styles only if link has single text node inside. If it's more\n // then one we ignore it as markdown does not support nested styles for links\n if (node.getChildrenSize() === 1 && $isTextNode(firstChild)) {\n return exportFormat(firstChild, linkContent)\n } else {\n return linkContent\n }\n },\n importRegExp: /\\[([^[]+)\\]\\(([^()\\s]+)(?:\\s\"((?:[^\"]*\\\\\")*[^\"]*)\"\\s*)?\\)/,\n regExp: /\\[([^[]+)\\]\\(([^()\\s]+)(?:\\s\"((?:[^\"]*\\\\\")*[^\"]*)\"\\s*)?\\)$/,\n replace: (textNode, match) => {\n const [, linkText, linkUrl] = match\n const linkNode = $createLinkNode({\n fields: {\n doc: null,\n linkType: 'custom',\n newTab: false,\n url: linkUrl,\n },\n })\n const linkTextNode = $createTextNode(linkText)\n linkTextNode.setFormat(textNode.getFormat())\n linkNode.append(linkTextNode)\n textNode.replace(linkNode)\n },\n trigger: ')',\n}\n"],"names":["$createTextNode","$isTextNode","$createLinkNode","$isLinkNode","LinkNode","LinkMarkdownTransformer","type","dependencies","export","_node","exportChildren","exportFormat","node","url","getFields","linkContent","getTextContent","firstChild","getFirstChild","getChildrenSize","importRegExp","regExp","replace","textNode","match","linkText","linkUrl","linkNode","fields","doc","linkType","newTab","linkTextNode","setFormat","getFormat","append","trigger"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;;CAEC,GAED,sCAAsC;AACtC,EAAE;AACF,mEAAmE;AAInE,SAASA,eAAe,EAAEC,WAAW,QAAQ,UAAS;AAEtD,SAASC,eAAe,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,sBAAqB;AAE5E,mEAAmE;AACnE,OAAO,MAAMC,0BAAgD;IAC3DC,MAAM;IACNC,cAAc;QAACH;KAAS;IACxBI,QAAQ,CAACC,OAAOC,gBAAgBC;QAC9B,IAAI,CAACR,YAAYM,QAAQ;YACvB,OAAO;QACT;QACA,MAAMG,OAAiBH;QACvB,MAAM,EAAEI,GAAG,EAAE,GAAGD,KAAKE,SAAS;QAC9B,MAAMC,cAAc,CAAC,CAAC,EAAEH,KAAKI,cAAc,GAAG,EAAE,EAAEH,IAAI,CAAC,CAAC;QACxD,MAAMI,aAAaL,KAAKM,aAAa;QACrC,yEAAyE;QACzE,6EAA6E;QAC7E,IAAIN,KAAKO,eAAe,OAAO,KAAKlB,YAAYgB,aAAa;YAC3D,OAAON,aAAaM,YAAYF;QAClC,OAAO;YACL,OAAOA;QACT;IACF;IACAK,cAAc;IACdC,QAAQ;IACRC,SAAS,CAACC,UAAUC;QAClB,MAAM,GAAGC,UAAUC,QAAQ,GAAGF;QAC9B,MAAMG,WAAWzB,gBAAgB;YAC/B0B,QAAQ;gBACNC,KAAK;gBACLC,UAAU;gBACVC,QAAQ;gBACRlB,KAAKa;YACP;QACF;QACA,MAAMM,eAAehC,gBAAgByB;QACrCO,aAAaC,SAAS,CAACV,SAASW,SAAS;QACzCP,SAASQ,MAAM,CAACH;QAChBT,SAASD,OAAO,CAACK;IACnB;IACAS,SAAS;AACX,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/link/nodes/AutoLinkNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAKvE,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAKxC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY;IAI9C,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,SAAS,IAAI,IAAI;IAKxB,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,sBAAsB,GAAG,YAAY;IAkBvE,UAAU,IAAI,sBAAsB;IAQpC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE,gBAAgB,UAAO,GAAG,WAAW,GAAG,IAAI;CASvF;AAED,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,GAAG,YAAY,CAEpF;AACD,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,YAAY,CAE1F"}
1
+ {"version":3,"file":"AutoLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/field/features/link/nodes/AutoLinkNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIvE,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAKxC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY;IAI9C,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,SAAS,IAAI,IAAI;IAKxB,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,sBAAsB,GAAG,YAAY;IAkBvE,UAAU,IAAI,sBAAsB;IAQpC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE,gBAAgB,UAAO,GAAG,WAAW,GAAG,IAAI;CASvF;AAED,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,GAAG,YAAY,CAEpF;AACD,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,YAAY,CAE1F"}
@@ -1,5 +1,4 @@
1
- import lexicalImport from 'lexical';
2
- const { $applyNodeReplacement, $isElementNode } = lexicalImport;
1
+ import { $applyNodeReplacement, $isElementNode } from 'lexical';
3
2
  import { LinkNode } from './LinkNode.js';
4
3
  // Custom node type to override `canInsertTextAfter` that will
5
4
  // allow typing within the link