payload 4.0.0-internal.38b7f1d → 4.0.0-internal.40de3ec

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 (578) hide show
  1. package/dist/admin/RichText.d.ts +24 -17
  2. package/dist/admin/RichText.d.ts.map +1 -1
  3. package/dist/admin/RichText.js.map +1 -1
  4. package/dist/admin/adapters/cookies.d.ts +21 -0
  5. package/dist/admin/adapters/cookies.d.ts.map +1 -0
  6. package/dist/admin/adapters/cookies.js +3 -0
  7. package/dist/admin/adapters/cookies.js.map +1 -0
  8. package/dist/admin/adapters/devReload.d.ts +9 -0
  9. package/dist/admin/adapters/devReload.d.ts.map +1 -0
  10. package/dist/admin/adapters/devReload.js +6 -0
  11. package/dist/admin/adapters/devReload.js.map +1 -0
  12. package/dist/admin/adapters/index.d.ts +7 -0
  13. package/dist/admin/adapters/index.d.ts.map +1 -0
  14. package/dist/admin/adapters/index.js +3 -0
  15. package/dist/admin/adapters/index.js.map +1 -0
  16. package/dist/admin/adapters/render.d.ts +16 -0
  17. package/dist/admin/adapters/render.d.ts.map +1 -0
  18. package/dist/admin/adapters/render.js +7 -0
  19. package/dist/admin/adapters/render.js.map +1 -0
  20. package/dist/admin/adapters/router.d.ts +56 -0
  21. package/dist/admin/adapters/router.d.ts.map +1 -0
  22. package/dist/admin/adapters/router.js +3 -0
  23. package/dist/admin/adapters/router.js.map +1 -0
  24. package/dist/admin/adapters/server.d.ts +23 -0
  25. package/dist/admin/adapters/server.d.ts.map +1 -0
  26. package/dist/admin/adapters/server.js +6 -0
  27. package/dist/admin/adapters/server.js.map +1 -0
  28. package/dist/admin/adapters/views.d.ts +36 -0
  29. package/dist/admin/adapters/views.d.ts.map +1 -0
  30. package/dist/admin/adapters/views.js +7 -0
  31. package/dist/admin/adapters/views.js.map +1 -0
  32. package/dist/admin/elements/Table.d.ts +1 -0
  33. package/dist/admin/elements/Table.d.ts.map +1 -1
  34. package/dist/admin/elements/Table.js.map +1 -1
  35. package/dist/admin/forms/Field.d.ts +7 -0
  36. package/dist/admin/forms/Field.d.ts.map +1 -1
  37. package/dist/admin/forms/Field.js.map +1 -1
  38. package/dist/admin/forms/Form.d.ts +29 -0
  39. package/dist/admin/forms/Form.d.ts.map +1 -1
  40. package/dist/admin/forms/Form.js.map +1 -1
  41. package/dist/admin/functions/index.d.ts +9 -0
  42. package/dist/admin/functions/index.d.ts.map +1 -1
  43. package/dist/admin/functions/index.js.map +1 -1
  44. package/dist/admin/types.d.ts +1 -1
  45. package/dist/admin/types.d.ts.map +1 -1
  46. package/dist/admin/types.js.map +1 -1
  47. package/dist/admin/views/dashboard.d.ts +7 -0
  48. package/dist/admin/views/dashboard.d.ts.map +1 -1
  49. package/dist/admin/views/dashboard.js.map +1 -1
  50. package/dist/admin/views/document.d.ts +7 -1
  51. package/dist/admin/views/document.d.ts.map +1 -1
  52. package/dist/admin/views/document.js.map +1 -1
  53. package/dist/admin/views/hierarchyList.d.ts +1 -0
  54. package/dist/admin/views/hierarchyList.d.ts.map +1 -1
  55. package/dist/admin/views/hierarchyList.js.map +1 -1
  56. package/dist/admin/views/list.d.ts +5 -1
  57. package/dist/admin/views/list.d.ts.map +1 -1
  58. package/dist/admin/views/list.js.map +1 -1
  59. package/dist/auth/cookies.d.ts.map +1 -1
  60. package/dist/auth/defaultAccess.d.ts +1 -1
  61. package/dist/auth/defaultAccess.d.ts.map +1 -1
  62. package/dist/auth/defaultAccess.js +1 -1
  63. package/dist/auth/defaultAccess.js.map +1 -1
  64. package/dist/auth/defaultUser.d.ts.map +1 -1
  65. package/dist/auth/defaultUser.js +2 -1
  66. package/dist/auth/defaultUser.js.map +1 -1
  67. package/dist/auth/ensureUsernameOrEmail.d.ts.map +1 -1
  68. package/dist/auth/executeAccess.d.ts.map +1 -1
  69. package/dist/auth/executeAuthStrategies.d.ts.map +1 -1
  70. package/dist/auth/extractAccessFromPermission.d.ts.map +1 -1
  71. package/dist/auth/extractJWT.d.ts.map +1 -1
  72. package/dist/auth/getAuthFields.d.ts.map +1 -1
  73. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  74. package/dist/auth/getLoginOptions.d.ts.map +1 -1
  75. package/dist/auth/isUserLocked.d.ts.map +1 -1
  76. package/dist/auth/jwt.d.ts.map +1 -1
  77. package/dist/auth/operations/access.d.ts.map +1 -1
  78. package/dist/auth/operations/auth.d.ts.map +1 -1
  79. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  80. package/dist/auth/operations/init.d.ts.map +1 -1
  81. package/dist/auth/operations/local/auth.d.ts.map +1 -1
  82. package/dist/auth/operations/login.d.ts.map +1 -1
  83. package/dist/auth/operations/logout.d.ts.map +1 -1
  84. package/dist/auth/operations/me.d.ts.map +1 -1
  85. package/dist/auth/operations/refresh.d.ts.map +1 -1
  86. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  87. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  88. package/dist/auth/operations/unlock.d.ts.map +1 -1
  89. package/dist/auth/operations/verifyEmail.d.ts.map +1 -1
  90. package/dist/auth/sessions.d.ts.map +1 -1
  91. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  92. package/dist/auth/strategies/apiKey.js +6 -17
  93. package/dist/auth/strategies/apiKey.js.map +1 -1
  94. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  95. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  96. package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
  97. package/dist/auth/strategies/local/register.d.ts.map +1 -1
  98. package/dist/auth/strategies/local/resetLoginAttempts.d.ts.map +1 -1
  99. package/dist/bin/build.d.ts +25 -0
  100. package/dist/bin/build.d.ts.map +1 -0
  101. package/dist/bin/build.js +80 -0
  102. package/dist/bin/build.js.map +1 -0
  103. package/dist/bin/build.spec.js +170 -0
  104. package/dist/bin/build.spec.js.map +1 -0
  105. package/dist/bin/generateImportMap/index.d.ts.map +1 -1
  106. package/dist/bin/generateImportMap/index.js +8 -5
  107. package/dist/bin/generateImportMap/index.js.map +1 -1
  108. package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -1
  109. package/dist/bin/generateImportMap/iterateFields.js +4 -1
  110. package/dist/bin/generateImportMap/iterateFields.js.map +1 -1
  111. package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -1
  112. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts +5 -1
  113. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -1
  114. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js +24 -18
  115. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -1
  116. package/dist/bin/generateTypes.d.ts +3 -2
  117. package/dist/bin/generateTypes.d.ts.map +1 -1
  118. package/dist/bin/generateTypes.js +11 -1
  119. package/dist/bin/generateTypes.js.map +1 -1
  120. package/dist/bin/index.d.ts.map +1 -1
  121. package/dist/bin/index.js +9 -0
  122. package/dist/bin/index.js.map +1 -1
  123. package/dist/bin/loadEnv.d.ts +3 -1
  124. package/dist/bin/loadEnv.d.ts.map +1 -1
  125. package/dist/bin/loadEnv.js +40 -10
  126. package/dist/bin/loadEnv.js.map +1 -1
  127. package/dist/bin/migrate.d.ts.map +1 -1
  128. package/dist/collections/config/client.d.ts.map +1 -1
  129. package/dist/collections/config/defaults.d.ts.map +1 -1
  130. package/dist/collections/config/defaults.js +2 -2
  131. package/dist/collections/config/defaults.js.map +1 -1
  132. package/dist/collections/config/defaults.spec.js +47 -0
  133. package/dist/collections/config/defaults.spec.js.map +1 -0
  134. package/dist/collections/config/sanitize.d.ts +10 -1
  135. package/dist/collections/config/sanitize.d.ts.map +1 -1
  136. package/dist/collections/config/sanitizeCompoundIndexes.d.ts.map +1 -1
  137. package/dist/collections/config/types.d.ts +4 -7
  138. package/dist/collections/config/types.d.ts.map +1 -1
  139. package/dist/collections/config/types.js.map +1 -1
  140. package/dist/collections/config/useAsTitle.d.ts.map +1 -1
  141. package/dist/collections/dataloader.d.ts.map +1 -1
  142. package/dist/collections/operations/count.d.ts.map +1 -1
  143. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  144. package/dist/collections/operations/create.d.ts.map +1 -1
  145. package/dist/collections/operations/create.js +1 -0
  146. package/dist/collections/operations/create.js.map +1 -1
  147. package/dist/collections/operations/delete.d.ts.map +1 -1
  148. package/dist/collections/operations/delete.js +3 -0
  149. package/dist/collections/operations/delete.js.map +1 -1
  150. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  151. package/dist/collections/operations/duplicate.d.ts.map +1 -1
  152. package/dist/collections/operations/find.d.ts.map +1 -1
  153. package/dist/collections/operations/findByID.d.ts.map +1 -1
  154. package/dist/collections/operations/findDistinct.d.ts.map +1 -1
  155. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  156. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  157. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  158. package/dist/collections/operations/local/duplicate.js.map +1 -1
  159. package/dist/collections/operations/local/find.d.ts.map +1 -1
  160. package/dist/collections/operations/local/find.js.map +1 -1
  161. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  162. package/dist/collections/operations/local/findByID.js.map +1 -1
  163. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  164. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  165. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  166. package/dist/collections/operations/local/findVersions.js.map +1 -1
  167. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  168. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  169. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  170. package/dist/collections/operations/update.d.ts.map +1 -1
  171. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  172. package/dist/collections/operations/utilities/buildAfterOperation.d.ts.map +1 -1
  173. package/dist/collections/operations/utilities/sanitizeSortQuery.d.ts.map +1 -1
  174. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  175. package/dist/collections/operations/utilities/update.js +16 -8
  176. package/dist/collections/operations/utilities/update.js.map +1 -1
  177. package/dist/config/build.d.ts.map +1 -1
  178. package/dist/config/build.js +8 -0
  179. package/dist/config/build.js.map +1 -1
  180. package/dist/config/client.d.ts +1 -1
  181. package/dist/config/client.d.ts.map +1 -1
  182. package/dist/config/client.js +2 -1
  183. package/dist/config/client.js.map +1 -1
  184. package/dist/config/defaults.d.ts.map +1 -1
  185. package/dist/config/orderable/index.d.ts.map +1 -1
  186. package/dist/config/sanitize.d.ts.map +1 -1
  187. package/dist/config/sanitize.js +3 -15
  188. package/dist/config/sanitize.js.map +1 -1
  189. package/dist/config/types.d.ts +77 -19
  190. package/dist/config/types.d.ts.map +1 -1
  191. package/dist/config/types.js +1 -0
  192. package/dist/config/types.js.map +1 -1
  193. package/dist/database/combineQueries.d.ts.map +1 -1
  194. package/dist/database/getLocalizedPaths.d.ts.map +1 -1
  195. package/dist/database/getLocalizedPaths.js +1 -1
  196. package/dist/database/getLocalizedPaths.js.map +1 -1
  197. package/dist/database/migrations/findMigrationDir.d.ts.map +1 -1
  198. package/dist/database/migrations/getPredefinedMigration.d.ts.map +1 -1
  199. package/dist/database/migrations/migrate.d.ts.map +1 -1
  200. package/dist/database/migrations/migrate.js +0 -3
  201. package/dist/database/migrations/migrate.js.map +1 -1
  202. package/dist/database/migrations/migrationsCollection.d.ts.map +1 -1
  203. package/dist/database/migrations/migrationsCollection.js +2 -1
  204. package/dist/database/migrations/migrationsCollection.js.map +1 -1
  205. package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
  206. package/dist/database/migrations/templates/localizeStatus.d.ts.map +1 -1
  207. package/dist/database/migrations/writeMigrationIndex.d.ts.map +1 -1
  208. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  209. package/dist/database/sanitizeWhereQuery.d.ts.map +1 -1
  210. package/dist/database/types.d.ts +0 -29
  211. package/dist/database/types.d.ts.map +1 -1
  212. package/dist/database/types.js.map +1 -1
  213. package/dist/duplicateDocument/index.d.ts.map +1 -1
  214. package/dist/email/getStringifiedToAddress.d.ts.map +1 -1
  215. package/dist/exports/migrations.d.ts +0 -1
  216. package/dist/exports/migrations.d.ts.map +1 -1
  217. package/dist/exports/migrations.js +1 -2
  218. package/dist/exports/migrations.js.map +1 -1
  219. package/dist/exports/shared.d.ts +20 -0
  220. package/dist/exports/shared.d.ts.map +1 -1
  221. package/dist/exports/shared.js +20 -0
  222. package/dist/exports/shared.js.map +1 -1
  223. package/dist/fields/baseFields/slug/countVersions.d.ts.map +1 -1
  224. package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
  225. package/dist/fields/baseFields/slug/index.js +1 -1
  226. package/dist/fields/baseFields/slug/index.js.map +1 -1
  227. package/dist/fields/config/client.d.ts +3 -3
  228. package/dist/fields/config/client.d.ts.map +1 -1
  229. package/dist/fields/config/client.js +2 -10
  230. package/dist/fields/config/client.js.map +1 -1
  231. package/dist/fields/config/sanitize.d.ts.map +1 -1
  232. package/dist/fields/config/sanitize.js +2 -14
  233. package/dist/fields/config/sanitize.js.map +1 -1
  234. package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
  235. package/dist/fields/config/types.d.ts +32 -65
  236. package/dist/fields/config/types.d.ts.map +1 -1
  237. package/dist/fields/config/types.js +1 -1
  238. package/dist/fields/config/types.js.map +1 -1
  239. package/dist/fields/getDefaultValue.d.ts.map +1 -1
  240. package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
  241. package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
  242. package/dist/fields/hooks/afterChange/promise.js +1 -1
  243. package/dist/fields/hooks/afterChange/promise.js.map +1 -1
  244. package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
  245. package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
  246. package/dist/fields/hooks/afterRead/promise.js +2 -2
  247. package/dist/fields/hooks/afterRead/promise.js.map +1 -1
  248. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
  249. package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
  250. package/dist/fields/hooks/afterRead/virtualFieldPopulationPromise.d.ts.map +1 -1
  251. package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts.map +1 -1
  252. package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
  253. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  254. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  255. package/dist/fields/hooks/beforeChange/promise.js +3 -3
  256. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  257. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  258. package/dist/fields/hooks/beforeDuplicate/index.d.ts.map +1 -1
  259. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  260. package/dist/fields/hooks/beforeDuplicate/promise.js +2 -2
  261. package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
  262. package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts.map +1 -1
  263. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  264. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  265. package/dist/fields/hooks/beforeValidate/promise.js +1 -1
  266. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  267. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  268. package/dist/fields/isFieldDisabled.d.ts.map +1 -1
  269. package/dist/fields/mergeBaseFields.d.ts.map +1 -1
  270. package/dist/fields/setDefaultBeforeDuplicate.d.ts.map +1 -1
  271. package/dist/fields/validations.d.ts.map +1 -1
  272. package/dist/fields/validations.js +5 -4
  273. package/dist/fields/validations.js.map +1 -1
  274. package/dist/globals/config/client.d.ts.map +1 -1
  275. package/dist/globals/config/sanitize.d.ts +6 -1
  276. package/dist/globals/config/sanitize.d.ts.map +1 -1
  277. package/dist/globals/config/sanitize.js +1 -0
  278. package/dist/globals/config/sanitize.js.map +1 -1
  279. package/dist/globals/config/sanitize.spec.js +43 -0
  280. package/dist/globals/config/sanitize.spec.js.map +1 -0
  281. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  282. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  283. package/dist/globals/operations/findOne.d.ts.map +1 -1
  284. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  285. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  286. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  287. package/dist/globals/operations/local/findOne.js.map +1 -1
  288. package/dist/globals/operations/local/update.d.ts.map +1 -1
  289. package/dist/globals/operations/local/update.js.map +1 -1
  290. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  291. package/dist/globals/operations/update.d.ts.map +1 -1
  292. package/dist/hierarchy/addHierarchyToCollection.d.ts.map +1 -1
  293. package/dist/hierarchy/buildParentField.d.ts.map +1 -1
  294. package/dist/hierarchy/constants.d.ts.map +1 -1
  295. package/dist/hierarchy/getInitialTreeData.d.ts.map +1 -1
  296. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -1
  297. package/dist/hierarchy/hooks/collectionAfterRead.d.ts.map +1 -1
  298. package/dist/hierarchy/hooks/collectionBeforeChange.d.ts.map +1 -1
  299. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -1
  300. package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts.map +1 -1
  301. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -1
  302. package/dist/hierarchy/injectHierarchyButton.d.ts.map +1 -1
  303. package/dist/hierarchy/resolveHierarchyCollections.d.ts.map +1 -1
  304. package/dist/hierarchy/resolveHierarchyCollections.js +1 -1
  305. package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -1
  306. package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -1
  307. package/dist/hierarchy/sanitizeHierarchyCollection.js +3 -1
  308. package/dist/hierarchy/sanitizeHierarchyCollection.js.map +1 -1
  309. package/dist/hierarchy/types.d.ts +8 -1
  310. package/dist/hierarchy/types.d.ts.map +1 -1
  311. package/dist/hierarchy/types.js.map +1 -1
  312. package/dist/index.bundled.d.ts +496 -303
  313. package/dist/index.d.ts +11 -11
  314. package/dist/index.d.ts.map +1 -1
  315. package/dist/index.js +51 -34
  316. package/dist/index.js.map +1 -1
  317. package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
  318. package/dist/kv/adapters/DatabaseKVAdapter.js +1 -0
  319. package/dist/kv/adapters/DatabaseKVAdapter.js.map +1 -1
  320. package/dist/locked-documents/config.d.ts.map +1 -1
  321. package/dist/locked-documents/config.js +2 -1
  322. package/dist/locked-documents/config.js.map +1 -1
  323. package/dist/preferences/config.d.ts.map +1 -1
  324. package/dist/preferences/config.js +2 -1
  325. package/dist/preferences/config.js.map +1 -1
  326. package/dist/preferences/deleteUserPreferences.d.ts.map +1 -1
  327. package/dist/query-presets/access.d.ts.map +1 -1
  328. package/dist/query-presets/config.d.ts.map +1 -1
  329. package/dist/query-presets/config.js +8 -7
  330. package/dist/query-presets/config.js.map +1 -1
  331. package/dist/query-presets/constraints.d.ts.map +1 -1
  332. package/dist/query-presets/constraints.js +1 -1
  333. package/dist/query-presets/constraints.js.map +1 -1
  334. package/dist/queues/config/collection.d.ts.map +1 -1
  335. package/dist/queues/config/collection.js +2 -1
  336. package/dist/queues/config/collection.js.map +1 -1
  337. package/dist/queues/config/generateJobsJSONSchemas.d.ts +1 -1
  338. package/dist/queues/config/generateJobsJSONSchemas.d.ts.map +1 -1
  339. package/dist/queues/config/generateJobsJSONSchemas.js +33 -12
  340. package/dist/queues/config/generateJobsJSONSchemas.js.map +1 -1
  341. package/dist/queues/config/global.d.ts.map +1 -1
  342. package/dist/queues/config/global.js +2 -1
  343. package/dist/queues/config/global.js.map +1 -1
  344. package/dist/queues/endpoints/run.d.ts.map +1 -1
  345. package/dist/queues/localAPI.d.ts.map +1 -1
  346. package/dist/queues/operations/handleSchedules/getQueuesWithSchedules.d.ts.map +1 -1
  347. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  348. package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
  349. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts.map +1 -1
  350. package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -1
  351. package/dist/queues/utilities/getJobTaskStatus.d.ts.map +1 -1
  352. package/dist/translations/getLocalI18n.d.ts.map +1 -1
  353. package/dist/types/index.d.ts +10 -5
  354. package/dist/types/index.d.ts.map +1 -1
  355. package/dist/types/index.js.map +1 -1
  356. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  357. package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
  358. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  359. package/dist/uploads/endpoints/getFileFromURL.d.ts.map +1 -1
  360. package/dist/uploads/endpoints/getFileFromURL.js +9 -5
  361. package/dist/uploads/endpoints/getFileFromURL.js.map +1 -1
  362. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.d.ts.map +1 -1
  363. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
  364. package/dist/uploads/fetchAPI-multipart/processMultipart.js +14 -1
  365. package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
  366. package/dist/uploads/fetchAPI-multipart/processNested.d.ts.map +1 -1
  367. package/dist/uploads/fetchAPI-multipart/utilities.d.ts.map +1 -1
  368. package/dist/uploads/fileExists.d.ts.map +1 -1
  369. package/dist/uploads/generateFileData.d.ts +2 -1
  370. package/dist/uploads/generateFileData.d.ts.map +1 -1
  371. package/dist/uploads/generateFileData.js +5 -2
  372. package/dist/uploads/generateFileData.js.map +1 -1
  373. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  374. package/dist/uploads/getBaseFields.js +7 -19
  375. package/dist/uploads/getBaseFields.js.map +1 -1
  376. package/dist/uploads/getExternalFile.d.ts.map +1 -1
  377. package/dist/uploads/getFileByPath.d.ts.map +1 -1
  378. package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
  379. package/dist/uploads/getSafeFilename.d.ts.map +1 -1
  380. package/dist/uploads/image-resizing/createImageSize.d.ts.map +1 -1
  381. package/dist/uploads/image-resizing/generateImageSizeFilename.d.ts.map +1 -1
  382. package/dist/uploads/image-resizing/getImageResizeAction.d.ts.map +1 -1
  383. package/dist/uploads/image-resizing/parseFilename.d.ts.map +1 -1
  384. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts.map +1 -1
  385. package/dist/uploads/mimeTypeValidator.d.ts.map +1 -1
  386. package/dist/uploads/safeFetch.d.ts +1 -1
  387. package/dist/uploads/safeFetch.d.ts.map +1 -1
  388. package/dist/uploads/safeFetch.js +11 -5
  389. package/dist/uploads/safeFetch.js.map +1 -1
  390. package/dist/uploads/saveBufferToFile.d.ts.map +1 -1
  391. package/dist/uploads/tempFile.d.ts.map +1 -1
  392. package/dist/uploads/types.d.ts +12 -29
  393. package/dist/uploads/types.d.ts.map +1 -1
  394. package/dist/uploads/types.js.map +1 -1
  395. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  396. package/dist/utilities/addLocalesToRequest.d.ts.map +1 -1
  397. package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts.map +1 -1
  398. package/dist/utilities/appendDateTimezoneSelectFields.d.ts.map +1 -1
  399. package/dist/utilities/appendDateTimezoneSelectFields.js +2 -2
  400. package/dist/utilities/appendDateTimezoneSelectFields.js.map +1 -1
  401. package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
  402. package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
  403. package/dist/utilities/canAccessAdmin.d.ts.map +1 -1
  404. package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
  405. package/dist/utilities/configToJSONSchema.d.ts +59 -16
  406. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  407. package/dist/utilities/configToJSONSchema.js +193 -76
  408. package/dist/utilities/configToJSONSchema.js.map +1 -1
  409. package/dist/utilities/configToJSONSchema.spec.js +300 -85
  410. package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
  411. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  412. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  413. package/dist/utilities/dependencies/dependencyChecker.js +1 -1
  414. package/dist/utilities/dependencies/dependencyChecker.js.map +1 -1
  415. package/dist/utilities/dependencies/getDependencies.d.ts.map +1 -1
  416. package/dist/utilities/dependencies/getDependencies.js +5 -5
  417. package/dist/utilities/dependencies/getDependencies.js.map +1 -1
  418. package/dist/utilities/dependencies/resolveFrom.d.ts.map +1 -1
  419. package/dist/utilities/dynamicImport.js +1 -1
  420. package/dist/utilities/dynamicImport.js.map +1 -1
  421. package/dist/utilities/escapeRegExp.d.ts.map +1 -1
  422. package/dist/utilities/extractID.d.ts.map +1 -1
  423. package/dist/utilities/filterDataToSelectedLocales.d.ts.map +1 -1
  424. package/dist/utilities/filterDataToSelectedLocales.js +5 -12
  425. package/dist/utilities/filterDataToSelectedLocales.js.map +1 -1
  426. package/dist/utilities/filterDataToSelectedLocales.spec.js +1 -2
  427. package/dist/utilities/filterDataToSelectedLocales.spec.js.map +1 -1
  428. package/dist/utilities/flattenAllFields.d.ts.map +1 -1
  429. package/dist/utilities/flattenAllFields.js +7 -22
  430. package/dist/utilities/flattenAllFields.js.map +1 -1
  431. package/dist/utilities/formatAdminURL.d.ts.map +1 -1
  432. package/dist/utilities/formatErrors.d.ts.map +1 -1
  433. package/dist/utilities/formatErrors.js +3 -1
  434. package/dist/utilities/formatErrors.js.map +1 -1
  435. package/dist/utilities/formatLabels.d.ts.map +1 -1
  436. package/dist/utilities/getBestFitFromSizes.d.ts.map +1 -1
  437. package/dist/utilities/getBlockSelect.d.ts.map +1 -1
  438. package/dist/utilities/getDataByPath.d.ts.map +1 -1
  439. package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts.map +1 -1
  440. package/dist/utilities/getEntityPermissions/populateFieldPermissions.js +5 -5
  441. package/dist/utilities/getEntityPermissions/populateFieldPermissions.js.map +1 -1
  442. package/dist/utilities/getFieldByPath.d.ts.map +1 -1
  443. package/dist/utilities/getFieldByPath.js +1 -1
  444. package/dist/utilities/getFieldByPath.js.map +1 -1
  445. package/dist/utilities/getFieldPermissions.d.ts.map +1 -1
  446. package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
  447. package/dist/utilities/getRequestEntity.d.ts.map +1 -1
  448. package/dist/utilities/getRequestLanguage.d.ts +2 -2
  449. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  450. package/dist/utilities/getRequestLanguage.js.map +1 -1
  451. package/dist/utilities/getRequestOrigin.d.ts.map +1 -1
  452. package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
  453. package/dist/utilities/getSelectMode.d.ts.map +1 -1
  454. package/dist/utilities/getSiblingData.d.ts.map +1 -1
  455. package/dist/utilities/getTranslatedLabel.d.ts.map +1 -1
  456. package/dist/utilities/getVersionsConfig.d.ts.map +1 -1
  457. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  458. package/dist/utilities/handleEndpoints.js +7 -4
  459. package/dist/utilities/handleEndpoints.js.map +1 -1
  460. package/dist/utilities/headersWithCors.d.ts.map +1 -1
  461. package/dist/utilities/isEntityHidden.d.ts.map +1 -1
  462. package/dist/utilities/isRSCEnabled.d.ts +12 -0
  463. package/dist/utilities/isRSCEnabled.d.ts.map +1 -0
  464. package/dist/utilities/isRSCEnabled.js +14 -0
  465. package/dist/utilities/isRSCEnabled.js.map +1 -0
  466. package/dist/utilities/isURLAllowed.d.ts.map +1 -1
  467. package/dist/utilities/isValidID.d.ts.map +1 -1
  468. package/dist/utilities/logError.d.ts.map +1 -1
  469. package/dist/utilities/logger.d.ts.map +1 -1
  470. package/dist/utilities/mergeHeaders.d.ts.map +1 -1
  471. package/dist/utilities/mergeListSearchAndWhere.d.ts.map +1 -1
  472. package/dist/utilities/mergeLocalizedData.d.ts.map +1 -1
  473. package/dist/utilities/mergeLocalizedData.js +5 -12
  474. package/dist/utilities/mergeLocalizedData.js.map +1 -1
  475. package/dist/utilities/optionsAreEqual.d.ts.map +1 -1
  476. package/dist/utilities/parseBooleanString.d.ts.map +1 -1
  477. package/dist/utilities/parseCookies.d.ts.map +1 -1
  478. package/dist/utilities/parseParams/index.d.ts.map +1 -1
  479. package/dist/utilities/profiling.d.ts.map +1 -1
  480. package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -1
  481. package/dist/utilities/resolveSelect.d.ts.map +1 -1
  482. package/dist/utilities/routeError.d.ts.map +1 -1
  483. package/dist/utilities/sanitizeFallbackLocale.d.ts.map +1 -1
  484. package/dist/utilities/sanitizeInternalFields.d.ts.map +1 -1
  485. package/dist/utilities/sanitizeJoinParams.d.ts.map +1 -1
  486. package/dist/utilities/sanitizePopulateParam.d.ts.map +1 -1
  487. package/dist/utilities/sanitizeSelect.d.ts.map +1 -1
  488. package/dist/utilities/sanitizeSelectParam.d.ts.map +1 -1
  489. package/dist/utilities/sanitizeSortParams.d.ts.map +1 -1
  490. package/dist/utilities/setsAreEqual.d.ts.map +1 -1
  491. package/dist/utilities/slugify.d.ts.map +1 -1
  492. package/dist/utilities/stripUnselectedFields.d.ts.map +1 -1
  493. package/dist/utilities/telemetry/conf/envPaths.d.ts.map +1 -1
  494. package/dist/utilities/telemetry/conf/envPaths.js +31 -40
  495. package/dist/utilities/telemetry/conf/envPaths.js.map +1 -1
  496. package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
  497. package/dist/utilities/telemetry/events/serverInit.d.ts.map +1 -1
  498. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  499. package/dist/utilities/telemetry/oneWayHash.d.ts.map +1 -1
  500. package/dist/utilities/timestamp.d.ts.map +1 -1
  501. package/dist/utilities/toKebabCase.d.ts.map +1 -1
  502. package/dist/utilities/transformColumnPreferences.d.ts.map +1 -1
  503. package/dist/utilities/transformColumnPreferences.js +4 -2
  504. package/dist/utilities/transformColumnPreferences.js.map +1 -1
  505. package/dist/utilities/transformWhereQuery.d.ts.map +1 -1
  506. package/dist/utilities/traverseFields.d.ts.map +1 -1
  507. package/dist/utilities/traverseFields.js +2 -4
  508. package/dist/utilities/traverseFields.js.map +1 -1
  509. package/dist/utilities/traverseForLocalizedFields.d.ts.map +1 -1
  510. package/dist/utilities/traverseForLocalizedFields.js +3 -0
  511. package/dist/utilities/traverseForLocalizedFields.js.map +1 -1
  512. package/dist/utilities/unflatten.d.ts.map +1 -1
  513. package/dist/utilities/validateMimeType.d.ts.map +1 -1
  514. package/dist/utilities/validateTimezones.d.ts.map +1 -1
  515. package/dist/utilities/validateWhereQuery.d.ts.map +1 -1
  516. package/dist/utilities/wordBoundariesRegex.d.ts.map +1 -1
  517. package/dist/utilities/wrapInternalEndpoints.d.ts.map +1 -1
  518. package/dist/versions/baseFields.d.ts.map +1 -1
  519. package/dist/versions/buildCollectionFields.d.ts.map +1 -1
  520. package/dist/versions/buildGlobalFields.d.ts.map +1 -1
  521. package/dist/versions/buildVersionCompoundIndexes.d.ts.map +1 -1
  522. package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
  523. package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
  524. package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
  525. package/dist/versions/drafts/getQueryDraftsSelect.d.ts.map +1 -1
  526. package/dist/versions/drafts/getQueryDraftsSort.d.ts.map +1 -1
  527. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
  528. package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
  529. package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
  530. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  531. package/dist/versions/migrations/localizeStatus/shared.d.ts.map +1 -1
  532. package/dist/versions/saveSnapshot.d.ts.map +1 -1
  533. package/dist/versions/schedule/job.d.ts.map +1 -1
  534. package/package.json +23 -20
  535. package/dist/database/migrations/config/batchTransform.d.ts +0 -16
  536. package/dist/database/migrations/config/batchTransform.d.ts.map +0 -1
  537. package/dist/database/migrations/config/batchTransform.js +0 -17
  538. package/dist/database/migrations/config/batchTransform.js.map +0 -1
  539. package/dist/database/migrations/config/batchTransform.spec.js +0 -68
  540. package/dist/database/migrations/config/batchTransform.spec.js.map +0 -1
  541. package/dist/database/migrations/config/bootstrapConfigState.d.ts +0 -4
  542. package/dist/database/migrations/config/bootstrapConfigState.d.ts.map +0 -1
  543. package/dist/database/migrations/config/bootstrapConfigState.js +0 -10
  544. package/dist/database/migrations/config/bootstrapConfigState.js.map +0 -1
  545. package/dist/database/migrations/config/configStateStore.d.ts +0 -4
  546. package/dist/database/migrations/config/configStateStore.d.ts.map +0 -1
  547. package/dist/database/migrations/config/configStateStore.js +0 -29
  548. package/dist/database/migrations/config/configStateStore.js.map +0 -1
  549. package/dist/database/migrations/config/diffConfig.d.ts +0 -3
  550. package/dist/database/migrations/config/diffConfig.d.ts.map +0 -1
  551. package/dist/database/migrations/config/diffConfig.js +0 -123
  552. package/dist/database/migrations/config/diffConfig.js.map +0 -1
  553. package/dist/database/migrations/config/diffConfig.spec.js +0 -136
  554. package/dist/database/migrations/config/diffConfig.spec.js.map +0 -1
  555. package/dist/database/migrations/config/generateDataMigrationCode.d.ts +0 -11
  556. package/dist/database/migrations/config/generateDataMigrationCode.d.ts.map +0 -1
  557. package/dist/database/migrations/config/generateDataMigrationCode.js +0 -28
  558. package/dist/database/migrations/config/generateDataMigrationCode.js.map +0 -1
  559. package/dist/database/migrations/config/generateDataMigrationCode.spec.js +0 -52
  560. package/dist/database/migrations/config/generateDataMigrationCode.spec.js.map +0 -1
  561. package/dist/database/migrations/config/index.d.ts +0 -9
  562. package/dist/database/migrations/config/index.d.ts.map +0 -1
  563. package/dist/database/migrations/config/index.js +0 -9
  564. package/dist/database/migrations/config/index.js.map +0 -1
  565. package/dist/database/migrations/config/prompts.d.ts +0 -5
  566. package/dist/database/migrations/config/prompts.d.ts.map +0 -1
  567. package/dist/database/migrations/config/prompts.js +0 -49
  568. package/dist/database/migrations/config/prompts.js.map +0 -1
  569. package/dist/database/migrations/config/serializeConfig.d.ts +0 -4
  570. package/dist/database/migrations/config/serializeConfig.d.ts.map +0 -1
  571. package/dist/database/migrations/config/serializeConfig.js +0 -65
  572. package/dist/database/migrations/config/serializeConfig.js.map +0 -1
  573. package/dist/database/migrations/config/serializeConfig.spec.js +0 -146
  574. package/dist/database/migrations/config/serializeConfig.spec.js.map +0 -1
  575. package/dist/database/migrations/config/types.d.ts +0 -66
  576. package/dist/database/migrations/config/types.d.ts.map +0 -1
  577. package/dist/database/migrations/config/types.js +0 -3
  578. package/dist/database/migrations/config/types.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import type { GenericLanguages, I18n } from '@payloadcms/translations';
