payload 3.0.0-canary.f83d96a → 3.0.0-canary.ff8c8fd

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 (879) hide show
  1. package/bin.js +43 -10
  2. package/dist/admin/RichText.d.ts +29 -25
  3. package/dist/admin/RichText.d.ts.map +1 -1
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/elements/Cell.d.ts +11 -24
  6. package/dist/admin/elements/Cell.d.ts.map +1 -1
  7. package/dist/admin/elements/Cell.js.map +1 -1
  8. package/dist/admin/elements/DatePicker.d.ts +7 -7
  9. package/dist/admin/elements/DatePicker.d.ts.map +1 -1
  10. package/dist/admin/elements/DatePicker.js.map +1 -1
  11. package/dist/admin/elements/Tab.d.ts +16 -15
  12. package/dist/admin/elements/Tab.d.ts.map +1 -1
  13. package/dist/admin/elements/Tab.js.map +1 -1
  14. package/dist/admin/fields/Array.d.ts +18 -0
  15. package/dist/admin/fields/Array.d.ts.map +1 -0
  16. package/dist/admin/fields/Array.js +3 -0
  17. package/dist/admin/fields/Array.js.map +1 -0
  18. package/dist/admin/fields/Blocks.d.ts +17 -0
  19. package/dist/admin/fields/Blocks.d.ts.map +1 -0
  20. package/dist/admin/fields/Blocks.js +3 -0
  21. package/dist/admin/fields/Blocks.js.map +1 -0
  22. package/dist/admin/fields/Checkbox.d.ts +22 -0
  23. package/dist/admin/fields/Checkbox.d.ts.map +1 -0
  24. package/dist/admin/fields/Checkbox.js +3 -0
  25. package/dist/admin/fields/Checkbox.js.map +1 -0
  26. package/dist/admin/fields/Code.d.ts +18 -0
  27. package/dist/admin/fields/Code.d.ts.map +1 -0
  28. package/dist/admin/fields/Code.js +3 -0
  29. package/dist/admin/fields/Code.js.map +1 -0
  30. package/dist/admin/fields/Collapsible.d.ts +14 -0
  31. package/dist/admin/fields/Collapsible.d.ts.map +1 -0
  32. package/dist/admin/fields/Collapsible.js +3 -0
  33. package/dist/admin/fields/Collapsible.js.map +1 -0
  34. package/dist/admin/fields/Date.d.ts +17 -0
  35. package/dist/admin/fields/Date.d.ts.map +1 -0
  36. package/dist/admin/fields/Date.js +3 -0
  37. package/dist/admin/fields/Date.js.map +1 -0
  38. package/dist/admin/fields/Email.d.ts +18 -0
  39. package/dist/admin/fields/Email.d.ts.map +1 -0
  40. package/dist/admin/fields/Email.js +3 -0
  41. package/dist/admin/fields/Email.js.map +1 -0
  42. package/dist/admin/fields/Group.d.ts +14 -0
  43. package/dist/admin/fields/Group.d.ts.map +1 -0
  44. package/dist/admin/fields/Group.js +3 -0
  45. package/dist/admin/fields/Group.js.map +1 -0
  46. package/dist/admin/fields/Hidden.d.ts +11 -0
  47. package/dist/admin/fields/Hidden.d.ts.map +1 -0
  48. package/dist/admin/fields/Hidden.js +3 -0
  49. package/dist/admin/fields/Hidden.js.map +1 -0
  50. package/dist/admin/fields/JSON.d.ts +17 -0
  51. package/dist/admin/fields/JSON.d.ts.map +1 -0
  52. package/dist/admin/fields/JSON.js +3 -0
  53. package/dist/admin/fields/JSON.js.map +1 -0
  54. package/dist/admin/fields/Number.d.ts +18 -0
  55. package/dist/admin/fields/Number.d.ts.map +1 -0
  56. package/dist/admin/fields/Number.js +3 -0
  57. package/dist/admin/fields/Number.js.map +1 -0
  58. package/dist/admin/fields/Point.d.ts +17 -0
  59. package/dist/admin/fields/Point.d.ts.map +1 -0
  60. package/dist/admin/fields/Point.js +3 -0
  61. package/dist/admin/fields/Point.js.map +1 -0
  62. package/dist/admin/fields/Radio.d.ts +20 -0
  63. package/dist/admin/fields/Radio.d.ts.map +1 -0
  64. package/dist/admin/fields/Radio.js +3 -0
  65. package/dist/admin/fields/Radio.js.map +1 -0
  66. package/dist/admin/fields/Relationship.d.ts +17 -0
  67. package/dist/admin/fields/Relationship.d.ts.map +1 -0
  68. package/dist/admin/fields/Relationship.js +3 -0
  69. package/dist/admin/fields/Relationship.js.map +1 -0
  70. package/dist/admin/fields/RichText.d.ts +17 -0
  71. package/dist/admin/fields/RichText.d.ts.map +1 -0
  72. package/dist/admin/fields/RichText.js +3 -0
  73. package/dist/admin/fields/RichText.js.map +1 -0
  74. package/dist/admin/fields/Row.d.ts +16 -0
  75. package/dist/admin/fields/Row.d.ts.map +1 -0
  76. package/dist/admin/fields/Row.js +3 -0
  77. package/dist/admin/fields/Row.js.map +1 -0
  78. package/dist/admin/fields/Select.d.ts +19 -0
  79. package/dist/admin/fields/Select.d.ts.map +1 -0
  80. package/dist/admin/fields/Select.js +3 -0
  81. package/dist/admin/fields/Select.js.map +1 -0
  82. package/dist/admin/fields/Tabs.d.ts +18 -0
  83. package/dist/admin/fields/Tabs.d.ts.map +1 -0
  84. package/dist/admin/fields/Tabs.js +3 -0
  85. package/dist/admin/fields/Tabs.js.map +1 -0
  86. package/dist/admin/fields/Text.d.ts +20 -0
  87. package/dist/admin/fields/Text.d.ts.map +1 -0
  88. package/dist/admin/fields/Text.js +3 -0
  89. package/dist/admin/fields/Text.js.map +1 -0
  90. package/dist/admin/fields/Textarea.d.ts +20 -0
  91. package/dist/admin/fields/Textarea.d.ts.map +1 -0
  92. package/dist/admin/fields/Textarea.js +3 -0
  93. package/dist/admin/fields/Textarea.js.map +1 -0
  94. package/dist/admin/fields/Upload.d.ts +17 -0
  95. package/dist/admin/fields/Upload.d.ts.map +1 -0
  96. package/dist/admin/fields/Upload.js +3 -0
  97. package/dist/admin/fields/Upload.js.map +1 -0
  98. package/dist/admin/forms/Description.d.ts +24 -0
  99. package/dist/admin/forms/Description.d.ts.map +1 -0
  100. package/dist/admin/forms/Description.js +3 -0
  101. package/dist/admin/forms/Description.js.map +1 -0
  102. package/dist/admin/forms/Error.d.ts +20 -6
  103. package/dist/admin/forms/Error.d.ts.map +1 -1
  104. package/dist/admin/forms/Error.js.map +1 -1
  105. package/dist/admin/forms/Field.d.ts +27 -0
  106. package/dist/admin/forms/Field.d.ts.map +1 -0
  107. package/dist/admin/forms/Field.js +3 -0
  108. package/dist/admin/forms/Field.js.map +1 -0
  109. package/dist/admin/forms/Form.d.ts +2 -2
  110. package/dist/admin/forms/Form.d.ts.map +1 -1
  111. package/dist/admin/forms/Form.js.map +1 -1
  112. package/dist/admin/forms/Label.d.ts +22 -9
  113. package/dist/admin/forms/Label.d.ts.map +1 -1
  114. package/dist/admin/forms/Label.js.map +1 -1
  115. package/dist/admin/types.d.ts +61 -6
  116. package/dist/admin/types.d.ts.map +1 -1
  117. package/dist/admin/types.js.map +1 -1
  118. package/dist/admin/views/types.d.ts +24 -15
  119. package/dist/admin/views/types.d.ts.map +1 -1
  120. package/dist/admin/views/types.js.map +1 -1
  121. package/dist/auth/baseFields/accountLock.d.ts +1 -2
  122. package/dist/auth/baseFields/accountLock.d.ts.map +1 -1
  123. package/dist/auth/baseFields/accountLock.js +1 -1
  124. package/dist/auth/baseFields/accountLock.js.map +1 -1
  125. package/dist/auth/baseFields/apiKey.d.ts +1 -2
  126. package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
  127. package/dist/auth/baseFields/apiKey.js +3 -4
  128. package/dist/auth/baseFields/apiKey.js.map +1 -1
  129. package/dist/auth/baseFields/auth.d.ts +1 -2
  130. package/dist/auth/baseFields/auth.d.ts.map +1 -1
  131. package/dist/auth/baseFields/auth.js +1 -16
  132. package/dist/auth/baseFields/auth.js.map +1 -1
  133. package/dist/auth/baseFields/email.d.ts +3 -0
  134. package/dist/auth/baseFields/email.d.ts.map +1 -0
  135. package/dist/auth/baseFields/email.js +25 -0
  136. package/dist/auth/baseFields/email.js.map +1 -0
  137. package/dist/auth/baseFields/username.d.ts +3 -0
  138. package/dist/auth/baseFields/username.d.ts.map +1 -0
  139. package/dist/auth/baseFields/username.js +25 -0
  140. package/dist/auth/baseFields/username.js.map +1 -0
  141. package/dist/auth/baseFields/verification.d.ts +1 -2
  142. package/dist/auth/baseFields/verification.d.ts.map +1 -1
  143. package/dist/auth/baseFields/verification.js +2 -2
  144. package/dist/auth/baseFields/verification.js.map +1 -1
  145. package/dist/auth/defaultAccess.d.ts +2 -2
  146. package/dist/auth/defaultAccess.d.ts.map +1 -1
  147. package/dist/auth/defaultAccess.js.map +1 -1
  148. package/dist/auth/ensureUsernameOrEmail.d.ts +17 -0
  149. package/dist/auth/ensureUsernameOrEmail.d.ts.map +1 -0
  150. package/dist/auth/ensureUsernameOrEmail.js +43 -0
  151. package/dist/auth/ensureUsernameOrEmail.js.map +1 -0
  152. package/dist/auth/executeAccess.d.ts +2 -2
  153. package/dist/auth/executeAccess.d.ts.map +1 -1
  154. package/dist/auth/executeAccess.js.map +1 -1
  155. package/dist/auth/getAccessResults.d.ts +2 -2
  156. package/dist/auth/getAccessResults.d.ts.map +1 -1
  157. package/dist/auth/getAccessResults.js +2 -7
  158. package/dist/auth/getAccessResults.js.map +1 -1
  159. package/dist/auth/getAuthFields.d.ts +4 -0
  160. package/dist/auth/getAuthFields.d.ts.map +1 -0
  161. package/dist/auth/getAuthFields.js +43 -0
  162. package/dist/auth/getAuthFields.js.map +1 -0
  163. package/dist/auth/getFieldsToSign.d.ts +2 -2
  164. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  165. package/dist/auth/getFieldsToSign.js +1 -1
  166. package/dist/auth/getFieldsToSign.js.map +1 -1
  167. package/dist/auth/index.d.ts +2 -2
  168. package/dist/auth/index.d.ts.map +1 -1
  169. package/dist/auth/index.js +2 -2
  170. package/dist/auth/index.js.map +1 -1
  171. package/dist/auth/isLocked.d.ts.map +1 -1
  172. package/dist/auth/isLocked.js +4 -1
  173. package/dist/auth/isLocked.js.map +1 -1
  174. package/dist/auth/operations/access.d.ts +2 -2
  175. package/dist/auth/operations/access.d.ts.map +1 -1
  176. package/dist/auth/operations/access.js +1 -6
  177. package/dist/auth/operations/access.js.map +1 -1
  178. package/dist/auth/operations/auth.d.ts +2 -2
  179. package/dist/auth/operations/auth.d.ts.map +1 -1
  180. package/dist/auth/operations/auth.js.map +1 -1
  181. package/dist/auth/operations/forgotPassword.d.ts +7 -7
  182. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  183. package/dist/auth/operations/forgotPassword.js +27 -11
  184. package/dist/auth/operations/forgotPassword.js.map +1 -1
  185. package/dist/auth/operations/init.d.ts +2 -2
  186. package/dist/auth/operations/init.d.ts.map +1 -1
  187. package/dist/auth/operations/init.js.map +1 -1
  188. package/dist/auth/operations/local/auth.js.map +1 -1
  189. package/dist/auth/operations/local/forgotPassword.d.ts +2 -2
  190. package/dist/auth/operations/local/forgotPassword.d.ts.map +1 -1
  191. package/dist/auth/operations/local/forgotPassword.js.map +1 -1
  192. package/dist/auth/operations/local/login.d.ts +6 -9
  193. package/dist/auth/operations/local/login.d.ts.map +1 -1
  194. package/dist/auth/operations/local/login.js.map +1 -1
  195. package/dist/auth/operations/local/resetPassword.d.ts +2 -2
  196. package/dist/auth/operations/local/resetPassword.d.ts.map +1 -1
  197. package/dist/auth/operations/local/resetPassword.js.map +1 -1
  198. package/dist/auth/operations/local/unlock.d.ts +7 -9
  199. package/dist/auth/operations/local/unlock.d.ts.map +1 -1
  200. package/dist/auth/operations/local/unlock.js.map +1 -1
  201. package/dist/auth/operations/local/verifyEmail.d.ts +2 -2
  202. package/dist/auth/operations/local/verifyEmail.d.ts.map +1 -1
  203. package/dist/auth/operations/local/verifyEmail.js.map +1 -1
  204. package/dist/auth/operations/login.d.ts +7 -10
  205. package/dist/auth/operations/login.d.ts.map +1 -1
  206. package/dist/auth/operations/login.js +82 -11
  207. package/dist/auth/operations/login.js.map +1 -1
  208. package/dist/auth/operations/logout.d.ts +2 -2
  209. package/dist/auth/operations/logout.d.ts.map +1 -1
  210. package/dist/auth/operations/logout.js.map +1 -1
  211. package/dist/auth/operations/me.d.ts +2 -2
  212. package/dist/auth/operations/me.d.ts.map +1 -1
  213. package/dist/auth/operations/me.js.map +1 -1
  214. package/dist/auth/operations/refresh.d.ts +2 -2
  215. package/dist/auth/operations/refresh.d.ts.map +1 -1
  216. package/dist/auth/operations/refresh.js.map +1 -1
  217. package/dist/auth/operations/registerFirstUser.d.ts +4 -7
  218. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  219. package/dist/auth/operations/registerFirstUser.js +8 -0
  220. package/dist/auth/operations/registerFirstUser.js.map +1 -1
  221. package/dist/auth/operations/resetPassword.d.ts +2 -3
  222. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  223. package/dist/auth/operations/resetPassword.js +3 -3
  224. package/dist/auth/operations/resetPassword.js.map +1 -1
  225. package/dist/auth/operations/unlock.d.ts +7 -9
  226. package/dist/auth/operations/unlock.d.ts.map +1 -1
  227. package/dist/auth/operations/unlock.js +22 -15
  228. package/dist/auth/operations/unlock.js.map +1 -1
  229. package/dist/auth/operations/verifyEmail.d.ts +2 -2
  230. package/dist/auth/operations/verifyEmail.d.ts.map +1 -1
  231. package/dist/auth/operations/verifyEmail.js.map +1 -1
  232. package/dist/auth/sendVerificationEmail.d.ts +2 -2
  233. package/dist/auth/sendVerificationEmail.d.ts.map +1 -1
  234. package/dist/auth/sendVerificationEmail.js.map +1 -1
  235. package/dist/auth/strategies/jwt.d.ts.map +1 -1
  236. package/dist/auth/strategies/jwt.js +62 -0
  237. package/dist/auth/strategies/jwt.js.map +1 -1
  238. package/dist/auth/strategies/local/authenticate.d.ts +1 -1
  239. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  240. package/dist/auth/strategies/local/authenticate.js.map +1 -1
  241. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts +3 -1
  242. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  243. package/dist/auth/strategies/local/generatePasswordSaltHash.js +14 -8
  244. package/dist/auth/strategies/local/generatePasswordSaltHash.js.map +1 -1
  245. package/dist/auth/strategies/local/incrementLoginAttempts.d.ts +3 -3
  246. package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
  247. package/dist/auth/strategies/local/incrementLoginAttempts.js +1 -1
  248. package/dist/auth/strategies/local/incrementLoginAttempts.js.map +1 -1
  249. package/dist/auth/strategies/local/register.d.ts +4 -4
  250. package/dist/auth/strategies/local/register.d.ts.map +1 -1
  251. package/dist/auth/strategies/local/register.js +34 -7
  252. package/dist/auth/strategies/local/register.js.map +1 -1
  253. package/dist/auth/strategies/local/resetLoginAttempts.d.ts +3 -3
  254. package/dist/auth/strategies/local/resetLoginAttempts.d.ts.map +1 -1
  255. package/dist/auth/strategies/local/resetLoginAttempts.js.map +1 -1
  256. package/dist/auth/types.d.ts +27 -15
  257. package/dist/auth/types.d.ts.map +1 -1
  258. package/dist/auth/types.js.map +1 -1
  259. package/dist/bin/generateImportMap/index.d.ts +47 -0
  260. package/dist/bin/generateImportMap/index.d.ts.map +1 -0
  261. package/dist/bin/generateImportMap/index.js +129 -0
  262. package/dist/bin/generateImportMap/index.js.map +1 -0
  263. package/dist/bin/generateImportMap/iterateCollections.d.ts +12 -0
  264. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -0
  265. package/dist/bin/generateImportMap/iterateCollections.js +41 -0
  266. package/dist/bin/generateImportMap/iterateCollections.js.map +1 -0
  267. package/dist/bin/generateImportMap/iterateConfig.d.ts +10 -0
  268. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -0
  269. package/dist/bin/generateImportMap/iterateConfig.js +75 -0
  270. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -0
  271. package/dist/bin/generateImportMap/iterateFields.d.ts +12 -0
  272. package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -0
  273. package/dist/bin/generateImportMap/iterateFields.js +56 -0
  274. package/dist/bin/generateImportMap/iterateFields.js.map +1 -0
  275. package/dist/bin/generateImportMap/iterateGlobals.d.ts +12 -0
  276. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +1 -0
  277. package/dist/bin/generateImportMap/iterateGlobals.js +34 -0
  278. package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -0
  279. package/dist/bin/generateImportMap/parsePayloadComponent.d.ts +6 -0
  280. package/dist/bin/generateImportMap/parsePayloadComponent.d.ts.map +1 -0
  281. package/dist/bin/generateImportMap/parsePayloadComponent.js +22 -0
  282. package/dist/bin/generateImportMap/parsePayloadComponent.js.map +1 -0
  283. package/dist/bin/generateTypes.js +2 -2
  284. package/dist/bin/generateTypes.js.map +1 -1
  285. package/dist/bin/index.d.ts.map +1 -1
  286. package/dist/bin/index.js +38 -6
  287. package/dist/bin/index.js.map +1 -1
  288. package/dist/collections/config/client.d.ts +32 -309
  289. package/dist/collections/config/client.d.ts.map +1 -1
  290. package/dist/collections/config/client.js +1 -72
  291. package/dist/collections/config/client.js.map +1 -1
  292. package/dist/collections/config/defaults.d.ts +5 -67
  293. package/dist/collections/config/defaults.d.ts.map +1 -1
  294. package/dist/collections/config/defaults.js +6 -0
  295. package/dist/collections/config/defaults.js.map +1 -1
  296. package/dist/collections/config/reservedFieldNames.d.ts +15 -0
  297. package/dist/collections/config/reservedFieldNames.d.ts.map +1 -0
  298. package/dist/collections/config/reservedFieldNames.js +104 -0
  299. package/dist/collections/config/reservedFieldNames.js.map +1 -0
  300. package/dist/collections/config/reservedFieldNames.spec.js +148 -0
  301. package/dist/collections/config/reservedFieldNames.spec.js.map +1 -0
  302. package/dist/collections/config/sanitize.d.ts.map +1 -1
  303. package/dist/collections/config/sanitize.js +41 -36
  304. package/dist/collections/config/sanitize.js.map +1 -1
  305. package/dist/collections/config/types.d.ts +32 -32
  306. package/dist/collections/config/types.d.ts.map +1 -1
  307. package/dist/collections/config/types.js.map +1 -1
  308. package/dist/collections/dataloader.d.ts +1 -1
  309. package/dist/collections/dataloader.d.ts.map +1 -1
  310. package/dist/collections/dataloader.js +1 -1
  311. package/dist/collections/dataloader.js.map +1 -1
  312. package/dist/collections/operations/count.d.ts +2 -2
  313. package/dist/collections/operations/count.d.ts.map +1 -1
  314. package/dist/collections/operations/count.js +0 -4
  315. package/dist/collections/operations/count.js.map +1 -1
  316. package/dist/collections/operations/create.d.ts +2 -2
  317. package/dist/collections/operations/create.d.ts.map +1 -1
  318. package/dist/collections/operations/create.js +9 -4
  319. package/dist/collections/operations/create.js.map +1 -1
  320. package/dist/collections/operations/delete.d.ts +2 -2
  321. package/dist/collections/operations/delete.d.ts.map +1 -1
  322. package/dist/collections/operations/delete.js +1 -1
  323. package/dist/collections/operations/delete.js.map +1 -1
  324. package/dist/collections/operations/deleteByID.d.ts +2 -2
  325. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  326. package/dist/collections/operations/deleteByID.js.map +1 -1
  327. package/dist/collections/operations/docAccess.d.ts +2 -2
  328. package/dist/collections/operations/docAccess.d.ts.map +1 -1
  329. package/dist/collections/operations/docAccess.js +0 -4
  330. package/dist/collections/operations/docAccess.js.map +1 -1
  331. package/dist/collections/operations/duplicate.d.ts +2 -2
  332. package/dist/collections/operations/duplicate.d.ts.map +1 -1
  333. package/dist/collections/operations/duplicate.js.map +1 -1
  334. package/dist/collections/operations/find.d.ts +2 -2
  335. package/dist/collections/operations/find.d.ts.map +1 -1
  336. package/dist/collections/operations/find.js +0 -4
  337. package/dist/collections/operations/find.js.map +1 -1
  338. package/dist/collections/operations/findByID.d.ts +2 -2
  339. package/dist/collections/operations/findByID.d.ts.map +1 -1
  340. package/dist/collections/operations/findByID.js +1 -5
  341. package/dist/collections/operations/findByID.js.map +1 -1
  342. package/dist/collections/operations/findVersionByID.d.ts +2 -2
  343. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  344. package/dist/collections/operations/findVersionByID.js +1 -5
  345. package/dist/collections/operations/findVersionByID.js.map +1 -1
  346. package/dist/collections/operations/findVersions.d.ts +2 -2
  347. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  348. package/dist/collections/operations/findVersions.js +0 -4
  349. package/dist/collections/operations/findVersions.js.map +1 -1
  350. package/dist/collections/operations/local/count.d.ts +2 -2
  351. package/dist/collections/operations/local/count.d.ts.map +1 -1
  352. package/dist/collections/operations/local/count.js.map +1 -1
  353. package/dist/collections/operations/local/create.d.ts +2 -2
  354. package/dist/collections/operations/local/create.d.ts.map +1 -1
  355. package/dist/collections/operations/local/create.js.map +1 -1
  356. package/dist/collections/operations/local/delete.d.ts +6 -6
  357. package/dist/collections/operations/local/delete.d.ts.map +1 -1
  358. package/dist/collections/operations/local/delete.js.map +1 -1
  359. package/dist/collections/operations/local/duplicate.d.ts +2 -2
  360. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  361. package/dist/collections/operations/local/duplicate.js.map +1 -1
  362. package/dist/collections/operations/local/find.d.ts +2 -2
  363. package/dist/collections/operations/local/find.d.ts.map +1 -1
  364. package/dist/collections/operations/local/find.js.map +1 -1
  365. package/dist/collections/operations/local/findByID.d.ts +2 -2
  366. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  367. package/dist/collections/operations/local/findByID.js.map +1 -1
  368. package/dist/collections/operations/local/findVersionByID.d.ts +2 -2
  369. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  370. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  371. package/dist/collections/operations/local/findVersions.d.ts +2 -2
  372. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  373. package/dist/collections/operations/local/findVersions.js.map +1 -1
  374. package/dist/collections/operations/local/restoreVersion.d.ts +2 -2
  375. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  376. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  377. package/dist/collections/operations/local/update.d.ts +6 -6
  378. package/dist/collections/operations/local/update.d.ts.map +1 -1
  379. package/dist/collections/operations/local/update.js.map +1 -1
  380. package/dist/collections/operations/restoreVersion.d.ts +3 -2
  381. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  382. package/dist/collections/operations/restoreVersion.js +6 -7
  383. package/dist/collections/operations/restoreVersion.js.map +1 -1
  384. package/dist/collections/operations/update.d.ts +2 -2
  385. package/dist/collections/operations/update.d.ts.map +1 -1
  386. package/dist/collections/operations/update.js +11 -0
  387. package/dist/collections/operations/update.js.map +1 -1
  388. package/dist/collections/operations/updateByID.d.ts +2 -2
  389. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  390. package/dist/collections/operations/updateByID.js +13 -1
  391. package/dist/collections/operations/updateByID.js.map +1 -1
  392. package/dist/collections/operations/utils.d.ts +4 -4
  393. package/dist/collections/operations/utils.d.ts.map +1 -1
  394. package/dist/collections/operations/utils.js.map +1 -1
  395. package/dist/config/client.d.ts +15 -9
  396. package/dist/config/client.d.ts.map +1 -1
  397. package/dist/config/client.js +17 -65
  398. package/dist/config/client.js.map +1 -1
  399. package/dist/config/defaults.d.ts.map +1 -1
  400. package/dist/config/defaults.js +4 -0
  401. package/dist/config/defaults.js.map +1 -1
  402. package/dist/config/find.d.ts.map +1 -1
  403. package/dist/config/find.js +1 -2
  404. package/dist/config/find.js.map +1 -1
  405. package/dist/config/sanitize.d.ts.map +1 -1
  406. package/dist/config/sanitize.js +32 -7
  407. package/dist/config/sanitize.js.map +1 -1
  408. package/dist/config/types.d.ts +173 -81
  409. package/dist/config/types.d.ts.map +1 -1
  410. package/dist/config/types.js.map +1 -1
  411. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  412. package/dist/database/createDatabaseAdapter.js +1 -1
  413. package/dist/database/createDatabaseAdapter.js.map +1 -1
  414. package/dist/database/getLocalizedPaths.d.ts.map +1 -1
  415. package/dist/database/getLocalizedPaths.js +2 -3
  416. package/dist/database/getLocalizedPaths.js.map +1 -1
  417. package/dist/database/migrations/createMigration.d.ts.map +1 -1
  418. package/dist/database/migrations/createMigration.js +6 -2
  419. package/dist/database/migrations/createMigration.js.map +1 -1
  420. package/dist/database/migrations/getPredefinedMigration.d.ts.map +1 -1
  421. package/dist/database/migrations/getPredefinedMigration.js +5 -2
  422. package/dist/database/migrations/getPredefinedMigration.js.map +1 -1
  423. package/dist/database/migrations/migrate.d.ts +1 -1
  424. package/dist/database/migrations/migrate.d.ts.map +1 -1
  425. package/dist/database/migrations/migrate.js +5 -5
  426. package/dist/database/migrations/migrate.js.map +1 -1
  427. package/dist/database/migrations/migrateDown.d.ts.map +1 -1
  428. package/dist/database/migrations/migrateDown.js +1 -1
  429. package/dist/database/migrations/migrateDown.js.map +1 -1
  430. package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
  431. package/dist/database/migrations/migrateRefresh.js +1 -1
  432. package/dist/database/migrations/migrateRefresh.js.map +1 -1
  433. package/dist/database/migrations/migrateReset.d.ts.map +1 -1
  434. package/dist/database/migrations/migrateReset.js +1 -1
  435. package/dist/database/migrations/migrateReset.js.map +1 -1
  436. package/dist/database/migrations/migrateStatus.js +0 -1
  437. package/dist/database/migrations/migrateStatus.js.map +1 -1
  438. package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
  439. package/dist/database/migrations/readMigrationFiles.js +3 -2
  440. package/dist/database/migrations/readMigrationFiles.js.map +1 -1
  441. package/dist/database/migrations/writeMigrationIndex.d.ts +4 -0
  442. package/dist/database/migrations/writeMigrationIndex.d.ts.map +1 -0
  443. package/dist/database/migrations/writeMigrationIndex.js +32 -0
  444. package/dist/database/migrations/writeMigrationIndex.js.map +1 -0
  445. package/dist/database/queryValidation/validateQueryPaths.d.ts +2 -2
  446. package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
  447. package/dist/database/queryValidation/validateQueryPaths.js +4 -4
  448. package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
  449. package/dist/database/queryValidation/validateSearchParams.d.ts +2 -2
  450. package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
  451. package/dist/database/queryValidation/validateSearchParams.js +1 -4
  452. package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
  453. package/dist/database/types.d.ts +39 -36
  454. package/dist/database/types.d.ts.map +1 -1
  455. package/dist/database/types.js.map +1 -1
  456. package/dist/errors/APIError.d.ts +1 -0
  457. package/dist/errors/APIError.d.ts.map +1 -1
  458. package/dist/errors/APIError.js +4 -1
  459. package/dist/errors/APIError.js.map +1 -1
  460. package/dist/errors/AuthenticationError.d.ts +1 -1
  461. package/dist/errors/AuthenticationError.d.ts.map +1 -1
  462. package/dist/errors/AuthenticationError.js +2 -2
  463. package/dist/errors/AuthenticationError.js.map +1 -1
  464. package/dist/errors/ReservedFieldName.d.ts +6 -0
  465. package/dist/errors/ReservedFieldName.d.ts.map +1 -0
  466. package/dist/errors/ReservedFieldName.js +8 -0
  467. package/dist/errors/ReservedFieldName.js.map +1 -0
  468. package/dist/errors/ValidationError.d.ts +8 -8
  469. package/dist/errors/ValidationError.d.ts.map +1 -1
  470. package/dist/errors/ValidationError.js +3 -0
  471. package/dist/errors/ValidationError.js.map +1 -1
  472. package/dist/errors/index.d.ts +4 -2
  473. package/dist/errors/index.d.ts.map +1 -1
  474. package/dist/errors/index.js +3 -2
  475. package/dist/errors/index.js.map +1 -1
  476. package/dist/exports/components/utilities.d.ts +2 -0
  477. package/dist/exports/components/utilities.d.ts.map +1 -0
  478. package/dist/exports/components/utilities.js +2 -0
  479. package/dist/exports/components/utilities.js.map +1 -0
  480. package/dist/exports/node.d.ts +0 -1
  481. package/dist/exports/node.d.ts.map +1 -1
  482. package/dist/exports/node.js +0 -1
  483. package/dist/exports/node.js.map +1 -1
  484. package/dist/exports/shared.d.ts +10 -4
  485. package/dist/exports/shared.d.ts.map +1 -1
  486. package/dist/exports/shared.js +10 -4
  487. package/dist/exports/shared.js.map +1 -1
  488. package/dist/fields/config/client.d.ts +4 -1443
  489. package/dist/fields/config/client.d.ts.map +1 -1
  490. package/dist/fields/config/client.js +1 -78
  491. package/dist/fields/config/client.js.map +1 -1
  492. package/dist/fields/config/sanitize.d.ts +3 -1
  493. package/dist/fields/config/sanitize.d.ts.map +1 -1
  494. package/dist/fields/config/sanitize.js +40 -31
  495. package/dist/fields/config/sanitize.js.map +1 -1
  496. package/dist/fields/config/sanitize.spec.js +54 -54
  497. package/dist/fields/config/sanitize.spec.js.map +1 -1
  498. package/dist/fields/config/types.d.ts +616 -178
  499. package/dist/fields/config/types.d.ts.map +1 -1
  500. package/dist/fields/config/types.js +4 -1
  501. package/dist/fields/config/types.js.map +1 -1
  502. package/dist/fields/getDefaultValue.d.ts +6 -6
  503. package/dist/fields/getDefaultValue.d.ts.map +1 -1
  504. package/dist/fields/getDefaultValue.js +4 -6
  505. package/dist/fields/getDefaultValue.js.map +1 -1
  506. package/dist/fields/hooks/afterChange/index.d.ts +7 -7
  507. package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
  508. package/dist/fields/hooks/afterChange/index.js +2 -2
  509. package/dist/fields/hooks/afterChange/index.js.map +1 -1
  510. package/dist/fields/hooks/afterChange/promise.d.ts +8 -8
  511. package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
  512. package/dist/fields/hooks/afterChange/promise.js +1 -1
  513. package/dist/fields/hooks/afterChange/promise.js.map +1 -1
  514. package/dist/fields/hooks/afterChange/traverseFields.d.ts +8 -8
  515. package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
  516. package/dist/fields/hooks/afterChange/traverseFields.js.map +1 -1
  517. package/dist/fields/hooks/afterRead/index.d.ts +5 -5
  518. package/dist/fields/hooks/afterRead/index.d.ts.map +1 -1
  519. package/dist/fields/hooks/afterRead/index.js +2 -2
  520. package/dist/fields/hooks/afterRead/index.js.map +1 -1
  521. package/dist/fields/hooks/afterRead/promise.d.ts +4 -4
  522. package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
  523. package/dist/fields/hooks/afterRead/promise.js +7 -3
  524. package/dist/fields/hooks/afterRead/promise.js.map +1 -1
  525. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts +2 -2
  526. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
  527. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js +10 -10
  528. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js.map +1 -1
  529. package/dist/fields/hooks/afterRead/traverseFields.d.ts +4 -4
  530. package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
  531. package/dist/fields/hooks/afterRead/traverseFields.js.map +1 -1
  532. package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts +2 -1
  533. package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts.map +1 -1
  534. package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.js.map +1 -1
  535. package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts +2 -1
  536. package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
  537. package/dist/fields/hooks/beforeChange/getExistingRowDoc.js.map +1 -1
  538. package/dist/fields/hooks/beforeChange/index.d.ts +7 -7
  539. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  540. package/dist/fields/hooks/beforeChange/index.js +3 -2
  541. package/dist/fields/hooks/beforeChange/index.js.map +1 -1
  542. package/dist/fields/hooks/beforeChange/promise.d.ts +8 -8
  543. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  544. package/dist/fields/hooks/beforeChange/promise.js +6 -8
  545. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  546. package/dist/fields/hooks/beforeChange/traverseFields.d.ts +8 -8
  547. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  548. package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
  549. package/dist/fields/hooks/beforeValidate/index.d.ts +6 -6
  550. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  551. package/dist/fields/hooks/beforeValidate/index.js +2 -2
  552. package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
  553. package/dist/fields/hooks/beforeValidate/promise.d.ts +4 -4
  554. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  555. package/dist/fields/hooks/beforeValidate/promise.js +32 -24
  556. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  557. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +4 -4
  558. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  559. package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
  560. package/dist/fields/mergeBaseFields.d.ts.map +1 -1
  561. package/dist/fields/mergeBaseFields.js +2 -2
  562. package/dist/fields/mergeBaseFields.js.map +1 -1
  563. package/dist/fields/validations.d.ts +66 -67
  564. package/dist/fields/validations.d.ts.map +1 -1
  565. package/dist/fields/validations.js +87 -9
  566. package/dist/fields/validations.js.map +1 -1
  567. package/dist/fields/validations.spec.js +15 -15
  568. package/dist/fields/validations.spec.js.map +1 -1
  569. package/dist/globals/config/client.d.ts +29 -17
  570. package/dist/globals/config/client.d.ts.map +1 -1
  571. package/dist/globals/config/client.js +1 -47
  572. package/dist/globals/config/client.js.map +1 -1
  573. package/dist/globals/config/sanitize.d.ts.map +1 -1
  574. package/dist/globals/config/sanitize.js +8 -7
  575. package/dist/globals/config/sanitize.js.map +1 -1
  576. package/dist/globals/config/types.d.ts +12 -15
  577. package/dist/globals/config/types.d.ts.map +1 -1
  578. package/dist/globals/config/types.js.map +1 -1
  579. package/dist/globals/operations/docAccess.d.ts +2 -2
  580. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  581. package/dist/globals/operations/docAccess.js.map +1 -1
  582. package/dist/globals/operations/findOne.d.ts +2 -2
  583. package/dist/globals/operations/findOne.d.ts.map +1 -1
  584. package/dist/globals/operations/findOne.js +0 -7
  585. package/dist/globals/operations/findOne.js.map +1 -1
  586. package/dist/globals/operations/findVersionByID.d.ts +2 -2
  587. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  588. package/dist/globals/operations/findVersionByID.js +3 -9
  589. package/dist/globals/operations/findVersionByID.js.map +1 -1
  590. package/dist/globals/operations/findVersions.d.ts +3 -2
  591. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  592. package/dist/globals/operations/findVersions.js +2 -5
  593. package/dist/globals/operations/findVersions.js.map +1 -1
  594. package/dist/globals/operations/local/findOne.d.ts +2 -2
  595. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  596. package/dist/globals/operations/local/findOne.js.map +1 -1
  597. package/dist/globals/operations/local/findVersionByID.d.ts +2 -2
  598. package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
  599. package/dist/globals/operations/local/findVersionByID.js.map +1 -1
  600. package/dist/globals/operations/local/findVersions.d.ts +2 -2
  601. package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
  602. package/dist/globals/operations/local/findVersions.js.map +1 -1
  603. package/dist/globals/operations/local/restoreVersion.d.ts +2 -2
  604. package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
  605. package/dist/globals/operations/local/restoreVersion.js.map +1 -1
  606. package/dist/globals/operations/local/update.d.ts +2 -2
  607. package/dist/globals/operations/local/update.d.ts.map +1 -1
  608. package/dist/globals/operations/local/update.js.map +1 -1
  609. package/dist/globals/operations/restoreVersion.d.ts +3 -2
  610. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  611. package/dist/globals/operations/restoreVersion.js +15 -1
  612. package/dist/globals/operations/restoreVersion.js.map +1 -1
  613. package/dist/globals/operations/update.d.ts +2 -2
  614. package/dist/globals/operations/update.d.ts.map +1 -1
  615. package/dist/globals/operations/update.js +2 -1
  616. package/dist/globals/operations/update.js.map +1 -1
  617. package/dist/index.d.ts +109 -82
  618. package/dist/index.d.ts.map +1 -1
  619. package/dist/index.js +65 -67
  620. package/dist/index.js.map +1 -1
  621. package/dist/preferences/deleteUserPreferences.d.ts +2 -2
  622. package/dist/preferences/deleteUserPreferences.d.ts.map +1 -1
  623. package/dist/preferences/deleteUserPreferences.js.map +1 -1
  624. package/dist/preferences/requestHandlers/delete.js.map +1 -1
  625. package/dist/preferences/requestHandlers/findOne.js.map +1 -1
  626. package/dist/preferences/requestHandlers/update.js.map +1 -1
  627. package/dist/preferences/types.d.ts +5 -5
  628. package/dist/preferences/types.d.ts.map +1 -1
  629. package/dist/preferences/types.js.map +1 -1
  630. package/dist/types/index.d.ts +24 -8
  631. package/dist/types/index.d.ts.map +1 -1
  632. package/dist/types/index.js.map +1 -1
  633. package/dist/uploads/cropImage.d.ts +22 -6
  634. package/dist/uploads/cropImage.d.ts.map +1 -1
  635. package/dist/uploads/cropImage.js +11 -5
  636. package/dist/uploads/cropImage.js.map +1 -1
  637. package/dist/uploads/deleteAssociatedFiles.d.ts +2 -2
  638. package/dist/uploads/deleteAssociatedFiles.d.ts.map +1 -1
  639. package/dist/uploads/deleteAssociatedFiles.js +0 -2
  640. package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
  641. package/dist/uploads/docWithFilenameExists.d.ts +2 -2
  642. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  643. package/dist/uploads/docWithFilenameExists.js.map +1 -1
  644. package/dist/uploads/generateFileData.d.ts +2 -2
  645. package/dist/uploads/generateFileData.d.ts.map +1 -1
  646. package/dist/uploads/generateFileData.js +21 -8
  647. package/dist/uploads/generateFileData.js.map +1 -1
  648. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  649. package/dist/uploads/getBaseFields.js +7 -4
  650. package/dist/uploads/getBaseFields.js.map +1 -1
  651. package/dist/uploads/getExternalFile.d.ts +2 -2
  652. package/dist/uploads/getExternalFile.d.ts.map +1 -1
  653. package/dist/uploads/getExternalFile.js.map +1 -1
  654. package/dist/uploads/getFileByPath.d.ts +2 -2
  655. package/dist/uploads/getFileByPath.d.ts.map +1 -1
  656. package/dist/uploads/getFileByPath.js.map +1 -1
  657. package/dist/uploads/getImageSize.d.ts +2 -2
  658. package/dist/uploads/getImageSize.d.ts.map +1 -1
  659. package/dist/uploads/getImageSize.js.map +1 -1
  660. package/dist/uploads/getSafeFilename.d.ts +2 -2
  661. package/dist/uploads/getSafeFilename.d.ts.map +1 -1
  662. package/dist/uploads/getSafeFilename.js +0 -1
  663. package/dist/uploads/getSafeFilename.js.map +1 -1
  664. package/dist/uploads/imageResizer.d.ts +6 -4
  665. package/dist/uploads/imageResizer.d.ts.map +1 -1
  666. package/dist/uploads/imageResizer.js +135 -101
  667. package/dist/uploads/imageResizer.js.map +1 -1
  668. package/dist/uploads/optionallyAppendMetadata.d.ts +12 -0
  669. package/dist/uploads/optionallyAppendMetadata.d.ts.map +1 -0
  670. package/dist/uploads/optionallyAppendMetadata.js +15 -0
  671. package/dist/uploads/optionallyAppendMetadata.js.map +1 -0
  672. package/dist/uploads/types.d.ts +60 -16
  673. package/dist/uploads/types.d.ts.map +1 -1
  674. package/dist/uploads/types.js.map +1 -1
  675. package/dist/uploads/unlinkTempFiles.d.ts +2 -2
  676. package/dist/uploads/unlinkTempFiles.d.ts.map +1 -1
  677. package/dist/uploads/unlinkTempFiles.js.map +1 -1
  678. package/dist/uploads/uploadFiles.d.ts +2 -2
  679. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  680. package/dist/uploads/uploadFiles.js.map +1 -1
  681. package/dist/utilities/commitTransaction.d.ts +2 -2
  682. package/dist/utilities/commitTransaction.d.ts.map +1 -1
  683. package/dist/utilities/commitTransaction.js.map +1 -1
  684. package/dist/utilities/configToJSONSchema.d.ts +1 -0
  685. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  686. package/dist/utilities/configToJSONSchema.js +236 -23
  687. package/dist/utilities/configToJSONSchema.js.map +1 -1
  688. package/dist/utilities/configToJSONSchema.spec.js +244 -26
  689. package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
  690. package/dist/utilities/createLocalReq.d.ts +3 -3
  691. package/dist/utilities/createLocalReq.d.ts.map +1 -1
  692. package/dist/utilities/createLocalReq.js +2 -1
  693. package/dist/utilities/createLocalReq.js.map +1 -1
  694. package/dist/utilities/deepCopyObject.d.ts +18 -1
  695. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  696. package/dist/utilities/deepCopyObject.js +147 -16
  697. package/dist/utilities/deepCopyObject.js.map +1 -1
  698. package/dist/utilities/deepMerge.d.ts +18 -1
  699. package/dist/utilities/deepMerge.d.ts.map +1 -1
  700. package/dist/utilities/deepMerge.js +38 -13
  701. package/dist/utilities/deepMerge.js.map +1 -1
  702. package/dist/utilities/fieldSchemaToJSON.d.ts +4 -4
  703. package/dist/utilities/fieldSchemaToJSON.d.ts.map +1 -1
  704. package/dist/utilities/fieldSchemaToJSON.js +0 -10
  705. package/dist/utilities/fieldSchemaToJSON.js.map +1 -1
  706. package/dist/utilities/flattenTopLevelFields.d.ts +4 -3
  707. package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
  708. package/dist/utilities/flattenTopLevelFields.js +12 -7
  709. package/dist/utilities/flattenTopLevelFields.js.map +1 -1
  710. package/dist/utilities/getDataByPath.d.ts +3 -0
  711. package/dist/utilities/getDataByPath.d.ts.map +1 -0
  712. package/dist/utilities/getDataByPath.js +18 -0
  713. package/dist/utilities/getDataByPath.js.map +1 -0
  714. package/dist/utilities/getEntityPolicies.d.ts +2 -2
  715. package/dist/utilities/getEntityPolicies.d.ts.map +1 -1
  716. package/dist/utilities/getEntityPolicies.js +12 -6
  717. package/dist/utilities/getEntityPolicies.js.map +1 -1
  718. package/dist/utilities/getSiblingData.d.ts +3 -0
  719. package/dist/utilities/getSiblingData.d.ts.map +1 -0
  720. package/dist/utilities/getSiblingData.js +33 -0
  721. package/dist/utilities/getSiblingData.js.map +1 -0
  722. package/dist/utilities/initTransaction.d.ts +2 -2
  723. package/dist/utilities/initTransaction.d.ts.map +1 -1
  724. package/dist/utilities/initTransaction.js +9 -9
  725. package/dist/utilities/initTransaction.js.map +1 -1
  726. package/dist/utilities/isEntityHidden.d.ts +2 -2
  727. package/dist/utilities/isEntityHidden.d.ts.map +1 -1
  728. package/dist/utilities/isEntityHidden.js.map +1 -1
  729. package/dist/utilities/isPlainObject.d.ts +1 -1
  730. package/dist/utilities/isPlainObject.d.ts.map +1 -1
  731. package/dist/utilities/isPlainObject.js +4 -18
  732. package/dist/utilities/isPlainObject.js.map +1 -1
  733. package/dist/utilities/isReactComponent.d.ts.map +1 -1
  734. package/dist/utilities/isReactComponent.js +13 -24
  735. package/dist/utilities/isReactComponent.js.map +1 -1
  736. package/dist/utilities/isolateObjectProperty.d.ts +1 -1
  737. package/dist/utilities/isolateObjectProperty.d.ts.map +1 -1
  738. package/dist/utilities/isolateObjectProperty.js +14 -5
  739. package/dist/utilities/isolateObjectProperty.js.map +1 -1
  740. package/dist/utilities/killTransaction.d.ts +2 -2
  741. package/dist/utilities/killTransaction.d.ts.map +1 -1
  742. package/dist/utilities/killTransaction.js +6 -2
  743. package/dist/utilities/killTransaction.js.map +1 -1
  744. package/dist/utilities/logger.d.ts +5 -7
  745. package/dist/utilities/logger.d.ts.map +1 -1
  746. package/dist/utilities/logger.js +4 -7
  747. package/dist/utilities/logger.js.map +1 -1
  748. package/dist/utilities/reduceFieldsToValues.d.ts +10 -0
  749. package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -0
  750. package/dist/utilities/reduceFieldsToValues.js +22 -0
  751. package/dist/utilities/reduceFieldsToValues.js.map +1 -0
  752. package/dist/utilities/telemetry/conf/envPaths.d.ts +23 -0
  753. package/dist/utilities/telemetry/conf/envPaths.d.ts.map +1 -0
  754. package/dist/utilities/telemetry/conf/envPaths.js +70 -0
  755. package/dist/utilities/telemetry/conf/envPaths.js.map +1 -0
  756. package/dist/utilities/telemetry/conf/index.d.ts +84 -0
  757. package/dist/utilities/telemetry/conf/index.d.ts.map +1 -0
  758. package/dist/utilities/telemetry/conf/index.js +144 -0
  759. package/dist/utilities/telemetry/conf/index.js.map +1 -0
  760. package/dist/utilities/telemetry/events/adminInit.d.ts +2 -2
  761. package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
  762. package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
  763. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  764. package/dist/utilities/telemetry/index.js +1 -1
  765. package/dist/utilities/telemetry/index.js.map +1 -1
  766. package/dist/utilities/unflatten.d.ts +9 -0
  767. package/dist/utilities/unflatten.d.ts.map +1 -0
  768. package/dist/utilities/unflatten.js +64 -0
  769. package/dist/utilities/unflatten.js.map +1 -0
  770. package/dist/versions/baseFields.d.ts.map +1 -1
  771. package/dist/versions/baseFields.js +2 -1
  772. package/dist/versions/baseFields.js.map +1 -1
  773. package/dist/versions/deleteCollectionVersions.d.ts +2 -2
  774. package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
  775. package/dist/versions/deleteCollectionVersions.js.map +1 -1
  776. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts +2 -2
  777. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
  778. package/dist/versions/drafts/replaceWithDraftIfAvailable.js +2 -1
  779. package/dist/versions/drafts/replaceWithDraftIfAvailable.js.map +1 -1
  780. package/dist/versions/enforceMaxVersions.d.ts +2 -2
  781. package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
  782. package/dist/versions/enforceMaxVersions.js +2 -0
  783. package/dist/versions/enforceMaxVersions.js.map +1 -1
  784. package/dist/versions/getLatestCollectionVersion.d.ts +2 -2
  785. package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
  786. package/dist/versions/getLatestCollectionVersion.js.map +1 -1
  787. package/dist/versions/getLatestGlobalVersion.d.ts +2 -2
  788. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  789. package/dist/versions/getLatestGlobalVersion.js +0 -1
  790. package/dist/versions/getLatestGlobalVersion.js.map +1 -1
  791. package/dist/versions/saveVersion.d.ts +2 -2
  792. package/dist/versions/saveVersion.d.ts.map +1 -1
  793. package/dist/versions/saveVersion.js +2 -2
  794. package/dist/versions/saveVersion.js.map +1 -1
  795. package/package.json +10 -22
  796. package/dist/admin/forms/FieldDescription.d.ts +0 -14
  797. package/dist/admin/forms/FieldDescription.d.ts.map +0 -1
  798. package/dist/admin/forms/FieldDescription.js +0 -3
  799. package/dist/admin/forms/FieldDescription.js.map +0 -1
  800. package/dist/admin/forms/FieldTypes.d.ts +0 -27
  801. package/dist/admin/forms/FieldTypes.d.ts.map +0 -1
  802. package/dist/admin/forms/FieldTypes.js +0 -3
  803. package/dist/admin/forms/FieldTypes.js.map +0 -1
  804. package/dist/bin/loader/clientExtensions.d.ts +0 -2
  805. package/dist/bin/loader/clientExtensions.d.ts.map +0 -1
  806. package/dist/bin/loader/clientExtensions.js +0 -13
  807. package/dist/bin/loader/clientExtensions.js.map +0 -1
  808. package/dist/bin/loader/compile.d.ts +0 -5
  809. package/dist/bin/loader/compile.d.ts.map +0 -1
  810. package/dist/bin/loader/compile.js +0 -27
  811. package/dist/bin/loader/compile.js.map +0 -1
  812. package/dist/bin/loader/ignores.d.ts +0 -2
  813. package/dist/bin/loader/ignores.d.ts.map +0 -1
  814. package/dist/bin/loader/ignores.js +0 -5
  815. package/dist/bin/loader/ignores.js.map +0 -1
  816. package/dist/bin/loader/index.d.ts +0 -34
  817. package/dist/bin/loader/index.d.ts.map +0 -1
  818. package/dist/bin/loader/index.js +0 -116
  819. package/dist/bin/loader/index.js.map +0 -1
  820. package/dist/bin/loader/read-default-tsconfig.d.ts +0 -29
  821. package/dist/bin/loader/read-default-tsconfig.d.ts.map +0 -1
  822. package/dist/bin/loader/read-default-tsconfig.js +0 -116
  823. package/dist/bin/loader/read-default-tsconfig.js.map +0 -1
  824. package/dist/bin/loader/resolveOriginalPath.d.ts +0 -10
  825. package/dist/bin/loader/resolveOriginalPath.d.ts.map +0 -1
  826. package/dist/bin/loader/resolveOriginalPath.js +0 -36
  827. package/dist/bin/loader/resolveOriginalPath.js.map +0 -1
  828. package/dist/collections/config/schema.d.ts +0 -4
  829. package/dist/collections/config/schema.d.ts.map +0 -1
  830. package/dist/collections/config/schema.js +0 -187
  831. package/dist/collections/config/schema.js.map +0 -1
  832. package/dist/config/schema.d.ts +0 -5
  833. package/dist/config/schema.d.ts.map +0 -1
  834. package/dist/config/schema.js +0 -170
  835. package/dist/config/schema.js.map +0 -1
  836. package/dist/config/shared/adminViewSchema.d.ts +0 -3
  837. package/dist/config/shared/adminViewSchema.d.ts.map +0 -1
  838. package/dist/config/shared/adminViewSchema.js +0 -11
  839. package/dist/config/shared/adminViewSchema.js.map +0 -1
  840. package/dist/config/shared/componentSchema.d.ts +0 -16
  841. package/dist/config/shared/componentSchema.d.ts.map +0 -1
  842. package/dist/config/shared/componentSchema.js +0 -27
  843. package/dist/config/shared/componentSchema.js.map +0 -1
  844. package/dist/config/shared/openGraphSchema.d.ts +0 -3
  845. package/dist/config/shared/openGraphSchema.d.ts.map +0 -1
  846. package/dist/config/shared/openGraphSchema.js +0 -16
  847. package/dist/config/shared/openGraphSchema.js.map +0 -1
  848. package/dist/config/validate.d.ts +0 -4
  849. package/dist/config/validate.d.ts.map +0 -1
  850. package/dist/config/validate.js +0 -89
  851. package/dist/config/validate.js.map +0 -1
  852. package/dist/fields/config/schema.d.ts +0 -29
  853. package/dist/fields/config/schema.d.ts.map +0 -1
  854. package/dist/fields/config/schema.js +0 -504
  855. package/dist/fields/config/schema.js.map +0 -1
  856. package/dist/globals/config/schema.d.ts +0 -4
  857. package/dist/globals/config/schema.d.ts.map +0 -1
  858. package/dist/globals/config/schema.js +0 -79
  859. package/dist/globals/config/schema.js.map +0 -1
  860. package/dist/utilities/combineMerge.d.ts +0 -2
  861. package/dist/utilities/combineMerge.d.ts.map +0 -1
  862. package/dist/utilities/combineMerge.js +0 -16
  863. package/dist/utilities/combineMerge.js.map +0 -1
  864. package/dist/utilities/convertData.d.ts +0 -5
  865. package/dist/utilities/convertData.d.ts.map +0 -1
  866. package/dist/utilities/convertData.js +0 -16
  867. package/dist/utilities/convertData.js.map +0 -1
  868. package/dist/utilities/getCSSVariable.d.ts +0 -3
  869. package/dist/utilities/getCSSVariable.d.ts.map +0 -1
  870. package/dist/utilities/getCSSVariable.js +0 -3
  871. package/dist/utilities/getCSSVariable.js.map +0 -1
  872. package/dist/utilities/importWithoutClientFiles.d.ts +0 -7
  873. package/dist/utilities/importWithoutClientFiles.d.ts.map +0 -1
  874. package/dist/utilities/importWithoutClientFiles.js +0 -47
  875. package/dist/utilities/importWithoutClientFiles.js.map +0 -1
  876. package/dist/utilities/overwriteMerge.d.ts +0 -3
  877. package/dist/utilities/overwriteMerge.d.ts.map +0 -1
  878. package/dist/utilities/overwriteMerge.js +0 -4
  879. package/dist/utilities/overwriteMerge.js.map +0 -1
