payload 3.41.0-internal.8617025 → 3.41.0

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 (706) hide show
  1. package/dist/admin/RichText.d.ts +2 -2
  2. package/dist/admin/RichText.d.ts.map +1 -1
  3. package/dist/admin/RichText.js +1 -2
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/elements/EditMenuItems.d.ts +5 -0
  6. package/dist/admin/elements/EditMenuItems.d.ts.map +1 -0
  7. package/dist/admin/elements/EditMenuItems.js +3 -0
  8. package/dist/admin/elements/EditMenuItems.js.map +1 -0
  9. package/dist/admin/fields/Select.d.ts.map +1 -1
  10. package/dist/admin/fields/Select.js.map +1 -1
  11. package/dist/admin/forms/Diff.d.ts +2 -2
  12. package/dist/admin/forms/Diff.d.ts.map +1 -1
  13. package/dist/admin/forms/Diff.js +0 -1
  14. package/dist/admin/forms/Diff.js.map +1 -1
  15. package/dist/admin/types.d.ts +2 -0
  16. package/dist/admin/types.d.ts.map +1 -1
  17. package/dist/admin/types.js.map +1 -1
  18. package/dist/admin/views/index.d.ts +1 -1
  19. package/dist/admin/views/index.d.ts.map +1 -1
  20. package/dist/admin/views/index.js.map +1 -1
  21. package/dist/auth/cookies.d.ts.map +1 -1
  22. package/dist/auth/cookies.js +0 -1
  23. package/dist/auth/cookies.js.map +1 -1
  24. package/dist/auth/endpoints/forgotPassword.d.ts.map +1 -1
  25. package/dist/auth/endpoints/forgotPassword.js +1 -2
  26. package/dist/auth/endpoints/forgotPassword.js.map +1 -1
  27. package/dist/auth/endpoints/login.d.ts.map +1 -1
  28. package/dist/auth/endpoints/login.js +0 -1
  29. package/dist/auth/endpoints/login.js.map +1 -1
  30. package/dist/auth/endpoints/me.d.ts.map +1 -1
  31. package/dist/auth/endpoints/me.js +1 -2
  32. package/dist/auth/endpoints/me.js.map +1 -1
  33. package/dist/auth/endpoints/refresh.d.ts.map +1 -1
  34. package/dist/auth/endpoints/refresh.js +1 -1
  35. package/dist/auth/endpoints/refresh.js.map +1 -1
  36. package/dist/auth/endpoints/registerFirstUser.d.ts.map +1 -1
  37. package/dist/auth/endpoints/registerFirstUser.js +0 -1
  38. package/dist/auth/endpoints/registerFirstUser.js.map +1 -1
  39. package/dist/auth/endpoints/resetPassword.d.ts.map +1 -1
  40. package/dist/auth/endpoints/resetPassword.js +0 -1
  41. package/dist/auth/endpoints/resetPassword.js.map +1 -1
  42. package/dist/auth/extractJWT.js.map +1 -1
  43. package/dist/auth/getAccessResults.d.ts.map +1 -1
  44. package/dist/auth/getAccessResults.js +0 -1
  45. package/dist/auth/getAccessResults.js.map +1 -1
  46. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  47. package/dist/auth/getFieldsToSign.js +0 -1
  48. package/dist/auth/getFieldsToSign.js.map +1 -1
  49. package/dist/auth/getLoginOptions.d.ts.map +1 -1
  50. package/dist/auth/getLoginOptions.js +0 -1
  51. package/dist/auth/getLoginOptions.js.map +1 -1
  52. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  53. package/dist/auth/operations/forgotPassword.js +0 -1
  54. package/dist/auth/operations/forgotPassword.js.map +1 -1
  55. package/dist/auth/operations/local/forgotPassword.d.ts.map +1 -1
  56. package/dist/auth/operations/local/forgotPassword.js +0 -1
  57. package/dist/auth/operations/local/forgotPassword.js.map +1 -1
  58. package/dist/auth/operations/login.d.ts.map +1 -1
  59. package/dist/auth/operations/login.js +7 -7
  60. package/dist/auth/operations/login.js.map +1 -1
  61. package/dist/auth/operations/me.d.ts.map +1 -1
  62. package/dist/auth/operations/me.js +0 -1
  63. package/dist/auth/operations/me.js.map +1 -1
  64. package/dist/auth/operations/refresh.d.ts.map +1 -1
  65. package/dist/auth/operations/refresh.js +0 -1
  66. package/dist/auth/operations/refresh.js.map +1 -1
  67. package/dist/auth/operations/unlock.js +1 -1
  68. package/dist/auth/operations/unlock.js.map +1 -1
  69. package/dist/auth/sendVerificationEmail.d.ts.map +1 -1
  70. package/dist/auth/sendVerificationEmail.js +0 -1
  71. package/dist/auth/sendVerificationEmail.js.map +1 -1
  72. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  73. package/dist/auth/strategies/apiKey.js +1 -2
  74. package/dist/auth/strategies/apiKey.js.map +1 -1
  75. package/dist/auth/strategies/jwt.d.ts.map +1 -1
  76. package/dist/auth/strategies/jwt.js +0 -1
  77. package/dist/auth/strategies/jwt.js.map +1 -1
  78. package/dist/auth/strategies/local/authenticate.js +1 -1
  79. package/dist/auth/strategies/local/authenticate.js.map +1 -1
  80. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -1
  81. package/dist/bin/generateImportMap/iterateCollections.js +1 -0
  82. package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
  83. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
  84. package/dist/bin/generateImportMap/iterateConfig.js +0 -1
  85. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
  86. package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -1
  87. package/dist/bin/generateImportMap/iterateFields.js +0 -1
  88. package/dist/bin/generateImportMap/iterateFields.js.map +1 -1
  89. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.d.ts.map +1 -1
  90. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.js +2 -3
  91. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.js.map +1 -1
  92. package/dist/bin/index.d.ts.map +1 -1
  93. package/dist/bin/index.js.map +1 -1
  94. package/dist/bin/loadEnv.d.ts.map +1 -1
  95. package/dist/bin/loadEnv.js +1 -1
  96. package/dist/bin/loadEnv.js.map +1 -1
  97. package/dist/collections/config/client.js +2 -2
  98. package/dist/collections/config/client.js.map +1 -1
  99. package/dist/collections/config/sanitize.d.ts.map +1 -1
  100. package/dist/collections/config/sanitize.js +9 -3
  101. package/dist/collections/config/sanitize.js.map +1 -1
  102. package/dist/collections/config/types.d.ts +7 -2
  103. package/dist/collections/config/types.d.ts.map +1 -1
  104. package/dist/collections/config/types.js +1 -1
  105. package/dist/collections/config/types.js.map +1 -1
  106. package/dist/collections/config/useAsTitle.js +2 -2
  107. package/dist/collections/config/useAsTitle.js.map +1 -1
  108. package/dist/collections/dataloader.d.ts +2 -1
  109. package/dist/collections/dataloader.d.ts.map +1 -1
  110. package/dist/collections/dataloader.js +1 -1
  111. package/dist/collections/dataloader.js.map +1 -1
  112. package/dist/collections/endpoints/create.d.ts.map +1 -1
  113. package/dist/collections/endpoints/create.js +0 -1
  114. package/dist/collections/endpoints/create.js.map +1 -1
  115. package/dist/collections/endpoints/delete.d.ts.map +1 -1
  116. package/dist/collections/endpoints/delete.js +1 -2
  117. package/dist/collections/endpoints/delete.js.map +1 -1
  118. package/dist/collections/endpoints/find.d.ts.map +1 -1
  119. package/dist/collections/endpoints/find.js +0 -1
  120. package/dist/collections/endpoints/find.js.map +1 -1
  121. package/dist/collections/endpoints/findByID.d.ts.map +1 -1
  122. package/dist/collections/endpoints/findByID.js +0 -1
  123. package/dist/collections/endpoints/findByID.js.map +1 -1
  124. package/dist/collections/endpoints/preview.d.ts.map +1 -1
  125. package/dist/collections/endpoints/preview.js +0 -1
  126. package/dist/collections/endpoints/preview.js.map +1 -1
  127. package/dist/collections/endpoints/update.d.ts.map +1 -1
  128. package/dist/collections/endpoints/update.js +1 -2
  129. package/dist/collections/endpoints/update.js.map +1 -1
  130. package/dist/collections/endpoints/updateByID.d.ts.map +1 -1
  131. package/dist/collections/endpoints/updateByID.js +0 -1
  132. package/dist/collections/endpoints/updateByID.js.map +1 -1
  133. package/dist/collections/operations/count.d.ts.map +1 -1
  134. package/dist/collections/operations/count.js +7 -6
  135. package/dist/collections/operations/count.js.map +1 -1
  136. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  137. package/dist/collections/operations/countVersions.js +7 -6
  138. package/dist/collections/operations/countVersions.js.map +1 -1
  139. package/dist/collections/operations/create.d.ts.map +1 -1
  140. package/dist/collections/operations/create.js +7 -8
  141. package/dist/collections/operations/create.js.map +1 -1
  142. package/dist/collections/operations/delete.d.ts.map +1 -1
  143. package/dist/collections/operations/delete.js +8 -7
  144. package/dist/collections/operations/delete.js.map +1 -1
  145. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  146. package/dist/collections/operations/deleteByID.js +5 -6
  147. package/dist/collections/operations/deleteByID.js.map +1 -1
  148. package/dist/collections/operations/docAccess.d.ts.map +1 -1
  149. package/dist/collections/operations/docAccess.js +1 -2
  150. package/dist/collections/operations/docAccess.js.map +1 -1
  151. package/dist/collections/operations/find.d.ts.map +1 -1
  152. package/dist/collections/operations/find.js +15 -14
  153. package/dist/collections/operations/find.js.map +1 -1
  154. package/dist/collections/operations/findByID.d.ts.map +1 -1
  155. package/dist/collections/operations/findByID.js +7 -8
  156. package/dist/collections/operations/findByID.js.map +1 -1
  157. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  158. package/dist/collections/operations/findVersionByID.js +7 -7
  159. package/dist/collections/operations/findVersionByID.js.map +1 -1
  160. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  161. package/dist/collections/operations/findVersions.js +13 -10
  162. package/dist/collections/operations/findVersions.js.map +1 -1
  163. package/dist/collections/operations/local/count.d.ts.map +1 -1
  164. package/dist/collections/operations/local/count.js +0 -1
  165. package/dist/collections/operations/local/count.js.map +1 -1
  166. package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
  167. package/dist/collections/operations/local/countVersions.js +0 -1
  168. package/dist/collections/operations/local/countVersions.js.map +1 -1
  169. package/dist/collections/operations/local/create.d.ts.map +1 -1
  170. package/dist/collections/operations/local/create.js +0 -1
  171. package/dist/collections/operations/local/create.js.map +1 -1
  172. package/dist/collections/operations/local/delete.d.ts.map +1 -1
  173. package/dist/collections/operations/local/delete.js +2 -1
  174. package/dist/collections/operations/local/delete.js.map +1 -1
  175. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  176. package/dist/collections/operations/local/duplicate.js +0 -1
  177. package/dist/collections/operations/local/duplicate.js.map +1 -1
  178. package/dist/collections/operations/local/find.d.ts.map +1 -1
  179. package/dist/collections/operations/local/find.js +0 -1
  180. package/dist/collections/operations/local/find.js.map +1 -1
  181. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  182. package/dist/collections/operations/local/findByID.js +0 -1
  183. package/dist/collections/operations/local/findByID.js.map +1 -1
  184. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  185. package/dist/collections/operations/local/findVersionByID.js +0 -1
  186. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  187. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  188. package/dist/collections/operations/local/findVersions.js +0 -1
  189. package/dist/collections/operations/local/findVersions.js.map +1 -1
  190. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  191. package/dist/collections/operations/local/restoreVersion.js +0 -1
  192. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  193. package/dist/collections/operations/local/update.d.ts.map +1 -1
  194. package/dist/collections/operations/local/update.js +2 -1
  195. package/dist/collections/operations/local/update.js.map +1 -1
  196. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  197. package/dist/collections/operations/restoreVersion.js +7 -7
  198. package/dist/collections/operations/restoreVersion.js.map +1 -1
  199. package/dist/collections/operations/update.js +11 -11
  200. package/dist/collections/operations/update.js.map +1 -1
  201. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  202. package/dist/collections/operations/updateByID.js +8 -9
  203. package/dist/collections/operations/updateByID.js.map +1 -1
  204. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  205. package/dist/collections/operations/utilities/update.js +1 -1
  206. package/dist/collections/operations/utilities/update.js.map +1 -1
  207. package/dist/config/client.d.ts.map +1 -1
  208. package/dist/config/client.js +10 -0
  209. package/dist/config/client.js.map +1 -1
  210. package/dist/config/defaults.d.ts.map +1 -1
  211. package/dist/config/defaults.js +12 -6
  212. package/dist/config/defaults.js.map +1 -1
  213. package/dist/config/find.d.ts.map +1 -1
  214. package/dist/config/find.js +0 -1
  215. package/dist/config/find.js.map +1 -1
  216. package/dist/config/orderable/fractional-indexing.d.ts +1 -0
  217. package/dist/config/orderable/fractional-indexing.d.ts.map +1 -1
  218. package/dist/config/orderable/fractional-indexing.js +2 -1
  219. package/dist/config/orderable/fractional-indexing.js.map +1 -1
  220. package/dist/config/sanitize.js +1 -1
  221. package/dist/config/sanitize.js.map +1 -1
  222. package/dist/config/types.d.ts +9 -8
  223. package/dist/config/types.d.ts.map +1 -1
  224. package/dist/config/types.js +0 -1
  225. package/dist/config/types.js.map +1 -1
  226. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  227. package/dist/database/createDatabaseAdapter.js +5 -1
  228. package/dist/database/createDatabaseAdapter.js.map +1 -1
  229. package/dist/database/getLocalizedPaths.d.ts +1 -1
  230. package/dist/database/getLocalizedPaths.d.ts.map +1 -1
  231. package/dist/database/getLocalizedPaths.js +4 -4
  232. package/dist/database/getLocalizedPaths.js.map +1 -1
  233. package/dist/database/migrations/createMigration.d.ts.map +1 -1
  234. package/dist/database/migrations/createMigration.js +0 -1
  235. package/dist/database/migrations/createMigration.js.map +1 -1
  236. package/dist/database/migrations/migrate.d.ts.map +1 -1
  237. package/dist/database/migrations/migrate.js +0 -1
  238. package/dist/database/migrations/migrate.js.map +1 -1
  239. package/dist/database/migrations/migrateDown.d.ts.map +1 -1
  240. package/dist/database/migrations/migrateDown.js +0 -1
  241. package/dist/database/migrations/migrateDown.js.map +1 -1
  242. package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
  243. package/dist/database/migrations/migrateRefresh.js +0 -1
  244. package/dist/database/migrations/migrateRefresh.js.map +1 -1
  245. package/dist/database/migrations/migrateReset.d.ts.map +1 -1
  246. package/dist/database/migrations/migrateReset.js +0 -1
  247. package/dist/database/migrations/migrateReset.js.map +1 -1
  248. package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
  249. package/dist/database/migrations/readMigrationFiles.js +1 -2
  250. package/dist/database/migrations/readMigrationFiles.js.map +1 -1
  251. package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
  252. package/dist/database/queryValidation/validateQueryPaths.js +2 -0
  253. package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
  254. package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
  255. package/dist/database/queryValidation/validateSearchParams.js +5 -3
  256. package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
  257. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  258. package/dist/database/sanitizeJoinQuery.js.map +1 -1
  259. package/dist/duplicateDocument/index.d.ts.map +1 -1
  260. package/dist/duplicateDocument/index.js +1 -2
  261. package/dist/duplicateDocument/index.js.map +1 -1
  262. package/dist/email/getStringifiedToAddress.d.ts.map +1 -1
  263. package/dist/email/getStringifiedToAddress.js +1 -2
  264. package/dist/email/getStringifiedToAddress.js.map +1 -1
  265. package/dist/errors/APIError.d.ts.map +1 -1
  266. package/dist/errors/APIError.js +0 -1
  267. package/dist/errors/APIError.js.map +1 -1
  268. package/dist/errors/ValidationError.js.map +1 -1
  269. package/dist/exports/shared.d.ts +4 -3
  270. package/dist/exports/shared.d.ts.map +1 -1
  271. package/dist/exports/shared.js +4 -3
  272. package/dist/exports/shared.js.map +1 -1
  273. package/dist/fields/baseFields/timezone/baseField.d.ts.map +1 -1
  274. package/dist/fields/baseFields/timezone/baseField.js +2 -3
  275. package/dist/fields/baseFields/timezone/baseField.js.map +1 -1
  276. package/dist/fields/config/client.d.ts.map +1 -1
  277. package/dist/fields/config/client.js +2 -0
  278. package/dist/fields/config/client.js.map +1 -1
  279. package/dist/fields/config/reservedFieldNames.d.ts +3 -3
  280. package/dist/fields/config/reservedFieldNames.d.ts.map +1 -1
  281. package/dist/fields/config/sanitize.d.ts.map +1 -1
  282. package/dist/fields/config/sanitize.js +4 -2
  283. package/dist/fields/config/sanitize.js.map +1 -1
  284. package/dist/fields/config/sanitizeJoinField.d.ts +1 -1
  285. package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
  286. package/dist/fields/config/sanitizeJoinField.js +3 -3
  287. package/dist/fields/config/sanitizeJoinField.js.map +1 -1
  288. package/dist/fields/config/types.d.ts.map +1 -1
  289. package/dist/fields/config/types.js +0 -1
  290. package/dist/fields/config/types.js.map +1 -1
  291. package/dist/fields/getFieldPaths.d.ts.map +1 -1
  292. package/dist/fields/getFieldPaths.js +0 -1
  293. package/dist/fields/getFieldPaths.js.map +1 -1
  294. package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
  295. package/dist/fields/hooks/afterChange/index.js +0 -1
  296. package/dist/fields/hooks/afterChange/index.js.map +1 -1
  297. package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
  298. package/dist/fields/hooks/afterChange/promise.js +1 -2
  299. package/dist/fields/hooks/afterChange/promise.js.map +1 -1
  300. package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
  301. package/dist/fields/hooks/afterChange/traverseFields.js +1 -2
  302. package/dist/fields/hooks/afterChange/traverseFields.js.map +1 -1
  303. package/dist/fields/hooks/afterRead/index.js +1 -1
  304. package/dist/fields/hooks/afterRead/index.js.map +1 -1
  305. package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
  306. package/dist/fields/hooks/afterRead/promise.js +20 -19
  307. package/dist/fields/hooks/afterRead/promise.js.map +1 -1
  308. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js +2 -2
  309. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js.map +1 -1
  310. package/dist/fields/hooks/afterRead/virtualFieldPopulationPromise.js +2 -2
  311. package/dist/fields/hooks/afterRead/virtualFieldPopulationPromise.js.map +1 -1
  312. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  313. package/dist/fields/hooks/beforeChange/index.js +1 -2
  314. package/dist/fields/hooks/beforeChange/index.js.map +1 -1
  315. package/dist/fields/hooks/beforeChange/promise.js +7 -7
  316. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  317. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  318. package/dist/fields/hooks/beforeChange/traverseFields.js +2 -3
  319. package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
  320. package/dist/fields/hooks/beforeDuplicate/index.d.ts.map +1 -1
  321. package/dist/fields/hooks/beforeDuplicate/index.js +1 -2
  322. package/dist/fields/hooks/beforeDuplicate/index.js.map +1 -1
  323. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  324. package/dist/fields/hooks/beforeDuplicate/promise.js +2 -3
  325. package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
  326. package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts.map +1 -1
  327. package/dist/fields/hooks/beforeDuplicate/traverseFields.js +0 -1
  328. package/dist/fields/hooks/beforeDuplicate/traverseFields.js.map +1 -1
  329. package/dist/fields/hooks/beforeValidate/getFallbackValue.js.map +1 -1
  330. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  331. package/dist/fields/hooks/beforeValidate/index.js +0 -1
  332. package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
  333. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  334. package/dist/fields/hooks/beforeValidate/promise.js +4 -5
  335. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  336. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  337. package/dist/fields/hooks/beforeValidate/traverseFields.js +1 -2
  338. package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
  339. package/dist/fields/mergeBaseFields.d.ts +1 -2
  340. package/dist/fields/mergeBaseFields.d.ts.map +1 -1
  341. package/dist/fields/mergeBaseFields.js +1 -3
  342. package/dist/fields/mergeBaseFields.js.map +1 -1
  343. package/dist/fields/setDefaultBeforeDuplicate.js.map +1 -1
  344. package/dist/fields/sortableFieldTypes.d.ts +1 -2
  345. package/dist/fields/sortableFieldTypes.d.ts.map +1 -1
  346. package/dist/fields/sortableFieldTypes.js +1 -1
  347. package/dist/fields/sortableFieldTypes.js.map +1 -1
  348. package/dist/fields/validations.d.ts.map +1 -1
  349. package/dist/fields/validations.js +7 -7
  350. package/dist/fields/validations.js.map +1 -1
  351. package/dist/folders/addFolderCollections.js +1 -1
  352. package/dist/folders/addFolderCollections.js.map +1 -1
  353. package/dist/folders/endpoints/populateFolderData.d.ts.map +1 -1
  354. package/dist/folders/endpoints/populateFolderData.js +77 -4
  355. package/dist/folders/endpoints/populateFolderData.js.map +1 -1
  356. package/dist/folders/hooks/reparentChildFolder.d.ts.map +1 -1
  357. package/dist/folders/hooks/reparentChildFolder.js +5 -3
  358. package/dist/folders/hooks/reparentChildFolder.js.map +1 -1
  359. package/dist/folders/types.d.ts +14 -1
  360. package/dist/folders/types.d.ts.map +1 -1
  361. package/dist/folders/types.js.map +1 -1
  362. package/dist/folders/utils/buildFolderWhereConstraints.d.ts +13 -0
  363. package/dist/folders/utils/buildFolderWhereConstraints.d.ts.map +1 -0
  364. package/dist/folders/utils/buildFolderWhereConstraints.js +39 -0
  365. package/dist/folders/utils/buildFolderWhereConstraints.js.map +1 -0
  366. package/dist/folders/utils/getFolderBreadcrumbs.js +2 -2
  367. package/dist/folders/utils/getFolderBreadcrumbs.js.map +1 -1
  368. package/dist/folders/utils/getFolderData.d.ts +11 -6
  369. package/dist/folders/utils/getFolderData.d.ts.map +1 -1
  370. package/dist/folders/utils/getFolderData.js +11 -5
  371. package/dist/folders/utils/getFolderData.js.map +1 -1
  372. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts +11 -4
  373. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts.map +1 -1
  374. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js +14 -18
  375. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js.map +1 -1
  376. package/dist/folders/utils/getOrphanedDocs.d.ts +8 -3
  377. package/dist/folders/utils/getOrphanedDocs.d.ts.map +1 -1
  378. package/dist/folders/utils/getOrphanedDocs.js +13 -16
  379. package/dist/folders/utils/getOrphanedDocs.js.map +1 -1
  380. package/dist/globals/config/client.d.ts.map +1 -1
  381. package/dist/globals/config/client.js +2 -4
  382. package/dist/globals/config/client.js.map +1 -1
  383. package/dist/globals/config/sanitize.d.ts.map +1 -1
  384. package/dist/globals/config/sanitize.js +3 -4
  385. package/dist/globals/config/sanitize.js.map +1 -1
  386. package/dist/globals/config/types.d.ts.map +1 -1
  387. package/dist/globals/config/types.js +1 -1
  388. package/dist/globals/config/types.js.map +1 -1
  389. package/dist/globals/endpoints/findVersionByID.d.ts.map +1 -1
  390. package/dist/globals/endpoints/findVersionByID.js +0 -1
  391. package/dist/globals/endpoints/findVersionByID.js.map +1 -1
  392. package/dist/globals/endpoints/preview.d.ts.map +1 -1
  393. package/dist/globals/endpoints/preview.js +0 -1
  394. package/dist/globals/endpoints/preview.js.map +1 -1
  395. package/dist/globals/endpoints/restoreVersion.d.ts.map +1 -1
  396. package/dist/globals/endpoints/restoreVersion.js +0 -1
  397. package/dist/globals/endpoints/restoreVersion.js.map +1 -1
  398. package/dist/globals/endpoints/update.d.ts.map +1 -1
  399. package/dist/globals/endpoints/update.js +0 -1
  400. package/dist/globals/endpoints/update.js.map +1 -1
  401. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  402. package/dist/globals/operations/countGlobalVersions.js +6 -4
  403. package/dist/globals/operations/countGlobalVersions.js.map +1 -1
  404. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  405. package/dist/globals/operations/docAccess.js +1 -2
  406. package/dist/globals/operations/docAccess.js.map +1 -1
  407. package/dist/globals/operations/findOne.d.ts.map +1 -1
  408. package/dist/globals/operations/findOne.js +6 -7
  409. package/dist/globals/operations/findOne.js.map +1 -1
  410. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  411. package/dist/globals/operations/findVersionByID.js +7 -8
  412. package/dist/globals/operations/findVersionByID.js.map +1 -1
  413. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  414. package/dist/globals/operations/findVersions.js +12 -11
  415. package/dist/globals/operations/findVersions.js.map +1 -1
  416. package/dist/globals/operations/local/countGlobalVersions.d.ts.map +1 -1
  417. package/dist/globals/operations/local/countGlobalVersions.js +0 -1
  418. package/dist/globals/operations/local/countGlobalVersions.js.map +1 -1
  419. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  420. package/dist/globals/operations/local/findOne.js +0 -1
  421. package/dist/globals/operations/local/findOne.js.map +1 -1
  422. package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
  423. package/dist/globals/operations/local/findVersionByID.js +0 -1
  424. package/dist/globals/operations/local/findVersionByID.js.map +1 -1
  425. package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
  426. package/dist/globals/operations/local/findVersions.js +0 -1
  427. package/dist/globals/operations/local/findVersions.js.map +1 -1
  428. package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
  429. package/dist/globals/operations/local/restoreVersion.js +0 -1
  430. package/dist/globals/operations/local/restoreVersion.js.map +1 -1
  431. package/dist/globals/operations/local/update.d.ts.map +1 -1
  432. package/dist/globals/operations/local/update.js +1 -2
  433. package/dist/globals/operations/local/update.js.map +1 -1
  434. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  435. package/dist/globals/operations/restoreVersion.js +8 -7
  436. package/dist/globals/operations/restoreVersion.js.map +1 -1
  437. package/dist/globals/operations/update.d.ts.map +1 -1
  438. package/dist/globals/operations/update.js +9 -10
  439. package/dist/globals/operations/update.js.map +1 -1
  440. package/dist/index.d.ts +2 -2
  441. package/dist/index.d.ts.map +1 -1
  442. package/dist/index.js +6 -6
  443. package/dist/index.js.map +1 -1
  444. package/dist/locked-documents/config.d.ts.map +1 -1
  445. package/dist/locked-documents/config.js +0 -1
  446. package/dist/locked-documents/config.js.map +1 -1
  447. package/dist/preferences/config.d.ts.map +1 -1
  448. package/dist/preferences/config.js +0 -1
  449. package/dist/preferences/config.js.map +1 -1
  450. package/dist/preferences/operations/findOne.d.ts.map +1 -1
  451. package/dist/preferences/operations/findOne.js +0 -1
  452. package/dist/preferences/operations/findOne.js.map +1 -1
  453. package/dist/preferences/requestHandlers/delete.d.ts.map +1 -1
  454. package/dist/preferences/requestHandlers/delete.js +2 -3
  455. package/dist/preferences/requestHandlers/delete.js.map +1 -1
  456. package/dist/preferences/requestHandlers/findOne.d.ts.map +1 -1
  457. package/dist/preferences/requestHandlers/findOne.js +2 -3
  458. package/dist/preferences/requestHandlers/findOne.js.map +1 -1
  459. package/dist/preferences/requestHandlers/update.d.ts.map +1 -1
  460. package/dist/preferences/requestHandlers/update.js +2 -3
  461. package/dist/preferences/requestHandlers/update.js.map +1 -1
  462. package/dist/query-presets/config.js +1 -1
  463. package/dist/query-presets/config.js.map +1 -1
  464. package/dist/query-presets/constraints.js.map +1 -1
  465. package/dist/queues/config/generateJobsJSONSchemas.d.ts.map +1 -1
  466. package/dist/queues/config/generateJobsJSONSchemas.js +0 -1
  467. package/dist/queues/config/generateJobsJSONSchemas.js.map +1 -1
  468. package/dist/queues/config/index.d.ts.map +1 -1
  469. package/dist/queues/config/index.js +1 -0
  470. package/dist/queues/config/index.js.map +1 -1
  471. package/dist/queues/config/types/workflowTypes.js.map +1 -1
  472. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  473. package/dist/queues/operations/runJobs/index.js +5 -5
  474. package/dist/queues/operations/runJobs/index.js.map +1 -1
  475. package/dist/queues/operations/runJobs/runJSONJob/index.js +1 -1
  476. package/dist/queues/operations/runJobs/runJSONJob/index.js.map +1 -1
  477. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts.map +1 -1
  478. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +7 -6
  479. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  480. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +1 -1
  481. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -1
  482. package/dist/queues/operations/runJobs/runJob/handleWorkflowError.d.ts.map +1 -1
  483. package/dist/queues/operations/runJobs/runJob/handleWorkflowError.js +1 -2
  484. package/dist/queues/operations/runJobs/runJob/handleWorkflowError.js.map +1 -1
  485. package/dist/queues/operations/runJobs/runJob/importHandlerPath.js.map +1 -1
  486. package/dist/queues/utilities/getJobTaskStatus.d.ts.map +1 -1
  487. package/dist/queues/utilities/getJobTaskStatus.js +1 -2
  488. package/dist/queues/utilities/getJobTaskStatus.js.map +1 -1
  489. package/dist/queues/utilities/updateJob.d.ts +1 -1
  490. package/dist/queues/utilities/updateJob.d.ts.map +1 -1
  491. package/dist/queues/utilities/updateJob.js +0 -1
  492. package/dist/queues/utilities/updateJob.js.map +1 -1
  493. package/dist/types/index.d.ts.map +1 -1
  494. package/dist/types/index.js +0 -1
  495. package/dist/types/index.js.map +1 -1
  496. package/dist/uploads/checkFileAccess.d.ts +1 -1
  497. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  498. package/dist/uploads/checkFileAccess.js +1 -2
  499. package/dist/uploads/checkFileAccess.js.map +1 -1
  500. package/dist/uploads/cropImage.d.ts +1 -1
  501. package/dist/uploads/cropImage.d.ts.map +1 -1
  502. package/dist/uploads/cropImage.js +4 -3
  503. package/dist/uploads/cropImage.js.map +1 -1
  504. package/dist/uploads/deleteAssociatedFiles.js +3 -3
  505. package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
  506. package/dist/uploads/docWithFilenameExists.d.ts +2 -2
  507. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  508. package/dist/uploads/docWithFilenameExists.js +1 -2
  509. package/dist/uploads/docWithFilenameExists.js.map +1 -1
  510. package/dist/uploads/endpoints/getFile.js +1 -1
  511. package/dist/uploads/endpoints/getFile.js.map +1 -1
  512. package/dist/uploads/fetchAPI-multipart/handlers.d.ts.map +1 -1
  513. package/dist/uploads/fetchAPI-multipart/handlers.js +0 -1
  514. package/dist/uploads/fetchAPI-multipart/handlers.js.map +1 -1
  515. package/dist/uploads/fetchAPI-multipart/index.d.ts.map +1 -1
  516. package/dist/uploads/fetchAPI-multipart/index.js +0 -1
  517. package/dist/uploads/fetchAPI-multipart/index.js.map +1 -1
  518. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.d.ts.map +1 -1
  519. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js +1 -2
  520. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js.map +1 -1
  521. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
  522. package/dist/uploads/fetchAPI-multipart/processMultipart.js +4 -3
  523. package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
  524. package/dist/uploads/fetchAPI-multipart/processNested.js +1 -1
  525. package/dist/uploads/fetchAPI-multipart/processNested.js.map +1 -1
  526. package/dist/uploads/fetchAPI-multipart/uploadTimer.d.ts.map +1 -1
  527. package/dist/uploads/fetchAPI-multipart/uploadTimer.js +0 -1
  528. package/dist/uploads/fetchAPI-multipart/uploadTimer.js.map +1 -1
  529. package/dist/uploads/fetchAPI-multipart/utilities.js +2 -2
  530. package/dist/uploads/fetchAPI-multipart/utilities.js.map +1 -1
  531. package/dist/uploads/fileExists.d.ts +1 -2
  532. package/dist/uploads/fileExists.d.ts.map +1 -1
  533. package/dist/uploads/fileExists.js +2 -3
  534. package/dist/uploads/fileExists.js.map +1 -1
  535. package/dist/uploads/generateFileData.d.ts.map +1 -1
  536. package/dist/uploads/generateFileData.js +5 -6
  537. package/dist/uploads/generateFileData.js.map +1 -1
  538. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  539. package/dist/uploads/getBaseFields.js +4 -5
  540. package/dist/uploads/getBaseFields.js.map +1 -1
  541. package/dist/uploads/getExternalFile.d.ts.map +1 -1
  542. package/dist/uploads/getExternalFile.js +1 -9
  543. package/dist/uploads/getExternalFile.js.map +1 -1
  544. package/dist/uploads/getFileByPath.d.ts.map +1 -1
  545. package/dist/uploads/getFileByPath.js +0 -1
  546. package/dist/uploads/getFileByPath.js.map +1 -1
  547. package/dist/uploads/getImageSize.d.ts.map +1 -1
  548. package/dist/uploads/getImageSize.js +2 -3
  549. package/dist/uploads/getImageSize.js.map +1 -1
  550. package/dist/uploads/getSafeFilename.js +2 -2
  551. package/dist/uploads/getSafeFilename.js.map +1 -1
  552. package/dist/uploads/imageResizer.d.ts.map +1 -1
  553. package/dist/uploads/imageResizer.js +7 -6
  554. package/dist/uploads/imageResizer.js.map +1 -1
  555. package/dist/uploads/saveBufferToFile.d.ts +1 -2
  556. package/dist/uploads/saveBufferToFile.d.ts.map +1 -1
  557. package/dist/uploads/saveBufferToFile.js +1 -3
  558. package/dist/uploads/saveBufferToFile.js.map +1 -1
  559. package/dist/uploads/uploadFiles.js +1 -1
  560. package/dist/uploads/uploadFiles.js.map +1 -1
  561. package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
  562. package/dist/utilities/addDataAndFileToRequest.js +2 -3
  563. package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
  564. package/dist/utilities/addLocalesToRequest.js.map +1 -1
  565. package/dist/utilities/addSelectGenericsToGeneretedTypes.js.map +1 -1
  566. package/dist/utilities/commitTransaction.d.ts.map +1 -1
  567. package/dist/utilities/commitTransaction.js +0 -1
  568. package/dist/utilities/commitTransaction.js.map +1 -1
  569. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  570. package/dist/utilities/configToJSONSchema.js +2 -2
  571. package/dist/utilities/configToJSONSchema.js.map +1 -1
  572. package/dist/utilities/createLocalReq.d.ts +3 -2
  573. package/dist/utilities/createLocalReq.d.ts.map +1 -1
  574. package/dist/utilities/createLocalReq.js +3 -4
  575. package/dist/utilities/createLocalReq.js.map +1 -1
  576. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  577. package/dist/utilities/createPayloadRequest.js +3 -4
  578. package/dist/utilities/createPayloadRequest.js.map +1 -1
  579. package/dist/utilities/deepCopyObject.js.map +1 -1
  580. package/dist/utilities/deepMerge.d.ts.map +1 -1
  581. package/dist/utilities/deepMerge.js +2 -3
  582. package/dist/utilities/deepMerge.js.map +1 -1
  583. package/dist/utilities/dependencies/dependencyChecker.d.ts.map +1 -1
  584. package/dist/utilities/dependencies/dependencyChecker.js +0 -1
  585. package/dist/utilities/dependencies/dependencyChecker.js.map +1 -1
  586. package/dist/utilities/dependencies/getDependencies.js.map +1 -1
  587. package/dist/utilities/dependencies/resolveFrom.js +1 -1
  588. package/dist/utilities/dependencies/resolveFrom.js.map +1 -1
  589. package/dist/utilities/dependencies/versionUtils.d.ts.map +1 -1
  590. package/dist/utilities/dependencies/versionUtils.js +0 -1
  591. package/dist/utilities/dependencies/versionUtils.js.map +1 -1
  592. package/dist/utilities/fieldSchemaToJSON.d.ts.map +1 -1
  593. package/dist/utilities/fieldSchemaToJSON.js +1 -0
  594. package/dist/utilities/fieldSchemaToJSON.js.map +1 -1
  595. package/dist/utilities/findUp.d.ts.map +1 -1
  596. package/dist/utilities/findUp.js +2 -3
  597. package/dist/utilities/findUp.js.map +1 -1
  598. package/dist/utilities/flattenTopLevelFields.d.ts +2 -2
  599. package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
  600. package/dist/utilities/flattenTopLevelFields.js +5 -6
  601. package/dist/utilities/flattenTopLevelFields.js.map +1 -1
  602. package/dist/utilities/flattenTopLevelFields.spec.js +27 -27
  603. package/dist/utilities/flattenTopLevelFields.spec.js.map +1 -1
  604. package/dist/utilities/formatErrors.d.ts.map +1 -1
  605. package/dist/utilities/formatErrors.js.map +1 -1
  606. package/dist/utilities/formatLabels.d.ts.map +1 -1
  607. package/dist/utilities/formatLabels.js +0 -1
  608. package/dist/utilities/formatLabels.js.map +1 -1
  609. package/dist/utilities/getBlockSelect.js +1 -1
  610. package/dist/utilities/getBlockSelect.js.map +1 -1
  611. package/dist/utilities/getDataByPath.js +2 -2
  612. package/dist/utilities/getDataByPath.js.map +1 -1
  613. package/dist/utilities/getEntityPolicies.js.map +1 -1
  614. package/dist/utilities/getObjectDotNotation.js.map +1 -1
  615. package/dist/utilities/getRequestEntity.d.ts.map +1 -1
  616. package/dist/utilities/getRequestEntity.js +3 -4
  617. package/dist/utilities/getRequestEntity.js.map +1 -1
  618. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  619. package/dist/utilities/getRequestLanguage.js +0 -1
  620. package/dist/utilities/getRequestLanguage.js.map +1 -1
  621. package/dist/utilities/getSiblingData.js +2 -2
  622. package/dist/utilities/getSiblingData.js.map +1 -1
  623. package/dist/utilities/getTranslatedLabel.d.ts.map +1 -1
  624. package/dist/utilities/getTranslatedLabel.js +1 -2
  625. package/dist/utilities/getTranslatedLabel.js.map +1 -1
  626. package/dist/utilities/handleEndpoints.js +4 -4
  627. package/dist/utilities/handleEndpoints.js.map +1 -1
  628. package/dist/utilities/headersWithCors.d.ts.map +1 -1
  629. package/dist/utilities/headersWithCors.js +2 -3
  630. package/dist/utilities/headersWithCors.js.map +1 -1
  631. package/dist/utilities/initTransaction.d.ts.map +1 -1
  632. package/dist/utilities/initTransaction.js +0 -1
  633. package/dist/utilities/initTransaction.js.map +1 -1
  634. package/dist/utilities/isEntityHidden.d.ts.map +1 -1
  635. package/dist/utilities/isEntityHidden.js +1 -2
  636. package/dist/utilities/isEntityHidden.js.map +1 -1
  637. package/dist/utilities/isValidID.d.ts.map +1 -1
  638. package/dist/utilities/isValidID.js +0 -1
  639. package/dist/utilities/isValidID.js.map +1 -1
  640. package/dist/utilities/killTransaction.d.ts.map +1 -1
  641. package/dist/utilities/killTransaction.js +1 -2
  642. package/dist/utilities/killTransaction.js.map +1 -1
  643. package/dist/utilities/logError.js.map +1 -1
  644. package/dist/utilities/parseCookies.d.ts.map +1 -1
  645. package/dist/utilities/parseCookies.js +1 -2
  646. package/dist/utilities/parseCookies.js.map +1 -1
  647. package/dist/utilities/parseDocumentID.d.ts +1 -1
  648. package/dist/utilities/parseDocumentID.d.ts.map +1 -1
  649. package/dist/utilities/routeError.js +1 -1
  650. package/dist/utilities/routeError.js.map +1 -1
  651. package/dist/utilities/sanitizeInternalFields.d.ts +1 -2
  652. package/dist/utilities/sanitizeInternalFields.d.ts.map +1 -1
  653. package/dist/utilities/sanitizeInternalFields.js +1 -2
  654. package/dist/utilities/sanitizeInternalFields.js.map +1 -1
  655. package/dist/utilities/sanitizeJoinParams.d.ts +7 -6
  656. package/dist/utilities/sanitizeJoinParams.d.ts.map +1 -1
  657. package/dist/utilities/sanitizeJoinParams.js.map +1 -1
  658. package/dist/utilities/sanitizePermissions.d.ts.map +1 -1
  659. package/dist/utilities/sanitizePermissions.js.map +1 -1
  660. package/dist/utilities/sanitizeSelect.js.map +1 -1
  661. package/dist/utilities/telemetry/conf/envPaths.d.ts +1 -1
  662. package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
  663. package/dist/utilities/telemetry/events/adminInit.js +2 -3
  664. package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
  665. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  666. package/dist/utilities/telemetry/index.js +0 -1
  667. package/dist/utilities/telemetry/index.js.map +1 -1
  668. package/dist/utilities/toKebabCase.d.ts +1 -2
  669. package/dist/utilities/toKebabCase.d.ts.map +1 -1
  670. package/dist/utilities/toKebabCase.js +1 -3
  671. package/dist/utilities/toKebabCase.js.map +1 -1
  672. package/dist/utilities/traverseFields.d.ts.map +1 -1
  673. package/dist/utilities/traverseFields.js +11 -11
  674. package/dist/utilities/traverseFields.js.map +1 -1
  675. package/dist/utilities/validateWhereQuery.js.map +1 -1
  676. package/dist/utilities/wordBoundariesRegex.d.ts +1 -2
  677. package/dist/utilities/wordBoundariesRegex.d.ts.map +1 -1
  678. package/dist/utilities/wordBoundariesRegex.js +2 -2
  679. package/dist/utilities/wordBoundariesRegex.js.map +1 -1
  680. package/dist/versions/baseFields.d.ts +1 -2
  681. package/dist/versions/baseFields.d.ts.map +1 -1
  682. package/dist/versions/baseFields.js +1 -2
  683. package/dist/versions/baseFields.js.map +1 -1
  684. package/dist/versions/buildCollectionFields.d.ts.map +1 -1
  685. package/dist/versions/buildCollectionFields.js +0 -1
  686. package/dist/versions/buildCollectionFields.js.map +1 -1
  687. package/dist/versions/buildGlobalFields.d.ts.map +1 -1
  688. package/dist/versions/buildGlobalFields.js +0 -1
  689. package/dist/versions/buildGlobalFields.js.map +1 -1
  690. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts +2 -2
  691. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
  692. package/dist/versions/drafts/replaceWithDraftIfAvailable.js +3 -4
  693. package/dist/versions/drafts/replaceWithDraftIfAvailable.js.map +1 -1
  694. package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
  695. package/dist/versions/enforceMaxVersions.js +4 -2
  696. package/dist/versions/enforceMaxVersions.js.map +1 -1
  697. package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
  698. package/dist/versions/getLatestCollectionVersion.js +1 -2
  699. package/dist/versions/getLatestCollectionVersion.js.map +1 -1
  700. package/dist/versions/getLatestGlobalVersion.js.map +1 -1
  701. package/dist/versions/saveVersion.js +2 -2
  702. package/dist/versions/saveVersion.js.map +1 -1
  703. package/dist/versions/schedule/job.d.ts.map +1 -1
  704. package/dist/versions/schedule/job.js +2 -3
  705. package/dist/versions/schedule/job.js.map +1 -1
  706. package/package.json +4 -5
