payload 4.0.0-internal.cd47d20 → 4.0.0-internal.ce66a41

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 (389) hide show
  1. package/bin.js +3 -14
  2. package/dist/admin/RichText.d.ts +22 -0
  3. package/dist/admin/RichText.d.ts.map +1 -1
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/forms/Label.d.ts +2 -0
  6. package/dist/admin/forms/Label.d.ts.map +1 -1
  7. package/dist/admin/forms/Label.js.map +1 -1
  8. package/dist/admin/types.d.ts +2 -2
  9. package/dist/admin/types.d.ts.map +1 -1
  10. package/dist/admin/types.js.map +1 -1
  11. package/dist/admin/views/list.d.ts +9 -0
  12. package/dist/admin/views/list.d.ts.map +1 -1
  13. package/dist/admin/views/list.js.map +1 -1
  14. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  15. package/dist/auth/operations/registerFirstUser.js.map +1 -1
  16. package/dist/auth/types.d.ts +10 -2
  17. package/dist/auth/types.d.ts.map +1 -1
  18. package/dist/auth/types.js.map +1 -1
  19. package/dist/cli/commands/collections/getCollectionSchema.d.ts.map +1 -1
  20. package/dist/cli/commands/collections/getCollectionSchema.js +12 -2
  21. package/dist/cli/commands/collections/getCollectionSchema.js.map +1 -1
  22. package/dist/cli/commands/globals/getGlobalSchema.d.ts.map +1 -1
  23. package/dist/cli/commands/globals/getGlobalSchema.js +12 -2
  24. package/dist/cli/commands/globals/getGlobalSchema.js.map +1 -1
  25. package/dist/cli/runtime/createRuntime.js +1 -1
  26. package/dist/cli/runtime/createRuntime.js.map +1 -1
  27. package/dist/collections/config/client.d.ts +2 -2
  28. package/dist/collections/config/client.d.ts.map +1 -1
  29. package/dist/collections/config/client.js +4 -4
  30. package/dist/collections/config/client.js.map +1 -1
  31. package/dist/collections/config/sanitize.d.ts.map +1 -1
  32. package/dist/collections/config/sanitize.js +11 -1
  33. package/dist/collections/config/sanitize.js.map +1 -1
  34. package/dist/collections/config/types.d.ts +20 -8
  35. package/dist/collections/config/types.d.ts.map +1 -1
  36. package/dist/collections/config/types.js.map +1 -1
  37. package/dist/collections/config/useAsThumbnail.d.ts +6 -0
  38. package/dist/collections/config/useAsThumbnail.d.ts.map +1 -0
  39. package/dist/collections/config/useAsThumbnail.js +21 -0
  40. package/dist/collections/config/useAsThumbnail.js.map +1 -0
  41. package/dist/collections/operations/local/create.d.ts +31 -4
  42. package/dist/collections/operations/local/create.d.ts.map +1 -1
  43. package/dist/collections/operations/local/create.js.map +1 -1
  44. package/dist/collections/operations/local/find.d.ts +4 -2
  45. package/dist/collections/operations/local/find.d.ts.map +1 -1
  46. package/dist/collections/operations/local/find.js.map +1 -1
  47. package/dist/collections/operations/local/findByID.d.ts +2 -4
  48. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  49. package/dist/collections/operations/local/findByID.js.map +1 -1
  50. package/dist/config/assertNoLegacySharpConfig.d.ts +21 -0
  51. package/dist/config/assertNoLegacySharpConfig.d.ts.map +1 -0
  52. package/dist/config/assertNoLegacySharpConfig.js +50 -0
  53. package/dist/config/assertNoLegacySharpConfig.js.map +1 -0
  54. package/dist/config/build.d.ts.map +1 -1
  55. package/dist/config/build.js +21 -0
  56. package/dist/config/build.js.map +1 -1
  57. package/dist/config/client.d.ts +1 -1
  58. package/dist/config/client.d.ts.map +1 -1
  59. package/dist/config/client.js +3 -2
  60. package/dist/config/client.js.map +1 -1
  61. package/dist/config/defaults.js +3 -1
  62. package/dist/config/defaults.js.map +1 -1
  63. package/dist/config/sanitize.d.ts.map +1 -1
  64. package/dist/config/sanitize.js +56 -3
  65. package/dist/config/sanitize.js.map +1 -1
  66. package/dist/config/types.d.ts +31 -11
  67. package/dist/config/types.d.ts.map +1 -1
  68. package/dist/config/types.js.map +1 -1
  69. package/dist/database/createDatabaseAdapter.d.ts +1 -1
  70. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  71. package/dist/database/createDatabaseAdapter.js +4 -0
  72. package/dist/database/createDatabaseAdapter.js.map +1 -1
  73. package/dist/database/createSchemaBuildContext.d.ts +12 -0
  74. package/dist/database/createSchemaBuildContext.d.ts.map +1 -0
  75. package/dist/database/createSchemaBuildContext.js +24 -0
  76. package/dist/database/createSchemaBuildContext.js.map +1 -0
  77. package/dist/database/defaultBatchProcessing.d.ts +3 -0
  78. package/dist/database/defaultBatchProcessing.d.ts.map +1 -0
  79. package/dist/database/defaultBatchProcessing.js +93 -0
  80. package/dist/database/defaultBatchProcessing.js.map +1 -0
  81. package/dist/database/defaultCopy.d.ts +3 -0
  82. package/dist/database/defaultCopy.d.ts.map +1 -0
  83. package/dist/database/defaultCopy.js +73 -0
  84. package/dist/database/defaultCopy.js.map +1 -0
  85. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  86. package/dist/database/sanitizeJoinQuery.js +2 -1
  87. package/dist/database/sanitizeJoinQuery.js.map +1 -1
  88. package/dist/database/types.d.ts +53 -0
  89. package/dist/database/types.d.ts.map +1 -1
  90. package/dist/database/types.js.map +1 -1
  91. package/dist/errors/APIError.d.ts +4 -0
  92. package/dist/errors/APIError.d.ts.map +1 -1
  93. package/dist/errors/APIError.js +5 -1
  94. package/dist/errors/APIError.js.map +1 -1
  95. package/dist/errors/AuthenticationError.d.ts.map +1 -1
  96. package/dist/errors/AuthenticationError.js +1 -0
  97. package/dist/errors/AuthenticationError.js.map +1 -1
  98. package/dist/errors/DuplicateCollection.d.ts.map +1 -1
  99. package/dist/errors/DuplicateCollection.js +1 -0
  100. package/dist/errors/DuplicateCollection.js.map +1 -1
  101. package/dist/errors/DuplicateFieldName.d.ts.map +1 -1
  102. package/dist/errors/DuplicateFieldName.js +1 -0
  103. package/dist/errors/DuplicateFieldName.js.map +1 -1
  104. package/dist/errors/DuplicateGlobal.d.ts.map +1 -1
  105. package/dist/errors/DuplicateGlobal.js +1 -0
  106. package/dist/errors/DuplicateGlobal.js.map +1 -1
  107. package/dist/errors/ErrorDeletingFile.d.ts.map +1 -1
  108. package/dist/errors/ErrorDeletingFile.js +1 -0
  109. package/dist/errors/ErrorDeletingFile.js.map +1 -1
  110. package/dist/errors/FileRetrievalError.d.ts.map +1 -1
  111. package/dist/errors/FileRetrievalError.js +1 -0
  112. package/dist/errors/FileRetrievalError.js.map +1 -1
  113. package/dist/errors/FileUploadError.d.ts.map +1 -1
  114. package/dist/errors/FileUploadError.js +1 -0
  115. package/dist/errors/FileUploadError.js.map +1 -1
  116. package/dist/errors/Forbidden.d.ts.map +1 -1
  117. package/dist/errors/Forbidden.js +1 -0
  118. package/dist/errors/Forbidden.js.map +1 -1
  119. package/dist/errors/InvalidConfiguration.d.ts.map +1 -1
  120. package/dist/errors/InvalidConfiguration.js +1 -0
  121. package/dist/errors/InvalidConfiguration.js.map +1 -1
  122. package/dist/errors/InvalidFieldJoin.d.ts.map +1 -1
  123. package/dist/errors/InvalidFieldJoin.js +1 -0
  124. package/dist/errors/InvalidFieldJoin.js.map +1 -1
  125. package/dist/errors/InvalidFieldName.d.ts.map +1 -1
  126. package/dist/errors/InvalidFieldName.js +1 -0
  127. package/dist/errors/InvalidFieldName.js.map +1 -1
  128. package/dist/errors/InvalidFieldRelationship.d.ts.map +1 -1
  129. package/dist/errors/InvalidFieldRelationship.js +1 -0
  130. package/dist/errors/InvalidFieldRelationship.js.map +1 -1
  131. package/dist/errors/InvalidSchema.d.ts.map +1 -1
  132. package/dist/errors/InvalidSchema.js +1 -0
  133. package/dist/errors/InvalidSchema.js.map +1 -1
  134. package/dist/errors/Locked.d.ts.map +1 -1
  135. package/dist/errors/Locked.js +1 -0
  136. package/dist/errors/Locked.js.map +1 -1
  137. package/dist/errors/LockedAuth.d.ts.map +1 -1
  138. package/dist/errors/LockedAuth.js +1 -0
  139. package/dist/errors/LockedAuth.js.map +1 -1
  140. package/dist/errors/MissingCollectionLabel.d.ts.map +1 -1
  141. package/dist/errors/MissingCollectionLabel.js +1 -0
  142. package/dist/errors/MissingCollectionLabel.js.map +1 -1
  143. package/dist/errors/MissingEditorProp.d.ts.map +1 -1
  144. package/dist/errors/MissingEditorProp.js +1 -0
  145. package/dist/errors/MissingEditorProp.js.map +1 -1
  146. package/dist/errors/MissingFieldInputOptions.d.ts.map +1 -1
  147. package/dist/errors/MissingFieldInputOptions.js +1 -0
  148. package/dist/errors/MissingFieldInputOptions.js.map +1 -1
  149. package/dist/errors/MissingFieldType.d.ts.map +1 -1
  150. package/dist/errors/MissingFieldType.js +1 -0
  151. package/dist/errors/MissingFieldType.js.map +1 -1
  152. package/dist/errors/MissingFile.d.ts.map +1 -1
  153. package/dist/errors/MissingFile.js +1 -0
  154. package/dist/errors/MissingFile.js.map +1 -1
  155. package/dist/errors/NotFound.d.ts.map +1 -1
  156. package/dist/errors/NotFound.js +1 -0
  157. package/dist/errors/NotFound.js.map +1 -1
  158. package/dist/errors/QueryError.d.ts.map +1 -1
  159. package/dist/errors/QueryError.js +1 -0
  160. package/dist/errors/QueryError.js.map +1 -1
  161. package/dist/errors/ReservedFieldName.d.ts.map +1 -1
  162. package/dist/errors/ReservedFieldName.js +1 -0
  163. package/dist/errors/ReservedFieldName.js.map +1 -1
  164. package/dist/errors/TimestampsRequired.d.ts.map +1 -1
  165. package/dist/errors/TimestampsRequired.js +1 -0
  166. package/dist/errors/TimestampsRequired.js.map +1 -1
  167. package/dist/errors/TransformerContractError.d.ts +11 -0
  168. package/dist/errors/TransformerContractError.d.ts.map +1 -0
  169. package/dist/errors/TransformerContractError.js +15 -0
  170. package/dist/errors/TransformerContractError.js.map +1 -0
  171. package/dist/errors/UnauthorizedError.d.ts.map +1 -1
  172. package/dist/errors/UnauthorizedError.js +1 -0
  173. package/dist/errors/UnauthorizedError.js.map +1 -1
  174. package/dist/errors/UnverifiedEmail.d.ts.map +1 -1
  175. package/dist/errors/UnverifiedEmail.js +1 -0
  176. package/dist/errors/UnverifiedEmail.js.map +1 -1
  177. package/dist/errors/ValidationError.d.ts.map +1 -1
  178. package/dist/errors/ValidationError.js +1 -0
  179. package/dist/errors/ValidationError.js.map +1 -1
  180. package/dist/errors/index.d.ts +1 -0
  181. package/dist/errors/index.d.ts.map +1 -1
  182. package/dist/errors/index.js +1 -0
  183. package/dist/errors/index.js.map +1 -1
  184. package/dist/exports/internal.d.ts +6 -0
  185. package/dist/exports/internal.d.ts.map +1 -1
  186. package/dist/exports/internal.js +4 -0
  187. package/dist/exports/internal.js.map +1 -1
  188. package/dist/exports/shared.d.ts +2 -0
  189. package/dist/exports/shared.d.ts.map +1 -1
  190. package/dist/exports/shared.js +2 -0
  191. package/dist/exports/shared.js.map +1 -1
  192. package/dist/fields/config/reservedFieldNames.js.map +1 -1
  193. package/dist/globals/config/client.d.ts +1 -1
  194. package/dist/globals/config/client.d.ts.map +1 -1
  195. package/dist/globals/config/client.js +1 -0
  196. package/dist/globals/config/client.js.map +1 -1
  197. package/dist/globals/config/types.d.ts +14 -8
  198. package/dist/globals/config/types.d.ts.map +1 -1
  199. package/dist/globals/config/types.js.map +1 -1
  200. package/dist/globals/operations/local/findOne.d.ts +4 -7
  201. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  202. package/dist/globals/operations/local/findOne.js.map +1 -1
  203. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -1
  204. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js +71 -33
  205. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js.map +1 -1
  206. package/dist/hierarchy/resolveHierarchyCollections.js +29 -20
  207. package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -1
  208. package/dist/index.bundled.d.ts +380 -124
  209. package/dist/index.d.ts +10 -10
  210. package/dist/index.d.ts.map +1 -1
  211. package/dist/index.js +2 -5
  212. package/dist/index.js.map +1 -1
  213. package/dist/llm-instructions/addLLMInstructions.d.ts +5 -0
  214. package/dist/llm-instructions/addLLMInstructions.d.ts.map +1 -0
  215. package/dist/llm-instructions/addLLMInstructions.js +31 -0
  216. package/dist/llm-instructions/addLLMInstructions.js.map +1 -0
  217. package/dist/llm-instructions/getInstructionTargetAccess.d.ts +8 -0
  218. package/dist/llm-instructions/getInstructionTargetAccess.d.ts.map +1 -0
  219. package/dist/llm-instructions/getInstructionTargetAccess.js +40 -0
  220. package/dist/llm-instructions/getInstructionTargetAccess.js.map +1 -0
  221. package/dist/llm-instructions/getInstructions.d.ts +8 -0
  222. package/dist/llm-instructions/getInstructions.d.ts.map +1 -0
  223. package/dist/llm-instructions/getInstructions.js +46 -0
  224. package/dist/llm-instructions/getInstructions.js.map +1 -0
  225. package/dist/llm-instructions/getInstructionsCollection.d.ts +6 -0
  226. package/dist/llm-instructions/getInstructionsCollection.d.ts.map +1 -0
  227. package/dist/llm-instructions/getInstructionsCollection.js +367 -0
  228. package/dist/llm-instructions/getInstructionsCollection.js.map +1 -0
  229. package/dist/llm-instructions/shared.d.ts +11 -0
  230. package/dist/llm-instructions/shared.d.ts.map +1 -0
  231. package/dist/llm-instructions/shared.js +3 -0
  232. package/dist/llm-instructions/shared.js.map +1 -0
  233. package/dist/preferences/types.d.ts +2 -0
  234. package/dist/preferences/types.d.ts.map +1 -1
  235. package/dist/preferences/types.js.map +1 -1
  236. package/dist/types/index.d.ts +6 -2
  237. package/dist/types/index.d.ts.map +1 -1
  238. package/dist/types/index.js.map +1 -1
  239. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  240. package/dist/uploads/checkFileAccess.js +5 -18
  241. package/dist/uploads/checkFileAccess.js.map +1 -1
  242. package/dist/uploads/deleteAssociatedFiles.js +2 -2
  243. package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
  244. package/dist/uploads/docWithFilenameExists.js +2 -2
  245. package/dist/uploads/docWithFilenameExists.js.map +1 -1
  246. package/dist/uploads/endpoints/getFile.d.ts +17 -0
  247. package/dist/uploads/endpoints/getFile.d.ts.map +1 -1
  248. package/dist/uploads/endpoints/getFile.js +42 -10
  249. package/dist/uploads/endpoints/getFile.js.map +1 -1
  250. package/dist/uploads/fetchAPI-stream-file/index.d.ts +4 -1
  251. package/dist/uploads/fetchAPI-stream-file/index.d.ts.map +1 -1
  252. package/dist/uploads/fetchAPI-stream-file/index.js +9 -2
  253. package/dist/uploads/fetchAPI-stream-file/index.js.map +1 -1
  254. package/dist/uploads/generateFileData.d.ts +4 -4
  255. package/dist/uploads/generateFileData.d.ts.map +1 -1
  256. package/dist/uploads/generateFileData.js +186 -178
  257. package/dist/uploads/generateFileData.js.map +1 -1
  258. package/dist/uploads/generateImageSizeFilename.d.ts.map +1 -0
  259. package/dist/uploads/generateImageSizeFilename.js.map +1 -0
  260. package/dist/uploads/generatePayloadFileURL.d.ts +25 -0
  261. package/dist/uploads/generatePayloadFileURL.d.ts.map +1 -0
  262. package/dist/uploads/generatePayloadFileURL.js +64 -0
  263. package/dist/uploads/generatePayloadFileURL.js.map +1 -0
  264. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  265. package/dist/uploads/getBaseFields.js +9 -8
  266. package/dist/uploads/getBaseFields.js.map +1 -1
  267. package/dist/uploads/getFileContentRequirement.d.ts +13 -6
  268. package/dist/uploads/getFileContentRequirement.d.ts.map +1 -1
  269. package/dist/uploads/getFileContentRequirement.js +13 -8
  270. package/dist/uploads/getFileContentRequirement.js.map +1 -1
  271. package/dist/uploads/getFileFromUploadInstructions.d.ts.map +1 -1
  272. package/dist/uploads/getFileFromUploadInstructions.js +28 -0
  273. package/dist/uploads/getFileFromUploadInstructions.js.map +1 -1
  274. package/dist/uploads/getImageSize.d.ts +7 -11
  275. package/dist/uploads/getImageSize.d.ts.map +1 -1
  276. package/dist/uploads/getImageSize.js +5 -15
  277. package/dist/uploads/getImageSize.js.map +1 -1
  278. package/dist/uploads/parseFilename.d.ts.map +1 -0
  279. package/dist/uploads/parseFilename.js.map +1 -0
  280. package/dist/uploads/probeImageSize.d.ts +2 -2
  281. package/dist/uploads/probeImageSize.js +2 -2
  282. package/dist/uploads/probeImageSize.js.map +1 -1
  283. package/dist/uploads/sanitizeUploadData.js +11 -11
  284. package/dist/uploads/sanitizeUploadData.js.map +1 -1
  285. package/dist/uploads/transformers/createLazySourceGetter.d.ts +15 -0
  286. package/dist/uploads/transformers/createLazySourceGetter.d.ts.map +1 -0
  287. package/dist/uploads/transformers/createLazySourceGetter.js +22 -0
  288. package/dist/uploads/transformers/createLazySourceGetter.js.map +1 -0
  289. package/dist/uploads/transformers/finalizeFileResponse.d.ts +14 -0
  290. package/dist/uploads/transformers/finalizeFileResponse.d.ts.map +1 -0
  291. package/dist/uploads/transformers/finalizeFileResponse.js +49 -0
  292. package/dist/uploads/transformers/finalizeFileResponse.js.map +1 -0
  293. package/dist/uploads/transformers/getSourceFileResponse.d.ts +16 -0
  294. package/dist/uploads/transformers/getSourceFileResponse.d.ts.map +1 -0
  295. package/dist/uploads/transformers/getSourceFileResponse.js +17 -0
  296. package/dist/uploads/transformers/getSourceFileResponse.js.map +1 -0
  297. package/dist/uploads/transformers/handleDynamicFileRequest.d.ts +18 -0
  298. package/dist/uploads/transformers/handleDynamicFileRequest.d.ts.map +1 -0
  299. package/dist/uploads/transformers/handleDynamicFileRequest.js +277 -0
  300. package/dist/uploads/transformers/handleDynamicFileRequest.js.map +1 -0
  301. package/dist/uploads/transformers/matchesMimeType.d.ts +11 -0
  302. package/dist/uploads/transformers/matchesMimeType.d.ts.map +1 -0
  303. package/dist/uploads/transformers/matchesMimeType.js +39 -0
  304. package/dist/uploads/transformers/matchesMimeType.js.map +1 -0
  305. package/dist/uploads/transformers/planTransformerPipeline.d.ts +26 -0
  306. package/dist/uploads/transformers/planTransformerPipeline.d.ts.map +1 -0
  307. package/dist/uploads/transformers/planTransformerPipeline.js +36 -0
  308. package/dist/uploads/transformers/planTransformerPipeline.js.map +1 -0
  309. package/dist/uploads/transformers/resolveUploadDocument.d.ts +46 -0
  310. package/dist/uploads/transformers/resolveUploadDocument.d.ts.map +1 -0
  311. package/dist/uploads/transformers/resolveUploadDocument.js +77 -0
  312. package/dist/uploads/transformers/resolveUploadDocument.js.map +1 -0
  313. package/dist/uploads/transformers/transformUploadFile.d.ts +18 -0
  314. package/dist/uploads/transformers/transformUploadFile.d.ts.map +1 -0
  315. package/dist/uploads/transformers/transformUploadFile.js +30 -0
  316. package/dist/uploads/transformers/transformUploadFile.js.map +1 -0
  317. package/dist/uploads/transformers/types.d.ts +71 -0
  318. package/dist/uploads/transformers/types.d.ts.map +1 -0
  319. package/dist/uploads/transformers/types.js +6 -0
  320. package/dist/uploads/transformers/types.js.map +1 -0
  321. package/dist/uploads/transformers/uploadTransformerBridge.d.ts +48 -0
  322. package/dist/uploads/transformers/uploadTransformerBridge.d.ts.map +1 -0
  323. package/dist/uploads/transformers/uploadTransformerBridge.js +22 -0
  324. package/dist/uploads/transformers/uploadTransformerBridge.js.map +1 -0
  325. package/dist/uploads/transformers/validateTransformers.d.ts +11 -0
  326. package/dist/uploads/transformers/validateTransformers.d.ts.map +1 -0
  327. package/dist/uploads/transformers/validateTransformers.js +67 -0
  328. package/dist/uploads/transformers/validateTransformers.js.map +1 -0
  329. package/dist/uploads/transformers/withFileTransformAccessContext.d.ts +13 -0
  330. package/dist/uploads/transformers/withFileTransformAccessContext.d.ts.map +1 -0
  331. package/dist/uploads/transformers/withFileTransformAccessContext.js +18 -0
  332. package/dist/uploads/transformers/withFileTransformAccessContext.js.map +1 -0
  333. package/dist/uploads/types.d.ts +28 -69
  334. package/dist/uploads/types.d.ts.map +1 -1
  335. package/dist/uploads/types.js.map +1 -1
  336. package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
  337. package/dist/utilities/appendUploadSelectFields.js +4 -3
  338. package/dist/utilities/appendUploadSelectFields.js.map +1 -1
  339. package/dist/utilities/batchProcessing.d.ts +23 -0
  340. package/dist/utilities/batchProcessing.d.ts.map +1 -0
  341. package/dist/utilities/batchProcessing.js +34 -0
  342. package/dist/utilities/batchProcessing.js.map +1 -0
  343. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  344. package/dist/utilities/configToJSONSchema.js +9 -0
  345. package/dist/utilities/configToJSONSchema.js.map +1 -1
  346. package/dist/utilities/flattenAllFields.js +1 -1
  347. package/dist/utilities/flattenAllFields.js.map +1 -1
  348. package/dist/utilities/nextJsDevReloadStrategy.js +4 -1
  349. package/dist/utilities/nextJsDevReloadStrategy.js.map +1 -1
  350. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js +4 -3
  351. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js.map +1 -1
  352. package/package.json +5 -6
  353. package/skills/payload/reference/PLUGIN-DEVELOPMENT.md +3 -3
  354. package/dist/uploads/cropImage.d.ts +0 -30
  355. package/dist/uploads/cropImage.d.ts.map +0 -1
  356. package/dist/uploads/cropImage.js +0 -55
  357. package/dist/uploads/cropImage.js.map +0 -1
  358. package/dist/uploads/image-resizing/createImageSize.d.ts +0 -24
  359. package/dist/uploads/image-resizing/createImageSize.d.ts.map +0 -1
  360. package/dist/uploads/image-resizing/createImageSize.js +0 -23
  361. package/dist/uploads/image-resizing/createImageSize.js.map +0 -1
  362. package/dist/uploads/image-resizing/createImageSizes.d.ts +0 -39
  363. package/dist/uploads/image-resizing/createImageSizes.d.ts.map +0 -1
  364. package/dist/uploads/image-resizing/createImageSizes.js +0 -205
  365. package/dist/uploads/image-resizing/createImageSizes.js.map +0 -1
  366. package/dist/uploads/image-resizing/extractHeightFromImage.d.ts +0 -9
  367. package/dist/uploads/image-resizing/extractHeightFromImage.d.ts.map +0 -1
  368. package/dist/uploads/image-resizing/extractHeightFromImage.js +0 -13
  369. package/dist/uploads/image-resizing/extractHeightFromImage.js.map +0 -1
  370. package/dist/uploads/image-resizing/generateImageSizeFilename.d.ts.map +0 -1
  371. package/dist/uploads/image-resizing/generateImageSizeFilename.js.map +0 -1
  372. package/dist/uploads/image-resizing/getImageResizeAction.d.ts +0 -24
  373. package/dist/uploads/image-resizing/getImageResizeAction.d.ts.map +0 -1
  374. package/dist/uploads/image-resizing/getImageResizeAction.js +0 -56
  375. package/dist/uploads/image-resizing/getImageResizeAction.js.map +0 -1
  376. package/dist/uploads/image-resizing/parseFilename.d.ts.map +0 -1
  377. package/dist/uploads/image-resizing/parseFilename.js.map +0 -1
  378. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts +0 -11
  379. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts.map +0 -1
  380. package/dist/uploads/image-resizing/sanitizeResizeConfig.js +0 -20
  381. package/dist/uploads/image-resizing/sanitizeResizeConfig.js.map +0 -1
  382. package/dist/uploads/optionallyAppendMetadata.d.ts +0 -12
  383. package/dist/uploads/optionallyAppendMetadata.d.ts.map +0 -1
  384. package/dist/uploads/optionallyAppendMetadata.js +0 -17
  385. package/dist/uploads/optionallyAppendMetadata.js.map +0 -1
  386. /package/dist/uploads/{image-resizing/generateImageSizeFilename.d.ts → generateImageSizeFilename.d.ts} +0 -0
  387. /package/dist/uploads/{image-resizing/generateImageSizeFilename.js → generateImageSizeFilename.js} +0 -0
  388. /package/dist/uploads/{image-resizing/parseFilename.d.ts → parseFilename.d.ts} +0 -0
  389. /package/dist/uploads/{image-resizing/parseFilename.js → parseFilename.js} +0 -0