package/bin.js CHANGED
@@ -1,21 +1,54 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { register } from 'node:module'
4
3
  import path from 'node:path'
5
4
  import { fileURLToPath, pathToFileURL } from 'node:url'
6
5
 
7
- // Allow disabling SWC for debugging
8
- if (process.env.DISABLE_SWC !== 'true') {
6
+ const useSwc = process.argv.includes('--use-swc')
7
+ const disableTranspile = process.argv.includes('--disable-transpile')
8
+
9
+ if (disableTranspile) {
10
+ // Remove --disable-transpile from arguments
11
+ process.argv = process.argv.filter((arg) => arg !== '--disable-transpile')
12
+
13
+ const start = async () => {
14
+ const { bin } = await import('./dist/bin/index.js')
15
+ await bin()
16
+ }
17
+
18
+ void start()
19
+ } else {
9
20
  const filename = fileURLToPath(import.meta.url)
10
21
  const dirname = path.dirname(filename)
11
22
  const url = pathToFileURL(dirname).toString() + '/'
12
23
 
13
- register('./dist/bin/loader/index.js', url)
14
- }
24
+ if (!useSwc) {
25
+ const start = async () => {
26
+ // Use tsx
27
+ let tsImport = (await import('tsx/esm/api')).tsImport
15
28
 
16
- const start = async () => {
17
- const { bin } = await import('./dist/bin/index.js')
18
- bin()
19
- }
29
+ const { bin } = await tsImport('./dist/bin/index.js', url)
30
+ await bin()
31
+ }
20
32
 
21
- void start()
33
+ void start()
34
+ } else if (useSwc) {
35
+ const { register } = await import('node:module')
36
+ // Remove --use-swc from arguments
37
+ process.argv = process.argv.filter((arg) => arg !== '--use-swc')
38
+
39
+ try {
40
+ register('@swc-node/register/esm', url)
41
+ } catch (_) {
42
+ console.error(
43
+ '@swc-node/register is not installed. Please install @swc-node/register in your project, if you want to use swc in payload run.',
44
+ )
45
+ }
46
+
47
+ const start = async () => {
48
+ const { bin } = await import('./dist/bin/index.js')
49
+ await bin()
50
+ }
51
+
52
+ void start()
53
+ }
54
+ }
@@ -1,15 +1,13 @@
1
1
  import type { GenericLanguages, I18n, I18nClient } from '@payloadcms/translations';
