payload 3.23.0 → 3.24.0-canary.05013b2

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 (768) hide show
  1. package/dist/admin/RichText.d.ts +2 -0
  2. package/dist/admin/RichText.d.ts.map +1 -1
  3. package/dist/admin/RichText.js +1 -0
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/elements/PreviewButton.d.ts +4 -2
  6. package/dist/admin/elements/PreviewButton.d.ts.map +1 -1
  7. package/dist/admin/elements/PreviewButton.js.map +1 -1
  8. package/dist/admin/elements/PublishButton.d.ts +6 -2
  9. package/dist/admin/elements/PublishButton.d.ts.map +1 -1
  10. package/dist/admin/elements/PublishButton.js.map +1 -1
  11. package/dist/admin/elements/SaveButton.d.ts +6 -2
  12. package/dist/admin/elements/SaveButton.d.ts.map +1 -1
  13. package/dist/admin/elements/SaveButton.js.map +1 -1
  14. package/dist/admin/elements/SaveDraftButton.d.ts +4 -2
  15. package/dist/admin/elements/SaveDraftButton.d.ts.map +1 -1
  16. package/dist/admin/elements/SaveDraftButton.js.map +1 -1
  17. package/dist/admin/elements/Table.d.ts +10 -0
  18. package/dist/admin/elements/Table.d.ts.map +1 -0
  19. package/dist/admin/elements/Table.js +3 -0
  20. package/dist/admin/elements/Table.js.map +1 -0
  21. package/dist/admin/forms/Diff.d.ts +1 -0
  22. package/dist/admin/forms/Diff.d.ts.map +1 -1
  23. package/dist/admin/forms/Diff.js +1 -0
  24. package/dist/admin/forms/Diff.js.map +1 -1
  25. package/dist/admin/types.d.ts +71 -8
  26. package/dist/admin/types.d.ts.map +1 -1
  27. package/dist/admin/types.js.map +1 -1
  28. package/dist/admin/{elements/Tab.d.ts → views/document.d.ts} +31 -7
  29. package/dist/admin/views/document.d.ts.map +1 -0
  30. package/dist/admin/views/document.js +5 -0
  31. package/dist/admin/views/document.js.map +1 -0
  32. package/dist/admin/views/{types.d.ts → index.d.ts} +29 -26
  33. package/dist/admin/views/index.d.ts.map +1 -0
  34. package/dist/admin/views/index.js +3 -0
  35. package/dist/admin/views/index.js.map +1 -0
  36. package/dist/admin/views/list.d.ts +60 -0
  37. package/dist/admin/views/list.d.ts.map +1 -0
  38. package/dist/admin/views/list.js +3 -0
  39. package/dist/admin/views/list.js.map +1 -0
  40. package/dist/auth/cookies.d.ts.map +1 -1
  41. package/dist/auth/cookies.js +1 -0
  42. package/dist/auth/cookies.js.map +1 -1
  43. package/dist/auth/crypto.d.ts.map +1 -1
  44. package/dist/auth/crypto.js +1 -0
  45. package/dist/auth/crypto.js.map +1 -1
  46. package/dist/auth/endpoints/forgotPassword.d.ts.map +1 -1
  47. package/dist/auth/endpoints/forgotPassword.js +1 -0
  48. package/dist/auth/endpoints/forgotPassword.js.map +1 -1
  49. package/dist/auth/endpoints/login.d.ts.map +1 -1
  50. package/dist/auth/endpoints/login.js +1 -0
  51. package/dist/auth/endpoints/login.js.map +1 -1
  52. package/dist/auth/endpoints/me.d.ts.map +1 -1
  53. package/dist/auth/endpoints/me.js +1 -0
  54. package/dist/auth/endpoints/me.js.map +1 -1
  55. package/dist/auth/endpoints/refresh.d.ts.map +1 -1
  56. package/dist/auth/endpoints/refresh.js +1 -0
  57. package/dist/auth/endpoints/refresh.js.map +1 -1
  58. package/dist/auth/endpoints/registerFirstUser.d.ts.map +1 -1
  59. package/dist/auth/endpoints/registerFirstUser.js +1 -0
  60. package/dist/auth/endpoints/registerFirstUser.js.map +1 -1
  61. package/dist/auth/endpoints/resetPassword.d.ts.map +1 -1
  62. package/dist/auth/endpoints/resetPassword.js +1 -0
  63. package/dist/auth/endpoints/resetPassword.js.map +1 -1
  64. package/dist/auth/executeAuthStrategies.d.ts.map +1 -1
  65. package/dist/auth/executeAuthStrategies.js +1 -0
  66. package/dist/auth/executeAuthStrategies.js.map +1 -1
  67. package/dist/auth/getAccessResults.d.ts.map +1 -1
  68. package/dist/auth/getAccessResults.js +4 -0
  69. package/dist/auth/getAccessResults.js.map +1 -1
  70. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  71. package/dist/auth/getFieldsToSign.js +1 -0
  72. package/dist/auth/getFieldsToSign.js.map +1 -1
  73. package/dist/auth/getLoginOptions.d.ts.map +1 -1
  74. package/dist/auth/getLoginOptions.js +1 -0
  75. package/dist/auth/getLoginOptions.js.map +1 -1
  76. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  77. package/dist/auth/operations/forgotPassword.js +1 -0
  78. package/dist/auth/operations/forgotPassword.js.map +1 -1
  79. package/dist/auth/operations/local/forgotPassword.d.ts.map +1 -1
  80. package/dist/auth/operations/local/forgotPassword.js +1 -0
  81. package/dist/auth/operations/local/forgotPassword.js.map +1 -1
  82. package/dist/auth/operations/login.d.ts.map +1 -1
  83. package/dist/auth/operations/login.js +1 -0
  84. package/dist/auth/operations/login.js.map +1 -1
  85. package/dist/auth/operations/me.d.ts.map +1 -1
  86. package/dist/auth/operations/me.js +1 -0
  87. package/dist/auth/operations/me.js.map +1 -1
  88. package/dist/auth/operations/refresh.d.ts.map +1 -1
  89. package/dist/auth/operations/refresh.js +1 -0
  90. package/dist/auth/operations/refresh.js.map +1 -1
  91. package/dist/auth/operations/unlock.d.ts.map +1 -1
  92. package/dist/auth/operations/unlock.js +1 -0
  93. package/dist/auth/operations/unlock.js.map +1 -1
  94. package/dist/auth/sendVerificationEmail.d.ts.map +1 -1
  95. package/dist/auth/sendVerificationEmail.js +1 -0
  96. package/dist/auth/sendVerificationEmail.js.map +1 -1
  97. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  98. package/dist/auth/strategies/apiKey.js +1 -0
  99. package/dist/auth/strategies/apiKey.js.map +1 -1
  100. package/dist/auth/strategies/jwt.d.ts.map +1 -1
  101. package/dist/auth/strategies/jwt.js +1 -0
  102. package/dist/auth/strategies/jwt.js.map +1 -1
  103. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  104. package/dist/auth/strategies/local/authenticate.js +1 -0
  105. package/dist/auth/strategies/local/authenticate.js.map +1 -1
  106. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
  107. package/dist/bin/generateImportMap/iterateConfig.js +16 -1
  108. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
  109. package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -1
  110. package/dist/bin/generateImportMap/iterateFields.js +2 -1
  111. package/dist/bin/generateImportMap/iterateFields.js.map +1 -1
  112. package/dist/bin/generateImportMap/parsePayloadComponent.d.ts.map +1 -1
  113. package/dist/bin/generateImportMap/parsePayloadComponent.js +1 -0
  114. package/dist/bin/generateImportMap/parsePayloadComponent.js.map +1 -1
  115. package/dist/bin/index.d.ts.map +1 -1
  116. package/dist/bin/index.js +1 -0
  117. package/dist/bin/index.js.map +1 -1
  118. package/dist/bin/loadEnv.d.ts.map +1 -1
  119. package/dist/bin/loadEnv.js +1 -0
  120. package/dist/bin/loadEnv.js.map +1 -1
  121. package/dist/bin/migrate.d.ts.map +1 -1
  122. package/dist/bin/migrate.js +2 -1
  123. package/dist/bin/migrate.js.map +1 -1
  124. package/dist/collections/config/client.d.ts.map +1 -1
  125. package/dist/collections/config/client.js +1 -0
  126. package/dist/collections/config/client.js.map +1 -1
  127. package/dist/collections/config/reservedFieldNames.d.ts.map +1 -1
  128. package/dist/collections/config/reservedFieldNames.js +1 -0
  129. package/dist/collections/config/reservedFieldNames.js.map +1 -1
  130. package/dist/collections/config/sanitize.d.ts +1 -1
  131. package/dist/collections/config/sanitize.d.ts.map +1 -1
  132. package/dist/collections/config/sanitize.js +15 -7
  133. package/dist/collections/config/sanitize.js.map +1 -1
  134. package/dist/collections/config/types.d.ts +10 -5
  135. package/dist/collections/config/types.d.ts.map +1 -1
  136. package/dist/collections/config/types.js.map +1 -1
  137. package/dist/collections/dataloader.d.ts +3 -2
  138. package/dist/collections/dataloader.d.ts.map +1 -1
  139. package/dist/collections/dataloader.js +10 -5
  140. package/dist/collections/dataloader.js.map +1 -1
  141. package/dist/collections/endpoints/create.d.ts.map +1 -1
  142. package/dist/collections/endpoints/create.js +1 -0
  143. package/dist/collections/endpoints/create.js.map +1 -1
  144. package/dist/collections/endpoints/delete.d.ts.map +1 -1
  145. package/dist/collections/endpoints/delete.js +1 -0
  146. package/dist/collections/endpoints/delete.js.map +1 -1
  147. package/dist/collections/endpoints/find.d.ts.map +1 -1
  148. package/dist/collections/endpoints/find.js +1 -0
  149. package/dist/collections/endpoints/find.js.map +1 -1
  150. package/dist/collections/endpoints/findByID.d.ts.map +1 -1
  151. package/dist/collections/endpoints/findByID.js +1 -0
  152. package/dist/collections/endpoints/findByID.js.map +1 -1
  153. package/dist/collections/endpoints/index.d.ts.map +1 -1
  154. package/dist/collections/endpoints/index.js +0 -14
  155. package/dist/collections/endpoints/index.js.map +1 -1
  156. package/dist/collections/endpoints/preview.d.ts.map +1 -1
  157. package/dist/collections/endpoints/preview.js +1 -0
  158. package/dist/collections/endpoints/preview.js.map +1 -1
  159. package/dist/collections/endpoints/update.d.ts.map +1 -1
  160. package/dist/collections/endpoints/update.js +1 -0
  161. package/dist/collections/endpoints/update.js.map +1 -1
  162. package/dist/collections/endpoints/updateByID.d.ts.map +1 -1
  163. package/dist/collections/endpoints/updateByID.js +1 -0
  164. package/dist/collections/endpoints/updateByID.js.map +1 -1
  165. package/dist/collections/operations/count.d.ts.map +1 -1
  166. package/dist/collections/operations/count.js +1 -0
  167. package/dist/collections/operations/count.js.map +1 -1
  168. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  169. package/dist/collections/operations/countVersions.js +1 -0
  170. package/dist/collections/operations/countVersions.js.map +1 -1
  171. package/dist/collections/operations/create.d.ts.map +1 -1
  172. package/dist/collections/operations/create.js +1 -0
  173. package/dist/collections/operations/create.js.map +1 -1
  174. package/dist/collections/operations/delete.d.ts.map +1 -1
  175. package/dist/collections/operations/delete.js +1 -0
  176. package/dist/collections/operations/delete.js.map +1 -1
  177. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  178. package/dist/collections/operations/deleteByID.js +1 -0
  179. package/dist/collections/operations/deleteByID.js.map +1 -1
  180. package/dist/collections/operations/docAccess.d.ts.map +1 -1
  181. package/dist/collections/operations/docAccess.js +2 -0
  182. package/dist/collections/operations/docAccess.js.map +1 -1
  183. package/dist/collections/operations/find.d.ts.map +1 -1
  184. package/dist/collections/operations/find.js +1 -0
  185. package/dist/collections/operations/find.js.map +1 -1
  186. package/dist/collections/operations/findByID.d.ts.map +1 -1
  187. package/dist/collections/operations/findByID.js +1 -0
  188. package/dist/collections/operations/findByID.js.map +1 -1
  189. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  190. package/dist/collections/operations/findVersionByID.js +1 -0
  191. package/dist/collections/operations/findVersionByID.js.map +1 -1
  192. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  193. package/dist/collections/operations/findVersions.js +1 -0
  194. package/dist/collections/operations/findVersions.js.map +1 -1
  195. package/dist/collections/operations/local/count.d.ts.map +1 -1
  196. package/dist/collections/operations/local/count.js +1 -0
  197. package/dist/collections/operations/local/count.js.map +1 -1
  198. package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
  199. package/dist/collections/operations/local/countVersions.js +1 -0
  200. package/dist/collections/operations/local/countVersions.js.map +1 -1
  201. package/dist/collections/operations/local/create.d.ts.map +1 -1
  202. package/dist/collections/operations/local/create.js +1 -0
  203. package/dist/collections/operations/local/create.js.map +1 -1
  204. package/dist/collections/operations/local/delete.d.ts.map +1 -1
  205. package/dist/collections/operations/local/delete.js +1 -0
  206. package/dist/collections/operations/local/delete.js.map +1 -1
  207. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  208. package/dist/collections/operations/local/duplicate.js +1 -0
  209. package/dist/collections/operations/local/duplicate.js.map +1 -1
  210. package/dist/collections/operations/local/find.d.ts.map +1 -1
  211. package/dist/collections/operations/local/find.js +1 -0
  212. package/dist/collections/operations/local/find.js.map +1 -1
  213. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  214. package/dist/collections/operations/local/findByID.js +1 -0
  215. package/dist/collections/operations/local/findByID.js.map +1 -1
  216. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  217. package/dist/collections/operations/local/findVersionByID.js +1 -0
  218. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  219. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  220. package/dist/collections/operations/local/findVersions.js +1 -0
  221. package/dist/collections/operations/local/findVersions.js.map +1 -1
  222. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  223. package/dist/collections/operations/local/restoreVersion.js +1 -0
  224. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  225. package/dist/collections/operations/local/update.d.ts.map +1 -1
  226. package/dist/collections/operations/local/update.js +1 -0
  227. package/dist/collections/operations/local/update.js.map +1 -1
  228. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  229. package/dist/collections/operations/restoreVersion.js +1 -0
  230. package/dist/collections/operations/restoreVersion.js.map +1 -1
  231. package/dist/collections/operations/update.d.ts.map +1 -1
  232. package/dist/collections/operations/update.js +1 -0
  233. package/dist/collections/operations/update.js.map +1 -1
  234. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  235. package/dist/collections/operations/updateByID.js +1 -0
  236. package/dist/collections/operations/updateByID.js.map +1 -1
  237. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  238. package/dist/collections/operations/utilities/update.js +1 -0
  239. package/dist/collections/operations/utilities/update.js.map +1 -1
  240. package/dist/config/client.d.ts +13 -0
  241. package/dist/config/client.d.ts.map +1 -1
  242. package/dist/config/client.js +13 -0
  243. package/dist/config/client.js.map +1 -1
  244. package/dist/config/find.d.ts.map +1 -1
  245. package/dist/config/find.js +1 -0
  246. package/dist/config/find.js.map +1 -1
  247. package/dist/config/sanitize.d.ts.map +1 -1
  248. package/dist/config/sanitize.js +45 -6
  249. package/dist/config/sanitize.js.map +1 -1
  250. package/dist/config/types.d.ts +15 -16
  251. package/dist/config/types.d.ts.map +1 -1
  252. package/dist/config/types.js +1 -0
  253. package/dist/config/types.js.map +1 -1
  254. package/dist/database/combineQueries.d.ts +3 -0
  255. package/dist/database/combineQueries.d.ts.map +1 -1
  256. package/dist/database/combineQueries.js +10 -9
  257. package/dist/database/combineQueries.js.map +1 -1
  258. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  259. package/dist/database/createDatabaseAdapter.js +1 -0
  260. package/dist/database/createDatabaseAdapter.js.map +1 -1
  261. package/dist/database/getLocalizedPaths.d.ts +6 -2
  262. package/dist/database/getLocalizedPaths.d.ts.map +1 -1
  263. package/dist/database/getLocalizedPaths.js +18 -3
  264. package/dist/database/getLocalizedPaths.js.map +1 -1
  265. package/dist/database/migrations/createMigration.d.ts.map +1 -1
  266. package/dist/database/migrations/createMigration.js +1 -0
  267. package/dist/database/migrations/createMigration.js.map +1 -1
  268. package/dist/database/migrations/migrate.d.ts.map +1 -1
  269. package/dist/database/migrations/migrate.js +1 -0
  270. package/dist/database/migrations/migrate.js.map +1 -1
  271. package/dist/database/migrations/migrateDown.d.ts.map +1 -1
  272. package/dist/database/migrations/migrateDown.js +1 -0
  273. package/dist/database/migrations/migrateDown.js.map +1 -1
  274. package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
  275. package/dist/database/migrations/migrateRefresh.js +1 -0
  276. package/dist/database/migrations/migrateRefresh.js.map +1 -1
  277. package/dist/database/migrations/migrateReset.d.ts.map +1 -1
  278. package/dist/database/migrations/migrateReset.js +1 -0
  279. package/dist/database/migrations/migrateReset.js.map +1 -1
  280. package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
  281. package/dist/database/migrations/readMigrationFiles.js +1 -0
  282. package/dist/database/migrations/readMigrationFiles.js.map +1 -1
  283. package/dist/database/queryValidation/types.d.ts +4 -0
  284. package/dist/database/queryValidation/types.d.ts.map +1 -1
  285. package/dist/database/queryValidation/types.js.map +1 -1
  286. package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
  287. package/dist/database/queryValidation/validateQueryPaths.js +1 -0
  288. package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
  289. package/dist/database/queryValidation/validateSearchParams.d.ts +2 -1
  290. package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
  291. package/dist/database/queryValidation/validateSearchParams.js +7 -2
  292. package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
  293. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  294. package/dist/database/sanitizeJoinQuery.js +1 -0
  295. package/dist/database/sanitizeJoinQuery.js.map +1 -1
  296. package/dist/duplicateDocument/index.d.ts.map +1 -1
  297. package/dist/duplicateDocument/index.js +1 -0
  298. package/dist/duplicateDocument/index.js.map +1 -1
  299. package/dist/email/getStringifiedToAddress.d.ts.map +1 -1
  300. package/dist/email/getStringifiedToAddress.js +1 -0
  301. package/dist/email/getStringifiedToAddress.js.map +1 -1
  302. package/dist/errors/APIError.d.ts.map +1 -1
  303. package/dist/errors/APIError.js +1 -0
  304. package/dist/errors/APIError.js.map +1 -1
  305. package/dist/exports/shared.d.ts +1 -1
  306. package/dist/exports/shared.d.ts.map +1 -1
  307. package/dist/exports/shared.js +1 -1
  308. package/dist/exports/shared.js.map +1 -1
  309. package/dist/fields/baseFields/timezone/baseField.d.ts.map +1 -1
  310. package/dist/fields/baseFields/timezone/baseField.js +1 -0
  311. package/dist/fields/baseFields/timezone/baseField.js.map +1 -1
  312. package/dist/fields/config/client.d.ts +7 -1
  313. package/dist/fields/config/client.d.ts.map +1 -1
  314. package/dist/fields/config/client.js +76 -53
  315. package/dist/fields/config/client.js.map +1 -1
  316. package/dist/fields/config/sanitize.d.ts.map +1 -1
  317. package/dist/fields/config/sanitize.js +13 -4
  318. package/dist/fields/config/sanitize.js.map +1 -1
  319. package/dist/fields/config/sanitizeJoinField.d.ts +3 -2
  320. package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
  321. package/dist/fields/config/sanitizeJoinField.js +12 -4
  322. package/dist/fields/config/sanitizeJoinField.js.map +1 -1
  323. package/dist/fields/config/types.d.ts +44 -7
  324. package/dist/fields/config/types.d.ts.map +1 -1
  325. package/dist/fields/config/types.js +13 -1
  326. package/dist/fields/config/types.js.map +1 -1
  327. package/dist/fields/getFieldPaths.d.ts.map +1 -1
  328. package/dist/fields/getFieldPaths.js +1 -0
  329. package/dist/fields/getFieldPaths.js.map +1 -1
  330. package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
  331. package/dist/fields/hooks/afterChange/index.js +2 -0
  332. package/dist/fields/hooks/afterChange/index.js.map +1 -1
  333. package/dist/fields/hooks/afterChange/promise.d.ts +3 -1
  334. package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
  335. package/dist/fields/hooks/afterChange/promise.js +12 -2
  336. package/dist/fields/hooks/afterChange/promise.js.map +1 -1
  337. package/dist/fields/hooks/afterChange/traverseFields.d.ts +6 -1
  338. package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
  339. package/dist/fields/hooks/afterChange/traverseFields.js +5 -2
  340. package/dist/fields/hooks/afterChange/traverseFields.js.map +1 -1
  341. package/dist/fields/hooks/afterRead/index.d.ts.map +1 -1
  342. package/dist/fields/hooks/afterRead/index.js +2 -0
  343. package/dist/fields/hooks/afterRead/index.js.map +1 -1
  344. package/dist/fields/hooks/afterRead/promise.d.ts +6 -1
  345. package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
  346. package/dist/fields/hooks/afterRead/promise.js +32 -7
  347. package/dist/fields/hooks/afterRead/promise.js.map +1 -1
  348. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts +2 -1
  349. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
  350. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js +8 -3
  351. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js.map +1 -1
  352. package/dist/fields/hooks/afterRead/traverseFields.d.ts +5 -1
  353. package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
  354. package/dist/fields/hooks/afterRead/traverseFields.js +3 -1
  355. package/dist/fields/hooks/afterRead/traverseFields.js.map +1 -1
  356. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  357. package/dist/fields/hooks/beforeChange/index.js +2 -0
  358. package/dist/fields/hooks/beforeChange/index.js.map +1 -1
  359. package/dist/fields/hooks/beforeChange/promise.d.ts +3 -1
  360. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  361. package/dist/fields/hooks/beforeChange/promise.js +20 -5
  362. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  363. package/dist/fields/hooks/beforeChange/traverseFields.d.ts +5 -1
  364. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  365. package/dist/fields/hooks/beforeChange/traverseFields.js +4 -1
  366. package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
  367. package/dist/fields/hooks/beforeDuplicate/index.d.ts.map +1 -1
  368. package/dist/fields/hooks/beforeDuplicate/index.js +2 -0
  369. package/dist/fields/hooks/beforeDuplicate/index.js.map +1 -1
  370. package/dist/fields/hooks/beforeDuplicate/promise.d.ts +3 -1
  371. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  372. package/dist/fields/hooks/beforeDuplicate/promise.js +21 -5
  373. package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
  374. package/dist/fields/hooks/beforeDuplicate/runHook.d.ts.map +1 -1
  375. package/dist/fields/hooks/beforeDuplicate/runHook.js +1 -0
  376. package/dist/fields/hooks/beforeDuplicate/runHook.js.map +1 -1
  377. package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts +2 -1
  378. package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts.map +1 -1
  379. package/dist/fields/hooks/beforeDuplicate/traverseFields.js +5 -2
  380. package/dist/fields/hooks/beforeDuplicate/traverseFields.js.map +1 -1
  381. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  382. package/dist/fields/hooks/beforeValidate/index.js +2 -0
  383. package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
  384. package/dist/fields/hooks/beforeValidate/promise.d.ts +3 -1
  385. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  386. package/dist/fields/hooks/beforeValidate/promise.js +11 -2
  387. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  388. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +5 -1
  389. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  390. package/dist/fields/hooks/beforeValidate/traverseFields.js +5 -2
  391. package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
  392. package/dist/fields/mergeBaseFields.d.ts.map +1 -1
  393. package/dist/fields/mergeBaseFields.js +1 -0
  394. package/dist/fields/mergeBaseFields.js.map +1 -1
  395. package/dist/fields/setDefaultBeforeDuplicate.d.ts +2 -2
  396. package/dist/fields/setDefaultBeforeDuplicate.d.ts.map +1 -1
  397. package/dist/fields/setDefaultBeforeDuplicate.js +11 -3
  398. package/dist/fields/setDefaultBeforeDuplicate.js.map +1 -1
  399. package/dist/fields/validations.d.ts.map +1 -1
  400. package/dist/fields/validations.js +1 -0
  401. package/dist/fields/validations.js.map +1 -1
  402. package/dist/globals/config/client.d.ts.map +1 -1
  403. package/dist/globals/config/client.js +1 -0
  404. package/dist/globals/config/client.js.map +1 -1
  405. package/dist/globals/config/sanitize.d.ts +1 -1
  406. package/dist/globals/config/sanitize.d.ts.map +1 -1
  407. package/dist/globals/config/sanitize.js +3 -2
  408. package/dist/globals/config/sanitize.js.map +1 -1
  409. package/dist/globals/endpoints/findVersionByID.d.ts.map +1 -1
  410. package/dist/globals/endpoints/findVersionByID.js +1 -0
  411. package/dist/globals/endpoints/findVersionByID.js.map +1 -1
  412. package/dist/globals/endpoints/preview.d.ts.map +1 -1
  413. package/dist/globals/endpoints/preview.js +1 -0
  414. package/dist/globals/endpoints/preview.js.map +1 -1
  415. package/dist/globals/endpoints/restoreVersion.d.ts.map +1 -1
  416. package/dist/globals/endpoints/restoreVersion.js +1 -0
  417. package/dist/globals/endpoints/restoreVersion.js.map +1 -1
  418. package/dist/globals/endpoints/update.d.ts.map +1 -1
  419. package/dist/globals/endpoints/update.js +1 -0
  420. package/dist/globals/endpoints/update.js.map +1 -1
  421. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  422. package/dist/globals/operations/countGlobalVersions.js +1 -0
  423. package/dist/globals/operations/countGlobalVersions.js.map +1 -1
  424. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  425. package/dist/globals/operations/docAccess.js +2 -0
  426. package/dist/globals/operations/docAccess.js.map +1 -1
  427. package/dist/globals/operations/findOne.d.ts.map +1 -1
  428. package/dist/globals/operations/findOne.js +1 -0
  429. package/dist/globals/operations/findOne.js.map +1 -1
  430. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  431. package/dist/globals/operations/findVersionByID.js +1 -0
  432. package/dist/globals/operations/findVersionByID.js.map +1 -1
  433. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  434. package/dist/globals/operations/findVersions.js +1 -0
  435. package/dist/globals/operations/findVersions.js.map +1 -1
  436. package/dist/globals/operations/local/countGlobalVersions.d.ts.map +1 -1
  437. package/dist/globals/operations/local/countGlobalVersions.js +1 -0
  438. package/dist/globals/operations/local/countGlobalVersions.js.map +1 -1
  439. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  440. package/dist/globals/operations/local/findOne.js +1 -0
  441. package/dist/globals/operations/local/findOne.js.map +1 -1
  442. package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
  443. package/dist/globals/operations/local/findVersionByID.js +1 -0
  444. package/dist/globals/operations/local/findVersionByID.js.map +1 -1
  445. package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
  446. package/dist/globals/operations/local/findVersions.js +1 -0
  447. package/dist/globals/operations/local/findVersions.js.map +1 -1
  448. package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
  449. package/dist/globals/operations/local/restoreVersion.js +1 -0
  450. package/dist/globals/operations/local/restoreVersion.js.map +1 -1
  451. package/dist/globals/operations/local/update.d.ts.map +1 -1
  452. package/dist/globals/operations/local/update.js +1 -0
  453. package/dist/globals/operations/local/update.js.map +1 -1
  454. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  455. package/dist/globals/operations/restoreVersion.js +1 -0
  456. package/dist/globals/operations/restoreVersion.js.map +1 -1
  457. package/dist/globals/operations/update.d.ts.map +1 -1
  458. package/dist/globals/operations/update.js +1 -0
  459. package/dist/globals/operations/update.js.map +1 -1
  460. package/dist/index.d.ts +9 -1
  461. package/dist/index.d.ts.map +1 -1
  462. package/dist/index.js +13 -1
  463. package/dist/index.js.map +1 -1
  464. package/dist/lockedDocuments/lockedDocumentsCollection.d.ts.map +1 -1
  465. package/dist/lockedDocuments/lockedDocumentsCollection.js +1 -0
  466. package/dist/lockedDocuments/lockedDocumentsCollection.js.map +1 -1
  467. package/dist/preferences/operations/findOne.d.ts.map +1 -1
  468. package/dist/preferences/operations/findOne.js +1 -0
  469. package/dist/preferences/operations/findOne.js.map +1 -1
  470. package/dist/preferences/preferencesCollection.d.ts.map +1 -1
  471. package/dist/preferences/preferencesCollection.js +1 -0
  472. package/dist/preferences/preferencesCollection.js.map +1 -1
  473. package/dist/preferences/requestHandlers/delete.d.ts.map +1 -1
  474. package/dist/preferences/requestHandlers/delete.js +1 -0
  475. package/dist/preferences/requestHandlers/delete.js.map +1 -1
  476. package/dist/preferences/requestHandlers/findOne.d.ts.map +1 -1
  477. package/dist/preferences/requestHandlers/findOne.js +1 -0
  478. package/dist/preferences/requestHandlers/findOne.js.map +1 -1
  479. package/dist/preferences/requestHandlers/update.d.ts.map +1 -1
  480. package/dist/preferences/requestHandlers/update.js +1 -0
  481. package/dist/preferences/requestHandlers/update.js.map +1 -1
  482. package/dist/queues/config/generateJobsJSONSchemas.d.ts.map +1 -1
  483. package/dist/queues/config/generateJobsJSONSchemas.js +1 -0
  484. package/dist/queues/config/generateJobsJSONSchemas.js.map +1 -1
  485. package/dist/queues/localAPI.d.ts.map +1 -1
  486. package/dist/queues/localAPI.js +1 -0
  487. package/dist/queues/localAPI.js.map +1 -1
  488. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  489. package/dist/queues/operations/runJobs/index.js +1 -0
  490. package/dist/queues/operations/runJobs/index.js.map +1 -1
  491. package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
  492. package/dist/queues/operations/runJobs/runJSONJob/index.js +1 -0
  493. package/dist/queues/operations/runJobs/runJSONJob/index.js.map +1 -1
  494. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts.map +1 -1
  495. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +1 -0
  496. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  497. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -1
  498. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +1 -0
  499. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -1
  500. package/dist/queues/operations/runJobs/runJob/handleWorkflowError.d.ts.map +1 -1
  501. package/dist/queues/operations/runJobs/runJob/handleWorkflowError.js +1 -0
  502. package/dist/queues/operations/runJobs/runJob/handleWorkflowError.js.map +1 -1
  503. package/dist/queues/operations/runJobs/runJob/importHandlerPath.d.ts.map +1 -1
  504. package/dist/queues/operations/runJobs/runJob/importHandlerPath.js +1 -0
  505. package/dist/queues/operations/runJobs/runJob/importHandlerPath.js.map +1 -1
  506. package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -1
  507. package/dist/queues/operations/runJobs/runJob/index.js +1 -0
  508. package/dist/queues/operations/runJobs/runJob/index.js.map +1 -1
  509. package/dist/queues/restEndpointRun.d.ts.map +1 -1
  510. package/dist/queues/restEndpointRun.js +1 -0
  511. package/dist/queues/restEndpointRun.js.map +1 -1
  512. package/dist/queues/utilities/getJobTaskStatus.d.ts.map +1 -1
  513. package/dist/queues/utilities/getJobTaskStatus.js +1 -0
  514. package/dist/queues/utilities/getJobTaskStatus.js.map +1 -1
  515. package/dist/types/index.d.ts +3 -0
  516. package/dist/types/index.d.ts.map +1 -1
  517. package/dist/types/index.js +1 -0
  518. package/dist/types/index.js.map +1 -1
  519. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  520. package/dist/uploads/checkFileAccess.js +1 -0
  521. package/dist/uploads/checkFileAccess.js.map +1 -1
  522. package/dist/uploads/cropImage.d.ts.map +1 -1
  523. package/dist/uploads/cropImage.js +1 -0
  524. package/dist/uploads/cropImage.js.map +1 -1
  525. package/dist/uploads/endpoints/getFile.d.ts.map +1 -0
  526. package/dist/{collections → uploads}/endpoints/getFile.js +1 -0
  527. package/dist/uploads/endpoints/getFile.js.map +1 -0
  528. package/dist/uploads/endpoints/getFileFromURL.d.ts.map +1 -0
  529. package/dist/{collections → uploads}/endpoints/getFileFromURL.js +1 -0
  530. package/dist/uploads/endpoints/getFileFromURL.js.map +1 -0
  531. package/dist/uploads/endpoints/index.d.ts +3 -0
  532. package/dist/uploads/endpoints/index.d.ts.map +1 -0
  533. package/dist/uploads/endpoints/index.js +17 -0
  534. package/dist/uploads/endpoints/index.js.map +1 -0
  535. package/dist/uploads/fetchAPI-multipart/handlers.d.ts.map +1 -1
  536. package/dist/uploads/fetchAPI-multipart/handlers.js +1 -0
  537. package/dist/uploads/fetchAPI-multipart/handlers.js.map +1 -1
  538. package/dist/uploads/fetchAPI-multipart/index.d.ts.map +1 -1
  539. package/dist/uploads/fetchAPI-multipart/index.js +1 -0
  540. package/dist/uploads/fetchAPI-multipart/index.js.map +1 -1
  541. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.d.ts.map +1 -1
  542. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js +1 -0
  543. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js.map +1 -1
  544. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
  545. package/dist/uploads/fetchAPI-multipart/processMultipart.js +1 -0
  546. package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
  547. package/dist/uploads/fetchAPI-multipart/processNested.d.ts.map +1 -1
  548. package/dist/uploads/fetchAPI-multipart/processNested.js +1 -0
  549. package/dist/uploads/fetchAPI-multipart/processNested.js.map +1 -1
  550. package/dist/uploads/fetchAPI-multipart/uploadTimer.d.ts.map +1 -1
  551. package/dist/uploads/fetchAPI-multipart/uploadTimer.js +1 -0
  552. package/dist/uploads/fetchAPI-multipart/uploadTimer.js.map +1 -1
  553. package/dist/uploads/fetchAPI-multipart/utilities.d.ts.map +1 -1
  554. package/dist/uploads/fetchAPI-multipart/utilities.js +1 -0
  555. package/dist/uploads/fetchAPI-multipart/utilities.js.map +1 -1
  556. package/dist/uploads/fetchAPI-stream-file/index.d.ts.map +1 -1
  557. package/dist/uploads/fetchAPI-stream-file/index.js +1 -0
  558. package/dist/uploads/fetchAPI-stream-file/index.js.map +1 -1
  559. package/dist/uploads/generateFileData.d.ts.map +1 -1
  560. package/dist/uploads/generateFileData.js +1 -0
  561. package/dist/uploads/generateFileData.js.map +1 -1
  562. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  563. package/dist/uploads/getBaseFields.js +1 -0
  564. package/dist/uploads/getBaseFields.js.map +1 -1
  565. package/dist/uploads/getExternalFile.d.ts.map +1 -1
  566. package/dist/uploads/getExternalFile.js +1 -0
  567. package/dist/uploads/getExternalFile.js.map +1 -1
  568. package/dist/uploads/getFileByPath.d.ts.map +1 -1
  569. package/dist/uploads/getFileByPath.js +1 -0
  570. package/dist/uploads/getFileByPath.js.map +1 -1
  571. package/dist/uploads/getImageSize.d.ts.map +1 -1
  572. package/dist/uploads/getImageSize.js +1 -0
  573. package/dist/uploads/getImageSize.js.map +1 -1
  574. package/dist/uploads/imageResizer.d.ts.map +1 -1
  575. package/dist/uploads/imageResizer.js +1 -0
  576. package/dist/uploads/imageResizer.js.map +1 -1
  577. package/dist/uploads/saveBufferToFile.d.ts.map +1 -1
  578. package/dist/uploads/saveBufferToFile.js +1 -0
  579. package/dist/uploads/saveBufferToFile.js.map +1 -1
  580. package/dist/uploads/tempFile.d.ts.map +1 -1
  581. package/dist/uploads/tempFile.js +1 -0
  582. package/dist/uploads/tempFile.js.map +1 -1
  583. package/dist/uploads/types.d.ts +16 -0
  584. package/dist/uploads/types.d.ts.map +1 -1
  585. package/dist/uploads/types.js.map +1 -1
  586. package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
  587. package/dist/utilities/addDataAndFileToRequest.js +1 -0
  588. package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
  589. package/dist/utilities/addLocalesToRequest.d.ts.map +1 -1
  590. package/dist/utilities/addLocalesToRequest.js +1 -0
  591. package/dist/utilities/addLocalesToRequest.js.map +1 -1
  592. package/dist/utilities/commitTransaction.d.ts.map +1 -1
  593. package/dist/utilities/commitTransaction.js +1 -0
  594. package/dist/utilities/commitTransaction.js.map +1 -1
  595. package/dist/utilities/configToJSONSchema.d.ts +2 -1
  596. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  597. package/dist/utilities/configToJSONSchema.js +49 -5
  598. package/dist/utilities/configToJSONSchema.js.map +1 -1
  599. package/dist/utilities/createLocalReq.d.ts.map +1 -1
  600. package/dist/utilities/createLocalReq.js +1 -0
  601. package/dist/utilities/createLocalReq.js.map +1 -1
  602. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  603. package/dist/utilities/createPayloadRequest.js +1 -0
  604. package/dist/utilities/createPayloadRequest.js.map +1 -1
  605. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  606. package/dist/utilities/deepCopyObject.js +1 -0
  607. package/dist/utilities/deepCopyObject.js.map +1 -1
  608. package/dist/utilities/deepMerge.d.ts.map +1 -1
  609. package/dist/utilities/deepMerge.js +1 -0
  610. package/dist/utilities/deepMerge.js.map +1 -1
  611. package/dist/utilities/dependencies/dependencyChecker.d.ts.map +1 -1
  612. package/dist/utilities/dependencies/dependencyChecker.js +1 -0
  613. package/dist/utilities/dependencies/dependencyChecker.js.map +1 -1
  614. package/dist/utilities/dependencies/versionUtils.d.ts.map +1 -1
  615. package/dist/utilities/dependencies/versionUtils.js +1 -0
  616. package/dist/utilities/dependencies/versionUtils.js.map +1 -1
  617. package/dist/utilities/fieldSchemaToJSON.d.ts +2 -1
  618. package/dist/utilities/fieldSchemaToJSON.d.ts.map +1 -1
  619. package/dist/utilities/fieldSchemaToJSON.js +9 -8
  620. package/dist/utilities/fieldSchemaToJSON.js.map +1 -1
  621. package/dist/utilities/findUp.d.ts.map +1 -1
  622. package/dist/utilities/findUp.js +1 -0
  623. package/dist/utilities/findUp.js.map +1 -1
  624. package/dist/utilities/flattenAllFields.d.ts +4 -1
  625. package/dist/utilities/flattenAllFields.d.ts.map +1 -1
  626. package/dist/utilities/flattenAllFields.js +34 -9
  627. package/dist/utilities/flattenAllFields.js.map +1 -1
  628. package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
  629. package/dist/utilities/flattenTopLevelFields.js +1 -0
  630. package/dist/utilities/flattenTopLevelFields.js.map +1 -1
  631. package/dist/utilities/formatErrors.d.ts.map +1 -1
  632. package/dist/utilities/formatErrors.js +1 -0
  633. package/dist/utilities/formatErrors.js.map +1 -1
  634. package/dist/utilities/formatLabels.d.ts.map +1 -1
  635. package/dist/utilities/formatLabels.js +1 -0
  636. package/dist/utilities/formatLabels.js.map +1 -1
  637. package/dist/utilities/getCollectionIDFieldTypes.d.ts.map +1 -1
  638. package/dist/utilities/getCollectionIDFieldTypes.js +1 -0
  639. package/dist/utilities/getCollectionIDFieldTypes.js.map +1 -1
  640. package/dist/utilities/getDataByPath.d.ts.map +1 -1
  641. package/dist/utilities/getDataByPath.js +1 -0
  642. package/dist/utilities/getDataByPath.js.map +1 -1
  643. package/dist/utilities/getEntityPolicies.d.ts +7 -1
  644. package/dist/utilities/getEntityPolicies.d.ts.map +1 -1
  645. package/dist/utilities/getEntityPolicies.js +213 -143
  646. package/dist/utilities/getEntityPolicies.js.map +1 -1
  647. package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
  648. package/dist/utilities/getObjectDotNotation.js +1 -0
  649. package/dist/utilities/getObjectDotNotation.js.map +1 -1
  650. package/dist/utilities/getRequestEntity.d.ts.map +1 -1
  651. package/dist/utilities/getRequestEntity.js +1 -0
  652. package/dist/utilities/getRequestEntity.js.map +1 -1
  653. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  654. package/dist/utilities/getRequestLanguage.js +1 -0
  655. package/dist/utilities/getRequestLanguage.js.map +1 -1
  656. package/dist/utilities/getSiblingData.d.ts.map +1 -1
  657. package/dist/utilities/getSiblingData.js +1 -0
  658. package/dist/utilities/getSiblingData.js.map +1 -1
  659. package/dist/utilities/getTranslatedLabel.d.ts.map +1 -1
  660. package/dist/utilities/getTranslatedLabel.js +1 -0
  661. package/dist/utilities/getTranslatedLabel.js.map +1 -1
  662. package/dist/utilities/getUniqueListBy.d.ts.map +1 -1
  663. package/dist/utilities/getUniqueListBy.js +1 -0
  664. package/dist/utilities/getUniqueListBy.js.map +1 -1
  665. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  666. package/dist/utilities/handleEndpoints.js +1 -0
  667. package/dist/utilities/handleEndpoints.js.map +1 -1
  668. package/dist/utilities/headersWithCors.d.ts.map +1 -1
  669. package/dist/utilities/headersWithCors.js +1 -0
  670. package/dist/utilities/headersWithCors.js.map +1 -1
  671. package/dist/utilities/initTransaction.d.ts.map +1 -1
  672. package/dist/utilities/initTransaction.js +1 -0
  673. package/dist/utilities/initTransaction.js.map +1 -1
  674. package/dist/utilities/isEntityHidden.d.ts.map +1 -1
  675. package/dist/utilities/isEntityHidden.js +1 -0
  676. package/dist/utilities/isEntityHidden.js.map +1 -1
  677. package/dist/utilities/isValidID.d.ts.map +1 -1
  678. package/dist/utilities/isValidID.js +1 -0
  679. package/dist/utilities/isValidID.js.map +1 -1
  680. package/dist/utilities/killTransaction.d.ts.map +1 -1
  681. package/dist/utilities/killTransaction.js +1 -0
  682. package/dist/utilities/killTransaction.js.map +1 -1
  683. package/dist/utilities/logError.d.ts.map +1 -1
  684. package/dist/utilities/logError.js +1 -0
  685. package/dist/utilities/logError.js.map +1 -1
  686. package/dist/utilities/parseCookies.d.ts.map +1 -1
  687. package/dist/utilities/parseCookies.js +1 -0
  688. package/dist/utilities/parseCookies.js.map +1 -1
  689. package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -1
  690. package/dist/utilities/reduceFieldsToValues.js +1 -0
  691. package/dist/utilities/reduceFieldsToValues.js.map +1 -1
  692. package/dist/utilities/sanitizeJoinParams.d.ts.map +1 -1
  693. package/dist/utilities/sanitizeJoinParams.js +1 -0
  694. package/dist/utilities/sanitizeJoinParams.js.map +1 -1
  695. package/dist/utilities/sanitizePermissions.d.ts.map +1 -1
  696. package/dist/utilities/sanitizePermissions.js +1 -0
  697. package/dist/utilities/sanitizePermissions.js.map +1 -1
  698. package/dist/utilities/sanitizePopulateParam.d.ts.map +1 -1
  699. package/dist/utilities/sanitizePopulateParam.js +1 -0
  700. package/dist/utilities/sanitizePopulateParam.js.map +1 -1
  701. package/dist/utilities/sanitizeSelectParam.d.ts.map +1 -1
  702. package/dist/utilities/sanitizeSelectParam.js +1 -0
  703. package/dist/utilities/sanitizeSelectParam.js.map +1 -1
  704. package/dist/utilities/telemetry/conf/envPaths.d.ts.map +1 -1
  705. package/dist/utilities/telemetry/conf/envPaths.js +1 -0
  706. package/dist/utilities/telemetry/conf/envPaths.js.map +1 -1
  707. package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
  708. package/dist/utilities/telemetry/events/adminInit.js +1 -0
  709. package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
  710. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  711. package/dist/utilities/telemetry/index.js +1 -0
  712. package/dist/utilities/telemetry/index.js.map +1 -1
  713. package/dist/utilities/timestamp.d.ts.map +1 -1
  714. package/dist/utilities/timestamp.js +1 -0
  715. package/dist/utilities/timestamp.js.map +1 -1
  716. package/dist/utilities/toKebabCase.d.ts.map +1 -1
  717. package/dist/utilities/toKebabCase.js +1 -0
  718. package/dist/utilities/toKebabCase.js.map +1 -1
  719. package/dist/utilities/traverseFields.d.ts +14 -1
  720. package/dist/utilities/traverseFields.d.ts.map +1 -1
  721. package/dist/utilities/traverseFields.js +121 -18
  722. package/dist/utilities/traverseFields.js.map +1 -1
  723. package/dist/utilities/unflatten.d.ts.map +1 -1
  724. package/dist/utilities/unflatten.js +1 -0
  725. package/dist/utilities/unflatten.js.map +1 -1
  726. package/dist/utilities/wait.d.ts.map +1 -1
  727. package/dist/utilities/wait.js +1 -0
  728. package/dist/utilities/wait.js.map +1 -1
  729. package/dist/versions/baseFields.d.ts.map +1 -1
  730. package/dist/versions/baseFields.js +1 -0
  731. package/dist/versions/baseFields.js.map +1 -1
  732. package/dist/versions/buildCollectionFields.d.ts.map +1 -1
  733. package/dist/versions/buildCollectionFields.js +1 -0
  734. package/dist/versions/buildCollectionFields.js.map +1 -1
  735. package/dist/versions/buildGlobalFields.d.ts.map +1 -1
  736. package/dist/versions/buildGlobalFields.js +1 -0
  737. package/dist/versions/buildGlobalFields.js.map +1 -1
  738. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
  739. package/dist/versions/drafts/replaceWithDraftIfAvailable.js +1 -0
  740. package/dist/versions/drafts/replaceWithDraftIfAvailable.js.map +1 -1
  741. package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
  742. package/dist/versions/enforceMaxVersions.js +1 -0
  743. package/dist/versions/enforceMaxVersions.js.map +1 -1
  744. package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
  745. package/dist/versions/getLatestCollectionVersion.js +1 -0
  746. package/dist/versions/getLatestCollectionVersion.js.map +1 -1
  747. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  748. package/dist/versions/getLatestGlobalVersion.js +1 -0
  749. package/dist/versions/getLatestGlobalVersion.js.map +1 -1
  750. package/dist/versions/saveVersion.d.ts.map +1 -1
  751. package/dist/versions/saveVersion.js +1 -0
  752. package/dist/versions/saveVersion.js.map +1 -1
  753. package/dist/versions/schedule/job.d.ts.map +1 -1
  754. package/dist/versions/schedule/job.js +1 -0
  755. package/dist/versions/schedule/job.js.map +1 -1
  756. package/package.json +6 -4
  757. package/dist/admin/elements/Tab.d.ts.map +0 -1
  758. package/dist/admin/elements/Tab.js +0 -3
  759. package/dist/admin/elements/Tab.js.map +0 -1
  760. package/dist/admin/views/types.d.ts.map +0 -1
  761. package/dist/admin/views/types.js +0 -3
  762. package/dist/admin/views/types.js.map +0 -1
  763. package/dist/collections/endpoints/getFile.d.ts.map +0 -1
  764. package/dist/collections/endpoints/getFile.js.map +0 -1
  765. package/dist/collections/endpoints/getFileFromURL.d.ts.map +0 -1
  766. package/dist/collections/endpoints/getFileFromURL.js.map +0 -1
  767. /package/dist/{collections → uploads}/endpoints/getFile.d.ts +0 -0
  768. /package/dist/{collections → uploads}/endpoints/getFileFromURL.d.ts +0 -0