1
+ import type { I18n } from '@payloadcms/translations';
2
2
  import type { JSONSchema4 } from 'json-schema';
3
3
  import type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js';
4
4
  import type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js';
@@ -7,6 +7,7 @@ import type { FieldAffectingData, RichTextField, RichTextFieldClient, Validate }
7
7
  import type { SanitizedGlobalConfig } from '../globals/config/types.js';
8
8
  import type { RequestContext, TypedFallbackLocale } from '../index.js';
9
9
  import type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js';
10
+ import type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js';
10
11
  import type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js';
11
12
  import type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js';
12
13
  export type AfterReadRichTextHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
@@ -157,29 +158,15 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
157
158
  siblingDoc: JsonObject;
158
159
  }) => void;
159
160
  hooks?: RichTextHooks;
160
- /**
161
- * @deprecated - manually merge i18n translations into the config.i18n.translations object within the adapter provider instead.
162
- * This property will be removed in v4.
163
- */
164
- i18n?: Partial<GenericLanguages>;
165
161
  /**
166
162
  * Return the JSON schema for the field value. The JSON schema is read by
167
163
  * `json-schema-to-typescript` which is used to generate types for this richtext field
168
164
  * payload-types.ts)
169
165
  */
170
- outputSchema?: (args: {
171
- collectionIDFieldTypes: {
172
- [key: string]: 'number' | 'string';
173
- };
174
- config?: SanitizedConfig;
166
+ jsonSchema?: (args: {
175
167
  field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
176
- i18n?: I18n;
177
- /**
178
- * Allows you to define new top-level interfaces that can be re-used in the output schema.
179
- */
180
- interfaceNameDefinitions: Map<string, JSONSchema4>;
181
168
  isRequired: boolean;
182
- }) => JSONSchema4;
169
+ } & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions'>) => JSONSchema4;
183
170
  /**
184
171
  * Provide validation function for the richText field. This function is run the same way
185
172
  * as other field validation functions.
@@ -192,6 +179,13 @@ export type RichTextAdapter<Value extends object = any, AdapterProps = any, Extr
192
179
  * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.
193
180
  */
194
181
  CellComponent: PayloadComponent<never>;
182
+ /**
183
+ * Client-only field component for non-RSC adapters (e.g. TanStack Start).
184
+ * When provided, this component is used as a fallback when the RSC `FieldComponent`
185
+ * cannot be rendered (e.g. because customComponents are stripped during serialization).
186
+ * The component path is stored in field state and resolved from the import map on the client.
187
+ */
188
+ ClientFieldComponent?: PayloadComponent<RichTextFieldClientProps>;
195
189
  /**
196
190
  * Component that will be displayed in the version diff view.
197
191
  * If not provided, richtext content will be diffed as JSON.
@@ -201,6 +195,19 @@ export type RichTextAdapter<Value extends object = any, AdapterProps = any, Extr
201
195
  * Component that will be displayed in the edit view.
202
196
  */
203
197
  FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>;
198
+ /**
199
+ * Builds serializable props for the `ClientFieldComponent`.
200
+ * Called during `renderField` on the server; the returned object is stored
201
+ * in `fieldState.clientFieldComponentProps` and passed to the client component.
202
+ */
203
+ getClientFieldProps?: (args: {
204
+ clientFieldSchemaMap: Map<string, any>;
205
+ path: string;
206
+ payload: {
207
+ importMap: Record<string, any>;
208
+ };
209
+ schemaPath: string;
210
+ }) => Record<string, any>;
204
211
  } & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>;
