payload 3.0.0-beta.78 → 3.0.0-beta.79

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 (234) hide show
  1. package/bin.js +33 -10
  2. package/dist/admin/RichText.d.ts +20 -17
  3. package/dist/admin/RichText.d.ts.map +1 -1
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/elements/Cell.d.ts +11 -26
  6. package/dist/admin/elements/Cell.d.ts.map +1 -1
  7. package/dist/admin/elements/Cell.js.map +1 -1
  8. package/dist/admin/elements/Tab.d.ts +16 -15
  9. package/dist/admin/elements/Tab.d.ts.map +1 -1
  10. package/dist/admin/elements/Tab.js.map +1 -1
  11. package/dist/admin/fields/Array.d.ts +6 -13
  12. package/dist/admin/fields/Array.d.ts.map +1 -1
  13. package/dist/admin/fields/Array.js.map +1 -1
  14. package/dist/admin/fields/Blocks.d.ts +8 -25
  15. package/dist/admin/fields/Blocks.d.ts.map +1 -1
  16. package/dist/admin/fields/Blocks.js.map +1 -1
  17. package/dist/admin/fields/Checkbox.d.ts +9 -9
  18. package/dist/admin/fields/Checkbox.d.ts.map +1 -1
  19. package/dist/admin/fields/Checkbox.js.map +1 -1
  20. package/dist/admin/fields/Code.d.ts +5 -7
  21. package/dist/admin/fields/Code.d.ts.map +1 -1
  22. package/dist/admin/fields/Code.js.map +1 -1
  23. package/dist/admin/fields/Collapsible.d.ts +3 -4
  24. package/dist/admin/fields/Collapsible.d.ts.map +1 -1
  25. package/dist/admin/fields/Collapsible.js.map +1 -1
  26. package/dist/admin/fields/Date.d.ts +4 -7
  27. package/dist/admin/fields/Date.d.ts.map +1 -1
  28. package/dist/admin/fields/Date.js.map +1 -1
  29. package/dist/admin/fields/Email.d.ts +5 -7
  30. package/dist/admin/fields/Email.d.ts.map +1 -1
  31. package/dist/admin/fields/Email.js.map +1 -1
  32. package/dist/admin/fields/Group.d.ts +3 -6
  33. package/dist/admin/fields/Group.d.ts.map +1 -1
  34. package/dist/admin/fields/Group.js.map +1 -1
  35. package/dist/admin/fields/Hidden.d.ts +7 -5
  36. package/dist/admin/fields/Hidden.d.ts.map +1 -1
  37. package/dist/admin/fields/Hidden.js.map +1 -1
  38. package/dist/admin/fields/JSON.d.ts +4 -7
  39. package/dist/admin/fields/JSON.d.ts.map +1 -1
  40. package/dist/admin/fields/JSON.js.map +1 -1
  41. package/dist/admin/fields/Number.d.ts +5 -12
  42. package/dist/admin/fields/Number.d.ts.map +1 -1
  43. package/dist/admin/fields/Number.js.map +1 -1
  44. package/dist/admin/fields/Point.d.ts +4 -6
  45. package/dist/admin/fields/Point.d.ts.map +1 -1
  46. package/dist/admin/fields/Point.js.map +1 -1
  47. package/dist/admin/fields/Radio.d.ts +6 -9
  48. package/dist/admin/fields/Radio.d.ts.map +1 -1
  49. package/dist/admin/fields/Radio.js.map +1 -1
  50. package/dist/admin/fields/Relationship.d.ts +4 -9
  51. package/dist/admin/fields/Relationship.d.ts.map +1 -1
  52. package/dist/admin/fields/Relationship.js.map +1 -1
  53. package/dist/admin/fields/RichText.d.ts +5 -6
  54. package/dist/admin/fields/RichText.d.ts.map +1 -1
  55. package/dist/admin/fields/RichText.js.map +1 -1
  56. package/dist/admin/fields/Row.d.ts +3 -4
  57. package/dist/admin/fields/Row.d.ts.map +1 -1
  58. package/dist/admin/fields/Row.js.map +1 -1
  59. package/dist/admin/fields/Select.d.ts +6 -11
  60. package/dist/admin/fields/Select.d.ts.map +1 -1
  61. package/dist/admin/fields/Select.js.map +1 -1
  62. package/dist/admin/fields/Tabs.d.ts +8 -12
  63. package/dist/admin/fields/Tabs.d.ts.map +1 -1
  64. package/dist/admin/fields/Tabs.js.map +1 -1
  65. package/dist/admin/fields/Text.d.ts +7 -13
  66. package/dist/admin/fields/Text.d.ts.map +1 -1
  67. package/dist/admin/fields/Text.js.map +1 -1
  68. package/dist/admin/fields/Textarea.d.ts +7 -9
  69. package/dist/admin/fields/Textarea.d.ts.map +1 -1
  70. package/dist/admin/fields/Textarea.js.map +1 -1
  71. package/dist/admin/fields/Upload.d.ts +6 -7
  72. package/dist/admin/fields/Upload.d.ts.map +1 -1
  73. package/dist/admin/fields/Upload.js.map +1 -1
  74. package/dist/admin/forms/Error.d.ts +10 -10
  75. package/dist/admin/forms/Error.d.ts.map +1 -1
  76. package/dist/admin/forms/Error.js.map +1 -1
  77. package/dist/admin/forms/Field.d.ts +17 -24
  78. package/dist/admin/forms/Field.d.ts.map +1 -1
  79. package/dist/admin/forms/Field.js +1 -0
  80. package/dist/admin/forms/Field.js.map +1 -1
  81. package/dist/admin/forms/FieldDescription.d.ts +10 -9
  82. package/dist/admin/forms/FieldDescription.d.ts.map +1 -1
  83. package/dist/admin/forms/FieldDescription.js.map +1 -1
  84. package/dist/admin/forms/Label.d.ts +14 -15
  85. package/dist/admin/forms/Label.d.ts.map +1 -1
  86. package/dist/admin/forms/Label.js.map +1 -1
  87. package/dist/admin/types.d.ts +30 -11
  88. package/dist/admin/types.d.ts.map +1 -1
  89. package/dist/admin/types.js.map +1 -1
  90. package/dist/admin/views/types.d.ts +21 -13
  91. package/dist/admin/views/types.d.ts.map +1 -1
  92. package/dist/admin/views/types.js.map +1 -1
  93. package/dist/auth/baseFields/apiKey.js +2 -2
  94. package/dist/auth/baseFields/apiKey.js.map +1 -1
  95. package/dist/auth/baseFields/email.js +1 -1
  96. package/dist/auth/baseFields/email.js.map +1 -1
  97. package/dist/auth/baseFields/username.js +1 -1
  98. package/dist/auth/baseFields/username.js.map +1 -1
  99. package/dist/auth/baseFields/verification.js +1 -1
  100. package/dist/auth/baseFields/verification.js.map +1 -1
  101. package/dist/bin/generateImportMap/index.d.ts +47 -0
  102. package/dist/bin/generateImportMap/index.d.ts.map +1 -0
  103. package/dist/bin/generateImportMap/index.js +129 -0
  104. package/dist/bin/generateImportMap/index.js.map +1 -0
  105. package/dist/bin/generateImportMap/iterateCollections.d.ts +12 -0
  106. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -0
  107. package/dist/bin/generateImportMap/iterateCollections.js +41 -0
  108. package/dist/bin/generateImportMap/iterateCollections.js.map +1 -0
  109. package/dist/bin/generateImportMap/iterateConfig.d.ts +10 -0
  110. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -0
  111. package/dist/bin/generateImportMap/iterateConfig.js +75 -0
  112. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -0
  113. package/dist/bin/generateImportMap/iterateFields.d.ts +12 -0
  114. package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -0
  115. package/dist/bin/generateImportMap/iterateFields.js +56 -0
  116. package/dist/bin/generateImportMap/iterateFields.js.map +1 -0
  117. package/dist/bin/generateImportMap/iterateGlobals.d.ts +12 -0
  118. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +1 -0
  119. package/dist/bin/generateImportMap/iterateGlobals.js +34 -0
  120. package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -0
  121. package/dist/bin/generateImportMap/parsePayloadComponent.d.ts +6 -0
  122. package/dist/bin/generateImportMap/parsePayloadComponent.d.ts.map +1 -0
  123. package/dist/bin/generateImportMap/parsePayloadComponent.js +19 -0
  124. package/dist/bin/generateImportMap/parsePayloadComponent.js.map +1 -0
  125. package/dist/bin/index.d.ts.map +1 -1
  126. package/dist/bin/index.js +35 -4
  127. package/dist/bin/index.js.map +1 -1
  128. package/dist/collections/config/client.d.ts +32 -308
  129. package/dist/collections/config/client.d.ts.map +1 -1
  130. package/dist/collections/config/client.js +1 -82
  131. package/dist/collections/config/client.js.map +1 -1
  132. package/dist/collections/config/types.d.ts +9 -9
  133. package/dist/collections/config/types.d.ts.map +1 -1
  134. package/dist/collections/config/types.js.map +1 -1
  135. package/dist/config/client.d.ts +12 -6
  136. package/dist/config/client.d.ts.map +1 -1
  137. package/dist/config/client.js +1 -49
  138. package/dist/config/client.js.map +1 -1
  139. package/dist/config/defaults.d.ts.map +1 -1
  140. package/dist/config/defaults.js +4 -0
  141. package/dist/config/defaults.js.map +1 -1
  142. package/dist/config/types.d.ts +111 -52
  143. package/dist/config/types.d.ts.map +1 -1
  144. package/dist/config/types.js.map +1 -1
  145. package/dist/exports/node.d.ts +0 -1
  146. package/dist/exports/node.d.ts.map +1 -1
  147. package/dist/exports/node.js +0 -1
  148. package/dist/exports/node.js.map +1 -1
  149. package/dist/exports/shared.d.ts +2 -1
  150. package/dist/exports/shared.d.ts.map +1 -1
  151. package/dist/exports/shared.js +2 -1
  152. package/dist/exports/shared.js.map +1 -1
  153. package/dist/fields/config/client.d.ts +3 -1642
  154. package/dist/fields/config/client.d.ts.map +1 -1
  155. package/dist/fields/config/client.js +1 -81
  156. package/dist/fields/config/client.js.map +1 -1
  157. package/dist/fields/config/sanitize.d.ts.map +1 -1
  158. package/dist/fields/config/sanitize.js +23 -22
  159. package/dist/fields/config/sanitize.js.map +1 -1
  160. package/dist/fields/config/types.d.ts +385 -56
  161. package/dist/fields/config/types.d.ts.map +1 -1
  162. package/dist/fields/config/types.js +3 -0
  163. package/dist/fields/config/types.js.map +1 -1
  164. package/dist/globals/config/client.d.ts +26 -14
  165. package/dist/globals/config/client.d.ts.map +1 -1
  166. package/dist/globals/config/client.js +1 -47
  167. package/dist/globals/config/client.js.map +1 -1
  168. package/dist/globals/config/types.d.ts +3 -3
  169. package/dist/globals/config/types.js.map +1 -1
  170. package/dist/index.d.ts +15 -11
  171. package/dist/index.d.ts.map +1 -1
  172. package/dist/index.js +7 -7
  173. package/dist/index.js.map +1 -1
  174. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  175. package/dist/uploads/getBaseFields.js +5 -2
  176. package/dist/uploads/getBaseFields.js.map +1 -1
  177. package/dist/uploads/types.d.ts +4 -0
  178. package/dist/uploads/types.d.ts.map +1 -1
  179. package/dist/uploads/types.js.map +1 -1
  180. package/dist/utilities/fieldSchemaToJSON.d.ts +4 -4
  181. package/dist/utilities/fieldSchemaToJSON.d.ts.map +1 -1
  182. package/dist/utilities/fieldSchemaToJSON.js +0 -10
  183. package/dist/utilities/fieldSchemaToJSON.js.map +1 -1
  184. package/dist/utilities/flattenTopLevelFields.d.ts +4 -3
  185. package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
  186. package/dist/utilities/flattenTopLevelFields.js +12 -7
  187. package/dist/utilities/flattenTopLevelFields.js.map +1 -1
  188. package/dist/utilities/getEntityPolicies.d.ts.map +1 -1
  189. package/dist/utilities/getEntityPolicies.js +5 -5
  190. package/dist/utilities/getEntityPolicies.js.map +1 -1
  191. package/dist/utilities/telemetry/conf/index.js.map +1 -1
  192. package/dist/versions/baseFields.js +1 -1
  193. package/dist/versions/baseFields.js.map +1 -1
  194. package/package.json +3 -10
  195. package/dist/admin/fields/index.d.ts +0 -65
  196. package/dist/admin/fields/index.d.ts.map +0 -1
  197. package/dist/admin/fields/index.js +0 -3
  198. package/dist/admin/fields/index.js.map +0 -1
  199. package/dist/admin/forms/FieldMap.d.ts +0 -23
  200. package/dist/admin/forms/FieldMap.d.ts.map +0 -1
  201. package/dist/admin/forms/FieldMap.js +0 -3
  202. package/dist/admin/forms/FieldMap.js.map +0 -1
  203. package/dist/admin/forms/FieldTypes.d.ts +0 -27
  204. package/dist/admin/forms/FieldTypes.d.ts.map +0 -1
  205. package/dist/admin/forms/FieldTypes.js +0 -3
  206. package/dist/admin/forms/FieldTypes.js.map +0 -1
  207. package/dist/bin/loader/clientExtensions.d.ts +0 -2
  208. package/dist/bin/loader/clientExtensions.d.ts.map +0 -1
  209. package/dist/bin/loader/clientExtensions.js +0 -13
  210. package/dist/bin/loader/clientExtensions.js.map +0 -1
  211. package/dist/bin/loader/compile.d.ts +0 -5
  212. package/dist/bin/loader/compile.d.ts.map +0 -1
  213. package/dist/bin/loader/compile.js +0 -27
  214. package/dist/bin/loader/compile.js.map +0 -1
  215. package/dist/bin/loader/ignores.d.ts +0 -2
  216. package/dist/bin/loader/ignores.d.ts.map +0 -1
  217. package/dist/bin/loader/ignores.js +0 -5
  218. package/dist/bin/loader/ignores.js.map +0 -1
  219. package/dist/bin/loader/index.d.ts +0 -34
  220. package/dist/bin/loader/index.d.ts.map +0 -1
  221. package/dist/bin/loader/index.js +0 -116
  222. package/dist/bin/loader/index.js.map +0 -1
  223. package/dist/bin/loader/read-default-tsconfig.d.ts +0 -29
  224. package/dist/bin/loader/read-default-tsconfig.d.ts.map +0 -1
  225. package/dist/bin/loader/read-default-tsconfig.js +0 -116
  226. package/dist/bin/loader/read-default-tsconfig.js.map +0 -1
  227. package/dist/bin/loader/resolveOriginalPath.d.ts +0 -10
  228. package/dist/bin/loader/resolveOriginalPath.d.ts.map +0 -1
  229. package/dist/bin/loader/resolveOriginalPath.js +0 -36
  230. package/dist/bin/loader/resolveOriginalPath.js.map +0 -1
  231. package/dist/utilities/importWithoutClientFiles.d.ts +0 -7
  232. package/dist/utilities/importWithoutClientFiles.d.ts.map +0 -1
  233. package/dist/utilities/importWithoutClientFiles.js +0 -47
  234. package/dist/utilities/importWithoutClientFiles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/collections/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE/D,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACb,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC3E,OAAO,KAAK,EACV,SAAS,IAAI,gBAAgB,EAC7B,MAAM,IAAI,aAAa,EACxB,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,KAAK,EACV,MAAM,EACN,eAAe,EACf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AE,MAAM,GAAG,OAAO,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["import type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { DeepRequired, MarkOptional } from 'ts-essentials'\n\nimport type {\n CustomPreviewButton,\n CustomPublishButton,\n CustomSaveButton,\n CustomSaveDraftButton,\n CustomUpload,\n} from '../../admin/types.js'\nimport type { Arguments as MeArguments } from '../../auth/operations/me.js'\nimport type {\n Arguments as RefreshArguments,\n Result as RefreshResult,\n} from '../../auth/operations/refresh.js'\nimport type { Auth, ClientUser, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n CustomComponent,\n EditConfig,\n Endpoint,\n EntityDescription,\n EntityDescriptionComponent,\n GeneratePreviewURL,\n LabelFunction,\n LabelStatic,\n LivePreviewConfig,\n OpenGraphConfig,\n} from '../../config/types.js'\nimport type { DBIdentifierName } from '../../database/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type {\n CollectionSlug,\n JsonObject,\n TypedAuthOperations,\n TypedCollection,\n} from '../../index.js'\nimport type { PayloadRequest, RequestContext } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type { AfterOperationArg, AfterOperationMap } from '../operations/utils.js'\n\nexport type DataFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollection[TSlug]\nexport type AuthOperationsFromCollectionSlug<TSlug extends CollectionSlug> =\n TypedAuthOperations[TSlug]\n\nexport type RequiredDataFromCollection<TData extends JsonObject> = MarkOptional<\n TData,\n 'createdAt' | 'id' | 'sizes' | 'updatedAt'\n>\n\nexport type RequiredDataFromCollectionSlug<TSlug extends CollectionSlug> =\n RequiredDataFromCollection<DataFromCollectionSlug<TSlug>>\n\nexport type HookOperationType =\n | 'autosave'\n | 'count'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'refresh'\n | 'update'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\n\nexport type BeforeOperationHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n /**\n * Hook operation being performed\n */\n operation: HookOperationType\n req: PayloadRequest\n}) => any\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n previousDoc: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<TOperationGeneric extends CollectionSlug = string> = (\n arg: AfterOperationArg<TOperationGeneric>,\n) =>\n | Awaited<\n ReturnType<AfterOperationMap<TOperationGeneric>[keyof AfterOperationMap<TOperationGeneric>]>\n >\n | Promise<\n Awaited<\n ReturnType<AfterOperationMap<TOperationGeneric>[keyof AfterOperationMap<TOperationGeneric>]>\n >\n >\n\nexport type AfterErrorHook = (\n err: Error,\n res: unknown,\n context: RequestContext,\n /** The collection which this hook is being run on. This is null if the AfterError hook was be added to the payload-wide config */\n collection: SanitizedCollectionConfig | null,\n) => { response: any; status: number } | void\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type RefreshHook<T extends TypeWithID = any> = (args: {\n args: RefreshArguments\n user: T\n}) => Promise<RefreshResult | void> | (RefreshResult | void)\n\nexport type MeHook<T extends TypeWithID = any> = (args: {\n args: MeArguments\n user: T\n}) => ({ exp: number; user: T } | void) | Promise<{ exp: number; user: T } | void>\n\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type CollectionAdminOptions = {\n /**\n * Custom admin components\n */\n components?: {\n afterList?: CustomComponent[]\n afterListTable?: CustomComponent[]\n beforeList?: CustomComponent[]\n beforeListTable?: CustomComponent[]\n /**\n * Components within the edit view\n */\n edit?: {\n Description?: EntityDescriptionComponent\n\n /**\n * Replaces the \"Preview\" button\n */\n PreviewButton?: CustomPreviewButton\n /**\n * Replaces the \"Publish\" button\n * + drafts must be enabled\n */\n PublishButton?: CustomPublishButton\n /**\n * Replaces the \"Save\" button\n * + drafts must be disabled\n */\n SaveButton?: CustomSaveButton\n /**\n * Replaces the \"Save Draft\" button\n * + drafts must be enabled\n * + autosave must be disabled\n */\n SaveDraftButton?: CustomSaveDraftButton\n /**\n * Replaces the \"Upload\" section\n * + upload must be enabled\n */\n Upload?: CustomUpload\n }\n views?: {\n /**\n * Set to a React component to replace the entire \"Edit\" view, including all nested routes.\n * Set to an object to replace or modify individual nested routes, or to add new ones.\n */\n Edit?: EditConfig\n List?:\n | {\n Component?: React.ComponentType<any>\n actions?: CustomComponent[]\n }\n | React.ComponentType<any>\n }\n }\n /** Extension point to add your custom data. Available in server and client. */\n custom?: Record<string, any>\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection\n */\n description?: EntityDescription\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Place collections into a navigational group\n * */\n group?: Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: ClientUser }) => boolean) | boolean\n /**\n * Hide the API URL within the Edit view\n */\n hideAPIURL?: boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live preview options\n */\n livePreview?: LivePreviewConfig\n meta?: {\n description?: string\n openGraph?: OpenGraphConfig\n }\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as title in Edit view and first column in List view\n */\n useAsTitle?: string\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig<TSlug extends CollectionSlug = any> = {\n /**\n * Access control\n */\n access?: {\n admin?: ({ req }: { req: PayloadRequest }) => Promise<boolean> | boolean\n create?: Access\n delete?: Access\n read?: Access\n readVersions?: Access\n unlock?: Access\n update?: Access\n }\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: IncomingAuthType | boolean\n /** Extension point to add your custom data. Server only. */\n custom?: Record<string, any>\n /**\n * Used to override the default naming of the database table or collection with your using a function or string\n * @WARNING: If you change this property with existing data, you will need to handle the renaming of the table in your database or by using migrations\n */\n dbName?: DBIdentifierName\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: string\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: Omit<Endpoint, 'root'>[] | false\n fields: Field[]\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook<TSlug>[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n /**\n /**\n * Use the `me` hook to control the `me` operation.\n * Here, you can optionally instruct the me operation to return early,\n * and skip its default logic.\n */\n me?: MeHook[]\n /**\n * Use the `refresh` hook to control the refresh operation.\n * Here, you can optionally instruct the refresh operation to return early,\n * and skip its default logic.\n */\n refresh?: RefreshHook[]\n }\n /**\n * Label configuration\n */\n labels?: {\n plural?: LabelFunction | LabelStatic\n singular?: LabelFunction | LabelStatic\n }\n slug: string\n /**\n * Add `createdAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: UploadConfig | boolean\n /**\n * Enable versioning. Set it to true to enable default versions settings,\n * or customize versions options by setting the property equal to an object\n * containing the version options.\n *\n * @default false // disable versioning\n */\n versions?: IncomingCollectionVersions | boolean\n}\n\nexport interface SanitizedCollectionConfig\n extends Omit<\n DeepRequired<CollectionConfig>,\n 'auth' | 'endpoints' | 'fields' | 'upload' | 'versions'\n > {\n auth: Auth\n endpoints: Endpoint[] | false\n fields: Field[]\n upload: SanitizedUploadConfig\n versions: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n customIDType?: 'number' | 'text'\n graphQL?: {\n JWT: GraphQLObjectType\n countType: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends CollectionSlug> = {\n docs: DataFromCollectionSlug<TSlug>[]\n errors: {\n id: DataFromCollectionSlug<TSlug>['id']\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n id: number | string\n updatedAt: string\n}\n"],"names":[],"mappings":"AAugBA,WAKC"}