2
2
  import type { JSONSchema4 } from 'json-schema';
3
- import type React from 'react';
3
+ import type { ImportMap } from '../bin/generateImportMap/index.js';
4
4
  import type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js';
5
- import type { SanitizedConfig } from '../config/types.js';
6
- import type { Field, FieldAffectingData, RichTextField, Validate } from '../fields/config/types.js';
5
+ import type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js';
6
+ import type { Field, FieldAffectingData, RichTextField, RichTextFieldClient, Validate } from '../fields/config/types.js';
7
7
  import type { SanitizedGlobalConfig } from '../globals/config/types.js';
8
- import type { PayloadRequestWithData, RequestContext } from '../types/index.js';
9
- import type { WithServerSidePropsComponentProps } from './elements/WithServerSideProps.js';
10
- export type RichTextFieldProps<Value extends object, AdapterProps, ExtraFieldProperties = {}> = Omit<RichTextField<Value, AdapterProps, ExtraFieldProperties>, 'type'> & {
11
- path?: string;
12
- };
8
+ import type { JsonObject, Payload, PayloadRequest, RequestContext } from '../types/index.js';
9
+ import type { RichTextFieldProps } from './fields/RichText.js';
10
+ import type { CreateMappedComponent } from './types.js';
13
11
  export type AfterReadRichTextHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
