payload 4.0.0-internal.40de3ec → 4.0.0-internal.435b2d6

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 (716) hide show
  1. package/LICENSE.md +1 -1
  2. package/bin.js +11 -0
  3. package/dist/__testing__/predefinedMigration.d.ts +4 -3
  4. package/dist/__testing__/predefinedMigration.d.ts.map +1 -1
  5. package/dist/admin/RichText.d.ts +1 -21
  6. package/dist/admin/RichText.d.ts.map +1 -1
  7. package/dist/admin/RichText.js.map +1 -1
  8. package/dist/admin/adapters/router.d.ts +8 -0
  9. package/dist/admin/adapters/router.d.ts.map +1 -1
  10. package/dist/admin/adapters/router.js.map +1 -1
  11. package/dist/admin/fields/Row.d.ts +2 -2
  12. package/dist/admin/fields/Row.d.ts.map +1 -1
  13. package/dist/admin/fields/Row.js.map +1 -1
  14. package/dist/admin/forms/Description.d.ts +2 -2
  15. package/dist/admin/forms/Description.d.ts.map +1 -1
  16. package/dist/admin/forms/Description.js.map +1 -1
  17. package/dist/admin/forms/Field.d.ts +3 -5
  18. package/dist/admin/forms/Field.d.ts.map +1 -1
  19. package/dist/admin/forms/Field.js.map +1 -1
  20. package/dist/admin/forms/Form.d.ts +0 -29
  21. package/dist/admin/forms/Form.d.ts.map +1 -1
  22. package/dist/admin/forms/Form.js.map +1 -1
  23. package/dist/admin/functions/index.d.ts +1 -1
  24. package/dist/admin/functions/index.js.map +1 -1
  25. package/dist/admin/types.d.ts +2 -1
  26. package/dist/admin/types.d.ts.map +1 -1
  27. package/dist/admin/types.js.map +1 -1
  28. package/dist/admin/views/document.d.ts +0 -4
  29. package/dist/admin/views/document.d.ts.map +1 -1
  30. package/dist/admin/views/document.js.map +1 -1
  31. package/dist/admin/views/list.d.ts +5 -0
  32. package/dist/admin/views/list.d.ts.map +1 -1
  33. package/dist/admin/views/list.js.map +1 -1
  34. package/dist/auth/baseFields/apiKey.d.ts +10 -2
  35. package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
  36. package/dist/auth/baseFields/apiKey.js +35 -24
  37. package/dist/auth/baseFields/apiKey.js.map +1 -1
  38. package/dist/auth/cookies.d.ts +2 -2
  39. package/dist/auth/cookies.d.ts.map +1 -1
  40. package/dist/auth/defaultAccess.d.ts.map +1 -1
  41. package/dist/auth/ensureUsernameOrEmail.d.ts.map +1 -1
  42. package/dist/auth/executeAccess.d.ts.map +1 -1
  43. package/dist/auth/executeAuthStrategies.d.ts.map +1 -1
  44. package/dist/auth/extractAccessFromPermission.d.ts.map +1 -1
  45. package/dist/auth/extractJWT.d.ts +1 -1
  46. package/dist/auth/extractJWT.d.ts.map +1 -1
  47. package/dist/auth/getAuthFields.d.ts.map +1 -1
  48. package/dist/auth/getAuthFields.js +2 -2
  49. package/dist/auth/getAuthFields.js.map +1 -1
  50. package/dist/auth/getFieldsToSign.d.ts +1 -1
  51. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  52. package/dist/auth/getLoginOptions.d.ts +1 -1
  53. package/dist/auth/getLoginOptions.d.ts.map +1 -1
  54. package/dist/auth/isUserLocked.d.ts.map +1 -1
  55. package/dist/auth/jwt.d.ts.map +1 -1
  56. package/dist/auth/operations/access.d.ts.map +1 -1
  57. package/dist/auth/operations/auth.d.ts +2 -2
  58. package/dist/auth/operations/auth.d.ts.map +1 -1
  59. package/dist/auth/operations/auth.js.map +1 -1
  60. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  61. package/dist/auth/operations/init.d.ts.map +1 -1
  62. package/dist/auth/operations/local/auth.d.ts.map +1 -1
  63. package/dist/auth/operations/login.d.ts +2 -1
  64. package/dist/auth/operations/login.d.ts.map +1 -1
  65. package/dist/auth/operations/login.js.map +1 -1
  66. package/dist/auth/operations/logout.d.ts.map +1 -1
  67. package/dist/auth/operations/me.d.ts +2 -2
  68. package/dist/auth/operations/me.d.ts.map +1 -1
  69. package/dist/auth/operations/me.js.map +1 -1
  70. package/dist/auth/operations/refresh.d.ts.map +1 -1
  71. package/dist/auth/operations/refresh.js +9 -3
  72. package/dist/auth/operations/refresh.js.map +1 -1
  73. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  74. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  75. package/dist/auth/operations/resetPassword.js.map +1 -1
  76. package/dist/auth/operations/unlock.d.ts.map +1 -1
  77. package/dist/auth/operations/verifyEmail.d.ts.map +1 -1
  78. package/dist/auth/sendVerificationEmail.d.ts +2 -2
  79. package/dist/auth/sendVerificationEmail.d.ts.map +1 -1
  80. package/dist/auth/sendVerificationEmail.js +1 -1
  81. package/dist/auth/sendVerificationEmail.js.map +1 -1
  82. package/dist/auth/sessions.d.ts +4 -5
  83. package/dist/auth/sessions.d.ts.map +1 -1
  84. package/dist/auth/sessions.js +5 -3
  85. package/dist/auth/sessions.js.map +1 -1
  86. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  87. package/dist/auth/strategies/apiKey.js.map +1 -1
  88. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  89. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  90. package/dist/auth/strategies/local/incrementLoginAttempts.d.ts +2 -2
  91. package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
  92. package/dist/auth/strategies/local/incrementLoginAttempts.js +1 -1
  93. package/dist/auth/strategies/local/incrementLoginAttempts.js.map +1 -1
  94. package/dist/auth/strategies/local/register.d.ts.map +1 -1
  95. package/dist/auth/strategies/local/resetLoginAttempts.d.ts.map +1 -1
  96. package/dist/auth/types.d.ts +25 -21
  97. package/dist/auth/types.d.ts.map +1 -1
  98. package/dist/auth/types.js.map +1 -1
  99. package/dist/bin/build.d.ts +34 -10
  100. package/dist/bin/build.d.ts.map +1 -1
  101. package/dist/bin/build.js +175 -29
  102. package/dist/bin/build.js.map +1 -1
  103. package/dist/bin/build.spec.js +425 -1
  104. package/dist/bin/build.spec.js.map +1 -1
  105. package/dist/bin/frameworkConventions.d.ts +8 -0
  106. package/dist/bin/frameworkConventions.d.ts.map +1 -0
  107. package/dist/bin/frameworkConventions.js +8 -0
  108. package/dist/bin/frameworkConventions.js.map +1 -0
  109. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -1
  110. package/dist/bin/generateImportMap/iterateCollections.js +11 -0
  111. package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
  112. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
  113. package/dist/bin/generateImportMap/iterateConfig.js +12 -0
  114. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
  115. package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -1
  116. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -1
  117. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js +13 -4
  118. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -1
  119. package/dist/bin/migrate.d.ts.map +1 -1
  120. package/dist/collections/config/client.d.ts +11 -4
  121. package/dist/collections/config/client.d.ts.map +1 -1
  122. package/dist/collections/config/client.js +8 -0
  123. package/dist/collections/config/client.js.map +1 -1
  124. package/dist/collections/config/defaults.d.ts +0 -4
  125. package/dist/collections/config/defaults.d.ts.map +1 -1
  126. package/dist/collections/config/defaults.js +0 -15
  127. package/dist/collections/config/defaults.js.map +1 -1
  128. package/dist/collections/config/sanitize.d.ts.map +1 -1
  129. package/dist/collections/config/sanitize.js +1 -11
  130. package/dist/collections/config/sanitize.js.map +1 -1
  131. package/dist/collections/config/sanitizeCompoundIndexes.d.ts.map +1 -1
  132. package/dist/collections/config/types.d.ts +9 -2
  133. package/dist/collections/config/types.d.ts.map +1 -1
  134. package/dist/collections/config/types.js.map +1 -1
  135. package/dist/collections/config/useAsTitle.d.ts.map +1 -1
  136. package/dist/collections/dataloader.d.ts +1 -1
  137. package/dist/collections/dataloader.d.ts.map +1 -1
  138. package/dist/collections/endpoints/create.d.ts.map +1 -1
  139. package/dist/collections/endpoints/create.js +0 -2
  140. package/dist/collections/endpoints/create.js.map +1 -1
  141. package/dist/collections/endpoints/updateByID.d.ts.map +1 -1
  142. package/dist/collections/endpoints/updateByID.js +1 -2
  143. package/dist/collections/endpoints/updateByID.js.map +1 -1
  144. package/dist/collections/operations/count.d.ts.map +1 -1
  145. package/dist/collections/operations/count.js +1 -0
  146. package/dist/collections/operations/count.js.map +1 -1
  147. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  148. package/dist/collections/operations/create.d.ts +0 -1
  149. package/dist/collections/operations/create.d.ts.map +1 -1
  150. package/dist/collections/operations/create.js +14 -6
  151. package/dist/collections/operations/create.js.map +1 -1
  152. package/dist/collections/operations/delete.d.ts.map +1 -1
  153. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  154. package/dist/collections/operations/duplicate.d.ts.map +1 -1
  155. package/dist/collections/operations/find.d.ts.map +1 -1
  156. package/dist/collections/operations/findByID.d.ts.map +1 -1
  157. package/dist/collections/operations/findDistinct.d.ts.map +1 -1
  158. package/dist/collections/operations/findDistinct.js +1 -0
  159. package/dist/collections/operations/findDistinct.js.map +1 -1
  160. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  161. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  162. package/dist/collections/operations/local/count.d.ts +3 -3
  163. package/dist/collections/operations/local/count.d.ts.map +1 -1
  164. package/dist/collections/operations/local/count.js.map +1 -1
  165. package/dist/collections/operations/local/countVersions.d.ts +3 -3
  166. package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
  167. package/dist/collections/operations/local/countVersions.js.map +1 -1
  168. package/dist/collections/operations/local/create.d.ts +3 -3
  169. package/dist/collections/operations/local/create.d.ts.map +1 -1
  170. package/dist/collections/operations/local/create.js.map +1 -1
  171. package/dist/collections/operations/local/delete.d.ts +3 -3
  172. package/dist/collections/operations/local/delete.d.ts.map +1 -1
  173. package/dist/collections/operations/local/delete.js.map +1 -1
  174. package/dist/collections/operations/local/duplicate.d.ts +3 -3
  175. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  176. package/dist/collections/operations/local/duplicate.js.map +1 -1
  177. package/dist/collections/operations/local/find.d.ts +3 -3
  178. package/dist/collections/operations/local/find.d.ts.map +1 -1
  179. package/dist/collections/operations/local/find.js.map +1 -1
  180. package/dist/collections/operations/local/findByID.d.ts +3 -3
  181. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  182. package/dist/collections/operations/local/findByID.js.map +1 -1
  183. package/dist/collections/operations/local/findDistinct.d.ts +2 -2
  184. package/dist/collections/operations/local/findDistinct.d.ts.map +1 -1
  185. package/dist/collections/operations/local/findDistinct.js.map +1 -1
  186. package/dist/collections/operations/local/findVersionByID.d.ts +3 -3
  187. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  188. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  189. package/dist/collections/operations/local/findVersions.d.ts +3 -3
  190. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  191. package/dist/collections/operations/local/findVersions.js.map +1 -1
  192. package/dist/collections/operations/local/restoreVersion.d.ts +3 -3
  193. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  194. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  195. package/dist/collections/operations/local/update.d.ts +7 -11
  196. package/dist/collections/operations/local/update.d.ts.map +1 -1
  197. package/dist/collections/operations/local/update.js +1 -2
  198. package/dist/collections/operations/local/update.js.map +1 -1
  199. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  200. package/dist/collections/operations/update.d.ts +0 -1
  201. package/dist/collections/operations/update.d.ts.map +1 -1
  202. package/dist/collections/operations/update.js +8 -4
  203. package/dist/collections/operations/update.js.map +1 -1
  204. package/dist/collections/operations/updateByID.d.ts +0 -1
  205. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  206. package/dist/collections/operations/updateByID.js +1 -5
  207. package/dist/collections/operations/updateByID.js.map +1 -1
  208. package/dist/collections/operations/utilities/buildAfterOperation.d.ts +1 -1
  209. package/dist/collections/operations/utilities/buildAfterOperation.d.ts.map +1 -1
  210. package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.d.ts +9 -0
  211. package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.d.ts.map +1 -0
  212. package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.js +170 -0
  213. package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.js.map +1 -0
  214. package/dist/collections/operations/utilities/sanitizeSortQuery.d.ts.map +1 -1
  215. package/dist/collections/operations/utilities/types.d.ts +20 -29
  216. package/dist/collections/operations/utilities/types.d.ts.map +1 -1
  217. package/dist/collections/operations/utilities/types.js.map +1 -1
  218. package/dist/collections/operations/utilities/update.d.ts +1 -2
  219. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  220. package/dist/collections/operations/utilities/update.js +48 -57
  221. package/dist/collections/operations/utilities/update.js.map +1 -1
  222. package/dist/config/client.d.ts +2 -2
  223. package/dist/config/client.d.ts.map +1 -1
  224. package/dist/config/client.js.map +1 -1
  225. package/dist/config/defaults.d.ts +0 -4
  226. package/dist/config/defaults.d.ts.map +1 -1
  227. package/dist/config/defaults.js +0 -78
  228. package/dist/config/defaults.js.map +1 -1
  229. package/dist/config/definePlugin.d.ts +10 -10
  230. package/dist/config/definePlugin.d.ts.map +1 -1
  231. package/dist/config/definePlugin.js +7 -11
  232. package/dist/config/definePlugin.js.map +1 -1
  233. package/dist/config/orderable/fractional-indexing.d.ts +23 -23
  234. package/dist/config/orderable/fractional-indexing.d.ts.map +1 -1
  235. package/dist/config/orderable/index.d.ts.map +1 -1
  236. package/dist/config/orderable/index.js +23 -0
  237. package/dist/config/orderable/index.js.map +1 -1
  238. package/dist/config/sanitize.d.ts.map +1 -1
  239. package/dist/config/sanitize.js +141 -13
  240. package/dist/config/sanitize.js.map +1 -1
  241. package/dist/config/types.d.ts +50 -20
  242. package/dist/config/types.d.ts.map +1 -1
  243. package/dist/config/types.js +1 -0
  244. package/dist/config/types.js.map +1 -1
  245. package/dist/database/combineQueries.d.ts.map +1 -1
  246. package/dist/database/migrations/findMigrationDir.d.ts.map +1 -1
  247. package/dist/database/migrations/getPredefinedMigration.d.ts.map +1 -1
  248. package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
  249. package/dist/database/migrations/writeMigrationIndex.d.ts.map +1 -1
  250. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  251. package/dist/database/sanitizeWhereQuery.d.ts.map +1 -1
  252. package/dist/database/types.d.ts +1 -5
  253. package/dist/database/types.d.ts.map +1 -1
  254. package/dist/database/types.js.map +1 -1
  255. package/dist/duplicateDocument/index.d.ts.map +1 -1
  256. package/dist/email/getStringifiedToAddress.d.ts.map +1 -1
  257. package/dist/errors/APIError.d.ts.map +1 -1
  258. package/dist/errors/AuthenticationError.d.ts.map +1 -1
  259. package/dist/errors/DuplicateCollection.d.ts.map +1 -1
  260. package/dist/errors/DuplicateFieldName.d.ts.map +1 -1
  261. package/dist/errors/DuplicateGlobal.d.ts.map +1 -1
  262. package/dist/errors/ErrorDeletingFile.d.ts.map +1 -1
  263. package/dist/errors/FileRetrievalError.d.ts.map +1 -1
  264. package/dist/errors/FileUploadError.d.ts.map +1 -1
  265. package/dist/errors/Forbidden.d.ts.map +1 -1
  266. package/dist/errors/InvalidConfiguration.d.ts.map +1 -1
  267. package/dist/errors/InvalidFieldJoin.d.ts.map +1 -1
  268. package/dist/errors/InvalidFieldName.d.ts.map +1 -1
  269. package/dist/errors/InvalidFieldRelationship.d.ts.map +1 -1
  270. package/dist/errors/InvalidSchema.d.ts.map +1 -1
  271. package/dist/errors/Locked.d.ts.map +1 -1
  272. package/dist/errors/LockedAuth.d.ts.map +1 -1
  273. package/dist/errors/MissingCollectionLabel.d.ts.map +1 -1
  274. package/dist/errors/MissingEditorProp.d.ts.map +1 -1
  275. package/dist/errors/MissingFieldInputOptions.d.ts.map +1 -1
  276. package/dist/errors/MissingFieldType.d.ts.map +1 -1
  277. package/dist/errors/MissingFile.d.ts.map +1 -1
  278. package/dist/errors/NotFound.d.ts.map +1 -1
  279. package/dist/errors/QueryError.d.ts.map +1 -1
  280. package/dist/errors/ReservedFieldName.d.ts.map +1 -1
  281. package/dist/errors/TimestampsRequired.d.ts.map +1 -1
  282. package/dist/errors/UnauthorizedError.d.ts.map +1 -1
  283. package/dist/errors/UnverifiedEmail.d.ts.map +1 -1
  284. package/dist/errors/ValidationError.d.ts +1 -0
  285. package/dist/errors/ValidationError.d.ts.map +1 -1
  286. package/dist/errors/ValidationError.js.map +1 -1
  287. package/dist/exports/internal.d.ts +2 -0
  288. package/dist/exports/internal.d.ts.map +1 -1
  289. package/dist/exports/internal.js +2 -0
  290. package/dist/exports/internal.js.map +1 -1
  291. package/dist/exports/migrations.d.ts +5 -13
  292. package/dist/exports/migrations.d.ts.map +1 -1
  293. package/dist/exports/migrations.js +5 -13
  294. package/dist/exports/migrations.js.map +1 -1
  295. package/dist/exports/shared.d.ts +4 -3
  296. package/dist/exports/shared.d.ts.map +1 -1
  297. package/dist/exports/shared.js +3 -2
  298. package/dist/exports/shared.js.map +1 -1
  299. package/dist/fields/baseFields/slug/countVersions.d.ts.map +1 -1
  300. package/dist/fields/baseFields/slug/countVersions.js +6 -8
  301. package/dist/fields/baseFields/slug/countVersions.js.map +1 -1
  302. package/dist/fields/baseFields/slug/generateSlug.d.ts +14 -7
  303. package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
  304. package/dist/fields/baseFields/slug/generateSlug.js +53 -73
  305. package/dist/fields/baseFields/slug/generateSlug.js.map +1 -1
  306. package/dist/fields/baseFields/slug/types.d.ts +14 -0
  307. package/dist/fields/baseFields/slug/types.d.ts.map +1 -0
  308. package/dist/fields/baseFields/slug/types.js +6 -0
  309. package/dist/fields/baseFields/slug/types.js.map +1 -0
  310. package/dist/fields/config/client.d.ts +4 -4
  311. package/dist/fields/config/client.d.ts.map +1 -1
  312. package/dist/fields/config/client.js +12 -4
  313. package/dist/fields/config/client.js.map +1 -1
  314. package/dist/fields/config/sanitize.d.ts.map +1 -1
  315. package/dist/fields/config/sanitize.js +39 -0
  316. package/dist/fields/config/sanitize.js.map +1 -1
  317. package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
  318. package/dist/fields/config/types.d.ts +48 -11
  319. package/dist/fields/config/types.d.ts.map +1 -1
  320. package/dist/fields/config/types.js.map +1 -1
  321. package/dist/fields/getDefaultValue.d.ts.map +1 -1
  322. package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
  323. package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
  324. package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
  325. package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
  326. package/dist/fields/hooks/afterRead/promise.js +11 -1
  327. package/dist/fields/hooks/afterRead/promise.js.map +1 -1
  328. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
  329. package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
  330. package/dist/fields/hooks/afterRead/virtualFieldPopulationPromise.d.ts.map +1 -1
  331. package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts.map +1 -1
  332. package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
  333. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  334. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  335. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  336. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  337. package/dist/fields/hooks/beforeDuplicate/index.d.ts.map +1 -1
  338. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  339. package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts.map +1 -1
  340. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  341. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  342. package/dist/fields/hooks/beforeValidate/promise.js +10 -1
  343. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  344. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  345. package/dist/fields/isFieldDisabled.d.ts.map +1 -1
  346. package/dist/fields/mergeBaseFields.d.ts.map +1 -1
  347. package/dist/fields/setDefaultBeforeDuplicate.d.ts.map +1 -1
  348. package/dist/fields/setDefaultBeforeDuplicate.js +1 -0
  349. package/dist/fields/setDefaultBeforeDuplicate.js.map +1 -1
  350. package/dist/fields/sortableFieldTypes.d.ts.map +1 -1
  351. package/dist/fields/sortableFieldTypes.js +1 -0
  352. package/dist/fields/sortableFieldTypes.js.map +1 -1
  353. package/dist/fields/validations.d.ts +4 -1
  354. package/dist/fields/validations.d.ts.map +1 -1
  355. package/dist/fields/validations.js +7 -0
  356. package/dist/fields/validations.js.map +1 -1
  357. package/dist/globals/config/client.d.ts +4 -4
  358. package/dist/globals/config/client.d.ts.map +1 -1
  359. package/dist/globals/config/sanitize.d.ts.map +1 -1
  360. package/dist/globals/config/sanitize.js +1 -6
  361. package/dist/globals/config/sanitize.js.map +1 -1
  362. package/dist/globals/endpoints/update.d.ts.map +1 -1
  363. package/dist/globals/endpoints/update.js +0 -2
  364. package/dist/globals/endpoints/update.js.map +1 -1
  365. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  366. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  367. package/dist/globals/operations/findOne.d.ts.map +1 -1
  368. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  369. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  370. package/dist/globals/operations/local/countVersions.d.ts +3 -3
  371. package/dist/globals/operations/local/countVersions.d.ts.map +1 -1
  372. package/dist/globals/operations/local/countVersions.js.map +1 -1
  373. package/dist/globals/operations/local/findOne.d.ts +3 -3
  374. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  375. package/dist/globals/operations/local/findOne.js.map +1 -1
  376. package/dist/globals/operations/local/findVersionByID.d.ts +3 -3
  377. package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
  378. package/dist/globals/operations/local/findVersionByID.js.map +1 -1
  379. package/dist/globals/operations/local/findVersions.d.ts +3 -3
  380. package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
  381. package/dist/globals/operations/local/findVersions.js.map +1 -1
  382. package/dist/globals/operations/local/restoreVersion.d.ts +3 -3
  383. package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
  384. package/dist/globals/operations/local/restoreVersion.js.map +1 -1
  385. package/dist/globals/operations/local/update.d.ts +7 -9
  386. package/dist/globals/operations/local/update.d.ts.map +1 -1
  387. package/dist/globals/operations/local/update.js +1 -2
  388. package/dist/globals/operations/local/update.js.map +1 -1
  389. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  390. package/dist/globals/operations/update.d.ts +0 -1
  391. package/dist/globals/operations/update.d.ts.map +1 -1
  392. package/dist/globals/operations/update.js +52 -58
  393. package/dist/globals/operations/update.js.map +1 -1
  394. package/dist/hierarchy/addHierarchyToCollection.d.ts.map +1 -1
  395. package/dist/hierarchy/buildParentField.d.ts.map +1 -1
  396. package/dist/hierarchy/constants.d.ts.map +1 -1
  397. package/dist/hierarchy/getInitialTreeData.d.ts.map +1 -1
  398. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -1
  399. package/dist/hierarchy/hooks/collectionAfterRead.d.ts.map +1 -1
  400. package/dist/hierarchy/hooks/collectionBeforeChange.d.ts.map +1 -1
  401. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -1
  402. package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts.map +1 -1
  403. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -1
  404. package/dist/hierarchy/injectHierarchyButton.d.ts.map +1 -1
  405. package/dist/hierarchy/resolveHierarchyCollections.d.ts.map +1 -1
  406. package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -1
  407. package/dist/index.bundled.d.ts +4318 -4189
  408. package/dist/index.d.ts +72 -26
  409. package/dist/index.d.ts.map +1 -1
  410. package/dist/index.js +4 -4
  411. package/dist/index.js.map +1 -1
  412. package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
  413. package/dist/kv/adapters/InMemoryKVAdapter.d.ts.map +1 -1
  414. package/dist/locked-documents/config.d.ts.map +1 -1
  415. package/dist/preferences/config.d.ts.map +1 -1
  416. package/dist/preferences/deleteUserPreferences.d.ts.map +1 -1
  417. package/dist/preferences/keys.d.ts +8 -4
  418. package/dist/preferences/keys.d.ts.map +1 -1
  419. package/dist/preferences/keys.js +4 -1
  420. package/dist/preferences/keys.js.map +1 -1
  421. package/dist/preferences/types.d.ts +15 -0
  422. package/dist/preferences/types.d.ts.map +1 -1
  423. package/dist/preferences/types.js +3 -1
  424. package/dist/preferences/types.js.map +1 -1
  425. package/dist/query-presets/access.d.ts.map +1 -1
  426. package/dist/query-presets/config.d.ts.map +1 -1
  427. package/dist/query-presets/config.js +73 -34
  428. package/dist/query-presets/config.js.map +1 -1
  429. package/dist/query-presets/constraints.d.ts.map +1 -1
  430. package/dist/query-presets/constraints.js +2 -1
  431. package/dist/query-presets/constraints.js.map +1 -1
  432. package/dist/query-presets/types.d.ts +1 -1
  433. package/dist/query-presets/types.d.ts.map +1 -1
  434. package/dist/queues/endpoints/run.d.ts.map +1 -1
  435. package/dist/queues/errors/index.d.ts.map +1 -1
  436. package/dist/queues/localAPI.d.ts +8 -8
  437. package/dist/queues/localAPI.d.ts.map +1 -1
  438. package/dist/queues/operations/handleSchedules/getQueuesWithSchedules.d.ts.map +1 -1
  439. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  440. package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
  441. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts.map +1 -1
  442. package/dist/queues/operations/runJobs/runJob/importHandlerPath.d.ts +1 -1
  443. package/dist/queues/operations/runJobs/runJob/importHandlerPath.d.ts.map +1 -1
  444. package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -1
  445. package/dist/queues/utilities/getCurrentDate.d.ts.map +1 -1
  446. package/dist/queues/utilities/getJobTaskStatus.d.ts.map +1 -1
  447. package/dist/translations/getLocalI18n.d.ts.map +1 -1
  448. package/dist/types/constants.d.ts +2 -2
  449. package/dist/types/constants.d.ts.map +1 -1
  450. package/dist/types/index.d.ts +9 -7
  451. package/dist/types/index.d.ts.map +1 -1
  452. package/dist/types/index.js.map +1 -1
  453. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  454. package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
  455. package/dist/uploads/cropImage.d.ts.map +1 -1
  456. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  457. package/dist/uploads/endpoints/uploadInstructions.d.ts +3 -0
  458. package/dist/uploads/endpoints/uploadInstructions.d.ts.map +1 -0
  459. package/dist/uploads/endpoints/uploadInstructions.js +31 -0
  460. package/dist/uploads/endpoints/uploadInstructions.js.map +1 -0
  461. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.d.ts.map +1 -1
  462. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
  463. package/dist/uploads/fetchAPI-multipart/processMultipart.js +3 -12
  464. package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
  465. package/dist/uploads/fetchAPI-multipart/processNested.d.ts.map +1 -1
  466. package/dist/uploads/fetchAPI-multipart/utilities.d.ts.map +1 -1
  467. package/dist/uploads/fileExists.d.ts.map +1 -1
  468. package/dist/uploads/generateFileData.d.ts.map +1 -1
  469. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  470. package/dist/uploads/getExternalFile.d.ts.map +1 -1
  471. package/dist/uploads/getFileByPath.d.ts +1 -1
  472. package/dist/uploads/getFileByPath.d.ts.map +1 -1
  473. package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
  474. package/dist/uploads/getSafeFilename.d.ts.map +1 -1
  475. package/dist/uploads/image-resizing/createImageSize.d.ts.map +1 -1
  476. package/dist/uploads/image-resizing/generateImageSizeFilename.d.ts.map +1 -1
  477. package/dist/uploads/image-resizing/getImageResizeAction.d.ts +1 -1
  478. package/dist/uploads/image-resizing/getImageResizeAction.d.ts.map +1 -1
  479. package/dist/uploads/image-resizing/parseFilename.d.ts.map +1 -1
  480. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts.map +1 -1
  481. package/dist/uploads/matchMimeType.d.ts +8 -0
  482. package/dist/uploads/matchMimeType.d.ts.map +1 -0
  483. package/dist/uploads/matchMimeType.js +19 -0
  484. package/dist/uploads/matchMimeType.js.map +1 -0
  485. package/dist/uploads/matchMimeType.spec.js +66 -0
  486. package/dist/uploads/matchMimeType.spec.js.map +1 -0
  487. package/dist/uploads/mimeTypeValidator.d.ts.map +1 -1
  488. package/dist/uploads/safeFetch.d.ts.map +1 -1
  489. package/dist/uploads/saveBufferToFile.d.ts.map +1 -1
  490. package/dist/uploads/tempFile.d.ts.map +1 -1
  491. package/dist/uploads/types.d.ts +66 -1
  492. package/dist/uploads/types.d.ts.map +1 -1
  493. package/dist/uploads/types.js.map +1 -1
  494. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  495. package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
  496. package/dist/utilities/addDataAndFileToRequest.js +11 -4
  497. package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
  498. package/dist/utilities/addLocalesToRequest.d.ts.map +1 -1
  499. package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts.map +1 -1
  500. package/dist/utilities/appendDateTimezoneSelectFields.d.ts.map +1 -1
  501. package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
  502. package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
  503. package/dist/utilities/canAccessAdmin.d.ts.map +1 -1
  504. package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
  505. package/dist/utilities/configToJSONSchema.d.ts +13 -4
  506. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  507. package/dist/utilities/configToJSONSchema.js +139 -61
  508. package/dist/utilities/configToJSONSchema.js.map +1 -1
  509. package/dist/utilities/configToJSONSchema.spec.js +356 -0
  510. package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
  511. package/dist/utilities/createLocalReq.d.ts +2 -2
  512. package/dist/utilities/createLocalReq.d.ts.map +1 -1
  513. package/dist/utilities/createLocalReq.js.map +1 -1
  514. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  515. package/dist/utilities/createPayloadRequest.js +1 -0
  516. package/dist/utilities/createPayloadRequest.js.map +1 -1
  517. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  518. package/dist/utilities/deepCopyObject.js +8 -0
  519. package/dist/utilities/deepCopyObject.js.map +1 -1
  520. package/dist/utilities/dependencies/resolveFrom.d.ts.map +1 -1
  521. package/dist/utilities/escapeRegExp.d.ts.map +1 -1
  522. package/dist/utilities/extractID.d.ts.map +1 -1
  523. package/dist/utilities/flattenAllFields.d.ts.map +1 -1
  524. package/dist/utilities/formatAdminURL.d.ts.map +1 -1
  525. package/dist/utilities/formatErrors.d.ts.map +1 -1
  526. package/dist/utilities/formatLabels.d.ts.map +1 -1
  527. package/dist/utilities/getBestFitFromSizes.d.ts.map +1 -1
  528. package/dist/utilities/getBlockSelect.d.ts.map +1 -1
  529. package/dist/utilities/getDataByPath.d.ts.map +1 -1
  530. package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
  531. package/dist/utilities/getEntityPermissions/getEntityPermissions.js +2 -0
  532. package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
  533. package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts +7 -1
  534. package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts.map +1 -1
  535. package/dist/utilities/getEntityPermissions/populateFieldPermissions.js +19 -2
  536. package/dist/utilities/getEntityPermissions/populateFieldPermissions.js.map +1 -1
  537. package/dist/utilities/getFieldByPath.d.ts.map +1 -1
  538. package/dist/utilities/getFieldByPath.js.map +1 -1
  539. package/dist/utilities/getFieldPermissions.d.ts.map +1 -1
  540. package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
  541. package/dist/utilities/getRequestEntity.d.ts.map +1 -1
  542. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  543. package/dist/utilities/getRequestOrigin.d.ts +2 -2
  544. package/dist/utilities/getRequestOrigin.d.ts.map +1 -1
  545. package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
  546. package/dist/utilities/getSelectMode.d.ts.map +1 -1
  547. package/dist/utilities/getSiblingData.d.ts.map +1 -1
  548. package/dist/utilities/getTranslatedLabel.d.ts.map +1 -1
  549. package/dist/utilities/getVersionsConfig.d.ts +1 -1
  550. package/dist/utilities/getVersionsConfig.d.ts.map +1 -1
  551. package/dist/utilities/getVersionsConfig.js.map +1 -1
  552. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  553. package/dist/utilities/headersWithCors.d.ts.map +1 -1
  554. package/dist/utilities/isEntityHidden.d.ts +2 -2
  555. package/dist/utilities/isEntityHidden.d.ts.map +1 -1
  556. package/dist/utilities/isURLAllowed.d.ts.map +1 -1
  557. package/dist/utilities/isURLAllowed.js +9 -3
  558. package/dist/utilities/isURLAllowed.js.map +1 -1
  559. package/dist/utilities/isURLAllowed.spec.js +78 -0
  560. package/dist/utilities/isURLAllowed.spec.js.map +1 -0
  561. package/dist/utilities/isValidID.d.ts +1 -1
  562. package/dist/utilities/isValidID.d.ts.map +1 -1
  563. package/dist/utilities/logError.d.ts.map +1 -1
  564. package/dist/utilities/logger.d.ts +1 -1
  565. package/dist/utilities/logger.d.ts.map +1 -1
  566. package/dist/utilities/mergeHeaders.d.ts.map +1 -1
  567. package/dist/utilities/mergeListSearchAndWhere.d.ts.map +1 -1
  568. package/dist/utilities/mergeLocalizedData.d.ts +14 -4
  569. package/dist/utilities/mergeLocalizedData.d.ts.map +1 -1
  570. package/dist/utilities/mergeLocalizedData.js +49 -34
  571. package/dist/utilities/mergeLocalizedData.js.map +1 -1
  572. package/dist/utilities/mergeLocalizedData.spec.js +23 -23
  573. package/dist/utilities/mergeLocalizedData.spec.js.map +1 -1
  574. package/dist/utilities/miniChalk.d.ts.map +1 -1
  575. package/dist/utilities/optionsAreEqual.d.ts.map +1 -1
  576. package/dist/utilities/parseBooleanString.d.ts.map +1 -1
  577. package/dist/utilities/parseCookies.d.ts +1 -1
  578. package/dist/utilities/parseCookies.d.ts.map +1 -1
  579. package/dist/utilities/parseParams/index.d.ts +2 -5
  580. package/dist/utilities/parseParams/index.d.ts.map +1 -1
  581. package/dist/utilities/parseParams/index.js.map +1 -1
  582. package/dist/utilities/parseParams/index.spec.js +0 -9
  583. package/dist/utilities/parseParams/index.spec.js.map +1 -1
  584. package/dist/utilities/profiling.d.ts.map +1 -1
  585. package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -1
  586. package/dist/utilities/resolveSelect.d.ts.map +1 -1
  587. package/dist/utilities/routeError.d.ts.map +1 -1
  588. package/dist/utilities/sanitizeFallbackLocale.d.ts.map +1 -1
  589. package/dist/utilities/sanitizeInternalFields.d.ts.map +1 -1
  590. package/dist/utilities/sanitizeJoinParams.d.ts.map +1 -1
  591. package/dist/utilities/sanitizePopulateParam.d.ts.map +1 -1
  592. package/dist/utilities/sanitizeSelect.d.ts.map +1 -1
  593. package/dist/utilities/sanitizeSelectParam.d.ts.map +1 -1
  594. package/dist/utilities/sanitizeSortParams.d.ts.map +1 -1
  595. package/dist/utilities/setsAreEqual.d.ts.map +1 -1
  596. package/dist/utilities/slugify.d.ts.map +1 -1
  597. package/dist/utilities/stripUnselectedFields.d.ts.map +1 -1
  598. package/dist/utilities/telemetry/conf/envPaths.d.ts.map +1 -1
  599. package/dist/utilities/telemetry/conf/envPaths.js +40 -31
  600. package/dist/utilities/telemetry/conf/envPaths.js.map +1 -1
  601. package/dist/utilities/telemetry/conf/index.d.ts.map +1 -1
  602. package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
  603. package/dist/utilities/telemetry/events/adminInit.js +2 -3
  604. package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
  605. package/dist/utilities/telemetry/events/serverInit.d.ts.map +1 -1
  606. package/dist/utilities/telemetry/events/serverInit.js +2 -3
  607. package/dist/utilities/telemetry/events/serverInit.js.map +1 -1
  608. package/dist/utilities/telemetry/index.d.ts +15 -4
  609. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  610. package/dist/utilities/telemetry/index.js +6 -1
  611. package/dist/utilities/telemetry/index.js.map +1 -1
  612. package/dist/utilities/telemetry/index.spec.js +43 -0
  613. package/dist/utilities/telemetry/index.spec.js.map +1 -0
  614. package/dist/utilities/telemetry/oneWayHash.d.ts.map +1 -1
  615. package/dist/utilities/timestamp.d.ts.map +1 -1
  616. package/dist/utilities/toKebabCase.d.ts.map +1 -1
  617. package/dist/utilities/transformColumnPreferences.d.ts.map +1 -1
  618. package/dist/utilities/transformWhereQuery.d.ts.map +1 -1
  619. package/dist/utilities/traverseFields.d.ts.map +1 -1
  620. package/dist/utilities/traverseFields.js.map +1 -1
  621. package/dist/utilities/traverseForLocalizedFields.d.ts.map +1 -1
  622. package/dist/utilities/unflatten.d.ts.map +1 -1
  623. package/dist/utilities/validateMimeType.d.ts.map +1 -1
  624. package/dist/utilities/validateTimezones.d.ts.map +1 -1
  625. package/dist/utilities/validateWhereQuery.d.ts.map +1 -1
  626. package/dist/utilities/wordBoundariesRegex.d.ts.map +1 -1
  627. package/dist/utilities/wrapInternalEndpoints.d.ts.map +1 -1
  628. package/dist/versions/baseFields.d.ts +1 -2
  629. package/dist/versions/baseFields.d.ts.map +1 -1
  630. package/dist/versions/baseFields.js +0 -13
  631. package/dist/versions/baseFields.js.map +1 -1
  632. package/dist/versions/buildCollectionFields.d.ts.map +1 -1
  633. package/dist/versions/buildCollectionFields.js +0 -2
  634. package/dist/versions/buildCollectionFields.js.map +1 -1
  635. package/dist/versions/buildGlobalFields.d.ts.map +1 -1
  636. package/dist/versions/buildGlobalFields.js +0 -2
  637. package/dist/versions/buildGlobalFields.js.map +1 -1
  638. package/dist/versions/buildSingleLocalePublishData.d.ts +32 -0
  639. package/dist/versions/buildSingleLocalePublishData.d.ts.map +1 -0
  640. package/dist/versions/buildSingleLocalePublishData.js +37 -0
  641. package/dist/versions/buildSingleLocalePublishData.js.map +1 -0
  642. package/dist/versions/buildVersionCompoundIndexes.d.ts.map +1 -1
  643. package/dist/versions/defaults.d.ts.map +1 -1
  644. package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
  645. package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
  646. package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
  647. package/dist/versions/drafts/getQueryDraftsSelect.d.ts.map +1 -1
  648. package/dist/versions/drafts/getQueryDraftsSort.d.ts.map +1 -1
  649. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
  650. package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
  651. package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
  652. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  653. package/dist/versions/migrations/localizeStatus/shared.d.ts.map +1 -1
  654. package/dist/versions/saveVersion.d.ts +0 -2
  655. package/dist/versions/saveVersion.d.ts.map +1 -1
  656. package/dist/versions/saveVersion.js +12 -17
  657. package/dist/versions/saveVersion.js.map +1 -1
  658. package/dist/versions/schedule/job.d.ts.map +1 -1
  659. package/dist/versions/schedule/job.js +6 -10
  660. package/dist/versions/schedule/job.js.map +1 -1
  661. package/dist/versions/types.d.ts +2 -15
  662. package/dist/versions/types.d.ts.map +1 -1
  663. package/dist/versions/types.js.map +1 -1
  664. package/package.json +3 -3
  665. package/dist/database/migrations/templates/localizeStatus.d.ts +0 -10
  666. package/dist/database/migrations/templates/localizeStatus.d.ts.map +0 -1
  667. package/dist/database/migrations/templates/localizeStatus.js +0 -54
  668. package/dist/database/migrations/templates/localizeStatus.js.map +0 -1
  669. package/dist/fields/baseFields/slug/index.d.ts +0 -89
  670. package/dist/fields/baseFields/slug/index.d.ts.map +0 -1
  671. package/dist/fields/baseFields/slug/index.js +0 -81
  672. package/dist/fields/baseFields/slug/index.js.map +0 -1
  673. package/dist/utilities/isRSCEnabled.d.ts +0 -12
  674. package/dist/utilities/isRSCEnabled.d.ts.map +0 -1
  675. package/dist/utilities/isRSCEnabled.js +0 -14
  676. package/dist/utilities/isRSCEnabled.js.map +0 -1
  677. package/dist/versions/migrations/localizeStatus/index.d.ts +0 -12
  678. package/dist/versions/migrations/localizeStatus/index.d.ts.map +0 -1
  679. package/dist/versions/migrations/localizeStatus/index.js +0 -33
  680. package/dist/versions/migrations/localizeStatus/index.js.map +0 -1
  681. package/dist/versions/migrations/localizeStatus/mongo/down.d.ts +0 -9
  682. package/dist/versions/migrations/localizeStatus/mongo/down.d.ts.map +0 -1
  683. package/dist/versions/migrations/localizeStatus/mongo/down.js +0 -112
  684. package/dist/versions/migrations/localizeStatus/mongo/down.js.map +0 -1
  685. package/dist/versions/migrations/localizeStatus/mongo/index.d.ts +0 -8
  686. package/dist/versions/migrations/localizeStatus/mongo/index.d.ts.map +0 -1
  687. package/dist/versions/migrations/localizeStatus/mongo/index.js +0 -8
  688. package/dist/versions/migrations/localizeStatus/mongo/index.js.map +0 -1
  689. package/dist/versions/migrations/localizeStatus/mongo/up.d.ts +0 -9
  690. package/dist/versions/migrations/localizeStatus/mongo/up.d.ts.map +0 -1
  691. package/dist/versions/migrations/localizeStatus/mongo/up.js +0 -220
  692. package/dist/versions/migrations/localizeStatus/mongo/up.js.map +0 -1
  693. package/dist/versions/migrations/localizeStatus/sql/down.d.ts +0 -11
  694. package/dist/versions/migrations/localizeStatus/sql/down.d.ts.map +0 -1
  695. package/dist/versions/migrations/localizeStatus/sql/down.js +0 -213
  696. package/dist/versions/migrations/localizeStatus/sql/down.js.map +0 -1
  697. package/dist/versions/migrations/localizeStatus/sql/index.d.ts +0 -8
  698. package/dist/versions/migrations/localizeStatus/sql/index.d.ts.map +0 -1
  699. package/dist/versions/migrations/localizeStatus/sql/index.js +0 -8
  700. package/dist/versions/migrations/localizeStatus/sql/index.js.map +0 -1
  701. package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts +0 -13
  702. package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts.map +0 -1
  703. package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js +0 -51
  704. package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js.map +0 -1
  705. package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts +0 -13
  706. package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts.map +0 -1
  707. package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js +0 -54
  708. package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js.map +0 -1
  709. package/dist/versions/migrations/localizeStatus/sql/up.d.ts +0 -11
  710. package/dist/versions/migrations/localizeStatus/sql/up.d.ts.map +0 -1
  711. package/dist/versions/migrations/localizeStatus/sql/up.js +0 -277
  712. package/dist/versions/migrations/localizeStatus/sql/up.js.map +0 -1
  713. package/dist/versions/saveSnapshot.d.ts +0 -18
  714. package/dist/versions/saveSnapshot.d.ts.map +0 -1
  715. package/dist/versions/saveSnapshot.js +0 -38
  716. package/dist/versions/saveSnapshot.js.map +0 -1