@@ -1,7 +1,7 @@
1
1
  import type { GenericLanguages, I18n } from '@payloadcms/translations';
2
2
  import type { JSONSchema4 } from 'json-schema';
3
3
  import type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js';
4
- import type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js';
4
+ import type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js';
5
5
  import type { ValidationFieldError } from '../errors/ValidationError.js';
6
6
  import type { FieldAffectingData, RichTextField, RichTextFieldClient, Validate } from '../fields/config/types.js';
7
7
  import type { SanitizedGlobalConfig } from '../globals/config/types.js';
@@ -115,7 +115,7 @@ export type RichTextHooks = {
115
115
  beforeValidate?: BeforeValidateRichTextHook[];
116
116
  };
117
117
  type RichTextAdapterBase<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = {
118
- generateImportMap?: Config['admin']['importMap']['generators'][0];
118
+ generateImportMap?: ImportMapGenerators[0];
119
119
  generateSchemaMap?: (args: {
120
120
  config: SanitizedConfig;
121
121
  field: RichTextField;
@@ -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,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACnF,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,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC9F,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE5F,MAAM,MAAM,yBAAyB,CACnC,KAAK,SAAS,UAAU,GAAG,GAAG,EAC9B,MAAM,GAAG,GAAG,EACZ,YAAY,GAAG,GAAG,IAChB;IACF,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,KAAK,CAAC,EAAE,MAAM,CA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
4
3
  //# sourceMappingURL=RichText.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["// @ts-strict-ignore\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 { Config, 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 } 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 TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: string\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?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\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?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\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?: TData\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 generateImportMap?: Config['admin']['importMap']['generators'][0]\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 i18n?: Partial<GenericLanguages>\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 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 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 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 payload.config.ts.\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,oBAAoB;AA4QpB,WAmB8D"}
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 } 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?: string\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 // eslint-disable-next-line @typescript-eslint/no-unused-vars\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?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\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?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\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?: TData\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 generateImportMap?: ImportMapGenerators[0]\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 i18n?: Partial<GenericLanguages>\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 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 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 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 payload.config.ts.\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,GAkRrD,WAmB8D"}
@@ -0,0 +1,5 @@
1
+ import type { ServerProps } from '../../config/types.js';
2
+ export type EditMenuItemsClientProps = {};
3
+ export type EditMenuItemsServerPropsOnly = {} & ServerProps;
4
+ export type EditMenuItemsServerProps = EditMenuItemsClientProps & EditMenuItemsServerPropsOnly;
5
+ //# sourceMappingURL=EditMenuItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditMenuItems.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/EditMenuItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAEzC,MAAM,MAAM,4BAA4B,GAAG,EAAE,GAAG,WAAW,CAAA;AAE3D,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,GAAG,4BAA4B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=EditMenuItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/elements/EditMenuItems.ts"],"sourcesContent":["import type { ServerProps } from '../../config/types.js'\n\nexport type EditMenuItemsClientProps = {}\n\nexport type EditMenuItemsServerPropsOnly = {} & ServerProps\n\nexport type EditMenuItemsServerProps = EditMenuItemsClientProps & EditMenuItemsServerPropsOnly\n"],"names":[],"mappings":"AAMA,WAA8F"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAU,WAAW,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAC1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,4BAA4B,GAAG,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;AAE3E,KAAK,0BAA0B,GAAG;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,KAAK,0BAA0B,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;AAE1D,MAAM,MAAM,sBAAsB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WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC/C,+BAA+B,CAAC,4BAA4B,CAAC,CAAA;AAE/D,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CACrE,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,+BAA+B,GACzC,yBAAyB,CAAC,4BAA4B,CAAC,CAAA;AAEzD,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CACnE,WAAW,EACX,iBAAiB,CAClB,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CAAC,iBAAiB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { Option, SelectField, SelectFieldClient } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype SelectFieldClientWithoutType = MarkOptional<SelectFieldClient, 'type'>\n\ntype SelectFieldBaseClientProps = {\n readonly onChange?: (e: string | string[]) => void\n readonly path: string\n readonly validate?: SelectFieldValidation\n readonly value?: string\n}\n\ntype SelectFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type SelectFieldClientProps = ClientFieldBase<SelectFieldClientWithoutType> &\n SelectFieldBaseClientProps\n\nexport type SelectFieldServerProps = SelectFieldBaseServerProps &\n ServerFieldBase<SelectField, SelectFieldClientWithoutType>\n\nexport type SelectFieldServerComponent = FieldServerComponent<\n SelectField,\n SelectFieldClientWithoutType,\n SelectFieldBaseServerProps\n>\n\nexport type SelectFieldClientComponent = FieldClientComponent<\n SelectFieldClientWithoutType,\n SelectFieldBaseClientProps\n>\n\nexport type SelectFieldLabelServerComponent = FieldLabelServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldLabelClientComponent =\n FieldLabelClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldErrorServerComponent = FieldErrorServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldErrorClientComponent =\n FieldErrorClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldDiffServerComponent = FieldDiffServerComponent<\n SelectField,\n SelectFieldClient\n>\n\nexport type SelectFieldDiffClientComponent = FieldDiffClientComponent<SelectFieldClient>\n"],"names":[],"mappings":"AA+EA,WAAwF"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { SelectField, SelectFieldClient } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype SelectFieldClientWithoutType = MarkOptional<SelectFieldClient, 'type'>\n\ntype SelectFieldBaseClientProps = {\n readonly onChange?: (e: string | string[]) => void\n readonly path: string\n readonly validate?: SelectFieldValidation\n readonly value?: string\n}\n\ntype SelectFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type SelectFieldClientProps = ClientFieldBase<SelectFieldClientWithoutType> &\n SelectFieldBaseClientProps\n\nexport type SelectFieldServerProps = SelectFieldBaseServerProps &\n ServerFieldBase<SelectField, SelectFieldClientWithoutType>\n\nexport type SelectFieldServerComponent = FieldServerComponent<\n SelectField,\n SelectFieldClientWithoutType,\n SelectFieldBaseServerProps\n>\n\nexport type SelectFieldClientComponent = FieldClientComponent<\n SelectFieldClientWithoutType,\n SelectFieldBaseClientProps\n>\n\nexport type SelectFieldLabelServerComponent = FieldLabelServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldLabelClientComponent =\n FieldLabelClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldErrorServerComponent = FieldErrorServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldErrorClientComponent =\n FieldErrorClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldDiffServerComponent = FieldDiffServerComponent<\n SelectField,\n SelectFieldClient\n>\n\nexport type SelectFieldDiffClientComponent = FieldDiffClientComponent<SelectFieldClient>\n"],"names":[],"mappings":"AA8EA,WAAwF"}
@@ -1,6 +1,6 @@
1
1
  import type { I18nClient } from '@payloadcms/translations';
2
2
  import type { ClientField, Field, FieldTypes, Tab } from '../../fields/config/types.js';
3
- import type { ClientFieldWithOptionalType, PayloadRequest, SanitizedFieldPermissions, TypedLocale } from '../../index.js';
3
+ import type { ClientFieldWithOptionalType, PayloadRequest, SanitizedFieldPermissions } from '../../index.js';
4
4
  export type VersionTab = {
5
5
  fields: VersionField[];
6
6
  name?: string;
@@ -16,7 +16,7 @@ export type BaseVersionField = {
16
16
  };
17
17
  export type VersionField = {
18
18
  field?: BaseVersionField;
19
- fieldByLocale?: Record<TypedLocale, BaseVersionField>;
19
+ fieldByLocale?: Record<string, BaseVersionField>;
20
20
  };
21
21
  /**
22
22
  * Taken from react-diff-viewer-continued
@@ -1 +1 @@
1
- {"version":3,"file":"Diff.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Diff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,KAAK,EACV,2BAA2B,EAC3B,cAAc,EACd,yBAAyB,EACzB,WAAW,EACZ,MAAM,gBAAgB,CAAA;AAEvB,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;AAEtB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACjC,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,EAAE,EAAE,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,UAAU,EAAE,CAAA;IACnB,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAA;CACtD,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,MAAM,UAAU;IAC5B,KAAK,cAAc;IACnB,GAAG,YAAY;IACf,IAAI,aAAa;IACjB,KAAK,cAAc;IACnB,SAAS,kBAAkB;IA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IACtB,KAAK,EAAE,YAAY,CAAA;IACnB,gBAAgB,EACZ;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAA;KACzC,GACD,IAAI,CAAA;IACR;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,EAAE,OAAO,CAAA;IAC1B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,KAAK,GAAG,KAAK,EAC5B,YAAY,SAAS,2BAA2B,GAAG,WAAW,IAC5D;IACF,WAAW,EAAE,YAAY,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,EAAE,cAAc,CAAA;IACnB,eAAe,EAAE,MAAM,EAAE,CAAA;CAC1B,GAAG,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAEvC,MAAM,MAAM,wBAAwB,CAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC,CAAA;AAE3D,MAAM,MAAM,wBAAwB,CAClC,YAAY,SAAS,KAAK,GAAG,KAAK,EAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -1,4 +1,3 @@
1
- // @ts-strict-ignore
2
1
  export { };
3
2
 
4
3
  //# sourceMappingURL=Diff.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Diff.ts"],"sourcesContent":["// @ts-strict-ignore\n\nimport type { I18nClient } from '@payloadcms/translations'\n\nimport type { ClientField, Field, FieldTypes, Tab } from '../../fields/config/types.js'\nimport type {\n ClientFieldWithOptionalType,\n PayloadRequest,\n SanitizedFieldPermissions,\n TypedLocale,\n} from '../../index.js'\n\nexport type VersionTab = {\n fields: VersionField[]\n name?: string\n} & Pick<Tab, 'label'>\n\nexport type BaseVersionField = {\n CustomComponent?: React.ReactNode\n fields: VersionField[]\n path: string\n rows?: VersionField[][]\n schemaPath: string\n tabs?: VersionTab[]\n type: FieldTypes\n}\n\nexport type VersionField = {\n field?: BaseVersionField\n fieldByLocale?: Record<TypedLocale, BaseVersionField>\n}\n\n/**\n * Taken from react-diff-viewer-continued\n */\nexport declare enum DiffMethod {\n CHARS = 'diffChars',\n CSS = 'diffCss',\n JSON = 'diffJson',\n LINES = 'diffLines',\n SENTENCES = 'diffSentences',\n TRIMMED_LINES = 'diffTrimmedLines',\n WORDS = 'diffWords',\n WORDS_WITH_SPACE = 'diffWordsWithSpace',\n}\n\nexport type FieldDiffClientProps<TClientField extends ClientFieldWithOptionalType = ClientField> = {\n baseVersionField: BaseVersionField\n /**\n * Field value from the version being compared\n */\n comparisonValue: unknown\n diffMethod: DiffMethod\n field: TClientField\n fieldPermissions:\n | {\n [key: string]: SanitizedFieldPermissions\n }\n | true\n /**\n * If this field is localized, this will be the locale of the field\n */\n locale?: string\n parentIsLocalized: boolean\n /**\n * Field value from the current version\n */\n versionValue: unknown\n}\n\nexport type FieldDiffServerProps<\n TField extends Field = Field,\n TClientField extends ClientFieldWithOptionalType = ClientField,\n> = {\n clientField: TClientField\n field: TField\n i18n: I18nClient\n req: PayloadRequest\n selectedLocales: string[]\n} & Omit<FieldDiffClientProps, 'field'>\n\nexport type FieldDiffClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffClientProps<TFieldClient>>\n\nexport type FieldDiffServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffServerProps<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAAA,oBAAoB;AAqFpB,WAGyE"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Diff.ts"],"sourcesContent":["import type { I18nClient } from '@payloadcms/translations'\n\nimport type { ClientField, Field, FieldTypes, Tab } from '../../fields/config/types.js'\nimport type {\n ClientFieldWithOptionalType,\n PayloadRequest,\n SanitizedFieldPermissions,\n} from '../../index.js'\n\nexport type VersionTab = {\n fields: VersionField[]\n name?: string\n} & Pick<Tab, 'label'>\n\nexport type BaseVersionField = {\n CustomComponent?: React.ReactNode\n fields: VersionField[]\n path: string\n rows?: VersionField[][]\n schemaPath: string\n tabs?: VersionTab[]\n type: FieldTypes\n}\n\nexport type VersionField = {\n field?: BaseVersionField\n fieldByLocale?: Record<string, BaseVersionField>\n}\n\n/**\n * Taken from react-diff-viewer-continued\n */\nexport declare enum DiffMethod {\n CHARS = 'diffChars',\n CSS = 'diffCss',\n JSON = 'diffJson',\n LINES = 'diffLines',\n SENTENCES = 'diffSentences',\n TRIMMED_LINES = 'diffTrimmedLines',\n WORDS = 'diffWords',\n WORDS_WITH_SPACE = 'diffWordsWithSpace',\n}\n\nexport type FieldDiffClientProps<TClientField extends ClientFieldWithOptionalType = ClientField> = {\n baseVersionField: BaseVersionField\n /**\n * Field value from the version being compared\n */\n comparisonValue: unknown\n diffMethod: DiffMethod\n field: TClientField\n fieldPermissions:\n | {\n [key: string]: SanitizedFieldPermissions\n }\n | true\n /**\n * If this field is localized, this will be the locale of the field\n */\n locale?: string\n parentIsLocalized: boolean\n /**\n * Field value from the current version\n */\n versionValue: unknown\n}\n\nexport type FieldDiffServerProps<\n TField extends Field = Field,\n TClientField extends ClientFieldWithOptionalType = ClientField,\n> = {\n clientField: TClientField\n field: TField\n i18n: I18nClient\n req: PayloadRequest\n selectedLocales: string[]\n} & Omit<FieldDiffClientProps, 'field'>\n\nexport type FieldDiffClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffClientProps<TFieldClient>>\n\nexport type FieldDiffServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffServerProps<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAkFA,WAGyE"}
@@ -34,6 +34,7 @@ CustomComponent as CustomSaveDraftButton, } from '../config/types.js';
34
34
  export type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js';
35
35
  export type { ConditionalDateProps } from './elements/DatePicker.js';
36
36
  export type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js';
37
+ export type { EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, } from './elements/EditMenuItems.js';
37
38
  export type { NavGroupPreferences, NavPreferences } from './elements/Nav.js';
38
39
  export type { PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, } from './elements/PreviewButton.js';
39
40
  export type { PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, } from './elements/PublishButton.js';
@@ -136,6 +137,7 @@ export type FieldRow = {
136
137
  export type DocumentSlots = {
137
138
  BeforeDocumentControls?: React.ReactNode;
138
139
  Description?: React.ReactNode;
140
+ EditMenuItems?: React.ReactNode;
139
141
  PreviewButton?: React.ReactNode;
140
142
  PublishButton?: React.ReactNode;
141
143
  SaveButton?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/admin/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EACV,KAAK,EACL,WAAW,EACX,WAAW,EACX,KAAK,EACL,UAAU,EACV,GAAG,EACJ,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,UAA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AoB;AACpB;;;;GAIG;AACH,kBAAkB,EAClB,eAAe;AACf;;;;GAIG;AACH,oBAAoB,IAAI,cAAc,EACtC,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,SAAS,EACT,eAAe,GAChB,MAAM,kBAAkB,CAAA;AAEzB,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,6BAA6B,GAC9B,MAAM,iBAAiB,CAAA;AAExB,KAAK,UAAU,GAAG,EAAE,GAAG,MAAM,CAAA;AAC7B,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B,UAAU,EACR;IACE,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB,GACD,KAAK,GACL,KAAK,GACL,GAAG,CACN,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,GAAG,CACpC,UAAU,EACR;IACE,MAAM,EAAE,WAAW,EAAE,CAAA;CACtB,GACD,WAAW,GACX,WAAW,GACX,SAAS,CACZ,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations'\nimport type React from 'react'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { SanitizedConfig } from '../config/types.js'\nimport type {\n Block,\n ClientBlock,\n ClientField,\n Field,\n FieldTypes,\n Tab,\n} from '../fields/config/types.js'\nimport type { JsonObject } from '../types/index.js'\nimport type { ClientTab } from './fields/Tabs.js'\nimport type {\n BuildFormStateArgs,\n Data,\n FieldState,\n FieldStateWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n} from './forms/Form.js'\n\nexport type {\n /**\n * @deprecated\n * The `CustomPreviewButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPreviewButton,\n /**\n * @deprecated\n * The `CustomPublishButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPublishButton,\n /**\n * @deprecated\n * The `CustomSaveButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveButton,\n /**\n * @deprecated\n * The `CustomSaveDraftButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveDraftButton,\n} from '../config/types.js'\nexport type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js'\nexport type { ConditionalDateProps } from './elements/DatePicker.js'\nexport type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js'\nexport type { NavGroupPreferences, NavPreferences } from './elements/Nav.js'\nexport type {\n PreviewButtonClientProps,\n PreviewButtonServerProps,\n PreviewButtonServerPropsOnly,\n} from './elements/PreviewButton.js'\nexport type {\n PublishButtonClientProps,\n PublishButtonServerProps,\n PublishButtonServerPropsOnly,\n} from './elements/PublishButton.js'\nexport type {\n SaveButtonClientProps,\n SaveButtonServerProps,\n SaveButtonServerPropsOnly,\n} from './elements/SaveButton.js'\nexport type {\n SaveDraftButtonClientProps,\n SaveDraftButtonServerProps,\n SaveDraftButtonServerPropsOnly,\n} from './elements/SaveDraftButton.js'\n\nexport type { Column } from './elements/Table.js'\n\nexport type { CustomUpload } from './elements/Upload.js'\n\nexport type {\n WithServerSidePropsComponent,\n WithServerSidePropsComponentProps,\n} from './elements/WithServerSideProps.js'\n\nexport type {\n ArrayFieldClientComponent,\n ArrayFieldClientProps,\n ArrayFieldDescriptionClientComponent,\n ArrayFieldDescriptionServerComponent,\n ArrayFieldDiffClientComponent,\n ArrayFieldDiffServerComponent,\n ArrayFieldErrorClientComponent,\n ArrayFieldErrorServerComponent,\n ArrayFieldLabelClientComponent,\n ArrayFieldLabelServerComponent,\n ArrayFieldServerComponent,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientComponent,\n BlockRowLabelServerComponent,\n BlocksFieldClientComponent,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientComponent,\n BlocksFieldDescriptionServerComponent,\n BlocksFieldDiffClientComponent,\n BlocksFieldDiffServerComponent,\n BlocksFieldErrorClientComponent,\n BlocksFieldErrorServerComponent,\n BlocksFieldLabelClientComponent,\n BlocksFieldLabelServerComponent,\n BlocksFieldServerComponent,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientComponent,\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientComponent,\n CheckboxFieldDescriptionServerComponent,\n CheckboxFieldDiffClientComponent,\n CheckboxFieldDiffServerComponent,\n CheckboxFieldErrorClientComponent,\n CheckboxFieldErrorServerComponent,\n CheckboxFieldLabelClientComponent,\n CheckboxFieldLabelServerComponent,\n CheckboxFieldServerComponent,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientComponent,\n CodeFieldClientProps,\n CodeFieldDescriptionClientComponent,\n CodeFieldDescriptionServerComponent,\n CodeFieldDiffClientComponent,\n CodeFieldDiffServerComponent,\n CodeFieldErrorClientComponent,\n CodeFieldErrorServerComponent,\n CodeFieldLabelClientComponent,\n CodeFieldLabelServerComponent,\n CodeFieldServerComponent,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientComponent,\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientComponent,\n CollapsibleFieldDescriptionServerComponent,\n CollapsibleFieldDiffClientComponent,\n CollapsibleFieldDiffServerComponent,\n CollapsibleFieldErrorClientComponent,\n CollapsibleFieldErrorServerComponent,\n CollapsibleFieldLabelClientComponent,\n CollapsibleFieldLabelServerComponent,\n CollapsibleFieldServerComponent,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientComponent,\n DateFieldClientProps,\n DateFieldDescriptionClientComponent,\n DateFieldDescriptionServerComponent,\n DateFieldDiffClientComponent,\n DateFieldDiffServerComponent,\n DateFieldErrorClientComponent,\n DateFieldErrorServerComponent,\n DateFieldLabelClientComponent,\n DateFieldLabelServerComponent,\n DateFieldServerComponent,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldDescriptionClientComponent,\n EmailFieldDescriptionServerComponent,\n EmailFieldDiffClientComponent,\n EmailFieldDiffServerComponent,\n EmailFieldErrorClientComponent,\n EmailFieldErrorServerComponent,\n EmailFieldLabelClientComponent,\n EmailFieldLabelServerComponent,\n EmailFieldServerComponent,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientComponent,\n GroupFieldClientProps,\n GroupFieldDescriptionClientComponent,\n GroupFieldDescriptionServerComponent,\n GroupFieldDiffClientComponent,\n GroupFieldDiffServerComponent,\n GroupFieldErrorClientComponent,\n GroupFieldErrorServerComponent,\n GroupFieldLabelClientComponent,\n GroupFieldLabelServerComponent,\n GroupFieldServerComponent,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientComponent,\n JoinFieldClientProps,\n JoinFieldDescriptionClientComponent,\n JoinFieldDescriptionServerComponent,\n JoinFieldDiffClientComponent,\n JoinFieldDiffServerComponent,\n JoinFieldErrorClientComponent,\n JoinFieldErrorServerComponent,\n JoinFieldLabelClientComponent,\n JoinFieldLabelServerComponent,\n JoinFieldServerComponent,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientComponent,\n JSONFieldClientProps,\n JSONFieldDescriptionClientComponent,\n JSONFieldDescriptionServerComponent,\n JSONFieldDiffClientComponent,\n JSONFieldDiffServerComponent,\n JSONFieldErrorClientComponent,\n JSONFieldErrorServerComponent,\n JSONFieldLabelClientComponent,\n JSONFieldLabelServerComponent,\n JSONFieldServerComponent,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientComponent,\n NumberFieldClientProps,\n NumberFieldDescriptionClientComponent,\n NumberFieldDescriptionServerComponent,\n NumberFieldDiffClientComponent,\n NumberFieldDiffServerComponent,\n NumberFieldErrorClientComponent,\n NumberFieldErrorServerComponent,\n NumberFieldLabelClientComponent,\n NumberFieldLabelServerComponent,\n NumberFieldServerComponent,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientComponent,\n PointFieldClientProps,\n PointFieldDescriptionClientComponent,\n PointFieldDescriptionServerComponent,\n PointFieldDiffClientComponent,\n PointFieldDiffServerComponent,\n PointFieldErrorClientComponent,\n PointFieldErrorServerComponent,\n PointFieldLabelClientComponent,\n PointFieldLabelServerComponent,\n PointFieldServerComponent,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientComponent,\n RadioFieldClientProps,\n RadioFieldDescriptionClientComponent,\n RadioFieldDescriptionServerComponent,\n RadioFieldDiffClientComponent,\n RadioFieldDiffServerComponent,\n RadioFieldErrorClientComponent,\n RadioFieldErrorServerComponent,\n RadioFieldLabelClientComponent,\n RadioFieldLabelServerComponent,\n RadioFieldServerComponent,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientComponent,\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientComponent,\n RelationshipFieldDescriptionServerComponent,\n RelationshipFieldDiffClientComponent,\n RelationshipFieldDiffServerComponent,\n RelationshipFieldErrorClientComponent,\n RelationshipFieldErrorServerComponent,\n RelationshipFieldLabelClientComponent,\n RelationshipFieldLabelServerComponent,\n RelationshipFieldServerComponent,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientComponent,\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientComponent,\n RichTextFieldDescriptionServerComponent,\n RichTextFieldDiffClientComponent,\n RichTextFieldDiffServerComponent,\n RichTextFieldErrorClientComponent,\n RichTextFieldErrorServerComponent,\n RichTextFieldLabelClientComponent,\n RichTextFieldLabelServerComponent,\n RichTextFieldServerComponent,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientComponent,\n RowFieldClientProps,\n RowFieldDescriptionClientComponent,\n RowFieldDescriptionServerComponent,\n RowFieldDiffClientComponent,\n RowFieldDiffServerComponent,\n RowFieldErrorClientComponent,\n RowFieldErrorServerComponent,\n RowFieldLabelClientComponent,\n RowFieldLabelServerComponent,\n RowFieldServerComponent,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientComponent,\n SelectFieldClientProps,\n SelectFieldDescriptionClientComponent,\n SelectFieldDescriptionServerComponent,\n SelectFieldDiffClientComponent,\n SelectFieldDiffServerComponent,\n SelectFieldErrorClientComponent,\n SelectFieldErrorServerComponent,\n SelectFieldLabelClientComponent,\n SelectFieldLabelServerComponent,\n SelectFieldServerComponent,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientComponent,\n TabsFieldClientProps,\n TabsFieldDescriptionClientComponent,\n TabsFieldDescriptionServerComponent,\n TabsFieldDiffClientComponent,\n TabsFieldDiffServerComponent,\n TabsFieldErrorClientComponent,\n TabsFieldErrorServerComponent,\n TabsFieldLabelClientComponent,\n TabsFieldLabelServerComponent,\n TabsFieldServerComponent,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientComponent,\n TextFieldClientProps,\n TextFieldDescriptionClientComponent,\n TextFieldDescriptionServerComponent,\n TextFieldDiffClientComponent,\n TextFieldDiffServerComponent,\n TextFieldErrorClientComponent,\n TextFieldErrorServerComponent,\n TextFieldLabelClientComponent,\n TextFieldLabelServerComponent,\n TextFieldServerComponent,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientComponent,\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientComponent,\n TextareaFieldDescriptionServerComponent,\n TextareaFieldDiffClientComponent,\n TextareaFieldDiffServerComponent,\n TextareaFieldErrorClientComponent,\n TextareaFieldErrorServerComponent,\n TextareaFieldLabelClientComponent,\n TextareaFieldLabelServerComponent,\n TextareaFieldServerComponent,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientComponent,\n UIFieldClientProps,\n UIFieldDiffClientComponent,\n UIFieldDiffServerComponent,\n UIFieldServerComponent,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientComponent,\n UploadFieldClientProps,\n UploadFieldDescriptionClientComponent,\n UploadFieldDescriptionServerComponent,\n UploadFieldDiffClientComponent,\n UploadFieldDiffServerComponent,\n UploadFieldErrorClientComponent,\n UploadFieldErrorServerComponent,\n UploadFieldLabelClientComponent,\n UploadFieldLabelServerComponent,\n UploadFieldServerComponent,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientComponent,\n FieldDescriptionClientProps,\n FieldDescriptionServerComponent,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientComponent,\n FieldDiffClientProps,\n FieldDiffServerComponent,\n FieldDiffServerProps,\n VersionField,\n VersionTab,\n} from './forms/Diff.js'\n\nexport type {\n BuildFormStateArgs,\n Data,\n FieldState as FormField,\n FieldStateWithoutComponents as FormFieldWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n}\n\nexport type {\n FieldErrorClientComponent,\n FieldErrorClientProps,\n FieldErrorServerComponent,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.js'\n\nexport type {\n ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientComponent,\n FieldLabelClientProps,\n FieldLabelServerComponent,\n FieldLabelServerProps,\n GenericLabelProps,\n SanitizedLabelProps,\n} from './forms/Label.js'\n\nexport type { RowLabel, RowLabelComponent } from './forms/RowLabel.js'\n\nexport type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<any>\n RenderedComponent: React.ReactNode\n type: 'server'\n}\n\nexport type MappedClientComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<TComponentClientProps>\n RenderedComponent?: React.ReactNode\n type: 'client'\n}\n\nexport type MappedEmptyComponent = {\n type: 'empty'\n}\n\nexport enum Action {\n RenderConfig = 'render-config',\n}\n\nexport type RenderEntityConfigArgs = {\n collectionSlug?: string\n data?: Data\n globalSlug?: string\n}\n\nexport type RenderRootConfigArgs = {}\n\nexport type RenderFieldConfigArgs = {\n collectionSlug?: string\n formState?: FormState\n globalSlug?: string\n schemaPath: string\n}\n\nexport type RenderConfigArgs = {\n action: Action.RenderConfig\n config: Promise<SanitizedConfig> | SanitizedConfig\n i18n: I18nClient\n importMap: ImportMap\n languageCode: AcceptedLanguages\n serverProps?: any\n} & (RenderEntityConfigArgs | RenderFieldConfigArgs | RenderRootConfigArgs)\n\nexport type PayloadServerAction = (\n args:\n | {\n [key: string]: any\n action: Action\n i18n: I18nClient\n }\n | RenderConfigArgs,\n) => Promise<string>\n\nexport type RenderedField = {\n Field: React.ReactNode\n indexPath?: string\n initialSchemaPath?: string\n /**\n * @deprecated\n * This is a legacy property that will be removed in v4.\n * Please use `fieldIsSidebar(field)` from `payload` instead.\n * Or check `field.admin.position === 'sidebar'` directly.\n */\n isSidebar: boolean\n path: string\n schemaPath: string\n type: FieldTypes\n}\n\nexport type FieldRow = {\n RowLabel?: React.ReactNode\n}\n\nexport type DocumentSlots = {\n BeforeDocumentControls?: React.ReactNode\n Description?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Upload?: React.ReactNode\n}\n\nexport type {\n BuildCollectionFolderViewResult,\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport type {\n BeforeDocumentControlsClientProps,\n BeforeDocumentControlsServerProps,\n BeforeDocumentControlsServerPropsOnly,\n DocumentSubViewTypes,\n DocumentTabClientProps,\n /**\n * @deprecated\n * The `DocumentTabComponent` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps`or `DocumentTabClientProps` instead.\n */\n DocumentTabComponent,\n DocumentTabCondition,\n DocumentTabConfig,\n /**\n * @deprecated\n * The `DocumentTabProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps` instead.\n */\n DocumentTabServerProps as DocumentTabProps,\n DocumentTabServerProps,\n DocumentTabServerPropsOnly,\n /**\n * @deprecated\n * The `ClientSideEditViewProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentViewClientProps` instead.\n */\n DocumentViewClientProps as ClientSideEditViewProps,\n DocumentViewClientProps,\n /**\n * @deprecated\n * The `ServerSideEditViewProps` is deprecated and will be removed in the next major version.\n * Use `DocumentViewServerProps` instead.\n */\n DocumentViewServerProps as ServerSideEditViewProps,\n DocumentViewServerProps,\n DocumentViewServerPropsOnly,\n EditViewProps,\n} from './views/document.js'\n\nexport type {\n AfterFolderListClientProps,\n AfterFolderListServerProps,\n AfterFolderListServerPropsOnly,\n AfterFolderListTableClientProps,\n AfterFolderListTableServerProps,\n AfterFolderListTableServerPropsOnly,\n BeforeFolderListClientProps,\n BeforeFolderListServerProps,\n BeforeFolderListServerPropsOnly,\n BeforeFolderListTableClientProps,\n BeforeFolderListTableServerProps,\n BeforeFolderListTableServerPropsOnly,\n FolderListViewClientProps,\n FolderListViewServerProps,\n FolderListViewServerPropsOnly,\n FolderListViewSlots,\n FolderListViewSlotSharedClientProps,\n} from './views/folderList.js'\n\nexport type {\n AdminViewClientProps,\n /**\n * @deprecated\n * The `AdminViewComponent` type is deprecated and will be removed in the next major version.\n * Type your component props directly instead.\n */\n AdminViewComponent,\n AdminViewConfig,\n /**\n * @deprecated\n * The `AdminViewProps` type is deprecated and will be removed in the next major version.\n * Use `AdminViewServerProps` instead.\n */\n AdminViewServerProps as AdminViewProps,\n AdminViewServerProps,\n AdminViewServerPropsOnly,\n InitPageResult,\n ServerPropsFromView,\n ViewDescriptionClientProps,\n ViewDescriptionServerProps,\n ViewDescriptionServerPropsOnly,\n ViewTypes,\n VisibleEntities,\n} from './views/index.js'\n\nexport type {\n AfterListClientProps,\n AfterListServerProps,\n AfterListServerPropsOnly,\n AfterListTableClientProps,\n AfterListTableServerProps,\n AfterListTableServerPropsOnly,\n BeforeListClientProps,\n BeforeListServerProps,\n BeforeListServerPropsOnly,\n BeforeListTableClientProps,\n BeforeListTableServerProps,\n BeforeListTableServerPropsOnly,\n ListViewClientProps,\n ListViewServerProps,\n ListViewServerPropsOnly,\n ListViewSlots,\n ListViewSlotSharedClientProps,\n} from './views/list.js'\n\ntype SchemaPath = {} & string\nexport type FieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: Field[]\n }\n | Block\n | Field\n | Tab\n>\n\nexport type ClientFieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: ClientField[]\n }\n | ClientBlock\n | ClientField\n | ClientTab\n>\n\nexport type DocumentEvent = {\n entitySlug: string\n id?: number | string\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAgfA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
1
+ {"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations'\nimport type React from 'react'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { SanitizedConfig } from '../config/types.js'\nimport type {\n Block,\n ClientBlock,\n ClientField,\n Field,\n FieldTypes,\n Tab,\n} from '../fields/config/types.js'\nimport type { JsonObject } from '../types/index.js'\nimport type { ClientTab } from './fields/Tabs.js'\nimport type {\n BuildFormStateArgs,\n Data,\n FieldState,\n FieldStateWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n} from './forms/Form.js'\n\nexport type {\n /**\n * @deprecated\n * The `CustomPreviewButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPreviewButton,\n /**\n * @deprecated\n * The `CustomPublishButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPublishButton,\n /**\n * @deprecated\n * The `CustomSaveButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveButton,\n /**\n * @deprecated\n * The `CustomSaveDraftButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveDraftButton,\n} from '../config/types.js'\nexport type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js'\nexport type { ConditionalDateProps } from './elements/DatePicker.js'\nexport type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js'\nexport type {\n EditMenuItemsClientProps,\n EditMenuItemsServerProps,\n EditMenuItemsServerPropsOnly,\n} from './elements/EditMenuItems.js'\nexport type { NavGroupPreferences, NavPreferences } from './elements/Nav.js'\nexport type {\n PreviewButtonClientProps,\n PreviewButtonServerProps,\n PreviewButtonServerPropsOnly,\n} from './elements/PreviewButton.js'\nexport type {\n PublishButtonClientProps,\n PublishButtonServerProps,\n PublishButtonServerPropsOnly,\n} from './elements/PublishButton.js'\nexport type {\n SaveButtonClientProps,\n SaveButtonServerProps,\n SaveButtonServerPropsOnly,\n} from './elements/SaveButton.js'\nexport type {\n SaveDraftButtonClientProps,\n SaveDraftButtonServerProps,\n SaveDraftButtonServerPropsOnly,\n} from './elements/SaveDraftButton.js'\n\nexport type { Column } from './elements/Table.js'\n\nexport type { CustomUpload } from './elements/Upload.js'\n\nexport type {\n WithServerSidePropsComponent,\n WithServerSidePropsComponentProps,\n} from './elements/WithServerSideProps.js'\n\nexport type {\n ArrayFieldClientComponent,\n ArrayFieldClientProps,\n ArrayFieldDescriptionClientComponent,\n ArrayFieldDescriptionServerComponent,\n ArrayFieldDiffClientComponent,\n ArrayFieldDiffServerComponent,\n ArrayFieldErrorClientComponent,\n ArrayFieldErrorServerComponent,\n ArrayFieldLabelClientComponent,\n ArrayFieldLabelServerComponent,\n ArrayFieldServerComponent,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientComponent,\n BlockRowLabelServerComponent,\n BlocksFieldClientComponent,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientComponent,\n BlocksFieldDescriptionServerComponent,\n BlocksFieldDiffClientComponent,\n BlocksFieldDiffServerComponent,\n BlocksFieldErrorClientComponent,\n BlocksFieldErrorServerComponent,\n BlocksFieldLabelClientComponent,\n BlocksFieldLabelServerComponent,\n BlocksFieldServerComponent,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientComponent,\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientComponent,\n CheckboxFieldDescriptionServerComponent,\n CheckboxFieldDiffClientComponent,\n CheckboxFieldDiffServerComponent,\n CheckboxFieldErrorClientComponent,\n CheckboxFieldErrorServerComponent,\n CheckboxFieldLabelClientComponent,\n CheckboxFieldLabelServerComponent,\n CheckboxFieldServerComponent,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientComponent,\n CodeFieldClientProps,\n CodeFieldDescriptionClientComponent,\n CodeFieldDescriptionServerComponent,\n CodeFieldDiffClientComponent,\n CodeFieldDiffServerComponent,\n CodeFieldErrorClientComponent,\n CodeFieldErrorServerComponent,\n CodeFieldLabelClientComponent,\n CodeFieldLabelServerComponent,\n CodeFieldServerComponent,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientComponent,\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientComponent,\n CollapsibleFieldDescriptionServerComponent,\n CollapsibleFieldDiffClientComponent,\n CollapsibleFieldDiffServerComponent,\n CollapsibleFieldErrorClientComponent,\n CollapsibleFieldErrorServerComponent,\n CollapsibleFieldLabelClientComponent,\n CollapsibleFieldLabelServerComponent,\n CollapsibleFieldServerComponent,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientComponent,\n DateFieldClientProps,\n DateFieldDescriptionClientComponent,\n DateFieldDescriptionServerComponent,\n DateFieldDiffClientComponent,\n DateFieldDiffServerComponent,\n DateFieldErrorClientComponent,\n DateFieldErrorServerComponent,\n DateFieldLabelClientComponent,\n DateFieldLabelServerComponent,\n DateFieldServerComponent,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldDescriptionClientComponent,\n EmailFieldDescriptionServerComponent,\n EmailFieldDiffClientComponent,\n EmailFieldDiffServerComponent,\n EmailFieldErrorClientComponent,\n EmailFieldErrorServerComponent,\n EmailFieldLabelClientComponent,\n EmailFieldLabelServerComponent,\n EmailFieldServerComponent,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientComponent,\n GroupFieldClientProps,\n GroupFieldDescriptionClientComponent,\n GroupFieldDescriptionServerComponent,\n GroupFieldDiffClientComponent,\n GroupFieldDiffServerComponent,\n GroupFieldErrorClientComponent,\n GroupFieldErrorServerComponent,\n GroupFieldLabelClientComponent,\n GroupFieldLabelServerComponent,\n GroupFieldServerComponent,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientComponent,\n JoinFieldClientProps,\n JoinFieldDescriptionClientComponent,\n JoinFieldDescriptionServerComponent,\n JoinFieldDiffClientComponent,\n JoinFieldDiffServerComponent,\n JoinFieldErrorClientComponent,\n JoinFieldErrorServerComponent,\n JoinFieldLabelClientComponent,\n JoinFieldLabelServerComponent,\n JoinFieldServerComponent,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientComponent,\n JSONFieldClientProps,\n JSONFieldDescriptionClientComponent,\n JSONFieldDescriptionServerComponent,\n JSONFieldDiffClientComponent,\n JSONFieldDiffServerComponent,\n JSONFieldErrorClientComponent,\n JSONFieldErrorServerComponent,\n JSONFieldLabelClientComponent,\n JSONFieldLabelServerComponent,\n JSONFieldServerComponent,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientComponent,\n NumberFieldClientProps,\n NumberFieldDescriptionClientComponent,\n NumberFieldDescriptionServerComponent,\n NumberFieldDiffClientComponent,\n NumberFieldDiffServerComponent,\n NumberFieldErrorClientComponent,\n NumberFieldErrorServerComponent,\n NumberFieldLabelClientComponent,\n NumberFieldLabelServerComponent,\n NumberFieldServerComponent,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientComponent,\n PointFieldClientProps,\n PointFieldDescriptionClientComponent,\n PointFieldDescriptionServerComponent,\n PointFieldDiffClientComponent,\n PointFieldDiffServerComponent,\n PointFieldErrorClientComponent,\n PointFieldErrorServerComponent,\n PointFieldLabelClientComponent,\n PointFieldLabelServerComponent,\n PointFieldServerComponent,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientComponent,\n RadioFieldClientProps,\n RadioFieldDescriptionClientComponent,\n RadioFieldDescriptionServerComponent,\n RadioFieldDiffClientComponent,\n RadioFieldDiffServerComponent,\n RadioFieldErrorClientComponent,\n RadioFieldErrorServerComponent,\n RadioFieldLabelClientComponent,\n RadioFieldLabelServerComponent,\n RadioFieldServerComponent,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientComponent,\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientComponent,\n RelationshipFieldDescriptionServerComponent,\n RelationshipFieldDiffClientComponent,\n RelationshipFieldDiffServerComponent,\n RelationshipFieldErrorClientComponent,\n RelationshipFieldErrorServerComponent,\n RelationshipFieldLabelClientComponent,\n RelationshipFieldLabelServerComponent,\n RelationshipFieldServerComponent,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientComponent,\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientComponent,\n RichTextFieldDescriptionServerComponent,\n RichTextFieldDiffClientComponent,\n RichTextFieldDiffServerComponent,\n RichTextFieldErrorClientComponent,\n RichTextFieldErrorServerComponent,\n RichTextFieldLabelClientComponent,\n RichTextFieldLabelServerComponent,\n RichTextFieldServerComponent,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientComponent,\n RowFieldClientProps,\n RowFieldDescriptionClientComponent,\n RowFieldDescriptionServerComponent,\n RowFieldDiffClientComponent,\n RowFieldDiffServerComponent,\n RowFieldErrorClientComponent,\n RowFieldErrorServerComponent,\n RowFieldLabelClientComponent,\n RowFieldLabelServerComponent,\n RowFieldServerComponent,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientComponent,\n SelectFieldClientProps,\n SelectFieldDescriptionClientComponent,\n SelectFieldDescriptionServerComponent,\n SelectFieldDiffClientComponent,\n SelectFieldDiffServerComponent,\n SelectFieldErrorClientComponent,\n SelectFieldErrorServerComponent,\n SelectFieldLabelClientComponent,\n SelectFieldLabelServerComponent,\n SelectFieldServerComponent,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientComponent,\n TabsFieldClientProps,\n TabsFieldDescriptionClientComponent,\n TabsFieldDescriptionServerComponent,\n TabsFieldDiffClientComponent,\n TabsFieldDiffServerComponent,\n TabsFieldErrorClientComponent,\n TabsFieldErrorServerComponent,\n TabsFieldLabelClientComponent,\n TabsFieldLabelServerComponent,\n TabsFieldServerComponent,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientComponent,\n TextFieldClientProps,\n TextFieldDescriptionClientComponent,\n TextFieldDescriptionServerComponent,\n TextFieldDiffClientComponent,\n TextFieldDiffServerComponent,\n TextFieldErrorClientComponent,\n TextFieldErrorServerComponent,\n TextFieldLabelClientComponent,\n TextFieldLabelServerComponent,\n TextFieldServerComponent,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientComponent,\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientComponent,\n TextareaFieldDescriptionServerComponent,\n TextareaFieldDiffClientComponent,\n TextareaFieldDiffServerComponent,\n TextareaFieldErrorClientComponent,\n TextareaFieldErrorServerComponent,\n TextareaFieldLabelClientComponent,\n TextareaFieldLabelServerComponent,\n TextareaFieldServerComponent,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientComponent,\n UIFieldClientProps,\n UIFieldDiffClientComponent,\n UIFieldDiffServerComponent,\n UIFieldServerComponent,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientComponent,\n UploadFieldClientProps,\n UploadFieldDescriptionClientComponent,\n UploadFieldDescriptionServerComponent,\n UploadFieldDiffClientComponent,\n UploadFieldDiffServerComponent,\n UploadFieldErrorClientComponent,\n UploadFieldErrorServerComponent,\n UploadFieldLabelClientComponent,\n UploadFieldLabelServerComponent,\n UploadFieldServerComponent,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientComponent,\n FieldDescriptionClientProps,\n FieldDescriptionServerComponent,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientComponent,\n FieldDiffClientProps,\n FieldDiffServerComponent,\n FieldDiffServerProps,\n VersionField,\n VersionTab,\n} from './forms/Diff.js'\n\nexport type {\n BuildFormStateArgs,\n Data,\n FieldState as FormField,\n FieldStateWithoutComponents as FormFieldWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n}\n\nexport type {\n FieldErrorClientComponent,\n FieldErrorClientProps,\n FieldErrorServerComponent,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.js'\n\nexport type {\n ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientComponent,\n FieldLabelClientProps,\n FieldLabelServerComponent,\n FieldLabelServerProps,\n GenericLabelProps,\n SanitizedLabelProps,\n} from './forms/Label.js'\n\nexport type { RowLabel, RowLabelComponent } from './forms/RowLabel.js'\n\nexport type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<any>\n RenderedComponent: React.ReactNode\n type: 'server'\n}\n\nexport type MappedClientComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<TComponentClientProps>\n RenderedComponent?: React.ReactNode\n type: 'client'\n}\n\nexport type MappedEmptyComponent = {\n type: 'empty'\n}\n\nexport enum Action {\n RenderConfig = 'render-config',\n}\n\nexport type RenderEntityConfigArgs = {\n collectionSlug?: string\n data?: Data\n globalSlug?: string\n}\n\nexport type RenderRootConfigArgs = {}\n\nexport type RenderFieldConfigArgs = {\n collectionSlug?: string\n formState?: FormState\n globalSlug?: string\n schemaPath: string\n}\n\nexport type RenderConfigArgs = {\n action: Action.RenderConfig\n config: Promise<SanitizedConfig> | SanitizedConfig\n i18n: I18nClient\n importMap: ImportMap\n languageCode: AcceptedLanguages\n serverProps?: any\n} & (RenderEntityConfigArgs | RenderFieldConfigArgs | RenderRootConfigArgs)\n\nexport type PayloadServerAction = (\n args:\n | {\n [key: string]: any\n action: Action\n i18n: I18nClient\n }\n | RenderConfigArgs,\n) => Promise<string>\n\nexport type RenderedField = {\n Field: React.ReactNode\n indexPath?: string\n initialSchemaPath?: string\n /**\n * @deprecated\n * This is a legacy property that will be removed in v4.\n * Please use `fieldIsSidebar(field)` from `payload` instead.\n * Or check `field.admin.position === 'sidebar'` directly.\n */\n isSidebar: boolean\n path: string\n schemaPath: string\n type: FieldTypes\n}\n\nexport type FieldRow = {\n RowLabel?: React.ReactNode\n}\n\nexport type DocumentSlots = {\n BeforeDocumentControls?: React.ReactNode\n Description?: React.ReactNode\n EditMenuItems?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Upload?: React.ReactNode\n}\n\nexport type {\n BuildCollectionFolderViewResult,\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport type {\n BeforeDocumentControlsClientProps,\n BeforeDocumentControlsServerProps,\n BeforeDocumentControlsServerPropsOnly,\n DocumentSubViewTypes,\n DocumentTabClientProps,\n /**\n * @deprecated\n * The `DocumentTabComponent` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps`or `DocumentTabClientProps` instead.\n */\n DocumentTabComponent,\n DocumentTabCondition,\n DocumentTabConfig,\n /**\n * @deprecated\n * The `DocumentTabProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps` instead.\n */\n DocumentTabServerProps as DocumentTabProps,\n DocumentTabServerProps,\n DocumentTabServerPropsOnly,\n /**\n * @deprecated\n * The `ClientSideEditViewProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentViewClientProps` instead.\n */\n DocumentViewClientProps as ClientSideEditViewProps,\n DocumentViewClientProps,\n /**\n * @deprecated\n * The `ServerSideEditViewProps` is deprecated and will be removed in the next major version.\n * Use `DocumentViewServerProps` instead.\n */\n DocumentViewServerProps as ServerSideEditViewProps,\n DocumentViewServerProps,\n DocumentViewServerPropsOnly,\n EditViewProps,\n} from './views/document.js'\n\nexport type {\n AfterFolderListClientProps,\n AfterFolderListServerProps,\n AfterFolderListServerPropsOnly,\n AfterFolderListTableClientProps,\n AfterFolderListTableServerProps,\n AfterFolderListTableServerPropsOnly,\n BeforeFolderListClientProps,\n BeforeFolderListServerProps,\n BeforeFolderListServerPropsOnly,\n BeforeFolderListTableClientProps,\n BeforeFolderListTableServerProps,\n BeforeFolderListTableServerPropsOnly,\n FolderListViewClientProps,\n FolderListViewServerProps,\n FolderListViewServerPropsOnly,\n FolderListViewSlots,\n FolderListViewSlotSharedClientProps,\n} from './views/folderList.js'\n\nexport type {\n AdminViewClientProps,\n /**\n * @deprecated\n * The `AdminViewComponent` type is deprecated and will be removed in the next major version.\n * Type your component props directly instead.\n */\n AdminViewComponent,\n AdminViewConfig,\n /**\n * @deprecated\n * The `AdminViewProps` type is deprecated and will be removed in the next major version.\n * Use `AdminViewServerProps` instead.\n */\n AdminViewServerProps as AdminViewProps,\n AdminViewServerProps,\n AdminViewServerPropsOnly,\n InitPageResult,\n ServerPropsFromView,\n ViewDescriptionClientProps,\n ViewDescriptionServerProps,\n ViewDescriptionServerPropsOnly,\n ViewTypes,\n VisibleEntities,\n} from './views/index.js'\n\nexport type {\n AfterListClientProps,\n AfterListServerProps,\n AfterListServerPropsOnly,\n AfterListTableClientProps,\n AfterListTableServerProps,\n AfterListTableServerPropsOnly,\n BeforeListClientProps,\n BeforeListServerProps,\n BeforeListServerPropsOnly,\n BeforeListTableClientProps,\n BeforeListTableServerProps,\n BeforeListTableServerPropsOnly,\n ListViewClientProps,\n ListViewServerProps,\n ListViewServerPropsOnly,\n ListViewSlots,\n ListViewSlotSharedClientProps,\n} from './views/list.js'\n\ntype SchemaPath = {} & string\nexport type FieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: Field[]\n }\n | Block\n | Field\n | Tab\n>\n\nexport type ClientFieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: ClientField[]\n }\n | ClientBlock\n | ClientField\n | ClientTab\n>\n\nexport type DocumentEvent = {\n entitySlug: string\n id?: number | string\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAqfA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
@@ -19,9 +19,9 @@ export type AdminViewConfig = {
19
19
  strict?: boolean;
20
20
  };
21
21
  export type AdminViewClientProps = {
22
+ browseByFolderSlugs?: SanitizedCollectionConfig['slug'][];
22
23
  clientConfig: ClientConfig;
23
24
  documentSubViewType?: DocumentSubViewTypes;
24
- folderCollectionSlugs?: SanitizedCollectionConfig['slug'][];
25
25
  viewType: ViewTypes;
26
26
  };
27
27
  export type AdminViewServerPropsOnly = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot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ACN,OAAO,GACP,QAAQ,GACR,SAAS,CAAA;AAEb,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;IACzD,YAAY,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;IACjD,WAAW,EAAE,eAAe,EAAE,CAAA;CAC/B,CAAA;AAGD,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAA;IAClD,WAAW,EAAE,iBAAiB,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,EAAE,GAAG,WAAW,CAAA;AAE7D,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GAAG,8BAA8B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/views/index.ts"],"sourcesContent":["import type { ClientTranslationsObject } from '@payloadcms/translations'\n\nimport type { SanitizedPermissions } from '../../auth/index.js'\nimport type { ImportMap } from '../../bin/generateImportMap/index.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientConfig } from '../../config/client.js'\nimport type {\n CustomComponent,\n Locale,\n MetaConfig,\n PayloadComponent,\n SanitizedConfig,\n ServerProps,\n} from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { LanguageOptions } from '../LanguageOptions.js'\nimport type { Data, StaticDescription } from '../types.js'\nimport type { DocumentSubViewTypes } from './document.js'\n\nexport type AdminViewConfig = {\n Component: PayloadComponent\n /** Whether the path should be matched exactly or as a prefix */\n exact?: boolean\n meta?: MetaConfig\n path?: string\n sensitive?: boolean\n strict?: boolean\n}\n\nexport type AdminViewClientProps = {\n clientConfig: ClientConfig\n documentSubViewType?: DocumentSubViewTypes\n folderCollectionSlugs?: SanitizedCollectionConfig['slug'][]\n viewType: ViewTypes\n}\n\nexport type AdminViewServerPropsOnly = {\n readonly clientConfig: ClientConfig\n readonly disableActions?: boolean\n /**\n * @todo remove `docID` here as it is already contained in `initPageResult`\n */\n readonly docID?: number | string\n readonly folderID?: number | string\n readonly importMap: ImportMap\n readonly initialData?: Data\n readonly initPageResult: InitPageResult\n readonly params?: { [key: string]: string | string[] | undefined }\n readonly redirectAfterCreate?: boolean\n readonly redirectAfterDelete?: boolean\n readonly redirectAfterDuplicate?: boolean\n} & ServerProps\n\nexport type AdminViewServerProps = AdminViewClientProps & AdminViewServerPropsOnly\n\n/**\n * @deprecated This should be removed in favor of direct props\n */\nexport type AdminViewComponent = PayloadComponent<AdminViewServerProps>\n\nexport type VisibleEntities = {\n collections: SanitizedCollectionConfig['slug'][]\n globals: SanitizedGlobalConfig['slug'][]\n}\n\nexport type InitPageResult = {\n collectionConfig?: SanitizedCollectionConfig\n cookies: Map<string, string>\n docID?: number | string\n globalConfig?: SanitizedGlobalConfig\n languageOptions: LanguageOptions\n locale?: Locale\n permissions: SanitizedPermissions\n redirectTo?: string\n req: PayloadRequest\n translations: ClientTranslationsObject\n visibleEntities: VisibleEntities\n}\n\n/**\n * @todo This should be renamed to `ViewType` (singular)\n */\nexport type ViewTypes =\n | 'account'\n | 'collection-folders'\n | 'dashboard'\n | 'document'\n | 'folders'\n | 'list'\n | 'reset'\n | 'verify'\n | 'version'\n\nexport type ServerPropsFromView = {\n collectionConfig?: SanitizedConfig['collections'][number]\n globalConfig?: SanitizedConfig['globals'][number]\n viewActions: CustomComponent[]\n}\n\n// Description\nexport type ViewDescriptionClientProps = {\n collectionSlug?: SanitizedCollectionConfig['slug']\n description: StaticDescription\n}\n\nexport type ViewDescriptionServerPropsOnly = {} & ServerProps\n\nexport type ViewDescriptionServerProps = ViewDescriptionClientProps & ViewDescriptionServerPropsOnly\n"],"names":[],"mappings":"AA4GA,WAAoG"}
1
+ {"version":3,"sources":["../../../src/admin/views/index.ts"],"sourcesContent":["import type { ClientTranslationsObject } from '@payloadcms/translations'\n\nimport type { SanitizedPermissions } from '../../auth/index.js'\nimport type { ImportMap } from '../../bin/generateImportMap/index.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientConfig } from '../../config/client.js'\nimport type {\n CustomComponent,\n Locale,\n MetaConfig,\n PayloadComponent,\n SanitizedConfig,\n ServerProps,\n} from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { LanguageOptions } from '../LanguageOptions.js'\nimport type { Data, StaticDescription } from '../types.js'\nimport type { DocumentSubViewTypes } from './document.js'\n\nexport type AdminViewConfig = {\n Component: PayloadComponent\n /** Whether the path should be matched exactly or as a prefix */\n exact?: boolean\n meta?: MetaConfig\n path?: string\n sensitive?: boolean\n strict?: boolean\n}\n\nexport type AdminViewClientProps = {\n browseByFolderSlugs?: SanitizedCollectionConfig['slug'][]\n clientConfig: ClientConfig\n documentSubViewType?: DocumentSubViewTypes\n viewType: ViewTypes\n}\n\nexport type AdminViewServerPropsOnly = {\n readonly clientConfig: ClientConfig\n readonly disableActions?: boolean\n /**\n * @todo remove `docID` here as it is already contained in `initPageResult`\n */\n readonly docID?: number | string\n readonly folderID?: number | string\n readonly importMap: ImportMap\n readonly initialData?: Data\n readonly initPageResult: InitPageResult\n readonly params?: { [key: string]: string | string[] | undefined }\n readonly redirectAfterCreate?: boolean\n readonly redirectAfterDelete?: boolean\n readonly redirectAfterDuplicate?: boolean\n} & ServerProps\n\nexport type AdminViewServerProps = AdminViewClientProps & AdminViewServerPropsOnly\n\n/**\n * @deprecated This should be removed in favor of direct props\n */\nexport type AdminViewComponent = PayloadComponent<AdminViewServerProps>\n\nexport type VisibleEntities = {\n collections: SanitizedCollectionConfig['slug'][]\n globals: SanitizedGlobalConfig['slug'][]\n}\n\nexport type InitPageResult = {\n collectionConfig?: SanitizedCollectionConfig\n cookies: Map<string, string>\n docID?: number | string\n globalConfig?: SanitizedGlobalConfig\n languageOptions: LanguageOptions\n locale?: Locale\n permissions: SanitizedPermissions\n redirectTo?: string\n req: PayloadRequest\n translations: ClientTranslationsObject\n visibleEntities: VisibleEntities\n}\n\n/**\n * @todo This should be renamed to `ViewType` (singular)\n */\nexport type ViewTypes =\n | 'account'\n | 'collection-folders'\n | 'dashboard'\n | 'document'\n | 'folders'\n | 'list'\n | 'reset'\n | 'verify'\n | 'version'\n\nexport type ServerPropsFromView = {\n collectionConfig?: SanitizedConfig['collections'][number]\n globalConfig?: SanitizedConfig['globals'][number]\n viewActions: CustomComponent[]\n}\n\n// Description\nexport type ViewDescriptionClientProps = {\n collectionSlug?: SanitizedCollectionConfig['slug']\n description: StaticDescription\n}\n\nexport type ViewDescriptionServerPropsOnly = {} & ServerProps\n\nexport type ViewDescriptionServerProps = ViewDescriptionClientProps & ViewDescriptionServerPropsOnly\n"],"names":[],"mappings":"AA4GA,WAAoG"}
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/auth/cookies.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAEjF,KAAK,aAAa,GAAG;IACnB,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,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAA;IACpC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ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MAAM,qBAAqB,GAAI,CAAC,SAAS,yBAAyB,wEAKtE,CAAC,KAAG,CAAC,CAAC,sBAAsB,CAAC,SAAS,IAAI,GAAG,YAAY,GAAG,MAmB9D,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,iEAI5F,CAAC,KAAG,CAAC,CAAC,sBAAsB,CAAC,SAAS,IAAI,GAAG,YAAY,GAAG,MAoB9D,CAAA;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,uBA8CvD"}
@@ -1,4 +1,3 @@
1
- // @ts-strict-ignore
2
1
  export const generateCookie = (args)=>{
3
2
  const { name, domain, expires, httpOnly, maxAge, path, returnCookieAsObject, sameSite, secure: secureArg, value } = args;
4
3
  let cookieString = `${name}=${value || ''}`;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/auth/cookies.ts"],"sourcesContent":["// @ts-strict-ignore\nimport type { SanitizedCollectionConfig } from './../collections/config/types.js'\n\ntype CookieOptions = {\n domain?: string\n expires?: Date\n httpOnly?: boolean\n maxAge?: number\n name: string\n path?: string\n returnCookieAsObject: boolean\n sameSite?: 'Lax' | 'None' | 'Strict'\n secure?: boolean\n value?: string\n}\n\ntype CookieObject = {\n domain?: string\n expires?: string\n httpOnly?: boolean\n maxAge?: number\n name: string\n path?: string\n sameSite?: 'Lax' | 'None' | 'Strict'\n secure?: boolean\n value: string | undefined\n}\n\nexport const generateCookie = <ReturnCookieAsObject = boolean>(\n args: CookieOptions,\n): ReturnCookieAsObject extends true ? CookieObject : string => {\n const {\n name,\n domain,\n expires,\n httpOnly,\n maxAge,\n path,\n returnCookieAsObject,\n sameSite,\n secure: secureArg,\n value,\n } = args\n\n let cookieString = `${name}=${value || ''}`\n const cookieObject: CookieObject = {\n name,\n value,\n }\n\n const secure = secureArg || sameSite === 'None'\n\n if (expires) {\n if (returnCookieAsObject) {\n cookieObject.expires = expires.toUTCString()\n } else {\n cookieString += `; Expires=${expires.toUTCString()}`\n }\n }\n\n if (maxAge) {\n if (returnCookieAsObject) {\n cookieObject.maxAge = maxAge\n } else {\n cookieString += `; Max-Age=${maxAge.toString()}`\n }\n }\n\n if (domain) {\n if (returnCookieAsObject) {\n cookieObject.domain = domain\n } else {\n cookieString += `; Domain=${domain}`\n }\n }\n\n if (path) {\n if (returnCookieAsObject) {\n cookieObject.path = path\n } else {\n cookieString += `; Path=${path}`\n }\n }\n\n if (secure) {\n if (returnCookieAsObject) {\n cookieObject.secure = secure\n } else {\n cookieString += `; Secure=${secure}`\n }\n }\n\n if (httpOnly) {\n if (returnCookieAsObject) {\n cookieObject.httpOnly = httpOnly\n } else {\n cookieString += `; HttpOnly=${httpOnly}`\n }\n }\n\n if (sameSite) {\n if (returnCookieAsObject) {\n cookieObject.sameSite = sameSite\n } else {\n cookieString += `; SameSite=${sameSite}`\n }\n }\n\n return (returnCookieAsObject ? cookieObject : cookieString) as ReturnCookieAsObject extends true\n ? CookieObject\n : string\n}\ntype GetCookieExpirationArgs = {\n /*\n The number of seconds until the cookie expires\n @default 7200 seconds (2 hours)\n */\n seconds: number\n}\nexport const getCookieExpiration = ({ seconds = 7200 }: GetCookieExpirationArgs) => {\n const currentTime = new Date()\n currentTime.setSeconds(currentTime.getSeconds() + seconds)\n return currentTime\n}\n\ntype GeneratePayloadCookieArgs = {\n /* The auth collection config */\n collectionAuthConfig: SanitizedCollectionConfig['auth']\n /* Prefix to scope the cookie */\n cookiePrefix: string\n /* The returnAs value */\n returnCookieAsObject?: boolean\n /* The token to be stored in the cookie */\n token: string\n}\nexport const generatePayloadCookie = <T extends GeneratePayloadCookieArgs>({\n collectionAuthConfig,\n cookiePrefix,\n returnCookieAsObject = false,\n token,\n}: T): T['returnCookieAsObject'] extends true ? CookieObject : string => {\n const sameSite =\n typeof collectionAuthConfig.cookies.sameSite === 'string'\n ? collectionAuthConfig.cookies.sameSite\n : collectionAuthConfig.cookies.sameSite\n ? 'Strict'\n : undefined\n\n return generateCookie<T['returnCookieAsObject']>({\n name: `${cookiePrefix}-token`,\n domain: collectionAuthConfig.cookies.domain ?? undefined,\n expires: getCookieExpiration({ seconds: collectionAuthConfig.tokenExpiration }),\n httpOnly: true,\n path: '/',\n returnCookieAsObject,\n sameSite,\n secure: collectionAuthConfig.cookies.secure,\n value: token,\n })\n}\n\nexport const generateExpiredPayloadCookie = <T extends Omit<GeneratePayloadCookieArgs, 'token'>>({\n collectionAuthConfig,\n cookiePrefix,\n returnCookieAsObject = false,\n}: T): T['returnCookieAsObject'] extends true ? CookieObject : string => {\n const sameSite =\n typeof collectionAuthConfig.cookies.sameSite === 'string'\n ? collectionAuthConfig.cookies.sameSite\n : collectionAuthConfig.cookies.sameSite\n ? 'Strict'\n : undefined\n\n const expires = new Date(Date.now() - 1000)\n\n return generateCookie<T['returnCookieAsObject']>({\n name: `${cookiePrefix}-token`,\n domain: collectionAuthConfig.cookies.domain ?? undefined,\n expires,\n httpOnly: true,\n path: '/',\n returnCookieAsObject,\n sameSite,\n secure: collectionAuthConfig.cookies.secure,\n })\n}\n\nexport function parseCookies(headers: Request['headers']) {\n // Taken from https://github.com/vercel/edge-runtime/blob/main/packages/cookies/src/serialize.ts\n\n /*\n The MIT License (MIT)\n\n Copyright (c) 2024 Vercel, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n const map = new Map<string, string>()\n\n const cookie = headers.get('Cookie')\n\n if (!cookie) {\n return map\n }\n\n for (const pair of cookie.split(/; */)) {\n if (!pair) {\n continue\n }\n\n const splitAt = pair.indexOf('=')\n\n // If the attribute doesn't have a value, set it to 'true'.\n if (splitAt === -1) {\n map.set(pair, 'true')\n continue\n }\n\n // Otherwise split it into key and value and trim the whitespace on the\n // value.\n const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)]\n try {\n map.set(key, decodeURIComponent(value ?? 'true'))\n } catch {\n // ignore invalid encoded values\n }\n }\n\n return map\n}\n"],"names":["generateCookie","args","name","domain","expires","httpOnly","maxAge","path","returnCookieAsObject","sameSite","secure","secureArg","value","cookieString","cookieObject","toUTCString","toString","getCookieExpiration","seconds","currentTime","Date","setSeconds","getSeconds","generatePayloadCookie","collectionAuthConfig","cookiePrefix","token","cookies","undefined","tokenExpiration","generateExpiredPayloadCookie","now","parseCookies","headers","map","Map","cookie","get","pair","split","splitAt","indexOf","set","key","slice","decodeURIComponent"],"mappings":"AAAA,oBAAoB;AA4BpB,OAAO,MAAMA,iBAAiB,CAC5BC;IAEA,MAAM,EACJC,IAAI,EACJC,MAAM,EACNC,OAAO,EACPC,QAAQ,EACRC,MAAM,EACNC,IAAI,EACJC,oBAAoB,EACpBC,QAAQ,EACRC,QAAQC,SAAS,EACjBC,KAAK,EACN,GAAGX;IAEJ,IAAIY,eAAe,GAAGX,KAAK,CAAC,EAAEU,SAAS,IAAI;IAC3C,MAAME,eAA6B;QACjCZ;QACAU;IACF;IAEA,MAAMF,SAASC,aAAaF,aAAa;IAEzC,IAAIL,SAAS;QACX,IAAII,sBAAsB;YACxBM,aAAaV,OAAO,GAAGA,QAAQW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CAAC;QAE7B,2DAA2D;QAC3D,IAAID,YAAY,CAAC,GAAG;YAClBN,IAAIQ,GAAG,CAACJ,MAAM;YACd;QACF;QAEA,uEAAuE;QACvE,SAAS;QACT,MAAM,CAACK,KAAK/B,MAAM,GAAG;YAAC0B,KAAKM,KAAK,CAAC,GAAGJ;YAAUF,KAAKM,KAAK,CAACJ,UAAU;SAAG;QACtE,IAAI;YACFN,IAAIQ,GAAG,CAACC,KAAKE,mBAAmBjC,SAAS;QAC3C,EAAE,OAAM;QACN,gCAAgC;QAClC;IACF;IAEA,OAAOsB;AACT"}
1
+ {"version":3,"sources":["../../src/auth/cookies.ts"],"sourcesContent":["import type { SanitizedCollectionConfig } from './../collections/config/types.js'\n\ntype CookieOptions = {\n domain?: string\n expires?: Date\n httpOnly?: boolean\n maxAge?: number\n name: string\n path?: string\n returnCookieAsObject: boolean\n sameSite?: 'Lax' | 'None' | 'Strict'\n secure?: boolean\n value?: string\n}\n\ntype CookieObject = {\n domain?: string\n expires?: string\n httpOnly?: boolean\n maxAge?: number\n name: string\n path?: string\n sameSite?: 'Lax' | 'None' | 'Strict'\n secure?: boolean\n value: string | undefined\n}\n\nexport const generateCookie = <ReturnCookieAsObject = boolean>(\n args: CookieOptions,\n): ReturnCookieAsObject extends true ? CookieObject : string => {\n const {\n name,\n domain,\n expires,\n httpOnly,\n maxAge,\n path,\n returnCookieAsObject,\n sameSite,\n secure: secureArg,\n value,\n } = args\n\n let cookieString = `${name}=${value || ''}`\n const cookieObject: CookieObject = {\n name,\n value,\n }\n\n const secure = secureArg || sameSite === 'None'\n\n if (expires) {\n if (returnCookieAsObject) {\n cookieObject.expires = expires.toUTCString()\n } else {\n cookieString += `; Expires=${expires.toUTCString()}`\n }\n }\n\n if (maxAge) {\n if (returnCookieAsObject) {\n cookieObject.maxAge = maxAge\n } else {\n cookieString += `; Max-Age=${maxAge.toString()}`\n }\n }\n\n if (domain) {\n if (returnCookieAsObject) {\n cookieObject.domain = domain\n } else {\n cookieString += `; Domain=${domain}`\n }\n }\n\n if (path) {\n if (returnCookieAsObject) {\n cookieObject.path = path\n } else {\n cookieString += `; Path=${path}`\n }\n }\n\n if (secure) {\n if (returnCookieAsObject) {\n cookieObject.secure = secure\n } else {\n cookieString += `; Secure=${secure}`\n }\n }\n\n if (httpOnly) {\n if (returnCookieAsObject) {\n cookieObject.httpOnly = httpOnly\n } else {\n cookieString += `; HttpOnly=${httpOnly}`\n }\n }\n\n if (sameSite) {\n if (returnCookieAsObject) {\n cookieObject.sameSite = sameSite\n } else {\n cookieString += `; SameSite=${sameSite}`\n }\n }\n\n return (returnCookieAsObject ? cookieObject : cookieString) as ReturnCookieAsObject extends true\n ? CookieObject\n : string\n}\ntype GetCookieExpirationArgs = {\n /*\n The number of seconds until the cookie expires\n @default 7200 seconds (2 hours)\n */\n seconds: number\n}\nexport const getCookieExpiration = ({ seconds = 7200 }: GetCookieExpirationArgs) => {\n const currentTime = new Date()\n currentTime.setSeconds(currentTime.getSeconds() + seconds)\n return currentTime\n}\n\ntype GeneratePayloadCookieArgs = {\n /* The auth collection config */\n collectionAuthConfig: SanitizedCollectionConfig['auth']\n /* Prefix to scope the cookie */\n cookiePrefix: string\n /* The returnAs value */\n returnCookieAsObject?: boolean\n /* The token to be stored in the cookie */\n token: string\n}\nexport const generatePayloadCookie = <T extends GeneratePayloadCookieArgs>({\n collectionAuthConfig,\n cookiePrefix,\n returnCookieAsObject = false,\n token,\n}: T): T['returnCookieAsObject'] extends true ? CookieObject : string => {\n const sameSite =\n typeof collectionAuthConfig.cookies.sameSite === 'string'\n ? collectionAuthConfig.cookies.sameSite\n : collectionAuthConfig.cookies.sameSite\n ? 'Strict'\n : undefined\n\n return generateCookie<T['returnCookieAsObject']>({\n name: `${cookiePrefix}-token`,\n domain: collectionAuthConfig.cookies.domain ?? undefined,\n expires: getCookieExpiration({ seconds: collectionAuthConfig.tokenExpiration }),\n httpOnly: true,\n path: '/',\n returnCookieAsObject,\n sameSite,\n secure: collectionAuthConfig.cookies.secure,\n value: token,\n })\n}\n\nexport const generateExpiredPayloadCookie = <T extends Omit<GeneratePayloadCookieArgs, 'token'>>({\n collectionAuthConfig,\n cookiePrefix,\n returnCookieAsObject = false,\n}: T): T['returnCookieAsObject'] extends true ? CookieObject : string => {\n const sameSite =\n typeof collectionAuthConfig.cookies.sameSite === 'string'\n ? collectionAuthConfig.cookies.sameSite\n : collectionAuthConfig.cookies.sameSite\n ? 'Strict'\n : undefined\n\n const expires = new Date(Date.now() - 1000)\n\n return generateCookie<T['returnCookieAsObject']>({\n name: `${cookiePrefix}-token`,\n domain: collectionAuthConfig.cookies.domain ?? undefined,\n expires,\n httpOnly: true,\n path: '/',\n returnCookieAsObject,\n sameSite,\n secure: collectionAuthConfig.cookies.secure,\n })\n}\n\nexport function parseCookies(headers: Request['headers']) {\n // Taken from https://github.com/vercel/edge-runtime/blob/main/packages/cookies/src/serialize.ts\n\n /*\n The MIT License (MIT)\n\n Copyright (c) 2024 Vercel, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n const map = new Map<string, string>()\n\n const cookie = headers.get('Cookie')\n\n if (!cookie) {\n return map\n }\n\n for (const pair of cookie.split(/; */)) {\n if (!pair) {\n continue\n }\n\n const splitAt = pair.indexOf('=')\n\n // If the attribute doesn't have a value, set it to 'true'.\n if (splitAt === -1) {\n map.set(pair, 'true')\n continue\n }\n\n // Otherwise split it into key and value and trim the whitespace on the\n // value.\n const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)]\n try {\n map.set(key, decodeURIComponent(value ?? 'true'))\n } catch {\n // ignore invalid encoded values\n }\n }\n\n return map\n}\n"],"names":["generateCookie","args","name","domain","expires","httpOnly","maxAge","path","returnCookieAsObject","sameSite","secure","secureArg","value","cookieString","cookieObject","toUTCString","toString","getCookieExpiration","seconds","currentTime","Date","setSeconds","getSeconds","generatePayloadCookie","collectionAuthConfig","cookiePrefix","token","cookies","undefined","tokenExpiration","generateExpiredPayloadCookie","now","parseCookies","headers","map","Map","cookie","get","pair","split","splitAt","indexOf","set","key","slice","decodeURIComponent"],"mappings":"AA2BA,OAAO,MAAMA,iBAAiB,CAC5BC;IAEA,MAAM,EACJC,IAAI,EACJC,MAAM,EACNC,OAAO,EACPC,QAAQ,EACRC,MAAM,EACNC,IAAI,EACJC,oBAAoB,EACpBC,QAAQ,EACRC,QAAQC,SAAS,EACjBC,KAAK,EACN,GAAGX;IAEJ,IAAIY,eAAe,GAAGX,KAAK,CAAC,EAAEU,SAAS,IAAI;IAC3C,MAAME,eAA6B;QACjCZ;QACAU;IACF;IAEA,MAAMF,SAASC,aAAaF,aAAa;IAEzC,IAAIL,SAAS;QACX,IAAII,sBAAsB;YACxBM,aAAaV,OAAO,GAAGA,QAAQW,WAAW;QAC5C,OAAO;YACLF,gBAAgB,CAAC,UAAU,EAAET,QAAQW,WAAW,IAAI;QACtD;IACF;IAEA,IAAIT,QAAQ;QACV,IAAIE,sBAAsB;YACxBM,aAAaR,MAAM,GAAGA;QACxB,OAAO;YACLO,gBAAgB,CAAC,UAAU,EAAEP,OAAOU,QAAQ,IAAI;QA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ACJ,UAAU;SAAG;QACtE,IAAI;YACFN,IAAIQ,GAAG,CAACC,KAAKE,mBAAmBjC,SAAS;QAC3C,EAAE,OAAM;QACN,gCAAgC;QAClC;IACF;IAEA,OAAOsB;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"forgotPassword.d.ts","sourceRoot":"","sources":["../../../src/auth/endpoints/forgotPassword.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAM3D,eAAO,MAAM,qBAAqB,EAAE,cAkCnC,CAAA"}
1
+ {"version":3,"file":"forgotPassword.d.ts","sourceRoot":"","sources":["../../../src/auth/endpoints/forgotPassword.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAM3D,eAAO,MAAM,qBAAqB,EAAE,cAkCnC,CAAA"}
@@ -1,4 +1,3 @@
1
- // @ts-strict-ignore
2
1
  import { status as httpStatus } from 'http-status';
3
2
  import { getRequestCollection } from '../../utilities/getRequestEntity.js';
4
3
  import { headersWithCors } from '../../utilities/headersWithCors.js';
@@ -16,7 +15,7 @@ export const forgotPasswordHandler = async (req)=>{
16
15
  collection,
17
16
  data: authData,
18
17
  disableEmail: Boolean(req.data?.disableEmail),
19
- expiration: typeof req.data.expiration === 'number' ? req.data.expiration : undefined,
18
+ expiration: typeof req.data?.expiration === 'number' ? req.data.expiration : undefined,
20
19
  req
21
20
  });
22
21
  return Response.json({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/auth/endpoints/forgotPassword.ts"],"sourcesContent":["// @ts-strict-ignore\nimport { status as httpStatus } from 'http-status'\n\nimport type { PayloadHandler } from '../../config/types.js'\n\nimport { getRequestCollection } from '../../utilities/getRequestEntity.js'\nimport { headersWithCors } from '../../utilities/headersWithCors.js'\nimport { forgotPasswordOperation } from '../operations/forgotPassword.js'\n\nexport const forgotPasswordHandler: PayloadHandler = async (req) => {\n const { t } = req\n\n const collection = getRequestCollection(req)\n\n const authData = collection.config.auth?.loginWithUsername\n ? {\n email: typeof req.data?.email === 'string' ? req.data.email : '',\n username: typeof req.data?.username === 'string' ? req.data.username : '',\n }\n : {\n email: typeof req.data?.email === 'string' ? req.data.email : '',\n }\n\n await forgotPasswordOperation({\n collection,\n data: authData,\n disableEmail: Boolean(req.data?.disableEmail),\n expiration: typeof req.data.expiration === 'number' ? req.data.expiration : undefined,\n req,\n })\n\n return Response.json(\n {\n message: t('general:success'),\n },\n {\n headers: headersWithCors({\n headers: new Headers(),\n req,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["status","httpStatus","getRequestCollection","headersWithCors","forgotPasswordOperation","forgotPasswordHandler","req","t","collection","authData","config","auth","loginWithUsername","email","data","username","disableEmail","Boolean","expiration","undefined","Response","json","message","headers","Headers","OK"],"mappings":"AAAA,oBAAoB;AACpB,SAASA,UAAUC,UAAU,QAAQ,cAAa;AAIlD,SAASC,oBAAoB,QAAQ,sCAAqC;AAC1E,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,uBAAuB,QAAQ,kCAAiC;AAEzE,OAAO,MAAMC,wBAAwC,OAAOC;IAC1D,MAAM,EAAEC,CAAC,EAAE,GAAGD;IAEd,MAAME,aAAaN,qBAAqBI;IAExC,MAAMG,WAAWD,WAAWE,MAAM,CAACC,IAAI,EAAEC,oBACrC;QACEC,OAAO,OAAOP,IAAIQ,IAAI,EAAED,UAAU,WAAWP,IAAIQ,IAAI,CAACD,KAAK,GAAG;QAC9DE,UAAU,OAAOT,IAAIQ,IAAI,EAAEC,aAAa,WAAWT,IAAIQ,IAAI,CAACC,QAAQ,GAAG;IACzE,IACA;QACEF,OAAO,OAAOP,IAAIQ,IAAI,EAAED,UAAU,WAAWP,IAAIQ,IAAI,CAACD,KAAK,GAAG;IAChE;IAEJ,MAAMT,wBAAwB;QAC5BI;QACAM,MAAML;QACNO,cAAcC,QAAQX,IAAIQ,IAAI,EAAEE;QAChCE,YAAY,OAAOZ,IAAIQ,IAAI,CAACI,UAAU,KAAK,WAAWZ,IAAIQ,IAAI,CAACI,UAAU,GAAGC;QAC5Eb;IACF;IAEA,OAAOc,SAASC,IAAI,CAClB;QACEC,SAASf,EAAE;IACb,GACA;QACEgB,SAASpB,gBAAgB;YACvBoB,SAAS,IAAIC;YACblB;QACF;QACAN,QAAQC,WAAWwB,EAAE;IACvB;AAEJ,EAAC"}
1
+ {"version":3,"sources":["../../../src/auth/endpoints/forgotPassword.ts"],"sourcesContent":["import { status as httpStatus } from 'http-status'\n\nimport type { PayloadHandler } from '../../config/types.js'\n\nimport { getRequestCollection } from '../../utilities/getRequestEntity.js'\nimport { headersWithCors } from '../../utilities/headersWithCors.js'\nimport { forgotPasswordOperation } from '../operations/forgotPassword.js'\n\nexport const forgotPasswordHandler: PayloadHandler = async (req) => {\n const { t } = req\n\n const collection = getRequestCollection(req)\n\n const authData = collection.config.auth?.loginWithUsername\n ? {\n email: typeof req.data?.email === 'string' ? req.data.email : '',\n username: typeof req.data?.username === 'string' ? req.data.username : '',\n }\n : {\n email: typeof req.data?.email === 'string' ? req.data.email : '',\n }\n\n await forgotPasswordOperation({\n collection,\n data: authData,\n disableEmail: Boolean(req.data?.disableEmail),\n expiration: typeof req.data?.expiration === 'number' ? req.data.expiration : undefined,\n req,\n })\n\n return Response.json(\n {\n message: t('general:success'),\n },\n {\n headers: headersWithCors({\n headers: new Headers(),\n req,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["status","httpStatus","getRequestCollection","headersWithCors","forgotPasswordOperation","forgotPasswordHandler","req","t","collection","authData","config","auth","loginWithUsername","email","data","username","disableEmail","Boolean","expiration","undefined","Response","json","message","headers","Headers","OK"],"mappings":"AAAA,SAASA,UAAUC,UAAU,QAAQ,cAAa;AAIlD,SAASC,oBAAoB,QAAQ,sCAAqC;AAC1E,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,uBAAuB,QAAQ,kCAAiC;AAEzE,OAAO,MAAMC,wBAAwC,OAAOC;IAC1D,MAAM,EAAEC,CAAC,EAAE,GAAGD;IAEd,MAAME,aAAaN,qBAAqBI;IAExC,MAAMG,WAAWD,WAAWE,MAAM,CAACC,IAAI,EAAEC,oBACrC;QACEC,OAAO,OAAOP,IAAIQ,IAAI,EAAED,UAAU,WAAWP,IAAIQ,IAAI,CAACD,KAAK,GAAG;QAC9DE,UAAU,OAAOT,IAAIQ,IAAI,EAAEC,aAAa,WAAWT,IAAIQ,IAAI,CAACC,QAAQ,GAAG;IACzE,IACA;QACEF,OAAO,OAAOP,IAAIQ,IAAI,EAAED,UAAU,WAAWP,IAAIQ,IAAI,CAACD,KAAK,GAAG;IAChE;IAEJ,MAAMT,wBAAwB;QAC5BI;QACAM,MAAML;QACNO,cAAcC,QAAQX,IAAIQ,IAAI,EAAEE;QAChCE,YAAY,OAAOZ,IAAIQ,IAAI,EAAEI,eAAe,WAAWZ,IAAIQ,IAAI,CAACI,UAAU,GAAGC;QAC7Eb;IACF;IAEA,OAAOc,SAASC,IAAI,CAClB;QACEC,SAASf,EAAE;IACb,GACA;QACEgB,SAASpB,gBAAgB;YACvBoB,SAAS,IAAIC;YACblB;QACF;QACAN,QAAQC,WAAWwB,EAAE;IACvB;AAEJ,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/auth/endpoints/login.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,eAAO,MAAM,YAAY,EAAE,cAgD1B,CAAA"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/auth/endpoints/login.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,eAAO,MAAM,YAAY,EAAE,cAgD1B,CAAA"}
@@ -1,4 +1,3 @@
1
- // @ts-strict-ignore
2
1
  import { status as httpStatus } from 'http-status';
3
2
  import { getRequestCollection } from '../../utilities/getRequestEntity.js';
4
3
  import { headersWithCors } from '../../utilities/headersWithCors.js';