205
212
  export type RichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = ({ config, isRoot, parentIsLocalized, }: {
206
213
  config: SanitizedConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/admin/RichText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACT,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC9F,O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AA;KACnB,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC1B,GAAG,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAElE,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CAAC,EACH,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,EAAE;IACD,MAAM,EAAE,eAAe,CAAA;IACvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KACG,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,GACnE,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { GenericLanguages, I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * @deprecated - manually merge i18n translations into the config.i18n.translations object within the adapter provider instead.\n * This property will be removed in v4.\n */\n i18n?: Partial<GenericLanguages>\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n outputSchema?: (args: {\n collectionIDFieldTypes: { [key: string]: 'number' | 'string' }\n config?: SanitizedConfig\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n i18n?: I18n\n /**\n * Allows you to define new top-level interfaces that can be re-used in the output schema.\n */\n interfaceNameDefinitions: Map<string, JSONSchema4>\n isRequired: boolean\n }) => JSONSchema4\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GA+SrD,WAoB8D"}
1
+ {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n jsonSchema?: (\n args: {\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n isRequired: boolean\n } & Pick<\n FieldsToJSONSchemaArgs,\n | 'collectionIDFieldTypes'\n | 'config'\n | 'i18n'\n | 'interfaceNameDefinitions'\n | 'typeStringDefinitions'\n >,\n ) => JSONSchema4\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Client-only field component for non-RSC adapters (e.g. TanStack Start).\n * When provided, this component is used as a fallback when the RSC `FieldComponent`\n * cannot be rendered (e.g. because customComponents are stripped during serialization).\n * The component path is stored in field state and resolved from the import map on the client.\n */\n ClientFieldComponent?: PayloadComponent<RichTextFieldClientProps>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n /**\n * Builds serializable props for the `ClientFieldComponent`.\n * Called during `renderField` on the server; the returned object is stored\n * in `fieldState.clientFieldComponentProps` and passed to the client component.\n */\n getClientFieldProps?: (args: {\n clientFieldSchemaMap: Map<string, any>\n path: string\n payload: { importMap: Record<string, any> }\n schemaPath: string\n }) => Record<string, any>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GA+TrD,WAoB8D"}
@@ -0,0 +1,21 @@
1
+ export type CookieStore = {
2
+ get: (name: string) => {
3
+ name: string;
4
+ value: string;
5
+ } | null | undefined;
6
+ getAll?: () => Array<{
7
+ name: string;
8
+ value: string;
9
+ }>;
10
+ set?: (name: string, value: string, options?: CookieOptions) => void;
11
+ };
12
+ export type CookieOptions = {
13
+ domain?: string;
14
+ expires?: Date;
15
+ httpOnly?: boolean;
16
+ maxAge?: number;
17
+ path?: string;
18
+ sameSite?: 'lax' | 'none' | 'strict';
19
+ secure?: boolean;
20
+ };
21
+ //# sourceMappingURL=cookies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/cookies.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IACzE,MAAM,CAAC,EAAE,MAAM,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACrD,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;CACrE,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAA;IACpC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=cookies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/adapters/cookies.ts"],"sourcesContent":["export type CookieStore = {\n get: (name: string) => { name: string; value: string } | null | undefined\n getAll?: () => Array<{ name: string; value: string }>\n set?: (name: string, value: string, options?: CookieOptions) => void\n}\n\nexport type CookieOptions = {\n domain?: string\n expires?: Date\n httpOnly?: boolean\n maxAge?: number\n path?: string\n sameSite?: 'lax' | 'none' | 'strict'\n secure?: boolean\n}\n"],"names":[],"mappings":"AAMA,WAQC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Strategy for dev-mode HMR/reload detection.
3
+ * Each framework adapter provides its own implementation.
4
+ */
5
+ export type DevReloadStrategy = {
6
+ connect: (onReload: () => void) => DevReloadCleanup;
7
+ };
8
+ export type DevReloadCleanup = () => void;
9
+ //# sourceMappingURL=devReload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devReload.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/devReload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,gBAAgB,CAAA;CACpD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Strategy for dev-mode HMR/reload detection.
3
+ * Each framework adapter provides its own implementation.
4
+ */ export { };
5
+
6
+ //# sourceMappingURL=devReload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/adapters/devReload.ts"],"sourcesContent":["/**\n * Strategy for dev-mode HMR/reload detection.\n * Each framework adapter provides its own implementation.\n */\nexport type DevReloadStrategy = {\n connect: (onReload: () => void) => DevReloadCleanup\n}\n\nexport type DevReloadCleanup = () => void\n"],"names":[],"mappings":"AAAA;;;CAGC,GAKD,WAAyC"}
@@ -0,0 +1,7 @@
1
+ export type * from './cookies.js';
2
+ export type * from './devReload.js';
3
+ export type * from './render.js';
4
+ export type * from './router.js';
5
+ export type * from './server.js';
6
+ export type * from './views.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,cAAc,CAAA;AACjC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,aAAa,CAAA;AAChC,mBAAmB,aAAa,CAAA;AAChC,mBAAmB,aAAa,CAAA;AAChC,mBAAmB,YAAY,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/adapters/index.ts"],"sourcesContent":["export type * from './cookies.js'\nexport type * from './devReload.js'\nexport type * from './render.js'\nexport type * from './router.js'\nexport type * from './server.js'\nexport type * from './views.js'\n"],"names":[],"mappings":"AAKA,WAA+B"}
@@ -0,0 +1,16 @@
1
+ import type React from 'react';
2
+ import type { ImportMap, PayloadComponent } from '../../index.js';
3
+ /**
4
+ * Pluggable component renderer.
5
+ * RSC-capable frameworks use the current RenderServerComponent logic.
6
+ * Non-RSC frameworks treat all components as client components.
7
+ */
8
+ export type ComponentRenderer = (args: {
9
+ readonly clientProps?: object;
10
+ readonly Component?: PayloadComponent | PayloadComponent[] | React.ComponentType | React.ComponentType[];
11
+ readonly Fallback?: React.ComponentType;
12
+ readonly importMap: ImportMap;
13
+ readonly key?: string;
14
+ readonly serverProps?: object;
15
+ }) => React.ReactNode;
16
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE;IACrC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EACf,gBAAgB,GAChB,gBAAgB,EAAE,GAClB,KAAK,CAAC,aAAa,GACnB,KAAK,CAAC,aAAa,EAAE,CAAA;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B,KAAK,KAAK,CAAC,SAAS,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Pluggable component renderer.
3
+ * RSC-capable frameworks use the current RenderServerComponent logic.
4
+ * Non-RSC frameworks treat all components as client components.
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/adapters/render.ts"],"sourcesContent":["import type React from 'react'\n\nimport type { ImportMap, PayloadComponent } from '../../index.js'\n\n/**\n * Pluggable component renderer.\n * RSC-capable frameworks use the current RenderServerComponent logic.\n * Non-RSC frameworks treat all components as client components.\n */\nexport type ComponentRenderer = (args: {\n readonly clientProps?: object\n readonly Component?:\n | PayloadComponent\n | PayloadComponent[]\n | React.ComponentType\n | React.ComponentType[]\n readonly Fallback?: React.ComponentType\n readonly importMap: ImportMap\n readonly key?: string\n readonly serverProps?: object\n}) => React.ReactNode\n"],"names":[],"mappings":"AAIA;;;;CAIC,GACD,WAWqB"}
@@ -0,0 +1,56 @@
1
+ import type React from 'react';
2
+ /**
3
+ * Client-side router adapter to abstract away framework-specific routing implementations.
4
+ * This way plugins and server components can use server-only APIs without directly importing any framework-specific modules.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * // Next.js router adapter (simplified):
9
+ * import { useRouter as useNextRouter, usePathname as useNextPathname } from 'next/navigation'
10
+ *
11
+ * const NextRouterAdapter: RouterAdapterComponent = ({ children }) => {
12
+ * const router = useNextRouter()
13
+ * const pathname = useNextPathname()
14
+ *
15
+ * return (
16
+ * <RouterAdapterContext value={{ router, pathname, ... }}>
17
+ * {children}
18
+ * </RouterAdapterContext>
19
+ * )
20
+ * }
21
+ * ```
22
+ */
23
+ export type RouterAdapterComponent = React.ComponentType<{
24
+ children: React.ReactNode;
25
+ }>;
26
+ export type RouterAdapterRouter = {
27
+ /**
28
+ * Navigate back to the previous page in the history stack.
29
+ */
30
+ back: () => void;
31
+ /**
32
+ * Navigate to a new path.
33
+ */
34
+ push: (path: string, options?: {
35
+ scroll?: boolean;
36
+ }) => void;
37
+ /**
38
+ * Refresh the current route.
39
+ */
40
+ refresh: () => void;
41
+ /**
42
+ * Replace the current path with a new one.
43
+ */
44
+ replace: (path: string, options?: {
45
+ scroll?: boolean;
46
+ }) => void;
47
+ };
48
+ export type LinkAdapterProps = {
49
+ children?: React.ReactNode;
50
+ href: string;
51
+ prefetch?: boolean;
52
+ ref?: React.Ref<HTMLAnchorElement>;
53
+ replace?: boolean;
54
+ scroll?: boolean;
55
+ } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
56
+ //# sourceMappingURL=router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,aAAa,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,CAAA;AAEvF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB;;OAEG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IAC5D;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;CAChE,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/adapters/router.ts"],"sourcesContent":["import type React from 'react'\n\n/**\n * Client-side router adapter to abstract away framework-specific routing implementations.\n * This way plugins and server components can use server-only APIs without directly importing any framework-specific modules.\n *\n * @example\n * ```tsx\n * // Next.js router adapter (simplified):\n * import { useRouter as useNextRouter, usePathname as useNextPathname } from 'next/navigation'\n *\n * const NextRouterAdapter: RouterAdapterComponent = ({ children }) => {\n * const router = useNextRouter()\n * const pathname = useNextPathname()\n *\n * return (\n * <RouterAdapterContext value={{ router, pathname, ... }}>\n * {children}\n * </RouterAdapterContext>\n * )\n * }\n * ```\n */\nexport type RouterAdapterComponent = React.ComponentType<{ children: React.ReactNode }>\n\nexport type RouterAdapterRouter = {\n /**\n * Navigate back to the previous page in the history stack.\n */\n back: () => void\n /**\n * Navigate to a new path.\n */\n push: (path: string, options?: { scroll?: boolean }) => void\n /**\n * Refresh the current route.\n */\n refresh: () => void\n /**\n * Replace the current path with a new one.\n */\n replace: (path: string, options?: { scroll?: boolean }) => void\n}\n\nexport type LinkAdapterProps = {\n children?: React.ReactNode\n href: string\n prefetch?: boolean\n ref?: React.Ref<HTMLAnchorElement>\n replace?: boolean\n scroll?: boolean\n} & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>\n"],"names":[],"mappings":"AA4CA,WAO+D"}
@@ -0,0 +1,23 @@
1
+ import type { CookieOptions, CookieStore } from './cookies.js';
2
+ /**
3
+ * Server-side adapter passed into server functions (not React context).
4
+ * Abstracts framework-specific server APIs like cookies, headers, redirect.
5
+ */
6
+ export type ServerAdapter = {
7
+ /**
8
+ * Throws a Next-style "forbidden" boundary (HTTP 403 semantics). Plugins
9
+ * should treat this as a control-flow `never` — execution does not return.
10
+ */
11
+ forbidden: () => never;
12
+ getCookies: () => CookieStore | Promise<CookieStore>;
13
+ getHeaders: () => Headers | Promise<Headers>;
14
+ notFound: () => never;
15
+ permanentRedirect: (path: string) => never;
16
+ redirect: (path: string) => never;
17
+ setCookie: (name: string, value: string, options?: CookieOptions) => Promise<void> | void;
18
+ /**
19
+ * Throws a Next-style "unauthorized" boundary (HTTP 401 semantics).
20
+ */
21
+ unauthorized: () => never;
22
+ };
23
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE9D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,SAAS,EAAE,MAAM,KAAK,CAAA;IACtB,UAAU,EAAE,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IACpD,UAAU,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC5C,QAAQ,EAAE,MAAM,KAAK,CAAA;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,CAAA;IAC1C,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,CAAA;IACjC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACzF;;OAEG;IACH,YAAY,EAAE,MAAM,KAAK,CAAA;CAC1B,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Server-side adapter passed into server functions (not React context).
3
+ * Abstracts framework-specific server APIs like cookies, headers, redirect.
4
+ */ export { };
5
+
6
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/adapters/server.ts"],"sourcesContent":["import type { CookieOptions, CookieStore } from './cookies.js'\n\n/**\n * Server-side adapter passed into server functions (not React context).\n * Abstracts framework-specific server APIs like cookies, headers, redirect.\n */\nexport type ServerAdapter = {\n /**\n * Throws a Next-style \"forbidden\" boundary (HTTP 403 semantics). Plugins\n * should treat this as a control-flow `never` — execution does not return.\n */\n forbidden: () => never\n getCookies: () => CookieStore | Promise<CookieStore>\n getHeaders: () => Headers | Promise<Headers>\n notFound: () => never\n permanentRedirect: (path: string) => never\n redirect: (path: string) => never\n setCookie: (name: string, value: string, options?: CookieOptions) => Promise<void> | void\n /**\n * Throws a Next-style \"unauthorized\" boundary (HTTP 401 semantics).\n */\n unauthorized: () => never\n}\n"],"names":[],"mappings":"AAEA;;;CAGC,GACD,WAgBC"}
@@ -0,0 +1,36 @@
1
+ import type { I18nClient } from '@payloadcms/translations';
2
+ import type React from 'react';
3
+ import type { MetaConfig, SanitizedConfig } from '../../config/types.js';
4
+ /**
5
+ * Signature for ui-side view metadata generators. Returns a framework-agnostic
6
+ * `MetaConfig` that adapter-side code formats into framework metadata.
7
+ */
8
+ export type GenerateViewMetadata = (args: {
9
+ config: SanitizedConfig;
10
+ i18n: I18nClient;
11
+ isEditing?: boolean;
12
+ params?: {
13
+ [key: string]: string | string[];
14
+ };
15
+ }) => Promise<MetaConfig>;
16
+ /**
17
+ * One entry in a framework's `AdminViewAdapter`. Pairs a React component with
18
+ * a metadata generator. `TComponentProps` and `TMetadata` are framework-specific
19
+ * (Next narrows `TMetadata` to `next`'s `Metadata` type).
20
+ */
21
+ export type AdminView<TComponentProps = any, TMetadata = unknown> = {
22
+ Component: React.ComponentType<TComponentProps>;
23
+ generateMetadata: (args: Parameters<GenerateViewMetadata>[0]) => Promise<TMetadata>;
24
+ };
25
+ /**
26
+ * The canonical set of admin view keys that every framework adapter must implement.
27
+ * Adding a new admin view requires adding its key here so all adapters stay in sync.
28
+ */
29
+ export type AdminViewKey = 'account' | 'createFirstUser' | 'dashboard' | 'forgot' | 'login' | 'logout' | 'logoutInactivity' | 'notFound' | 'reset' | 'unauthorized' | 'unauthorizedWithGutter' | 'verify';
30
+ /**
31
+ * Keyed map of `AdminView` — exactly one entry per `AdminViewKey`.
32
+ * Framework adapters export an instance of this; missing or misspelled keys are
33
+ * a type error.
34
+ */
35
+ export type AdminViewAdapter<TComponentProps = any, TMetadata = unknown> = Record<AdminViewKey, AdminView<TComponentProps, TMetadata>>;
36
+ //# sourceMappingURL=views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/admin/adapters/views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAExE;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE;IACxC,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,UAAU,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAA;CAC9C,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;AAEzB;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,eAAe,GAAG,GAAG,EAAE,SAAS,GAAG,OAAO,IAAI;IAClE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAA;IAC/C,gBAAgB,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,SAAS,CAAC,CAAA;CACpF,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,kBAAkB,GAClB,UAAU,GACV,OAAO,GACP,cAAc,GACd,wBAAwB,GACxB,QAAQ,CAAA;AAEZ;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,eAAe,GAAG,GAAG,EAAE,SAAS,GAAG,OAAO,IAAI,MAAM,CAC/E,YAAY,EACZ,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,CACtC,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Keyed map of `AdminView` — exactly one entry per `AdminViewKey`.
3
+ * Framework adapters export an instance of this; missing or misspelled keys are
4
+ * a type error.
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/adapters/views.ts"],"sourcesContent":["import type { I18nClient } from '@payloadcms/translations'\nimport type React from 'react'\n\nimport type { MetaConfig, SanitizedConfig } from '../../config/types.js'\n\n/**\n * Signature for ui-side view metadata generators. Returns a framework-agnostic\n * `MetaConfig` that adapter-side code formats into framework metadata.\n */\nexport type GenerateViewMetadata = (args: {\n config: SanitizedConfig\n i18n: I18nClient\n isEditing?: boolean\n params?: { [key: string]: string | string[] }\n}) => Promise<MetaConfig>\n\n/**\n * One entry in a framework's `AdminViewAdapter`. Pairs a React component with\n * a metadata generator. `TComponentProps` and `TMetadata` are framework-specific\n * (Next narrows `TMetadata` to `next`'s `Metadata` type).\n */\nexport type AdminView<TComponentProps = any, TMetadata = unknown> = {\n Component: React.ComponentType<TComponentProps>\n generateMetadata: (args: Parameters<GenerateViewMetadata>[0]) => Promise<TMetadata>\n}\n\n/**\n * The canonical set of admin view keys that every framework adapter must implement.\n * Adding a new admin view requires adding its key here so all adapters stay in sync.\n */\nexport type AdminViewKey =\n | 'account'\n | 'createFirstUser'\n | 'dashboard'\n | 'forgot'\n | 'login'\n | 'logout'\n | 'logoutInactivity'\n | 'notFound'\n | 'reset'\n | 'unauthorized'\n | 'unauthorizedWithGutter'\n | 'verify'\n\n/**\n * Keyed map of `AdminView` — exactly one entry per `AdminViewKey`.\n * Framework adapters export an instance of this; missing or misspelled keys are\n * a type error.\n */\nexport type AdminViewAdapter<TComponentProps = any, TMetadata = unknown> = Record<\n AdminViewKey,\n AdminView<TComponentProps, TMetadata>\n>\n"],"names":[],"mappings":"AA4CA;;;;CAIC,GACD,WAGC"}
@@ -5,6 +5,7 @@ export type Column = {
5
5
  readonly CustomLabel?: React.ReactNode;
6
6
  readonly field: ClientField;
7
7
  readonly Heading: React.ReactNode;
8
+ readonly isLinkedColumn?: boolean;
8
9
  readonly renderedCells: React.ReactNode[];
9
10
  };
10
11
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/Table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAE/D,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACjC,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;CAC1C,CAAA"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/Table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAE/D,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACjC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;CAC1C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/Table.ts"],"sourcesContent":["import type { ClientField } from '../../fields/config/types.js'\n\nexport type Column = {\n readonly accessor: string\n readonly active: boolean\n readonly CustomLabel?: React.ReactNode\n readonly field: ClientField\n readonly Heading: React.ReactNode\n readonly renderedCells: React.ReactNode[]\n}\n"],"names":[],"mappings":"AAEA,WAOC"}
1
+ {"version":3,"sources":["../../../src/admin/elements/Table.ts"],"sourcesContent":["import type { ClientField } from '../../fields/config/types.js'\n\nexport type Column = {\n readonly accessor: string\n readonly active: boolean\n readonly CustomLabel?: React.ReactNode\n readonly field: ClientField\n readonly Heading: React.ReactNode\n readonly isLinkedColumn?: boolean\n readonly renderedCells: React.ReactNode[]\n}\n"],"names":[],"mappings":"AAEA,WAQC"}
@@ -5,6 +5,7 @@ import type { ClientBlock, ClientField, Field } from '../../fields/config/types.
5
5
  import type { TypedUser } from '../../index.js';
6
6
  import type { DocumentPreferences } from '../../preferences/types.js';
7
7
  import type { Operation, Payload, PayloadRequest } from '../../types/index.js';
8
+ import type { ComponentRenderer } from '../adapters/render.js';
8
9
  import type { ClientFieldSchemaMap, ClientTab, Data, FieldSchemaMap, FormField, FormState, RenderedField } from '../types.js';
9
10
  export type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
10
11
  export type ClientComponentProps = {
@@ -85,6 +86,12 @@ export type ServerComponentProps = {
85
86
  payload: Payload;
86
87
  permissions: SanitizedFieldPermissions;
87
88
  preferences: DocumentPreferences;
89
+ /**
90
+ * Adapter-injected component renderer. Server components can use this
91
+ * to render other import map components without importing a
92
+ * framework-specific renderer directly.
93
+ */
94
+ renderComponent?: ComponentRenderer;
88
95
  req: PayloadRequest;
89
96
  siblingData: Data;
90
97
  user: TypedUser;
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KA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CAC7B,GAAG,IAAI,CAAC,oBAAoB,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAA;AAE5D,MAAM,MAAM,eAAe,CACzB,YAAY,SAAS,KAAK,GAAG,KAAK,EAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E;IACF,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAA;CAC7B,GAAG,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,GACrC,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,OAAO,CAAC,CAAA;AAErD,MAAM,MAAM,oBAAoB,CAC9B,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,EAC9E,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACvE,KAAK,CAAC,aAAa,CAAC,eAAe,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC,CAAA;AAExE,MAAM,MAAM,oBAAoB,CAC9B,YAAY,SAAS,KAAK,GAAG,KAAK,EAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,EAC9E,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACvE,KAAK,CAAC,aAAa,CAAC,eAAe,GAAG,eAAe,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Field.ts"],"sourcesContent":["import type { I18nClient } from '@payloadcms/translations'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { SanitizedFieldPermissions } from '../../auth/types.js'\nimport type { ClientBlock, ClientField, Field } from '../../fields/config/types.js'\nimport type { TypedUser } from '../../index.js'\nimport type { DocumentPreferences } from '../../preferences/types.js'\nimport type { Operation, Payload, PayloadRequest } from '../../types/index.js'\nimport type {\n ClientFieldSchemaMap,\n ClientTab,\n Data,\n FieldSchemaMap,\n FormField,\n FormState,\n RenderedField,\n} from '../types.js'\n\nexport type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>\n\nexport type ClientComponentProps = {\n customComponents?: FormField['customComponents']\n field: ClientBlock | ClientField | ClientTab\n /**\n * Controls the rendering behavior of the fields, i.e. defers rendering until they intersect with the viewport using the Intersection Observer API.\n *\n * If true, the fields will be rendered immediately, rather than waiting for them to intersect with the viewport.\n *\n * If a number is provided, will immediately render fields _up to that index_.\n */\n forceRender?: boolean\n permissions?: SanitizedFieldPermissions\n readOnly?: boolean\n renderedBlocks?: RenderedField[]\n /**\n * Used to extract field configs from a schemaMap.\n * Does not include indexes.\n *\n * @default field.name\n **/\n schemaPath?: string\n}\n\n// TODO: maybe we can come up with a better name?\nexport type FieldPaths = {\n /**\n * @default ''\n */\n indexPath?: string\n /**\n * @default ''\n */\n parentPath?: string\n /**\n * The path built up to the point of the field\n * excluding the field name.\n *\n * @default ''\n */\n parentSchemaPath?: string\n /**\n * A built up path to access FieldState in the form state.\n * Nested fields will have a path that includes the parent field names\n * if they are nested within a group, array, block or named tab.\n *\n * Collapsibles and unnamed tabs will have arbitrary paths\n * that look like _index-0, _index-1, etc.\n *\n * Row fields will not have a path.\n *\n * @example 'parentGroupField.childTextField'\n *\n * @default field.name\n */\n path: string\n}\n\n/**\n * TODO: This should be renamed to `FieldComponentServerProps` or similar\n */\nexport type ServerComponentProps = {\n clientField: ClientFieldWithOptionalType\n clientFieldSchemaMap: ClientFieldSchemaMap\n collectionSlug: string\n data: Data\n field: Field\n /**\n * The fieldSchemaMap that is created before form state is built is made available here.\n */\n fieldSchemaMap: FieldSchemaMap\n /**\n * Server Components will also have available to the entire form state.\n * We cannot add it to ClientComponentProps as that would blow up the size of the props sent to the client.\n */\n formState: FormState\n i18n: I18nClient\n id?: number | string\n operation: Operation\n payload: Payload\n permissions: SanitizedFieldPermissions\n preferences: DocumentPreferences\n req: PayloadRequest\n siblingData: Data\n user: TypedUser\n value?: unknown\n}\n\nexport type ClientFieldBase<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n readonly field: TFieldClient\n} & Omit<ClientComponentProps, 'customComponents' | 'field'>\n\nexport type ServerFieldBase<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n readonly clientField: TFieldClient\n readonly field: TFieldServer\n} & Omit<ClientComponentProps, 'field'> &\n Omit<ServerComponentProps, 'clientField' | 'field'>\n\nexport type FieldClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ClientFieldBase<TFieldClient>>\n\nexport type FieldServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ServerFieldBase<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AA+HA,WAIsF"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Field.ts"],"sourcesContent":["import type { I18nClient } from '@payloadcms/translations'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { SanitizedFieldPermissions } from '../../auth/types.js'\nimport type { ClientBlock, ClientField, Field } from '../../fields/config/types.js'\nimport type { TypedUser } from '../../index.js'\nimport type { DocumentPreferences } from '../../preferences/types.js'\nimport type { Operation, Payload, PayloadRequest } from '../../types/index.js'\nimport type { ComponentRenderer } from '../adapters/render.js'\nimport type {\n ClientFieldSchemaMap,\n ClientTab,\n Data,\n FieldSchemaMap,\n FormField,\n FormState,\n RenderedField,\n} from '../types.js'\n\nexport type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>\n\nexport type ClientComponentProps = {\n customComponents?: FormField['customComponents']\n field: ClientBlock | ClientField | ClientTab\n /**\n * Controls the rendering behavior of the fields, i.e. defers rendering until they intersect with the viewport using the Intersection Observer API.\n *\n * If true, the fields will be rendered immediately, rather than waiting for them to intersect with the viewport.\n *\n * If a number is provided, will immediately render fields _up to that index_.\n */\n forceRender?: boolean\n permissions?: SanitizedFieldPermissions\n readOnly?: boolean\n renderedBlocks?: RenderedField[]\n /**\n * Used to extract field configs from a schemaMap.\n * Does not include indexes.\n *\n * @default field.name\n **/\n schemaPath?: string\n}\n\n// TODO: maybe we can come up with a better name?\nexport type FieldPaths = {\n /**\n * @default ''\n */\n indexPath?: string\n /**\n * @default ''\n */\n parentPath?: string\n /**\n * The path built up to the point of the field\n * excluding the field name.\n *\n * @default ''\n */\n parentSchemaPath?: string\n /**\n * A built up path to access FieldState in the form state.\n * Nested fields will have a path that includes the parent field names\n * if they are nested within a group, array, block or named tab.\n *\n * Collapsibles and unnamed tabs will have arbitrary paths\n * that look like _index-0, _index-1, etc.\n *\n * Row fields will not have a path.\n *\n * @example 'parentGroupField.childTextField'\n *\n * @default field.name\n */\n path: string\n}\n\n/**\n * TODO: This should be renamed to `FieldComponentServerProps` or similar\n */\nexport type ServerComponentProps = {\n clientField: ClientFieldWithOptionalType\n clientFieldSchemaMap: ClientFieldSchemaMap\n collectionSlug: string\n data: Data\n field: Field\n /**\n * The fieldSchemaMap that is created before form state is built is made available here.\n */\n fieldSchemaMap: FieldSchemaMap\n /**\n * Server Components will also have available to the entire form state.\n * We cannot add it to ClientComponentProps as that would blow up the size of the props sent to the client.\n */\n formState: FormState\n i18n: I18nClient\n id?: number | string\n operation: Operation\n payload: Payload\n permissions: SanitizedFieldPermissions\n preferences: DocumentPreferences\n /**\n * Adapter-injected component renderer. Server components can use this\n * to render other import map components without importing a\n * framework-specific renderer directly.\n */\n renderComponent?: ComponentRenderer\n req: PayloadRequest\n siblingData: Data\n user: TypedUser\n value?: unknown\n}\n\nexport type ClientFieldBase<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n readonly field: TFieldClient\n} & Omit<ClientComponentProps, 'customComponents' | 'field'>\n\nexport type ServerFieldBase<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n readonly clientField: TFieldClient\n readonly field: TFieldServer\n} & Omit<ClientComponentProps, 'field'> &\n Omit<ServerComponentProps, 'clientField' | 'field'>\n\nexport type FieldClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ClientFieldBase<TFieldClient>>\n\nexport type FieldServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ServerFieldBase<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAsIA,WAIsF"}
@@ -1,5 +1,6 @@
1
1
  import { type SupportedLanguages } from '@payloadcms/translations';
2
2
  import type { SanitizedDocumentPermissions } from '../../auth/types.js';
3
+ import type { PayloadComponent } from '../../config/types.js';
3
4
  import type { Field, Option, TabAsField, Validate } from '../../fields/config/types.js';
4
5
  import type { TypedLocale } from '../../index.js';
5
6
  import type { DocumentPreferences } from '../../preferences/types.js';
@@ -10,6 +11,9 @@ export type Data = {
10
11
  export type Row = {
11
12
  addedByServer?: FieldState['addedByServer'];
12
13
  blockType?: string;
14
+ clientComponentPaths?: {
15
+ RowLabel?: PayloadComponent;
16
+ };
13
17
  collapsed?: boolean;
14
18
  customComponents?: {
15
19
  RowLabel?: React.ReactNode;
@@ -35,6 +39,31 @@ export type FieldState = {
35
39
  * If this is an empty array, no blocks are allowed.
36
40
  */
37
41
  blocksFilterOptions?: string[];
42
+ /**
43
+ * Serializable PayloadComponent references for field UI slots.
44
+ * Used by non-RSC adapters (e.g. TanStack) to resolve custom components from the import map
45
+ * when `customComponents` are unavailable (stripped during serialization).
46
+ */
47
+ clientComponentPaths?: {
48
+ AfterInput?: PayloadComponent | PayloadComponent[];
49
+ BeforeInput?: PayloadComponent | PayloadComponent[];
50
+ Description?: PayloadComponent;
51
+ Error?: PayloadComponent;
52
+ Label?: PayloadComponent;
53
+ };
54
+ /**
55
+ * PayloadComponent reference for a client-safe field component.
56
+ * Used by non-RSC adapters (e.g. TanStack) to resolve a fallback component from the import map
57
+ * when `customComponents.Field` is unavailable (stripped during serialization).
58
+ */
59
+ clientFieldComponentPath?: {
60
+ clientProps?: Record<string, any>;
61
+ path: string;
62
+ } | string;
63
+ /**
64
+ * Serializable props for the client field component referenced by `clientFieldComponentPath`.
65
+ */
66
+ clientFieldComponentProps?: Record<string, any>;
38
67
  customComponents?: {
39
68
  /**
40
69
  * This is used by UI fields, as they can have arbitrary components defined if used