14
12
  currentDepth?: number;
15
13
  depth?: number;
@@ -51,7 +49,7 @@ export type BeforeChangeRichTextHookArgs<TData extends TypeWithID = any, TValue
51
49
  /**
52
50
  * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.
53
51
  */
54
- docWithLocales?: Record<string, unknown>;
52
+ docWithLocales?: JsonObject;
55
53
  duplicate?: boolean;
56
54
  errors?: {
57
55
  field: string;
@@ -68,7 +66,7 @@ export type BeforeChangeRichTextHookArgs<TData extends TypeWithID = any, TValue
68
66
  /**
69
67
  * The original siblingData with locales (not modified by any hooks).
70
68
  */
71
- siblingDocWithLocales?: Record<string, unknown>;
69
+ siblingDocWithLocales?: JsonObject;
72
70
  skipValidation?: boolean;
73
71
  };
74
72
  export type BaseRichTextHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
@@ -88,7 +86,7 @@ export type BaseRichTextHookArgs<TData extends TypeWithID = any, TValue = any, T
88
86
  */
89
87
  path: (number | string)[];
90
88
  /** The Express request object. It is mocked for Local API operations. */
91
- req: PayloadRequestWithData;
89
+ req: PayloadRequest;
92
90
  /**
93
91
  * 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.
94
92
  */