@@ -81,6 +81,7 @@ export type BaseRichTextHookArgs<TData extends TypeWithID = any, TValue = any, T
81
81
  indexPath: number[];
82
82
  /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */
83
83
  originalDoc?: TData;
84
+ parentIsLocalized: boolean;
84
85
  /**
85
86
  * 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.
86
87
  */
@@ -131,6 +132,7 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
131
132
  findMany: boolean;
132
133
  flattenLocales: boolean;
133
134
  overrideAccess?: boolean;
135
+ parentIsLocalized: boolean;
134
136
  populateArg?: PopulateType;
135
137
  populationPromises: Promise<void>[];
136
138
  req: PayloadRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/admin/RichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,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CAAA;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KACG,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,GACnE,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA"}
@@ -1,3 +1,4 @@
1
+ // @ts-strict-ignore
1
2
  export { };
2
3
 
3
4
  //# sourceMappingURL=RichText.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["import type { GenericLanguages, I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type { FieldAffectingData, RichTextField, Validate } from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { RichTextFieldClientProps } from './fields/RichText.js'\nimport type { FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: string\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\nexport type BeforeValidateRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void>)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n\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 /**\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\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}\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n generateImportMap?: Config['admin']['importMap']['generators'][0]\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n i18n?: Partial<GenericLanguages>\n outputSchema?: (args: {\n collectionIDFieldTypes: { [key: string]: 'number' | 'string' }\n config?: SanitizedConfig\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n i18n?: I18n\n /**\n * Allows you to define new top-level interfaces that can be re-used in the output schema.\n */\n interfaceNameDefinitions: Map<string, JSONSchema4>\n isRequired: boolean\n }) => JSONSchema4\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n CellComponent: PayloadComponent<never>\n FieldComponent: PayloadComponent<never, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the payload.config.ts.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAqPA,WAmB8D"}