1
+ {"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["import type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { DeepRequired, MarkOptional } from 'ts-essentials'\n\nimport type {\n CustomPreviewButton,\n CustomPublishButton,\n CustomSaveButton,\n CustomSaveDraftButton,\n CustomUpload,\n} from '../../admin/types.js'\nimport type { Arguments as MeArguments } from '../../auth/operations/me.js'\nimport type {\n Arguments as RefreshArguments,\n Result as RefreshResult,\n} from '../../auth/operations/refresh.js'\nimport type { Auth, ClientUser, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n CustomComponent,\n EditConfig,\n Endpoint,\n EntityDescription,\n EntityDescriptionComponent,\n GeneratePreviewURL,\n LabelFunction,\n LivePreviewConfig,\n OpenGraphConfig,\n PayloadComponent,\n StaticLabel,\n} from '../../config/types.js'\nimport type { DBIdentifierName } from '../../database/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type {\n CollectionSlug,\n JsonObject,\n TypedAuthOperations,\n TypedCollection,\n} from '../../index.js'\nimport type { PayloadRequest, RequestContext } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type { AfterOperationArg, AfterOperationMap } from '../operations/utils.js'\n\nexport type DataFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollection[TSlug]\nexport type AuthOperationsFromCollectionSlug<TSlug extends CollectionSlug> =\n TypedAuthOperations[TSlug]\n\nexport type RequiredDataFromCollection<TData extends JsonObject> = MarkOptional<\n TData,\n 'createdAt' | 'id' | 'sizes' | 'updatedAt'\n>\n\nexport type RequiredDataFromCollectionSlug<TSlug extends CollectionSlug> =\n RequiredDataFromCollection<DataFromCollectionSlug<TSlug>>\n\nexport type HookOperationType =\n | 'autosave'\n | 'count'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'refresh'\n | 'update'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\n\nexport type BeforeOperationHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n /**\n * Hook operation being performed\n */\n operation: HookOperationType\n req: PayloadRequest\n}) => any\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n previousDoc: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<TOperationGeneric extends CollectionSlug = string> = (\n arg: AfterOperationArg<TOperationGeneric>,\n) =>\n | Awaited<\n ReturnType<AfterOperationMap<TOperationGeneric>[keyof AfterOperationMap<TOperationGeneric>]>\n >\n | Promise<\n Awaited<\n ReturnType<AfterOperationMap<TOperationGeneric>[keyof AfterOperationMap<TOperationGeneric>]>\n >\n >\n\nexport type AfterErrorHook = (\n err: Error,\n res: unknown,\n context: RequestContext,\n /** The collection which this hook is being run on. This is null if the AfterError hook was be added to the payload-wide config */\n collection: SanitizedCollectionConfig | null,\n) => { response: any; status: number } | void\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type RefreshHook<T extends TypeWithID = any> = (args: {\n args: RefreshArguments\n user: T\n}) => Promise<RefreshResult | void> | (RefreshResult | void)\n\nexport type MeHook<T extends TypeWithID = any> = (args: {\n args: MeArguments\n user: T\n}) => ({ exp: number; user: T } | void) | Promise<{ exp: number; user: T } | void>\n\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type CollectionAdminOptions = {\n /**\n * Custom admin components\n */\n components?: {\n afterList?: CustomComponent[]\n afterListTable?: CustomComponent[]\n beforeList?: CustomComponent[]\n beforeListTable?: CustomComponent[]\n /**\n * Components within the edit view\n */\n edit?: {\n Description?: EntityDescriptionComponent\n\n /**\n * Replaces the \"Preview\" button\n */\n PreviewButton?: CustomPreviewButton\n /**\n * Replaces the \"Publish\" button\n * + drafts must be enabled\n */\n PublishButton?: CustomPublishButton\n /**\n * Replaces the \"Save\" button\n * + drafts must be disabled\n */\n SaveButton?: CustomSaveButton\n /**\n * Replaces the \"Save Draft\" button\n * + drafts must be enabled\n * + autosave must be disabled\n */\n SaveDraftButton?: CustomSaveDraftButton\n /**\n * Replaces the \"Upload\" section\n * + upload must be enabled\n */\n Upload?: CustomUpload\n }\n views?: {\n /**\n * Set to a React component to replace the entire Edit View, including all nested routes.\n * Set to an object to replace or modify individual nested routes, or to add new ones.\n */\n edit?: EditConfig\n list?: {\n Component?: PayloadComponent\n actions?: CustomComponent[]\n }\n }\n }\n /** Extension point to add your custom data. Available in server and client. */\n custom?: Record<string, any>\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection\n */\n description?: EntityDescription\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Place collections into a navigational group\n * */\n group?: Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: ClientUser }) => boolean) | boolean\n /**\n * Hide the API URL within the Edit view\n */\n hideAPIURL?: boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live preview options\n */\n livePreview?: LivePreviewConfig\n meta?: {\n description?: string\n openGraph?: OpenGraphConfig\n }\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as title in Edit View and first column in List view\n */\n useAsTitle?: string\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig<TSlug extends CollectionSlug = any> = {\n /**\n * Access control\n */\n access?: {\n admin?: ({ req }: { req: PayloadRequest }) => Promise<boolean> | boolean\n create?: Access\n delete?: Access\n read?: Access\n readVersions?: Access\n unlock?: Access\n update?: Access\n }\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: IncomingAuthType | boolean\n /** Extension point to add your custom data. Server only. */\n custom?: Record<string, any>\n /**\n * Used to override the default naming of the database table or collection with your using a function or string\n * @WARNING: If you change this property with existing data, you will need to handle the renaming of the table in your database or by using migrations\n */\n dbName?: DBIdentifierName\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: string\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: Omit<Endpoint, 'root'>[] | false\n fields: Field[]\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook<TSlug>[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n /**\n /**\n * Use the `me` hook to control the `me` operation.\n * Here, you can optionally instruct the me operation to return early,\n * and skip its default logic.\n */\n me?: MeHook[]\n /**\n * Use the `refresh` hook to control the refresh operation.\n * Here, you can optionally instruct the refresh operation to return early,\n * and skip its default logic.\n */\n refresh?: RefreshHook[]\n }\n /**\n * Label configuration\n */\n labels?: {\n plural?: LabelFunction | StaticLabel\n singular?: LabelFunction | StaticLabel\n }\n slug: string\n /**\n * Add `createdAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: UploadConfig | boolean\n /**\n * Enable versioning. Set it to true to enable default versions settings,\n * or customize versions options by setting the property equal to an object\n * containing the version options.\n *\n * @default false // disable versioning\n */\n versions?: IncomingCollectionVersions | boolean\n}\n\nexport interface SanitizedCollectionConfig\n extends Omit<\n DeepRequired<CollectionConfig>,\n 'auth' | 'endpoints' | 'fields' | 'upload' | 'versions'\n > {\n auth: Auth\n endpoints: Endpoint[] | false\n fields: Field[]\n upload: SanitizedUploadConfig\n versions: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n customIDType?: 'number' | 'text'\n graphQL?: {\n JWT: GraphQLObjectType\n countType: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends CollectionSlug> = {\n docs: DataFromCollectionSlug<TSlug>[]\n errors: {\n id: DataFromCollectionSlug<TSlug>['id']\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n id: number | string\n updatedAt: string\n}\n"],"names":[],"mappings":"AAsgBA,WAKC"}
@@ -1,4 +1,4 @@
1
- import type { TFunction } from '@payloadcms/translations';
1
+ import type { MappedComponent } from '../admin/types.js';
2
2
  import type { ClientCollectionConfig } from '../collections/config/client.js';
3
3
  import type { ClientGlobalConfig } from '../globals/config/client.js';
4
4
  import type { LivePreviewConfig, SanitizedConfig, ServerOnlyLivePreviewProperties } from './types.js';
@@ -6,14 +6,20 @@ export type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors
6
6
  export type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>;
7
7
  export type ClientConfig = {
8
8
  admin: {
9
+ components: {
10
+ Avatar: MappedComponent;
11
+ LogoutButton?: MappedComponent;
12
+ actions?: MappedComponent[];
13
+ graphics: {
14
+ Icon: MappedComponent;
15
+ Logo: MappedComponent;
16
+ };
17
+ };
9
18
  livePreview?: Omit<LivePreviewConfig, ServerOnlyLivePreviewProperties>;
10
- } & Omit<SanitizedConfig['admin'], 'livePreview' & ServerOnlyRootAdminProperties>;
19
+ } & Omit<SanitizedConfig['admin'], 'components' | 'livePreview'>;
11
20
  collections: ClientCollectionConfig[];
12
21
  custom?: Record<string, any>;
13
22
  globals: ClientGlobalConfig[];
14
23
  } & Omit<SanitizedConfig, 'admin' | 'collections' | 'globals' | ServerOnlyRootProperties>;