@@ -98,8 +96,8 @@ export type BaseRichTextHookArgs<TData extends TypeWithID = any, TValue = any, T
98
96
  /** The value of the field. */
99
97
  value?: TValue;
100
98
  };
101
- export type AfterReadRichTextHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: BaseRichTextHookArgs<TData, TValue, TSiblingData> & AfterReadRichTextHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
102
- export type AfterChangeRichTextHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: BaseRichTextHookArgs<TData, TValue, TSiblingData> & AfterChangeRichTextHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
99
+ export type AfterReadRichTextHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> & BaseRichTextHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
100
+ export type AfterChangeRichTextHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> & BaseRichTextHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
103
101
  export type BeforeChangeRichTextHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: BaseRichTextHookArgs<TData, TValue, TSiblingData> & BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
104
102
  export type BeforeValidateRichTextHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: BaseRichTextHookArgs<TData, TValue, TSiblingData> & BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
105
103
  export type RichTextHooks = {
@@ -108,15 +106,21 @@ export type RichTextHooks = {
108
106
  beforeChange?: BeforeChangeRichTextHook[];
109
107
  beforeValidate?: BeforeValidateRichTextHook[];
110
108
  };
109
+ export type RichTextGenerateComponentMap = (args: {
110
+ clientField: RichTextFieldClient;
111
+ createMappedComponent: CreateMappedComponent;
112
+ field: RichTextField;
113
+ i18n: I18nClient;
114
+ importMap: ImportMap;
115
+ payload: Payload;
116
+ schemaPath: string;
117
+ }) => Map<string, unknown>;
111
118
  type RichTextAdapterBase<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = {
112
- generateComponentMap: (args: {
113
- WithServerSideProps: React.FC<Omit<WithServerSidePropsComponentProps, 'serverOnlyProps'>>;
114
- config: SanitizedConfig;
115
- i18n: I18nClient;
116
- schemaPath: string;
117
- }) => Map<string, React.ReactNode>;
119
+ generateComponentMap: PayloadComponent<any, never>;
120
+ generateImportMap?: Config['admin']['importMap']['generators'][0];
118
121
  generateSchemaMap?: (args: {
119
122
  config: SanitizedConfig;
123
+ field: RichTextField;
120
124
  i18n: I18n<any, any>;
121
125
  schemaMap: Map<string, Field[]>;
122
126
  schemaPath: string;
@@ -138,9 +142,9 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
138
142
  flattenLocales: boolean;
139
143
  overrideAccess?: boolean;
140
144
  populationPromises: Promise<void>[];
141
- req: PayloadRequestWithData;
145
+ req: PayloadRequest;
142
146
  showHiddenFields: boolean;
143
- siblingDoc: Record<string, unknown>;
147
+ siblingDoc: JsonObject;
144
148
  }) => void;
145
149
  hooks?: RichTextHooks;
146
150
  i18n?: Partial<GenericLanguages>;
@@ -158,10 +162,10 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
158
162
  }) => JSONSchema4;