1
+ {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["// @ts-strict-ignore\nimport type { GenericLanguages, I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type { FieldAffectingData, RichTextField, Validate } from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { RichTextFieldClientProps } from './fields/RichText.js'\nimport type { FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: string\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\nexport type BeforeValidateRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void>)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n\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 /**\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}\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n generateImportMap?: Config['admin']['importMap']['generators'][0]\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n i18n?: Partial<GenericLanguages>\n outputSchema?: (args: {\n collectionIDFieldTypes: { [key: string]: 'number' | 'string' }\n config?: SanitizedConfig\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n i18n?: I18n\n /**\n * Allows you to define new top-level interfaces that can be re-used in the output schema.\n */\n interfaceNameDefinitions: Map<string, JSONSchema4>\n isRequired: boolean\n }) => JSONSchema4\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n CellComponent: PayloadComponent<never>\n FieldComponent: PayloadComponent<never, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the payload.config.ts.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,oBAAoB;AAwPpB,WAmB8D"}
@@ -1,3 +1,5 @@
1
- import type { CustomComponent } from '../../config/types.js';
2
- export type CustomPreviewButton = CustomComponent;
1
+ import type { ServerProps } from '../../config/types.js';
2
+ export type PreviewButtonClientProps = {};
3
+ export type PreviewButtonServerPropsOnly = {} & ServerProps;
4
+ export type PreviewButtonServerProps = PreviewButtonClientProps & PreviewButtonServerPropsOnly;
3
5
  //# sourceMappingURL=PreviewButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/PreviewButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAA"}
1
+ {"version":3,"file":"PreviewButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/PreviewButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAEzC,MAAM,MAAM,4BAA4B,GAAG,EAAE,GAAG,WAAW,CAAA;AAE3D,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,GAAG,4BAA4B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/PreviewButton.ts"],"sourcesContent":["import type { CustomComponent } from '../../config/types.js'\n\nexport type CustomPreviewButton = CustomComponent\n"],"names":[],"mappings":"AAEA,WAAiD"}
1
+ {"version":3,"sources":["../../../src/admin/elements/PreviewButton.ts"],"sourcesContent":["import type { ServerProps } from '../../config/types.js'\n\nexport type PreviewButtonClientProps = {}\n\nexport type PreviewButtonServerPropsOnly = {} & ServerProps\n\nexport type PreviewButtonServerProps = PreviewButtonClientProps & PreviewButtonServerPropsOnly\n"],"names":[],"mappings":"AAMA,WAA8F"}
@@ -1,3 +1,7 @@
1
- import type { CustomComponent } from '../../config/types.js';
2
- export type CustomPublishButton = CustomComponent;
1
+ import type { ServerProps } from '../../config/types.js';
2
+ export type PublishButtonClientProps = {
3
+ label?: string;
4
+ };
5
+ export type PublishButtonServerPropsOnly = {} & ServerProps;
6
+ export type PublishButtonServerProps = PublishButtonClientProps & PublishButtonServerPropsOnly;
3
7
  //# sourceMappingURL=PublishButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublishButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/PublishButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAA"}