package/bin.js CHANGED
@@ -21,7 +21,7 @@ if (disableTranspile) {
21
21
  await bin()
22
22
  }
23
23
 
24
- void start()
24
+ await start()
25
25
  } else {
26
26
  const filename = fileURLToPath(import.meta.url)
27
27
  const dirname = path.dirname(filename)
@@ -29,17 +29,6 @@ if (disableTranspile) {
29
29
 
30
30
  if (!useSwc) {
31
31
  const start = async () => {
32
- // tsx 4.22.4 uses Node's synchronous `module.registerHooks` API when it is available
33
- // (Node v23.5+). On those versions that code path leaks tsx's internal `?namespace=...`
34
- // query string onto resolved specifiers — including Node built-ins like `node:crypto` —
35
- // which Node then tries to open as a file, failing with ENOENT. Removing `registerHooks`
36
- // forces tsx to fall back to its older async `module.register()` worker path, which does
37
- // not have this bug. See https://github.com/payloadcms/payload/issues/16949
38
- const nodeModule = await import('node:module')
39
- if (typeof nodeModule.default.registerHooks === 'function') {
40
- nodeModule.default.registerHooks = undefined
41
- }
42
-
43
32
  // Use tsx
44
33
  let tsImport = (await import('tsx/esm/api')).tsImport
45
34
 
@@ -47,7 +36,7 @@ if (disableTranspile) {
47
36
  await bin()
48
37
  }
49
38
 
50
- void start()
39
+ await start()
51
40
  } else if (useSwc) {
52
41
  const { register } = await import('node:module')
53
42
 
@@ -64,6 +53,6 @@ if (disableTranspile) {
64
53
  await bin()
65
54
  }
66
55
 
67
- void start()
56
+ await start()
68
57
  }
69
58
  }
@@ -116,6 +116,15 @@ export type RichTextHooks = {
116
116
  beforeValidate?: BeforeValidateRichTextHook[];
117
117
  };
118
118
  type RichTextAdapterBase<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = {
119
+ /** Convert between stored editor data and Markdown using the editor's configured features. */
120
+ converters?: {
121
+ fromMarkdown?: (args: {
122
+ markdown: string;
123
+ }) => Value;
124
+ toMarkdown?: (args: {
125
+ data: Value;
126
+ }) => string;
127
+ };
119
128
  /**
120
129
  * Provide a function that can be used to add items to the import map. This is useful for
121
130
  * making modules available to the client.
@@ -167,6 +176,14 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
167
176
  field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
168
177
  isRequired: boolean;
169
178
  } & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions' | 'variant'>) => JSONSchema4;
179
+ /** Editors configured for specific uses, initialized independently from this editor. */
180
+ presets?: {
181
+ /**
182
+ * Editor to use for LLM instructions collection, with both Markdown converters.
183
+ * This provider should select its own features without inheriting unrestricted root features.
184
+ */
185
+ llmInstructions?: MarkdownRichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>;
186
+ };
170
187
  /**
171
188
  * Provide validation function for the richText field. This function is run the same way
172
189
  * as other field validation functions.
@@ -200,5 +217,10 @@ export type RichTextAdapterProvider<Value extends object = object, AdapterProps
200
217
  isRoot?: boolean;
201
218
  parentIsLocalized: boolean;
202
219
  }) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
220
+ /** A rich-text adapter that supports conversion to and from Markdown. */
221
+ export type MarkdownRichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldProperties = any> = {
222
+ converters: Required<NonNullable<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>['converters']>>;
223
+ } & RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
224
+ export type MarkdownRichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = (args: Parameters<RichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>>[0]) => MarkdownRichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
203
225
  export {};
204
226
  //# sourceMappingURL=RichText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/admin/RichText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACT,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;A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AY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CAAC,EACH,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,EAAE;IACD,MAAM,EAAE,eAAe,CAAA;IACvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KAAK,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAEhE,yEAAyE;AACzE,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,MAAM,GAAG,GAAG,EAC1B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,GAAG,IACxB;IACF,UAAU,EAAE,QAAQ,CAClB,WAAW,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,YAAY,CAAC,CAAC,CACtF,CAAA;CACF,GAAG,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAE9D,MAAM,MAAM,+BAA+B,CACzC,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CACF,IAAI,EAAE,UAAU,CAAC,uBAAuB,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,KACpF,uBAAuB,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n jsonSchema?: (\n args: {\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n isRequired: boolean\n } & Pick<\n FieldsToJSONSchemaArgs,\n | 'collectionIDFieldTypes'\n | 'config'\n | 'i18n'\n | 'interfaceNameDefinitions'\n | 'typeStringDefinitions'\n | 'variant'\n >,\n ) => JSONSchema4\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GA8SrD,WAkBgE"}
1
+ {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /** Convert between stored editor data and Markdown using the editor's configured features. */\n converters?: {\n fromMarkdown?: (args: { markdown: string }) => Value\n toMarkdown?: (args: { data: Value }) => string\n }\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n jsonSchema?: (\n args: {\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n isRequired: boolean\n } & Pick<\n FieldsToJSONSchemaArgs,\n | 'collectionIDFieldTypes'\n | 'config'\n | 'i18n'\n | 'interfaceNameDefinitions'\n | 'typeStringDefinitions'\n | 'variant'\n >,\n ) => JSONSchema4\n /** Editors configured for specific uses, initialized independently from this editor. */\n presets?: {\n /**\n * Editor to use for LLM instructions collection, with both Markdown converters.\n * This provider should select its own features without inheriting unrestricted root features.\n */\n llmInstructions?: MarkdownRichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>\n }\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n\n/** A rich-text adapter that supports conversion to and from Markdown. */\nexport type MarkdownRichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n converters: Required<\n NonNullable<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>['converters']>\n >\n} & RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n\nexport type MarkdownRichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = (\n args: Parameters<RichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>>[0],\n) => MarkdownRichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GA0VrD,WAMuE"}
@@ -3,10 +3,12 @@ import type { Field } from '../../fields/config/types.js';
3
3
  import type { ClientFieldWithOptionalType, ServerComponentProps } from './Field.js';
4
4
  export type GenericLabelProps = {
5
5
  readonly as?: 'h3' | 'label' | 'span';
6
+ readonly hasRequiredAccessibleState?: boolean;
6
7
  readonly hideLocale?: boolean;
7
8
  readonly htmlFor?: string;
8
9
  readonly label?: StaticLabel;
9
10
  readonly localized?: boolean;
11
+ readonly onClick?: React.MouseEventHandler<HTMLElement>;
10
12
  readonly path?: string;
11
13
  readonly required?: boolean;
12
14
  readonly unstyled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Label.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,KAAK,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,MAA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cesContent":["import type { StaticLabel } from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { ClientFieldWithOptionalType, ServerComponentProps } from './Field.js'\n\nexport type GenericLabelProps = {\n readonly as?: 'h3' | 'label' | 'span'\n readonly hideLocale?: boolean\n readonly htmlFor?: string\n readonly label?: StaticLabel\n readonly localized?: boolean\n readonly path?: string\n readonly required?: boolean\n readonly unstyled?: boolean\n}\n\nexport type FieldLabelClientProps<\n TFieldClient extends Partial<ClientFieldWithOptionalType> = Partial<ClientFieldWithOptionalType>,\n> = {\n field?: TFieldClient\n} & GenericLabelProps\n\nexport type FieldLabelServerProps<\n TFieldServer extends Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n clientField: TFieldClient\n readonly field: TFieldServer\n} & GenericLabelProps &\n ServerComponentProps\n\nexport type SanitizedLabelProps<TFieldClient extends ClientFieldWithOptionalType> = Omit<\n FieldLabelClientProps<TFieldClient>,\n 'label' | 'required'\n>\n"],"names":[],"mappings":"AA8BA,WAGC"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Label.ts"],"sourcesContent":["import type { StaticLabel } from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { ClientFieldWithOptionalType, ServerComponentProps } from './Field.js'\n\nexport type GenericLabelProps = {\n readonly as?: 'h3' | 'label' | 'span'\n readonly hasRequiredAccessibleState?: boolean\n readonly hideLocale?: boolean\n readonly htmlFor?: string\n readonly label?: StaticLabel\n readonly localized?: boolean\n readonly onClick?: React.MouseEventHandler<HTMLElement>\n readonly path?: string\n readonly required?: boolean\n readonly unstyled?: boolean\n}\n\nexport type FieldLabelClientProps<\n TFieldClient extends Partial<ClientFieldWithOptionalType> = Partial<ClientFieldWithOptionalType>,\n> = {\n field?: TFieldClient\n} & GenericLabelProps\n\nexport type FieldLabelServerProps<\n TFieldServer extends Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n clientField: TFieldClient\n readonly field: TFieldServer\n} & GenericLabelProps &\n ServerComponentProps\n\nexport type SanitizedLabelProps<TFieldClient extends ClientFieldWithOptionalType> = Omit<\n FieldLabelClientProps<TFieldClient>,\n 'label' | 'required'\n>\n"],"names":[],"mappings":"AAgCA,WAGC"}
@@ -155,7 +155,7 @@ export type DocumentSlots = {
155
155
  };
156
156
  export type { AdminContext, BuildTableStateArgs, DefaultServerFunctionArgs, ListQuery, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, SlugifyServerFunctionArgs, } from './functions/index.js';
157
157
  export type { LanguageOptions } from './LanguageOptions.js';
158
- export type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js';
158
+ export type { MarkdownRichTextAdapter, MarkdownRichTextAdapterProvider, RichTextAdapter, RichTextAdapterProvider, RichTextHooks, } from './RichText.js';
159
159
  export { type WidgetServerProps } from './views/dashboard.js';
160
160
  export type { BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, DocumentSubViewTypes, DocumentTabClientProps,
161
161
  /**
@@ -196,7 +196,7 @@ AdminViewComponent, AdminViewConfig,
196
196
  * Use `AdminViewServerProps` instead.
197
197
  */
198
198
  AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, InitPageResult, ServerPropsFromView, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, } from './views/index.js';
199
- export type { AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, HierarchyViewData, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlots, ListViewSlotSharedClientProps, NoResultsClientProps, NoResultsServerProps, NoResultsServerPropsOnly, } from './views/list.js';
199
+ export type { AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, HierarchyViewData, ListViewClientProps, ListViewGroup, ListViewServerProps, ListViewServerPropsOnly, ListViewSlots, ListViewSlotSharedClientProps, NoResultsClientProps, NoResultsServerProps, NoResultsServerPropsOnly, } from './views/list.js';
200
200
  type SchemaPath = {} & string;
201
201
  export type FieldSchemaMap = Map<SchemaPath, {
202
202
  fields: Field[];
@@ -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,wDAAwD,CAAA;AACvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EACV,KAAK,EACL,WAAW,EACX,WAAW,EACX,KAAK,EACL,UAAU,EACV,GAAG,EACJ,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EACV,kBAAkB,EAClB,IAAI,EACJ,UAAU,EACV,2BAA2B,EAC3B,mBAAmB,EACnB,SAAS,EACT,0BAA0B,EAC1B,GAAG,EACJ,MAAM,iBAAiB,CAAA;AAExB,YAAY;AACV;;;;GAIG;AACH,eAAe,IAAI,mBAAmB;AACtC;;;;GAIG;AACH,eAAe,IAAI,mBAAmB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ACX,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,GAAG,QAAQ,CAAA;IACzC,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 '../cli/commands/generateImportMap/generateImportMap.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 ArrayFieldClientProps,\n ArrayFieldDescriptionClientProps,\n ArrayFieldDescriptionServerProps,\n ArrayFieldDiffClientProps,\n ArrayFieldDiffServerProps,\n ArrayFieldErrorClientProps,\n ArrayFieldErrorServerProps,\n ArrayFieldLabelClientProps,\n ArrayFieldLabelServerProps,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientProps,\n BlockRowLabelServerProps,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientProps,\n BlocksFieldDescriptionServerProps,\n BlocksFieldDiffClientProps,\n BlocksFieldDiffServerProps,\n BlocksFieldErrorClientProps,\n BlocksFieldErrorServerProps,\n BlocksFieldLabelClientProps,\n BlocksFieldLabelServerProps,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientProps,\n CheckboxFieldDescriptionServerProps,\n CheckboxFieldDiffClientProps,\n CheckboxFieldDiffServerProps,\n CheckboxFieldErrorClientProps,\n CheckboxFieldErrorServerProps,\n CheckboxFieldLabelClientProps,\n CheckboxFieldLabelServerProps,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientProps,\n CodeFieldDescriptionClientProps,\n CodeFieldDescriptionServerProps,\n CodeFieldDiffClientProps,\n CodeFieldDiffServerProps,\n CodeFieldErrorClientProps,\n CodeFieldErrorServerProps,\n CodeFieldLabelClientProps,\n CodeFieldLabelServerProps,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientProps,\n CollapsibleFieldDescriptionServerProps,\n CollapsibleFieldDiffClientProps,\n CollapsibleFieldDiffServerProps,\n CollapsibleFieldErrorClientProps,\n CollapsibleFieldErrorServerProps,\n CollapsibleFieldLabelClientProps,\n CollapsibleFieldLabelServerProps,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientProps,\n DateFieldDescriptionClientProps,\n DateFieldDescriptionServerProps,\n DateFieldDiffClientProps,\n DateFieldDiffServerProps,\n DateFieldErrorClientProps,\n DateFieldErrorServerProps,\n DateFieldLabelClientProps,\n DateFieldLabelServerProps,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientProps,\n EmailFieldDescriptionClientProps,\n EmailFieldDescriptionServerProps,\n EmailFieldDiffClientProps,\n EmailFieldDiffServerProps,\n EmailFieldErrorClientProps,\n EmailFieldErrorServerProps,\n EmailFieldLabelClientProps,\n EmailFieldLabelServerProps,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientProps,\n GroupFieldDescriptionClientProps,\n GroupFieldDescriptionServerProps,\n GroupFieldDiffClientProps,\n GroupFieldDiffServerProps,\n GroupFieldErrorClientProps,\n GroupFieldErrorServerProps,\n GroupFieldLabelClientProps,\n GroupFieldLabelServerProps,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientProps,\n JoinFieldDescriptionClientProps,\n JoinFieldDescriptionServerProps,\n JoinFieldDiffClientProps,\n JoinFieldDiffServerProps,\n JoinFieldErrorClientProps,\n JoinFieldErrorServerProps,\n JoinFieldLabelClientProps,\n JoinFieldLabelServerProps,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientProps,\n JSONFieldDescriptionClientProps,\n JSONFieldDescriptionServerProps,\n JSONFieldDiffClientProps,\n JSONFieldDiffServerProps,\n JSONFieldErrorClientProps,\n JSONFieldErrorServerProps,\n JSONFieldLabelClientProps,\n JSONFieldLabelServerProps,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientProps,\n NumberFieldDescriptionClientProps,\n NumberFieldDescriptionServerProps,\n NumberFieldDiffClientProps,\n NumberFieldDiffServerProps,\n NumberFieldErrorClientProps,\n NumberFieldErrorServerProps,\n NumberFieldLabelClientProps,\n NumberFieldLabelServerProps,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientProps,\n PointFieldDescriptionClientProps,\n PointFieldDescriptionServerProps,\n PointFieldDiffClientProps,\n PointFieldDiffServerProps,\n PointFieldErrorClientProps,\n PointFieldErrorServerProps,\n PointFieldLabelClientProps,\n PointFieldLabelServerProps,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientProps,\n RadioFieldDescriptionClientProps,\n RadioFieldDescriptionServerProps,\n RadioFieldDiffClientProps,\n RadioFieldDiffServerProps,\n RadioFieldErrorClientProps,\n RadioFieldErrorServerProps,\n RadioFieldLabelClientProps,\n RadioFieldLabelServerProps,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientProps,\n RelationshipFieldDescriptionServerProps,\n RelationshipFieldDiffClientProps,\n RelationshipFieldDiffServerProps,\n RelationshipFieldErrorClientProps,\n RelationshipFieldErrorServerProps,\n RelationshipFieldLabelClientProps,\n RelationshipFieldLabelServerProps,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientProps,\n RichTextFieldDescriptionServerProps,\n RichTextFieldDiffClientProps,\n RichTextFieldDiffServerProps,\n RichTextFieldErrorClientProps,\n RichTextFieldErrorServerProps,\n RichTextFieldLabelClientProps,\n RichTextFieldLabelServerProps,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientProps,\n RowFieldDescriptionClientProps,\n RowFieldDescriptionServerProps,\n RowFieldDiffClientProps,\n RowFieldDiffServerProps,\n RowFieldErrorClientProps,\n RowFieldErrorServerProps,\n RowFieldLabelClientProps,\n RowFieldLabelServerProps,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientProps,\n SelectFieldDescriptionClientProps,\n SelectFieldDescriptionServerProps,\n SelectFieldDiffClientProps,\n SelectFieldDiffServerProps,\n SelectFieldErrorClientProps,\n SelectFieldErrorServerProps,\n SelectFieldLabelClientProps,\n SelectFieldLabelServerProps,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientProps,\n TabsFieldDescriptionClientProps,\n TabsFieldDescriptionServerProps,\n TabsFieldDiffClientProps,\n TabsFieldDiffServerProps,\n TabsFieldErrorClientProps,\n TabsFieldErrorServerProps,\n TabsFieldLabelClientProps,\n TabsFieldLabelServerProps,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientProps,\n TextFieldDescriptionClientProps,\n TextFieldDescriptionServerProps,\n TextFieldDiffClientProps,\n TextFieldDiffServerProps,\n TextFieldErrorClientProps,\n TextFieldErrorServerProps,\n TextFieldLabelClientProps,\n TextFieldLabelServerProps,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientProps,\n TextareaFieldDescriptionServerProps,\n TextareaFieldDiffClientProps,\n TextareaFieldDiffServerProps,\n TextareaFieldErrorClientProps,\n TextareaFieldErrorServerProps,\n TextareaFieldLabelClientProps,\n TextareaFieldLabelServerProps,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientProps,\n UIFieldDiffClientProps,\n UIFieldDiffServerProps,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientProps,\n UploadFieldDescriptionClientProps,\n UploadFieldDescriptionServerProps,\n UploadFieldDiffClientProps,\n UploadFieldDiffServerProps,\n UploadFieldErrorClientProps,\n UploadFieldErrorServerProps,\n UploadFieldLabelClientProps,\n UploadFieldLabelServerProps,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientProps,\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 FieldErrorClientProps,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.js'\n\nexport type {\n ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientProps,\n FieldPaths,\n FieldServerProps,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientProps,\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 AdminContext,\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\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' | 'delete' | 'update'\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AA+cA,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 '../cli/commands/generateImportMap/generateImportMap.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 ArrayFieldClientProps,\n ArrayFieldDescriptionClientProps,\n ArrayFieldDescriptionServerProps,\n ArrayFieldDiffClientProps,\n ArrayFieldDiffServerProps,\n ArrayFieldErrorClientProps,\n ArrayFieldErrorServerProps,\n ArrayFieldLabelClientProps,\n ArrayFieldLabelServerProps,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientProps,\n BlockRowLabelServerProps,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientProps,\n BlocksFieldDescriptionServerProps,\n BlocksFieldDiffClientProps,\n BlocksFieldDiffServerProps,\n BlocksFieldErrorClientProps,\n BlocksFieldErrorServerProps,\n BlocksFieldLabelClientProps,\n BlocksFieldLabelServerProps,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientProps,\n CheckboxFieldDescriptionServerProps,\n CheckboxFieldDiffClientProps,\n CheckboxFieldDiffServerProps,\n CheckboxFieldErrorClientProps,\n CheckboxFieldErrorServerProps,\n CheckboxFieldLabelClientProps,\n CheckboxFieldLabelServerProps,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientProps,\n CodeFieldDescriptionClientProps,\n CodeFieldDescriptionServerProps,\n CodeFieldDiffClientProps,\n CodeFieldDiffServerProps,\n CodeFieldErrorClientProps,\n CodeFieldErrorServerProps,\n CodeFieldLabelClientProps,\n CodeFieldLabelServerProps,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientProps,\n CollapsibleFieldDescriptionServerProps,\n CollapsibleFieldDiffClientProps,\n CollapsibleFieldDiffServerProps,\n CollapsibleFieldErrorClientProps,\n CollapsibleFieldErrorServerProps,\n CollapsibleFieldLabelClientProps,\n CollapsibleFieldLabelServerProps,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientProps,\n DateFieldDescriptionClientProps,\n DateFieldDescriptionServerProps,\n DateFieldDiffClientProps,\n DateFieldDiffServerProps,\n DateFieldErrorClientProps,\n DateFieldErrorServerProps,\n DateFieldLabelClientProps,\n DateFieldLabelServerProps,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientProps,\n EmailFieldDescriptionClientProps,\n EmailFieldDescriptionServerProps,\n EmailFieldDiffClientProps,\n EmailFieldDiffServerProps,\n EmailFieldErrorClientProps,\n EmailFieldErrorServerProps,\n EmailFieldLabelClientProps,\n EmailFieldLabelServerProps,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientProps,\n GroupFieldDescriptionClientProps,\n GroupFieldDescriptionServerProps,\n GroupFieldDiffClientProps,\n GroupFieldDiffServerProps,\n GroupFieldErrorClientProps,\n GroupFieldErrorServerProps,\n GroupFieldLabelClientProps,\n GroupFieldLabelServerProps,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientProps,\n JoinFieldDescriptionClientProps,\n JoinFieldDescriptionServerProps,\n JoinFieldDiffClientProps,\n JoinFieldDiffServerProps,\n JoinFieldErrorClientProps,\n JoinFieldErrorServerProps,\n JoinFieldLabelClientProps,\n JoinFieldLabelServerProps,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientProps,\n JSONFieldDescriptionClientProps,\n JSONFieldDescriptionServerProps,\n JSONFieldDiffClientProps,\n JSONFieldDiffServerProps,\n JSONFieldErrorClientProps,\n JSONFieldErrorServerProps,\n JSONFieldLabelClientProps,\n JSONFieldLabelServerProps,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientProps,\n NumberFieldDescriptionClientProps,\n NumberFieldDescriptionServerProps,\n NumberFieldDiffClientProps,\n NumberFieldDiffServerProps,\n NumberFieldErrorClientProps,\n NumberFieldErrorServerProps,\n NumberFieldLabelClientProps,\n NumberFieldLabelServerProps,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientProps,\n PointFieldDescriptionClientProps,\n PointFieldDescriptionServerProps,\n PointFieldDiffClientProps,\n PointFieldDiffServerProps,\n PointFieldErrorClientProps,\n PointFieldErrorServerProps,\n PointFieldLabelClientProps,\n PointFieldLabelServerProps,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientProps,\n RadioFieldDescriptionClientProps,\n RadioFieldDescriptionServerProps,\n RadioFieldDiffClientProps,\n RadioFieldDiffServerProps,\n RadioFieldErrorClientProps,\n RadioFieldErrorServerProps,\n RadioFieldLabelClientProps,\n RadioFieldLabelServerProps,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientProps,\n RelationshipFieldDescriptionServerProps,\n RelationshipFieldDiffClientProps,\n RelationshipFieldDiffServerProps,\n RelationshipFieldErrorClientProps,\n RelationshipFieldErrorServerProps,\n RelationshipFieldLabelClientProps,\n RelationshipFieldLabelServerProps,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientProps,\n RichTextFieldDescriptionServerProps,\n RichTextFieldDiffClientProps,\n RichTextFieldDiffServerProps,\n RichTextFieldErrorClientProps,\n RichTextFieldErrorServerProps,\n RichTextFieldLabelClientProps,\n RichTextFieldLabelServerProps,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientProps,\n RowFieldDescriptionClientProps,\n RowFieldDescriptionServerProps,\n RowFieldDiffClientProps,\n RowFieldDiffServerProps,\n RowFieldErrorClientProps,\n RowFieldErrorServerProps,\n RowFieldLabelClientProps,\n RowFieldLabelServerProps,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientProps,\n SelectFieldDescriptionClientProps,\n SelectFieldDescriptionServerProps,\n SelectFieldDiffClientProps,\n SelectFieldDiffServerProps,\n SelectFieldErrorClientProps,\n SelectFieldErrorServerProps,\n SelectFieldLabelClientProps,\n SelectFieldLabelServerProps,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientProps,\n TabsFieldDescriptionClientProps,\n TabsFieldDescriptionServerProps,\n TabsFieldDiffClientProps,\n TabsFieldDiffServerProps,\n TabsFieldErrorClientProps,\n TabsFieldErrorServerProps,\n TabsFieldLabelClientProps,\n TabsFieldLabelServerProps,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientProps,\n TextFieldDescriptionClientProps,\n TextFieldDescriptionServerProps,\n TextFieldDiffClientProps,\n TextFieldDiffServerProps,\n TextFieldErrorClientProps,\n TextFieldErrorServerProps,\n TextFieldLabelClientProps,\n TextFieldLabelServerProps,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientProps,\n TextareaFieldDescriptionServerProps,\n TextareaFieldDiffClientProps,\n TextareaFieldDiffServerProps,\n TextareaFieldErrorClientProps,\n TextareaFieldErrorServerProps,\n TextareaFieldLabelClientProps,\n TextareaFieldLabelServerProps,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientProps,\n UIFieldDiffClientProps,\n UIFieldDiffServerProps,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientProps,\n UploadFieldDescriptionClientProps,\n UploadFieldDescriptionServerProps,\n UploadFieldDiffClientProps,\n UploadFieldDiffServerProps,\n UploadFieldErrorClientProps,\n UploadFieldErrorServerProps,\n UploadFieldLabelClientProps,\n UploadFieldLabelServerProps,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientProps,\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 FieldErrorClientProps,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.js'\n\nexport type {\n ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientProps,\n FieldPaths,\n FieldServerProps,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientProps,\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 AdminContext,\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n SlugifyServerFunctionArgs,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type {\n MarkdownRichTextAdapter,\n MarkdownRichTextAdapterProvider,\n RichTextAdapter,\n RichTextAdapterProvider,\n RichTextHooks,\n} 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 ListViewGroup,\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' | 'delete' | 'update'\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AA+cA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
@@ -48,6 +48,11 @@ export type ListViewSlots = {
48
48
  NoResults?: React.ReactNode;
49
49
  Table: React.ReactNode | React.ReactNode[];
50
50
  };
51
+ export type ListViewGroup = {
52
+ data: PaginatedDocs;
53
+ heading: string;
54
+ value: string;
55
+ };
51
56
  /**
52
57
  * The `ListViewServerPropsOnly` approach is needed to ensure type strictness when injecting component props
53
58
  * There is no way to do something like `Omit<ListViewServerProps, keyof ListViewClientProps>`
@@ -70,7 +75,11 @@ export type ListViewClientProps = {
70
75
  disableBulkDelete?: boolean;
71
76
  disableBulkEdit?: boolean;
72
77
  disableQueryPresets?: boolean;
78
+ documentLayout?: CollectionPreferences['documentLayout'];
79
+ /** Server-resolved grid destinations. A null value disables document navigation. */
80
+ documentURLs?: Record<string, null | string>;
73
81
  enableRowSelections?: boolean;
82
+ groupedData?: ListViewGroup[];
74
83
  hasCreatePermission: boolean;
75
84
  hasDeletePermission?: boolean;
76
85
  hasTrashPermission?: boolean;
@@ -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,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE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,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,SAAS,CAAA;CACpB,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 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
+ {"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\nexport type ListViewGroup = {\n data: PaginatedDocs\n heading: string\n value: string\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 documentLayout?: CollectionPreferences['documentLayout']\n /** Server-resolved grid destinations. A null value disables document navigation. */\n documentURLs?: Record<string, null | string>\n enableRowSelections?: boolean\n groupedData?: ListViewGroup[]\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":"AAqJA,WAAiG"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerFirstUser.d.ts","sourceRoot":"","sources":["../../../src/auth/operations/registerFirstUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,UAAU,EACV,sBAAsB,EACtB,8BAA8B,EAC/B,MAAM,mCAAmC,CAAA;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,sBAAsB,CAAA;AAStE,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,kBAAkB,IAAI;IACxD,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,gCAAgC,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC,GAChE,8BAA8B,CAAC,KAAK,CAAC,CAAA;IACvC,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,KAAK,IAAI;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAU,KAAK,SAAS,kBAAkB,QACzE,SAAS,CAAC,KAAK,CAAC,KACrB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CA6F/C,CAAA"}
1
+ {"version":3,"file":"registerFirstUser.d.ts","sourceRoot":"","sources":["../../../src/auth/operations/registerFirstUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,UAAU,EACV,sBAAsB,EACtB,8BAA8B,EAC/B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,sBAAsB,CAAA;AAStE,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,kBAAkB,IAAI;IACxD,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,gCAAgC,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC,GAChE,8BAA8B,CAAC,KAAK,CAAC,CAAA;IACvC,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,MAAM,CAAC,KAAK,IAAI;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAU,KAAK,SAAS,kBAAkB,QACzE,SAAS,CAAC,KAAK,CAAC,KACrB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CA6F/C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/auth/operations/registerFirstUser.ts"],"sourcesContent":["import type {\n AuthOperationsFromCollectionSlug,\n Collection,\n DataFromCollectionSlug,\n RequiredDataFromCollectionSlug,\n} from '../../collections/config/types.js'\nimport type { Options as CreateOptions } from '../../collections/operations/local/create.js'\nimport type { AuthCollectionSlug } from '../../index.js'\nimport type { PayloadRequest, SelectType } from '../../types/index.js'\n\nimport { Forbidden } from '../../errors/index.js'\nimport { appendNonTrashedFilter } from '../../utilities/appendNonTrashedFilter.js'\nimport { commitTransaction } from '../../utilities/commitTransaction.js'\nimport { initTransaction } from '../../utilities/initTransaction.js'\nimport { killTransaction } from '../../utilities/killTransaction.js'\nimport { ensureUsernameOrEmail } from '../ensureUsernameOrEmail.js'\n\nexport type Arguments<TSlug extends AuthCollectionSlug> = {\n collection: Collection\n data: AuthOperationsFromCollectionSlug<TSlug>['registerFirstUser'] &\n RequiredDataFromCollectionSlug<TSlug>\n req: PayloadRequest\n}\n\nexport type Result<TData> = {\n exp?: number\n token?: string\n user?: TData\n}\n\nexport const registerFirstUserOperation = async <TSlug extends AuthCollectionSlug>(\n args: Arguments<TSlug>,\n): Promise<Result<DataFromCollectionSlug<TSlug>>> => {\n const {\n collection: {\n config,\n config: {\n slug,\n auth: { verify },\n },\n },\n data,\n req,\n req: { payload },\n } = args\n\n if (config.auth.disableLocalStrategy) {\n throw new Forbidden(req.t)\n }\n\n try {\n const shouldCommit = await initTransaction(req)\n\n ensureUsernameOrEmail<TSlug>({\n authOptions: config.auth,\n collectionSlug: slug,\n data,\n operation: 'create',\n req,\n })\n\n const where = appendNonTrashedFilter({\n enableTrash: Boolean(config.trash),\n trash: false,\n where: {}, // no initial filter; just exclude trashed docs\n })\n\n const doc = await payload.db.findOne({\n collection: config.slug,\n req,\n where,\n })\n\n if (doc) {\n throw new Forbidden(req.t)\n }\n\n // /////////////////////////////////////\n // Register first user\n // /////////////////////////////////////\n\n const result = await payload.create<TSlug, SelectType>({\n collection: slug as TSlug,\n data,\n overrideAccess: true,\n req,\n } as CreateOptions<TSlug, SelectType>)\n\n // auto-verify (if applicable)\n if (verify) {\n await payload.update({\n id: result.id,\n collection: slug,\n data: {\n _verified: true,\n },\n overrideAccess: true,\n req,\n })\n }\n\n // /////////////////////////////////////\n // Log in new user\n // /////////////////////////////////////\n\n const { exp, token, user } = await payload.login({\n ...args,\n collection: slug,\n overrideAccess: false,\n req,\n })\n\n if (shouldCommit) {\n await commitTransaction(req)\n }\n\n return {\n exp,\n token,\n user,\n }\n } catch (error: unknown) {\n await killTransaction(req)\n throw error\n }\n}\n"],"names":["Forbidden","appendNonTrashedFilter","commitTransaction","initTransaction","killTransaction","ensureUsernameOrEmail","registerFirstUserOperation","args","collection","config","slug","auth","verify","data","req","payload","disableLocalStrategy","t","shouldCommit","authOptions","collectionSlug","operation","where","enableTrash","Boolean","trash","doc","db","findOne","result","create","overrideAccess","update","id","_verified","exp","token","user","login","error"],"mappings":"AAUA,SAASA,SAAS,QAAQ,wBAAuB;AACjD,SAASC,sBAAsB,QAAQ,4CAA2C;AAClF,SAASC,iBAAiB,QAAQ,uCAAsC;AACxE,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,qBAAqB,QAAQ,8BAA6B;AAenE,OAAO,MAAMC,6BAA6B,OACxCC;IAEA,MAAM,EACJC,YAAY,EACVC,MAAM,EACNA,QAAQ,EACNC,IAAI,EACJC,MAAM,EAAEC,MAAM,EAAE,EACjB,EACF,EACDC,IAAI,EACJC,GAAG,EACHA,KAAK,EAAEC,OAAO,EAAE,EACjB,GAAGR;IAEJ,IAAIE,OAAOE,IAAI,CAACK,oBAAoB,EAAE;QACpC,MAAM,IAAIhB,UAAUc,IAAIG,CAAC;IAC3B;IAEA,IAAI;QACF,MAAMC,eAAe,MAAMf,gBAAgBW;QAE3CT,sBAA6B;YAC3Bc,aAAaV,OAAOE,IAAI;YACxBS,gBAAgBV;YAChBG;YACAQ,WAAW;YACXP;QACF;QAEA,MAAMQ,QAAQrB,uBAAuB;YACnCsB,aAAaC,QAAQf,OAAOgB,KAAK;YACjCA,OAAO;YACPH,OAAO,CAAC;QACV;QAEA,MAAMI,MAAM,MAAMX,QAAQY,EAAE,CAACC,OAAO,CAAC;YACnCpB,YAAYC,OAAOC,IAAI;YACvBI;YACAQ;QACF;QAEA,IAAII,KAAK;YACP,MAAM,IAAI1B,UAAUc,IAAIG,CAAC;QAC3B;QAEA,wCAAwC;QACxC,sBAAsB;QACtB,wCAAwC;QAExC,MAAMY,SAAS,MAAMd,QAAQe,MAAM,CAAoB;YACrDtB,YAAYE;YACZG;YACAkB,gBAAgB;YAChBjB;QACF;QAEA,8BAA8B;QAC9B,IAAIF,QAAQ;YACV,MAAMG,QAAQiB,MAAM,CAAC;gBACnBC,IAAIJ,OAAOI,EAAE;gBACbzB,YAAYE;gBACZG,MAAM;oBACJqB,WAAW;gBACb;gBACAH,gBAAgB;gBAChBjB;YACF;QACF;QAEA,wCAAwC;QACxC,kBAAkB;QAClB,wCAAwC;QAExC,MAAM,EAAEqB,GAAG,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAG,MAAMtB,QAAQuB,KAAK,CAAC;YAC/C,GAAG/B,IAAI;YACPC,YAAYE;YACZqB,gBAAgB;YAChBjB;QACF;QAEA,IAAII,cAAc;YAChB,MAAMhB,kBAAkBY;QAC1B;QAEA,OAAO;YACLqB;YACAC;YACAC;QACF;IACF,EAAE,OAAOE,OAAgB;QACvB,MAAMnC,gBAAgBU;QACtB,MAAMyB;IACR;AACF,EAAC"}
1
+ {"version":3,"sources":["../../../src/auth/operations/registerFirstUser.ts"],"sourcesContent":["import type {\n AuthOperationsFromCollectionSlug,\n Collection,\n DataFromCollectionSlug,\n RequiredDataFromCollectionSlug,\n} from '../../collections/config/types.js'\nimport type { AuthCollectionSlug } from '../../index.js'\nimport type { PayloadRequest, SelectType } from '../../types/index.js'\n\nimport { Forbidden } from '../../errors/index.js'\nimport { appendNonTrashedFilter } from '../../utilities/appendNonTrashedFilter.js'\nimport { commitTransaction } from '../../utilities/commitTransaction.js'\nimport { initTransaction } from '../../utilities/initTransaction.js'\nimport { killTransaction } from '../../utilities/killTransaction.js'\nimport { ensureUsernameOrEmail } from '../ensureUsernameOrEmail.js'\n\nexport type Arguments<TSlug extends AuthCollectionSlug> = {\n collection: Collection\n data: AuthOperationsFromCollectionSlug<TSlug>['registerFirstUser'] &\n RequiredDataFromCollectionSlug<TSlug>\n req: PayloadRequest\n}\n\nexport type Result<TData> = {\n exp?: number\n token?: string\n user?: TData\n}\n\nexport const registerFirstUserOperation = async <TSlug extends AuthCollectionSlug>(\n args: Arguments<TSlug>,\n): Promise<Result<DataFromCollectionSlug<TSlug>>> => {\n const {\n collection: {\n config,\n config: {\n slug,\n auth: { verify },\n },\n },\n data,\n req,\n req: { payload },\n } = args\n\n if (config.auth.disableLocalStrategy) {\n throw new Forbidden(req.t)\n }\n\n try {\n const shouldCommit = await initTransaction(req)\n\n ensureUsernameOrEmail<TSlug>({\n authOptions: config.auth,\n collectionSlug: slug,\n data,\n operation: 'create',\n req,\n })\n\n const where = appendNonTrashedFilter({\n enableTrash: Boolean(config.trash),\n trash: false,\n where: {}, // no initial filter; just exclude trashed docs\n })\n\n const doc = await payload.db.findOne({\n collection: config.slug,\n req,\n where,\n })\n\n if (doc) {\n throw new Forbidden(req.t)\n }\n\n // /////////////////////////////////////\n // Register first user\n // /////////////////////////////////////\n\n const result = await payload.create<TSlug, SelectType>({\n collection: slug as TSlug,\n data,\n overrideAccess: true,\n req,\n })\n\n // auto-verify (if applicable)\n if (verify) {\n await payload.update({\n id: result.id,\n collection: slug,\n data: {\n _verified: true,\n },\n overrideAccess: true,\n req,\n })\n }\n\n // /////////////////////////////////////\n // Log in new user\n // /////////////////////////////////////\n\n const { exp, token, user } = await payload.login({\n ...args,\n collection: slug,\n overrideAccess: false,\n req,\n })\n\n if (shouldCommit) {\n await commitTransaction(req)\n }\n\n return {\n exp,\n token,\n user,\n }\n } catch (error: unknown) {\n await killTransaction(req)\n throw error\n }\n}\n"],"names":["Forbidden","appendNonTrashedFilter","commitTransaction","initTransaction","killTransaction","ensureUsernameOrEmail","registerFirstUserOperation","args","collection","config","slug","auth","verify","data","req","payload","disableLocalStrategy","t","shouldCommit","authOptions","collectionSlug","operation","where","enableTrash","Boolean","trash","doc","db","findOne","result","create","overrideAccess","update","id","_verified","exp","token","user","login","error"],"mappings":"AASA,SAASA,SAAS,QAAQ,wBAAuB;AACjD,SAASC,sBAAsB,QAAQ,4CAA2C;AAClF,SAASC,iBAAiB,QAAQ,uCAAsC;AACxE,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,qBAAqB,QAAQ,8BAA6B;AAenE,OAAO,MAAMC,6BAA6B,OACxCC;IAEA,MAAM,EACJC,YAAY,EACVC,MAAM,EACNA,QAAQ,EACNC,IAAI,EACJC,MAAM,EAAEC,MAAM,EAAE,EACjB,EACF,EACDC,IAAI,EACJC,GAAG,EACHA,KAAK,EAAEC,OAAO,EAAE,EACjB,GAAGR;IAEJ,IAAIE,OAAOE,IAAI,CAACK,oBAAoB,EAAE;QACpC,MAAM,IAAIhB,UAAUc,IAAIG,CAAC;IAC3B;IAEA,IAAI;QACF,MAAMC,eAAe,MAAMf,gBAAgBW;QAE3CT,sBAA6B;YAC3Bc,aAAaV,OAAOE,IAAI;YACxBS,gBAAgBV;YAChBG;YACAQ,WAAW;YACXP;QACF;QAEA,MAAMQ,QAAQrB,uBAAuB;YACnCsB,aAAaC,QAAQf,OAAOgB,KAAK;YACjCA,OAAO;YACPH,OAAO,CAAC;QACV;QAEA,MAAMI,MAAM,MAAMX,QAAQY,EAAE,CAACC,OAAO,CAAC;YACnCpB,YAAYC,OAAOC,IAAI;YACvBI;YACAQ;QACF;QAEA,IAAII,KAAK;YACP,MAAM,IAAI1B,UAAUc,IAAIG,CAAC;QAC3B;QAEA,wCAAwC;QACxC,sBAAsB;QACtB,wCAAwC;QAExC,MAAMY,SAAS,MAAMd,QAAQe,MAAM,CAAoB;YACrDtB,YAAYE;YACZG;YACAkB,gBAAgB;YAChBjB;QACF;QAEA,8BAA8B;QAC9B,IAAIF,QAAQ;YACV,MAAMG,QAAQiB,MAAM,CAAC;gBACnBC,IAAIJ,OAAOI,EAAE;gBACbzB,YAAYE;gBACZG,MAAM;oBACJqB,WAAW;gBACb;gBACAH,gBAAgB;gBAChBjB;YACF;QACF;QAEA,wCAAwC;QACxC,kBAAkB;QAClB,wCAAwC;QAExC,MAAM,EAAEqB,GAAG,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAG,MAAMtB,QAAQuB,KAAK,CAAC;YAC/C,GAAG/B,IAAI;YACPC,YAAYE;YACZqB,gBAAgB;YAChBjB;QACF;QAEA,IAAII,cAAc;YAChB,MAAMhB,kBAAkBY;QAC1B;QAEA,OAAO;YACLqB;YACAC;YACAC;QACF;IACF,EAAE,OAAOE,OAAgB;QACvB,MAAMnC,gBAAgBU;QACtB,MAAMyB;IACR;AACF,EAAC"}
@@ -188,7 +188,12 @@ export interface IncomingAuthType {
188
188
  */
189
189
  depth?: number;
190
190
  /**
191
- * Advanced - disable Payload's built-in local auth strategy. Only use this property if you have replaced Payload's auth mechanisms with your own.
191
+ * Controls whether Payload's built-in local auth strategy is disabled. Set to `true` to disable
192
+ * local authentication or `false` to keep it enabled.
193
+ *
194
+ * Pass an object to disable local authentication while configuring how its fields are retained.
195
+ * Only disable local authentication if you have replaced Payload's auth mechanisms with your own.
196
+ * @default false
192
197
  */
193
198
  disableLocalStrategy?: {
194
199
  /**
@@ -196,8 +201,11 @@ export interface IncomingAuthType {
196
201
  * Useful when you do not want the database or types to vary depending on the auth configuration.
197
202
  */
198
203
  enableFields?: true;
204
+ /**
205
+ * When auth fields are retained, make the password field optional.
206
+ */
199
207
  optionalPassword?: true;
200
- } | true;
208
+ } | boolean;
201
209
  /**
202
210
  * Customize the way that the forgotPassword operation functions.
203
211
  * @link https://payloadcms.com/docs/authentication/email#forgot-password
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE9D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,MAAM,EAAE,iBAAiB,CAAA;IACzB,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,UAAU,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,yBAAyB,GACjC;IACE,MAAM,EAAE,0BAA0B,CAAA;CACnC,GACD,IAAI,CAAA;AAER,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAClC;IACE,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,CAAA;CAC/C,GACD,IAAI,CAAA;AAER,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,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