15
- export declare const createClientConfig: ({ config, t, }: {
16
- config: SanitizedConfig;
17
- t: TFunction;
18
- }) => Promise<ClientConfig>;
24
+ export declare const serverOnlyConfigProperties: readonly Partial<ServerOnlyRootProperties>[];
19
25
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/config/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAE7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAErE,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,+BAA+B,EAChC,MAAM,YAAY,CAAA;AAKnB,MAAM,MAAM,wBAAwB,GAAG,MAAM,IAAI,CAC/C,eAAe,EACb,KAAK,GACL,MAAM,GACN,MAAM,GACN,QAAQ,GACR,IAAI,GACJ,QAAQ,GACR,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,OAAO,GACP,YAAY,CACf,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,CAAA;AAE9F,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE;QACL,WAAW,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,CAAC,CAAA;KACvE,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,6BAA6B,CAAC,CAAA;IACjF,WAAW,EAAE,sBAAsB,EAAE,CAAA;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,OAAO,EAAE,kBAAkB,EAAE,CAAA;CAC9B,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAA;AAuBzF,eAAO,MAAM,kBAAkB,mBAG5B;IACD,MAAM,EAAE,eAAe,CAAA;IACvB,CAAC,EAAE,SAAS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E,GAAG,CAAC,CAAA;IAC5B,OAAO,EAAE,kBAAkB,EAAE,CAAA;CAC9B,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAA;AAEzF,eAAO,MAAM,0BAA0B,EAAE,SAAS,OAAO,CAAC,wBAAwB,CAAC,EAiBlF,CAAA"}
@@ -1,6 +1,4 @@
1
- import { createClientCollectionConfigs } from '../collections/config/client.js';
2
- import { createClientGlobalConfigs } from '../globals/config/client.js';
3
- const serverOnlyConfigProperties = [
1
+ export const serverOnlyConfigProperties = [
4
2
  'endpoints',
5
3
  'db',
6
4
  'editor',
@@ -17,51 +15,5 @@ const serverOnlyConfigProperties = [
17
15
  'custom',
18
16
  'graphQL'
19
17
  ];
20
- const serverOnlyAdminProperties = [
21
- 'components'
22
- ];
23
- export const createClientConfig = async ({ config, t })=>{
24
- const clientConfig = {
25
- ...config
26
- };
27
- for (const key of serverOnlyConfigProperties){
28
- if (key in clientConfig) {
29
- delete clientConfig[key];
30
- }
31
- }
32
- if ('localization' in clientConfig && clientConfig.localization) {
33
- clientConfig.localization = {
34
- ...clientConfig.localization
35
- };
36
- for (const locale of clientConfig.localization.locales){
37
- delete locale.toString;
38
- }
39
- }
40
- if ('admin' in clientConfig) {
41
- clientConfig.admin = {
42
- ...clientConfig.admin
43
- };
44
- for (const key of serverOnlyAdminProperties){
45
- if (key in clientConfig.admin) {
46
- delete clientConfig.admin[key];
47
- }
48
- }
49
- if ('livePreview' in clientConfig.admin) {
50
- clientConfig.admin.livePreview = {
51
- ...clientConfig.admin.livePreview
52
- };
53
- delete clientConfig.admin.livePreview.url;
54
- }
55
- }
56
- clientConfig.collections = createClientCollectionConfigs({
57
- collections: clientConfig.collections,
58
- t
59
- });
60
- clientConfig.globals = createClientGlobalConfigs({
61
- globals: clientConfig.globals,
62
- t
63
- });
64
- return clientConfig;
65
- };
66
18
 
67
19
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/config/client.ts"],"sourcesContent":["import type { TFunction } from '@payloadcms/translations'\n\nimport type { ClientCollectionConfig } from '../collections/config/client.js'\nimport type { SanitizedCollectionConfig } from '../collections/config/types.js'\nimport type { ClientGlobalConfig } from '../globals/config/client.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type {\n LivePreviewConfig,\n SanitizedConfig,\n ServerOnlyLivePreviewProperties,\n} from './types.js'\n\nimport { createClientCollectionConfigs } from '../collections/config/client.js'\nimport { createClientGlobalConfigs } from '../globals/config/client.js'\n\nexport type ServerOnlyRootProperties = keyof Pick<\n SanitizedConfig,\n | 'bin'\n | 'cors'\n | 'csrf'\n | 'custom'\n | 'db'\n | 'editor'\n | 'email'\n | 'endpoints'\n | 'graphQL'\n | 'hooks'\n | 'onInit'\n | 'plugins'\n | 'secret'\n | 'sharp'\n | 'typescript'\n>\n\nexport type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>\n\nexport type ClientConfig = {\n admin: {\n livePreview?: Omit<LivePreviewConfig, ServerOnlyLivePreviewProperties>\n } & Omit<SanitizedConfig['admin'], 'livePreview' & ServerOnlyRootAdminProperties>\n collections: ClientCollectionConfig[]\n custom?: Record<string, any>\n globals: ClientGlobalConfig[]\n} & Omit<SanitizedConfig, 'admin' | 'collections' | 'globals' | ServerOnlyRootProperties>\n\nconst serverOnlyConfigProperties: readonly Partial<ServerOnlyRootProperties>[] = [\n 'endpoints',\n 'db',\n 'editor',\n 'plugins',\n 'sharp',\n 'onInit',\n 'secret',\n 'hooks',\n 'bin',\n 'typescript',\n 'cors',\n 'csrf',\n 'email',\n 'custom',\n 'graphQL',\n // `admin`, `onInit`, `localization`, `collections`, and `globals` are all handled separately\n]\n\nconst serverOnlyAdminProperties: readonly Partial<ServerOnlyRootAdminProperties>[] = ['components']\n\nexport const createClientConfig = async ({\n config,\n t,\n}: {\n config: SanitizedConfig\n t: TFunction\n // eslint-disable-next-line @typescript-eslint/require-await\n}): Promise<ClientConfig> => {\n const clientConfig: ClientConfig = { ...config }\n\n for (const key of serverOnlyConfigProperties) {\n if (key in clientConfig) {\n delete clientConfig[key]\n }\n }\n\n if ('localization' in clientConfig && clientConfig.localization) {\n clientConfig.localization = { ...clientConfig.localization }\n\n for (const locale of clientConfig.localization.locales) {\n delete locale.toString\n }\n }\n\n if ('admin' in clientConfig) {\n clientConfig.admin = { ...clientConfig.admin }\n\n for (const key of serverOnlyAdminProperties) {\n if (key in clientConfig.admin) {\n delete clientConfig.admin[key]\n }\n }\n\n if ('livePreview' in clientConfig.admin) {\n clientConfig.admin.livePreview = { ...clientConfig.admin.livePreview }\n delete clientConfig.admin.livePreview.url\n }\n }\n\n clientConfig.collections = createClientCollectionConfigs({\n collections: clientConfig.collections as SanitizedCollectionConfig[],\n t,\n })\n\n clientConfig.globals = createClientGlobalConfigs({\n globals: clientConfig.globals as SanitizedGlobalConfig[],\n t,\n })\n\n return clientConfig\n}\n"],"names":["createClientCollectionConfigs","createClientGlobalConfigs","serverOnlyConfigProperties","serverOnlyAdminProperties","createClientConfig","config","t","clientConfig","key","localization","locale","locales","toString","admin","livePreview","url","collections","globals"],"mappings":"AAYA,SAASA,6BAA6B,QAAQ,kCAAiC;AAC/E,SAASC,yBAAyB,QAAQ,8BAA6B;AAgCvE,MAAMC,6BAA2E;IAC/E;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CAED;AAED,MAAMC,4BAA+E;IAAC;CAAa;AAEnG,OAAO,MAAMC,qBAAqB,OAAO,EACvCC,MAAM,EACNC,CAAC,EAKF;IACC,MAAMC,eAA6B;QAAE,GAAGF,MAAM;IAAC;IAE/C,KAAK,MAAMG,OAAON,2BAA4B;QAC5C,IAAIM,OAAOD,cAAc;YACvB,OAAOA,YAAY,CAACC,IAAI;QAC1B;IACF;IAEA,IAAI,kBAAkBD,gBAAgBA,aAAaE,YAAY,EAAE;QAC/DF,aAAaE,YAAY,GAAG;YAAE,GAAGF,aAAaE,YAAY;QAAC;QAE3D,KAAK,MAAMC,UAAUH,aAAaE,YAAY,CAACE,OAAO,CAAE;YACtD,OAAOD,OAAOE,QAAQ;QACxB;IACF;IAEA,IAAI,WAAWL,cAAc;QAC3BA,aAAaM,KAAK,GAAG;YAAE,GAAGN,aAAaM,KAAK;QAAC;QAE7C,KAAK,MAAML,OAAOL,0BAA2B;YAC3C,IAAIK,OAAOD,aAAaM,KAAK,EAAE;gBAC7B,OAAON,aAAaM,KAAK,CAACL,IAAI;YAChC;QACF;QAEA,IAAI,iBAAiBD,aAAaM,KAAK,EAAE;YACvCN,aAAaM,KAAK,CAACC,WAAW,GAAG;gBAAE,GAAGP,aAAaM,KAAK,CAACC,WAAW;YAAC;YACrE,OAAOP,aAAaM,KAAK,CAACC,WAAW,CAACC,GAAG;QAC3C;IACF;IAEAR,aAAaS,WAAW,GAAGhB,8BAA8B;QACvDgB,aAAaT,aAAaS,WAAW;QACrCV;IACF;IAEAC,aAAaU,OAAO,GAAGhB,0BAA0B;QAC/CgB,SAASV,aAAaU,OAAO;QAC7BX;IACF;IAEA,OAAOC;AACT,EAAC"}
1
+ {"version":3,"sources":["../../src/config/client.ts"],"sourcesContent":["import type { MappedComponent } from '../admin/types.js'\nimport type { ClientCollectionConfig } from '../collections/config/client.js'\nimport type { ClientGlobalConfig } from '../globals/config/client.js'\nimport type {\n LivePreviewConfig,\n SanitizedConfig,\n ServerOnlyLivePreviewProperties,\n} from './types.js'\n\nexport type ServerOnlyRootProperties = keyof Pick<\n SanitizedConfig,\n | 'bin'\n | 'cors'\n | 'csrf'\n | 'custom'\n | 'db'\n | 'editor'\n | 'email'\n | 'endpoints'\n | 'graphQL'\n | 'hooks'\n | 'onInit'\n | 'plugins'\n | 'secret'\n | 'sharp'\n | 'typescript'\n>\n\nexport type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>\n\nexport type ClientConfig = {\n admin: {\n components: {\n Avatar: MappedComponent\n LogoutButton?: MappedComponent\n actions?: MappedComponent[]\n graphics: {\n Icon: MappedComponent\n Logo: MappedComponent\n }\n }\n livePreview?: Omit<LivePreviewConfig, ServerOnlyLivePreviewProperties>\n } & Omit<SanitizedConfig['admin'], 'components' | 'livePreview'>\n collections: ClientCollectionConfig[]\n custom?: Record<string, any>\n globals: ClientGlobalConfig[]\n} & Omit<SanitizedConfig, 'admin' | 'collections' | 'globals' | ServerOnlyRootProperties>\n\nexport const serverOnlyConfigProperties: readonly Partial<ServerOnlyRootProperties>[] = [\n 'endpoints',\n 'db',\n 'editor',\n 'plugins',\n 'sharp',\n 'onInit',\n 'secret',\n 'hooks',\n 'bin',\n 'typescript',\n 'cors',\n 'csrf',\n 'email',\n 'custom',\n 'graphQL',\n // `admin`, `onInit`, `localization`, `collections`, and `globals` are all handled separately\n]\n"],"names":["serverOnlyConfigProperties"],"mappings":"AAgDA,OAAO,MAAMA,6BAA2E;IACtF;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CAED,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/config/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,GAAG,QAAQ,CAsD7D,CAAA"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/config/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,GAAG,QAAQ,CA0D7D,CAAA"}
@@ -4,7 +4,11 @@ export const defaults = {
4
4
  components: {},
5
5
  custom: {},
6
6
  dateFormat: 'MMMM do yyyy, h:mm a',
7
+ dependencies: {},
7
8
  disable: false,
9
+ importMap: {
10
+ baseDir: `${typeof process?.cwd === 'function' ? process.cwd() : ''}`
11
+ },
8
12
  meta: {
9
13
  defaultOGImageType: 'dynamic',
10
14
  titleSuffix: '- Payload'
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/config/defaults.ts"],"sourcesContent":["import type { Config } from './types.js'\n\nexport const defaults: Omit<Config, 'db' | 'editor' | 'secret'> = {\n admin: {\n avatar: 'gravatar',\n components: {},\n custom: {},\n dateFormat: 'MMMM do yyyy, h:mm a',\n disable: false,\n meta: {\n defaultOGImageType: 'dynamic',\n titleSuffix: '- Payload',\n },\n routes: {\n account: '/account',\n createFirstUser: '/create-first-user',\n forgot: '/forgot',\n inactivity: '/logout-inactivity',\n login: '/login',\n logout: '/logout',\n reset: '/reset',\n unauthorized: '/unauthorized',\n },\n },\n bin: [],\n collections: [],\n cookiePrefix: 'payload',\n cors: [],\n csrf: [],\n custom: {},\n defaultDepth: 2,\n defaultMaxTextLength: 40000,\n endpoints: [],\n globals: [],\n graphQL: {\n disablePlaygroundInProduction: true,\n maxComplexity: 1000,\n schemaOutputFile: `${typeof process?.cwd === 'function' ? process.cwd() : ''}/schema.graphql`,\n },\n hooks: {},\n i18n: {},\n localization: false,\n maxDepth: 10,\n routes: {\n admin: '/admin',\n api: '/api',\n graphQL: '/graphql',\n graphQLPlayground: '/graphql-playground',\n },\n serverURL: '',\n telemetry: true,\n typescript: {\n autoGenerate: true,\n outputFile: `${typeof process?.cwd === 'function' ? process.cwd() : ''}/payload-types.ts`,\n },\n upload: {},\n}\n"],"names":["defaults","admin","avatar","components","custom","dateFormat","disable","meta","defaultOGImageType","titleSuffix","routes","account","createFirstUser","forgot","inactivity","login","logout","reset","unauthorized","bin","collections","cookiePrefix","cors","csrf","defaultDepth","defaultMaxTextLength","endpoints","globals","graphQL","disablePlaygroundInProduction","maxComplexity","schemaOutputFile","process","cwd","hooks","i18n","localization","maxDepth","api","graphQLPlayground","serverURL","telemetry","typescript","autoGenerate","outputFile","upload"],"mappings":"AAEA,OAAO,MAAMA,WAAqD;IAChEC,OAAO;QACLC,QAAQ;QACRC,YAAY,CAAC;QACbC,QAAQ,CAAC;QACTC,YAAY;QACZC,SAAS;QACTC,MAAM;YACJC,oBAAoB;YACpBC,aAAa;QACf;QACAC,QAAQ;YACNC,SAAS;YACTC,iBAAiB;YACjBC,QAAQ;YACRC,YAAY;YACZC,OAAO;YACPC,QAAQ;YACRC,OAAO;YACPC,cAAc;QAChB;IACF;IACAC,KAAK,EAAE;IACPC,aAAa,EAAE;IACfC,cAAc;IACdC,MAAM,EAAE;IACRC,MAAM,EAAE;IACRnB,QAAQ,CAAC;IACToB,cAAc;IACdC,sBAAsB;IACtBC,WAAW,EAAE;IACbC,SAAS,EAAE;IACXC,SAAS;QACPC,+BAA+B;QAC/BC,eAAe;QACfC,kBAAkB,CAAC,EAAE,OAAOC,SAASC,QAAQ,aAAaD,QAAQC,GAAG,KAAK,GAAG,eAAe,CAAC;IAC/F;IACAC,OAAO,CAAC;IACRC,MAAM,CAAC;IACPC,cAAc;IACdC,UAAU;IACV3B,QAAQ;QACNT,OAAO;QACPqC,KAAK;QACLV,SAAS;QACTW,mBAAmB;IACrB;IACAC,WAAW;IACXC,WAAW;IACXC,YAAY;QACVC,cAAc;QACdC,YAAY,CAAC,EAAE,OAAOZ,SAASC,QAAQ,aAAaD,QAAQC,GAAG,KAAK,GAAG,iBAAiB,CAAC;IAC3F;IACAY,QAAQ,CAAC;AACX,EAAC"}
1
+ {"version":3,"sources":["../../src/config/defaults.ts"],"sourcesContent":["import type { Config } from './types.js'\n\nexport const defaults: Omit<Config, 'db' | 'editor' | 'secret'> = {\n admin: {\n avatar: 'gravatar',\n components: {},\n custom: {},\n dateFormat: 'MMMM do yyyy, h:mm a',\n dependencies: {},\n disable: false,\n importMap: {\n baseDir: `${typeof process?.cwd === 'function' ? process.cwd() : ''}`,\n },\n meta: {\n defaultOGImageType: 'dynamic',\n titleSuffix: '- Payload',\n },\n routes: {\n account: '/account',\n createFirstUser: '/create-first-user',\n forgot: '/forgot',\n inactivity: '/logout-inactivity',\n login: '/login',\n logout: '/logout',\n reset: '/reset',\n unauthorized: '/unauthorized',\n },\n },\n bin: [],\n collections: [],\n cookiePrefix: 'payload',\n cors: [],\n csrf: [],\n custom: {},\n defaultDepth: 2,\n defaultMaxTextLength: 40000,\n endpoints: [],\n globals: [],\n graphQL: {\n disablePlaygroundInProduction: true,\n maxComplexity: 1000,\n schemaOutputFile: `${typeof process?.cwd === 'function' ? process.cwd() : ''}/schema.graphql`,\n },\n hooks: {},\n i18n: {},\n localization: false,\n maxDepth: 10,\n routes: {\n admin: '/admin',\n api: '/api',\n graphQL: '/graphql',\n graphQLPlayground: '/graphql-playground',\n },\n serverURL: '',\n telemetry: true,\n typescript: {\n autoGenerate: true,\n outputFile: `${typeof process?.cwd === 'function' ? process.cwd() : ''}/payload-types.ts`,\n },\n upload: {},\n}\n"],"names":["defaults","admin","avatar","components","custom","dateFormat","dependencies","disable","importMap","baseDir","process","cwd","meta","defaultOGImageType","titleSuffix","routes","account","createFirstUser","forgot","inactivity","login","logout","reset","unauthorized","bin","collections","cookiePrefix","cors","csrf","defaultDepth","defaultMaxTextLength","endpoints","globals","graphQL","disablePlaygroundInProduction","maxComplexity","schemaOutputFile","hooks","i18n","localization","maxDepth","api","graphQLPlayground","serverURL","telemetry","typescript","autoGenerate","outputFile","upload"],"mappings":"AAEA,OAAO,MAAMA,WAAqD;IAChEC,OAAO;QACLC,QAAQ;QACRC,YAAY,CAAC;QACbC,QAAQ,CAAC;QACTC,YAAY;QACZC,cAAc,CAAC;QACfC,SAAS;QACTC,WAAW;YACTC,SAAS,CAAC,EAAE,OAAOC,SAASC,QAAQ,aAAaD,QAAQC,GAAG,KAAK,GAAG,CAAC;QACvE;QACAC,MAAM;YACJC,oBAAoB;YACpBC,aAAa;QACf;QACAC,QAAQ;YACNC,SAAS;YACTC,iBAAiB;YACjBC,QAAQ;YACRC,YAAY;YACZC,OAAO;YACPC,QAAQ;YACRC,OAAO;YACPC,cAAc;QAChB;IACF;IACAC,KAAK,EAAE;IACPC,aAAa,EAAE;IACfC,cAAc;IACdC,MAAM,EAAE;IACRC,MAAM,EAAE;IACRxB,QAAQ,CAAC;IACTyB,cAAc;IACdC,sBAAsB;IACtBC,WAAW,EAAE;IACbC,SAAS,EAAE;IACXC,SAAS;QACPC,+BAA+B;QAC/BC,eAAe;QACfC,kBAAkB,CAAC,EAAE,OAAO1B,SAASC,QAAQ,aAAaD,QAAQC,GAAG,KAAK,GAAG,eAAe,CAAC;IAC/F;IACA0B,OAAO,CAAC;IACRC,MAAM,CAAC;IACPC,cAAc;IACdC,UAAU;IACVzB,QAAQ;QACNd,OAAO;QACPwC,KAAK;QACLR,SAAS;QACTS,mBAAmB;IACrB;IACAC,WAAW;IACXC,WAAW;IACXC,YAAY;QACVC,cAAc;QACdC,YAAY,CAAC,EAAE,OAAOrC,SAASC,QAAQ,aAAaD,QAAQC,GAAG,KAAK,GAAG,iBAAiB,CAAC;IAC3F;IACAqC,QAAQ,CAAC;AACX,EAAC"}
@@ -4,13 +4,13 @@ import type GraphQL from 'graphql';
4
4
  import type { JSONSchema4 } from 'json-schema';
5
5
  import type { DestinationStream, LoggerOptions } from 'pino';
6
6
  import type React from 'react';
7
- import type { JSX } from 'react';
8
7
  import type { default as sharp } from 'sharp';
9
8
  import type { DeepRequired } from 'ts-essentials';
10
9
  import type { RichTextAdapterProvider } from '../admin/RichText.js';
11
- import type { DocumentTab, RichTextAdapter } from '../admin/types.js';
12
- import type { AdminView, ServerSideEditViewProps } from '../admin/views/types.js';
10
+ import type { DocumentTabConfig, RichTextAdapter } from '../admin/types.js';
11
+ import type { AdminViewConfig, ServerSideEditViewProps } from '../admin/views/types.js';
13
12
  import type { Permissions } from '../auth/index.js';
13
+ import type { AddToImportMap, ImportMap, Imports, InternalImportMap } from '../bin/generateImportMap/index.js';
14
14
  import type { AfterErrorHook, Collection, CollectionConfig, SanitizedCollectionConfig } from '../collections/config/types.js';
15
15
  import type { DatabaseAdapterResult } from '../database/types.js';
16
16
  import type { EmailAdapter, SendEmailOptions } from '../email/types.js';
@@ -18,6 +18,29 @@ import type { GlobalConfig, Globals, SanitizedGlobalConfig } from '../globals/co
18
18
  import type { Payload, TypedUser } from '../index.js';
19
19
  import type { PayloadRequest, Where } from '../types/index.js';
20
20
  import type { PayloadLogger } from '../utilities/logger.js';
21
+ /**
22
+ * The string path pointing to the React component. If one of the generics is `never`, you effectively mark it as a server-only or client-only component.
23
+ *
24
+ * If the path is an empty string, it will be treated as () => null
25
+ */
26
+ export type PayloadComponent<TComponentServerProps extends never | object = Record<string, any>, TComponentClientProps extends never | object = Record<string, any>> = RawPayloadComponent<TComponentServerProps, TComponentClientProps> | string;
27
+ export type RawPayloadComponent<TComponentServerProps extends never | object = Record<string, any>, TComponentClientProps extends never | object = Record<string, any>> = {
28
+ clientProps?: TComponentClientProps | object;
29
+ exportName?: string;
30
+ path: string;
31
+ serverProps?: TComponentServerProps | object;
32
+ };
33
+ export type PayloadComponentProps<TPayloadComponent> = TPayloadComponent extends RawPayloadComponent<infer TComponentServerProps, infer TComponentClientProps> ? TComponentClientProps | TComponentServerProps : never;
34
+ export type PayloadClientComponentProps<TPayloadComponent> = TPayloadComponent extends RawPayloadComponent<infer _, infer TComponentClientProps> ? TComponentClientProps : never;
35
+ export type PayloadServerComponentProps<TPayloadComponent> = TPayloadComponent extends RawPayloadComponent<infer TComponentServerProps, infer _> ? TComponentServerProps : never;
36
+ export type PayloadReactComponent<TPayloadComponent> = React.FC<PayloadComponentProps<TPayloadComponent>>;
37
+ export type PayloadClientReactComponent<TPayloadComponent> = TPayloadComponent extends RawPayloadComponent<infer _, infer TComponentClientProps> ? TComponentClientProps extends never ? never : React.FC<TComponentClientProps> : never;
38
+ export type PayloadServerReactComponent<TPayloadComponent> = TPayloadComponent extends RawPayloadComponent<infer TComponentServerProps, infer _> ? TComponentServerProps extends never ? never : React.FC<TComponentServerProps> : never;
39
+ export type ResolvedComponent<TComponentServerProps extends never | object, TComponentClientProps extends never | object> = {
40
+ Component: React.FC<TComponentClientProps | TComponentServerProps>;
41
+ clientProps?: TComponentClientProps;
42
+ serverProps?: TComponentServerProps;
43
+ };
21
44
  export type BinScriptConfig = {
22
45
  key: string;
23
46
  scriptPath: string;
@@ -77,6 +100,9 @@ export type IconConfig = {
77
100
  rel?: string;
78
101
  sizes?: string;
79
102
  type?: string;
103
+ /**
104
+ * URL of the icon to use. You can use a relative path from the public folder (see https://nextjs.org/docs/app/building-your-application/optimizing/static-assets) or an absolute URL.
105
+ */
80
106
  url: string;
81
107
  };
82
108
  export type MetaConfig = {
@@ -137,7 +163,7 @@ export type GraphQLInfo = {
137
163
  name: string;
138
164
  };
139
165
  collections: {
140
- [slug: number | string | symbol]: Collection;
166
+ [slug: string]: Collection;
141
167
  };
142
168
  globals: Globals;
143
169
  types: {
@@ -168,6 +194,7 @@ export type InitOptions = {
168
194
  * Disable running of the `onInit` function
169
195
  */
170
196
  disableOnInit?: boolean;
197
+ importMap?: ImportMap;
171
198
  /**
172
199
  * A previously instantiated logger instance. Must conform to the PayloadLogger interface which uses Pino
173
200
  * This allows you to bring your own logger instance and let payload use it
@@ -250,30 +277,22 @@ export type Endpoint = {
250
277
  */
251
278
  root?: never;
252
279
  };
253
- export type EditViewComponent = React.ComponentType<ServerSideEditViewProps>;
280
+ export type EditViewComponent = PayloadComponent<ServerSideEditViewProps>;
254
281
  export type EditViewConfig = {
282
+ Component: EditViewComponent;
283
+ path?: string;
284
+ } | {
285
+ actions?: CustomComponent[];
286
+ } | {
287
+ path?: string;
255
288
  /**
256
- * Add a new Edit view to the admin panel
289
+ * Add a new Edit View to the admin panel
257
290
  * i.e. you can render a custom view that has no tab, if desired
258
291
  * Or override a specific properties of an existing one
259
292
  * i.e. you can customize the `Default` view tab label, if desired
260
293
  */
261
- Tab?: DocumentTab;
262
- path?: string;
263
- } | {
264
- Component: EditViewComponent;
265
- path: string;
266
- } | {
267
- actions?: CustomComponent[];
294
+ tab?: DocumentTabConfig;
268
295
  };
269
- /**
270
- * Override existing views
271
- * i.e. Dashboard, Account, API, LivePreview, etc.
272
- * Path is not available here
273
- * All Tab properties become optional
274
- * i.e. you can change just the label, if desired
275
- */
276
- export type EditView = EditViewComponent | EditViewConfig;
277
296
  export type ServerProps = {
278
297
  [key: string]: unknown;
279
298
  i18n: I18nClient;
@@ -289,7 +308,7 @@ export type ServerProps = {
289
308
  user?: TypedUser;
290
309
  };
291
310
  export declare const serverProps: (keyof ServerProps)[];
292
- export type CustomComponent<TAdditionalProps extends any = any> = React.ComponentType<Partial<ServerProps> & TAdditionalProps>;
311
+ export type CustomComponent<TAdditionalProps extends object = Record<string, any>> = PayloadComponent<ServerProps & TAdditionalProps, TAdditionalProps>;
293
312
  export type Locale = {
294
313
  /**
295
314
  * value of supported locale
@@ -351,12 +370,26 @@ export type LocalizationConfig = Prettify<LocalizationConfigWithLabels | Localiz
351
370
  export type LabelFunction = ({ t }: {
352
371
  t: TFunction;
353
372
  }) => string;
354
- export type LabelStatic = Record<string, string> | string;
373
+ export type StaticLabel = Record<string, string> | string;
355
374
  export type SharpDependency = (input?: ArrayBuffer | Buffer | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | string, options?: sharp.SharpOptions) => sharp.Sharp;
356
375
  export type CORSConfig = {
357
376
  headers?: string[];
358
377
  origins: '*' | string[];
359
378
  };
379
+ export type AdminFunction = {
380
+ args?: object;
381
+ path: string;
382
+ type: 'function';
383
+ };
384
+ export type AdminComponent = {
385
+ clientProps?: object;
386
+ path: string;
387
+ serverProps?: object;
388
+ type: 'component';
389
+ };
390
+ export interface AdminDependencies {
391
+ [key: string]: AdminComponent | AdminFunction;
392
+ }
360
393
  /**
361
394
  * This is the central configuration
362
395
  *
@@ -383,7 +416,9 @@ export type Config = {
383
416
  username?: string;
384
417
  } | false;
385
418
  /** Set account profile picture. Options: gravatar, default or a custom React component. */
386
- avatar?: 'default' | 'gravatar' | React.ComponentType<any>;
419
+ avatar?: 'default' | 'gravatar' | {
420
+ Component: PayloadComponent<never>;
421
+ };
387
422
  /**
388
423
  * Add extra and/or replace built-in components with custom components
389
424
  *
@@ -437,7 +472,9 @@ export type Config = {
437
472
  /**
438
473
  * Wrap the admin dashboard in custom context providers
439
474
  */
440
- providers?: React.ComponentType<{
475
+ providers?: PayloadComponent<{
476
+ children?: React.ReactNode;
477
+ }, {
441
478
  children?: React.ReactNode;
442
479
  }>[];
443
480
  /**
@@ -448,19 +485,48 @@ export type Config = {
448
485
  */
449
486
  views?: {
450
487
  /** Add custom admin views */
451
- [key: string]: AdminView;
488
+ [key: string]: AdminViewConfig;
452
489
  /** Replace the account screen */
453
- Account?: AdminView;
490
+ Account?: AdminViewConfig;
454
491
  /** Replace the admin homepage */
455
- Dashboard?: AdminView;
492
+ Dashboard?: AdminViewConfig;
456
493
  };
457
494
  };
458
495
  /** Extension point to add your custom data. Available in server and client. */
459
496
  custom?: Record<string, any>;
460
497
  /** Global date format that will be used for all dates in the Admin panel. Any valid date-fns format pattern can be used. */
461
498
  dateFormat?: string;
499
+ /**
500
+ * Each entry in this map generates an entry in the importMap,
501
+ * as well as an entry in the componentMap if the type of the
502
+ * dependency is 'component'
503
+ */
504
+ dependencies?: AdminDependencies;
462
505
  /** If set to true, the entire Admin panel will be disabled. */
463
506
  disable?: boolean;
507
+ importMap?: {
508
+ /**
509
+ * Automatically generate component map during development
510
+ * @default true
511
+ */
512
+ autoGenerate?: boolean;
513
+ /** The base directory for component paths starting with /.
514
+ *
515
+ * By default, this is process.cwd()
516
+ **/
517
+ baseDir?: string;
518
+ /**
519
+ * You can use generators to add custom components to the component import map.
520
+ * This allows you to import custom components in the admin panel.
521
+ */
522
+ generators?: Array<(props: {
523
+ addToImportMap: AddToImportMap;
524
+ baseDir: string;
525
+ config: SanitizedConfig;
526
+ importMap: InternalImportMap;
527
+ imports: Imports;
528
+ }) => void>;
529
+ };
464
530
  livePreview?: {
465
531
  collections?: string[];
466
532
  globals?: string[];
@@ -496,12 +562,6 @@ export type Config = {
496
562
  * @see https://payloadcms.com/docs/configuration/collections#collection-configs
497
563
  */
498
564
  collections?: CollectionConfig[];
499
- /**
500
- * Replace the built-in components with custom ones
501
- */
502
- components?: {
503
- [key: string]: (() => JSX.Element) | JSX.Element;
504
- };
505
565
  /**
506
566
  * Prefix a string to all cookies that Payload sets.
507
567
  *
@@ -691,26 +751,25 @@ export type SanitizedConfig = {
691
751
  adapters: string[];
692
752
  } & ExpressFileUploadOptions;
693
753
  } & Omit<DeepRequired<Config>, 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'localization' | 'upload'>;
694
- export type EditConfig = ({
754
+ export type EditConfig = {
755
+ [key: string]: Partial<EditViewConfig>;
695
756
  /**
696
757
  * Replace or modify individual nested routes, or add new ones:
697
- * + `Default` - `/admin/collections/:collection/:id`
698
- * + `API` - `/admin/collections/:collection/:id/api`
699
- * + `LivePreview` - `/admin/collections/:collection/:id/preview`
700
- * + `References` - `/admin/collections/:collection/:id/references`
701
- * + `Relationships` - `/admin/collections/:collection/:id/relationships`
702
- * + `Versions` - `/admin/collections/:collection/:id/versions`
703
- * + `Version` - `/admin/collections/:collection/:id/versions/:version`
704
- * + `CustomView` - `/admin/collections/:collection/:id/:path`
705
- */
706
- API?: EditViewComponent | Partial<EditViewConfig>;
707
- Default?: EditViewComponent | Partial<EditViewConfig>;
708
- LivePreview?: EditViewComponent | Partial<EditViewConfig>;
709
- Version?: EditViewComponent | Partial<EditViewConfig>;
710
- Versions?: EditViewComponent | Partial<EditViewConfig>;
711
- } | {
712
- [key: string]: EditViewConfig;
713
- }) | EditViewComponent;
758
+ * + `default` - `/admin/collections/:collection/:id`
759
+ * + `api` - `/admin/collections/:collection/:id/api`
760
+ * + `livePreview` - `/admin/collections/:collection/:id/preview`
761
+ * + `references` - `/admin/collections/:collection/:id/references`
762
+ * + `relationships` - `/admin/collections/:collection/:id/relationships`
763
+ * + `versions` - `/admin/collections/:collection/:id/versions`
764
+ * + `version` - `/admin/collections/:collection/:id/versions/:version`
765
+ * + `customView` - `/admin/collections/:collection/:id/:path`
766
+ */
767
+ api?: Partial<EditViewConfig>;
768
+ default?: Partial<EditViewConfig>;
769
+ livePreview?: Partial<EditViewConfig>;
770
+ version?: Partial<EditViewConfig>;
771
+ versions?: Partial<EditViewConfig>;
772
+ };
714
773
  export type EntityDescriptionComponent = CustomComponent;
715
774
  export type EntityDescriptionFunction = ({ t }: {
716
775
  t: TFunction;