1
+ {"version":3,"file":"PublishButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/PublishButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,EAAE,GAAG,WAAW,CAAA;AAE3D,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,GAAG,4BAA4B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/PublishButton.ts"],"sourcesContent":["import type { CustomComponent } from '../../config/types.js'\n\nexport type CustomPublishButton = CustomComponent\n"],"names":[],"mappings":"AAEA,WAAiD"}
1
+ {"version":3,"sources":["../../../src/admin/elements/PublishButton.ts"],"sourcesContent":["import type { ServerProps } from '../../config/types.js'\n\nexport type PublishButtonClientProps = {\n label?: string\n}\n\nexport type PublishButtonServerPropsOnly = {} & ServerProps\n\nexport type PublishButtonServerProps = PublishButtonClientProps & PublishButtonServerPropsOnly\n"],"names":[],"mappings":"AAQA,WAA8F"}
@@ -1,3 +1,7 @@
1
- import type { CustomComponent } from '../../config/types.js';
2
- export type CustomSaveButton = CustomComponent;
1
+ import type { ServerProps } from '../../config/types.js';
2
+ export type SaveButtonClientProps = {
3
+ label?: string;
4
+ };
5
+ export type SaveButtonServerPropsOnly = {} & ServerProps;
6
+ export type SaveButtonServerProps = SaveButtonClientProps & SaveButtonServerPropsOnly;
3
7
  //# sourceMappingURL=SaveButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SaveButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/SaveButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAA"}