159
163
  validate: Validate<Value, Value, unknown, RichTextField<Value, AdapterProps, ExtraFieldProperties>>;
160
164
  };
161
- export type RichTextAdapter<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties> & {
162
- CellComponent: React.FC<any>;
163
- FieldComponent: React.FC<RichTextFieldProps<Value, AdapterProps, ExtraFieldProperties>>;
164
- };
165
+ export type RichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldProperties = any> = {
166
+ CellComponent: PayloadComponent<never>;
167
+ FieldComponent: PayloadComponent<never, RichTextFieldProps>;
168
+ } & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>;
165
169
  export type RichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = ({ config, isRoot, }: {
166
170
  config: SanitizedConfig;
167
171
  /**
@@ -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,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACnG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC/E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAA;AAE1F,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,MAAM,EACpB,YAAY,EACZ,oBAAoB,GAAG,EAAE,IACvB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AY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CAAC,EACH,MAAM,EACN,MAAM,GACP,EAAE;IACD,MAAM,EAAE,eAAe,CAAA;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,KACG,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,GACnE,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["import type { GenericLanguages, I18n, I18nClient } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\nimport type React from 'react'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { SanitizedConfig } from '../config/types.js'\nimport type { Field, FieldAffectingData, RichTextField, Validate } from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { PayloadRequestWithData, RequestContext } from '../types/index.js'\nimport type { WithServerSidePropsComponentProps } from './elements/WithServerSideProps.js'\n\nexport type RichTextFieldProps<\n Value extends object,\n AdapterProps,\n ExtraFieldProperties = {},\n> = Omit<RichTextField<Value, AdapterProps, ExtraFieldProperties>, 'type'> & {\n path?: string\n}\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\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 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?: Record<string, unknown>\n\n duplicate?: boolean\n\n errors?: { field: string; message: string }[]\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?: Record<string, unknown>\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: SanitizedCollectionConfig | null\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: SanitizedGlobalConfig | null\n\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: PayloadRequestWithData\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: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n AfterReadRichTextHookArgs<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: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n AfterChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n generateComponentMap: (args: {\n WithServerSideProps: React.FC<Omit<WithServerSidePropsComponentProps, 'serverOnlyProps'>>\n config: SanitizedConfig\n i18n: I18nClient\n schemaPath: string\n }) => Map<string, React.ReactNode>\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n i18n: I18n<any, any>\n schemaMap: Map<string, Field[]>\n schemaPath: string\n }) => Map<string, Field[]>\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 populationPromises: Promise<void>[]\n req: PayloadRequestWithData\n showHiddenFields: boolean\n siblingDoc: Record<string, unknown>\n }) => void\n hooks?: RichTextHooks\n i18n?: Partial<GenericLanguages>\n outputSchema?: ({\n collectionIDFieldTypes,\n config,\n field,\n interfaceNameDefinitions,\n isRequired,\n }: {\n collectionIDFieldTypes: { [key: string]: 'number' | 'string' }\n config?: SanitizedConfig\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\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 = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties> & {\n CellComponent: React.FC<any>\n FieldComponent: React.FC<RichTextFieldProps<Value, AdapterProps, ExtraFieldProperties>>\n}\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\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}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAmQA,WAiB8D"}
1
+ {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["import type { GenericLanguages, I18n, I18nClient } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type {\n Field,\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { JsonObject, Payload, PayloadRequest, RequestContext } from '../types/index.js'\nimport type { RichTextFieldProps } from './fields/RichText.js'\nimport type { CreateMappedComponent } 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\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 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?: { field: string; message: string }[]\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: SanitizedCollectionConfig | null\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: SanitizedGlobalConfig | null\n\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}\n\nexport type RichTextGenerateComponentMap = (args: {\n clientField: RichTextFieldClient\n createMappedComponent: CreateMappedComponent\n field: RichTextField\n i18n: I18nClient\n\n importMap: ImportMap\n payload: Payload\n schemaPath: string\n}) => Map<string, unknown>\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n generateComponentMap: PayloadComponent<any, never>\n generateImportMap?: Config['admin']['importMap']['generators'][0]\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: Map<string, Field[]>\n schemaPath: string\n }) => Map<string, Field[]>\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 populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n i18n?: Partial<GenericLanguages>\n outputSchema?: ({\n collectionIDFieldTypes,\n config,\n field,\n interfaceNameDefinitions,\n isRequired,\n }: {\n collectionIDFieldTypes: { [key: string]: 'number' | 'string' }\n config?: SanitizedConfig\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\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, RichTextFieldProps>\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}: {\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}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AA0QA,WAiB8D"}
@@ -1,35 +1,22 @@
1
1
  import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
2
- import type { BlockField, DateField, Field, FieldBase, Labels, RelationshipField, SelectField } from '../../fields/config/types.js';
2
+ import type { ClientField } from '../../fields/config/client.js';
3
3
  export type RowData = Record<string, any>;
4
- export type CellComponentProps = {
5
- blocks?: {
6
- labels: BlockField['labels'];
7
- slug: string;
8
- }[];
9
- className?: string;
10
- dateDisplayFormat?: DateField['admin']['date']['displayFormat'];
11
- fieldType?: Field['type'];
12
- isFieldAffectingData?: boolean;
13
- label?: Record<string, string> | string;
14
- labels?: Labels;
15
- link?: boolean;
16
- name: FieldBase['name'];
17
- onClick?: (args: {
4
+ export type CellComponentProps<TField extends ClientField = ClientField> = {
5
+ readonly className?: string;
6
+ readonly field: TField;
7
+ readonly link?: boolean;
8
+ readonly onClick?: (args: {
18
9
  cellData: unknown;
19
10
  collectionSlug: SanitizedCollectionConfig['slug'];
20
11
  rowData: RowData;
21
12
  }) => void;
22
- options?: SelectField['options'];
23
- relationTo?: RelationshipField['relationTo'];
24
- richTextComponentMap?: Map<string, React.ReactNode>;
25
- schemaPath: string;
26
13
  };
27
- export type DefaultCellComponentProps<T = any> = CellComponentProps & {
28
- cellData: T;
29
- customCellContext?: {
14
+ export type DefaultCellComponentProps<TCellData = any, TField extends ClientField = ClientField> = {
15
+ readonly cellData: TCellData;
16
+ readonly customCellContext?: {
30
17
  collectionSlug?: SanitizedCollectionConfig['slug'];
31
18
  uploadConfig?: SanitizedCollectionConfig['upload'];
32
19
  };
33
- rowData: RowData;
34
- };
20
+ readonly rowData: RowData;
21
+ } & CellComponentProps<TField>;
35
22
  //# sourceMapping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IAC5B,QAAQ,CAAC,iBAAiB,CAAC,EAAE;QAC3B,cAAc,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAA;QAClD,YAAY,CAAC,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAA;KACnD,CAAA;IACD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/Cell.ts"],"sourcesContent":["import type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type {\n BlockField,\n DateField,\n Field,\n FieldBase,\n Labels,\n RelationshipField,\n SelectField,\n} from '../../fields/config/types.js'\n\nexport type RowData = Record<string, any>\n\nexport type CellComponentProps = {\n blocks?: {\n labels: BlockField['labels']\n slug: string\n }[]\n className?: string\n dateDisplayFormat?: DateField['admin']['date']['displayFormat']\n fieldType?: Field['type']\n isFieldAffectingData?: boolean\n label?: Record<string, string> | string\n labels?: Labels\n link?: boolean\n name: FieldBase['name']\n onClick?: (args: {\n cellData: unknown\n collectionSlug: SanitizedCollectionConfig['slug']\n rowData: RowData\n }) => void\n options?: SelectField['options']\n relationTo?: RelationshipField['relationTo']\n richTextComponentMap?: Map<string, React.ReactNode> // any should be MappedField\n schemaPath: string\n}\n\nexport type DefaultCellComponentProps<T = any> = CellComponentProps & {\n cellData: T\n customCellContext?: {\n collectionSlug?: SanitizedCollectionConfig['slug']\n uploadConfig?: SanitizedCollectionConfig['upload']\n }\n rowData: RowData\n}\n"],"names":[],"mappings":"AAqCA,WAOC"}
1
+ {"version":3,"sources":["../../../src/admin/elements/Cell.ts"],"sourcesContent":["import type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientField } from '../../fields/config/client.js'\n\nexport type RowData = Record<string, any>\n\nexport type CellComponentProps<TField extends ClientField = ClientField> = {\n readonly className?: string\n readonly field: TField\n readonly link?: boolean\n readonly onClick?: (args: {\n cellData: unknown\n collectionSlug: SanitizedCollectionConfig['slug']\n rowData: RowData\n }) => void\n}\n\nexport type DefaultCellComponentProps<TCellData = any, TField extends ClientField = ClientField> = {\n readonly cellData: TCellData\n readonly customCellContext?: {\n collectionSlug?: SanitizedCollectionConfig['slug']\n uploadConfig?: SanitizedCollectionConfig['upload']\n }\n readonly rowData: RowData\n} & CellComponentProps<TField>\n"],"names":[],"mappings":"AAgBA,WAO8B"}
@@ -19,15 +19,15 @@ export type MonthPickerProps = {
19
19
  maxDate?: Date;
20
20
  minDate?: Date;
21
21
  };
22
- export type ConditionalDateProps = (SharedProps & DayPickerProps & TimePickerProps & {
23
- pickerAppearance?: 'dayAndTime';
24
- }) | (SharedProps & DayPickerProps & {
22
+ export type ConditionalDateProps = ({
25
23
  pickerAppearance: 'dayOnly';
26
- }) | (SharedProps & MonthPickerProps & {
24
+ } & DayPickerProps & SharedProps) | ({
27
25
  pickerAppearance: 'monthOnly';
28
- }) | (SharedProps & TimePickerProps & {
26
+ } & MonthPickerProps & SharedProps) | ({
29
27
  pickerAppearance: 'timeOnly';
30
- }) | (SharedProps & {
28
+ } & SharedProps & TimePickerProps) | ({
29
+ pickerAppearance?: 'dayAndTime';
30
+ } & DayPickerProps & SharedProps & TimePickerProps) | ({
31
31
  pickerAppearance?: 'default';
32
- });
32
+ } & SharedProps);
33
33
  //# sourceMappingURL=DatePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/DatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,oBAAoB,CAAA;IAChC,gBAAgB,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAA;CACnF,CAAA;AAED,MAAM,MAAM,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CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;CACf,CAAA;AAED,MAAM,MAAM,oBAAoB,GAC5B,CAAC;IACC,gBAAgB,EAAE,SAAS,CAAA;CAC5B,GAAG,cAAc,GAChB,WAAW,CAAC,GACd,CAAC;IACC,gBAAgB,EAAE,WAAW,CAAA;CAC9B,GAAG,gBAAgB,GAClB,WAAW,CAAC,GACd,CAAC;IACC,gBAAgB,EAAE,UAAU,CAAA;CAC7B,GAAG,WAAW,GACb,eAAe,CAAC,GAClB,CAAC;IACC,gBAAgB,CAAC,EAAE,YAAY,CAAA;CAChC,GAAG,cAAc,GAChB,WAAW,GACX,eAAe,CAAC,GAClB,CAAC;IACC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B,GAAG,WAAW,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/DatePicker.ts"],"sourcesContent":["import type { ReactDatePickerProps } from 'react-datepicker'\n\nexport type SharedProps = {\n displayFormat?: string\n overrides?: ReactDatePickerProps\n pickerAppearance?: 'dayAndTime' | 'dayOnly' | 'default' | 'monthOnly' | 'timeOnly'\n}\n\nexport type TimePickerProps = {\n maxTime?: Date\n minTime?: Date\n timeFormat?: string\n timeIntervals?: number\n}\n\nexport type DayPickerProps = {\n maxDate?: Date\n minDate?: Date\n monthsToShow?: 1 | 2\n}\n\nexport type MonthPickerProps = {\n maxDate?: Date\n minDate?: Date\n}\n\nexport type ConditionalDateProps =\n | (SharedProps &\n DayPickerProps &\n TimePickerProps & {\n pickerAppearance?: 'dayAndTime'\n })\n | (SharedProps &\n DayPickerProps & {\n pickerAppearance: 'dayOnly'\n })\n | (SharedProps &\n MonthPickerProps & {\n pickerAppearance: 'monthOnly'\n })\n | (SharedProps &\n TimePickerProps & {\n pickerAppearance: 'timeOnly'\n })\n | (SharedProps & {\n pickerAppearance?: 'default'\n })\n"],"names":[],"mappings":"AA0BA,WAoBM"}
1
+ {"version":3,"sources":["../../../src/admin/elements/DatePicker.ts"],"sourcesContent":["import type { ReactDatePickerProps } from 'react-datepicker'\n\nexport type SharedProps = {\n displayFormat?: string\n overrides?: ReactDatePickerProps\n pickerAppearance?: 'dayAndTime' | 'dayOnly' | 'default' | 'monthOnly' | 'timeOnly'\n}\n\nexport type TimePickerProps = {\n maxTime?: Date\n minTime?: Date\n timeFormat?: string\n timeIntervals?: number\n}\n\nexport type DayPickerProps = {\n maxDate?: Date\n minDate?: Date\n monthsToShow?: 1 | 2\n}\n\nexport type MonthPickerProps = {\n maxDate?: Date\n minDate?: Date\n}\n\nexport type ConditionalDateProps =\n | ({\n pickerAppearance: 'dayOnly'\n } & DayPickerProps &\n SharedProps)\n | ({\n pickerAppearance: 'monthOnly'\n } & MonthPickerProps &\n SharedProps)\n | ({\n pickerAppearance: 'timeOnly'\n } & SharedProps &\n TimePickerProps)\n | ({\n pickerAppearance?: 'dayAndTime'\n } & DayPickerProps &\n SharedProps &\n TimePickerProps)\n | ({\n pickerAppearance?: 'default'\n } & SharedProps)\n"],"names":[],"mappings":"AA0BA,WAoBoB"}
@@ -1,15 +1,16 @@
1
1
  import type { I18n } from '@payloadcms/translations';
2
2
  import type { Permissions } from '../../auth/types.js';
3
3
  import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
4
- import type { SanitizedConfig } from '../../config/types.js';
4
+ import type { PayloadComponent, SanitizedConfig } from '../../config/types.js';
5
5
  import type { SanitizedGlobalConfig } from '../../globals/config/types.js';
6
+ import type { Payload } from '../../index.js';
6
7
  export type DocumentTabProps = {
7
- apiURL?: string;
8
- collectionConfig?: SanitizedCollectionConfig;
9
- config: SanitizedConfig;
10
- globalConfig?: SanitizedGlobalConfig;
11
- i18n: I18n;
12
- permissions: Permissions;
8
+ readonly apiURL?: string;
9
+ readonly collectionConfig?: SanitizedCollectionConfig;
10
+ readonly globalConfig?: SanitizedGlobalConfig;
11
+ readonly i18n: I18n;
12
+ readonly payload: Payload;
13
+ readonly permissions: Permissions;
13
14
  };
14
15
  export type DocumentTabCondition = (args: {
15
16
  collectionConfig: SanitizedCollectionConfig;
@@ -18,25 +19,25 @@ export type DocumentTabCondition = (args: {
18
19
  permissions: Permissions;
19
20
  }) => boolean;
20
21
  export type DocumentTabConfig = {
21
- Pill?: React.ComponentType;
22
- condition?: DocumentTabCondition;
23
- href?: ((args: {
22
+ readonly Component?: DocumentTabComponent;
23
+ readonly Pill?: PayloadComponent;
24
+ readonly condition?: DocumentTabCondition;
25
+ readonly href?: ((args: {
24
26
  apiURL: string;
25
27
  collection: SanitizedCollectionConfig;
26
28
  global: SanitizedGlobalConfig;
27
29
  id?: string;
28
30
  routes: SanitizedConfig['routes'];
29
31
  }) => string) | string;
30
- isActive?: ((args: {
32
+ readonly isActive?: ((args: {
31
33
  href: string;
32
34
  }) => boolean) | boolean;
33
- label?: ((args: {
35
+ readonly label?: ((args: {
34
36
  t: (key: string) => string;
35
37
  }) => string) | string;
36
- newTab?: boolean;
38
+ readonly newTab?: boolean;
37
39
  };
38
- export type DocumentTabComponent = React.ComponentType<{
40
+ export type DocumentTabComponent = PayloadComponent<{
39
41
  path: string;
40
42
  }>;
41
- export type DocumentTab = DocumentTabComponent | DocumentTabConfig;
42
43
  //# sourceMappingURL=Tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","s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C,IAAI,EAAE;IACxC,gBAAgB,EAAE,yBAAyB,CAAA;IAC3C,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,EAAE,qBAAqB,CAAA;IACnC,WAAW,EAAE,WAAW,CAAA;CACzB,KAAK,OAAO,CAAA;AAIb,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,oBAAoB,CAAA;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAA;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,oBAAoB,CAAA;IACzC,QAAQ,CAAC,IAAI,CAAC,EACV,CAAC,CAAC,IAAI,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,EAAE,yBAAyB,CAAA;QACrC,MAAM,EAAE,qBAAqB,CAAA;QAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAA;KAClC,KAAK,MAAM,CAAC,GACb,MAAM,CAAA;IACV,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,OAAO,CAAA;IACnE,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE;QAAE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC,GAAG,MAAM,CAAA;IAC5E,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;IAClD,IAAI,EAAE,MAAM,CAAA;CACb,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/elements/Tab.ts"],"sourcesContent":["import type { I18n } from '@payloadcms/translations'\n\nimport type { Permissions } from '../../auth/types.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { SanitizedConfig } from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\n\nexport type DocumentTabProps = {\n apiURL?: string\n collectionConfig?: SanitizedCollectionConfig\n config: SanitizedConfig\n globalConfig?: SanitizedGlobalConfig\n i18n: I18n\n permissions: Permissions\n}\n\nexport type DocumentTabCondition = (args: {\n collectionConfig: SanitizedCollectionConfig\n config: SanitizedConfig\n globalConfig: SanitizedGlobalConfig\n permissions: Permissions\n}) => boolean\n\n// Everything is optional because we merge in the defaults\n// i.e. the config may override the `Default` view with a `label` but not an `href`\nexport type DocumentTabConfig = {\n Pill?: React.ComponentType\n condition?: DocumentTabCondition\n href?:\n | ((args: {\n apiURL: string\n collection: SanitizedCollectionConfig\n global: SanitizedGlobalConfig\n id?: string\n routes: SanitizedConfig['routes']\n }) => string)\n | string\n isActive?: ((args: { href: string }) => boolean) | boolean\n label?: ((args: { t: (key: string) => string }) => string) | string\n newTab?: boolean\n}\n\nexport type DocumentTabComponent = React.ComponentType<{\n path: string\n}>\n\nexport type DocumentTab = DocumentTabComponent | DocumentTabConfig\n"],"names":[],"mappings":"AA8CA,WAAkE"}
1
+ {"version":3,"sources":["../../../src/admin/elements/Tab.ts"],"sourcesContent":["import type { I18n } from '@payloadcms/translations'\n\nimport type { Permissions } from '../../auth/types.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { PayloadComponent, SanitizedConfig } from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { Payload } from '../../index.js'\n\nexport type DocumentTabProps = {\n readonly apiURL?: string\n readonly collectionConfig?: SanitizedCollectionConfig\n readonly globalConfig?: SanitizedGlobalConfig\n readonly i18n: I18n\n readonly payload: Payload\n readonly permissions: Permissions\n}\n\nexport type DocumentTabCondition = (args: {\n collectionConfig: SanitizedCollectionConfig\n config: SanitizedConfig\n globalConfig: SanitizedGlobalConfig\n permissions: Permissions\n}) => boolean\n\n// Everything is optional because we merge in the defaults\n// i.e. the config may override the `Default` view with a `label` but not an `href`\nexport type DocumentTabConfig = {\n readonly Component?: DocumentTabComponent\n readonly Pill?: PayloadComponent\n readonly condition?: DocumentTabCondition\n readonly href?:\n | ((args: {\n apiURL: string\n collection: SanitizedCollectionConfig\n global: SanitizedGlobalConfig\n id?: string\n routes: SanitizedConfig['routes']\n }) => string)\n | string\n readonly isActive?: ((args: { href: string }) => boolean) | boolean\n readonly label?: ((args: { t: (key: string) => string }) => string) | string\n readonly newTab?: boolean\n}\n\nexport type DocumentTabComponent = PayloadComponent<{\n path: string\n}>\n"],"names":[],"mappings":"AA4CA,WAEE"}
@@ -0,0 +1,18 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js';
3
+ import type { ArrayFieldValidation } from '../../fields/validations.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase, MappedComponent } from '../types.js';
6
+ type ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>;
7
+ export type ArrayFieldProps = {
8
+ readonly CustomRowLabel?: MappedComponent;
9
+ readonly validate?: ArrayFieldValidation;
10
+ } & Omit<FormFieldBase<ArrayFieldClientWithoutType>, 'validate'>;
11
+ export type ArrayFieldLabelServerComponent = FieldLabelServerComponent<ArrayField>;
12
+ export type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>;
13
+ export type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField>;
14
+ export type ArrayFieldDescriptionClientComponent = FieldDescriptionClientComponent<ArrayFieldClientWithoutType>;
15
+ export type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField>;
16
+ export type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>;
17
+ export {};
18
+ //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ceMappingURL=Array.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n MappedComponent,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\nexport type ArrayFieldProps = {\n readonly CustomRowLabel?: MappedComponent\n readonly validate?: ArrayFieldValidation\n} & Omit<FormFieldBase<ArrayFieldClientWithoutType>, 'validate'>\n\nexport type ArrayFieldLabelServerComponent = FieldLabelServerComponent<ArrayField>\n\nexport type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField>\n\nexport type ArrayFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField>\n\nexport type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>\n"],"names":[],"mappings":"AAgCA,WAAmG"}
@@ -0,0 +1,17 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { BlockField, BlockFieldClient } from '../../fields/config/types.js';
3
+ import type { BlockFieldValidation } from '../../fields/validations.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type BlocksFieldClientWithoutType = MarkOptional<BlockFieldClient, 'type'>;
7
+ export type BlockFieldProps = {
8
+ readonly validate?: BlockFieldValidation;
9
+ } & Omit<FormFieldBase<BlocksFieldClientWithoutType>, 'validate'>;
10
+ export type BlockFieldLabelServerComponent = FieldLabelServerComponent<BlockField>;
11
+ export type BlockFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>;
12
+ export type BlockFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlockField>;
13
+ export type BlockFieldDescriptionClientComponent = FieldDescriptionClientComponent<BlocksFieldClientWithoutType>;
14
+ export type BlockFieldErrorServerComponent = FieldErrorServerComponent<BlockField>;
15
+ export type BlockFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>;
16
+ export {};
17
+ //# sourceMappingURL=Blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blocks.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,KAAK,4BAA4B,GAAG,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;AAE1E,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,IAAI,CAAC,aAAa,CAAC,4BAA4B,CAAC,EAAE,UAAU,CAAC,CAAA;AAEjE,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,4BAA4B,CAAC,CAAA;AAEpG,MAAM,MAAM,oCAAoC,GAAG,+BAA+B,CAAC,UAAU,CAAC,CAAA;AAE9F,MAAM,MAAM,oCAAoC,GAC9C,+BAA+B,CAAC,4BAA4B,CAAC,CAAA;AAE/D,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,4BAA4B,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=Blocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { BlockField, BlockFieldClient } from '../../fields/config/types.js'\nimport type { BlockFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype BlocksFieldClientWithoutType = MarkOptional<BlockFieldClient, 'type'>\n\nexport type BlockFieldProps = {\n readonly validate?: BlockFieldValidation\n} & Omit<FormFieldBase<BlocksFieldClientWithoutType>, 'validate'>\n\nexport type BlockFieldLabelServerComponent = FieldLabelServerComponent<BlockField>\n\nexport type BlockFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlockFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlockField>\n\nexport type BlockFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlockFieldErrorServerComponent = FieldErrorServerComponent<BlockField>\n\nexport type BlockFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>\n"],"names":[],"mappings":"AA8BA,WAAoG"}
@@ -0,0 +1,22 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js';
3
+ import type { CheckboxFieldValidation } from '../../fields/validations.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>;
7
+ export type CheckboxFieldProps = {
8
+ readonly checked?: boolean;
9
+ readonly disableFormData?: boolean;
10
+ readonly id?: string;
11
+ readonly onChange?: (value: boolean) => void;
12
+ readonly partialChecked?: boolean;
13
+ readonly validate?: CheckboxFieldValidation;
14
+ } & Omit<FormFieldBase<CheckboxFieldClientWithoutType>, 'validate'>;
15
+ export type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<CheckboxField>;
16
+ export type CheckboxFieldLabelClientComponent = FieldLabelClientComponent<CheckboxFieldClientWithoutType>;
17
+ export type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField>;
18
+ export type CheckboxFieldDescriptionClientComponent = FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>;
19
+ export type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField>;
20
+ export type CheckboxFieldErrorClientComponent = FieldErrorClientComponent<CheckboxFieldClientWithoutType>;
21
+ export {};
22
+ //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OA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ent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js'\nimport type { CheckboxFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>\n\nexport type CheckboxFieldProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly validate?: CheckboxFieldValidation\n} & Omit<FormFieldBase<CheckboxFieldClientWithoutType>, 'validate'>\n\nexport type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<CheckboxField>\n\nexport type CheckboxFieldLabelClientComponent =\n FieldLabelClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField>\n\nexport type CheckboxFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField>\n\nexport type CheckboxFieldErrorClientComponent =\n FieldErrorClientComponent<CheckboxFieldClientWithoutType>\n"],"names":[],"mappings":"AAoCA,WAC2D"}
@@ -0,0 +1,18 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { CodeField, CodeFieldClient } from '../../fields/config/types.js';
3
+ import type { CodeFieldValidation } from '../../fields/validations.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>;
7
+ export type CodeFieldProps = {
8
+ readonly autoComplete?: string;
9
+ readonly validate?: CodeFieldValidation;
10
+ } & Omit<FormFieldBase<CodeFieldClientWithoutType>, 'validate'>;
11
+ export type CodeFieldLabelServerComponent = FieldLabelServerComponent<CodeField>;
12
+ export type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>;
13
+ export type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField>;
14
+ export type CodeFieldDescriptionClientComponent = FieldDescriptionClientComponent<CodeFieldClientWithoutType>;
15
+ export type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField>;
16
+ export type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>;
17
+ export {};
18
+ //# sourceMappingURL=Code.d.ts.map