@payloadcms/richtext-lexical 3.0.0-beta.53 → 3.0.0-beta.54

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 (677) hide show
  1. package/dist/cell/index.d.ts.map +1 -1
  2. package/dist/cell/index.js +1 -1
  3. package/dist/cell/index.js.map +1 -1
  4. package/dist/exports/client/Field-XBUN6QOM.js +2 -0
  5. package/dist/exports/client/Field-XBUN6QOM.js.map +7 -0
  6. package/dist/exports/client/chunk-JIP5PWU3.js +2 -0
  7. package/dist/exports/client/chunk-JIP5PWU3.js.map +7 -0
  8. package/dist/exports/client/{chunk-QU5MKT75.js → chunk-TZLHAUCW.js} +2 -2
  9. package/dist/exports/client/{component-E2NHAHBC.js → component-CEUVAHRO.js} +2 -2
  10. package/dist/exports/client/component-CEUVAHRO.js.map +7 -0
  11. package/dist/exports/client/component-PEFMKIXI.js +2 -0
  12. package/dist/exports/client/component-PEFMKIXI.js.map +7 -0
  13. package/dist/exports/client/index.d.ts +36 -27
  14. package/dist/exports/client/index.d.ts.map +1 -1
  15. package/dist/exports/client/index.js +7 -5
  16. package/dist/exports/client/index.js.map +4 -4
  17. package/dist/features/align/feature.client.d.ts +1 -2
  18. package/dist/features/align/feature.client.d.ts.map +1 -1
  19. package/dist/features/align/feature.client.js +9 -16
  20. package/dist/features/align/feature.client.js.map +1 -1
  21. package/dist/features/align/feature.server.d.ts +1 -2
  22. package/dist/features/align/feature.server.d.ts.map +1 -1
  23. package/dist/features/align/feature.server.js +9 -15
  24. package/dist/features/align/feature.server.js.map +1 -1
  25. package/dist/features/align/i18n.js.map +1 -1
  26. package/dist/features/align/toolbarAlignGroup.js.map +1 -1
  27. package/dist/features/blockquote/feature.client.d.ts +1 -2
  28. package/dist/features/blockquote/feature.client.d.ts.map +1 -1
  29. package/dist/features/blockquote/feature.client.js +37 -44
  30. package/dist/features/blockquote/feature.client.js.map +1 -1
  31. package/dist/features/blockquote/feature.server.d.ts +1 -2
  32. package/dist/features/blockquote/feature.server.d.ts.map +1 -1
  33. package/dist/features/blockquote/feature.server.js +35 -40
  34. package/dist/features/blockquote/feature.server.js.map +1 -1
  35. package/dist/features/blockquote/i18n.js.map +1 -1
  36. package/dist/features/blockquote/markdownTransformer.js.map +1 -1
  37. package/dist/features/blocks/component/BlockContent.js +2 -2
  38. package/dist/features/blocks/component/BlockContent.js.map +1 -1
  39. package/dist/features/blocks/component/FormSavePlugin.js.map +1 -1
  40. package/dist/features/blocks/component/index.js +1 -1
  41. package/dist/features/blocks/component/index.js.map +1 -1
  42. package/dist/features/blocks/component/removeEmptyArrayValues.js.map +1 -1
  43. package/dist/features/blocks/drawer/index.js +1 -1
  44. package/dist/features/blocks/drawer/index.js.map +1 -1
  45. package/dist/features/blocks/feature.client.d.ts +1 -2
  46. package/dist/features/blocks/feature.client.d.ts.map +1 -1
  47. package/dist/features/blocks/feature.client.js +74 -80
  48. package/dist/features/blocks/feature.client.js.map +1 -1
  49. package/dist/features/blocks/feature.server.d.ts +1 -2
  50. package/dist/features/blocks/feature.server.d.ts.map +1 -1
  51. package/dist/features/blocks/feature.server.js +88 -90
  52. package/dist/features/blocks/feature.server.js.map +1 -1
  53. package/dist/features/blocks/graphQLPopulationPromise.d.ts +1 -1
  54. package/dist/features/blocks/graphQLPopulationPromise.d.ts.map +1 -1
  55. package/dist/features/blocks/graphQLPopulationPromise.js.map +1 -1
  56. package/dist/features/blocks/i18n.js.map +1 -1
  57. package/dist/features/blocks/nodes/BlocksNode.js.map +1 -1
  58. package/dist/features/blocks/plugin/commands.js.map +1 -1
  59. package/dist/features/blocks/plugin/index.d.ts +1 -1
  60. package/dist/features/blocks/plugin/index.d.ts.map +1 -1
  61. package/dist/features/blocks/plugin/index.js.map +1 -1
  62. package/dist/features/blocks/validate.d.ts +1 -1
  63. package/dist/features/blocks/validate.d.ts.map +1 -1
  64. package/dist/features/blocks/validate.js.map +1 -1
  65. package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -1
  66. package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -1
  67. package/dist/features/converters/html/converter/converters/text.js.map +1 -1
  68. package/dist/features/converters/html/converter/defaultConverters.js.map +1 -1
  69. package/dist/features/converters/html/converter/index.js.map +1 -1
  70. package/dist/features/converters/html/converter/types.js.map +1 -1
  71. package/dist/features/converters/html/feature.server.d.ts +1 -2
  72. package/dist/features/converters/html/feature.server.d.ts.map +1 -1
  73. package/dist/features/converters/html/feature.server.js +6 -12
  74. package/dist/features/converters/html/feature.server.js.map +1 -1
  75. package/dist/features/converters/html/field/index.js +1 -1
  76. package/dist/features/converters/html/field/index.js.map +1 -1
  77. package/dist/features/createClientComponent.d.ts +3 -2
  78. package/dist/features/createClientComponent.d.ts.map +1 -1
  79. package/dist/features/createClientComponent.js.map +1 -1
  80. package/dist/features/createFeaturePropComponent.d.ts.map +1 -1
  81. package/dist/features/createFeaturePropComponent.js.map +1 -1
  82. package/dist/features/debug/testRecorder/feature.client.d.ts +1 -2
  83. package/dist/features/debug/testRecorder/feature.client.d.ts.map +1 -1
  84. package/dist/features/debug/testRecorder/feature.client.js +9 -16
  85. package/dist/features/debug/testRecorder/feature.client.js.map +1 -1
  86. package/dist/features/debug/testRecorder/feature.server.d.ts +1 -2
  87. package/dist/features/debug/testRecorder/feature.server.d.ts.map +1 -1
  88. package/dist/features/debug/testRecorder/feature.server.js +8 -13
  89. package/dist/features/debug/testRecorder/feature.server.js.map +1 -1
  90. package/dist/features/debug/testRecorder/plugin/index.d.ts +1 -1
  91. package/dist/features/debug/testRecorder/plugin/index.d.ts.map +1 -1
  92. package/dist/features/debug/testRecorder/plugin/index.js.map +1 -1
  93. package/dist/features/debug/treeView/feature.client.d.ts +1 -2
  94. package/dist/features/debug/treeView/feature.client.d.ts.map +1 -1
  95. package/dist/features/debug/treeView/feature.client.js +9 -16
  96. package/dist/features/debug/treeView/feature.client.js.map +1 -1
  97. package/dist/features/debug/treeView/feature.server.d.ts +1 -2
  98. package/dist/features/debug/treeView/feature.server.d.ts.map +1 -1
  99. package/dist/features/debug/treeView/feature.server.js +8 -13
  100. package/dist/features/debug/treeView/feature.server.js.map +1 -1
  101. package/dist/features/debug/treeView/plugin/index.d.ts +1 -1
  102. package/dist/features/debug/treeView/plugin/index.d.ts.map +1 -1
  103. package/dist/features/debug/treeView/plugin/index.js.map +1 -1
  104. package/dist/features/format/bold/feature.client.d.ts +1 -2
  105. package/dist/features/format/bold/feature.client.d.ts.map +1 -1
  106. package/dist/features/format/bold/feature.client.js +16 -23
  107. package/dist/features/format/bold/feature.client.js.map +1 -1
  108. package/dist/features/format/bold/feature.server.d.ts +1 -2
  109. package/dist/features/format/bold/feature.server.d.ts.map +1 -1
  110. package/dist/features/format/bold/feature.server.js +21 -24
  111. package/dist/features/format/bold/feature.server.js.map +1 -1
  112. package/dist/features/format/bold/markdownTransformers.js.map +1 -1
  113. package/dist/features/format/inlineCode/feature.client.d.ts +1 -2
  114. package/dist/features/format/inlineCode/feature.client.d.ts.map +1 -1
  115. package/dist/features/format/inlineCode/feature.client.js +12 -21
  116. package/dist/features/format/inlineCode/feature.client.js.map +1 -1
  117. package/dist/features/format/inlineCode/feature.server.d.ts +1 -2
  118. package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -1
  119. package/dist/features/format/inlineCode/feature.server.js +11 -16
  120. package/dist/features/format/inlineCode/feature.server.js.map +1 -1
  121. package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -1
  122. package/dist/features/format/italic/feature.client.d.ts +1 -2
  123. package/dist/features/format/italic/feature.client.d.ts.map +1 -1
  124. package/dist/features/format/italic/feature.client.js +13 -22
  125. package/dist/features/format/italic/feature.client.js.map +1 -1
  126. package/dist/features/format/italic/feature.server.d.ts +1 -2
  127. package/dist/features/format/italic/feature.server.d.ts.map +1 -1
  128. package/dist/features/format/italic/feature.server.js +12 -17
  129. package/dist/features/format/italic/feature.server.js.map +1 -1
  130. package/dist/features/format/italic/markdownTransformers.js.map +1 -1
  131. package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -1
  132. package/dist/features/format/strikethrough/feature.client.d.ts +1 -2
  133. package/dist/features/format/strikethrough/feature.client.d.ts.map +1 -1
  134. package/dist/features/format/strikethrough/feature.client.js +12 -21
  135. package/dist/features/format/strikethrough/feature.client.js.map +1 -1
  136. package/dist/features/format/strikethrough/feature.server.d.ts +1 -2
  137. package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -1
  138. package/dist/features/format/strikethrough/feature.server.js +11 -16
  139. package/dist/features/format/strikethrough/feature.server.js.map +1 -1
  140. package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -1
  141. package/dist/features/format/subscript/feature.client.d.ts +1 -2
  142. package/dist/features/format/subscript/feature.client.d.ts.map +1 -1
  143. package/dist/features/format/subscript/feature.client.js +9 -18
  144. package/dist/features/format/subscript/feature.client.js.map +1 -1
  145. package/dist/features/format/subscript/feature.server.d.ts +1 -2
  146. package/dist/features/format/subscript/feature.server.d.ts.map +1 -1
  147. package/dist/features/format/subscript/feature.server.js +8 -13
  148. package/dist/features/format/subscript/feature.server.js.map +1 -1
  149. package/dist/features/format/superscript/feature.client.d.ts +1 -2
  150. package/dist/features/format/superscript/feature.client.d.ts.map +1 -1
  151. package/dist/features/format/superscript/feature.client.js +9 -18
  152. package/dist/features/format/superscript/feature.client.js.map +1 -1
  153. package/dist/features/format/superscript/feature.server.d.ts +1 -2
  154. package/dist/features/format/superscript/feature.server.d.ts.map +1 -1
  155. package/dist/features/format/superscript/feature.server.js +8 -13
  156. package/dist/features/format/superscript/feature.server.js.map +1 -1
  157. package/dist/features/format/underline/feature.client.d.ts +1 -2
  158. package/dist/features/format/underline/feature.client.d.ts.map +1 -1
  159. package/dist/features/format/underline/feature.client.js +9 -18
  160. package/dist/features/format/underline/feature.client.js.map +1 -1
  161. package/dist/features/format/underline/feature.server.d.ts +1 -2
  162. package/dist/features/format/underline/feature.server.d.ts.map +1 -1
  163. package/dist/features/format/underline/feature.server.js +8 -13
  164. package/dist/features/format/underline/feature.server.js.map +1 -1
  165. package/dist/features/heading/feature.client.d.ts +1 -2
  166. package/dist/features/heading/feature.client.d.ts.map +1 -1
  167. package/dist/features/heading/feature.client.js +70 -76
  168. package/dist/features/heading/feature.client.js.map +1 -1
  169. package/dist/features/heading/feature.server.d.ts +1 -2
  170. package/dist/features/heading/feature.server.d.ts.map +1 -1
  171. package/dist/features/heading/feature.server.js +51 -53
  172. package/dist/features/heading/feature.server.js.map +1 -1
  173. package/dist/features/heading/i18n.js.map +1 -1
  174. package/dist/features/heading/markdownTransformer.js.map +1 -1
  175. package/dist/features/horizontalRule/component/index.js.map +1 -1
  176. package/dist/features/horizontalRule/feature.client.d.ts +1 -2
  177. package/dist/features/horizontalRule/feature.client.d.ts.map +1 -1
  178. package/dist/features/horizontalRule/feature.client.js +58 -65
  179. package/dist/features/horizontalRule/feature.client.js.map +1 -1
  180. package/dist/features/horizontalRule/feature.server.d.ts +1 -2
  181. package/dist/features/horizontalRule/feature.server.d.ts.map +1 -1
  182. package/dist/features/horizontalRule/feature.server.js +26 -31
  183. package/dist/features/horizontalRule/feature.server.js.map +1 -1
  184. package/dist/features/horizontalRule/i18n.js.map +1 -1
  185. package/dist/features/horizontalRule/markdownTransformer.js.map +1 -1
  186. package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js.map +1 -1
  187. package/dist/features/horizontalRule/plugin/index.d.ts +1 -1
  188. package/dist/features/horizontalRule/plugin/index.d.ts.map +1 -1
  189. package/dist/features/horizontalRule/plugin/index.js.map +1 -1
  190. package/dist/features/indent/feature.client.d.ts +1 -2
  191. package/dist/features/indent/feature.client.d.ts.map +1 -1
  192. package/dist/features/indent/feature.client.js +9 -16
  193. package/dist/features/indent/feature.client.js.map +1 -1
  194. package/dist/features/indent/feature.server.d.ts +1 -2
  195. package/dist/features/indent/feature.server.d.ts.map +1 -1
  196. package/dist/features/indent/feature.server.js +9 -15
  197. package/dist/features/indent/feature.server.js.map +1 -1
  198. package/dist/features/indent/i18n.js.map +1 -1
  199. package/dist/features/indent/toolbarIndentGroup.js.map +1 -1
  200. package/dist/features/link/drawer/baseFields.d.ts +2 -2
  201. package/dist/features/link/drawer/baseFields.d.ts.map +1 -1
  202. package/dist/features/link/drawer/baseFields.js.map +1 -1
  203. package/dist/features/link/drawer/index.js.map +1 -1
  204. package/dist/features/link/drawer/types.js.map +1 -1
  205. package/dist/features/link/feature.client.d.ts +3 -4
  206. package/dist/features/link/feature.client.d.ts.map +1 -1
  207. package/dist/features/link/feature.client.js +34 -41
  208. package/dist/features/link/feature.client.js.map +1 -1
  209. package/dist/features/link/feature.server.d.ts +4 -6
  210. package/dist/features/link/feature.server.d.ts.map +1 -1
  211. package/dist/features/link/feature.server.js +123 -125
  212. package/dist/features/link/feature.server.js.map +1 -1
  213. package/dist/features/link/graphQLPopulationPromise.d.ts +1 -1
  214. package/dist/features/link/graphQLPopulationPromise.d.ts.map +1 -1
  215. package/dist/features/link/graphQLPopulationPromise.js.map +1 -1
  216. package/dist/features/link/i18n.js.map +1 -1
  217. package/dist/features/link/markdownTransformer.js.map +1 -1
  218. package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
  219. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  220. package/dist/features/link/nodes/types.js.map +1 -1
  221. package/dist/features/link/plugins/autoLink/index.d.ts +1 -1
  222. package/dist/features/link/plugins/autoLink/index.d.ts.map +1 -1
  223. package/dist/features/link/plugins/autoLink/index.js.map +1 -1
  224. package/dist/features/link/plugins/clickableLink/index.d.ts +1 -1
  225. package/dist/features/link/plugins/clickableLink/index.d.ts.map +1 -1
  226. package/dist/features/link/plugins/clickableLink/index.js.map +1 -1
  227. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -1
  228. package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  229. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts +1 -1
  230. package/dist/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -1
  231. package/dist/features/link/plugins/floatingLinkEditor/index.js.map +1 -1
  232. package/dist/features/link/plugins/floatingLinkEditor/types.js.map +1 -1
  233. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts +2 -2
  234. package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -1
  235. package/dist/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -1
  236. package/dist/features/link/plugins/link/index.d.ts +1 -1
  237. package/dist/features/link/plugins/link/index.d.ts.map +1 -1
  238. package/dist/features/link/plugins/link/index.js.map +1 -1
  239. package/dist/features/link/validate.d.ts +1 -1
  240. package/dist/features/link/validate.d.ts.map +1 -1
  241. package/dist/features/link/validate.js.map +1 -1
  242. package/dist/features/lists/checklist/feature.client.d.ts +1 -2
  243. package/dist/features/lists/checklist/feature.client.d.ts.map +1 -1
  244. package/dist/features/lists/checklist/feature.client.js +50 -57
  245. package/dist/features/lists/checklist/feature.client.js.map +1 -1
  246. package/dist/features/lists/checklist/feature.server.d.ts +1 -2
  247. package/dist/features/lists/checklist/feature.server.d.ts.map +1 -1
  248. package/dist/features/lists/checklist/feature.server.js +28 -31
  249. package/dist/features/lists/checklist/feature.server.js.map +1 -1
  250. package/dist/features/lists/checklist/i18n.js.map +1 -1
  251. package/dist/features/lists/checklist/markdownTransformers.js.map +1 -1
  252. package/dist/features/lists/checklist/plugin/index.d.ts +1 -1
  253. package/dist/features/lists/checklist/plugin/index.d.ts.map +1 -1
  254. package/dist/features/lists/checklist/plugin/index.js.map +1 -1
  255. package/dist/features/lists/htmlConverter.js.map +1 -1
  256. package/dist/features/lists/orderedList/feature.client.d.ts +1 -2
  257. package/dist/features/lists/orderedList/feature.client.d.ts.map +1 -1
  258. package/dist/features/lists/orderedList/feature.client.js +39 -46
  259. package/dist/features/lists/orderedList/feature.client.js.map +1 -1
  260. package/dist/features/lists/orderedList/feature.server.d.ts +1 -2
  261. package/dist/features/lists/orderedList/feature.server.d.ts.map +1 -1
  262. package/dist/features/lists/orderedList/feature.server.js +28 -31
  263. package/dist/features/lists/orderedList/feature.server.js.map +1 -1
  264. package/dist/features/lists/orderedList/i18n.js.map +1 -1
  265. package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -1
  266. package/dist/features/lists/plugin/index.d.ts +1 -1
  267. package/dist/features/lists/plugin/index.d.ts.map +1 -1
  268. package/dist/features/lists/plugin/index.js.map +1 -1
  269. package/dist/features/lists/shared/markdown.d.ts +1 -1
  270. package/dist/features/lists/shared/markdown.js.map +1 -1
  271. package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -1
  272. package/dist/features/lists/unorderedList/feature.client.d.ts +1 -2
  273. package/dist/features/lists/unorderedList/feature.client.d.ts.map +1 -1
  274. package/dist/features/lists/unorderedList/feature.client.js +40 -49
  275. package/dist/features/lists/unorderedList/feature.client.js.map +1 -1
  276. package/dist/features/lists/unorderedList/feature.server.d.ts +1 -2
  277. package/dist/features/lists/unorderedList/feature.server.d.ts.map +1 -1
  278. package/dist/features/lists/unorderedList/feature.server.js +26 -31
  279. package/dist/features/lists/unorderedList/feature.server.js.map +1 -1
  280. package/dist/features/lists/unorderedList/i18n.js.map +1 -1
  281. package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -1
  282. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -1
  283. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +1 -1
  284. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +1 -1
  285. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -1
  286. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +1 -1
  287. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +1 -1
  288. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -1
  289. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +1 -1
  290. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +1 -1
  291. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -1
  292. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +1 -1
  293. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +1 -1
  294. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -1
  295. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +1 -1
  296. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +1 -1
  297. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -1
  298. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +1 -1
  299. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +1 -1
  300. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -1
  301. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +1 -1
  302. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +1 -1
  303. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -1
  304. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +1 -1
  305. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +1 -1
  306. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -1
  307. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +1 -1
  308. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +1 -1
  309. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -1
  310. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +1 -1
  311. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +1 -1
  312. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -1
  313. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +1 -1
  314. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +1 -1
  315. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -1
  316. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +1 -1
  317. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +1 -1
  318. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -1
  319. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +1 -1
  320. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +1 -1
  321. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
  322. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +1 -1
  323. package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +1 -1
  324. package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -1
  325. package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -1
  326. package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +1 -1
  327. package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -1
  328. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +1 -2
  329. package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -1
  330. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +20 -27
  331. package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -1
  332. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +1 -2
  333. package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -1
  334. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +39 -42
  335. package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -1
  336. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  337. package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  338. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -1
  339. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +1 -1
  340. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +1 -1
  341. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -1
  342. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js +1 -1
  343. package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +1 -1
  344. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -1
  345. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +1 -1
  346. package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js.map +1 -1
  347. package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -1
  348. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js +1 -1
  349. package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js.map +1 -1
  350. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -1
  351. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +1 -1
  352. package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js.map +1 -1
  353. package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -1
  354. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js +1 -1
  355. package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js.map +1 -1
  356. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -1
  357. package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +1 -1
  358. package/dist/features/migrations/slateToLexical/converter/converters/link/client.js.map +1 -1
  359. package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -1
  360. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js +1 -1
  361. package/dist/features/migrations/slateToLexical/converter/converters/link/index.js.map +1 -1
  362. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -1
  363. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +1 -1
  364. package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +1 -1
  365. package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -1
  366. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js +1 -1
  367. package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +1 -1
  368. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -1
  369. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +1 -1
  370. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +1 -1
  371. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -1
  372. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js +1 -1
  373. package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +1 -1
  374. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -1
  375. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +1 -1
  376. package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +1 -1
  377. package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
  378. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js +1 -1
  379. package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +1 -1
  380. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -1
  381. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +1 -1
  382. package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +1 -1
  383. package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -1
  384. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js +1 -1
  385. package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +1 -1
  386. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -1
  387. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +1 -1
  388. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +1 -1
  389. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -1
  390. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +1 -1
  391. package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +1 -1
  392. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -1
  393. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +1 -1
  394. package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js.map +1 -1
  395. package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
  396. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js +1 -1
  397. package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js.map +1 -1
  398. package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -1
  399. package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -1
  400. package/dist/features/migrations/slateToLexical/converter/types.d.ts +1 -1
  401. package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -1
  402. package/dist/features/migrations/slateToLexical/feature.client.d.ts +1 -2
  403. package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -1
  404. package/dist/features/migrations/slateToLexical/feature.client.js +20 -27
  405. package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -1
  406. package/dist/features/migrations/slateToLexical/feature.server.d.ts +1 -2
  407. package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -1
  408. package/dist/features/migrations/slateToLexical/feature.server.js +39 -42
  409. package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -1
  410. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
  411. package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
  412. package/dist/features/paragraph/feature.client.d.ts +1 -2
  413. package/dist/features/paragraph/feature.client.d.ts.map +1 -1
  414. package/dist/features/paragraph/feature.client.js +33 -40
  415. package/dist/features/paragraph/feature.client.js.map +1 -1
  416. package/dist/features/paragraph/feature.server.d.ts +1 -2
  417. package/dist/features/paragraph/feature.server.d.ts.map +1 -1
  418. package/dist/features/paragraph/feature.server.js +10 -15
  419. package/dist/features/paragraph/feature.server.js.map +1 -1
  420. package/dist/features/paragraph/i18n.js.map +1 -1
  421. package/dist/features/relationship/drawer/commands.js.map +1 -1
  422. package/dist/features/relationship/drawer/index.d.ts.map +1 -1
  423. package/dist/features/relationship/drawer/index.js.map +1 -1
  424. package/dist/features/relationship/feature.client.d.ts +3 -4
  425. package/dist/features/relationship/feature.client.d.ts.map +1 -1
  426. package/dist/features/relationship/feature.client.js +60 -67
  427. package/dist/features/relationship/feature.client.js.map +1 -1
  428. package/dist/features/relationship/feature.server.d.ts +4 -4
  429. package/dist/features/relationship/feature.server.d.ts.map +1 -1
  430. package/dist/features/relationship/feature.server.js +45 -51
  431. package/dist/features/relationship/feature.server.js.map +1 -1
  432. package/dist/features/relationship/graphQLPopulationPromise.d.ts +1 -1
  433. package/dist/features/relationship/graphQLPopulationPromise.d.ts.map +1 -1
  434. package/dist/features/relationship/graphQLPopulationPromise.js.map +1 -1
  435. package/dist/features/relationship/i18n.js.map +1 -1
  436. package/dist/features/relationship/nodes/RelationshipNode.js.map +1 -1
  437. package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -1
  438. package/dist/features/relationship/nodes/components/RelationshipComponent.js.map +1 -1
  439. package/dist/features/relationship/plugins/index.d.ts +1 -1
  440. package/dist/features/relationship/plugins/index.d.ts.map +1 -1
  441. package/dist/features/relationship/plugins/index.js.map +1 -1
  442. package/dist/features/relationship/utils/EnabledRelationshipsCondition.js.map +1 -1
  443. package/dist/features/shared/slashMenu/basicGroup.js.map +1 -1
  444. package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -1
  445. package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -1
  446. package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -1
  447. package/dist/features/toolbars/fixed/Toolbar/index.d.ts +1 -1
  448. package/dist/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -1
  449. package/dist/features/toolbars/fixed/Toolbar/index.js.map +1 -1
  450. package/dist/features/toolbars/fixed/feature.client.d.ts +1 -2
  451. package/dist/features/toolbars/fixed/feature.client.d.ts.map +1 -1
  452. package/dist/features/toolbars/fixed/feature.client.js +9 -16
  453. package/dist/features/toolbars/fixed/feature.client.js.map +1 -1
  454. package/dist/features/toolbars/fixed/feature.server.d.ts +1 -2
  455. package/dist/features/toolbars/fixed/feature.server.d.ts.map +1 -1
  456. package/dist/features/toolbars/fixed/feature.server.js +16 -18
  457. package/dist/features/toolbars/fixed/feature.server.js.map +1 -1
  458. package/dist/features/toolbars/inline/Toolbar/index.d.ts +1 -1
  459. package/dist/features/toolbars/inline/Toolbar/index.d.ts.map +1 -1
  460. package/dist/features/toolbars/inline/Toolbar/index.js.map +1 -1
  461. package/dist/features/toolbars/inline/feature.client.d.ts +1 -2
  462. package/dist/features/toolbars/inline/feature.client.d.ts.map +1 -1
  463. package/dist/features/toolbars/inline/feature.client.js +9 -16
  464. package/dist/features/toolbars/inline/feature.client.js.map +1 -1
  465. package/dist/features/toolbars/inline/feature.server.d.ts +1 -2
  466. package/dist/features/toolbars/inline/feature.server.d.ts.map +1 -1
  467. package/dist/features/toolbars/inline/feature.server.js +8 -13
  468. package/dist/features/toolbars/inline/feature.server.js.map +1 -1
  469. package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
  470. package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
  471. package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
  472. package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
  473. package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
  474. package/dist/features/toolbars/types.d.ts +7 -2
  475. package/dist/features/toolbars/types.d.ts.map +1 -1
  476. package/dist/features/toolbars/types.js.map +1 -1
  477. package/dist/features/typeUtilities.d.ts +1 -1
  478. package/dist/features/typeUtilities.d.ts.map +1 -1
  479. package/dist/features/typeUtilities.js.map +1 -1
  480. package/dist/features/typesClient.d.ts +182 -0
  481. package/dist/features/typesClient.d.ts.map +1 -0
  482. package/dist/features/typesClient.js +3 -0
  483. package/dist/features/typesClient.js.map +1 -0
  484. package/dist/features/{types.d.ts → typesServer.d.ts} +15 -191
  485. package/dist/features/typesServer.d.ts.map +1 -0
  486. package/dist/features/typesServer.js +3 -0
  487. package/dist/features/typesServer.js.map +1 -0
  488. package/dist/features/upload/component/ExtraFieldsDrawer/index.js.map +1 -1
  489. package/dist/features/upload/component/index.d.ts.map +1 -1
  490. package/dist/features/upload/component/index.js +1 -1
  491. package/dist/features/upload/component/index.js.map +1 -1
  492. package/dist/features/upload/drawer/commands.js.map +1 -1
  493. package/dist/features/upload/drawer/index.d.ts.map +1 -1
  494. package/dist/features/upload/drawer/index.js.map +1 -1
  495. package/dist/features/upload/feature.client.d.ts +1 -2
  496. package/dist/features/upload/feature.client.d.ts.map +1 -1
  497. package/dist/features/upload/feature.client.js +62 -69
  498. package/dist/features/upload/feature.client.js.map +1 -1
  499. package/dist/features/upload/feature.server.d.ts +3 -4
  500. package/dist/features/upload/feature.server.d.ts.map +1 -1
  501. package/dist/features/upload/feature.server.js +166 -168
  502. package/dist/features/upload/feature.server.js.map +1 -1
  503. package/dist/features/upload/graphQLPopulationPromise.d.ts +1 -1
  504. package/dist/features/upload/graphQLPopulationPromise.d.ts.map +1 -1
  505. package/dist/features/upload/graphQLPopulationPromise.js.map +1 -1
  506. package/dist/features/upload/i18n.js.map +1 -1
  507. package/dist/features/upload/nodes/UploadNode.js.map +1 -1
  508. package/dist/features/upload/plugin/index.d.ts +1 -1
  509. package/dist/features/upload/plugin/index.d.ts.map +1 -1
  510. package/dist/features/upload/plugin/index.js.map +1 -1
  511. package/dist/features/upload/validate.d.ts +1 -1
  512. package/dist/features/upload/validate.d.ts.map +1 -1
  513. package/dist/features/upload/validate.js.map +1 -1
  514. package/dist/field/Field.d.ts.map +1 -1
  515. package/dist/field/Field.js.map +1 -1
  516. package/dist/field/index.d.ts.map +1 -1
  517. package/dist/field/index.js +9 -7
  518. package/dist/field/index.js.map +1 -1
  519. package/dist/i18n.js.map +1 -1
  520. package/dist/index.d.ts +9 -7
  521. package/dist/index.d.ts.map +1 -1
  522. package/dist/index.js +17 -17
  523. package/dist/index.js.map +1 -1
  524. package/dist/lexical/EditorPlugin.d.ts +1 -1
  525. package/dist/lexical/EditorPlugin.d.ts.map +1 -1
  526. package/dist/lexical/EditorPlugin.js.map +1 -1
  527. package/dist/lexical/LexicalEditor.js.map +1 -1
  528. package/dist/lexical/LexicalProvider.js.map +1 -1
  529. package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -1
  530. package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
  531. package/dist/lexical/config/client/default.js.map +1 -1
  532. package/dist/lexical/config/client/loader.d.ts +1 -1
  533. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  534. package/dist/lexical/config/client/loader.js +2 -2
  535. package/dist/lexical/config/client/loader.js.map +1 -1
  536. package/dist/lexical/config/client/sanitize.d.ts +1 -1
  537. package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
  538. package/dist/lexical/config/client/sanitize.js +1 -1
  539. package/dist/lexical/config/client/sanitize.js.map +1 -1
  540. package/dist/lexical/config/server/default.d.ts +2 -2
  541. package/dist/lexical/config/server/default.d.ts.map +1 -1
  542. package/dist/lexical/config/server/default.js.map +1 -1
  543. package/dist/lexical/config/server/loader.d.ts +2 -2
  544. package/dist/lexical/config/server/loader.d.ts.map +1 -1
  545. package/dist/lexical/config/server/loader.js +2 -2
  546. package/dist/lexical/config/server/loader.js.map +1 -1
  547. package/dist/lexical/config/server/sanitize.d.ts +1 -1
  548. package/dist/lexical/config/server/sanitize.d.ts.map +1 -1
  549. package/dist/lexical/config/server/sanitize.js.map +1 -1
  550. package/dist/lexical/config/types.d.ts +4 -3
  551. package/dist/lexical/config/types.d.ts.map +1 -1
  552. package/dist/lexical/config/types.js.map +1 -1
  553. package/dist/lexical/nodes/index.js.map +1 -1
  554. package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
  555. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  556. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
  557. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +9 -1
  558. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -1
  559. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
  560. package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
  561. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -1
  562. package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
  563. package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -1
  564. package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -1
  565. package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -1
  566. package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
  567. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +0 -1
  568. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -1
  569. package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
  570. package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -1
  571. package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -1
  572. package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -1
  573. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -1
  574. package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -1
  575. package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -1
  576. package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
  577. package/dist/lexical/theme/EditorTheme.js.map +1 -1
  578. package/dist/lexical/ui/ContentEditable.js.map +1 -1
  579. package/dist/lexical/ui/icons/AI/index.js.map +1 -1
  580. package/dist/lexical/ui/icons/Add/index.js.map +1 -1
  581. package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
  582. package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
  583. package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
  584. package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
  585. package/dist/lexical/ui/icons/Block/index.js.map +1 -1
  586. package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
  587. package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
  588. package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
  589. package/dist/lexical/ui/icons/Code/index.js.map +1 -1
  590. package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
  591. package/dist/lexical/ui/icons/H1/index.js.map +1 -1
  592. package/dist/lexical/ui/icons/H2/index.js.map +1 -1
  593. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  594. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  595. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  596. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  597. package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
  598. package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
  599. package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
  600. package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
  601. package/dist/lexical/ui/icons/Link/index.js.map +1 -1
  602. package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
  603. package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
  604. package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
  605. package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
  606. package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
  607. package/dist/lexical/ui/icons/Text/index.js.map +1 -1
  608. package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
  609. package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
  610. package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
  611. package/dist/lexical/utils/canUseDOM.js.map +1 -1
  612. package/dist/lexical/utils/cloneDeep.js.map +1 -1
  613. package/dist/lexical/utils/environment.js.map +1 -1
  614. package/dist/lexical/utils/getDOMRangeRect.js.map +1 -1
  615. package/dist/lexical/utils/getSelectedNode.js.map +1 -1
  616. package/dist/lexical/utils/guard.js.map +1 -1
  617. package/dist/lexical/utils/invariant.js.map +1 -1
  618. package/dist/lexical/utils/joinClasses.js.map +1 -1
  619. package/dist/lexical/utils/markdown/createBlockNode.d.ts +1 -1
  620. package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -1
  621. package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
  622. package/dist/lexical/utils/nodeFormat.js.map +1 -1
  623. package/dist/lexical/utils/point.js.map +1 -1
  624. package/dist/lexical/utils/rect.js.map +1 -1
  625. package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -1
  626. package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -1
  627. package/dist/lexical/utils/swipe.js.map +1 -1
  628. package/dist/lexical/utils/url.js.map +1 -1
  629. package/dist/populateGraphQL/defaultValue.js.map +1 -1
  630. package/dist/populateGraphQL/populate.d.ts.map +1 -1
  631. package/dist/populateGraphQL/populate.js.map +1 -1
  632. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
  633. package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
  634. package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
  635. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +1 -1
  636. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
  637. package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -1
  638. package/dist/types.d.ts +6 -6
  639. package/dist/types.d.ts.map +1 -1
  640. package/dist/types.js.map +1 -1
  641. package/dist/utilities/createClientFeature.d.ts +13 -0
  642. package/dist/utilities/createClientFeature.d.ts.map +1 -0
  643. package/dist/utilities/createClientFeature.js +30 -0
  644. package/dist/utilities/createClientFeature.js.map +1 -0
  645. package/dist/utilities/createServerFeature.d.ts +16 -0
  646. package/dist/utilities/createServerFeature.d.ts.map +1 -0
  647. package/dist/utilities/createServerFeature.js +34 -0
  648. package/dist/utilities/createServerFeature.js.map +1 -0
  649. package/dist/utilities/forEachNodeRecursively.js.map +1 -1
  650. package/dist/utilities/generateComponentMap.d.ts +2 -2
  651. package/dist/utilities/generateComponentMap.d.ts.map +1 -1
  652. package/dist/utilities/generateComponentMap.js +4 -4
  653. package/dist/utilities/generateComponentMap.js.map +1 -1
  654. package/dist/utilities/generateSchemaMap.d.ts +2 -2
  655. package/dist/utilities/generateSchemaMap.d.ts.map +1 -1
  656. package/dist/utilities/generateSchemaMap.js +1 -1
  657. package/dist/utilities/generateSchemaMap.js.map +1 -1
  658. package/dist/utilities/recurseNodeTree.js.map +1 -1
  659. package/dist/utilities/useLexicalFeature.d.ts +1 -1
  660. package/dist/utilities/useLexicalFeature.d.ts.map +1 -1
  661. package/dist/utilities/useLexicalFeature.js.map +1 -1
  662. package/dist/validate/index.js.map +1 -1
  663. package/dist/validate/validateNodes.d.ts +1 -1
  664. package/dist/validate/validateNodes.d.ts.map +1 -1
  665. package/dist/validate/validateNodes.js.map +1 -1
  666. package/package.json +10 -10
  667. package/dist/exports/client/Field-YMWNSE3A.js +0 -2
  668. package/dist/exports/client/Field-YMWNSE3A.js.map +0 -7
  669. package/dist/exports/client/chunk-ZITHDR53.js +0 -2
  670. package/dist/exports/client/chunk-ZITHDR53.js.map +0 -7
  671. package/dist/exports/client/component-E2NHAHBC.js.map +0 -7
  672. package/dist/exports/client/component-X4LSLSWF.js +0 -2
  673. package/dist/exports/client/component-X4LSLSWF.js.map +0 -7
  674. package/dist/features/types.d.ts.map +0 -1
  675. package/dist/features/types.js +0 -3
  676. package/dist/features/types.js.map +0 -1
  677. /package/dist/exports/client/{chunk-QU5MKT75.js.map → chunk-TZLHAUCW.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/features/link/drawer/index.tsx"],"sourcesContent":["import type { FormProps } from '@payloadcms/ui'\nimport type { FormState } from 'payload'\n\nimport {\n Drawer,\n Form,\n FormSubmit,\n RenderFields,\n useConfig,\n useDocumentInfo,\n useFieldProps,\n useTranslation,\n} from '@payloadcms/ui'\nimport { getFormState } from '@payloadcms/ui/shared'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { v4 as uuid } from 'uuid'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport './index.scss'\nimport { type Props } from './types.js'\n\nconst baseClass = 'lexical-link-edit-drawer'\n\nexport const LinkDrawer: React.FC<Props> = ({ drawerSlug, handleModalSubmit, stateData }) => {\n const { t } = useTranslation()\n const { id } = useDocumentInfo()\n const { schemaPath } = useFieldProps()\n const config = useConfig()\n const [initialState, setInitialState] = useState<FormState | false>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedFieldsPath = `feature.link.fields.fields`\n const schemaFieldsPath = `${schemaPath}.feature.link.fields`\n\n const fieldMap = richTextComponentMap.get(componentMapRenderedFieldsPath) // Field Schema\n\n useEffect(() => {\n const awaitInitialState = async () => {\n const state = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n data: stateData,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n }) // Form State\n\n setInitialState(state)\n }\n\n if (stateData) {\n void awaitInitialState()\n }\n }, [config.routes.api, config.serverURL, schemaFieldsPath, id, stateData])\n\n const onChange: FormProps['onChange'][0] = useCallback(\n async ({ formState: prevFormState }) => {\n return await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n formState: prevFormState,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n })\n },\n\n [config.routes.api, config.serverURL, schemaFieldsPath, id],\n )\n\n return (\n <Drawer className={baseClass} slug={drawerSlug} title={t('fields:editLink') ?? ''}>\n {initialState !== false && (\n <Form\n beforeSubmit={[onChange]}\n disableValidationOnSubmit\n fields={Array.isArray(fieldMap) ? fieldMap : []}\n initialState={initialState}\n onChange={[onChange]}\n onSubmit={handleModalSubmit}\n uuid={uuid()}\n >\n <RenderFields\n fieldMap={Array.isArray(fieldMap) ? fieldMap : []}\n forceRender\n path=\"\" // See Blocks feature path for details as for why this is empty\n readOnly={false}\n schemaPath={schemaFieldsPath}\n />\n\n <FormSubmit>{t('general:submit')}</FormSubmit>\n </Form>\n )}\n </Drawer>\n )\n}\n"],"names":["Drawer","Form","FormSubmit","RenderFields","useConfig","useDocumentInfo","useFieldProps","useTranslation","getFormState","React","useCallback","useEffect","useState","v4","uuid","useEditorConfigContext","baseClass","LinkDrawer","drawerSlug","handleModalSubmit","stateData","t","id","schemaPath","config","initialState","setInitialState","field","richTextComponentMap","componentMapRenderedFieldsPath","schemaFieldsPath","fieldMap","get","awaitInitialState","state","apiRoute","routes","api","body","data","operation","serverURL","onChange","formState","prevFormState","className","slug","title","beforeSubmit","disableValidationOnSubmit","fields","Array","isArray","onSubmit","forceRender","path","readOnly"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";AAGA,SACEA,MAAM,EACNC,IAAI,EACJC,UAAU,EACVC,YAAY,EACZC,SAAS,EACTC,eAAe,EACfC,aAAa,EACbC,cAAc,QACT,iBAAgB;AACvB,SAASC,YAAY,QAAQ,wBAAuB;AACpD,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AAC/D,SAASC,MAAMC,IAAI,QAAQ,OAAM;AAEjC,SAASC,sBAAsB,QAAQ,yDAAwD;AAI/F,MAAMC,YAAY;AAElB,OAAO,MAAMC,aAA8B,CAAC,EAAEC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,EAAE;IACtF,MAAM,EAAEC,CAAC,EAAE,GAAGd;IACd,MAAM,EAAEe,EAAE,EAAE,GAAGjB;IACf,MAAM,EAAEkB,UAAU,EAAE,GAAGjB;IACvB,MAAMkB,SAASpB;IACf,MAAM,CAACqB,cAAcC,gBAAgB,GAAGd,SAA4B;IACpE,MAAM,EACJe,OAAO,EAAEC,oBAAoB,EAAE,EAChC,GAAGb;IAEJ,MAAMc,iCAAiC,CAAC,0BAA0B,CAAC;IACnE,MAAMC,mBAAmB,CAAC,EAAEP,WAAW,oBAAoB,CAAC;IAE5D,MAAMQ,WAAWH,qBAAqBI,GAAG,CAACH,gCAAgC,eAAe;;IAEzFlB,UAAU;QACR,MAAMsB,oBAAoB;YACxB,MAAMC,QAAQ,MAAM1B,aAAa;gBAC/B2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;gBAC3BC,MAAM;oBACJhB;oBACAiB,MAAMnB;oBACNoB,WAAW;oBACXjB,YAAYO;gBACd;gBACAW,WAAWjB,OAAOiB,SAAS;YAC7B,GAAG,aAAa;;YAEhBf,gBAAgBQ;QAClB;QAEA,IAAId,WAAW;YACb,KAAKa;QACP;IACF,GAAG;QAACT,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;QAAIF;KAAU;IAEzE,MAAMsB,WAAqChC,YACzC,OAAO,EAAEiC,WAAWC,aAAa,EAAE;QACjC,OAAO,MAAMpC,aAAa;YACxB2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;YAC3BC,MAAM;gBACJhB;gBACAqB,WAAWC;gBACXJ,WAAW;gBACXjB,YAAYO;YACd;YACAW,WAAWjB,OAAOiB,SAAS;QAC7B;IACF,GAEA;QAACjB,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;KAAG;IAG7D,qBACE,KAACtB;QAAO6C,WAAW7B;QAAW8B,MAAM5B;QAAY6B,OAAO1B,EAAE,sBAAsB;kBAC5EI,iBAAiB,uBAChB,MAACxB;YACC+C,cAAc;gBAACN;aAAS;YACxBO,yBAAyB;YACzBC,QAAQC,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;YAC/CN,cAAcA;YACdiB,UAAU;gBAACA;aAAS;YACpBW,UAAUlC;YACVL,MAAMA;;8BAEN,KAACX;oBACC4B,UAAUoB,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;oBACjDuB,WAAW;oBACXC,MAAK,GAAG,+DAA+D;;oBACvEC,UAAU;oBACVjC,YAAYO;;8BAGd,KAAC5B;8BAAYmB,EAAE;;;;;AAKzB,EAAC"}
1
+ {"version":3,"sources":["../../../../src/features/link/drawer/index.tsx"],"sourcesContent":["import type { FormProps } from '@payloadcms/ui'\nimport type { FormState } from 'payload'\n\nimport {\n Drawer,\n Form,\n FormSubmit,\n RenderFields,\n useConfig,\n useDocumentInfo,\n useFieldProps,\n useTranslation,\n} from '@payloadcms/ui'\nimport { getFormState } from '@payloadcms/ui/shared'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { v4 as uuid } from 'uuid'\n\nimport { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider.js'\nimport './index.scss'\nimport { type Props } from './types.js'\n\nconst baseClass = 'lexical-link-edit-drawer'\n\nexport const LinkDrawer: React.FC<Props> = ({ drawerSlug, handleModalSubmit, stateData }) => {\n const { t } = useTranslation()\n const { id } = useDocumentInfo()\n const { schemaPath } = useFieldProps()\n const config = useConfig()\n const [initialState, setInitialState] = useState<FormState | false>(false)\n const {\n field: { richTextComponentMap },\n } = useEditorConfigContext()\n\n const componentMapRenderedFieldsPath = `feature.link.fields.fields`\n const schemaFieldsPath = `${schemaPath}.feature.link.fields`\n\n const fieldMap = richTextComponentMap.get(componentMapRenderedFieldsPath) // Field Schema\n\n useEffect(() => {\n const awaitInitialState = async () => {\n const state = await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n data: stateData,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n }) // Form State\n\n setInitialState(state)\n }\n\n if (stateData) {\n void awaitInitialState()\n }\n }, [config.routes.api, config.serverURL, schemaFieldsPath, id, stateData])\n\n const onChange: FormProps['onChange'][0] = useCallback(\n async ({ formState: prevFormState }) => {\n return await getFormState({\n apiRoute: config.routes.api,\n body: {\n id,\n formState: prevFormState,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n },\n serverURL: config.serverURL,\n })\n },\n\n [config.routes.api, config.serverURL, schemaFieldsPath, id],\n )\n\n return (\n <Drawer className={baseClass} slug={drawerSlug} title={t('fields:editLink') ?? ''}>\n {initialState !== false && (\n <Form\n beforeSubmit={[onChange]}\n disableValidationOnSubmit\n fields={Array.isArray(fieldMap) ? fieldMap : []}\n initialState={initialState}\n onChange={[onChange]}\n onSubmit={handleModalSubmit}\n uuid={uuid()}\n >\n <RenderFields\n fieldMap={Array.isArray(fieldMap) ? fieldMap : []}\n forceRender\n path=\"\" // See Blocks feature path for details as for why this is empty\n readOnly={false}\n schemaPath={schemaFieldsPath}\n />\n\n <FormSubmit>{t('general:submit')}</FormSubmit>\n </Form>\n )}\n </Drawer>\n )\n}\n"],"names":["Drawer","Form","FormSubmit","RenderFields","useConfig","useDocumentInfo","useFieldProps","useTranslation","getFormState","React","useCallback","useEffect","useState","v4","uuid","useEditorConfigContext","baseClass","LinkDrawer","drawerSlug","handleModalSubmit","stateData","t","id","schemaPath","config","initialState","setInitialState","field","richTextComponentMap","componentMapRenderedFieldsPath","schemaFieldsPath","fieldMap","get","awaitInitialState","state","apiRoute","routes","api","body","data","operation","serverURL","onChange","formState","prevFormState","className","slug","title","beforeSubmit","disableValidationOnSubmit","fields","Array","isArray","onSubmit","forceRender","path","readOnly"],"mappings":";AAGA,SACEA,MAAM,EACNC,IAAI,EACJC,UAAU,EACVC,YAAY,EACZC,SAAS,EACTC,eAAe,EACfC,aAAa,EACbC,cAAc,QACT,iBAAgB;AACvB,SAASC,YAAY,QAAQ,wBAAuB;AACpD,OAAOC,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AAC/D,SAASC,MAAMC,IAAI,QAAQ,OAAM;AAEjC,SAASC,sBAAsB,QAAQ,yDAAwD;AAI/F,MAAMC,YAAY;AAElB,OAAO,MAAMC,aAA8B,CAAC,EAAEC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,EAAE;IACtF,MAAM,EAAEC,CAAC,EAAE,GAAGd;IACd,MAAM,EAAEe,EAAE,EAAE,GAAGjB;IACf,MAAM,EAAEkB,UAAU,EAAE,GAAGjB;IACvB,MAAMkB,SAASpB;IACf,MAAM,CAACqB,cAAcC,gBAAgB,GAAGd,SAA4B;IACpE,MAAM,EACJe,OAAO,EAAEC,oBAAoB,EAAE,EAChC,GAAGb;IAEJ,MAAMc,iCAAiC,CAAC,0BAA0B,CAAC;IACnE,MAAMC,mBAAmB,CAAC,EAAEP,WAAW,oBAAoB,CAAC;IAE5D,MAAMQ,WAAWH,qBAAqBI,GAAG,CAACH,gCAAgC,eAAe;;IAEzFlB,UAAU;QACR,MAAMsB,oBAAoB;YACxB,MAAMC,QAAQ,MAAM1B,aAAa;gBAC/B2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;gBAC3BC,MAAM;oBACJhB;oBACAiB,MAAMnB;oBACNoB,WAAW;oBACXjB,YAAYO;gBACd;gBACAW,WAAWjB,OAAOiB,SAAS;YAC7B,GAAG,aAAa;;YAEhBf,gBAAgBQ;QAClB;QAEA,IAAId,WAAW;YACb,KAAKa;QACP;IACF,GAAG;QAACT,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;QAAIF;KAAU;IAEzE,MAAMsB,WAAqChC,YACzC,OAAO,EAAEiC,WAAWC,aAAa,EAAE;QACjC,OAAO,MAAMpC,aAAa;YACxB2B,UAAUX,OAAOY,MAAM,CAACC,GAAG;YAC3BC,MAAM;gBACJhB;gBACAqB,WAAWC;gBACXJ,WAAW;gBACXjB,YAAYO;YACd;YACAW,WAAWjB,OAAOiB,SAAS;QAC7B;IACF,GAEA;QAACjB,OAAOY,MAAM,CAACC,GAAG;QAAEb,OAAOiB,SAAS;QAAEX;QAAkBR;KAAG;IAG7D,qBACE,KAACtB;QAAO6C,WAAW7B;QAAW8B,MAAM5B;QAAY6B,OAAO1B,EAAE,sBAAsB;kBAC5EI,iBAAiB,uBAChB,MAACxB;YACC+C,cAAc;gBAACN;aAAS;YACxBO,yBAAyB;YACzBC,QAAQC,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;YAC/CN,cAAcA;YACdiB,UAAU;gBAACA;aAAS;YACpBW,UAAUlC;YACVL,MAAMA;;8BAEN,KAACX;oBACC4B,UAAUoB,MAAMC,OAAO,CAACrB,YAAYA,WAAW,EAAE;oBACjDuB,WAAW;oBACXC,MAAK,GAAG,+DAA+D;;oBACvEC,UAAU;oBACVjC,YAAYO;;8BAGd,KAAC5B;8BAAYmB,EAAE;;;;;AAKzB,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/features/link/drawer/types.ts"],"sourcesContent":["import type { FormState } from 'payload'\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
+ {"version":3,"sources":["../../../../src/features/link/drawer/types.ts"],"sourcesContent":["import type { FormState } from 'payload'\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":[],"mappings":"AAIA,WAIC"}
@@ -1,17 +1,16 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  import type { ExclusiveLinkCollectionsProps } from './feature.server.js';
3
2
  export type ClientProps = ExclusiveLinkCollectionsProps;
4
- export declare const LinkFeatureClientComponent: import("react").FC<({
3
+ export declare const LinkFeatureClient: import("react").FC<({
5
4
  featureKey: string;
6
5
  order: number;
7
6
  } & {
8
- disabledCollections?: string[];
7
+ disabledCollections?: import("packages/payload/src/index.js").CollectionSlug[];
9
8
  enabledCollections?: never;
10
9
  }) | ({
11
10
  featureKey: string;
12
11
  order: number;
13
12
  } & {
14
13
  disabledCollections?: never;
15
- enabledCollections?: string[];
14
+ enabledCollections?: import("packages/payload/src/index.js").CollectionSlug[];
16
15
  })>;
17
16
  //# sourceMappingURL=feature.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../src/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
+ {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../src/features/link/feature.client.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAgBxE,MAAM,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAyDvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;GA2B5B,CAAA"}
@@ -3,7 +3,7 @@ import { $findMatchingParent } from '@lexical/utils';
3
3
  import { $getSelection, $isRangeSelection } from 'lexical';
4
4
  import { LinkIcon } from '../../lexical/ui/icons/Link/index.js';
5
5
  import { getSelectedNode } from '../../lexical/utils/getSelectedNode.js';
6
- import { createClientComponent } from '../createClientComponent.js';
6
+ import { createClientFeature } from '../../utilities/createClientFeature.js';
7
7
  import { toolbarFeatureButtonsGroupWithItems } from '../shared/toolbar/featureButtonsGroup.js';
8
8
  import { LinkMarkdownTransformer } from './markdownTransformer.js';
9
9
  import { AutoLinkNode } from './nodes/AutoLinkNode.js';
@@ -64,45 +64,38 @@ const toolbarGroups = [
64
64
  }
65
65
  ])
66
66
  ];
67
- const LinkFeatureClient = (props)=>{
68
- return {
69
- clientFeatureProps: props,
70
- feature: ()=>({
71
- clientFeatureProps: props,
72
- markdownTransformers: [
73
- LinkMarkdownTransformer
74
- ],
75
- nodes: [
76
- LinkNode,
77
- AutoLinkNode
78
- ],
79
- plugins: [
80
- {
81
- Component: LinkPlugin,
82
- position: 'normal'
83
- },
84
- {
85
- Component: AutoLinkPlugin,
86
- position: 'normal'
87
- },
88
- {
89
- Component: ClickableLinkPlugin,
90
- position: 'normal'
91
- },
92
- {
93
- Component: FloatingLinkEditorPlugin,
94
- position: 'floatingAnchorElem'
95
- }
96
- ],
97
- toolbarFixed: {
98
- groups: toolbarGroups
99
- },
100
- toolbarInline: {
101
- groups: toolbarGroups
102
- }
103
- })
104
- };
105
- };
106
- export const LinkFeatureClientComponent = createClientComponent(LinkFeatureClient);
67
+ export const LinkFeatureClient = createClientFeature({
68
+ markdownTransformers: [
69
+ LinkMarkdownTransformer
70
+ ],
71
+ nodes: [
72
+ LinkNode,
73
+ AutoLinkNode
74
+ ],
75
+ plugins: [
76
+ {
77
+ Component: LinkPlugin,
78
+ position: 'normal'
79
+ },
80
+ {
81
+ Component: AutoLinkPlugin,
82
+ position: 'normal'
83
+ },
84
+ {
85
+ Component: ClickableLinkPlugin,
86
+ position: 'normal'
87
+ },
88
+ {
89
+ Component: FloatingLinkEditorPlugin,
90
+ position: 'floatingAnchorElem'
91
+ }
92
+ ],
93
+ toolbarFixed: {
94
+ groups: toolbarGroups
95
+ },
96
+ toolbarInline: {
97
+ groups: toolbarGroups
98
+ }
99
+ });
107
100
 
108
101
  //# sourceMappingURL=feature.client.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/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
+ {"version":3,"sources":["../../../src/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 { 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 { createClientFeature } from '../../utilities/createClientFeature.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\nexport const LinkFeatureClient = createClientFeature({\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"],"names":["$findMatchingParent","$getSelection","$isRangeSelection","LinkIcon","getSelectedNode","createClientFeature","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","markdownTransformers","nodes","plugins","Component","position","toolbarFixed","groups","toolbarInline"],"mappings":"AAAA;AAIA,SAASA,mBAAmB,QAAQ,iBAAgB;AACpD,SAASC,aAAa,EAAEC,iBAAiB,QAAQ,UAAS;AAM1D,SAASC,QAAQ,QAAQ,uCAAsC;AAC/D,SAASC,eAAe,QAAQ,yCAAwC;AACxE,SAASC,mBAAmB,QAAQ,yCAAwC;AAC5E,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,OAAO,MAAMC,oBAAoBzC,oBAAoB;IACnD0C,sBAAsB;QAACxC;KAAwB;IAC/CyC,OAAO;QAACtC;QAAUF;KAAa;IAC/ByC,SAAS;QACP;YACEC,WAAWlC;YACXmC,UAAU;QACZ;QACA;YACED,WAAWtC;YACXuC,UAAU;QACZ;QACA;YACED,WAAWrC;YACXsC,UAAU;QACZ;QACA;YACED,WAAWnC;YACXoC,UAAU;QACZ;KACD;IACDC,cAAc;QACZC,QAAQpC;IACV;IACAqC,eAAe;QACbD,QAAQpC;IACV;AACF,GAAE"}
@@ -1,12 +1,10 @@
1
- import type { Field, FieldAffectingData, SanitizedConfig } from 'payload';
2
- import type { FeatureProviderProviderServer } from '../types.js';
3
- import type { ClientProps } from './feature.client.js';
1
+ import type { CollectionSlug, Field, FieldAffectingData, SanitizedConfig } from 'payload';
4
2
  export type ExclusiveLinkCollectionsProps = {
5
3
  /**
6
4
  * The collections that should be disabled for internal linking. Overrides the `enableRichTextLink` property in the collection config.
7
5
  * When this property is set, `enabledCollections` will not be available.
8
6
  **/
9
- disabledCollections?: string[];
7
+ disabledCollections?: CollectionSlug[];
10
8
  enabledCollections?: never;
11
9
  } | {
12
10
  disabledCollections?: never;
@@ -14,7 +12,7 @@ export type ExclusiveLinkCollectionsProps = {
14
12
  * The collections that should be enabled for internal linking. Overrides the `enableRichTextLink` property in the collection config
15
13
  * When this property is set, `disabledCollections` will not be available.
16
14
  **/
17
- enabledCollections?: string[];
15
+ enabledCollections?: CollectionSlug[];
18
16
  };
19
17
  export type LinkFeatureServerProps = ExclusiveLinkCollectionsProps & {
20
18
  /**
@@ -33,5 +31,5 @@ export type LinkFeatureServerProps = ExclusiveLinkCollectionsProps & {
33
31
  */
34
32
  maxDepth?: number;
35
33
  };
36
- export declare const LinkFeature: FeatureProviderProviderServer<LinkFeatureServerProps, ClientProps>;
34
+ export declare const LinkFeature: import("../typesServer.js").FeatureProviderProviderServer<LinkFeatureServerProps, LinkFeatureServerProps, ExclusiveLinkCollectionsProps>;
37
35
  //# sourceMappingURL=feature.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../src/features/link/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAMjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AActD,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,kBAAkB,EAAE,CAAA;KACpC,KAAK,CAAC,KAAK,GAAG,kBAAkB,CAAC,EAAE,CAAC,GACrC,KAAK,EAAE,CAAA;IACX;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,6BAA6B,CAAC,sBAAsB,EAAE,WAAW,CA8I1F,CAAA"}
1
+ {"version":3,"file":"feature.server.d.ts","sourceRoot":"","sources":["../../../src/features/link/feature.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAU,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAqBjG,MAAM,MAAM,6BAA6B,GACrC;IACE;;;QAGI;IACJ,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAA;IAGtC,kBAAkB,CAAC,EAAE,KAAK,CAAA;CAC3B,GACD;IAEE,mBAAmB,CAAC,EAAE,KAAK,CAAA;IAE3B;;;QAGI;IACJ,kBAAkB,CAAC,EAAE,cAAc,EAAE,CAAA;CACtC,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,kBAAkB,EAAE,CAAA;KACpC,KAAK,CAAC,KAAK,GAAG,kBAAkB,CAAC,EAAE,CAAC,GACrC,KAAK,EAAE,CAAA;IACX;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,WAAW,0IA6ItB,CAAA"}
@@ -2,7 +2,8 @@ import { traverseFields } from '@payloadcms/ui/utilities/buildFieldSchemaMap/tra
2
2
  import { sanitizeFields } from 'payload';
3
3
  import { deepCopyObject } from 'payload/shared';
4
4
  // eslint-disable-next-line payload/no-imports-from-exports-dir
5
- import { LinkFeatureClientComponent } from '../../exports/client/index.js';
5
+ import { LinkFeatureClient } from '../../exports/client/index.js';
6
+ import { createServerFeature } from '../../utilities/createServerFeature.js';
6
7
  import { convertLexicalNodesToHTML } from '../converters/html/converter/index.js';
7
8
  import { createNode } from '../typeUtilities.js';
8
9
  import { linkPopulationPromiseHOC } from './graphQLPopulationPromise.js';
@@ -12,129 +13,126 @@ import { AutoLinkNode } from './nodes/AutoLinkNode.js';
12
13
  import { LinkNode } from './nodes/LinkNode.js';
13
14
  import { transformExtraFields } from './plugins/floatingLinkEditor/utilities.js';
14
15
  import { linkValidation } from './validate.js';
15
- export const LinkFeature = (props)=>{
16
- if (!props) {
17
- props = {};
18
- }
19
- return {
20
- feature: async ({ config: _config, isRoot })=>{
21
- const validRelationships = _config.collections.map((c)=>c.slug) || [];
22
- const _transformedFields = transformExtraFields(deepCopyObject(props.fields), _config, props.enabledCollections, props.disabledCollections, props.maxDepth);
23
- const sanitizedFields = await sanitizeFields({
24
- config: _config,
25
- fields: _transformedFields,
26
- requireFieldLevelRichTextEditor: isRoot,
27
- validRelationships
28
- });
29
- props.fields = sanitizedFields;
30
- // the text field is not included in the node data.
31
- // Thus, for tasks like validation, we do not want to pass it a text field in the schema which will never have data.
32
- // Otherwise, it will cause a validation error (field is required).
33
- const sanitizedFieldsWithoutText = deepCopyObject(sanitizedFields).filter((field)=>field.name !== 'text');
34
- return {
35
- ClientComponent: LinkFeatureClientComponent,
36
- clientFeatureProps: {
37
- disabledCollections: props.disabledCollections,
38
- enabledCollections: props.enabledCollections
39
- },
40
- generateSchemaMap: ({ config, i18n })=>{
41
- if (!sanitizedFields || !Array.isArray(sanitizedFields) || sanitizedFields.length === 0) {
42
- return null;
43
- }
44
- const schemaMap = new Map();
45
- const validRelationships = config.collections.map((c)=>c.slug) || [];
46
- schemaMap.set('fields', sanitizedFields);
47
- traverseFields({
48
- config,
49
- fields: sanitizedFields,
50
- i18n,
51
- schemaMap,
52
- schemaPath: 'fields',
53
- validRelationships
54
- });
55
- return schemaMap;
56
- },
57
- i18n,
58
- markdownTransformers: [
59
- LinkMarkdownTransformer
60
- ],
61
- nodes: [
62
- createNode({
63
- converters: {
64
- html: {
65
- converter: async ({ converters, node, parent, req })=>{
66
- const childrenText = await convertLexicalNodesToHTML({
67
- converters,
68
- lexicalNodes: node.children,
69
- parent: {
70
- ...node,
71
- parent
72
- },
73
- req
74
- });
75
- const rel = node.fields.newTab ? ' rel="noopener noreferrer"' : '';
76
- const target = node.fields.newTab ? ' target="_blank"' : '';
77
- let href = node.fields.url;
78
- if (node.fields.linkType === 'internal') {
79
- href = typeof node.fields.doc?.value === 'string' ? node.fields.doc?.value : node.fields.doc?.value?.id;
80
- }
81
- return `<a href="${href}"${target}${rel}>${childrenText}</a>`;
82
- },
83
- nodeTypes: [
84
- AutoLinkNode.getType()
85
- ]
86
- }
87
- },
88
- node: AutoLinkNode,
89
- // Since AutoLinkNodes are just internal links, they need no hooks or graphQL population promises
90
- validations: [
91
- linkValidation(props, sanitizedFieldsWithoutText)
92
- ]
93
- }),
94
- createNode({
95
- converters: {
96
- html: {
97
- converter: async ({ converters, node, parent, req })=>{
98
- const childrenText = await convertLexicalNodesToHTML({
99
- converters,
100
- lexicalNodes: node.children,
101
- parent: {
102
- ...node,
103
- parent
104
- },
105
- req
106
- });
107
- const rel = node.fields.newTab ? ' rel="noopener noreferrer"' : '';
108
- const target = node.fields.newTab ? ' target="_blank"' : '';
109
- const href = node.fields.linkType === 'custom' ? node.fields.url : node.fields.doc?.value;
110
- return `<a href="${href}"${target}${rel}>${childrenText}</a>`;
111
- },
112
- nodeTypes: [
113
- LinkNode.getType()
114
- ]
115
- }
116
- },
117
- getSubFields: ()=>{
118
- return sanitizedFieldsWithoutText;
119
- },
120
- getSubFieldsData: ({ node })=>{
121
- return node?.fields;
122
- },
123
- graphQLPopulationPromises: [
124
- linkPopulationPromiseHOC(props)
125
- ],
126
- node: LinkNode,
127
- validations: [
128
- linkValidation(props, sanitizedFieldsWithoutText)
129
- ]
130
- })
131
- ],
132
- serverFeatureProps: props
133
- };
134
- },
135
- key: 'link',
136
- serverFeatureProps: props
137
- };
138
- };
16
+ export const LinkFeature = createServerFeature({
17
+ feature: async ({ config: _config, isRoot, props })=>{
18
+ if (!props) {
19
+ props = {};
20
+ }
21
+ const validRelationships = _config.collections.map((c)=>c.slug) || [];
22
+ const _transformedFields = transformExtraFields(deepCopyObject(props.fields), _config, props.enabledCollections, props.disabledCollections, props.maxDepth);
23
+ const sanitizedFields = await sanitizeFields({
24
+ config: _config,
25
+ fields: _transformedFields,
26
+ requireFieldLevelRichTextEditor: isRoot,
27
+ validRelationships
28
+ });
29
+ props.fields = sanitizedFields;
30
+ // the text field is not included in the node data.
31
+ // Thus, for tasks like validation, we do not want to pass it a text field in the schema which will never have data.
32
+ // Otherwise, it will cause a validation error (field is required).
33
+ const sanitizedFieldsWithoutText = deepCopyObject(sanitizedFields).filter((field)=>field.name !== 'text');
34
+ return {
35
+ ClientFeature: LinkFeatureClient,
36
+ clientFeatureProps: {
37
+ disabledCollections: props.disabledCollections,
38
+ enabledCollections: props.enabledCollections
39
+ },
40
+ generateSchemaMap: ({ config, i18n })=>{
41
+ if (!sanitizedFields || !Array.isArray(sanitizedFields) || sanitizedFields.length === 0) {
42
+ return null;
43
+ }
44
+ const schemaMap = new Map();
45
+ const validRelationships = config.collections.map((c)=>c.slug) || [];
46
+ schemaMap.set('fields', sanitizedFields);
47
+ traverseFields({
48
+ config,
49
+ fields: sanitizedFields,
50
+ i18n,
51
+ schemaMap,
52
+ schemaPath: 'fields',
53
+ validRelationships
54
+ });
55
+ return schemaMap;
56
+ },
57
+ i18n,
58
+ markdownTransformers: [
59
+ LinkMarkdownTransformer
60
+ ],
61
+ nodes: [
62
+ createNode({
63
+ converters: {
64
+ html: {
65
+ converter: async ({ converters, node, parent, req })=>{
66
+ const childrenText = await convertLexicalNodesToHTML({
67
+ converters,
68
+ lexicalNodes: node.children,
69
+ parent: {
70
+ ...node,
71
+ parent
72
+ },
73
+ req
74
+ });
75
+ const rel = node.fields.newTab ? ' rel="noopener noreferrer"' : '';
76
+ const target = node.fields.newTab ? ' target="_blank"' : '';
77
+ let href = node.fields.url;
78
+ if (node.fields.linkType === 'internal') {
79
+ href = typeof node.fields.doc?.value === 'string' ? node.fields.doc?.value : node.fields.doc?.value?.id;
80
+ }
81
+ return `<a href="${href}"${target}${rel}>${childrenText}</a>`;
82
+ },
83
+ nodeTypes: [
84
+ AutoLinkNode.getType()
85
+ ]
86
+ }
87
+ },
88
+ node: AutoLinkNode,
89
+ // Since AutoLinkNodes are just internal links, they need no hooks or graphQL population promises
90
+ validations: [
91
+ linkValidation(props, sanitizedFieldsWithoutText)
92
+ ]
93
+ }),
94
+ createNode({
95
+ converters: {
96
+ html: {
97
+ converter: async ({ converters, node, parent, req })=>{
98
+ const childrenText = await convertLexicalNodesToHTML({
99
+ converters,
100
+ lexicalNodes: node.children,
101
+ parent: {
102
+ ...node,
103
+ parent
104
+ },
105
+ req
106
+ });
107
+ const rel = node.fields.newTab ? ' rel="noopener noreferrer"' : '';
108
+ const target = node.fields.newTab ? ' target="_blank"' : '';
109
+ const href = node.fields.linkType === 'custom' ? node.fields.url : node.fields.doc?.value;
110
+ return `<a href="${href}"${target}${rel}>${childrenText}</a>`;
111
+ },
112
+ nodeTypes: [
113
+ LinkNode.getType()
114
+ ]
115
+ }
116
+ },
117
+ getSubFields: ()=>{
118
+ return sanitizedFieldsWithoutText;
119
+ },
120
+ getSubFieldsData: ({ node })=>{
121
+ return node?.fields;
122
+ },
123
+ graphQLPopulationPromises: [
124
+ linkPopulationPromiseHOC(props)
125
+ ],
126
+ node: LinkNode,
127
+ validations: [
128
+ linkValidation(props, sanitizedFieldsWithoutText)
129
+ ]
130
+ })
131
+ ],
132
+ sanitizedServerFeatureProps: props
133
+ };
134
+ },
135
+ key: 'link'
136
+ });
139
137
 
140
138
  //# sourceMappingURL=feature.server.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/features/link/feature.server.ts"],"sourcesContent":["import type { Config, Field, FieldAffectingData, SanitizedConfig } from 'payload'\n\nimport { traverseFields } from '@payloadcms/ui/utilities/buildFieldSchemaMap/traverseFields'\nimport { sanitizeFields } from 'payload'\nimport { deepCopyObject } from 'payload/shared'\n\nimport type { FeatureProviderProviderServer } from '../types.js'\nimport type { ClientProps } from './feature.client.js'\n\n// eslint-disable-next-line payload/no-imports-from-exports-dir\nimport { LinkFeatureClientComponent } from '../../exports/client/index.js'\nimport { convertLexicalNodesToHTML } from '../converters/html/converter/index.js'\nimport { createNode } from '../typeUtilities.js'\nimport { linkPopulationPromiseHOC } from './graphQLPopulationPromise.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 { 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?:\n | ((args: {\n config: SanitizedConfig\n defaultFields: FieldAffectingData[]\n }) => (Field | FieldAffectingData)[])\n | 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 // the text field is not included in the node data.\n // Thus, for tasks like validation, we do not want to pass it a text field in the schema which will never have data.\n // Otherwise, it will cause a validation error (field is required).\n const sanitizedFieldsWithoutText = deepCopyObject(sanitizedFields).filter(\n (field) => field.name !== 'text',\n )\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, req }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n req,\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 node: AutoLinkNode,\n // Since AutoLinkNodes are just internal links, they need no hooks or graphQL population promises\n validations: [linkValidation(props, sanitizedFieldsWithoutText)],\n }),\n createNode({\n converters: {\n html: {\n converter: async ({ converters, node, parent, req }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n req,\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 getSubFields: () => {\n return sanitizedFieldsWithoutText\n },\n getSubFieldsData: ({ node }) => {\n return node?.fields\n },\n graphQLPopulationPromises: [linkPopulationPromiseHOC(props)],\n node: LinkNode,\n validations: [linkValidation(props, sanitizedFieldsWithoutText)],\n }),\n ],\n serverFeatureProps: props,\n }\n },\n key: 'link',\n serverFeatureProps: props,\n }\n}\n"],"names":["traverseFields","sanitizeFields","deepCopyObject","LinkFeatureClientComponent","convertLexicalNodesToHTML","createNode","linkPopulationPromiseHOC","i18n","LinkMarkdownTransformer","AutoLinkNode","LinkNode","transformExtraFields","linkValidation","LinkFeature","props","feature","config","_config","isRoot","validRelationships","collections","map","c","slug","_transformedFields","fields","enabledCollections","disabledCollections","maxDepth","sanitizedFields","requireFieldLevelRichTextEditor","sanitizedFieldsWithoutText","filter","field","name","ClientComponent","clientFeatureProps","generateSchemaMap","Array","isArray","length","schemaMap","Map","set","schemaPath","markdownTransformers","nodes","converters","html","converter","node","parent","req","childrenText","lexicalNodes","children","rel","newTab","target","href","url","linkType","doc","value","id","nodeTypes","getType","validations","getSubFields","getSubFieldsData","graphQLPopulationPromises","serverFeatureProps","key"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
1
+ {"version":3,"sources":["../../../src/features/link/feature.server.ts"],"sourcesContent":["import type { CollectionSlug, Config, Field, FieldAffectingData, SanitizedConfig } from 'payload'\n\nimport { traverseFields } from '@payloadcms/ui/utilities/buildFieldSchemaMap/traverseFields'\nimport { sanitizeFields } from 'payload'\nimport { deepCopyObject } from 'payload/shared'\n\nimport type { ClientProps } from './feature.client.js'\n\n// eslint-disable-next-line payload/no-imports-from-exports-dir\nimport { LinkFeatureClient } from '../../exports/client/index.js'\nimport { createServerFeature } from '../../utilities/createServerFeature.js'\nimport { convertLexicalNodesToHTML } from '../converters/html/converter/index.js'\nimport { createNode } from '../typeUtilities.js'\nimport { linkPopulationPromiseHOC } from './graphQLPopulationPromise.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 { 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?: CollectionSlug[]\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?: CollectionSlug[]\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: FieldAffectingData[]\n }) => (Field | FieldAffectingData)[])\n | 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 = createServerFeature<\n LinkFeatureServerProps,\n LinkFeatureServerProps,\n ClientProps\n>({\n feature: async ({ config: _config, isRoot, props }) => {\n if (!props) {\n props = {}\n }\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 // the text field is not included in the node data.\n // Thus, for tasks like validation, we do not want to pass it a text field in the schema which will never have data.\n // Otherwise, it will cause a validation error (field is required).\n const sanitizedFieldsWithoutText = deepCopyObject(sanitizedFields).filter(\n (field) => field.name !== 'text',\n )\n\n return {\n ClientFeature: LinkFeatureClient,\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, req }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n req,\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 node: AutoLinkNode,\n // Since AutoLinkNodes are just internal links, they need no hooks or graphQL population promises\n validations: [linkValidation(props, sanitizedFieldsWithoutText)],\n }),\n createNode({\n converters: {\n html: {\n converter: async ({ converters, node, parent, req }) => {\n const childrenText = await convertLexicalNodesToHTML({\n converters,\n lexicalNodes: node.children,\n parent: {\n ...node,\n parent,\n },\n req,\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 getSubFields: () => {\n return sanitizedFieldsWithoutText\n },\n getSubFieldsData: ({ node }) => {\n return node?.fields\n },\n graphQLPopulationPromises: [linkPopulationPromiseHOC(props)],\n node: LinkNode,\n validations: [linkValidation(props, sanitizedFieldsWithoutText)],\n }),\n ],\n sanitizedServerFeatureProps: props,\n }\n },\n key: 'link',\n})\n"],"names":["traverseFields","sanitizeFields","deepCopyObject","LinkFeatureClient","createServerFeature","convertLexicalNodesToHTML","createNode","linkPopulationPromiseHOC","i18n","LinkMarkdownTransformer","AutoLinkNode","LinkNode","transformExtraFields","linkValidation","LinkFeature","feature","config","_config","isRoot","props","validRelationships","collections","map","c","slug","_transformedFields","fields","enabledCollections","disabledCollections","maxDepth","sanitizedFields","requireFieldLevelRichTextEditor","sanitizedFieldsWithoutText","filter","field","name","ClientFeature","clientFeatureProps","generateSchemaMap","Array","isArray","length","schemaMap","Map","set","schemaPath","markdownTransformers","nodes","converters","html","converter","node","parent","req","childrenText","lexicalNodes","children","rel","newTab","target","href","url","linkType","doc","value","id","nodeTypes","getType","validations","getSubFields","getSubFieldsData","graphQLPopulationPromises","sanitizedServerFeatureProps","key"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import type { PopulationPromise } from '../types.js';
1
+ import type { PopulationPromise } from '../typesServer.js';
2
2
  import type { LinkFeatureServerProps } from './feature.server.js';
3
3
  import type { SerializedLinkNode } from './nodes/types.js';
4
4
  export declare const linkPopulationPromiseHOC: (props: LinkFeatureServerProps) => PopulationPromise<SerializedLinkNode>;
@@ -1 +1 @@
1
- {"version":3,"file":"graphQLPopulationPromise.d.ts","sourceRoot":"","sources":["../../../src/features/link/graphQLPopulationPromise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAI1D,eAAO,MAAM,wBAAwB,UAC5B,sBAAsB,KAC5B,kBAAkB,kBAAkB,CA2CtC,CAAA"}
1
+ {"version":3,"file":"graphQLPopulationPromise.d.ts","sourceRoot":"","sources":["../../../src/features/link/graphQLPopulationPromise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAI1D,eAAO,MAAM,wBAAwB,UAC5B,sBAAsB,KAC5B,iBAAiB,CAAC,kBAAkB,CA2CtC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/features/link/graphQLPopulationPromise.ts"],"sourcesContent":["import type { PopulationPromise } from '../types.js'\nimport type { LinkFeatureServerProps } from './feature.server.js'\nimport type { SerializedLinkNode } from './nodes/types.js'\n\nimport { recursivelyPopulateFieldsForGraphQL } from '../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js'\n\nexport const linkPopulationPromiseHOC = (\n props: LinkFeatureServerProps,\n): PopulationPromise<SerializedLinkNode> => {\n return ({\n context,\n currentDepth,\n depth,\n draft,\n editorPopulationPromises,\n fieldPromises,\n findMany,\n flattenLocales,\n node,\n overrideAccess,\n populationPromises,\n req,\n showHiddenFields,\n }) => {\n if (!props.fields?.length) {\n return\n }\n\n /**\n * Should populate all fields, including the doc field (for internal links), as it's treated like a normal field\n */\n if (Array.isArray(props.fields)) {\n recursivelyPopulateFieldsForGraphQL({\n context,\n currentDepth,\n data: node.fields,\n depth,\n draft,\n editorPopulationPromises,\n fieldPromises,\n fields: props.fields,\n findMany,\n flattenLocales,\n overrideAccess,\n populationPromises,\n req,\n showHiddenFields,\n siblingDoc: node.fields,\n })\n }\n }\n}\n"],"names":["recursivelyPopulateFieldsForGraphQL","linkPopulationPromiseHOC","props","context","currentDepth","depth","draft","editorPopulationPromises","fieldPromises","findMany","flattenLocales","node","overrideAccess","populationPromises","req","showHiddenFields","fields","length","Array","isArray","data","siblingDoc"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAIA,SAASA,mCAAmC,QAAQ,+DAA8D;AAElH,OAAO,MAAMC,2BAA2B,CACtCC;IAEA,OAAO,CAAC,EACNC,OAAO,EACPC,YAAY,EACZC,KAAK,EACLC,KAAK,EACLC,wBAAwB,EACxBC,aAAa,EACbC,QAAQ,EACRC,cAAc,EACdC,IAAI,EACJC,cAAc,EACdC,kBAAkB,EAClBC,GAAG,EACHC,gBAAgB,EACjB;QACC,IAAI,CAACb,MAAMc,MAAM,EAAEC,QAAQ;YACzB;QACF;QAEA;;KAEC,GACD,IAAIC,MAAMC,OAAO,CAACjB,MAAMc,MAAM,GAAG;YAC/BhB,oCAAoC;gBAClCG;gBACAC;gBACAgB,MAAMT,KAAKK,MAAM;gBACjBX;gBACAC;gBACAC;gBACAC;gBACAQ,QAAQd,MAAMc,MAAM;gBACpBP;gBACAC;gBACAE;gBACAC;gBACAC;gBACAC;gBACAM,YAAYV,KAAKK,MAAM;YACzB;QACF;IACF;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../src/features/link/graphQLPopulationPromise.ts"],"sourcesContent":["import type { PopulationPromise } from '../typesServer.js'\nimport type { LinkFeatureServerProps } from './feature.server.js'\nimport type { SerializedLinkNode } from './nodes/types.js'\n\nimport { recursivelyPopulateFieldsForGraphQL } from '../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js'\n\nexport const linkPopulationPromiseHOC = (\n props: LinkFeatureServerProps,\n): PopulationPromise<SerializedLinkNode> => {\n return ({\n context,\n currentDepth,\n depth,\n draft,\n editorPopulationPromises,\n fieldPromises,\n findMany,\n flattenLocales,\n node,\n overrideAccess,\n populationPromises,\n req,\n showHiddenFields,\n }) => {\n if (!props.fields?.length) {\n return\n }\n\n /**\n * Should populate all fields, including the doc field (for internal links), as it's treated like a normal field\n */\n if (Array.isArray(props.fields)) {\n recursivelyPopulateFieldsForGraphQL({\n context,\n currentDepth,\n data: node.fields,\n depth,\n draft,\n editorPopulationPromises,\n fieldPromises,\n fields: props.fields,\n findMany,\n flattenLocales,\n overrideAccess,\n populationPromises,\n req,\n showHiddenFields,\n siblingDoc: node.fields,\n })\n }\n }\n}\n"],"names":["recursivelyPopulateFieldsForGraphQL","linkPopulationPromiseHOC","props","context","currentDepth","depth","draft","editorPopulationPromises","fieldPromises","findMany","flattenLocales","node","overrideAccess","populationPromises","req","showHiddenFields","fields","length","Array","isArray","data","siblingDoc"],"mappings":"AAIA,SAASA,mCAAmC,QAAQ,+DAA8D;AAElH,OAAO,MAAMC,2BAA2B,CACtCC;IAEA,OAAO,CAAC,EACNC,OAAO,EACPC,YAAY,EACZC,KAAK,EACLC,KAAK,EACLC,wBAAwB,EACxBC,aAAa,EACbC,QAAQ,EACRC,cAAc,EACdC,IAAI,EACJC,cAAc,EACdC,kBAAkB,EAClBC,GAAG,EACHC,gBAAgB,EACjB;QACC,IAAI,CAACb,MAAMc,MAAM,EAAEC,QAAQ;YACzB;QACF;QAEA;;KAEC,GACD,IAAIC,MAAMC,OAAO,CAACjB,MAAMc,MAAM,GAAG;YAC/BhB,oCAAoC;gBAClCG;gBACAC;gBACAgB,MAAMT,KAAKK,MAAM;gBACjBX;gBACAC;gBACAC;gBACAC;gBACAQ,QAAQd,MAAMc,MAAM;gBACpBP;gBACAC;gBACAE;gBACAC;gBACAC;gBACAC;gBACAM,YAAYV,KAAKK,MAAM;YACzB;QACF;IACF;AACF,EAAC"}