1
+ {"version":3,"file":"SaveButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/SaveButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,EAAE,GAAG,WAAW,CAAA;AAExD,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG,yBAAyB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/SaveButton.ts"],"sourcesContent":["import type { CustomComponent } from '../../config/types.js'\n\nexport type CustomSaveButton = CustomComponent\n"],"names":[],"mappings":"AAEA,WAA8C"}
1
+ {"version":3,"sources":["../../../src/admin/elements/SaveButton.ts"],"sourcesContent":["import type { ServerProps } from '../../config/types.js'\n\nexport type SaveButtonClientProps = {\n label?: string\n}\n\nexport type SaveButtonServerPropsOnly = {} & ServerProps\n\nexport type SaveButtonServerProps = SaveButtonClientProps & SaveButtonServerPropsOnly\n"],"names":[],"mappings":"AAQA,WAAqF"}
@@ -1,3 +1,5 @@
1
- import type { CustomComponent } from '../../config/types.js';
2
- export type CustomSaveDraftButton = CustomComponent;
1
+ import type { ServerProps } from '../../config/types.js';
2
+ export type SaveDraftButtonClientProps = {};
3
+ export type SaveDraftButtonServerPropsOnly = {} & ServerProps;
4
+ export type SaveDraftButtonServerProps = SaveDraftButtonClientProps & SaveDraftButtonServerPropsOnly;
3
5
  //# sourceMappingURL=SaveDraftButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SaveDraftButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/SaveDraftButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAA"}
1
+ {"version":3,"file":"SaveDraftButton.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/SaveDraftButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,0BAA0B,GAAG,EAAE,CAAA;AAE3C,MAAM,MAAM,8BAA8B,GAAG,EAAE,GAAG,WAAW,CAAA;AAE7D,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GAAG,8BAA8B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/SaveDraftButton.ts"],"sourcesContent":["import type { CustomComponent } from '../../config/types.js'\n\nexport type CustomSaveDraftButton = CustomComponent\n"],"names":[],"mappings":"AAEA,WAAmD"}
1
+ {"version":3,"sources":["../../../src/admin/elements/SaveDraftButton.ts"],"sourcesContent":["import type { ServerProps } from '../../config/types.js'\n\nexport type SaveDraftButtonClientProps = {}\n\nexport type SaveDraftButtonServerPropsOnly = {} & ServerProps\n\nexport type SaveDraftButtonServerProps = SaveDraftButtonClientProps & SaveDraftButtonServerPropsOnly\n"],"names":[],"mappings":"AAMA,WAAoG"}
@@ -0,0 +1,10 @@
1
+ import type { ClientField } from '../../fields/config/types.js';
2
+ export type Column = {
3
+ readonly accessor: string;
4
+ readonly active: boolean;
5
+ readonly CustomLabel?: React.ReactNode;
6
+ readonly field: ClientField;
7
+ readonly Heading: React.ReactNode;
8
+ readonly renderedCells: React.ReactNode[];
9
+ };
10
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/Table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAE/D,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACjC,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;CAC1C,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/elements/Table.ts"],"sourcesContent":["import type { ClientField } from '../../fields/config/types.js'\n\nexport type Column = {\n readonly accessor: string\n readonly active: boolean\n readonly CustomLabel?: React.ReactNode\n readonly field: ClientField\n readonly Heading: React.ReactNode\n readonly renderedCells: React.ReactNode[]\n}\n"],"names":[],"mappings":"AAEA,WAOC"}
@@ -46,6 +46,7 @@ export type FieldDiffClientProps<TClientField extends ClientFieldWithOptionalTyp
46
46
  * If this field is localized, this will be the locale of the field
47
47
  */
48
48
  locale?: string;
49
+ parentIsLocalized: boolean;
49
50
  /**
50
51
  * Field value from the current version
51
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Diff.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAA;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KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,EAAE,cAAc,CAAA;IACnB,eAAe,EAAE,MAAM,EAAE,CAAA;CAC1B,GAAG,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAEvC,MAAM,MAAM,wBAAwB,CAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC,CAAA;AAE3D,MAAM,MAAM,wBAAwB,CAClC,YAAY,SAAS,KAAK,GAAG,KAAK,EAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -1,3 +1,4 @@
1
+ // @ts-strict-ignore
1
2
  export { };
2
3
 
3
4
  //# sourceMappingURL=Diff.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Diff.ts"],"sourcesContent":["import type { I18nClient } from '@payloadcms/translations'\n\nimport type { ClientField, Field, FieldTypes, Tab } from '../../fields/config/types.js'\nimport type {\n ClientFieldWithOptionalType,\n PayloadRequest,\n SanitizedFieldPermissions,\n TypedLocale,\n} from '../../index.js'\n\nexport type VersionTab = {\n fields: VersionField[]\n name?: string\n} & Pick<Tab, 'label'>\n\nexport type BaseVersionField = {\n CustomComponent?: React.ReactNode\n fields: VersionField[]\n path: string\n rows?: VersionField[][]\n schemaPath: string\n tabs?: VersionTab[]\n type: FieldTypes\n}\n\nexport type VersionField = {\n field?: BaseVersionField\n fieldByLocale?: Record<TypedLocale, BaseVersionField>\n}\n\n/**\n * Taken from react-diff-viewer-continued\n */\nexport declare enum DiffMethod {\n CHARS = 'diffChars',\n CSS = 'diffCss',\n JSON = 'diffJson',\n LINES = 'diffLines',\n SENTENCES = 'diffSentences',\n TRIMMED_LINES = 'diffTrimmedLines',\n WORDS = 'diffWords',\n WORDS_WITH_SPACE = 'diffWordsWithSpace',\n}\n\nexport type FieldDiffClientProps<TClientField extends ClientFieldWithOptionalType = ClientField> = {\n baseVersionField: BaseVersionField\n /**\n * Field value from the version being compared\n */\n comparisonValue: unknown\n diffMethod: DiffMethod\n field: TClientField\n fieldPermissions:\n | {\n [key: string]: SanitizedFieldPermissions\n }\n | true\n /**\n * If this field is localized, this will be the locale of the field\n */\n locale?: string\n /**\n * Field value from the current version\n */\n versionValue: unknown\n}\n\nexport type FieldDiffServerProps<\n TField extends Field = Field,\n TClientField extends ClientFieldWithOptionalType = ClientField,\n> = {\n clientField: TClientField\n field: TField\n i18n: I18nClient\n req: PayloadRequest\n selectedLocales: string[]\n} & Omit<FieldDiffClientProps, 'field'>\n\nexport type FieldDiffClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffClientProps<TFieldClient>>\n\nexport type FieldDiffServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffServerProps<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAkFA,WAGyE"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Diff.ts"],"sourcesContent":["// @ts-strict-ignore\n\nimport type { I18nClient } from '@payloadcms/translations'\n\nimport type { ClientField, Field, FieldTypes, Tab } from '../../fields/config/types.js'\nimport type {\n ClientFieldWithOptionalType,\n PayloadRequest,\n SanitizedFieldPermissions,\n TypedLocale,\n} from '../../index.js'\n\nexport type VersionTab = {\n fields: VersionField[]\n name?: string\n} & Pick<Tab, 'label'>\n\nexport type BaseVersionField = {\n CustomComponent?: React.ReactNode\n fields: VersionField[]\n path: string\n rows?: VersionField[][]\n schemaPath: string\n tabs?: VersionTab[]\n type: FieldTypes\n}\n\nexport type VersionField = {\n field?: BaseVersionField\n fieldByLocale?: Record<TypedLocale, BaseVersionField>\n}\n\n/**\n * Taken from react-diff-viewer-continued\n */\nexport declare enum DiffMethod {\n CHARS = 'diffChars',\n CSS = 'diffCss',\n JSON = 'diffJson',\n LINES = 'diffLines',\n SENTENCES = 'diffSentences',\n TRIMMED_LINES = 'diffTrimmedLines',\n WORDS = 'diffWords',\n WORDS_WITH_SPACE = 'diffWordsWithSpace',\n}\n\nexport type FieldDiffClientProps<TClientField extends ClientFieldWithOptionalType = ClientField> = {\n baseVersionField: BaseVersionField\n /**\n * Field value from the version being compared\n */\n comparisonValue: unknown\n diffMethod: DiffMethod\n field: TClientField\n fieldPermissions:\n | {\n [key: string]: SanitizedFieldPermissions\n }\n | true\n /**\n * If this field is localized, this will be the locale of the field\n */\n locale?: string\n parentIsLocalized: boolean\n /**\n * Field value from the current version\n */\n versionValue: unknown\n}\n\nexport type FieldDiffServerProps<\n TField extends Field = Field,\n TClientField extends ClientFieldWithOptionalType = ClientField,\n> = {\n clientField: TClientField\n field: TField\n i18n: I18nClient\n req: PayloadRequest\n selectedLocales: string[]\n} & Omit<FieldDiffClientProps, 'field'>\n\nexport type FieldDiffClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffClientProps<TFieldClient>>\n\nexport type FieldDiffServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDiffServerProps<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAAA,oBAAoB;AAqFpB,WAGyE"}
@@ -6,15 +6,40 @@ import type { Block, ClientBlock, ClientField, Field, FieldTypes, Tab } from '..
6
6
  import type { JsonObject } from '../types/index.js';
7
7
  import type { ClientTab } from './fields/Tabs.js';
8
8
  import type { BuildFormStateArgs, Data, FieldState, FieldStateWithoutComponents, FilterOptionsResult, FormState, FormStateWithoutComponents, Row } from './forms/Form.js';
9
+ export type {
10
+ /**
11
+ * @deprecated
12
+ * The `CustomPreviewButton` type is deprecated and will be removed in the next major version.
13
+ * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.
14
+ */
15
+ CustomComponent as CustomPreviewButton,
16
+ /**
17
+ * @deprecated
18
+ * The `CustomPublishButton` type is deprecated and will be removed in the next major version.
19
+ * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.
20
+ */
21
+ CustomComponent as CustomPublishButton,
22
+ /**
23
+ * @deprecated
24
+ * The `CustomSaveButton` type is deprecated and will be removed in the next major version.
25
+ * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.
26
+ */
27
+ CustomComponent as CustomSaveButton,
28
+ /**
29
+ * @deprecated
30
+ * The `CustomSaveDraftButton` type is deprecated and will be removed in the next major version.
31
+ * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.
32
+ */
33
+ CustomComponent as CustomSaveDraftButton, } from '../config/types.js';
9
34
  export type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js';
10
35
  export type { ConditionalDateProps } from './elements/DatePicker.js';
11
36
  export type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js';
12
37
  export type { NavGroupPreferences, NavPreferences } from './elements/Nav.js';
13
- export type { CustomPreviewButton } from './elements/PreviewButton.js';
14
- export type { CustomPublishButton } from './elements/PublishButton.js';
15
- export type { CustomSaveButton } from './elements/SaveButton.js';
16
- export type { CustomSaveDraftButton } from './elements/SaveDraftButton.js';
17
- export type { DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabProps, } from './elements/Tab.js';
38
+ export type { PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, } from './elements/PreviewButton.js';
39
+ export type { PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, } from './elements/PublishButton.js';
40
+ export type { SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, } from './elements/SaveButton.js';
41
+ export type { SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, } from './elements/SaveDraftButton.js';
42
+ export type { Column } from './elements/Table.js';
18
43
  export type { CustomUpload } from './elements/Upload.js';