@@ -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,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EACV,KAAK,EACL,WAAW,E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AAe,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,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,6BAA6B,EAC7B,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GACzB,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,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,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 { TypeWithID } from '../collections/config/types.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 {\n NavGroupPreferences,\n NavPreferences,\n SidebarTabClientProps,\n SidebarTabServerProps,\n SidebarTabServerPropsOnly,\n} 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'\nexport type { CustomStatus } from './elements/Status.js'\n\nexport type { Column } from './elements/Table.js'\n\nexport type {\n UnpublishButtonClientProps,\n UnpublishButtonServerProps,\n UnpublishButtonServerPropsOnly,\n} from './elements/UnpublishButton.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 BeforeDocumentMeta?: React.ReactNode\n Description?: React.ReactNode\n EditMenuItems?: React.ReactNode\n LivePreview?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Status?: React.ReactNode\n UnpublishButton?: React.ReactNode\n Upload?: React.ReactNode\n UploadControls?: React.ReactNode\n}\n\nexport type {\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n InitReqResult,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n ServerFunctionMode,\n SlugifyServerFunctionArgs,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport { type WidgetServerProps } from './views/dashboard.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 RenderDocumentVersionsProperties,\n} from './views/document.js'\n\nexport type { RelatedDocumentsGrouped } from './views/hierarchyList.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 HierarchyViewData,\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 doc?: TypeWithID\n drawerSlug?: string\n entitySlug: string\n id?: number | string\n operation: 'create' | 'update'\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAmgBA,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 { TypeWithID } from '../collections/config/types.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 {\n NavGroupPreferences,\n NavPreferences,\n SidebarTabClientProps,\n SidebarTabServerProps,\n SidebarTabServerPropsOnly,\n} 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'\nexport type { CustomStatus } from './elements/Status.js'\n\nexport type { Column } from './elements/Table.js'\n\nexport type {\n UnpublishButtonClientProps,\n UnpublishButtonServerProps,\n UnpublishButtonServerPropsOnly,\n} from './elements/UnpublishButton.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 BeforeDocumentMeta?: React.ReactNode\n Description?: React.ReactNode\n EditMenuItems?: React.ReactNode\n LivePreview?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Status?: React.ReactNode\n UnpublishButton?: React.ReactNode\n Upload?: React.ReactNode\n UploadControls?: React.ReactNode\n UploadFilePreview?: React.ReactNode\n}\n\nexport type {\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n InitReqResult,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n ServerFunctionMode,\n SlugifyServerFunctionArgs,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport { type WidgetServerProps } from './views/dashboard.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 RenderDocumentVersionsProperties,\n} from './views/document.js'\n\nexport type { RelatedDocumentsGrouped } from './views/hierarchyList.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 HierarchyViewData,\n ListViewClientProps,\n ListViewServerProps,\n ListViewServerPropsOnly,\n ListViewSlots,\n ListViewSlotSharedClientProps,\n NoResultsClientProps,\n NoResultsServerProps,\n NoResultsServerPropsOnly,\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 doc?: TypeWithID\n drawerSlug?: string\n entitySlug: string\n id?: number | string\n operation: 'create' | 'update'\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAmgBA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
@@ -19,10 +19,6 @@ export type RenderDocumentVersionsProperties = {
19
19
  * rather than perform a full navigation.
20
20
  */
21
21
  CreatedAtCellOverride?: (props: any) => any;
22
- /**
23
- * @default false
24
- */
25
- disableGutter?: boolean;
26
22
  /**
27
23
  * @deprecated Pass `CreatedAtCellOverride` directly instead.
28
24
  * @default false
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/admin/views/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3D,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B,CAAA;AACD;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;;OAIG;IAEH,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAA;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;OAGG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAA;CACx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AC,EAAE,CAAC,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,OAAO,CAAA;IACnE,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE;QAAE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC,GAAG,MAAM,CAAA;IAC5E,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;IAClD,IAAI,EAAE,MAAM,CAAA;CACb,CAAC,CAAA;AAIF,MAAM,MAAM,iCAAiC,GAAG,EAAE,CAAA;AAClD,MAAM,MAAM,qCAAqC,GAAG,EAAE,GAAG,WAAW,CAAA;AACpE,MAAM,MAAM,iCAAiC,GAAG,iCAAiC,GAC/E,qCAAqC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/views/document.ts"],"sourcesContent":["import type { SanitizedPermissions } from '../../auth/types.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { PayloadComponent, SanitizedConfig, ServerProps } from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { Data, DocumentSlots, FormState } from '../types.js'\nimport type { InitPageResult, ViewTypes } from './index.js'\n\nexport type EditViewProps = {\n readonly collectionSlug?: string\n readonly globalSlug?: string\n}\n/**\n * Properties specific to the versions view\n */\nexport type RenderDocumentVersionsProperties = {\n /**\n * Override the CreatedAt cell component rendered in the versions table.\n * Useful when embedding the versions list inside a drawer that should update URL params\n * rather than perform a full navigation.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n CreatedAtCellOverride?: (props: any) => any\n /**\n * @default false\n */\n disableGutter?: boolean\n /**\n * @deprecated Pass `CreatedAtCellOverride` directly instead.\n * @default false\n */\n useVersionDrawerCreatedAtCell?: boolean\n}\n\nexport type DocumentViewServerPropsOnly = {\n doc: Data\n hasPublishedDoc: boolean\n initPageResult: InitPageResult\n routeSegments: string[]\n versions?: RenderDocumentVersionsProperties\n} & ServerProps\n\nexport type DocumentViewServerProps = DocumentViewClientProps & DocumentViewServerPropsOnly\n\nexport type DocumentViewClientProps = {\n documentSubViewType: DocumentSubViewTypes\n formState: FormState\n viewType: ViewTypes\n} & DocumentSlots\n\n/**\n * @todo: This should be renamed to `DocumentSubViewType` (singular)\n */\nexport type DocumentSubViewTypes = 'api' | 'default' | 'version' | 'versions'\n\nexport type DocumentTabServerPropsOnly = {\n readonly apiURL?: string\n readonly collectionConfig?: SanitizedCollectionConfig\n readonly globalConfig?: SanitizedGlobalConfig\n readonly permissions: SanitizedPermissions\n readonly req: PayloadRequest\n} & ServerProps\n\nexport type DocumentTabClientProps = {\n path: string\n}\n\nexport type DocumentTabServerProps = DocumentTabClientProps & DocumentTabServerPropsOnly\n\nexport type DocumentTabCondition = (args: {\n collectionConfig: SanitizedCollectionConfig\n /**\n * @deprecated: Use `req.payload.config` instead. This will be removed in v4.\n */\n config: SanitizedConfig\n globalConfig: SanitizedGlobalConfig\n permissions: SanitizedPermissions\n req: PayloadRequest\n}) => boolean\n\n// Everything is optional because we merge in the defaults\n// i.e. the config may override the `Default` view with a `label` but not an `href`\nexport type DocumentTabConfig = {\n readonly Component?: DocumentTabComponent\n readonly condition?: DocumentTabCondition\n readonly href?:\n | ((args: {\n apiURL: string\n collection: SanitizedCollectionConfig\n global: SanitizedGlobalConfig\n id?: string\n routes: SanitizedConfig['routes']\n }) => string)\n | string\n readonly isActive?: ((args: { href: string }) => boolean) | boolean\n readonly label?: ((args: { t: (key: string) => string }) => string) | string\n readonly newTab?: boolean\n /**\n * Sets the order to render the tab in the admin panel\n * Recommended to use increments of 100 (e.g. 0, 100, 200)\n */\n readonly order?: number\n readonly Pill?: PayloadComponent\n}\n\n/**\n * @todo: Remove this type as it's only used internally for the config (above)\n */\nexport type DocumentTabComponent = PayloadComponent<{\n path: string\n}>\n\n// BeforeDocumentControls\n\nexport type BeforeDocumentControlsClientProps = {}\nexport type BeforeDocumentControlsServerPropsOnly = {} & ServerProps\nexport type BeforeDocumentControlsServerProps = BeforeDocumentControlsClientProps &\n BeforeDocumentControlsServerPropsOnly\n"],"names":[],"mappings":"AAoHA,WACuC"}
1
+ {"version":3,"sources":["../../../src/admin/views/document.ts"],"sourcesContent":["import type { SanitizedPermissions } from '../../auth/types.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { PayloadComponent, SanitizedConfig, ServerProps } from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { Data, DocumentSlots, FormState } from '../types.js'\nimport type { InitPageResult, ViewTypes } from './index.js'\n\nexport type EditViewProps = {\n readonly collectionSlug?: string\n readonly globalSlug?: string\n}\n/**\n * Properties specific to the versions view\n */\nexport type RenderDocumentVersionsProperties = {\n /**\n * Override the CreatedAt cell component rendered in the versions table.\n * Useful when embedding the versions list inside a drawer that should update URL params\n * rather than perform a full navigation.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n CreatedAtCellOverride?: (props: any) => any\n /**\n * @deprecated Pass `CreatedAtCellOverride` directly instead.\n * @default false\n */\n useVersionDrawerCreatedAtCell?: boolean\n}\n\nexport type DocumentViewServerPropsOnly = {\n doc: Data\n hasPublishedDoc: boolean\n initPageResult: InitPageResult\n routeSegments: string[]\n versions?: RenderDocumentVersionsProperties\n} & ServerProps\n\nexport type DocumentViewServerProps = DocumentViewClientProps & DocumentViewServerPropsOnly\n\nexport type DocumentViewClientProps = {\n documentSubViewType: DocumentSubViewTypes\n formState: FormState\n viewType: ViewTypes\n} & DocumentSlots\n\n/**\n * @todo: This should be renamed to `DocumentSubViewType` (singular)\n */\nexport type DocumentSubViewTypes = 'api' | 'default' | 'version' | 'versions'\n\nexport type DocumentTabServerPropsOnly = {\n readonly apiURL?: string\n readonly collectionConfig?: SanitizedCollectionConfig\n readonly globalConfig?: SanitizedGlobalConfig\n readonly permissions: SanitizedPermissions\n readonly req: PayloadRequest\n} & ServerProps\n\nexport type DocumentTabClientProps = {\n path: string\n}\n\nexport type DocumentTabServerProps = DocumentTabClientProps & DocumentTabServerPropsOnly\n\nexport type DocumentTabCondition = (args: {\n collectionConfig: SanitizedCollectionConfig\n /**\n * @deprecated: Use `req.payload.config` instead. This will be removed in v4.\n */\n config: SanitizedConfig\n globalConfig: SanitizedGlobalConfig\n permissions: SanitizedPermissions\n req: PayloadRequest\n}) => boolean\n\n// Everything is optional because we merge in the defaults\n// i.e. the config may override the `Default` view with a `label` but not an `href`\nexport type DocumentTabConfig = {\n readonly Component?: DocumentTabComponent\n readonly condition?: DocumentTabCondition\n readonly href?:\n | ((args: {\n apiURL: string\n collection: SanitizedCollectionConfig\n global: SanitizedGlobalConfig\n id?: string\n routes: SanitizedConfig['routes']\n }) => string)\n | string\n readonly isActive?: ((args: { href: string }) => boolean) | boolean\n readonly label?: ((args: { t: (key: string) => string }) => string) | string\n readonly newTab?: boolean\n /**\n * Sets the order to render the tab in the admin panel\n * Recommended to use increments of 100 (e.g. 0, 100, 200)\n */\n readonly order?: number\n readonly Pill?: PayloadComponent\n}\n\n/**\n * @todo: Remove this type as it's only used internally for the config (above)\n */\nexport type DocumentTabComponent = PayloadComponent<{\n path: string\n}>\n\n// BeforeDocumentControls\n\nexport type BeforeDocumentControlsClientProps = {}\nexport type BeforeDocumentControlsServerPropsOnly = {} & ServerProps\nexport type BeforeDocumentControlsServerProps = BeforeDocumentControlsClientProps &\n BeforeDocumentControlsServerPropsOnly\n"],"names":[],"mappings":"AAgHA,WACuC"}
@@ -45,6 +45,7 @@ export type ListViewSlots = {
45
45
  BeforeListTable?: React.ReactNode;
46
46
  Description?: React.ReactNode;
47
47
  listMenuItems?: React.ReactNode[];
48
+ NoResults?: React.ReactNode;
48
49
  Table: React.ReactNode | React.ReactNode[];
49
50
  };
50
51
  /**
@@ -106,6 +107,7 @@ export type ListViewSlotSharedClientProps = {
106
107
  hasDeletePermission?: boolean;
107
108
  hasTrashPermission?: boolean;
108
109
  newDocumentURL: string;
110
+ viewType: ViewTypes;
109
111
  };
110
112
  export type BeforeListClientProps = ListViewSlotSharedClientProps;
111
113
  export type BeforeListServerPropsOnly = {} & ListViewServerPropsOnly;
@@ -113,6 +115,9 @@ export type BeforeListServerProps = BeforeListClientProps & BeforeListServerProp
113
115
  export type BeforeListTableClientProps = ListViewSlotSharedClientProps;
114
116
  export type BeforeListTableServerPropsOnly = {} & ListViewServerPropsOnly;
115
117
  export type BeforeListTableServerProps = BeforeListTableClientProps & BeforeListTableServerPropsOnly;
118
+ export type NoResultsClientProps = ListViewSlotSharedClientProps;
119
+ export type NoResultsServerPropsOnly = {} & ListViewServerPropsOnly;
120
+ export type NoResultsServerProps = NoResultsClientProps & NoResultsServerPropsOnly;
116
121
  export type AfterListClientProps = ListViewSlotSharedClientProps;
117
122
  export type AfterListServerPropsOnly = {} & ListViewServerPropsOnly;
118
123
  export type AfterListServerProps = AfterListClientProps & AfterListServerPropsOnly;
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/admin/views/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EACzB,UAAU,EACX,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,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B,CAAA;AAGD,MAAM,MAAM,qBAAqB,GAAG,6BAA6B,CAAA;AACjE,MAAM,MAAM,yBAAyB,GAAG,EAAE,GAAG,uBAAuB,CAAA;AACpE,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG,yBAAyB,CAAA;AAGrF,MAAM,MAAM,0BAA0B,GAAG,6BAA6B,CAAA;AACtE,MAAM,MAAM,8BAA8B,GAAG,EAAE,GAAG,uBAAuB,CAAA;AACzE,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GAAG,8BAA8B,CAAA;AAGpG,MAAM,MAAM,oBAAoB,GAAG,6BAA6B,CAAA;AAChE,MAAM,MAAM,wBAAwB,GAAG,EAAE,GAAG,uBAAuB,CAAA;AACnE,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG,wBAAwB,CAAA;AAGlF,MAAM,MAAM,oBAAoB,GAAG,6BAA6B,CAAA;AAChE,MAAM,MAAM,wBAAwB,GAAG,EAAE,GAAG,uBAAuB,CAAA;AACnE,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG,wBAAwB,CAAA;AAGlF,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,CAAA;AACrE,MAAM,MAAM,6BAA6B,GAAG,EAAE,GAAG,uBAAuB,CAAA;AACxE,MAAM,MAAM,yBAAyB,GAAG,yBAAyB,GAAG,6BAA6B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/views/list.ts"],"sourcesContent":["import type { SanitizedCollectionPermission } from '../../auth/types.js'\nimport type {\n CollectionAdminOptions,\n SanitizedCollectionConfig,\n TypeWithID,\n} from '../../collections/config/types.js'\nimport type { ServerProps } from '../../config/types.js'\nimport type { PaginatedDocs } from '../../database/types.js'\nimport type { CollectionPreferences } from '../../preferences/types.js'\nimport type { QueryPreset } from '../../query-presets/types.js'\nimport type { ResolvedFilterOptions, Where } from '../../types/index.js'\nimport type { Column } from '../elements/Table.js'\nimport type { Data, ViewTypes } from '../types.js'\nimport type { RelatedDocumentsGrouped } from './hierarchyList.js'\n\nexport type HierarchyViewData = {\n /**\n * Collections allowed for creation based on parent's collectionSpecific field.\n * Undefined means all related collections are allowed.\n * Always includes the hierarchy collection itself.\n */\n allowedCollections?: Array<{ label: string; slug: string }>\n /** Base filter applied to hierarchy collection queries (e.g., tenant filter) */\n baseFilter?: Where\n /** Breadcrumb trail to the current parent */\n breadcrumbs: Array<{ id: number | string; title: string }>\n /** Children of the current parent (same collection) */\n childrenData: PaginatedDocs\n /** The current parent document data (for display and collectionSpecific field access) */\n parent: null | (Record<string, unknown> & TypeWithID)\n /** The parent field name for building queries */\n parentFieldName: string\n /** The parent ID being viewed */\n parentId: null | number | string\n /** Base filters for related collections (keyed by collection slug) */\n relatedBaseFilters?: Record<string, Where>\n /** Related documents grouped by collection */\n relatedDocumentsByCollection: RelatedDocumentsGrouped\n}\n\nexport type ListViewSlots = {\n AfterList?: React.ReactNode\n AfterListTable?: React.ReactNode\n BeforeList?: React.ReactNode\n BeforeListTable?: React.ReactNode\n Description?: React.ReactNode\n listMenuItems?: React.ReactNode[]\n Table: React.ReactNode | React.ReactNode[]\n}\n\n/**\n * The `ListViewServerPropsOnly` approach is needed to ensure type strictness when injecting component props\n * There is no way to do something like `Omit<ListViewServerProps, keyof ListViewClientProps>`\n * This is because `ListViewClientProps` is a union which is impossible to exclude from\n * Exporting explicitly defined `ListViewServerPropsOnly`, etc. allows for the strictest typing\n */\nexport type ListViewServerPropsOnly = {\n collectionConfig: SanitizedCollectionConfig\n data: Data\n limit: number\n listPreferences: CollectionPreferences\n listSearchableFields: CollectionAdminOptions['listSearchableFields']\n} & ServerProps\n\nexport type ListViewServerProps = ListViewClientProps & ListViewServerPropsOnly\n\nexport type ListViewClientProps = {\n baseFilter?: Where\n beforeActions?: React.ReactNode[]\n collectionSlug: SanitizedCollectionConfig['slug']\n columnState: Column[]\n disableBulkDelete?: boolean\n disableBulkEdit?: boolean\n disableQueryPresets?: boolean\n enableRowSelections?: boolean\n hasCreatePermission: boolean\n hasDeletePermission?: boolean\n hasTrashPermission?: boolean\n /**\n * Hierarchy view data - present when viewing a hierarchy collection with a parent selected\n */\n hierarchyData?: HierarchyViewData\n /**\n * Resolved full-size icon component for hierarchy collections (used in drawer subheader)\n */\n HierarchyIcon?: React.ReactNode\n /**\n * Resolved small icon component for hierarchy collections (used in table rows)\n */\n HierarchySmallIcon?: React.ReactNode\n /**\n * @deprecated\n */\n listPreferences?: CollectionPreferences\n newDocumentURL: string\n /**\n * @deprecated\n */\n preferenceKey?: string\n queryPreset?: QueryPreset\n queryPresetPermissions?: SanitizedCollectionPermission\n renderedFilters?: Map<string, React.ReactNode>\n resolvedFilterOptions?: Map<string, ResolvedFilterOptions>\n viewType: ViewTypes\n} & ListViewSlots\n\nexport type ListViewSlotSharedClientProps = {\n collectionSlug: SanitizedCollectionConfig['slug']\n hasCreatePermission: boolean\n hasDeletePermission?: boolean\n hasTrashPermission?: boolean\n newDocumentURL: string\n}\n\n// BeforeList\nexport type BeforeListClientProps = ListViewSlotSharedClientProps\nexport type BeforeListServerPropsOnly = {} & ListViewServerPropsOnly\nexport type BeforeListServerProps = BeforeListClientProps & BeforeListServerPropsOnly\n\n// BeforeListTable\nexport type BeforeListTableClientProps = ListViewSlotSharedClientProps\nexport type BeforeListTableServerPropsOnly = {} & ListViewServerPropsOnly\nexport type BeforeListTableServerProps = BeforeListTableClientProps & BeforeListTableServerPropsOnly\n\n// AfterList\nexport type AfterListClientProps = ListViewSlotSharedClientProps\nexport type AfterListServerPropsOnly = {} & ListViewServerPropsOnly\nexport type AfterListServerProps = AfterListClientProps & AfterListServerPropsOnly\n\n// AfterListTable\nexport type AfterListTableClientProps = ListViewSlotSharedClientProps\nexport type AfterListTableServerPropsOnly = {} & ListViewServerPropsOnly\nexport type AfterListTableServerProps = AfterListTableClientProps & AfterListTableServerPropsOnly\n"],"names":[],"mappings":"AAoIA,WAAiG"}
1
+ {"version":3,"sources":["../../../src/admin/views/list.ts"],"sourcesContent":["import type { SanitizedCollectionPermission } from '../../auth/types.js'\nimport type {\n CollectionAdminOptions,\n SanitizedCollectionConfig,\n TypeWithID,\n} from '../../collections/config/types.js'\nimport type { ServerProps } from '../../config/types.js'\nimport type { PaginatedDocs } from '../../database/types.js'\nimport type { CollectionPreferences } from '../../preferences/types.js'\nimport type { QueryPreset } from '../../query-presets/types.js'\nimport type { ResolvedFilterOptions, Where } from '../../types/index.js'\nimport type { Column } from '../elements/Table.js'\nimport type { Data, ViewTypes } from '../types.js'\nimport type { RelatedDocumentsGrouped } from './hierarchyList.js'\n\nexport type HierarchyViewData = {\n /**\n * Collections allowed for creation based on parent's collectionSpecific field.\n * Undefined means all related collections are allowed.\n * Always includes the hierarchy collection itself.\n */\n allowedCollections?: Array<{ label: string; slug: string }>\n /** Base filter applied to hierarchy collection queries (e.g., tenant filter) */\n baseFilter?: Where\n /** Breadcrumb trail to the current parent */\n breadcrumbs: Array<{ id: number | string; title: string }>\n /** Children of the current parent (same collection) */\n childrenData: PaginatedDocs\n /** The current parent document data (for display and collectionSpecific field access) */\n parent: null | (Record<string, unknown> & TypeWithID)\n /** The parent field name for building queries */\n parentFieldName: string\n /** The parent ID being viewed */\n parentId: null | number | string\n /** Base filters for related collections (keyed by collection slug) */\n relatedBaseFilters?: Record<string, Where>\n /** Related documents grouped by collection */\n relatedDocumentsByCollection: RelatedDocumentsGrouped\n}\n\nexport type ListViewSlots = {\n AfterList?: React.ReactNode\n AfterListTable?: React.ReactNode\n BeforeList?: React.ReactNode\n BeforeListTable?: React.ReactNode\n Description?: React.ReactNode\n listMenuItems?: React.ReactNode[]\n NoResults?: React.ReactNode\n Table: React.ReactNode | React.ReactNode[]\n}\n\n/**\n * The `ListViewServerPropsOnly` approach is needed to ensure type strictness when injecting component props\n * There is no way to do something like `Omit<ListViewServerProps, keyof ListViewClientProps>`\n * This is because `ListViewClientProps` is a union which is impossible to exclude from\n * Exporting explicitly defined `ListViewServerPropsOnly`, etc. allows for the strictest typing\n */\nexport type ListViewServerPropsOnly = {\n collectionConfig: SanitizedCollectionConfig\n data: Data\n limit: number\n listPreferences: CollectionPreferences\n listSearchableFields: CollectionAdminOptions['listSearchableFields']\n} & ServerProps\n\nexport type ListViewServerProps = ListViewClientProps & ListViewServerPropsOnly\n\nexport type ListViewClientProps = {\n baseFilter?: Where\n beforeActions?: React.ReactNode[]\n collectionSlug: SanitizedCollectionConfig['slug']\n columnState: Column[]\n disableBulkDelete?: boolean\n disableBulkEdit?: boolean\n disableQueryPresets?: boolean\n enableRowSelections?: boolean\n hasCreatePermission: boolean\n hasDeletePermission?: boolean\n hasTrashPermission?: boolean\n /**\n * Hierarchy view data - present when viewing a hierarchy collection with a parent selected\n */\n hierarchyData?: HierarchyViewData\n /**\n * Resolved full-size icon component for hierarchy collections (used in drawer subheader)\n */\n HierarchyIcon?: React.ReactNode\n /**\n * Resolved small icon component for hierarchy collections (used in table rows)\n */\n HierarchySmallIcon?: React.ReactNode\n /**\n * @deprecated\n */\n listPreferences?: CollectionPreferences\n newDocumentURL: string\n /**\n * @deprecated\n */\n preferenceKey?: string\n queryPreset?: QueryPreset\n queryPresetPermissions?: SanitizedCollectionPermission\n renderedFilters?: Map<string, React.ReactNode>\n resolvedFilterOptions?: Map<string, ResolvedFilterOptions>\n viewType: ViewTypes\n} & ListViewSlots\n\nexport type ListViewSlotSharedClientProps = {\n collectionSlug: SanitizedCollectionConfig['slug']\n hasCreatePermission: boolean\n hasDeletePermission?: boolean\n hasTrashPermission?: boolean\n newDocumentURL: string\n viewType: ViewTypes\n}\n\n// BeforeList\nexport type BeforeListClientProps = ListViewSlotSharedClientProps\nexport type BeforeListServerPropsOnly = {} & ListViewServerPropsOnly\nexport type BeforeListServerProps = BeforeListClientProps & BeforeListServerPropsOnly\n\n// BeforeListTable\nexport type BeforeListTableClientProps = ListViewSlotSharedClientProps\nexport type BeforeListTableServerPropsOnly = {} & ListViewServerPropsOnly\nexport type BeforeListTableServerProps = BeforeListTableClientProps & BeforeListTableServerPropsOnly\n\n// NoResults\nexport type NoResultsClientProps = ListViewSlotSharedClientProps\nexport type NoResultsServerPropsOnly = {} & ListViewServerPropsOnly\nexport type NoResultsServerProps = NoResultsClientProps & NoResultsServerPropsOnly\n\n// AfterList\nexport type AfterListClientProps = ListViewSlotSharedClientProps\nexport type AfterListServerPropsOnly = {} & ListViewServerPropsOnly\nexport type AfterListServerProps = AfterListClientProps & AfterListServerPropsOnly\n\n// AfterListTable\nexport type AfterListTableClientProps = ListViewSlotSharedClientProps\nexport type AfterListTableServerPropsOnly = {} & ListViewServerPropsOnly\nexport type AfterListTableServerProps = AfterListTableClientProps & AfterListTableServerPropsOnly\n"],"names":[],"mappings":"AA2IA,WAAiG"}
@@ -1,3 +1,11 @@
1
- import type { Field } from '../../fields/config/types.js';
2
- export declare const apiKeyFields: Field[];
1
+ import type { CheckboxField, Field, TextField } from '../../fields/config/types.js';
2
+ type APIKeyCheckboxFieldOverride = Omit<Partial<CheckboxField>, 'name' | 'type'>;
3
+ type APIKeyTextFieldOverride = Omit<Partial<TextField>, 'hasMany' | 'maxRows' | 'minRows' | 'name' | 'type' | 'validate'>;
4
+ export declare const createAPIKeyFields: ({ apiKeyField, apiKeyIndexField, enableAPIKeyField, includeEnableAPIKey, }?: {
5
+ apiKeyField?: APIKeyTextFieldOverride;
6
+ apiKeyIndexField?: APIKeyTextFieldOverride;
7
+ enableAPIKeyField?: APIKeyCheckboxFieldOverride;
8
+ includeEnableAPIKey?: boolean;
9
+ }) => Field[];
10
+ export {};
3
11
  //# sourceMappingURL=apiKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,8BAA8B,CAAA;AAOpE,eAAO,MAAM,YAAY,EAoDpB,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAa,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAO9F,KAAK,2BAA2B,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;AAChF,KAAK,uBAAuB,GAAG,IAAI,CACjC,OAAO,CAAC,SAAS,CAAC,EAClB,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CACjE,CAAA;AAED,eAAO,MAAM,kBAAkB,gFAK5B;IACD,WAAW,CAAC,EAAE,uBAAuB,CAAA;IACrC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IAC1C,iBAAiB,CAAC,EAAE,2BAA2B,CAAA;IAC/C,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAQ,KAAK,EAwEb,CAAA"}
@@ -1,24 +1,31 @@
1
1
  import crypto from 'crypto';
2
2
  const encryptKey = ({ req, value })=>value ? req.payload.encrypt(value) : null;
3
3
  const decryptKey = ({ req, value })=>value ? req.payload.decrypt(value) : undefined;
4
- export const apiKeyFields = [
5
- {
6
- name: 'enableAPIKey',
7
- type: 'checkbox',
8
- admin: {
9
- components: {
10
- Field: false
11
- }
12
- },
13
- label: ({ t })=>t('authentication:enableAPIKey')
14
- },
15
- {
4
+ export const createAPIKeyFields = ({ apiKeyField, apiKeyIndexField, enableAPIKeyField, includeEnableAPIKey = true } = {})=>{
5
+ const fields = [];
6
+ if (includeEnableAPIKey) {
7
+ fields.push({
8
+ name: 'enableAPIKey',
9
+ type: 'checkbox',
10
+ ...enableAPIKeyField,
11
+ admin: {
12
+ components: {
13
+ Field: false
14
+ },
15
+ ...enableAPIKeyField?.admin
16
+ },
17
+ label: enableAPIKeyField?.label ?? (({ t })=>t('authentication:enableAPIKey'))
18
+ });
19
+ }
20
+ fields.push({
16
21
  name: 'apiKey',
17
22
  type: 'text',
23
+ ...apiKeyField,
18
24
  admin: {
19
25
  components: {
20
26
  Field: false
21
- }
27
+ },
28
+ ...apiKeyField?.admin
22
29
  },
23
30
  hooks: {
24
31
  afterRead: [
@@ -26,24 +33,26 @@ export const apiKeyFields = [
26
33
  ],
27
34
  beforeChange: [
28
35
  encryptKey
29
- ]
36
+ ],
37
+ ...apiKeyField?.hooks
30
38
  },
31
- label: ({ t })=>t('authentication:apiKey')
32
- },
33
- {
39
+ label: apiKeyField?.label ?? (({ t })=>t('authentication:apiKey'))
40
+ }, {
34
41
  name: 'apiKeyIndex',
35
42
  type: 'text',
43
+ ...apiKeyIndexField,
36
44
  admin: {
37
- disabled: true
45
+ disabled: true,
46
+ ...apiKeyIndexField?.admin
38
47
  },
39
- hidden: true,
48
+ hidden: apiKeyIndexField?.hidden ?? true,
40
49
  hooks: {
41
50
  beforeValidate: [
42
51
  ({ data, req, value })=>{
43
- if (data?.apiKey === false || data?.apiKey === null) {
52
+ if (data?.apiKey === false || data?.apiKey === null || data?.apiKey === '') {
44
53
  return null;
45
54
  }
46
- if (data?.enableAPIKey === false || data?.enableAPIKey === null) {
55
+ if (includeEnableAPIKey && (data?.enableAPIKey === false || data?.enableAPIKey === null)) {
47
56
  return null;
48
57
  }
49
58
  if (data?.apiKey) {
@@ -51,9 +60,11 @@ export const apiKeyFields = [
51
60
  }
52
61
  return value;
53
62
  }
54
- ]
63
+ ],
64
+ ...apiKeyIndexField?.hooks
55
65
  }
56
- }
57
- ];
66
+ });
67
+ return fields;
68
+ };
58
69
 
59
70
  //# sourceMappingURL=apiKey.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/auth/baseFields/apiKey.ts"],"sourcesContent":["import crypto from 'crypto'\n\nimport type { Field, FieldHook } from '../../fields/config/types.js'\n\nconst encryptKey: FieldHook = ({ req, value }) =>\n value ? req.payload.encrypt(value as string) : null\nconst decryptKey: FieldHook = ({ req, value }) =>\n value ? req.payload.decrypt(value as string) : undefined\n\nexport const apiKeyFields = [\n {\n name: 'enableAPIKey',\n type: 'checkbox',\n admin: {\n components: {\n Field: false,\n },\n },\n label: ({ t }) => t('authentication:enableAPIKey'),\n },\n {\n name: 'apiKey',\n type: 'text',\n admin: {\n components: {\n Field: false,\n },\n },\n hooks: {\n afterRead: [decryptKey],\n beforeChange: [encryptKey],\n },\n label: ({ t }) => t('authentication:apiKey'),\n },\n {\n name: 'apiKeyIndex',\n type: 'text',\n admin: {\n disabled: true,\n },\n hidden: true,\n hooks: {\n beforeValidate: [\n ({ data, req, value }) => {\n if (data?.apiKey === false || data?.apiKey === null) {\n return null\n }\n if (data?.enableAPIKey === false || data?.enableAPIKey === null) {\n return null\n }\n if (data?.apiKey) {\n return crypto\n .createHmac('sha256', req.payload.secret)\n .update(data.apiKey as string)\n .digest('hex')\n }\n return value\n },\n ],\n },\n },\n] as Field[]\n"],"names":["crypto","encryptKey","req","value","payload","encrypt","decryptKey","decrypt","undefined","apiKeyFields","name","type","admin","components","Field","label","t","hooks","afterRead","beforeChange","disabled","hidden","beforeValidate","data","apiKey","enableAPIKey","createHmac","secret","update","digest"],"mappings":"AAAA,OAAOA,YAAY,SAAQ;AAI3B,MAAMC,aAAwB,CAAC,EAAEC,GAAG,EAAEC,KAAK,EAAE,GAC3CA,QAAQD,IAAIE,OAAO,CAACC,OAAO,CAACF,SAAmB;AACjD,MAAMG,aAAwB,CAAC,EAAEJ,GAAG,EAAEC,KAAK,EAAE,GAC3CA,QAAQD,IAAIE,OAAO,CAACG,OAAO,CAACJ,SAAmBK;AAEjD,OAAO,MAAMC,eAAe;IAC1B;QACEC,MAAM;QACNC,MAAM;QACNC,OAAO;YACLC,YAAY;gBACVC,OAAO;YACT;QACF;QACAC,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;IACtB;IACA;QACEN,MAAM;QACNC,MAAM;QACNC,OAAO;YACLC,YAAY;gBACVC,OAAO;YACT;QACF;QACAG,OAAO;YACLC,WAAW;gBAACZ;aAAW;YACvBa,cAAc;gBAAClB;aAAW;QAC5B;QACAc,OAAO,CAAC,EAAEC,CAAC,EAAE,GAAKA,EAAE;IACtB;IACA;QACEN,MAAM;QACNC,MAAM;QACNC,OAAO;YACLQ,UAAU;QACZ;QACAC,QAAQ;QACRJ,OAAO;YACLK,gBAAgB;gBACd,CAAC,EAAEC,IAAI,EAAErB,GAAG,EAAEC,KAAK,EAAE;oBACnB,IAAIoB,MAAMC,WAAW,SAASD,MAAMC,WAAW,MAAM;wBACnD,OAAO;oBACT;oBACA,IAAID,MAAME,iBAAiB,SAASF,MAAME,iBAAiB,MAAM;wBAC/D,OAAO;oBACT;oBACA,IAAIF,MAAMC,QAAQ;wBAChB,OAAOxB,OACJ0B,UAAU,CAAC,UAAUxB,IAAIE,OAAO,CAACuB,MAAM,EACvCC,MAAM,CAACL,KAAKC,MAAM,EAClBK,MAAM,CAAC;oBACZ;oBACA,OAAO1B;gBACT;aACD;QACH;IACF;CACD,CAAW"}
1
+ {"version":3,"sources":["../../../src/auth/baseFields/apiKey.ts"],"sourcesContent":["import crypto from 'crypto'\n\nimport type { CheckboxField, Field, FieldHook, TextField } from '../../fields/config/types.js'\n\nconst encryptKey: FieldHook = ({ req, value }) =>\n value ? req.payload.encrypt(value as string) : null\nconst decryptKey: FieldHook = ({ req, value }) =>\n value ? req.payload.decrypt(value as string) : undefined\n\ntype APIKeyCheckboxFieldOverride = Omit<Partial<CheckboxField>, 'name' | 'type'>\ntype APIKeyTextFieldOverride = Omit<\n Partial<TextField>,\n 'hasMany' | 'maxRows' | 'minRows' | 'name' | 'type' | 'validate'\n>\n\nexport const createAPIKeyFields = ({\n apiKeyField,\n apiKeyIndexField,\n enableAPIKeyField,\n includeEnableAPIKey = true,\n}: {\n apiKeyField?: APIKeyTextFieldOverride\n apiKeyIndexField?: APIKeyTextFieldOverride\n enableAPIKeyField?: APIKeyCheckboxFieldOverride\n includeEnableAPIKey?: boolean\n} = {}): Field[] => {\n const fields: Field[] = []\n\n if (includeEnableAPIKey) {\n fields.push({\n name: 'enableAPIKey',\n type: 'checkbox',\n ...enableAPIKeyField,\n admin: {\n components: {\n Field: false,\n },\n ...enableAPIKeyField?.admin,\n },\n label: enableAPIKeyField?.label ?? (({ t }) => t('authentication:enableAPIKey')),\n })\n }\n\n fields.push(\n {\n name: 'apiKey',\n type: 'text',\n ...apiKeyField,\n admin: {\n components: {\n Field: false,\n },\n ...apiKeyField?.admin,\n },\n hooks: {\n afterRead: [decryptKey],\n beforeChange: [encryptKey],\n ...apiKeyField?.hooks,\n },\n label: apiKeyField?.label ?? (({ t }) => t('authentication:apiKey')),\n },\n {\n name: 'apiKeyIndex',\n type: 'text',\n ...apiKeyIndexField,\n admin: {\n disabled: true,\n ...apiKeyIndexField?.admin,\n },\n hidden: apiKeyIndexField?.hidden ?? true,\n hooks: {\n beforeValidate: [\n ({ data, req, value }) => {\n if (data?.apiKey === false || data?.apiKey === null || data?.apiKey === '') {\n return null\n }\n if (\n includeEnableAPIKey &&\n (data?.enableAPIKey === false || data?.enableAPIKey === null)\n ) {\n return null\n }\n if (data?.apiKey) {\n return crypto\n .createHmac('sha256', req.payload.secret)\n .update(data.apiKey as string)\n .digest('hex')\n }\n return value\n },\n ],\n ...apiKeyIndexField?.hooks,\n },\n },\n )\n\n return fields\n}\n"],"names":["crypto","encryptKey","req","value","payload","encrypt","decryptKey","decrypt","undefined","createAPIKeyFields","apiKeyField","apiKeyIndexField","enableAPIKeyField","includeEnableAPIKey","fields","push","name","type","admin","components","Field","label","t","hooks","afterRead","beforeChange","disabled","hidden","beforeValidate","data","apiKey","enableAPIKey","createHmac","secret","update","digest"],"mappings":"AAAA,OAAOA,YAAY,SAAQ;AAI3B,MAAMC,aAAwB,CAAC,EAAEC,GAAG,EAAEC,KAAK,EAAE,GAC3CA,QAAQD,IAAIE,OAAO,CAACC,OAAO,CAACF,SAAmB;AACjD,MAAMG,aAAwB,CAAC,EAAEJ,GAAG,EAAEC,KAAK,EAAE,GAC3CA,QAAQD,IAAIE,OAAO,CAAC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9B,OACJgC,UAAU,CAAC,UAAU9B,IAAIE,OAAO,CAAC6B,MAAM,EACvCC,MAAM,CAACL,KAAKC,MAAM,EAClBK,MAAM,CAAC;oBACZ;oBACA,OAAOhC;gBACT;aACD;YACD,GAAGQ,kBAAkBY,KAAK;QAC5B;IACF;IAGF,OAAOT;AACT,EAAC"}
@@ -33,8 +33,8 @@ type GeneratePayloadCookieArgs = {
33
33
  returnCookieAsObject?: boolean;
34
34
  token: string;
35
35
  };
36
- export declare const generatePayloadCookie: <T extends GeneratePayloadCookieArgs>({ collectionAuthConfig, cookiePrefix, returnCookieAsObject, token, }: T) => T["returnCookieAsObject"] extends true ? CookieObject : string;
37
- export declare const generateExpiredPayloadCookie: <T extends Omit<GeneratePayloadCookieArgs, "token">>({ collectionAuthConfig, cookiePrefix, returnCookieAsObject, }: T) => T["returnCookieAsObject"] extends true ? CookieObject : string;
36
+ export declare const generatePayloadCookie: <T extends GeneratePayloadCookieArgs>({ collectionAuthConfig, cookiePrefix, returnCookieAsObject, token, }: T) => T['returnCookieAsObject'] extends true ? CookieObject : string;
37
+ export declare const generateExpiredPayloadCookie: <T extends Omit<GeneratePayloadCookieArgs, 'token'>>({ collectionAuthConfig, cookiePrefix, returnCookieAsObject, }: T) => T['returnCookieAsObject'] extends true ? CookieObject : string;
38
38
  export declare function parseCookies(headers: Request['headers']): Map<string, string>;
39
39
  export {};
40
40
  //# sourceMappingURL=cookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/auth/cookies.ts"],"names":[],"mappings":"AAAA,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,CA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,IAAI,GAAG,YAAY,GAAG,MAiFrD,CAAA;AACD,KAAK,uBAAuB,GAAG;IAK7B,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,eAAO,MAAM,mBAAmB,gBAAwB,uBAAuB,SAI9E,CAAA;AAED,KAAK,yBAAyB,GAAG;IAE/B,oBAAoB,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAA;IAEvD,YAAY,EAAE,MAAM,CAAA;IAEpB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,eAAO,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 +1 @@
1
- {"version":3,"file":"defaultAccess.d.ts","sourceRoot":"","sources":["../../src/auth/defaultAccess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,eAAO,MAAM,aAAa,GAAI,4BAA4B;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,KAAG,OACnB,CAAA"}
1
+ {"version":3,"file":"defaultAccess.d.ts","sourceRoot":"","sources":["../../src/auth/defaultAccess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,eAAO,MAAM,aAAa,+BAAgC;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,KAAG,OACnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ensureUsernameOrEmail.d.ts","sourceRoot":"","sources":["../../src/auth/ensureUsernameOrEmail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAA;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjF,KAAK,2BAA2B,CAAC,KAAK,SAAS,cAAc,IAAI;IAC/D,WAAW,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;IAC7C,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,8BAA8B,CAAC,KAAK,CAAC,CAAA;IAC3C,GAAG,EAAE,cAAc,CAAA;CACpB,GAAG,CACA;IACE,SAAS,EAAE,QAAQ,CAAA;IACnB,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB,GACD;IACE,SAAS,EAAE,QAAQ,CAAA;IACnB,WAAW,EAAE,8BAA8B,CAAC,KAAK,CAAC,CAAA;CACnD,CACJ,CAAA;AACD,eAAO,MAAM,qBAAqB,GAAI,KAAK,SAAS,cAAc,EAAE,kHAOjE,2BAA2B,CAAC,KAAK,CAAC,SAiDpC,CAAA"}
1
+ {"version":3,"file":"ensureUsernameOrEmail.d.ts","sourceRoot":"","sources":["../../src/auth/ensureUsernameOrEmail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAA;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjF,KAAK,2BAA2B,CAAC,KAAK,SAAS,cAAc,IAAI;IAC/D,WAAW,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;IAC7C,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,8BAA8B,CAAC,KAAK,CAAC,CAAA;IAC3C,GAAG,EAAE,cAAc,CAAA;CACpB,GAAG,CACA;IACE,SAAS,EAAE,QAAQ,CAAA;IACnB,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB,GACD;IACE,SAAS,EAAE,QAAQ,CAAA;IACnB,WAAW,EAAE,8BAA8B,CAAC,KAAK,CAAC,CAAA;CACnD,CACJ,CAAA;AACD,eAAO,MAAM,qBAAqB,GAAI,KAAK,SAAS,cAAc,oHAO/D,2BAA2B,CAAC,KAAK,CAAC,SAiDpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"executeAccess.d.ts","sourceRoot":"","sources":["../../src/auth/executeAccess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIvD,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AACD,eAAO,MAAM,aAAa,GACxB,uDAA+D,aAAa,EAC5E,QAAQ,MAAM,KACb,OAAO,CAAC,YAAY,CA0BtB,CAAA"}
1
+ {"version":3,"file":"executeAccess.d.ts","sourceRoot":"","sources":["../../src/auth/executeAccess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIvD,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AACD,eAAO,MAAM,aAAa,0DACuC,aAAa,UACpE,MAAM,KACb,OAAO,CAAC,YAAY,CA0BtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"executeAuthStrategies.d.ts","sourceRoot":"","sources":["../../src/auth/executeAuthStrategies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAI9E,eAAO,MAAM,qBAAqB,GAChC,MAAM,wBAAwB,KAC7B,OAAO,CAAC,kBAAkB,CA+B5B,CAAA"}
1
+ {"version":3,"file":"executeAuthStrategies.d.ts","sourceRoot":"","sources":["../../src/auth/executeAuthStrategies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAI9E,eAAO,MAAM,qBAAqB,SAC1B,wBAAwB,KAC7B,OAAO,CAAC,kBAAkB,CA+B5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"extractAccessFromPermission.d.ts","sourceRoot":"","sources":["../../src/auth/extractAccessFromPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,2BAA2B,GAAI,eAAe,OAAO,GAAG,UAAU,KAAG,YAajF,CAAA"}
1
+ {"version":3,"file":"extractAccessFromPermission.d.ts","sourceRoot":"","sources":["../../src/auth/extractAccessFromPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,2BAA2B,kBAAmB,OAAO,GAAG,UAAU,KAAG,YAajF,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import type { AuthStrategyFunctionArgs } from './index.js';
2
- export declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, "strategyName">) => null | string;
2
+ export declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, 'strategyName'>) => null | string;
3
3
  //# sourceMappingURL=extractJWT.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extractJWT.d.ts","sourceRoot":"","sources":["../../src/auth/extractJWT.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AA+D1D,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,CAAC,wBAAwB,EAAE,cAAc,CAAC,KAAG,IAAI,GAAG,MAcxF,CAAA"}
1
+ {"version":3,"file":"extractJWT.d.ts","sourceRoot":"","sources":["../../src/auth/extractJWT.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AA+D1D,eAAO,MAAM,UAAU,SAAU,IAAI,CAAC,wBAAwB,EAAE,cAAc,CAAC,KAAG,IAAI,GAAG,MAcxF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthFields.d.ts","sourceRoot":"","sources":["../../src/auth/getAuthFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAUlD,eAAO,MAAM,iBAAiB,GAAI,YAAY,gBAAgB,KAAG,KAAK,EAmDrE,CAAA"}
1
+ {"version":3,"file":"getAuthFields.d.ts","sourceRoot":"","sources":["../../src/auth/getAuthFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAUlD,eAAO,MAAM,iBAAiB,eAAgB,gBAAgB,KAAG,KAAK,EAmDrE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { accountLockFields } from './baseFields/accountLock.js';
2
- import { apiKeyFields } from './baseFields/apiKey.js';
2
+ import { createAPIKeyFields } from './baseFields/apiKey.js';
3
3
  import { baseAuthFields } from './baseFields/auth.js';
4
4
  import { emailFieldConfig } from './baseFields/email.js';
5
5
  import { sessionsFieldConfig } from './baseFields/sessions.js';
@@ -8,7 +8,7 @@ import { verificationFields } from './baseFields/verification.js';
8
8
  export const getBaseAuthFields = (authConfig)=>{
9
9
  const authFields = [];
10
10
  if (authConfig.useAPIKey) {
11
- authFields.push(...apiKeyFields);
11
+ authFields.push(...createAPIKeyFields());
12
12
  }
13
13
  if (!authConfig.disableLocalStrategy || typeof authConfig.disableLocalStrategy === 'object' && authConfig.disableLocalStrategy.enableFields) {
14
14
  const emailField = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/auth/getAuthFields.ts"],"sourcesContent":["import type { Field, TextField } from '../fields/config/types.js'\nimport type { IncomingAuthType } from './types.js'\n\nimport { accountLockFields } from './baseFields/accountLock.js'\nimport { apiKeyFields } from './baseFields/apiKey.js'\nimport { baseAuthFields } from './baseFields/auth.js'\nimport { emailFieldConfig } from './baseFields/email.js'\nimport { sessionsFieldConfig } from './baseFields/sessions.js'\nimport { usernameFieldConfig } from './baseFields/username.js'\nimport { verificationFields } from './baseFields/verification.js'\n\nexport const getBaseAuthFields = (authConfig: IncomingAuthType): Field[] => {\n const authFields: Field[] = []\n\n if (authConfig.useAPIKey) {\n authFields.push(...apiKeyFields)\n }\n\n if (\n !authConfig.disableLocalStrategy ||\n (typeof authConfig.disableLocalStrategy === 'object' &&\n authConfig.disableLocalStrategy.enableFields)\n ) {\n const emailField = { ...emailFieldConfig }\n let usernameField: TextField | undefined\n\n if (authConfig.loginWithUsername) {\n usernameField = { ...usernameFieldConfig }\n if (typeof authConfig.loginWithUsername === 'object') {\n if (authConfig.loginWithUsername.requireEmail === false) {\n emailField.required = false\n }\n if (authConfig.loginWithUsername.requireUsername === false) {\n usernameField.required = false\n }\n if (authConfig.loginWithUsername.allowEmailLogin === false) {\n emailField.unique = false\n }\n }\n }\n\n authFields.push(emailField)\n if (usernameField) {\n authFields.push(usernameField)\n }\n\n authFields.push(...baseAuthFields)\n\n if (authConfig.verify) {\n authFields.push(...verificationFields)\n }\n\n if (authConfig?.maxLoginAttempts && authConfig.maxLoginAttempts > 0) {\n authFields.push(...accountLockFields)\n }\n\n if (authConfig.useSessions) {\n authFields.push(sessionsFieldConfig)\n }\n }\n\n return authFields\n}\n"],"names":["accountLockFields","apiKeyFields","baseAuthFields","emailFieldConfig","sessionsFieldConfig","usernameFieldConfig","verificationFields","getBaseAuthFields","authConfig","authFields","useAPIKey","push","disableLocalStrategy","enableFields","emailField","usernameField","loginWithUsername","requireEmail","required","requireUsername","allowEmailLogin","unique","verify","maxLoginAttempts","useSessions"],"mappings":"AAGA,SAASA,iBAAiB,QAAQ,8BAA6B;AAC/D,SAASC,YAAY,QAAQ,yBAAwB;AACrD,SAASC,cAAc,QAAQ,uBAAsB;AACrD,SAASC,gBAAgB,QAAQ,wBAAuB;AACxD,SAASC,mBAAmB,QAAQ,2BAA0B;AAC9D,SAASC,mBAAmB,QAAQ,2BAA0B;AAC9D,SAASC,kBAAkB,QAAQ,+BAA8B;AAEjE,OAAO,MAAMC,oBAAoB,CAACC;IAChC,MAAMC,aAAsB,EAAE;IAE9B,IAAID,WAAWE,SAAS,EAAE;QACxBD,WAAWE,IAAI,IAAIV;IACrB;IAEA,IACE,CAACO,WAAWI,oBAAoB,IAC/B,OAAOJ,WAAWI,oBAAoB,KAAK,YAC1CJ,WAAWI,oBAAoB,CAACC,YAAY,EAC9C;QACA,MAAMC,aAAa;YAAE,GAAGX,gBAAgB;QAAC;QACzC,IAAIY;QAEJ,IAAIP,WAAWQ,iBAAiB,EAAE;YAChCD,gBAAgB;gBAAE,GAAGV,mBAAmB;YAAC;YACzC,IAAI,OAAOG,WAAWQ,iBAAiB,KAAK,UAAU;gBACpD,IAAIR,WAAWQ,iBAAiB,CAACC,YAAY,KAAK,OAAO;oBACvDH,WAAWI,QAAQ,GAAG;gBACxB;gBACA,IAAIV,WAAWQ,iBAAiB,CAACG,eAAe,KAAK,OAAO;oBAC1DJ,cAAcG,QAAQ,GAAG;gBAC3B;gBACA,IAAIV,WAAWQ,iBAAiB,CAACI,eAAe,KAAK,OAAO;oBAC1DN,WAAWO,MAAM,GAAG;gBACtB;YACF;QACF;QAEAZ,WAAWE,IAAI,CAACG;QAChB,IAAIC,eAAe;YACjBN,WAAWE,IAAI,CAACI;QAClB;QAEAN,WAAWE,IAAI,IAAIT;QAEnB,IAAIM,WAAWc,MAAM,EAAE;YACrBb,WAAWE,IAAI,IAAIL;QACrB;QAEA,IAAIE,YAAYe,oBAAoBf,WAAWe,gBAAgB,GAAG,GAAG;YACnEd,WAAWE,IAAI,IAAIX;QACrB;QAEA,IAAIQ,WAAWgB,WAAW,EAAE;YAC1Bf,WAAWE,IAAI,CAACP;QAClB;IACF;IAEA,OAAOK;AACT,EAAC"}
1
+ {"version":3,"sources":["../../src/auth/getAuthFields.ts"],"sourcesContent":["import type { Field, TextField } from '../fields/config/types.js'\nimport type { IncomingAuthType } from './types.js'\n\nimport { accountLockFields } from './baseFields/accountLock.js'\nimport { createAPIKeyFields } from './baseFields/apiKey.js'\nimport { baseAuthFields } from './baseFields/auth.js'\nimport { emailFieldConfig } from './baseFields/email.js'\nimport { sessionsFieldConfig } from './baseFields/sessions.js'\nimport { usernameFieldConfig } from './baseFields/username.js'\nimport { verificationFields } from './baseFields/verification.js'\n\nexport const getBaseAuthFields = (authConfig: IncomingAuthType): Field[] => {\n const authFields: Field[] = []\n\n if (authConfig.useAPIKey) {\n authFields.push(...createAPIKeyFields())\n }\n\n if (\n !authConfig.disableLocalStrategy ||\n (typeof authConfig.disableLocalStrategy === 'object' &&\n authConfig.disableLocalStrategy.enableFields)\n ) {\n const emailField = { ...emailFieldConfig }\n let usernameField: TextField | undefined\n\n if (authConfig.loginWithUsername) {\n usernameField = { ...usernameFieldConfig }\n if (typeof authConfig.loginWithUsername === 'object') {\n if (authConfig.loginWithUsername.requireEmail === false) {\n emailField.required = false\n }\n if (authConfig.loginWithUsername.requireUsername === false) {\n usernameField.required = false\n }\n if (authConfig.loginWithUsername.allowEmailLogin === false) {\n emailField.unique = false\n }\n }\n }\n\n authFields.push(emailField)\n if (usernameField) {\n authFields.push(usernameField)\n }\n\n authFields.push(...baseAuthFields)\n\n if (authConfig.verify) {\n authFields.push(...verificationFields)\n }\n\n if (authConfig?.maxLoginAttempts && authConfig.maxLoginAttempts > 0) {\n authFields.push(...accountLockFields)\n }\n\n if (authConfig.useSessions) {\n authFields.push(sessionsFieldConfig)\n }\n }\n\n return authFields\n}\n"],"names":["accountLockFields","createAPIKeyFields","baseAuthFields","emailFieldConfig","sessionsFieldConfig","usernameFieldConfig","verificationFields","getBaseAuthFields","authConfig","authFields","useAPIKey","push","disableLocalStrategy","enableFields","emailField","usernameField","loginWithUsername","requireEmail","required","requireUsername","allowEmailLogin","unique","verify","maxLoginAttempts","useSessions"],"mappings":"AAGA,SAASA,iBAAiB,QAAQ,8BAA6B;AAC/D,SAASC,kBAAkB,QAAQ,yBAAwB;AAC3D,SAASC,cAAc,QAAQ,uBAAsB;AACrD,SAASC,gBAAgB,QAAQ,wBAAuB;AACxD,SAASC,mBAAmB,QAAQ,2BAA0B;AAC9D,SAASC,mBAAmB,QAAQ,2BAA0B;AAC9D,SAASC,kBAAkB,QAAQ,+BAA8B;AAEjE,OAAO,MAAMC,oBAAoB,CAACC;IAChC,MAAMC,aAAsB,EAAE;IAE9B,IAAID,WAAWE,SAAS,EAAE;QACxBD,WAAWE,IAAI,IAAIV;IACrB;IAEA,IACE,CAACO,WAAWI,oBAAoB,IAC/B,OAAOJ,WAAWI,oBAAoB,KAAK,YAC1CJ,WAAWI,oBAAoB,CAACC,YAAY,EAC9C;QACA,MAAMC,aAAa;YAAE,GAAGX,gBAAgB;QAAC;QACzC,IAAIY;QAEJ,IAAIP,WAAWQ,iBAAiB,EAAE;YAChCD,gBAAgB;gBAAE,GAAGV,mBAAmB;YAAC;YACzC,IAAI,OAAOG,WAAWQ,iBAAiB,KAAK,UAAU;gBACpD,IAAIR,WAAWQ,iBAAiB,CAACC,YAAY,KAAK,OAAO;oBACvDH,WAAWI,QAAQ,GAAG;gBACxB;gBACA,IAAIV,WAAWQ,iBAAiB,CAACG,eAAe,KAAK,OAAO;oBAC1DJ,cAAcG,QAAQ,GAAG;gBAC3B;gBACA,IAAIV,WAAWQ,iBAAiB,CAACI,eAAe,KAAK,OAAO;oBAC1DN,WAAWO,MAAM,GAAG;gBACtB;YACF;QACF;QAEAZ,WAAWE,IAAI,CAACG;QAChB,IAAIC,eAAe;YACjBN,WAAWE,IAAI,CAACI;QAClB;QAEAN,WAAWE,IAAI,IAAIT;QAEnB,IAAIM,WAAWc,MAAM,EAAE;YACrBb,WAAWE,IAAI,IAAIL;QACrB;QAEA,IAAIE,YAAYe,oBAAoBf,WAAWe,gBAAgB,GAAG,GAAG;YACnEd,WAAWE,IAAI,IAAIX;QACrB;QAEA,IAAIQ,WAAWgB,WAAW,EAAE;YAC1Bf,WAAWE,IAAI,CAACP;QAClB;IACF;IAEA,OAAOK;AACT,EAAC"}
@@ -4,6 +4,6 @@ export declare const getFieldsToSign: (args: {
4
4
  collectionConfig: CollectionConfig;
5
5
  email: string;
6
6
  sid?: string;
7
- user: PayloadRequest["user"];
7
+ user: PayloadRequest['user'];
8
8
  }) => Record<string, unknown>;
9
9
  //# sourceMappingURL=getFieldsToSign.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFieldsToSign.d.ts","sourceRoot":"","sources":["../../src/auth/getFieldsToSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAiHvD,eAAO,MAAM,eAAe,GAAI,MAAM;IACpC,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;CAC7B,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAoBzB,CAAA"}
1
+ {"version":3,"file":"getFieldsToSign.d.ts","sourceRoot":"","sources":["../../src/auth/getFieldsToSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAiHvD,eAAO,MAAM,eAAe,SAAU;IACpC,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;CAC7B,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAoBzB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { Auth } from './types.js';
2
- export declare const getLoginOptions: (loginWithUsername: Auth["loginWithUsername"]) => {
2
+ export declare const getLoginOptions: (loginWithUsername: Auth['loginWithUsername']) => {
3
3
  canLoginWithEmail: boolean;
4
4
  canLoginWithUsername: boolean;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getLoginOptions.d.ts","sourceRoot":"","sources":["../../src/auth/getLoginOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtC,eAAO,MAAM,eAAe,GAC1B,mBAAmB,IAAI,CAAC,mBAAmB,CAAC,KAC3C;IACD,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,OAAO,CAAA;CAM9B,CAAA"}
1
+ {"version":3,"file":"getLoginOptions.d.ts","sourceRoot":"","sources":["../../src/auth/getLoginOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtC,eAAO,MAAM,eAAe,sBACP,IAAI,CAAC,mBAAmB,CAAC,KAC3C;IACD,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,OAAO,CAAA;CAM9B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isUserLocked.d.ts","sourceRoot":"","sources":["../../src/auth/isUserLocked.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,MAAM,IAAI,KAAG,OAKzC,CAAA"}
1
+ {"version":3,"file":"isUserLocked.d.ts","sourceRoot":"","sources":["../../src/auth/isUserLocked.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,SAAU,IAAI,KAAG,OAKzC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"jwt.d.ts","sourceRoot":"","sources":["../../src/auth/jwt.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,GAAU,4CAI3B;IACD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACrC,MAAM,EAAE,MAAM,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;CACxB;;;EAUA,CAAA"}
1
+ {"version":3,"file":"jwt.d.ts","sourceRoot":"","sources":["../../src/auth/jwt.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,+CAIjB;IACD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACrC,MAAM,EAAE,MAAM,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;CACxB;;;EAUA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../../src/auth/operations/access.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMvD,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,GAAU,MAAM,SAAS,KAAG,OAAO,CAAC,oBAAoB,CAWnF,CAAA"}
1
+ {"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../../src/auth/operations/access.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMvD,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,SAAgB,SAAS,KAAG,OAAO,CAAC,oBAAoB,CAWnF,CAAA"}