19
44
  export type { WithServerSidePropsComponent, WithServerSidePropsComponentProps, } from './elements/WithServerSideProps.js';
20
45
  export type { ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, } from './fields/Array.js';
@@ -42,12 +67,11 @@ export type { UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientCompo
42
67
  export type { UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldServerComponent, UploadFieldServerProps, } from './fields/Upload.js';
43
68
  export type { Description, DescriptionFunction, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, GenericDescriptionProps, StaticDescription, } from './forms/Description.js';
44
69
  export type { BaseVersionField, DiffMethod, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, VersionField, VersionTab, } from './forms/Diff.js';
45
- export type { FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, GenericErrorProps, } from './forms/Error.js';
46
70
  export type { BuildFormStateArgs, Data, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FilterOptionsResult, FormState, FormStateWithoutComponents, Row, };
71
+ export type { FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, GenericErrorProps, } from './forms/Error.js';
47
72
  export type { ClientComponentProps, ClientFieldBase, ClientFieldWithOptionalType, FieldClientComponent, FieldPaths, FieldServerComponent, ServerComponentProps, ServerFieldBase, } from './forms/Field.js';
48
73
  export type { FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, GenericLabelProps, SanitizedLabelProps, } from './forms/Label.js';
49
74
  export type { RowLabel, RowLabelComponent } from './forms/RowLabel.js';
50
- export type { BuildTableStateArgs, DefaultServerFunctionArgs, ListQuery, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, } from './functions/index.js';
51
75
  export type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {
52
76
  Component?: React.ComponentType<TComponentClientProps>;
53
77
  props?: Partial<any>;
@@ -117,9 +141,48 @@ export type DocumentSlots = {
117
141
  SaveDraftButton?: React.ReactNode;
118
142
  Upload?: React.ReactNode;
119
143
  };
144
+ export type { BuildTableStateArgs, DefaultServerFunctionArgs, ListQuery, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, } from './functions/index.js';
120
145
  export type { LanguageOptions } from './LanguageOptions.js';
121
146
  export type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js';
122
- export type { AdminViewComponent, AdminViewConfig, AdminViewProps, ClientSideEditViewProps, EditViewProps, InitPageResult, ServerSideEditViewProps, VisibleEntities, } from './views/types.js';
147
+ export type { DocumentSubViewTypes, DocumentTabClientProps,
148
+ /**
149
+ * @deprecated
150
+ * The `DocumentTabComponent` type is deprecated and will be removed in the next major version.
151
+ * Use `DocumentTabServerProps`or `DocumentTabClientProps` instead.
152
+ */
153
+ DocumentTabComponent, DocumentTabCondition, DocumentTabConfig,
154
+ /**
155
+ * @deprecated
156
+ * The `DocumentTabProps` type is deprecated and will be removed in the next major version.
157
+ * Use `DocumentTabServerProps` instead.
158
+ */
159
+ DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly,
160
+ /**
161
+ * @deprecated
162
+ * The `ClientSideEditViewProps` type is deprecated and will be removed in the next major version.
163
+ * Use `DocumentViewClientProps` instead.
164
+ */
165
+ DocumentViewClientProps as ClientSideEditViewProps, DocumentViewClientProps,
166
+ /**
167
+ * @deprecated
168
+ * The `ServerSideEditViewProps` is deprecated and will be removed in the next major version.
169
+ * Use `DocumentViewServerProps` instead.
170
+ */
171
+ DocumentViewServerProps as ServerSideEditViewProps, DocumentViewServerProps, DocumentViewServerPropsOnly, EditViewProps, } from './views/document.js';
172
+ export type { AdminViewClientProps,
173
+ /**
174
+ * @deprecated
175
+ * The `AdminViewComponent` type is deprecated and will be removed in the next major version.
176
+ * Type your component props directly instead.
177
+ */
178
+ AdminViewComponent, AdminViewConfig,
179
+ /**
180
+ * @deprecated
181
+ * The `AdminViewProps` type is deprecated and will be removed in the next major version.
182
+ * Use `AdminViewServerProps` instead.
183
+ */
184
+ AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, InitPageResult, ServerPropsFromView, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, } from './views/index.js';
185
+ export type { AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlots, ListViewSlotSharedClientProps, } from './views/list.js';
123
186
  type SchemaPath = {} & string;
124
187
  export type FieldSchemaMap = Map<SchemaPath, {
125
188
  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;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a,EACb,6BAA6B,GAC9B,MAAM,iBAAiB,CAAA;AAExB,KAAK,UAAU,GAAG,EAAE,GAAG,MAAM,CAAA;AAC7B,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B,UAAU,EACR;IACE,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB,GACD,KAAK,GACL,KAAK,GACL,GAAG,CACN,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,GAAG,CACpC,UAAU,EACR;IACE,MAAM,EAAE,WAAW,EAAE,CAAA;CACtB,GACD,WAAW,GACX,WAAW,GACX,SAAS,CACZ,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations'\nimport type React from 'react'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { SanitizedConfig } from '../config/types.js'\nimport type {\n Block,\n ClientBlock,\n ClientField,\n Field,\n FieldTypes,\n Tab,\n} from '../fields/config/types.js'\nimport type { JsonObject } from '../types/index.js'\nimport type { ClientTab } from './fields/Tabs.js'\nimport type {\n BuildFormStateArgs,\n Data,\n FieldState,\n FieldStateWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n} from './forms/Form.js'\n\nexport type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js'\nexport type { ConditionalDateProps } from './elements/DatePicker.js'\nexport type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js'\nexport type { NavGroupPreferences, NavPreferences } from './elements/Nav.js'\nexport type { CustomPreviewButton } from './elements/PreviewButton.js'\nexport type { CustomPublishButton } from './elements/PublishButton.js'\nexport type { CustomSaveButton } from './elements/SaveButton.js'\nexport type { CustomSaveDraftButton } from './elements/SaveDraftButton.js'\nexport type {\n DocumentTabComponent,\n DocumentTabCondition,\n DocumentTabConfig,\n DocumentTabProps,\n} from './elements/Tab.js'\n\nexport type { CustomUpload } from './elements/Upload.js'\n\nexport type {\n WithServerSidePropsComponent,\n WithServerSidePropsComponentProps,\n} from './elements/WithServerSideProps.js'\n\nexport type {\n ArrayFieldClientComponent,\n ArrayFieldClientProps,\n ArrayFieldDescriptionClientComponent,\n ArrayFieldDescriptionServerComponent,\n ArrayFieldDiffClientComponent,\n ArrayFieldDiffServerComponent,\n ArrayFieldErrorClientComponent,\n ArrayFieldErrorServerComponent,\n ArrayFieldLabelClientComponent,\n ArrayFieldLabelServerComponent,\n ArrayFieldServerComponent,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientComponent,\n BlockRowLabelServerComponent,\n BlocksFieldClientComponent,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientComponent,\n BlocksFieldDescriptionServerComponent,\n BlocksFieldDiffClientComponent,\n BlocksFieldDiffServerComponent,\n BlocksFieldErrorClientComponent,\n BlocksFieldErrorServerComponent,\n BlocksFieldLabelClientComponent,\n BlocksFieldLabelServerComponent,\n BlocksFieldServerComponent,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientComponent,\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientComponent,\n CheckboxFieldDescriptionServerComponent,\n CheckboxFieldDiffClientComponent,\n CheckboxFieldDiffServerComponent,\n CheckboxFieldErrorClientComponent,\n CheckboxFieldErrorServerComponent,\n CheckboxFieldLabelClientComponent,\n CheckboxFieldLabelServerComponent,\n CheckboxFieldServerComponent,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientComponent,\n CodeFieldClientProps,\n CodeFieldDescriptionClientComponent,\n CodeFieldDescriptionServerComponent,\n CodeFieldDiffClientComponent,\n CodeFieldDiffServerComponent,\n CodeFieldErrorClientComponent,\n CodeFieldErrorServerComponent,\n CodeFieldLabelClientComponent,\n CodeFieldLabelServerComponent,\n CodeFieldServerComponent,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientComponent,\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientComponent,\n CollapsibleFieldDescriptionServerComponent,\n CollapsibleFieldDiffClientComponent,\n CollapsibleFieldDiffServerComponent,\n CollapsibleFieldErrorClientComponent,\n CollapsibleFieldErrorServerComponent,\n CollapsibleFieldLabelClientComponent,\n CollapsibleFieldLabelServerComponent,\n CollapsibleFieldServerComponent,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientComponent,\n DateFieldClientProps,\n DateFieldDescriptionClientComponent,\n DateFieldDescriptionServerComponent,\n DateFieldDiffClientComponent,\n DateFieldDiffServerComponent,\n DateFieldErrorClientComponent,\n DateFieldErrorServerComponent,\n DateFieldLabelClientComponent,\n DateFieldLabelServerComponent,\n DateFieldServerComponent,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldDescriptionClientComponent,\n EmailFieldDescriptionServerComponent,\n EmailFieldDiffClientComponent,\n EmailFieldDiffServerComponent,\n EmailFieldErrorClientComponent,\n EmailFieldErrorServerComponent,\n EmailFieldLabelClientComponent,\n EmailFieldLabelServerComponent,\n EmailFieldServerComponent,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientComponent,\n GroupFieldClientProps,\n GroupFieldDescriptionClientComponent,\n GroupFieldDescriptionServerComponent,\n GroupFieldDiffClientComponent,\n GroupFieldDiffServerComponent,\n GroupFieldErrorClientComponent,\n GroupFieldErrorServerComponent,\n GroupFieldLabelClientComponent,\n GroupFieldLabelServerComponent,\n GroupFieldServerComponent,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientComponent,\n JoinFieldClientProps,\n JoinFieldDescriptionClientComponent,\n JoinFieldDescriptionServerComponent,\n JoinFieldDiffClientComponent,\n JoinFieldDiffServerComponent,\n JoinFieldErrorClientComponent,\n JoinFieldErrorServerComponent,\n JoinFieldLabelClientComponent,\n JoinFieldLabelServerComponent,\n JoinFieldServerComponent,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientComponent,\n JSONFieldClientProps,\n JSONFieldDescriptionClientComponent,\n JSONFieldDescriptionServerComponent,\n JSONFieldDiffClientComponent,\n JSONFieldDiffServerComponent,\n JSONFieldErrorClientComponent,\n JSONFieldErrorServerComponent,\n JSONFieldLabelClientComponent,\n JSONFieldLabelServerComponent,\n JSONFieldServerComponent,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientComponent,\n NumberFieldClientProps,\n NumberFieldDescriptionClientComponent,\n NumberFieldDescriptionServerComponent,\n NumberFieldDiffClientComponent,\n NumberFieldDiffServerComponent,\n NumberFieldErrorClientComponent,\n NumberFieldErrorServerComponent,\n NumberFieldLabelClientComponent,\n NumberFieldLabelServerComponent,\n NumberFieldServerComponent,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientComponent,\n PointFieldClientProps,\n PointFieldDescriptionClientComponent,\n PointFieldDescriptionServerComponent,\n PointFieldDiffClientComponent,\n PointFieldDiffServerComponent,\n PointFieldErrorClientComponent,\n PointFieldErrorServerComponent,\n PointFieldLabelClientComponent,\n PointFieldLabelServerComponent,\n PointFieldServerComponent,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientComponent,\n RadioFieldClientProps,\n RadioFieldDescriptionClientComponent,\n RadioFieldDescriptionServerComponent,\n RadioFieldDiffClientComponent,\n RadioFieldDiffServerComponent,\n RadioFieldErrorClientComponent,\n RadioFieldErrorServerComponent,\n RadioFieldLabelClientComponent,\n RadioFieldLabelServerComponent,\n RadioFieldServerComponent,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientComponent,\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientComponent,\n RelationshipFieldDescriptionServerComponent,\n RelationshipFieldDiffClientComponent,\n RelationshipFieldDiffServerComponent,\n RelationshipFieldErrorClientComponent,\n RelationshipFieldErrorServerComponent,\n RelationshipFieldLabelClientComponent,\n RelationshipFieldLabelServerComponent,\n RelationshipFieldServerComponent,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientComponent,\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientComponent,\n RichTextFieldDescriptionServerComponent,\n RichTextFieldDiffClientComponent,\n RichTextFieldDiffServerComponent,\n RichTextFieldErrorClientComponent,\n RichTextFieldErrorServerComponent,\n RichTextFieldLabelClientComponent,\n RichTextFieldLabelServerComponent,\n RichTextFieldServerComponent,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientComponent,\n RowFieldClientProps,\n RowFieldDescriptionClientComponent,\n RowFieldDescriptionServerComponent,\n RowFieldDiffClientComponent,\n RowFieldDiffServerComponent,\n RowFieldErrorClientComponent,\n RowFieldErrorServerComponent,\n RowFieldLabelClientComponent,\n RowFieldLabelServerComponent,\n RowFieldServerComponent,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientComponent,\n SelectFieldClientProps,\n SelectFieldDescriptionClientComponent,\n SelectFieldDescriptionServerComponent,\n SelectFieldDiffClientComponent,\n SelectFieldDiffServerComponent,\n SelectFieldErrorClientComponent,\n SelectFieldErrorServerComponent,\n SelectFieldLabelClientComponent,\n SelectFieldLabelServerComponent,\n SelectFieldServerComponent,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientComponent,\n TabsFieldClientProps,\n TabsFieldDescriptionClientComponent,\n TabsFieldDescriptionServerComponent,\n TabsFieldDiffClientComponent,\n TabsFieldDiffServerComponent,\n TabsFieldErrorClientComponent,\n TabsFieldErrorServerComponent,\n TabsFieldLabelClientComponent,\n TabsFieldLabelServerComponent,\n TabsFieldServerComponent,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientComponent,\n TextFieldClientProps,\n TextFieldDescriptionClientComponent,\n TextFieldDescriptionServerComponent,\n TextFieldDiffClientComponent,\n TextFieldDiffServerComponent,\n TextFieldErrorClientComponent,\n TextFieldErrorServerComponent,\n TextFieldLabelClientComponent,\n TextFieldLabelServerComponent,\n TextFieldServerComponent,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientComponent,\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientComponent,\n TextareaFieldDescriptionServerComponent,\n TextareaFieldDiffClientComponent,\n TextareaFieldDiffServerComponent,\n TextareaFieldErrorClientComponent,\n TextareaFieldErrorServerComponent,\n TextareaFieldLabelClientComponent,\n TextareaFieldLabelServerComponent,\n TextareaFieldServerComponent,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientComponent,\n UIFieldClientProps,\n UIFieldDiffClientComponent,\n UIFieldDiffServerComponent,\n UIFieldServerComponent,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientComponent,\n UploadFieldClientProps,\n UploadFieldDescriptionClientComponent,\n UploadFieldDescriptionServerComponent,\n UploadFieldDiffClientComponent,\n UploadFieldDiffServerComponent,\n UploadFieldErrorClientComponent,\n UploadFieldErrorServerComponent,\n UploadFieldLabelClientComponent,\n UploadFieldLabelServerComponent,\n UploadFieldServerComponent,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientComponent,\n FieldDescriptionClientProps,\n FieldDescriptionServerComponent,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientComponent,\n FieldDiffClientProps,\n FieldDiffServerComponent,\n FieldDiffServerProps,\n VersionField,\n VersionTab,\n} from './forms/Diff.js'\n\nexport type {\n FieldErrorClientComponent,\n FieldErrorClientProps,\n FieldErrorServerComponent,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.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 ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientComponent,\n FieldLabelClientProps,\n FieldLabelServerComponent,\n FieldLabelServerProps,\n GenericLabelProps,\n SanitizedLabelProps,\n} from './forms/Label.js'\n\nexport type { RowLabel, RowLabelComponent } from './forms/RowLabel.js'\n\nexport type {\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n} from './functions/index.js'\n\nexport type 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 Description?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Upload?: React.ReactNode\n}\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport type {\n AdminViewComponent,\n AdminViewConfig,\n AdminViewProps,\n ClientSideEditViewProps,\n EditViewProps,\n InitPageResult,\n ServerSideEditViewProps,\n VisibleEntities,\n} from './views/types.js'\n\ntype SchemaPath = {} & string\nexport type FieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: Field[]\n }\n | Block\n | Field\n | Tab\n>\n\nexport type ClientFieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: ClientField[]\n }\n | ClientBlock\n | ClientField\n | ClientTab\n>\n\nexport type DocumentEvent = {\n entitySlug: string\n id?: number | string\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAsdA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
1
+ {"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations'\nimport type React from 'react'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { SanitizedConfig } from '../config/types.js'\nimport type {\n Block,\n ClientBlock,\n ClientField,\n Field,\n FieldTypes,\n Tab,\n} from '../fields/config/types.js'\nimport type { JsonObject } from '../types/index.js'\nimport type { ClientTab } from './fields/Tabs.js'\nimport type {\n BuildFormStateArgs,\n Data,\n FieldState,\n FieldStateWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n} from './forms/Form.js'\n\nexport type {\n /**\n * @deprecated\n * The `CustomPreviewButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPreviewButton,\n /**\n * @deprecated\n * The `CustomPublishButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomPublishButton,\n /**\n * @deprecated\n * The `CustomSaveButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveButton,\n /**\n * @deprecated\n * The `CustomSaveDraftButton` type is deprecated and will be removed in the next major version.\n * This type is only used for the Payload Config. Use `PreviewButtonClientProps` instead.\n */\n CustomComponent as CustomSaveDraftButton,\n} from '../config/types.js'\nexport type { DefaultCellComponentProps, DefaultServerCellComponentProps } from './elements/Cell.js'\nexport type { ConditionalDateProps } from './elements/DatePicker.js'\nexport type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js'\nexport type { NavGroupPreferences, NavPreferences } from './elements/Nav.js'\nexport type {\n PreviewButtonClientProps,\n PreviewButtonServerProps,\n PreviewButtonServerPropsOnly,\n} from './elements/PreviewButton.js'\nexport type {\n PublishButtonClientProps,\n PublishButtonServerProps,\n PublishButtonServerPropsOnly,\n} from './elements/PublishButton.js'\nexport type {\n SaveButtonClientProps,\n SaveButtonServerProps,\n SaveButtonServerPropsOnly,\n} from './elements/SaveButton.js'\nexport type {\n SaveDraftButtonClientProps,\n SaveDraftButtonServerProps,\n SaveDraftButtonServerPropsOnly,\n} from './elements/SaveDraftButton.js'\n\nexport type { Column } from './elements/Table.js'\n\nexport type { CustomUpload } from './elements/Upload.js'\n\nexport type {\n WithServerSidePropsComponent,\n WithServerSidePropsComponentProps,\n} from './elements/WithServerSideProps.js'\n\nexport type {\n ArrayFieldClientComponent,\n ArrayFieldClientProps,\n ArrayFieldDescriptionClientComponent,\n ArrayFieldDescriptionServerComponent,\n ArrayFieldDiffClientComponent,\n ArrayFieldDiffServerComponent,\n ArrayFieldErrorClientComponent,\n ArrayFieldErrorServerComponent,\n ArrayFieldLabelClientComponent,\n ArrayFieldLabelServerComponent,\n ArrayFieldServerComponent,\n ArrayFieldServerProps,\n} from './fields/Array.js'\n\nexport type {\n BlockRowLabelClientComponent,\n BlockRowLabelServerComponent,\n BlocksFieldClientComponent,\n BlocksFieldClientProps,\n BlocksFieldDescriptionClientComponent,\n BlocksFieldDescriptionServerComponent,\n BlocksFieldDiffClientComponent,\n BlocksFieldDiffServerComponent,\n BlocksFieldErrorClientComponent,\n BlocksFieldErrorServerComponent,\n BlocksFieldLabelClientComponent,\n BlocksFieldLabelServerComponent,\n BlocksFieldServerComponent,\n BlocksFieldServerProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldClientComponent,\n CheckboxFieldClientProps,\n CheckboxFieldDescriptionClientComponent,\n CheckboxFieldDescriptionServerComponent,\n CheckboxFieldDiffClientComponent,\n CheckboxFieldDiffServerComponent,\n CheckboxFieldErrorClientComponent,\n CheckboxFieldErrorServerComponent,\n CheckboxFieldLabelClientComponent,\n CheckboxFieldLabelServerComponent,\n CheckboxFieldServerComponent,\n CheckboxFieldServerProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldClientComponent,\n CodeFieldClientProps,\n CodeFieldDescriptionClientComponent,\n CodeFieldDescriptionServerComponent,\n CodeFieldDiffClientComponent,\n CodeFieldDiffServerComponent,\n CodeFieldErrorClientComponent,\n CodeFieldErrorServerComponent,\n CodeFieldLabelClientComponent,\n CodeFieldLabelServerComponent,\n CodeFieldServerComponent,\n CodeFieldServerProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldClientComponent,\n CollapsibleFieldClientProps,\n CollapsibleFieldDescriptionClientComponent,\n CollapsibleFieldDescriptionServerComponent,\n CollapsibleFieldDiffClientComponent,\n CollapsibleFieldDiffServerComponent,\n CollapsibleFieldErrorClientComponent,\n CollapsibleFieldErrorServerComponent,\n CollapsibleFieldLabelClientComponent,\n CollapsibleFieldLabelServerComponent,\n CollapsibleFieldServerComponent,\n CollapsibleFieldServerProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldClientComponent,\n DateFieldClientProps,\n DateFieldDescriptionClientComponent,\n DateFieldDescriptionServerComponent,\n DateFieldDiffClientComponent,\n DateFieldDiffServerComponent,\n DateFieldErrorClientComponent,\n DateFieldErrorServerComponent,\n DateFieldLabelClientComponent,\n DateFieldLabelServerComponent,\n DateFieldServerComponent,\n DateFieldServerProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldDescriptionClientComponent,\n EmailFieldDescriptionServerComponent,\n EmailFieldDiffClientComponent,\n EmailFieldDiffServerComponent,\n EmailFieldErrorClientComponent,\n EmailFieldErrorServerComponent,\n EmailFieldLabelClientComponent,\n EmailFieldLabelServerComponent,\n EmailFieldServerComponent,\n EmailFieldServerProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldClientComponent,\n GroupFieldClientProps,\n GroupFieldDescriptionClientComponent,\n GroupFieldDescriptionServerComponent,\n GroupFieldDiffClientComponent,\n GroupFieldDiffServerComponent,\n GroupFieldErrorClientComponent,\n GroupFieldErrorServerComponent,\n GroupFieldLabelClientComponent,\n GroupFieldLabelServerComponent,\n GroupFieldServerComponent,\n GroupFieldServerProps,\n} from './fields/Group.js'\n\nexport type { HiddenFieldProps } from './fields/Hidden.js'\n\nexport type {\n JoinFieldClientComponent,\n JoinFieldClientProps,\n JoinFieldDescriptionClientComponent,\n JoinFieldDescriptionServerComponent,\n JoinFieldDiffClientComponent,\n JoinFieldDiffServerComponent,\n JoinFieldErrorClientComponent,\n JoinFieldErrorServerComponent,\n JoinFieldLabelClientComponent,\n JoinFieldLabelServerComponent,\n JoinFieldServerComponent,\n JoinFieldServerProps,\n} from './fields/Join.js'\n\nexport type {\n JSONFieldClientComponent,\n JSONFieldClientProps,\n JSONFieldDescriptionClientComponent,\n JSONFieldDescriptionServerComponent,\n JSONFieldDiffClientComponent,\n JSONFieldDiffServerComponent,\n JSONFieldErrorClientComponent,\n JSONFieldErrorServerComponent,\n JSONFieldLabelClientComponent,\n JSONFieldLabelServerComponent,\n JSONFieldServerComponent,\n JSONFieldServerProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldClientComponent,\n NumberFieldClientProps,\n NumberFieldDescriptionClientComponent,\n NumberFieldDescriptionServerComponent,\n NumberFieldDiffClientComponent,\n NumberFieldDiffServerComponent,\n NumberFieldErrorClientComponent,\n NumberFieldErrorServerComponent,\n NumberFieldLabelClientComponent,\n NumberFieldLabelServerComponent,\n NumberFieldServerComponent,\n NumberFieldServerProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldClientComponent,\n PointFieldClientProps,\n PointFieldDescriptionClientComponent,\n PointFieldDescriptionServerComponent,\n PointFieldDiffClientComponent,\n PointFieldDiffServerComponent,\n PointFieldErrorClientComponent,\n PointFieldErrorServerComponent,\n PointFieldLabelClientComponent,\n PointFieldLabelServerComponent,\n PointFieldServerComponent,\n PointFieldServerProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldClientComponent,\n RadioFieldClientProps,\n RadioFieldDescriptionClientComponent,\n RadioFieldDescriptionServerComponent,\n RadioFieldDiffClientComponent,\n RadioFieldDiffServerComponent,\n RadioFieldErrorClientComponent,\n RadioFieldErrorServerComponent,\n RadioFieldLabelClientComponent,\n RadioFieldLabelServerComponent,\n RadioFieldServerComponent,\n RadioFieldServerProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldClientComponent,\n RelationshipFieldClientProps,\n RelationshipFieldDescriptionClientComponent,\n RelationshipFieldDescriptionServerComponent,\n RelationshipFieldDiffClientComponent,\n RelationshipFieldDiffServerComponent,\n RelationshipFieldErrorClientComponent,\n RelationshipFieldErrorServerComponent,\n RelationshipFieldLabelClientComponent,\n RelationshipFieldLabelServerComponent,\n RelationshipFieldServerComponent,\n RelationshipFieldServerProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldClientComponent,\n RichTextFieldClientProps,\n RichTextFieldDescriptionClientComponent,\n RichTextFieldDescriptionServerComponent,\n RichTextFieldDiffClientComponent,\n RichTextFieldDiffServerComponent,\n RichTextFieldErrorClientComponent,\n RichTextFieldErrorServerComponent,\n RichTextFieldLabelClientComponent,\n RichTextFieldLabelServerComponent,\n RichTextFieldServerComponent,\n RichTextFieldServerProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldClientComponent,\n RowFieldClientProps,\n RowFieldDescriptionClientComponent,\n RowFieldDescriptionServerComponent,\n RowFieldDiffClientComponent,\n RowFieldDiffServerComponent,\n RowFieldErrorClientComponent,\n RowFieldErrorServerComponent,\n RowFieldLabelClientComponent,\n RowFieldLabelServerComponent,\n RowFieldServerComponent,\n RowFieldServerProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldClientComponent,\n SelectFieldClientProps,\n SelectFieldDescriptionClientComponent,\n SelectFieldDescriptionServerComponent,\n SelectFieldDiffClientComponent,\n SelectFieldDiffServerComponent,\n SelectFieldErrorClientComponent,\n SelectFieldErrorServerComponent,\n SelectFieldLabelClientComponent,\n SelectFieldLabelServerComponent,\n SelectFieldServerComponent,\n SelectFieldServerProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldClientComponent,\n TabsFieldClientProps,\n TabsFieldDescriptionClientComponent,\n TabsFieldDescriptionServerComponent,\n TabsFieldDiffClientComponent,\n TabsFieldDiffServerComponent,\n TabsFieldErrorClientComponent,\n TabsFieldErrorServerComponent,\n TabsFieldLabelClientComponent,\n TabsFieldLabelServerComponent,\n TabsFieldServerComponent,\n TabsFieldServerProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldClientComponent,\n TextFieldClientProps,\n TextFieldDescriptionClientComponent,\n TextFieldDescriptionServerComponent,\n TextFieldDiffClientComponent,\n TextFieldDiffServerComponent,\n TextFieldErrorClientComponent,\n TextFieldErrorServerComponent,\n TextFieldLabelClientComponent,\n TextFieldLabelServerComponent,\n TextFieldServerComponent,\n TextFieldServerProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldClientComponent,\n TextareaFieldClientProps,\n TextareaFieldDescriptionClientComponent,\n TextareaFieldDescriptionServerComponent,\n TextareaFieldDiffClientComponent,\n TextareaFieldDiffServerComponent,\n TextareaFieldErrorClientComponent,\n TextareaFieldErrorServerComponent,\n TextareaFieldLabelClientComponent,\n TextareaFieldLabelServerComponent,\n TextareaFieldServerComponent,\n TextareaFieldServerProps,\n} from './fields/Textarea.js'\n\nexport type {\n UIFieldClientComponent,\n UIFieldClientProps,\n UIFieldDiffClientComponent,\n UIFieldDiffServerComponent,\n UIFieldServerComponent,\n UIFieldServerProps,\n} from './fields/UI.js'\n\nexport type {\n UploadFieldClientComponent,\n UploadFieldClientProps,\n UploadFieldDescriptionClientComponent,\n UploadFieldDescriptionServerComponent,\n UploadFieldDiffClientComponent,\n UploadFieldDiffServerComponent,\n UploadFieldErrorClientComponent,\n UploadFieldErrorServerComponent,\n UploadFieldLabelClientComponent,\n UploadFieldLabelServerComponent,\n UploadFieldServerComponent,\n UploadFieldServerProps,\n} from './fields/Upload.js'\n\nexport type {\n Description,\n DescriptionFunction,\n FieldDescriptionClientComponent,\n FieldDescriptionClientProps,\n FieldDescriptionServerComponent,\n FieldDescriptionServerProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/Description.js'\n\nexport type {\n BaseVersionField,\n DiffMethod,\n FieldDiffClientComponent,\n FieldDiffClientProps,\n FieldDiffServerComponent,\n FieldDiffServerProps,\n VersionField,\n VersionTab,\n} from './forms/Diff.js'\n\nexport type {\n BuildFormStateArgs,\n Data,\n FieldState as FormField,\n FieldStateWithoutComponents as FormFieldWithoutComponents,\n FilterOptionsResult,\n FormState,\n FormStateWithoutComponents,\n Row,\n}\n\nexport type {\n FieldErrorClientComponent,\n FieldErrorClientProps,\n FieldErrorServerComponent,\n FieldErrorServerProps,\n GenericErrorProps,\n} from './forms/Error.js'\n\nexport type {\n ClientComponentProps,\n ClientFieldBase,\n ClientFieldWithOptionalType,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerComponentProps,\n ServerFieldBase,\n} from './forms/Field.js'\n\nexport type {\n FieldLabelClientComponent,\n FieldLabelClientProps,\n FieldLabelServerComponent,\n FieldLabelServerProps,\n GenericLabelProps,\n SanitizedLabelProps,\n} from './forms/Label.js'\n\nexport type { RowLabel, RowLabelComponent } from './forms/RowLabel.js'\n\nexport type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<any>\n RenderedComponent: React.ReactNode\n type: 'server'\n}\n\nexport type MappedClientComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component?: React.ComponentType<TComponentClientProps>\n props?: Partial<TComponentClientProps>\n RenderedComponent?: React.ReactNode\n type: 'client'\n}\n\nexport type MappedEmptyComponent = {\n type: 'empty'\n}\n\nexport enum Action {\n RenderConfig = 'render-config',\n}\n\nexport type RenderEntityConfigArgs = {\n collectionSlug?: string\n data?: Data\n globalSlug?: string\n}\n\nexport type RenderRootConfigArgs = {}\n\nexport type RenderFieldConfigArgs = {\n collectionSlug?: string\n formState?: FormState\n globalSlug?: string\n schemaPath: string\n}\n\nexport type RenderConfigArgs = {\n action: Action.RenderConfig\n config: Promise<SanitizedConfig> | SanitizedConfig\n i18n: I18nClient\n importMap: ImportMap\n languageCode: AcceptedLanguages\n serverProps?: any\n} & (RenderEntityConfigArgs | RenderFieldConfigArgs | RenderRootConfigArgs)\n\nexport type PayloadServerAction = (\n args:\n | {\n [key: string]: any\n action: Action\n i18n: I18nClient\n }\n | RenderConfigArgs,\n) => Promise<string>\n\nexport type RenderedField = {\n Field: React.ReactNode\n indexPath?: string\n initialSchemaPath?: string\n /**\n * @deprecated\n * This is a legacy property that will be removed in v4.\n * Please use `fieldIsSidebar(field)` from `payload` instead.\n * Or check `field.admin.position === 'sidebar'` directly.\n */\n isSidebar: boolean\n path: string\n schemaPath: string\n type: FieldTypes\n}\n\nexport type FieldRow = {\n RowLabel?: React.ReactNode\n}\n\nexport type DocumentSlots = {\n Description?: React.ReactNode\n PreviewButton?: React.ReactNode\n PublishButton?: React.ReactNode\n SaveButton?: React.ReactNode\n SaveDraftButton?: React.ReactNode\n Upload?: React.ReactNode\n}\n\nexport type {\n BuildTableStateArgs,\n DefaultServerFunctionArgs,\n ListQuery,\n ServerFunction,\n ServerFunctionArgs,\n ServerFunctionClient,\n ServerFunctionClientArgs,\n ServerFunctionConfig,\n ServerFunctionHandler,\n} from './functions/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\n\nexport type { RichTextAdapter, RichTextAdapterProvider, RichTextHooks } from './RichText.js'\n\nexport type {\n DocumentSubViewTypes,\n DocumentTabClientProps,\n /**\n * @deprecated\n * The `DocumentTabComponent` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps`or `DocumentTabClientProps` instead.\n */\n DocumentTabComponent,\n DocumentTabCondition,\n DocumentTabConfig,\n /**\n * @deprecated\n * The `DocumentTabProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentTabServerProps` instead.\n */\n DocumentTabServerProps as DocumentTabProps,\n DocumentTabServerProps,\n DocumentTabServerPropsOnly,\n /**\n * @deprecated\n * The `ClientSideEditViewProps` type is deprecated and will be removed in the next major version.\n * Use `DocumentViewClientProps` instead.\n */\n DocumentViewClientProps as ClientSideEditViewProps,\n DocumentViewClientProps,\n /**\n * @deprecated\n * The `ServerSideEditViewProps` is deprecated and will be removed in the next major version.\n * Use `DocumentViewServerProps` instead.\n */\n DocumentViewServerProps as ServerSideEditViewProps,\n DocumentViewServerProps,\n DocumentViewServerPropsOnly,\n EditViewProps,\n} from './views/document.js'\n\nexport type {\n AdminViewClientProps,\n /**\n * @deprecated\n * The `AdminViewComponent` type is deprecated and will be removed in the next major version.\n * Type your component props directly instead.\n */\n AdminViewComponent,\n AdminViewConfig,\n /**\n * @deprecated\n * The `AdminViewProps` type is deprecated and will be removed in the next major version.\n * Use `AdminViewServerProps` instead.\n */\n AdminViewServerProps as AdminViewProps,\n AdminViewServerProps,\n AdminViewServerPropsOnly,\n InitPageResult,\n ServerPropsFromView,\n ViewDescriptionClientProps,\n ViewDescriptionServerProps,\n ViewDescriptionServerPropsOnly,\n ViewTypes,\n VisibleEntities,\n} from './views/index.js'\n\nexport type {\n AfterListClientProps,\n AfterListServerProps,\n AfterListServerPropsOnly,\n AfterListTableClientProps,\n AfterListTableServerProps,\n AfterListTableServerPropsOnly,\n BeforeListClientProps,\n BeforeListServerProps,\n BeforeListServerPropsOnly,\n BeforeListTableClientProps,\n BeforeListTableServerProps,\n BeforeListTableServerPropsOnly,\n ListViewClientProps,\n ListViewServerProps,\n ListViewServerPropsOnly,\n ListViewSlots,\n ListViewSlotSharedClientProps,\n} from './views/list.js'\n\ntype SchemaPath = {} & string\nexport type FieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: Field[]\n }\n | Block\n | Field\n | Tab\n>\n\nexport type ClientFieldSchemaMap = Map<\n SchemaPath,\n | {\n fields: ClientField[]\n }\n | ClientBlock\n | ClientField\n | ClientTab\n>\n\nexport type DocumentEvent = {\n entitySlug: string\n id?: number | string\n updatedAt: string\n}\n"],"names":["Action"],"mappings":"AAgfA,OAAO,IAAA,AAAKA,gCAAAA;;WAAAA;MAEX"}
@@ -1,16 +1,37 @@
1
- import type { I18n } from '@payloadcms/translations';
2
1
  import type { SanitizedPermissions } from '../../auth/types.js';
3
2
  import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
4
- import type { PayloadComponent, SanitizedConfig } from '../../config/types.js';
3
+ import type { PayloadComponent, SanitizedConfig, ServerProps } from '../../config/types.js';
5
4
  import type { SanitizedGlobalConfig } from '../../globals/config/types.js';
6
- import type { Payload } from '../../index.js';
7
- export type DocumentTabProps = {
5
+ import type { Data, DocumentSlots, FormState } from '../types.js';
6
+ import type { InitPageResult, ViewTypes } from './index.js';
7
+ export type EditViewProps = {
8
+ readonly collectionSlug?: string;
9
+ readonly globalSlug?: string;
10
+ };
11
+ export type DocumentViewServerPropsOnly = {
12
+ readonly doc: Data;
13
+ readonly initPageResult: InitPageResult;
14
+ readonly routeSegments: string[];
15
+ } & ServerProps;
16
+ export type DocumentViewServerProps = DocumentViewClientProps & DocumentViewServerPropsOnly;
17
+ export type DocumentViewClientProps = {
18
+ documentSubViewType: DocumentSubViewTypes;
19
+ formState: FormState;
20
+ viewType: ViewTypes;
21
+ } & DocumentSlots;
22
+ /**
23
+ * @todo: This should be renamed to `DocumentSubViewType` (singular)
24
+ */
25
+ export type DocumentSubViewTypes = 'api' | 'default' | 'livePreview' | 'version' | 'versions';
26
+ export type DocumentTabServerPropsOnly = {
8
27
  readonly apiURL?: string;
9
28
  readonly collectionConfig?: SanitizedCollectionConfig;
10
29
  readonly globalConfig?: SanitizedGlobalConfig;
11
- readonly i18n: I18n;
12
- readonly payload: Payload;
13
30
  readonly permissions: SanitizedPermissions;
31
+ } & ServerProps;
32
+ export type DocumentTabServerProps = DocumentTabClientProps & DocumentTabServerPropsOnly;
33
+ export type DocumentTabClientProps = {
34
+ path: string;
14
35
  };
15
36
  export type DocumentTabCondition = (args: {
16
37
  collectionConfig: SanitizedCollectionConfig;
@@ -37,7 +58,10 @@ export type DocumentTabConfig = {
37
58
  readonly newTab?: boolean;
38
59
  readonly Pill?: PayloadComponent;
39
60
  };
61
+ /**
62
+ * @todo: Remove this type as it's only used internally for the config (above)
63
+ */
40
64
  export type DocumentTabComponent = PayloadComponent<{
41
65
  path: string;
42
66
  }>;
43
- //# sourceMappingURL=Tab.d.ts.map
67
+ //# sourceMappingURL=document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/admin/views/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3D,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAA;IAClB,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAA;IACvC,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAA;CACjC,GAAG,WAAW,CAAA;AAEf,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAAG,2BAA2B,CAAA;AAE3F,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,EAAE,oBAAoB,CAAA;IACzC,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,SA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