payload 4.0.0-internal.b8e7c89 → 4.0.0-internal.bf4bcce

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 (1567) hide show
  1. package/bin.js +3 -14
  2. package/dist/admin/RichText.d.ts +25 -3
  3. package/dist/admin/RichText.d.ts.map +1 -1
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/fields/Array.d.ts +11 -13
  6. package/dist/admin/fields/Array.d.ts.map +1 -1
  7. package/dist/admin/fields/Array.js.map +1 -1
  8. package/dist/admin/fields/Blocks.d.ts +13 -16
  9. package/dist/admin/fields/Blocks.d.ts.map +1 -1
  10. package/dist/admin/fields/Blocks.js.map +1 -1
  11. package/dist/admin/fields/Checkbox.d.ts +11 -13
  12. package/dist/admin/fields/Checkbox.d.ts.map +1 -1
  13. package/dist/admin/fields/Checkbox.js.map +1 -1
  14. package/dist/admin/fields/Code.d.ts +11 -13
  15. package/dist/admin/fields/Code.d.ts.map +1 -1
  16. package/dist/admin/fields/Code.js.map +1 -1
  17. package/dist/admin/fields/Collapsible.d.ts +11 -13
  18. package/dist/admin/fields/Collapsible.d.ts.map +1 -1
  19. package/dist/admin/fields/Collapsible.js.map +1 -1
  20. package/dist/admin/fields/Date.d.ts +11 -13
  21. package/dist/admin/fields/Date.d.ts.map +1 -1
  22. package/dist/admin/fields/Date.js.map +1 -1
  23. package/dist/admin/fields/Email.d.ts +11 -13
  24. package/dist/admin/fields/Email.d.ts.map +1 -1
  25. package/dist/admin/fields/Email.js.map +1 -1
  26. package/dist/admin/fields/Group.d.ts +11 -13
  27. package/dist/admin/fields/Group.d.ts.map +1 -1
  28. package/dist/admin/fields/Group.js.map +1 -1
  29. package/dist/admin/fields/JSON.d.ts +11 -13
  30. package/dist/admin/fields/JSON.d.ts.map +1 -1
  31. package/dist/admin/fields/JSON.js.map +1 -1
  32. package/dist/admin/fields/Join.d.ts +12 -14
  33. package/dist/admin/fields/Join.d.ts.map +1 -1
  34. package/dist/admin/fields/Join.js.map +1 -1
  35. package/dist/admin/fields/Number.d.ts +11 -13
  36. package/dist/admin/fields/Number.d.ts.map +1 -1
  37. package/dist/admin/fields/Number.js.map +1 -1
  38. package/dist/admin/fields/Point.d.ts +11 -13
  39. package/dist/admin/fields/Point.d.ts.map +1 -1
  40. package/dist/admin/fields/Point.js.map +1 -1
  41. package/dist/admin/fields/Radio.d.ts +11 -13
  42. package/dist/admin/fields/Radio.d.ts.map +1 -1
  43. package/dist/admin/fields/Radio.js.map +1 -1
  44. package/dist/admin/fields/Relationship.d.ts +11 -13
  45. package/dist/admin/fields/Relationship.d.ts.map +1 -1
  46. package/dist/admin/fields/Relationship.js.map +1 -1
  47. package/dist/admin/fields/RichText.d.ts +13 -15
  48. package/dist/admin/fields/RichText.d.ts.map +1 -1
  49. package/dist/admin/fields/RichText.js.map +1 -1
  50. package/dist/admin/fields/Row.d.ts +10 -12
  51. package/dist/admin/fields/Row.d.ts.map +1 -1
  52. package/dist/admin/fields/Row.js.map +1 -1
  53. package/dist/admin/fields/Select.d.ts +11 -13
  54. package/dist/admin/fields/Select.d.ts.map +1 -1
  55. package/dist/admin/fields/Select.js.map +1 -1
  56. package/dist/admin/fields/Tabs.d.ts +11 -13
  57. package/dist/admin/fields/Tabs.d.ts.map +1 -1
  58. package/dist/admin/fields/Tabs.js.map +1 -1
  59. package/dist/admin/fields/Text.d.ts +11 -13
  60. package/dist/admin/fields/Text.d.ts.map +1 -1
  61. package/dist/admin/fields/Text.js.map +1 -1
  62. package/dist/admin/fields/Textarea.d.ts +11 -13
  63. package/dist/admin/fields/Textarea.d.ts.map +1 -1
  64. package/dist/admin/fields/Textarea.js.map +1 -1
  65. package/dist/admin/fields/UI.d.ts +3 -5
  66. package/dist/admin/fields/UI.d.ts.map +1 -1
  67. package/dist/admin/fields/UI.js.map +1 -1
  68. package/dist/admin/fields/Upload.d.ts +11 -13
  69. package/dist/admin/fields/Upload.d.ts.map +1 -1
  70. package/dist/admin/fields/Upload.js.map +1 -1
  71. package/dist/admin/forms/Description.d.ts +0 -2
  72. package/dist/admin/forms/Description.d.ts.map +1 -1
  73. package/dist/admin/forms/Description.js.map +1 -1
  74. package/dist/admin/forms/Diff.d.ts +5 -27
  75. package/dist/admin/forms/Diff.d.ts.map +1 -1
  76. package/dist/admin/forms/Diff.js.map +1 -1
  77. package/dist/admin/forms/Error.d.ts +0 -2
  78. package/dist/admin/forms/Error.d.ts.map +1 -1
  79. package/dist/admin/forms/Error.js.map +1 -1
  80. package/dist/admin/forms/Field.d.ts +6 -4
  81. package/dist/admin/forms/Field.d.ts.map +1 -1
  82. package/dist/admin/forms/Field.js.map +1 -1
  83. package/dist/admin/forms/Form.d.ts +2 -0
  84. package/dist/admin/forms/Form.d.ts.map +1 -1
  85. package/dist/admin/forms/Form.js.map +1 -1
  86. package/dist/admin/forms/Label.d.ts +2 -2
  87. package/dist/admin/forms/Label.d.ts.map +1 -1
  88. package/dist/admin/forms/Label.js.map +1 -1
  89. package/dist/admin/functions/index.d.ts +4 -5
  90. package/dist/admin/functions/index.d.ts.map +1 -1
  91. package/dist/admin/functions/index.js.map +1 -1
  92. package/dist/admin/getRequestLocale.d.ts +6 -0
  93. package/dist/admin/getRequestLocale.d.ts.map +1 -0
  94. package/dist/admin/getRequestLocale.js +38 -0
  95. package/dist/admin/getRequestLocale.js.map +1 -0
  96. package/dist/admin/initAdminContext.d.ts +39 -0
  97. package/dist/admin/initAdminContext.d.ts.map +1 -0
  98. package/dist/admin/initAdminContext.js +151 -0
  99. package/dist/admin/initAdminContext.js.map +1 -0
  100. package/dist/admin/types.d.ts +30 -30
  101. package/dist/admin/types.d.ts.map +1 -1
  102. package/dist/admin/types.js.map +1 -1
  103. package/dist/admin/views/dashboard.d.ts +2 -2
  104. package/dist/admin/views/dashboard.d.ts.map +1 -1
  105. package/dist/admin/views/dashboard.js.map +1 -1
  106. package/dist/admin/views/list.d.ts +22 -1
  107. package/dist/admin/views/list.d.ts.map +1 -1
  108. package/dist/admin/views/list.js.map +1 -1
  109. package/dist/auth/applyUserReadAccess.d.ts +13 -0
  110. package/dist/auth/applyUserReadAccess.d.ts.map +1 -0
  111. package/dist/auth/applyUserReadAccess.js +41 -0
  112. package/dist/auth/applyUserReadAccess.js.map +1 -0
  113. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts +4 -0
  114. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts.map +1 -0
  115. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js +20 -0
  116. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js.map +1 -0
  117. package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts +4 -0
  118. package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts.map +1 -0
  119. package/dist/auth/baseFields/apiKey/encryptAPIKey.js +11 -0
  120. package/dist/auth/baseFields/apiKey/encryptAPIKey.js.map +1 -0
  121. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts +3 -0
  122. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts.map +1 -0
  123. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js +5 -0
  124. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js.map +1 -0
  125. package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts +5 -0
  126. package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts.map +1 -0
  127. package/dist/auth/baseFields/apiKey/omitAPIKey.js +11 -0
  128. package/dist/auth/baseFields/apiKey/omitAPIKey.js.map +1 -0
  129. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts +4 -0
  130. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts.map +1 -0
  131. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js +5 -0
  132. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js.map +1 -0
  133. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts +4 -0
  134. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts.map +1 -0
  135. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js +5 -0
  136. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js.map +1 -0
  137. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts +4 -0
  138. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts.map +1 -0
  139. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js +12 -0
  140. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js.map +1 -0
  141. package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts +4 -0
  142. package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts.map +1 -0
  143. package/dist/auth/baseFields/apiKey/setKeyLast4.js +12 -0
  144. package/dist/auth/baseFields/apiKey/setKeyLast4.js.map +1 -0
  145. package/dist/auth/baseFields/apiKey.d.ts +6 -6
  146. package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
  147. package/dist/auth/baseFields/apiKey.js +88 -72
  148. package/dist/auth/baseFields/apiKey.js.map +1 -1
  149. package/dist/auth/baseFields/auth.d.ts +1 -0
  150. package/dist/auth/baseFields/auth.d.ts.map +1 -1
  151. package/dist/auth/baseFields/auth.js +9 -0
  152. package/dist/auth/baseFields/auth.js.map +1 -1
  153. package/dist/auth/defaultUnlockAccess.d.ts +3 -0
  154. package/dist/auth/defaultUnlockAccess.d.ts.map +1 -0
  155. package/dist/auth/defaultUnlockAccess.js +8 -0
  156. package/dist/auth/defaultUnlockAccess.js.map +1 -0
  157. package/dist/auth/endpoints/access.d.ts.map +1 -1
  158. package/dist/auth/endpoints/access.js +1 -1
  159. package/dist/auth/endpoints/access.js.map +1 -1
  160. package/dist/auth/endpoints/forgotPassword.d.ts.map +1 -1
  161. package/dist/auth/endpoints/forgotPassword.js +1 -1
  162. package/dist/auth/endpoints/forgotPassword.js.map +1 -1
  163. package/dist/auth/endpoints/index.d.ts +1 -0
  164. package/dist/auth/endpoints/index.d.ts.map +1 -1
  165. package/dist/auth/endpoints/index.js +8 -0
  166. package/dist/auth/endpoints/index.js.map +1 -1
  167. package/dist/auth/endpoints/login.d.ts.map +1 -1
  168. package/dist/auth/endpoints/login.js +1 -1
  169. package/dist/auth/endpoints/login.js.map +1 -1
  170. package/dist/auth/endpoints/logout.d.ts.map +1 -1
  171. package/dist/auth/endpoints/logout.js +1 -1
  172. package/dist/auth/endpoints/logout.js.map +1 -1
  173. package/dist/auth/endpoints/me.d.ts.map +1 -1
  174. package/dist/auth/endpoints/me.js +1 -1
  175. package/dist/auth/endpoints/me.js.map +1 -1
  176. package/dist/auth/endpoints/refresh.d.ts.map +1 -1
  177. package/dist/auth/endpoints/refresh.js +1 -1
  178. package/dist/auth/endpoints/refresh.js.map +1 -1
  179. package/dist/auth/endpoints/registerFirstUser.d.ts.map +1 -1
  180. package/dist/auth/endpoints/registerFirstUser.js +1 -1
  181. package/dist/auth/endpoints/registerFirstUser.js.map +1 -1
  182. package/dist/auth/endpoints/resetPassword.d.ts.map +1 -1
  183. package/dist/auth/endpoints/resetPassword.js +1 -1
  184. package/dist/auth/endpoints/resetPassword.js.map +1 -1
  185. package/dist/auth/endpoints/revealAPIKey.d.ts +7 -0
  186. package/dist/auth/endpoints/revealAPIKey.d.ts.map +1 -0
  187. package/dist/auth/endpoints/revealAPIKey.js +122 -0
  188. package/dist/auth/endpoints/revealAPIKey.js.map +1 -0
  189. package/dist/auth/endpoints/unlock.d.ts.map +1 -1
  190. package/dist/auth/endpoints/unlock.js +1 -1
  191. package/dist/auth/endpoints/unlock.js.map +1 -1
  192. package/dist/auth/endpoints/verifyEmail.d.ts.map +1 -1
  193. package/dist/auth/endpoints/verifyEmail.js +1 -1
  194. package/dist/auth/endpoints/verifyEmail.js.map +1 -1
  195. package/dist/auth/getAccessResults.d.ts.map +1 -1
  196. package/dist/auth/getAccessResults.js +4 -2
  197. package/dist/auth/getAccessResults.js.map +1 -1
  198. package/dist/auth/getAuthFields.d.ts +1 -1
  199. package/dist/auth/getAuthFields.d.ts.map +1 -1
  200. package/dist/auth/getAuthFields.js +7 -4
  201. package/dist/auth/getAuthFields.js.map +1 -1
  202. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  203. package/dist/auth/getFieldsToSign.js +20 -10
  204. package/dist/auth/getFieldsToSign.js.map +1 -1
  205. package/dist/auth/jwt.d.ts.map +1 -1
  206. package/dist/auth/jwt.js +3 -1
  207. package/dist/auth/jwt.js.map +1 -1
  208. package/dist/auth/jwtAuth.d.ts +9 -0
  209. package/dist/auth/jwtAuth.d.ts.map +1 -0
  210. package/dist/auth/jwtAuth.js +8 -0
  211. package/dist/auth/jwtAuth.js.map +1 -0
  212. package/dist/auth/operations/auth.d.ts.map +1 -1
  213. package/dist/auth/operations/auth.js +2 -1
  214. package/dist/auth/operations/auth.js.map +1 -1
  215. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  216. package/dist/auth/operations/forgotPassword.js +100 -15
  217. package/dist/auth/operations/forgotPassword.js.map +1 -1
  218. package/dist/auth/operations/local/auth.js +7 -4
  219. package/dist/auth/operations/local/auth.js.map +1 -1
  220. package/dist/auth/operations/local/forgotPassword.d.ts +2 -2
  221. package/dist/auth/operations/local/forgotPassword.d.ts.map +1 -1
  222. package/dist/auth/operations/local/forgotPassword.js +6 -3
  223. package/dist/auth/operations/local/forgotPassword.js.map +1 -1
  224. package/dist/auth/operations/local/login.d.ts +2 -2
  225. package/dist/auth/operations/local/login.d.ts.map +1 -1
  226. package/dist/auth/operations/local/login.js +6 -3
  227. package/dist/auth/operations/local/login.js.map +1 -1
  228. package/dist/auth/operations/local/resetPassword.js +5 -2
  229. package/dist/auth/operations/local/resetPassword.js.map +1 -1
  230. package/dist/auth/operations/local/unlock.d.ts +2 -2
  231. package/dist/auth/operations/local/unlock.d.ts.map +1 -1
  232. package/dist/auth/operations/local/unlock.js +6 -3
  233. package/dist/auth/operations/local/unlock.js.map +1 -1
  234. package/dist/auth/operations/local/verifyEmail.js +5 -2
  235. package/dist/auth/operations/local/verifyEmail.js.map +1 -1
  236. package/dist/auth/operations/login.d.ts.map +1 -1
  237. package/dist/auth/operations/login.js +50 -26
  238. package/dist/auth/operations/login.js.map +1 -1
  239. package/dist/auth/operations/logout.d.ts.map +1 -1
  240. package/dist/auth/operations/logout.js +3 -1
  241. package/dist/auth/operations/logout.js.map +1 -1
  242. package/dist/auth/operations/me.js +1 -1
  243. package/dist/auth/operations/me.js.map +1 -1
  244. package/dist/auth/operations/refresh.d.ts.map +1 -1
  245. package/dist/auth/operations/refresh.js +34 -9
  246. package/dist/auth/operations/refresh.js.map +1 -1
  247. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  248. package/dist/auth/operations/registerFirstUser.js +4 -4
  249. package/dist/auth/operations/registerFirstUser.js.map +1 -1
  250. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  251. package/dist/auth/operations/resetPassword.js +34 -23
  252. package/dist/auth/operations/resetPassword.js.map +1 -1
  253. package/dist/auth/operations/unlock.d.ts.map +1 -1
  254. package/dist/auth/operations/unlock.js +1 -1
  255. package/dist/auth/operations/unlock.js.map +1 -1
  256. package/dist/auth/operations/verifyEmail.d.ts.map +1 -1
  257. package/dist/auth/operations/verifyEmail.js +3 -1
  258. package/dist/auth/operations/verifyEmail.js.map +1 -1
  259. package/dist/auth/serverFunctions/login.js +4 -2
  260. package/dist/auth/serverFunctions/login.js.map +1 -1
  261. package/dist/auth/serverFunctions/logout.js +4 -3
  262. package/dist/auth/serverFunctions/logout.js.map +1 -1
  263. package/dist/auth/serverFunctions/refresh.js +4 -3
  264. package/dist/auth/serverFunctions/refresh.js.map +1 -1
  265. package/dist/auth/sessions.d.ts.map +1 -1
  266. package/dist/auth/sessions.js +3 -0
  267. package/dist/auth/sessions.js.map +1 -1
  268. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  269. package/dist/auth/strategies/apiKey.js +43 -1
  270. package/dist/auth/strategies/apiKey.js.map +1 -1
  271. package/dist/auth/strategies/jwt.d.ts.map +1 -1
  272. package/dist/auth/strategies/jwt.js +64 -13
  273. package/dist/auth/strategies/jwt.js.map +1 -1
  274. package/dist/auth/strategies/local/authenticate.d.ts +5 -1
  275. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  276. package/dist/auth/strategies/local/authenticate.js +8 -3
  277. package/dist/auth/strategies/local/authenticate.js.map +1 -1
  278. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts +9 -1
  279. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  280. package/dist/auth/strategies/local/generatePasswordSaltHash.js +61 -34
  281. package/dist/auth/strategies/local/generatePasswordSaltHash.js.map +1 -1
  282. package/dist/auth/strategies/local/register.d.ts.map +1 -1
  283. package/dist/auth/strategies/local/register.js +1 -0
  284. package/dist/auth/strategies/local/register.js.map +1 -1
  285. package/dist/auth/strategies/local/resetLoginAttempts.d.ts.map +1 -1
  286. package/dist/auth/strategies/local/resetLoginAttempts.js +2 -0
  287. package/dist/auth/strategies/local/resetLoginAttempts.js.map +1 -1
  288. package/dist/auth/types.d.ts +38 -6
  289. package/dist/auth/types.d.ts.map +1 -1
  290. package/dist/auth/types.js.map +1 -1
  291. package/dist/auth/withBaseAccess.d.ts.map +1 -1
  292. package/dist/auth/withBaseAccess.js +6 -1
  293. package/dist/auth/withBaseAccess.js.map +1 -1
  294. package/dist/cli/commands/collections/createDocuments.js +4 -2
  295. package/dist/cli/commands/collections/createDocuments.js.map +1 -1
  296. package/dist/cli/commands/collections/duplicateDocument.js +4 -2
  297. package/dist/cli/commands/collections/duplicateDocument.js.map +1 -1
  298. package/dist/cli/commands/collections/getCollectionSchema.d.ts.map +1 -1
  299. package/dist/cli/commands/collections/getCollectionSchema.js +16 -4
  300. package/dist/cli/commands/collections/getCollectionSchema.js.map +1 -1
  301. package/dist/cli/commands/collections/updateDocument.js +4 -2
  302. package/dist/cli/commands/collections/updateDocument.js.map +1 -1
  303. package/dist/cli/commands/globals/getGlobalSchema.d.ts.map +1 -1
  304. package/dist/cli/commands/globals/getGlobalSchema.js +16 -4
  305. package/dist/cli/commands/globals/getGlobalSchema.js.map +1 -1
  306. package/dist/cli/commands/globals/updateGlobal.js +4 -2
  307. package/dist/cli/commands/globals/updateGlobal.js.map +1 -1
  308. package/dist/cli/commands/jobs/run.d.ts.map +1 -1
  309. package/dist/cli/commands/jobs/run.js +1 -0
  310. package/dist/cli/commands/jobs/run.js.map +1 -1
  311. package/dist/cli/runtime/createRuntime.js +1 -1
  312. package/dist/cli/runtime/createRuntime.js.map +1 -1
  313. package/dist/collections/config/client.d.ts +4 -3
  314. package/dist/collections/config/client.d.ts.map +1 -1
  315. package/dist/collections/config/client.js +8 -4
  316. package/dist/collections/config/client.js.map +1 -1
  317. package/dist/collections/config/defaults.d.ts +2 -0
  318. package/dist/collections/config/defaults.d.ts.map +1 -1
  319. package/dist/collections/config/defaults.js +18 -5
  320. package/dist/collections/config/defaults.js.map +1 -1
  321. package/dist/collections/config/sanitize.d.ts.map +1 -1
  322. package/dist/collections/config/sanitize.js +86 -11
  323. package/dist/collections/config/sanitize.js.map +1 -1
  324. package/dist/collections/config/types.d.ts +37 -8
  325. package/dist/collections/config/types.d.ts.map +1 -1
  326. package/dist/collections/config/types.js.map +1 -1
  327. package/dist/collections/config/useAsThumbnail.d.ts +6 -0
  328. package/dist/collections/config/useAsThumbnail.d.ts.map +1 -0
  329. package/dist/collections/config/useAsThumbnail.js +21 -0
  330. package/dist/collections/config/useAsThumbnail.js.map +1 -0
  331. package/dist/collections/endpoints/count.d.ts.map +1 -1
  332. package/dist/collections/endpoints/count.js +1 -1
  333. package/dist/collections/endpoints/count.js.map +1 -1
  334. package/dist/collections/endpoints/create.d.ts.map +1 -1
  335. package/dist/collections/endpoints/create.js +1 -1
  336. package/dist/collections/endpoints/create.js.map +1 -1
  337. package/dist/collections/endpoints/delete.d.ts.map +1 -1
  338. package/dist/collections/endpoints/delete.js +1 -1
  339. package/dist/collections/endpoints/delete.js.map +1 -1
  340. package/dist/collections/endpoints/deleteByID.d.ts.map +1 -1
  341. package/dist/collections/endpoints/deleteByID.js +1 -1
  342. package/dist/collections/endpoints/deleteByID.js.map +1 -1
  343. package/dist/collections/endpoints/docAccess.d.ts.map +1 -1
  344. package/dist/collections/endpoints/docAccess.js +1 -1
  345. package/dist/collections/endpoints/docAccess.js.map +1 -1
  346. package/dist/collections/endpoints/duplicate.d.ts.map +1 -1
  347. package/dist/collections/endpoints/duplicate.js +1 -1
  348. package/dist/collections/endpoints/duplicate.js.map +1 -1
  349. package/dist/collections/endpoints/find.d.ts.map +1 -1
  350. package/dist/collections/endpoints/find.js +1 -1
  351. package/dist/collections/endpoints/find.js.map +1 -1
  352. package/dist/collections/endpoints/findByID.d.ts.map +1 -1
  353. package/dist/collections/endpoints/findByID.js +1 -1
  354. package/dist/collections/endpoints/findByID.js.map +1 -1
  355. package/dist/collections/endpoints/findDistinct.d.ts.map +1 -1
  356. package/dist/collections/endpoints/findDistinct.js +1 -1
  357. package/dist/collections/endpoints/findDistinct.js.map +1 -1
  358. package/dist/collections/endpoints/findVersionByID.d.ts.map +1 -1
  359. package/dist/collections/endpoints/findVersionByID.js +1 -1
  360. package/dist/collections/endpoints/findVersionByID.js.map +1 -1
  361. package/dist/collections/endpoints/findVersions.d.ts.map +1 -1
  362. package/dist/collections/endpoints/findVersions.js +1 -1
  363. package/dist/collections/endpoints/findVersions.js.map +1 -1
  364. package/dist/collections/endpoints/index.d.ts +1 -0
  365. package/dist/collections/endpoints/index.d.ts.map +1 -1
  366. package/dist/collections/endpoints/index.js +23 -5
  367. package/dist/collections/endpoints/index.js.map +1 -1
  368. package/dist/collections/endpoints/renameFile.d.ts +3 -0
  369. package/dist/collections/endpoints/renameFile.d.ts.map +1 -0
  370. package/dist/collections/endpoints/renameFile.js +31 -0
  371. package/dist/collections/endpoints/renameFile.js.map +1 -0
  372. package/dist/collections/endpoints/restoreVersion.d.ts.map +1 -1
  373. package/dist/collections/endpoints/restoreVersion.js +1 -1
  374. package/dist/collections/endpoints/restoreVersion.js.map +1 -1
  375. package/dist/collections/endpoints/update.d.ts.map +1 -1
  376. package/dist/collections/endpoints/update.js +1 -1
  377. package/dist/collections/endpoints/update.js.map +1 -1
  378. package/dist/collections/endpoints/updateByID.d.ts.map +1 -1
  379. package/dist/collections/endpoints/updateByID.js +1 -1
  380. package/dist/collections/endpoints/updateByID.js.map +1 -1
  381. package/dist/collections/endpoints/validate.d.ts +19 -0
  382. package/dist/collections/endpoints/validate.d.ts.map +1 -0
  383. package/dist/collections/endpoints/validate.js +89 -0
  384. package/dist/collections/endpoints/validate.js.map +1 -0
  385. package/dist/collections/operations/create.d.ts.map +1 -1
  386. package/dist/collections/operations/create.js +222 -29
  387. package/dist/collections/operations/create.js.map +1 -1
  388. package/dist/collections/operations/delete.d.ts.map +1 -1
  389. package/dist/collections/operations/delete.js +87 -2
  390. package/dist/collections/operations/delete.js.map +1 -1
  391. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  392. package/dist/collections/operations/deleteByID.js +70 -13
  393. package/dist/collections/operations/deleteByID.js.map +1 -1
  394. package/dist/collections/operations/docAccess.js +2 -1
  395. package/dist/collections/operations/docAccess.js.map +1 -1
  396. package/dist/collections/operations/findByID.d.ts.map +1 -1
  397. package/dist/collections/operations/findByID.js +54 -6
  398. package/dist/collections/operations/findByID.js.map +1 -1
  399. package/dist/collections/operations/findDistinct.d.ts.map +1 -1
  400. package/dist/collections/operations/findDistinct.js +99 -20
  401. package/dist/collections/operations/findDistinct.js.map +1 -1
  402. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  403. package/dist/collections/operations/findVersionByID.js +74 -26
  404. package/dist/collections/operations/findVersionByID.js.map +1 -1
  405. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  406. package/dist/collections/operations/findVersions.js +29 -0
  407. package/dist/collections/operations/findVersions.js.map +1 -1
  408. package/dist/collections/operations/local/count.d.ts +2 -7
  409. package/dist/collections/operations/local/count.d.ts.map +1 -1
  410. package/dist/collections/operations/local/count.js +6 -3
  411. package/dist/collections/operations/local/count.js.map +1 -1
  412. package/dist/collections/operations/local/countVersions.d.ts +2 -7
  413. package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
  414. package/dist/collections/operations/local/countVersions.js +6 -3
  415. package/dist/collections/operations/local/countVersions.js.map +1 -1
  416. package/dist/collections/operations/local/create.d.ts +2 -7
  417. package/dist/collections/operations/local/create.d.ts.map +1 -1
  418. package/dist/collections/operations/local/create.js +6 -3
  419. package/dist/collections/operations/local/create.js.map +1 -1
  420. package/dist/collections/operations/local/delete.d.ts +2 -7
  421. package/dist/collections/operations/local/delete.d.ts.map +1 -1
  422. package/dist/collections/operations/local/delete.js +6 -3
  423. package/dist/collections/operations/local/delete.js.map +1 -1
  424. package/dist/collections/operations/local/duplicate.d.ts +2 -7
  425. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  426. package/dist/collections/operations/local/duplicate.js +6 -3
  427. package/dist/collections/operations/local/duplicate.js.map +1 -1
  428. package/dist/collections/operations/local/find.d.ts +2 -7
  429. package/dist/collections/operations/local/find.d.ts.map +1 -1
  430. package/dist/collections/operations/local/find.js +6 -3
  431. package/dist/collections/operations/local/find.js.map +1 -1
  432. package/dist/collections/operations/local/findByID.d.ts +2 -7
  433. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  434. package/dist/collections/operations/local/findByID.js +6 -3
  435. package/dist/collections/operations/local/findByID.js.map +1 -1
  436. package/dist/collections/operations/local/findDistinct.d.ts +2 -7
  437. package/dist/collections/operations/local/findDistinct.d.ts.map +1 -1
  438. package/dist/collections/operations/local/findDistinct.js +6 -3
  439. package/dist/collections/operations/local/findDistinct.js.map +1 -1
  440. package/dist/collections/operations/local/findVersionByID.d.ts +2 -7
  441. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  442. package/dist/collections/operations/local/findVersionByID.js +6 -3
  443. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  444. package/dist/collections/operations/local/findVersions.d.ts +2 -7
  445. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  446. package/dist/collections/operations/local/findVersions.js +6 -3
  447. package/dist/collections/operations/local/findVersions.js.map +1 -1
  448. package/dist/collections/operations/local/renameFile.d.ts +17 -0
  449. package/dist/collections/operations/local/renameFile.d.ts.map +1 -0
  450. package/dist/collections/operations/local/renameFile.js +28 -0
  451. package/dist/collections/operations/local/renameFile.js.map +1 -0
  452. package/dist/collections/operations/local/restoreVersion.d.ts +2 -7
  453. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  454. package/dist/collections/operations/local/restoreVersion.js +6 -3
  455. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  456. package/dist/collections/operations/local/update.d.ts +2 -7
  457. package/dist/collections/operations/local/update.d.ts.map +1 -1
  458. package/dist/collections/operations/local/update.js +6 -3
  459. package/dist/collections/operations/local/update.js.map +1 -1
  460. package/dist/collections/operations/local/validate.d.ts +63 -0
  461. package/dist/collections/operations/local/validate.d.ts.map +1 -0
  462. package/dist/collections/operations/local/validate.js +59 -0
  463. package/dist/collections/operations/local/validate.js.map +1 -0
  464. package/dist/collections/operations/renameFile.d.ts +15 -0
  465. package/dist/collections/operations/renameFile.d.ts.map +1 -0
  466. package/dist/collections/operations/renameFile.js +298 -0
  467. package/dist/collections/operations/renameFile.js.map +1 -0
  468. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  469. package/dist/collections/operations/restoreVersion.js +95 -27
  470. package/dist/collections/operations/restoreVersion.js.map +1 -1
  471. package/dist/collections/operations/update.d.ts.map +1 -1
  472. package/dist/collections/operations/update.js +187 -33
  473. package/dist/collections/operations/update.js.map +1 -1
  474. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  475. package/dist/collections/operations/updateByID.js +111 -6
  476. package/dist/collections/operations/updateByID.js.map +1 -1
  477. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts +15 -0
  478. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts.map +1 -0
  479. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js +54 -0
  480. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js.map +1 -0
  481. package/dist/collections/operations/utilities/update.d.ts +4 -3
  482. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  483. package/dist/collections/operations/utilities/update.js +262 -149
  484. package/dist/collections/operations/utilities/update.js.map +1 -1
  485. package/dist/collections/operations/utilities/validateUniqueConstraints.d.ts +11 -0
  486. package/dist/collections/operations/utilities/validateUniqueConstraints.d.ts.map +1 -0
  487. package/dist/collections/operations/utilities/validateUniqueConstraints.js +100 -0
  488. package/dist/collections/operations/utilities/validateUniqueConstraints.js.map +1 -0
  489. package/dist/collections/operations/validate.d.ts +22 -0
  490. package/dist/collections/operations/validate.d.ts.map +1 -0
  491. package/dist/collections/operations/validate.js +165 -0
  492. package/dist/collections/operations/validate.js.map +1 -0
  493. package/dist/config/assertNoLegacySharpConfig.d.ts +21 -0
  494. package/dist/config/assertNoLegacySharpConfig.d.ts.map +1 -0
  495. package/dist/config/assertNoLegacySharpConfig.js +50 -0
  496. package/dist/config/assertNoLegacySharpConfig.js.map +1 -0
  497. package/dist/config/build.d.ts.map +1 -1
  498. package/dist/config/build.js +21 -0
  499. package/dist/config/build.js.map +1 -1
  500. package/dist/config/client.d.ts +1 -1
  501. package/dist/config/client.d.ts.map +1 -1
  502. package/dist/config/client.js +4 -5
  503. package/dist/config/client.js.map +1 -1
  504. package/dist/config/defaults.d.ts.map +1 -1
  505. package/dist/config/defaults.js +4 -1
  506. package/dist/config/defaults.js.map +1 -1
  507. package/dist/config/orderable/index.d.ts.map +1 -1
  508. package/dist/config/orderable/index.js +72 -16
  509. package/dist/config/orderable/index.js.map +1 -1
  510. package/dist/config/orderable/utils/getJoinScopeContext.d.ts.map +1 -1
  511. package/dist/config/orderable/utils/getJoinScopeContext.js +1 -0
  512. package/dist/config/orderable/utils/getJoinScopeContext.js.map +1 -1
  513. package/dist/config/orderable/utils/resolvePendingTargetKey.d.ts.map +1 -1
  514. package/dist/config/orderable/utils/resolvePendingTargetKey.js +1 -0
  515. package/dist/config/orderable/utils/resolvePendingTargetKey.js.map +1 -1
  516. package/dist/config/sanitize.d.ts.map +1 -1
  517. package/dist/config/sanitize.js +63 -8
  518. package/dist/config/sanitize.js.map +1 -1
  519. package/dist/config/types.d.ts +43 -21
  520. package/dist/config/types.d.ts.map +1 -1
  521. package/dist/config/types.js.map +1 -1
  522. package/dist/database/createDatabaseAdapter.d.ts +1 -1
  523. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  524. package/dist/database/createDatabaseAdapter.js +4 -0
  525. package/dist/database/createDatabaseAdapter.js.map +1 -1
  526. package/dist/database/createSchemaBuildContext.d.ts +12 -0
  527. package/dist/database/createSchemaBuildContext.d.ts.map +1 -0
  528. package/dist/database/createSchemaBuildContext.js +24 -0
  529. package/dist/database/createSchemaBuildContext.js.map +1 -0
  530. package/dist/database/defaultBatchProcessing.d.ts +3 -0
  531. package/dist/database/defaultBatchProcessing.d.ts.map +1 -0
  532. package/dist/database/defaultBatchProcessing.js +93 -0
  533. package/dist/database/defaultBatchProcessing.js.map +1 -0
  534. package/dist/database/defaultCopy.d.ts +3 -0
  535. package/dist/database/defaultCopy.d.ts.map +1 -0
  536. package/dist/database/defaultCopy.js +73 -0
  537. package/dist/database/defaultCopy.js.map +1 -0
  538. package/dist/database/getLocalizedPaths.d.ts +2 -1
  539. package/dist/database/getLocalizedPaths.d.ts.map +1 -1
  540. package/dist/database/getLocalizedPaths.js +12 -3
  541. package/dist/database/getLocalizedPaths.js.map +1 -1
  542. package/dist/database/migrations/getMigrations.d.ts.map +1 -1
  543. package/dist/database/migrations/getMigrations.js +1 -0
  544. package/dist/database/migrations/getMigrations.js.map +1 -1
  545. package/dist/database/migrations/migrate.d.ts.map +1 -1
  546. package/dist/database/migrations/migrate.js +5 -2
  547. package/dist/database/migrations/migrate.js.map +1 -1
  548. package/dist/database/migrations/migrateDown.d.ts.map +1 -1
  549. package/dist/database/migrations/migrateDown.js +5 -2
  550. package/dist/database/migrations/migrateDown.js.map +1 -1
  551. package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
  552. package/dist/database/migrations/migrateRefresh.js +6 -2
  553. package/dist/database/migrations/migrateRefresh.js.map +1 -1
  554. package/dist/database/migrations/migrateReset.d.ts.map +1 -1
  555. package/dist/database/migrations/migrateReset.js +6 -2
  556. package/dist/database/migrations/migrateReset.js.map +1 -1
  557. package/dist/database/migrations/migrationsCollection.d.ts.map +1 -1
  558. package/dist/database/migrations/migrationsCollection.js +1 -0
  559. package/dist/database/migrations/migrationsCollection.js.map +1 -1
  560. package/dist/database/prefixWherePaths.d.ts +6 -0
  561. package/dist/database/prefixWherePaths.d.ts.map +1 -0
  562. package/dist/database/prefixWherePaths.js +19 -0
  563. package/dist/database/prefixWherePaths.js.map +1 -0
  564. package/dist/database/queryValidation/validateQueryPaths.d.ts +2 -1
  565. package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
  566. package/dist/database/queryValidation/validateQueryPaths.js +4 -1
  567. package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
  568. package/dist/database/queryValidation/validateSearchParams.d.ts +2 -1
  569. package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
  570. package/dist/database/queryValidation/validateSearchParams.js +67 -3
  571. package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
  572. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  573. package/dist/database/sanitizeJoinQuery.js +2 -1
  574. package/dist/database/sanitizeJoinQuery.js.map +1 -1
  575. package/dist/database/types.d.ts +58 -0
  576. package/dist/database/types.d.ts.map +1 -1
  577. package/dist/database/types.js.map +1 -1
  578. package/dist/errors/APIError.d.ts +4 -0
  579. package/dist/errors/APIError.d.ts.map +1 -1
  580. package/dist/errors/APIError.js +6 -2
  581. package/dist/errors/APIError.js.map +1 -1
  582. package/dist/errors/AuthenticationError.d.ts.map +1 -1
  583. package/dist/errors/AuthenticationError.js +2 -1
  584. package/dist/errors/AuthenticationError.js.map +1 -1
  585. package/dist/errors/DuplicateCollection.d.ts.map +1 -1
  586. package/dist/errors/DuplicateCollection.js +1 -0
  587. package/dist/errors/DuplicateCollection.js.map +1 -1
  588. package/dist/errors/DuplicateFieldName.d.ts.map +1 -1
  589. package/dist/errors/DuplicateFieldName.js +1 -0
  590. package/dist/errors/DuplicateFieldName.js.map +1 -1
  591. package/dist/errors/DuplicateGlobal.d.ts.map +1 -1
  592. package/dist/errors/DuplicateGlobal.js +1 -0
  593. package/dist/errors/DuplicateGlobal.js.map +1 -1
  594. package/dist/errors/ErrorDeletingFile.d.ts.map +1 -1
  595. package/dist/errors/ErrorDeletingFile.js +2 -1
  596. package/dist/errors/ErrorDeletingFile.js.map +1 -1
  597. package/dist/errors/FileRetrievalError.d.ts.map +1 -1
  598. package/dist/errors/FileRetrievalError.js +2 -1
  599. package/dist/errors/FileRetrievalError.js.map +1 -1
  600. package/dist/errors/FileUploadError.d.ts.map +1 -1
  601. package/dist/errors/FileUploadError.js +2 -1
  602. package/dist/errors/FileUploadError.js.map +1 -1
  603. package/dist/errors/Forbidden.d.ts.map +1 -1
  604. package/dist/errors/Forbidden.js +2 -1
  605. package/dist/errors/Forbidden.js.map +1 -1
  606. package/dist/errors/InvalidConfiguration.d.ts.map +1 -1
  607. package/dist/errors/InvalidConfiguration.js +2 -1
  608. package/dist/errors/InvalidConfiguration.js.map +1 -1
  609. package/dist/errors/InvalidFieldJoin.d.ts.map +1 -1
  610. package/dist/errors/InvalidFieldJoin.js +1 -0
  611. package/dist/errors/InvalidFieldJoin.js.map +1 -1
  612. package/dist/errors/InvalidFieldName.d.ts.map +1 -1
  613. package/dist/errors/InvalidFieldName.js +1 -0
  614. package/dist/errors/InvalidFieldName.js.map +1 -1
  615. package/dist/errors/InvalidFieldRelationship.d.ts.map +1 -1
  616. package/dist/errors/InvalidFieldRelationship.js +1 -0
  617. package/dist/errors/InvalidFieldRelationship.js.map +1 -1
  618. package/dist/errors/InvalidSchema.d.ts.map +1 -1
  619. package/dist/errors/InvalidSchema.js +2 -1
  620. package/dist/errors/InvalidSchema.js.map +1 -1
  621. package/dist/errors/Locked.d.ts.map +1 -1
  622. package/dist/errors/Locked.js +2 -1
  623. package/dist/errors/Locked.js.map +1 -1
  624. package/dist/errors/LockedAuth.d.ts.map +1 -1
  625. package/dist/errors/LockedAuth.js +2 -1
  626. package/dist/errors/LockedAuth.js.map +1 -1
  627. package/dist/errors/MissingCollectionLabel.d.ts.map +1 -1
  628. package/dist/errors/MissingCollectionLabel.js +1 -0
  629. package/dist/errors/MissingCollectionLabel.js.map +1 -1
  630. package/dist/errors/MissingEditorProp.d.ts.map +1 -1
  631. package/dist/errors/MissingEditorProp.js +1 -0
  632. package/dist/errors/MissingEditorProp.js.map +1 -1
  633. package/dist/errors/MissingFieldInputOptions.d.ts.map +1 -1
  634. package/dist/errors/MissingFieldInputOptions.js +1 -0
  635. package/dist/errors/MissingFieldInputOptions.js.map +1 -1
  636. package/dist/errors/MissingFieldType.d.ts.map +1 -1
  637. package/dist/errors/MissingFieldType.js +1 -0
  638. package/dist/errors/MissingFieldType.js.map +1 -1
  639. package/dist/errors/MissingFile.d.ts.map +1 -1
  640. package/dist/errors/MissingFile.js +2 -1
  641. package/dist/errors/MissingFile.js.map +1 -1
  642. package/dist/errors/NotFound.d.ts.map +1 -1
  643. package/dist/errors/NotFound.js +2 -1
  644. package/dist/errors/NotFound.js.map +1 -1
  645. package/dist/errors/QueryError.d.ts.map +1 -1
  646. package/dist/errors/QueryError.js +2 -1
  647. package/dist/errors/QueryError.js.map +1 -1
  648. package/dist/errors/ReservedFieldName.d.ts.map +1 -1
  649. package/dist/errors/ReservedFieldName.js +1 -0
  650. package/dist/errors/ReservedFieldName.js.map +1 -1
  651. package/dist/errors/TimestampsRequired.d.ts.map +1 -1
  652. package/dist/errors/TimestampsRequired.js +1 -0
  653. package/dist/errors/TimestampsRequired.js.map +1 -1
  654. package/dist/errors/TransformerContractError.d.ts +11 -0
  655. package/dist/errors/TransformerContractError.d.ts.map +1 -0
  656. package/dist/errors/TransformerContractError.js +15 -0
  657. package/dist/errors/TransformerContractError.js.map +1 -0
  658. package/dist/errors/UnauthorizedError.d.ts.map +1 -1
  659. package/dist/errors/UnauthorizedError.js +2 -1
  660. package/dist/errors/UnauthorizedError.js.map +1 -1
  661. package/dist/errors/UnverifiedEmail.d.ts.map +1 -1
  662. package/dist/errors/UnverifiedEmail.js +2 -1
  663. package/dist/errors/UnverifiedEmail.js.map +1 -1
  664. package/dist/errors/ValidationError.d.ts +6 -0
  665. package/dist/errors/ValidationError.d.ts.map +1 -1
  666. package/dist/errors/ValidationError.js +12 -8
  667. package/dist/errors/ValidationError.js.map +1 -1
  668. package/dist/errors/index.d.ts +1 -0
  669. package/dist/errors/index.d.ts.map +1 -1
  670. package/dist/errors/index.js +1 -0
  671. package/dist/errors/index.js.map +1 -1
  672. package/dist/exports/internal.d.ts +16 -1
  673. package/dist/exports/internal.d.ts.map +1 -1
  674. package/dist/exports/internal.js +15 -2
  675. package/dist/exports/internal.js.map +1 -1
  676. package/dist/exports/shared.d.ts +6 -1
  677. package/dist/exports/shared.d.ts.map +1 -1
  678. package/dist/exports/shared.js +6 -1
  679. package/dist/exports/shared.js.map +1 -1
  680. package/dist/fields/baseFields/authorship/index.d.ts +30 -0
  681. package/dist/fields/baseFields/authorship/index.d.ts.map +1 -0
  682. package/dist/fields/baseFields/authorship/index.js +153 -0
  683. package/dist/fields/baseFields/authorship/index.js.map +1 -0
  684. package/dist/fields/baseFields/authorship/types.d.ts +28 -0
  685. package/dist/fields/baseFields/authorship/types.d.ts.map +1 -0
  686. package/dist/fields/baseFields/authorship/types.js +10 -0
  687. package/dist/fields/baseFields/authorship/types.js.map +1 -0
  688. package/dist/fields/config/reservedFieldNames.js.map +1 -1
  689. package/dist/fields/config/sanitize.d.ts.map +1 -1
  690. package/dist/fields/config/sanitize.js +1 -0
  691. package/dist/fields/config/sanitize.js.map +1 -1
  692. package/dist/fields/config/types.d.ts +62 -52
  693. package/dist/fields/config/types.d.ts.map +1 -1
  694. package/dist/fields/config/types.js.map +1 -1
  695. package/dist/fields/hooks/beforeChange/index.d.ts +11 -3
  696. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  697. package/dist/fields/hooks/beforeChange/index.js +6 -2
  698. package/dist/fields/hooks/beforeChange/index.js.map +1 -1
  699. package/dist/fields/hooks/beforeChange/promise.d.ts +6 -3
  700. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  701. package/dist/fields/hooks/beforeChange/promise.js +72 -20
  702. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  703. package/dist/fields/hooks/beforeChange/traverseFields.d.ts +6 -3
  704. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  705. package/dist/fields/hooks/beforeChange/traverseFields.js +5 -2
  706. package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
  707. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  708. package/dist/fields/hooks/beforeDuplicate/promise.js +4 -0
  709. package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
  710. package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts +2 -1
  711. package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts.map +1 -1
  712. package/dist/fields/hooks/beforeValidate/getFallbackValue.js +2 -2
  713. package/dist/fields/hooks/beforeValidate/getFallbackValue.js.map +1 -1
  714. package/dist/fields/hooks/beforeValidate/index.d.ts +8 -3
  715. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  716. package/dist/fields/hooks/beforeValidate/index.js +3 -1
  717. package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
  718. package/dist/fields/hooks/beforeValidate/promise.d.ts +8 -3
  719. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  720. package/dist/fields/hooks/beforeValidate/promise.js +24 -9
  721. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  722. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +8 -3
  723. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  724. package/dist/fields/hooks/beforeValidate/traverseFields.js +3 -1
  725. package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
  726. package/dist/fields/validateJSONSchema.browser.d.ts +4 -0
  727. package/dist/fields/validateJSONSchema.browser.d.ts.map +1 -0
  728. package/dist/fields/validateJSONSchema.browser.js +3 -0
  729. package/dist/fields/validateJSONSchema.browser.js.map +1 -0
  730. package/dist/fields/validateJSONSchema.d.ts +15 -0
  731. package/dist/fields/validateJSONSchema.d.ts.map +1 -0
  732. package/dist/fields/validateJSONSchema.js +44 -0
  733. package/dist/fields/validateJSONSchema.js.map +1 -0
  734. package/dist/fields/validations.d.ts.map +1 -1
  735. package/dist/fields/validations.js +8 -34
  736. package/dist/fields/validations.js.map +1 -1
  737. package/dist/globals/config/client.d.ts +1 -1
  738. package/dist/globals/config/client.d.ts.map +1 -1
  739. package/dist/globals/config/client.js +1 -0
  740. package/dist/globals/config/client.js.map +1 -1
  741. package/dist/globals/config/sanitize.d.ts.map +1 -1
  742. package/dist/globals/config/sanitize.js +58 -5
  743. package/dist/globals/config/sanitize.js.map +1 -1
  744. package/dist/globals/config/types.d.ts +33 -4
  745. package/dist/globals/config/types.d.ts.map +1 -1
  746. package/dist/globals/config/types.js.map +1 -1
  747. package/dist/globals/endpoints/docAccess.d.ts.map +1 -1
  748. package/dist/globals/endpoints/docAccess.js +1 -1
  749. package/dist/globals/endpoints/docAccess.js.map +1 -1
  750. package/dist/globals/endpoints/findOne.d.ts.map +1 -1
  751. package/dist/globals/endpoints/findOne.js +1 -1
  752. package/dist/globals/endpoints/findOne.js.map +1 -1
  753. package/dist/globals/endpoints/findVersionByID.d.ts.map +1 -1
  754. package/dist/globals/endpoints/findVersionByID.js +1 -1
  755. package/dist/globals/endpoints/findVersionByID.js.map +1 -1
  756. package/dist/globals/endpoints/findVersions.d.ts.map +1 -1
  757. package/dist/globals/endpoints/findVersions.js +1 -1
  758. package/dist/globals/endpoints/findVersions.js.map +1 -1
  759. package/dist/globals/endpoints/index.d.ts.map +1 -1
  760. package/dist/globals/endpoints/index.js +6 -0
  761. package/dist/globals/endpoints/index.js.map +1 -1
  762. package/dist/globals/endpoints/restoreVersion.d.ts.map +1 -1
  763. package/dist/globals/endpoints/restoreVersion.js +1 -1
  764. package/dist/globals/endpoints/restoreVersion.js.map +1 -1
  765. package/dist/globals/endpoints/update.d.ts.map +1 -1
  766. package/dist/globals/endpoints/update.js +1 -1
  767. package/dist/globals/endpoints/update.js.map +1 -1
  768. package/dist/globals/endpoints/validate.d.ts +11 -0
  769. package/dist/globals/endpoints/validate.d.ts.map +1 -0
  770. package/dist/globals/endpoints/validate.js +49 -0
  771. package/dist/globals/endpoints/validate.js.map +1 -0
  772. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  773. package/dist/globals/operations/countGlobalVersions.js +6 -0
  774. package/dist/globals/operations/countGlobalVersions.js.map +1 -1
  775. package/dist/globals/operations/docAccess.js +2 -1
  776. package/dist/globals/operations/docAccess.js.map +1 -1
  777. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  778. package/dist/globals/operations/findVersionByID.js +25 -9
  779. package/dist/globals/operations/findVersionByID.js.map +1 -1
  780. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  781. package/dist/globals/operations/findVersions.js +11 -0
  782. package/dist/globals/operations/findVersions.js.map +1 -1
  783. package/dist/globals/operations/local/countVersions.d.ts +2 -7
  784. package/dist/globals/operations/local/countVersions.d.ts.map +1 -1
  785. package/dist/globals/operations/local/countVersions.js +6 -3
  786. package/dist/globals/operations/local/countVersions.js.map +1 -1
  787. package/dist/globals/operations/local/findOne.d.ts +2 -7
  788. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  789. package/dist/globals/operations/local/findOne.js +6 -3
  790. package/dist/globals/operations/local/findOne.js.map +1 -1
  791. package/dist/globals/operations/local/findVersionByID.d.ts +2 -7
  792. package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
  793. package/dist/globals/operations/local/findVersionByID.js +6 -3
  794. package/dist/globals/operations/local/findVersionByID.js.map +1 -1
  795. package/dist/globals/operations/local/findVersions.d.ts +2 -7
  796. package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
  797. package/dist/globals/operations/local/findVersions.js +6 -3
  798. package/dist/globals/operations/local/findVersions.js.map +1 -1
  799. package/dist/globals/operations/local/restoreVersion.d.ts +2 -7
  800. package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
  801. package/dist/globals/operations/local/restoreVersion.js +6 -3
  802. package/dist/globals/operations/local/restoreVersion.js.map +1 -1
  803. package/dist/globals/operations/local/update.d.ts +2 -7
  804. package/dist/globals/operations/local/update.d.ts.map +1 -1
  805. package/dist/globals/operations/local/update.js +6 -3
  806. package/dist/globals/operations/local/update.js.map +1 -1
  807. package/dist/globals/operations/local/validate.d.ts +43 -0
  808. package/dist/globals/operations/local/validate.d.ts.map +1 -0
  809. package/dist/globals/operations/local/validate.js +54 -0
  810. package/dist/globals/operations/local/validate.js.map +1 -0
  811. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  812. package/dist/globals/operations/restoreVersion.js +63 -15
  813. package/dist/globals/operations/restoreVersion.js.map +1 -1
  814. package/dist/globals/operations/update.d.ts.map +1 -1
  815. package/dist/globals/operations/update.js +150 -19
  816. package/dist/globals/operations/update.js.map +1 -1
  817. package/dist/globals/operations/validate.d.ts +21 -0
  818. package/dist/globals/operations/validate.d.ts.map +1 -0
  819. package/dist/globals/operations/validate.js +133 -0
  820. package/dist/globals/operations/validate.js.map +1 -0
  821. package/dist/hierarchy/addHierarchyToCollection.d.ts.map +1 -1
  822. package/dist/hierarchy/addHierarchyToCollection.js +32 -21
  823. package/dist/hierarchy/addHierarchyToCollection.js.map +1 -1
  824. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -1
  825. package/dist/hierarchy/hooks/collectionAfterDelete.js +1 -0
  826. package/dist/hierarchy/hooks/collectionAfterDelete.js.map +1 -1
  827. package/dist/hierarchy/hooks/collectionBeforeChange.js +2 -1
  828. package/dist/hierarchy/hooks/collectionBeforeChange.js.map +1 -1
  829. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -1
  830. package/dist/hierarchy/hooks/collectionBeforeDelete.js +1 -0
  831. package/dist/hierarchy/hooks/collectionBeforeDelete.js.map +1 -1
  832. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -1
  833. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js +71 -33
  834. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js.map +1 -1
  835. package/dist/hierarchy/resolveHierarchyCollections.js +36 -21
  836. package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -1
  837. package/dist/index.bundled.d.ts +1155 -628
  838. package/dist/index.d.ts +58 -21
  839. package/dist/index.d.ts.map +1 -1
  840. package/dist/index.js +40 -7
  841. package/dist/index.js.map +1 -1
  842. package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
  843. package/dist/kv/adapters/DatabaseKVAdapter.js +2 -1
  844. package/dist/kv/adapters/DatabaseKVAdapter.js.map +1 -1
  845. package/dist/llm-instructions/addLLMInstructions.d.ts +5 -0
  846. package/dist/llm-instructions/addLLMInstructions.d.ts.map +1 -0
  847. package/dist/llm-instructions/addLLMInstructions.js +31 -0
  848. package/dist/llm-instructions/addLLMInstructions.js.map +1 -0
  849. package/dist/llm-instructions/getInstructionTargetAccess.d.ts +8 -0
  850. package/dist/llm-instructions/getInstructionTargetAccess.d.ts.map +1 -0
  851. package/dist/llm-instructions/getInstructionTargetAccess.js +40 -0
  852. package/dist/llm-instructions/getInstructionTargetAccess.js.map +1 -0
  853. package/dist/llm-instructions/getInstructions.d.ts +8 -0
  854. package/dist/llm-instructions/getInstructions.d.ts.map +1 -0
  855. package/dist/llm-instructions/getInstructions.js +46 -0
  856. package/dist/llm-instructions/getInstructions.js.map +1 -0
  857. package/dist/llm-instructions/getInstructionsCollection.d.ts +6 -0
  858. package/dist/llm-instructions/getInstructionsCollection.d.ts.map +1 -0
  859. package/dist/llm-instructions/getInstructionsCollection.js +369 -0
  860. package/dist/llm-instructions/getInstructionsCollection.js.map +1 -0
  861. package/dist/llm-instructions/shared.d.ts +11 -0
  862. package/dist/llm-instructions/shared.d.ts.map +1 -0
  863. package/dist/llm-instructions/shared.js +3 -0
  864. package/dist/llm-instructions/shared.js.map +1 -0
  865. package/dist/locked-documents/config.d.ts.map +1 -1
  866. package/dist/locked-documents/config.js +1 -0
  867. package/dist/locked-documents/config.js.map +1 -1
  868. package/dist/preferences/config.d.ts.map +1 -1
  869. package/dist/preferences/config.js +3 -1
  870. package/dist/preferences/config.js.map +1 -1
  871. package/dist/preferences/keys.d.ts +4 -0
  872. package/dist/preferences/keys.d.ts.map +1 -1
  873. package/dist/preferences/keys.js +3 -0
  874. package/dist/preferences/keys.js.map +1 -1
  875. package/dist/preferences/requestHandlers/delete.d.ts.map +1 -1
  876. package/dist/preferences/requestHandlers/delete.js +1 -1
  877. package/dist/preferences/requestHandlers/delete.js.map +1 -1
  878. package/dist/preferences/requestHandlers/findOne.d.ts.map +1 -1
  879. package/dist/preferences/requestHandlers/findOne.js +1 -1
  880. package/dist/preferences/requestHandlers/findOne.js.map +1 -1
  881. package/dist/preferences/requestHandlers/update.d.ts.map +1 -1
  882. package/dist/preferences/requestHandlers/update.js +1 -1
  883. package/dist/preferences/requestHandlers/update.js.map +1 -1
  884. package/dist/preferences/types.d.ts +8 -0
  885. package/dist/preferences/types.d.ts.map +1 -1
  886. package/dist/preferences/types.js +1 -3
  887. package/dist/preferences/types.js.map +1 -1
  888. package/dist/query-presets/access.d.ts +3 -1
  889. package/dist/query-presets/access.d.ts.map +1 -1
  890. package/dist/query-presets/access.js +2 -1
  891. package/dist/query-presets/access.js.map +1 -1
  892. package/dist/query-presets/config.d.ts.map +1 -1
  893. package/dist/query-presets/config.js +2 -1
  894. package/dist/query-presets/config.js.map +1 -1
  895. package/dist/query-presets/preventLockout.js +6 -3
  896. package/dist/query-presets/preventLockout.js.map +1 -1
  897. package/dist/queues/config/collection.d.ts.map +1 -1
  898. package/dist/queues/config/collection.js +1 -0
  899. package/dist/queues/config/collection.js.map +1 -1
  900. package/dist/queues/config/global.d.ts.map +1 -1
  901. package/dist/queues/config/global.js +1 -0
  902. package/dist/queues/config/global.js.map +1 -1
  903. package/dist/queues/config/types/index.d.ts +2 -1
  904. package/dist/queues/config/types/index.d.ts.map +1 -1
  905. package/dist/queues/config/types/index.js.map +1 -1
  906. package/dist/queues/localAPI.d.ts +7 -60
  907. package/dist/queues/localAPI.d.ts.map +1 -1
  908. package/dist/queues/localAPI.js +27 -12
  909. package/dist/queues/localAPI.js.map +1 -1
  910. package/dist/queues/operations/handleSchedules/index.d.ts.map +1 -1
  911. package/dist/queues/operations/handleSchedules/index.js +1 -0
  912. package/dist/queues/operations/handleSchedules/index.js.map +1 -1
  913. package/dist/queues/utilities/updateJob.d.ts.map +1 -1
  914. package/dist/queues/utilities/updateJob.js +19 -4
  915. package/dist/queues/utilities/updateJob.js.map +1 -1
  916. package/dist/types/index.d.ts +18 -1
  917. package/dist/types/index.d.ts.map +1 -1
  918. package/dist/types/index.js.map +1 -1
  919. package/dist/types/operations.d.ts +9 -0
  920. package/dist/types/operations.d.ts.map +1 -0
  921. package/dist/types/operations.js +3 -0
  922. package/dist/types/operations.js.map +1 -0
  923. package/dist/types/validation.d.ts +18 -0
  924. package/dist/types/validation.d.ts.map +1 -0
  925. package/dist/types/validation.js +8 -0
  926. package/dist/types/validation.js.map +1 -0
  927. package/dist/uploads/assertClientUploadAccess.d.ts +7 -0
  928. package/dist/uploads/assertClientUploadAccess.d.ts.map +1 -0
  929. package/dist/uploads/assertClientUploadAccess.js +29 -0
  930. package/dist/uploads/assertClientUploadAccess.js.map +1 -0
  931. package/dist/uploads/assertClientUploadAllowed.d.ts +10 -0
  932. package/dist/uploads/assertClientUploadAllowed.d.ts.map +1 -0
  933. package/dist/uploads/assertClientUploadAllowed.js +41 -0
  934. package/dist/uploads/assertClientUploadAllowed.js.map +1 -0
  935. package/dist/uploads/checkFileAccess.d.ts +2 -1
  936. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  937. package/dist/uploads/checkFileAccess.js +16 -22
  938. package/dist/uploads/checkFileAccess.js.map +1 -1
  939. package/dist/uploads/checkFileRestrictions.d.ts +11 -1
  940. package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
  941. package/dist/uploads/checkFileRestrictions.js +79 -28
  942. package/dist/uploads/checkFileRestrictions.js.map +1 -1
  943. package/dist/uploads/clientUploadReceipt.d.ts +29 -0
  944. package/dist/uploads/clientUploadReceipt.d.ts.map +1 -0
  945. package/dist/uploads/clientUploadReceipt.js +76 -0
  946. package/dist/uploads/clientUploadReceipt.js.map +1 -0
  947. package/dist/uploads/deleteAssociatedFiles.d.ts.map +1 -1
  948. package/dist/uploads/deleteAssociatedFiles.js +69 -12
  949. package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
  950. package/dist/uploads/detectSvgFromXml.d.ts +1 -4
  951. package/dist/uploads/detectSvgFromXml.d.ts.map +1 -1
  952. package/dist/uploads/detectSvgFromXml.js +2 -41
  953. package/dist/uploads/detectSvgFromXml.js.map +1 -1
  954. package/dist/uploads/docWithFilenameExists.d.ts +2 -1
  955. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  956. package/dist/uploads/docWithFilenameExists.js +19 -11
  957. package/dist/uploads/docWithFilenameExists.js.map +1 -1
  958. package/dist/uploads/downloadFileToBuffer.d.ts.map +1 -1
  959. package/dist/uploads/downloadFileToBuffer.js +46 -15
  960. package/dist/uploads/downloadFileToBuffer.js.map +1 -1
  961. package/dist/uploads/endpoints/getFile.d.ts +17 -0
  962. package/dist/uploads/endpoints/getFile.d.ts.map +1 -1
  963. package/dist/uploads/endpoints/getFile.js +76 -13
  964. package/dist/uploads/endpoints/getFile.js.map +1 -1
  965. package/dist/uploads/endpoints/uploadInstructions.d.ts.map +1 -1
  966. package/dist/uploads/endpoints/uploadInstructions.js +29 -26
  967. package/dist/uploads/endpoints/uploadInstructions.js.map +1 -1
  968. package/dist/uploads/fetchAPI-multipart/handlers.d.ts +2 -2
  969. package/dist/uploads/fetchAPI-multipart/handlers.d.ts.map +1 -1
  970. package/dist/uploads/fetchAPI-multipart/handlers.js +18 -5
  971. package/dist/uploads/fetchAPI-multipart/handlers.js.map +1 -1
  972. package/dist/uploads/fetchAPI-multipart/index.d.ts.map +1 -1
  973. package/dist/uploads/fetchAPI-multipart/index.js +24 -2
  974. package/dist/uploads/fetchAPI-multipart/index.js.map +1 -1
  975. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts +0 -6
  976. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
  977. package/dist/uploads/fetchAPI-multipart/processMultipart.js +147 -131
  978. package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
  979. package/dist/uploads/fetchAPI-stream-file/index.d.ts +4 -1
  980. package/dist/uploads/fetchAPI-stream-file/index.d.ts.map +1 -1
  981. package/dist/uploads/fetchAPI-stream-file/index.js +9 -2
  982. package/dist/uploads/fetchAPI-stream-file/index.js.map +1 -1
  983. package/dist/uploads/fetchWithRedirects.d.ts +3 -1
  984. package/dist/uploads/fetchWithRedirects.d.ts.map +1 -1
  985. package/dist/uploads/fetchWithRedirects.js +17 -3
  986. package/dist/uploads/fetchWithRedirects.js.map +1 -1
  987. package/dist/uploads/fileVersioning/archive.d.ts +29 -0
  988. package/dist/uploads/fileVersioning/archive.d.ts.map +1 -0
  989. package/dist/uploads/fileVersioning/archive.js +277 -0
  990. package/dist/uploads/fileVersioning/archive.js.map +1 -0
  991. package/dist/uploads/fileVersioning/cleanup.d.ts +29 -0
  992. package/dist/uploads/fileVersioning/cleanup.d.ts.map +1 -0
  993. package/dist/uploads/fileVersioning/cleanup.js +288 -0
  994. package/dist/uploads/fileVersioning/cleanup.js.map +1 -0
  995. package/dist/uploads/fileVersioning/cloudStorage.d.ts +24 -0
  996. package/dist/uploads/fileVersioning/cloudStorage.d.ts.map +1 -0
  997. package/dist/uploads/fileVersioning/cloudStorage.js +260 -0
  998. package/dist/uploads/fileVersioning/cloudStorage.js.map +1 -0
  999. package/dist/uploads/fileVersioning/fileOperationManager.d.ts +65 -0
  1000. package/dist/uploads/fileVersioning/fileOperationManager.d.ts.map +1 -0
  1001. package/dist/uploads/fileVersioning/fileOperationManager.js +324 -0
  1002. package/dist/uploads/fileVersioning/fileOperationManager.js.map +1 -0
  1003. package/dist/uploads/fileVersioning/localStorage.d.ts +9 -0
  1004. package/dist/uploads/fileVersioning/localStorage.d.ts.map +1 -0
  1005. package/dist/uploads/fileVersioning/localStorage.js +78 -0
  1006. package/dist/uploads/fileVersioning/localStorage.js.map +1 -0
  1007. package/dist/uploads/fileVersioning/markHistoricalFileURLs.d.ts +8 -0
  1008. package/dist/uploads/fileVersioning/markHistoricalFileURLs.d.ts.map +1 -0
  1009. package/dist/uploads/fileVersioning/markHistoricalFileURLs.js +49 -0
  1010. package/dist/uploads/fileVersioning/markHistoricalFileURLs.js.map +1 -0
  1011. package/dist/uploads/fileVersioning/naming.d.ts +12 -0
  1012. package/dist/uploads/fileVersioning/naming.d.ts.map +1 -0
  1013. package/dist/uploads/fileVersioning/naming.js +47 -0
  1014. package/dist/uploads/fileVersioning/naming.js.map +1 -0
  1015. package/dist/uploads/fileVersioning/resolveHistoricalFile.d.ts +11 -0
  1016. package/dist/uploads/fileVersioning/resolveHistoricalFile.d.ts.map +1 -0
  1017. package/dist/uploads/fileVersioning/resolveHistoricalFile.js +73 -0
  1018. package/dist/uploads/fileVersioning/resolveHistoricalFile.js.map +1 -0
  1019. package/dist/uploads/fileVersioning/restore.d.ts +12 -0
  1020. package/dist/uploads/fileVersioning/restore.d.ts.map +1 -0
  1021. package/dist/uploads/fileVersioning/restore.js +147 -0
  1022. package/dist/uploads/fileVersioning/restore.js.map +1 -0
  1023. package/dist/uploads/fileVersioning/storedFiles.d.ts +23 -0
  1024. package/dist/uploads/fileVersioning/storedFiles.d.ts.map +1 -0
  1025. package/dist/uploads/fileVersioning/storedFiles.js +185 -0
  1026. package/dist/uploads/fileVersioning/storedFiles.js.map +1 -0
  1027. package/dist/uploads/fileVersioning/types.d.ts +18 -0
  1028. package/dist/uploads/fileVersioning/types.d.ts.map +1 -0
  1029. package/dist/uploads/fileVersioning/types.js +3 -0
  1030. package/dist/uploads/fileVersioning/types.js.map +1 -0
  1031. package/dist/uploads/formatFilesize.js +1 -1
  1032. package/dist/uploads/formatFilesize.js.map +1 -1
  1033. package/dist/uploads/generateFileData.d.ts +25 -4
  1034. package/dist/uploads/generateFileData.d.ts.map +1 -1
  1035. package/dist/uploads/generateFileData.js +415 -191
  1036. package/dist/uploads/generateFileData.js.map +1 -1
  1037. package/dist/uploads/generateFilePathOrURL.d.ts +1 -1
  1038. package/dist/uploads/generateFilePathOrURL.d.ts.map +1 -1
  1039. package/dist/uploads/generateFilePathOrURL.js +1 -1
  1040. package/dist/uploads/generateFilePathOrURL.js.map +1 -1
  1041. package/dist/uploads/generateImageSizeFilename.d.ts.map +1 -0
  1042. package/dist/uploads/generateImageSizeFilename.js.map +1 -0
  1043. package/dist/uploads/generatePayloadFileURL.d.ts +25 -0
  1044. package/dist/uploads/generatePayloadFileURL.d.ts.map +1 -0
  1045. package/dist/uploads/generatePayloadFileURL.js +64 -0
  1046. package/dist/uploads/generatePayloadFileURL.js.map +1 -0
  1047. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  1048. package/dist/uploads/getBaseFields.js +96 -10
  1049. package/dist/uploads/getBaseFields.js.map +1 -1
  1050. package/dist/uploads/getFileContentRequirement.d.ts +13 -6
  1051. package/dist/uploads/getFileContentRequirement.d.ts.map +1 -1
  1052. package/dist/uploads/getFileContentRequirement.js +14 -9
  1053. package/dist/uploads/getFileContentRequirement.js.map +1 -1
  1054. package/dist/uploads/getFileFromUploadInstructions.d.ts.map +1 -1
  1055. package/dist/uploads/getFileFromUploadInstructions.js +182 -14
  1056. package/dist/uploads/getFileFromUploadInstructions.js.map +1 -1
  1057. package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
  1058. package/dist/uploads/getFileTypeFallback.js +3 -1
  1059. package/dist/uploads/getFileTypeFallback.js.map +1 -1
  1060. package/dist/uploads/getFileTypeIdentity.d.ts +19 -0
  1061. package/dist/uploads/getFileTypeIdentity.d.ts.map +1 -0
  1062. package/dist/uploads/getFileTypeIdentity.js +34 -0
  1063. package/dist/uploads/getFileTypeIdentity.js.map +1 -0
  1064. package/dist/uploads/getImageSize.d.ts +7 -11
  1065. package/dist/uploads/getImageSize.d.ts.map +1 -1
  1066. package/dist/uploads/getImageSize.js +5 -15
  1067. package/dist/uploads/getImageSize.js.map +1 -1
  1068. package/dist/uploads/getRangeRequestInfo.d.ts.map +1 -1
  1069. package/dist/uploads/getRangeRequestInfo.js +1 -1
  1070. package/dist/uploads/getRangeRequestInfo.js.map +1 -1
  1071. package/dist/uploads/hasCropOrResizeEdit.d.ts +7 -0
  1072. package/dist/uploads/hasCropOrResizeEdit.d.ts.map +1 -0
  1073. package/dist/uploads/hasCropOrResizeEdit.js +6 -0
  1074. package/dist/uploads/hasCropOrResizeEdit.js.map +1 -0
  1075. package/dist/uploads/hasFullFileContents.d.ts +13 -0
  1076. package/dist/uploads/hasFullFileContents.d.ts.map +1 -0
  1077. package/dist/uploads/hasFullFileContents.js +12 -0
  1078. package/dist/uploads/hasFullFileContents.js.map +1 -0
  1079. package/dist/uploads/isProcessableImage.d.ts +2 -0
  1080. package/dist/uploads/isProcessableImage.d.ts.map +1 -0
  1081. package/dist/uploads/isProcessableImage.js +7 -0
  1082. package/dist/uploads/isProcessableImage.js.map +1 -0
  1083. package/dist/uploads/parseFilename.d.ts.map +1 -0
  1084. package/dist/uploads/parseFilename.js.map +1 -0
  1085. package/dist/uploads/probeImageSize.d.ts +2 -2
  1086. package/dist/uploads/probeImageSize.js +2 -2
  1087. package/dist/uploads/probeImageSize.js.map +1 -1
  1088. package/dist/uploads/safeFetch.d.ts.map +1 -1
  1089. package/dist/uploads/safeFetch.js +3 -2
  1090. package/dist/uploads/safeFetch.js.map +1 -1
  1091. package/dist/uploads/sanitizeUploadData.d.ts +27 -0
  1092. package/dist/uploads/sanitizeUploadData.d.ts.map +1 -0
  1093. package/dist/uploads/sanitizeUploadData.js +166 -0
  1094. package/dist/uploads/sanitizeUploadData.js.map +1 -0
  1095. package/dist/uploads/stagedUpload.js +1 -1
  1096. package/dist/uploads/stagedUpload.js.map +1 -1
  1097. package/dist/uploads/transformers/createLazySourceGetter.d.ts +15 -0
  1098. package/dist/uploads/transformers/createLazySourceGetter.d.ts.map +1 -0
  1099. package/dist/uploads/transformers/createLazySourceGetter.js +22 -0
  1100. package/dist/uploads/transformers/createLazySourceGetter.js.map +1 -0
  1101. package/dist/uploads/transformers/finalizeFileResponse.d.ts +14 -0
  1102. package/dist/uploads/transformers/finalizeFileResponse.d.ts.map +1 -0
  1103. package/dist/uploads/transformers/finalizeFileResponse.js +49 -0
  1104. package/dist/uploads/transformers/finalizeFileResponse.js.map +1 -0
  1105. package/dist/uploads/transformers/getSourceFileResponse.d.ts +16 -0
  1106. package/dist/uploads/transformers/getSourceFileResponse.d.ts.map +1 -0
  1107. package/dist/uploads/transformers/getSourceFileResponse.js +17 -0
  1108. package/dist/uploads/transformers/getSourceFileResponse.js.map +1 -0
  1109. package/dist/uploads/transformers/handleDynamicFileRequest.d.ts +18 -0
  1110. package/dist/uploads/transformers/handleDynamicFileRequest.d.ts.map +1 -0
  1111. package/dist/uploads/transformers/handleDynamicFileRequest.js +296 -0
  1112. package/dist/uploads/transformers/handleDynamicFileRequest.js.map +1 -0
  1113. package/dist/uploads/transformers/matchesMimeType.d.ts +11 -0
  1114. package/dist/uploads/transformers/matchesMimeType.d.ts.map +1 -0
  1115. package/dist/uploads/transformers/matchesMimeType.js +39 -0
  1116. package/dist/uploads/transformers/matchesMimeType.js.map +1 -0
  1117. package/dist/uploads/transformers/planTransformerPipeline.d.ts +26 -0
  1118. package/dist/uploads/transformers/planTransformerPipeline.d.ts.map +1 -0
  1119. package/dist/uploads/transformers/planTransformerPipeline.js +36 -0
  1120. package/dist/uploads/transformers/planTransformerPipeline.js.map +1 -0
  1121. package/dist/uploads/transformers/resolveUploadDocument.d.ts +51 -0
  1122. package/dist/uploads/transformers/resolveUploadDocument.d.ts.map +1 -0
  1123. package/dist/uploads/transformers/resolveUploadDocument.js +103 -0
  1124. package/dist/uploads/transformers/resolveUploadDocument.js.map +1 -0
  1125. package/dist/uploads/transformers/transformUploadFile.d.ts +18 -0
  1126. package/dist/uploads/transformers/transformUploadFile.d.ts.map +1 -0
  1127. package/dist/uploads/transformers/transformUploadFile.js +30 -0
  1128. package/dist/uploads/transformers/transformUploadFile.js.map +1 -0
  1129. package/dist/uploads/transformers/types.d.ts +71 -0
  1130. package/dist/uploads/transformers/types.d.ts.map +1 -0
  1131. package/dist/uploads/transformers/types.js +6 -0
  1132. package/dist/uploads/transformers/types.js.map +1 -0
  1133. package/dist/uploads/transformers/uploadTransformerBridge.d.ts +48 -0
  1134. package/dist/uploads/transformers/uploadTransformerBridge.d.ts.map +1 -0
  1135. package/dist/uploads/transformers/uploadTransformerBridge.js +22 -0
  1136. package/dist/uploads/transformers/uploadTransformerBridge.js.map +1 -0
  1137. package/dist/uploads/transformers/validateTransformers.d.ts +11 -0
  1138. package/dist/uploads/transformers/validateTransformers.d.ts.map +1 -0
  1139. package/dist/uploads/transformers/validateTransformers.js +67 -0
  1140. package/dist/uploads/transformers/validateTransformers.js.map +1 -0
  1141. package/dist/uploads/transformers/withFileTransformAccessContext.d.ts +13 -0
  1142. package/dist/uploads/transformers/withFileTransformAccessContext.d.ts.map +1 -0
  1143. package/dist/uploads/transformers/withFileTransformAccessContext.js +18 -0
  1144. package/dist/uploads/transformers/withFileTransformAccessContext.js.map +1 -0
  1145. package/dist/uploads/types.d.ts +92 -73
  1146. package/dist/uploads/types.d.ts.map +1 -1
  1147. package/dist/uploads/types.js.map +1 -1
  1148. package/dist/uploads/unlinkTempFiles.d.ts +1 -1
  1149. package/dist/uploads/unlinkTempFiles.d.ts.map +1 -1
  1150. package/dist/uploads/unlinkTempFiles.js +19 -18
  1151. package/dist/uploads/unlinkTempFiles.js.map +1 -1
  1152. package/dist/uploads/uploadContentSecurityPolicy.d.ts +2 -0
  1153. package/dist/uploads/uploadContentSecurityPolicy.d.ts.map +1 -0
  1154. package/dist/uploads/uploadContentSecurityPolicy.js +3 -0
  1155. package/dist/uploads/uploadContentSecurityPolicy.js.map +1 -0
  1156. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  1157. package/dist/uploads/uploadFiles.js +2 -0
  1158. package/dist/uploads/uploadFiles.js.map +1 -1
  1159. package/dist/uploads/validateISOBaseMediaFile.d.ts +4 -0
  1160. package/dist/uploads/validateISOBaseMediaFile.d.ts.map +1 -0
  1161. package/dist/uploads/validateISOBaseMediaFile.js +91 -0
  1162. package/dist/uploads/validateISOBaseMediaFile.js.map +1 -0
  1163. package/dist/uploads/validateSvg.d.ts +10 -4
  1164. package/dist/uploads/validateSvg.d.ts.map +1 -1
  1165. package/dist/uploads/validateSvg.js +280 -40
  1166. package/dist/uploads/validateSvg.js.map +1 -1
  1167. package/dist/uploads/validateUploadFilename.d.ts +3 -0
  1168. package/dist/uploads/validateUploadFilename.d.ts.map +1 -0
  1169. package/dist/uploads/validateUploadFilename.js +13 -0
  1170. package/dist/uploads/validateUploadFilename.js.map +1 -0
  1171. package/dist/utilities/addDataAndFileToRequest.js +3 -1
  1172. package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
  1173. package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
  1174. package/dist/utilities/appendUploadSelectFields.js +4 -3
  1175. package/dist/utilities/appendUploadSelectFields.js.map +1 -1
  1176. package/dist/utilities/assertNoValidationWrite.d.ts +8 -0
  1177. package/dist/utilities/assertNoValidationWrite.d.ts.map +1 -0
  1178. package/dist/utilities/assertNoValidationWrite.js +12 -0
  1179. package/dist/utilities/assertNoValidationWrite.js.map +1 -0
  1180. package/dist/utilities/batchProcessing.d.ts +23 -0
  1181. package/dist/utilities/batchProcessing.d.ts.map +1 -0
  1182. package/dist/utilities/batchProcessing.js +34 -0
  1183. package/dist/utilities/batchProcessing.js.map +1 -0
  1184. package/dist/utilities/canAccessAdmin.d.ts.map +1 -1
  1185. package/dist/utilities/canAccessAdmin.js +1 -0
  1186. package/dist/utilities/canAccessAdmin.js.map +1 -1
  1187. package/dist/utilities/cloneValidationRequest.d.ts +15 -0
  1188. package/dist/utilities/cloneValidationRequest.d.ts.map +1 -0
  1189. package/dist/utilities/cloneValidationRequest.js +153 -0
  1190. package/dist/utilities/cloneValidationRequest.js.map +1 -0
  1191. package/dist/utilities/commitTransaction.d.ts.map +1 -1
  1192. package/dist/utilities/commitTransaction.js +4 -0
  1193. package/dist/utilities/commitTransaction.js.map +1 -1
  1194. package/dist/utilities/configToJSONSchema.js +1 -1
  1195. package/dist/utilities/configToJSONSchema.js.map +1 -1
  1196. package/dist/utilities/createPayloadRequest.d.ts +12 -10
  1197. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  1198. package/dist/utilities/createPayloadRequest.js +98 -81
  1199. package/dist/utilities/createPayloadRequest.js.map +1 -1
  1200. package/dist/utilities/createPayloadRequestFromWebRequest.d.ts +14 -0
  1201. package/dist/utilities/createPayloadRequestFromWebRequest.d.ts.map +1 -0
  1202. package/dist/utilities/createPayloadRequestFromWebRequest.js +95 -0
  1203. package/dist/utilities/createPayloadRequestFromWebRequest.js.map +1 -0
  1204. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  1205. package/dist/utilities/deepCopyObject.js +110 -19
  1206. package/dist/utilities/deepCopyObject.js.map +1 -1
  1207. package/dist/utilities/deepMerge.d.ts +6 -0
  1208. package/dist/utilities/deepMerge.d.ts.map +1 -1
  1209. package/dist/utilities/deepMerge.js +19 -0
  1210. package/dist/utilities/deepMerge.js.map +1 -1
  1211. package/dist/utilities/documentMatchingWhereExists.d.ts +20 -0
  1212. package/dist/utilities/documentMatchingWhereExists.d.ts.map +1 -0
  1213. package/dist/utilities/documentMatchingWhereExists.js +28 -0
  1214. package/dist/utilities/documentMatchingWhereExists.js.map +1 -0
  1215. package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts.map +1 -1
  1216. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js +4 -2
  1217. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js.map +1 -1
  1218. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts +12 -2
  1219. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts.map +1 -1
  1220. package/dist/utilities/entityInputSchema/getEntityInputSchema.js +15 -8
  1221. package/dist/utilities/entityInputSchema/getEntityInputSchema.js.map +1 -1
  1222. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts +8 -1
  1223. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts.map +1 -1
  1224. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js +26 -1
  1225. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js.map +1 -1
  1226. package/dist/utilities/entityInputSchema/types.d.ts +2 -0
  1227. package/dist/utilities/entityInputSchema/types.d.ts.map +1 -1
  1228. package/dist/utilities/entityInputSchema/types.js.map +1 -1
  1229. package/dist/utilities/entityInputSchema/validateEntityData.d.ts.map +1 -1
  1230. package/dist/utilities/entityInputSchema/validateEntityData.js +4 -2
  1231. package/dist/utilities/entityInputSchema/validateEntityData.js.map +1 -1
  1232. package/dist/utilities/fieldPath.d.ts +13 -0
  1233. package/dist/utilities/fieldPath.d.ts.map +1 -0
  1234. package/dist/utilities/fieldPath.js +51 -0
  1235. package/dist/utilities/fieldPath.js.map +1 -0
  1236. package/dist/utilities/fieldValueExists.d.ts +2 -15
  1237. package/dist/utilities/fieldValueExists.d.ts.map +1 -1
  1238. package/dist/utilities/fieldValueExists.js +6 -18
  1239. package/dist/utilities/fieldValueExists.js.map +1 -1
  1240. package/dist/utilities/flattenAllFields.js +1 -1
  1241. package/dist/utilities/flattenAllFields.js.map +1 -1
  1242. package/dist/utilities/flattenDataByLocale.d.ts +18 -0
  1243. package/dist/utilities/flattenDataByLocale.d.ts.map +1 -0
  1244. package/dist/utilities/flattenDataByLocale.js +171 -0
  1245. package/dist/utilities/flattenDataByLocale.js.map +1 -0
  1246. package/dist/utilities/formatAdminURL.d.ts +1 -0
  1247. package/dist/utilities/formatAdminURL.d.ts.map +1 -1
  1248. package/dist/utilities/formatAdminURL.js +22 -4
  1249. package/dist/utilities/formatAdminURL.js.map +1 -1
  1250. package/dist/utilities/formatErrors.d.ts.map +1 -1
  1251. package/dist/utilities/formatErrors.js +11 -1
  1252. package/dist/utilities/formatErrors.js.map +1 -1
  1253. package/dist/utilities/getAccessOperationRequest.d.ts +10 -0
  1254. package/dist/utilities/getAccessOperationRequest.d.ts.map +1 -0
  1255. package/dist/utilities/getAccessOperationRequest.js +11 -0
  1256. package/dist/utilities/getAccessOperationRequest.js.map +1 -0
  1257. package/dist/utilities/getEntityPermissions/entityDocExists.d.ts.map +1 -1
  1258. package/dist/utilities/getEntityPermissions/entityDocExists.js +36 -5
  1259. package/dist/utilities/getEntityPermissions/entityDocExists.js.map +1 -1
  1260. package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
  1261. package/dist/utilities/getEntityPermissions/getEntityPermissions.js +8 -2
  1262. package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
  1263. package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts.map +1 -1
  1264. package/dist/utilities/getEntityPermissions/populateFieldPermissions.js +9 -2
  1265. package/dist/utilities/getEntityPermissions/populateFieldPermissions.js.map +1 -1
  1266. package/dist/utilities/getFieldPermissions.d.ts +1 -1
  1267. package/dist/utilities/getFieldPermissions.d.ts.map +1 -1
  1268. package/dist/utilities/getFieldPermissions.js +3 -1
  1269. package/dist/utilities/getFieldPermissions.js.map +1 -1
  1270. package/dist/utilities/getNextVersion.d.ts +3 -0
  1271. package/dist/utilities/getNextVersion.d.ts.map +1 -1
  1272. package/dist/utilities/getNextVersion.js +3 -0
  1273. package/dist/utilities/getNextVersion.js.map +1 -1
  1274. package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
  1275. package/dist/utilities/getObjectDotNotation.js +7 -1
  1276. package/dist/utilities/getObjectDotNotation.js.map +1 -1
  1277. package/dist/utilities/getTopLevelFieldNames.d.ts +2 -0
  1278. package/dist/utilities/getTopLevelFieldNames.d.ts.map +1 -0
  1279. package/dist/utilities/getTopLevelFieldNames.js +3 -0
  1280. package/dist/utilities/getTopLevelFieldNames.js.map +1 -0
  1281. package/dist/utilities/getVersionsConfig.d.ts +4 -0
  1282. package/dist/utilities/getVersionsConfig.d.ts.map +1 -1
  1283. package/dist/utilities/getVersionsConfig.js +5 -0
  1284. package/dist/utilities/getVersionsConfig.js.map +1 -1
  1285. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  1286. package/dist/utilities/handleEndpoints.js +9 -8
  1287. package/dist/utilities/handleEndpoints.js.map +1 -1
  1288. package/dist/utilities/httpStatus.d.ts +16 -0
  1289. package/dist/utilities/httpStatus.d.ts.map +1 -0
  1290. package/dist/utilities/httpStatus.js +16 -0
  1291. package/dist/utilities/httpStatus.js.map +1 -0
  1292. package/dist/utilities/initTransaction.d.ts +3 -0
  1293. package/dist/utilities/initTransaction.d.ts.map +1 -1
  1294. package/dist/utilities/initTransaction.js +4 -0
  1295. package/dist/utilities/initTransaction.js.map +1 -1
  1296. package/dist/utilities/isErrorPublic.d.ts.map +1 -1
  1297. package/dist/utilities/isErrorPublic.js +1 -1
  1298. package/dist/utilities/isErrorPublic.js.map +1 -1
  1299. package/dist/utilities/isValidationErrorPathLocalized.d.ts +20 -0
  1300. package/dist/utilities/isValidationErrorPathLocalized.d.ts.map +1 -0
  1301. package/dist/utilities/isValidationErrorPathLocalized.js +150 -0
  1302. package/dist/utilities/isValidationErrorPathLocalized.js.map +1 -0
  1303. package/dist/utilities/killTransaction.d.ts.map +1 -1
  1304. package/dist/utilities/killTransaction.js +4 -0
  1305. package/dist/utilities/killTransaction.js.map +1 -1
  1306. package/dist/utilities/nextJsDevReloadStrategy.d.ts.map +1 -1
  1307. package/dist/utilities/nextJsDevReloadStrategy.js +11 -2
  1308. package/dist/utilities/nextJsDevReloadStrategy.js.map +1 -1
  1309. package/dist/utilities/parseParams/index.d.ts.map +1 -1
  1310. package/dist/utilities/parseParams/index.js +3 -1
  1311. package/dist/utilities/parseParams/index.js.map +1 -1
  1312. package/dist/utilities/parseValidationLocale.d.ts +9 -0
  1313. package/dist/utilities/parseValidationLocale.d.ts.map +1 -0
  1314. package/dist/utilities/parseValidationLocale.js +30 -0
  1315. package/dist/utilities/parseValidationLocale.js.map +1 -0
  1316. package/dist/utilities/resolvePublishAllLocales.d.ts +13 -0
  1317. package/dist/utilities/resolvePublishAllLocales.d.ts.map +1 -0
  1318. package/dist/utilities/resolvePublishAllLocales.js +10 -0
  1319. package/dist/utilities/resolvePublishAllLocales.js.map +1 -0
  1320. package/dist/utilities/resolveValidationLocales.d.ts +32 -0
  1321. package/dist/utilities/resolveValidationLocales.d.ts.map +1 -0
  1322. package/dist/utilities/resolveValidationLocales.js +74 -0
  1323. package/dist/utilities/resolveValidationLocales.js.map +1 -0
  1324. package/dist/utilities/routeError.d.ts.map +1 -1
  1325. package/dist/utilities/routeError.js +1 -1
  1326. package/dist/utilities/routeError.js.map +1 -1
  1327. package/dist/utilities/runLocaleScopedValidation.d.ts +28 -0
  1328. package/dist/utilities/runLocaleScopedValidation.d.ts.map +1 -0
  1329. package/dist/utilities/runLocaleScopedValidation.js +126 -0
  1330. package/dist/utilities/runLocaleScopedValidation.js.map +1 -0
  1331. package/dist/utilities/runValidationLifecycle.d.ts +41 -0
  1332. package/dist/utilities/runValidationLifecycle.d.ts.map +1 -0
  1333. package/dist/utilities/runValidationLifecycle.js +118 -0
  1334. package/dist/utilities/runValidationLifecycle.js.map +1 -0
  1335. package/dist/utilities/sanitizeUploadPrefix.d.ts +5 -0
  1336. package/dist/utilities/sanitizeUploadPrefix.d.ts.map +1 -0
  1337. package/dist/utilities/sanitizeUploadPrefix.js +18 -0
  1338. package/dist/utilities/sanitizeUploadPrefix.js.map +1 -0
  1339. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js +4 -3
  1340. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js.map +1 -1
  1341. package/dist/utilities/toValidationResult.d.ts +13 -0
  1342. package/dist/utilities/toValidationResult.d.ts.map +1 -0
  1343. package/dist/utilities/toValidationResult.js +20 -0
  1344. package/dist/utilities/toValidationResult.js.map +1 -0
  1345. package/dist/utilities/traverseFields.d.ts.map +1 -1
  1346. package/dist/utilities/traverseFields.js +5 -14
  1347. package/dist/utilities/traverseFields.js.map +1 -1
  1348. package/dist/utilities/unflatten.d.ts.map +1 -1
  1349. package/dist/utilities/unflatten.js +21 -9
  1350. package/dist/utilities/unflatten.js.map +1 -1
  1351. package/dist/versions/allLocalesPublicationStatus.d.ts +38 -0
  1352. package/dist/versions/allLocalesPublicationStatus.d.ts.map +1 -0
  1353. package/dist/versions/allLocalesPublicationStatus.js +57 -0
  1354. package/dist/versions/allLocalesPublicationStatus.js.map +1 -0
  1355. package/dist/versions/drafts/appendVersionToQueryKey.d.ts +1 -0
  1356. package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
  1357. package/dist/versions/drafts/appendVersionToQueryKey.js +5 -9
  1358. package/dist/versions/drafts/appendVersionToQueryKey.js.map +1 -1
  1359. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts +11 -1
  1360. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
  1361. package/dist/versions/drafts/replaceWithDraftIfAvailable.js +28 -6
  1362. package/dist/versions/drafts/replaceWithDraftIfAvailable.js.map +1 -1
  1363. package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
  1364. package/dist/versions/enforceMaxVersions.js +14 -0
  1365. package/dist/versions/enforceMaxVersions.js.map +1 -1
  1366. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  1367. package/dist/versions/getLatestGlobalVersion.js +10 -2
  1368. package/dist/versions/getLatestGlobalVersion.js.map +1 -1
  1369. package/dist/versions/getRestoredStatusesToAuthorize.d.ts +9 -0
  1370. package/dist/versions/getRestoredStatusesToAuthorize.d.ts.map +1 -0
  1371. package/dist/versions/getRestoredStatusesToAuthorize.js +22 -0
  1372. package/dist/versions/getRestoredStatusesToAuthorize.js.map +1 -0
  1373. package/dist/versions/isInheritedReadVersionsAccess.d.ts +6 -0
  1374. package/dist/versions/isInheritedReadVersionsAccess.d.ts.map +1 -0
  1375. package/dist/versions/isInheritedReadVersionsAccess.js +30 -0
  1376. package/dist/versions/isInheritedReadVersionsAccess.js.map +1 -0
  1377. package/dist/versions/saveVersion.d.ts.map +1 -1
  1378. package/dist/versions/saveVersion.js +2 -0
  1379. package/dist/versions/saveVersion.js.map +1 -1
  1380. package/dist/versions/schedule/job.d.ts +2 -2
  1381. package/dist/versions/schedule/job.d.ts.map +1 -1
  1382. package/dist/versions/schedule/job.js +22 -11
  1383. package/dist/versions/schedule/job.js.map +1 -1
  1384. package/dist/versions/schedule/types.d.ts +5 -1
  1385. package/dist/versions/schedule/types.d.ts.map +1 -1
  1386. package/dist/versions/schedule/types.js.map +1 -1
  1387. package/package.json +17 -10
  1388. package/skills/payload/SKILL.md +30 -12
  1389. package/skills/payload/reference/ACCESS-CONTROL-ADVANCED.md +19 -5
  1390. package/skills/payload/reference/ACCESS-CONTROL.md +8 -4
  1391. package/skills/payload/reference/ADAPTERS.md +7 -0
  1392. package/skills/payload/reference/ADVANCED.md +10 -3
  1393. package/skills/payload/reference/COLLECTIONS.md +3 -0
  1394. package/skills/payload/reference/ENDPOINTS.md +16 -0
  1395. package/skills/payload/reference/FIELDS.md +3 -0
  1396. package/skills/payload/reference/PLUGIN-DEVELOPMENT.md +15 -9
  1397. package/skills/payload/reference/QUERIES.md +13 -5
  1398. package/dist/auth/cookies.spec.js +0 -34
  1399. package/dist/auth/cookies.spec.js.map +0 -1
  1400. package/dist/auth/strategies/local/authenticate.spec.js +0 -83
  1401. package/dist/auth/strategies/local/authenticate.spec.js.map +0 -1
  1402. package/dist/cli/commands/build/build.spec.js +0 -582
  1403. package/dist/cli/commands/build/build.spec.js.map +0 -1
  1404. package/dist/cli/commands/generateImportMap/generateImportMap.spec.js +0 -176
  1405. package/dist/cli/commands/generateImportMap/generateImportMap.spec.js.map +0 -1
  1406. package/dist/cli/index.spec.js +0 -402
  1407. package/dist/cli/index.spec.js.map +0 -1
  1408. package/dist/cli/runtime/getCommandInput.spec.js +0 -74
  1409. package/dist/cli/runtime/getCommandInput.spec.js.map +0 -1
  1410. package/dist/collections/config/defaults.spec.js +0 -47
  1411. package/dist/collections/config/defaults.spec.js.map +0 -1
  1412. package/dist/collections/config/sanitize.spec.js +0 -482
  1413. package/dist/collections/config/sanitize.spec.js.map +0 -1
  1414. package/dist/collections/config/useAsTitle.spec.js +0 -187
  1415. package/dist/collections/config/useAsTitle.spec.js.map +0 -1
  1416. package/dist/config/client.spec.js +0 -20
  1417. package/dist/config/client.spec.js.map +0 -1
  1418. package/dist/config/sanitize.spec.js +0 -105
  1419. package/dist/config/sanitize.spec.js.map +0 -1
  1420. package/dist/database/migrations/findMigrationDir.spec.js +0 -47
  1421. package/dist/database/migrations/findMigrationDir.spec.js.map +0 -1
  1422. package/dist/fields/config/reservedFieldNames.spec.js +0 -149
  1423. package/dist/fields/config/reservedFieldNames.spec.js.map +0 -1
  1424. package/dist/fields/config/sanitize.spec.js +0 -745
  1425. package/dist/fields/config/sanitize.spec.js.map +0 -1
  1426. package/dist/fields/isFieldDisabled.spec.js +0 -134
  1427. package/dist/fields/isFieldDisabled.spec.js.map +0 -1
  1428. package/dist/fields/validations.spec.js +0 -1236
  1429. package/dist/fields/validations.spec.js.map +0 -1
  1430. package/dist/globals/config/sanitize.spec.js +0 -262
  1431. package/dist/globals/config/sanitize.spec.js.map +0 -1
  1432. package/dist/hierarchy/utils/getLocalizedValue.spec.js +0 -250
  1433. package/dist/hierarchy/utils/getLocalizedValue.spec.js.map +0 -1
  1434. package/dist/locked-documents/config.spec.js +0 -298
  1435. package/dist/locked-documents/config.spec.js.map +0 -1
  1436. package/dist/uploads/checkFileAccess.spec.js +0 -109
  1437. package/dist/uploads/checkFileAccess.spec.js.map +0 -1
  1438. package/dist/uploads/cropImage.d.ts +0 -30
  1439. package/dist/uploads/cropImage.d.ts.map +0 -1
  1440. package/dist/uploads/cropImage.js +0 -55
  1441. package/dist/uploads/cropImage.js.map +0 -1
  1442. package/dist/uploads/cropImage.spec.js +0 -71
  1443. package/dist/uploads/cropImage.spec.js.map +0 -1
  1444. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js +0 -57
  1445. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js.map +0 -1
  1446. package/dist/uploads/generateFileData.spec.js +0 -207
  1447. package/dist/uploads/generateFileData.spec.js.map +0 -1
  1448. package/dist/uploads/generateFileData.tempFileBuffering.spec.js +0 -81
  1449. package/dist/uploads/generateFileData.tempFileBuffering.spec.js.map +0 -1
  1450. package/dist/uploads/getFileContentRequirement.spec.js +0 -125
  1451. package/dist/uploads/getFileContentRequirement.spec.js.map +0 -1
  1452. package/dist/uploads/getFileFromUploadInstructions.spec.js +0 -387
  1453. package/dist/uploads/getFileFromUploadInstructions.spec.js.map +0 -1
  1454. package/dist/uploads/getImageSize.spec.js +0 -298
  1455. package/dist/uploads/getImageSize.spec.js.map +0 -1
  1456. package/dist/uploads/getSafeFilename.spec.js +0 -274
  1457. package/dist/uploads/getSafeFilename.spec.js.map +0 -1
  1458. package/dist/uploads/image-resizing/createImageSize.d.ts +0 -24
  1459. package/dist/uploads/image-resizing/createImageSize.d.ts.map +0 -1
  1460. package/dist/uploads/image-resizing/createImageSize.js +0 -23
  1461. package/dist/uploads/image-resizing/createImageSize.js.map +0 -1
  1462. package/dist/uploads/image-resizing/createImageSizes.d.ts +0 -39
  1463. package/dist/uploads/image-resizing/createImageSizes.d.ts.map +0 -1
  1464. package/dist/uploads/image-resizing/createImageSizes.js +0 -205
  1465. package/dist/uploads/image-resizing/createImageSizes.js.map +0 -1
  1466. package/dist/uploads/image-resizing/createImageSizes.spec.js +0 -80
  1467. package/dist/uploads/image-resizing/createImageSizes.spec.js.map +0 -1
  1468. package/dist/uploads/image-resizing/extractHeightFromImage.d.ts +0 -9
  1469. package/dist/uploads/image-resizing/extractHeightFromImage.d.ts.map +0 -1
  1470. package/dist/uploads/image-resizing/extractHeightFromImage.js +0 -13
  1471. package/dist/uploads/image-resizing/extractHeightFromImage.js.map +0 -1
  1472. package/dist/uploads/image-resizing/generateImageSizeFilename.d.ts.map +0 -1
  1473. package/dist/uploads/image-resizing/generateImageSizeFilename.js.map +0 -1
  1474. package/dist/uploads/image-resizing/getImageResizeAction.d.ts +0 -24
  1475. package/dist/uploads/image-resizing/getImageResizeAction.d.ts.map +0 -1
  1476. package/dist/uploads/image-resizing/getImageResizeAction.js +0 -56
  1477. package/dist/uploads/image-resizing/getImageResizeAction.js.map +0 -1
  1478. package/dist/uploads/image-resizing/parseFilename.d.ts.map +0 -1
  1479. package/dist/uploads/image-resizing/parseFilename.js.map +0 -1
  1480. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts +0 -11
  1481. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts.map +0 -1
  1482. package/dist/uploads/image-resizing/sanitizeResizeConfig.js +0 -20
  1483. package/dist/uploads/image-resizing/sanitizeResizeConfig.js.map +0 -1
  1484. package/dist/uploads/isAnimatedImage.spec.js +0 -19
  1485. package/dist/uploads/isAnimatedImage.spec.js.map +0 -1
  1486. package/dist/uploads/matchMimeType.spec.js +0 -66
  1487. package/dist/uploads/matchMimeType.spec.js.map +0 -1
  1488. package/dist/uploads/mimeTypeValidator.spec.js +0 -84
  1489. package/dist/uploads/mimeTypeValidator.spec.js.map +0 -1
  1490. package/dist/uploads/optionallyAppendMetadata.d.ts +0 -12
  1491. package/dist/uploads/optionallyAppendMetadata.d.ts.map +0 -1
  1492. package/dist/uploads/optionallyAppendMetadata.js +0 -17
  1493. package/dist/uploads/optionallyAppendMetadata.js.map +0 -1
  1494. package/dist/uploads/probeImageSize.spec.js +0 -366
  1495. package/dist/uploads/probeImageSize.spec.js.map +0 -1
  1496. package/dist/uploads/unlinkTempFiles.spec.js +0 -71
  1497. package/dist/uploads/unlinkTempFiles.spec.js.map +0 -1
  1498. package/dist/uploads/uploadFiles.spec.js +0 -44
  1499. package/dist/uploads/uploadFiles.spec.js.map +0 -1
  1500. package/dist/utilities/addDataAndFileToRequest.spec.js +0 -41
  1501. package/dist/utilities/addDataAndFileToRequest.spec.js.map +0 -1
  1502. package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js +0 -563
  1503. package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js.map +0 -1
  1504. package/dist/utilities/combineWhereConstraints.spec.js +0 -131
  1505. package/dist/utilities/combineWhereConstraints.spec.js.map +0 -1
  1506. package/dist/utilities/configToJSONSchema.spec.js +0 -1162
  1507. package/dist/utilities/configToJSONSchema.spec.js.map +0 -1
  1508. package/dist/utilities/createLocalReq.d.ts +0 -15
  1509. package/dist/utilities/createLocalReq.d.ts.map +0 -1
  1510. package/dist/utilities/createLocalReq.js +0 -110
  1511. package/dist/utilities/createLocalReq.js.map +0 -1
  1512. package/dist/utilities/createLocalReq.spec.js +0 -125
  1513. package/dist/utilities/createLocalReq.spec.js.map +0 -1
  1514. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.spec.js +0 -133
  1515. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.spec.js.map +0 -1
  1516. package/dist/utilities/filterDataToSelectedLocales.spec.js +0 -529
  1517. package/dist/utilities/filterDataToSelectedLocales.spec.js.map +0 -1
  1518. package/dist/utilities/flattenTopLevelFields.spec.js +0 -659
  1519. package/dist/utilities/flattenTopLevelFields.spec.js.map +0 -1
  1520. package/dist/utilities/formatAdminURL.spec.js +0 -168
  1521. package/dist/utilities/formatAdminURL.spec.js.map +0 -1
  1522. package/dist/utilities/formatErrors.spec.js +0 -101
  1523. package/dist/utilities/formatErrors.spec.js.map +0 -1
  1524. package/dist/utilities/formatLabels.spec.js +0 -38
  1525. package/dist/utilities/formatLabels.spec.js.map +0 -1
  1526. package/dist/utilities/getFieldByPath.spec.js +0 -157
  1527. package/dist/utilities/getFieldByPath.spec.js.map +0 -1
  1528. package/dist/utilities/getFieldPermissions.spec.js +0 -78
  1529. package/dist/utilities/getFieldPermissions.spec.js.map +0 -1
  1530. package/dist/utilities/getNextVersion.spec.js +0 -16
  1531. package/dist/utilities/getNextVersion.spec.js.map +0 -1
  1532. package/dist/utilities/getRequestOrigin.spec.js +0 -151
  1533. package/dist/utilities/getRequestOrigin.spec.js.map +0 -1
  1534. package/dist/utilities/getSafeRedirect.spec.js +0 -178
  1535. package/dist/utilities/getSafeRedirect.spec.js.map +0 -1
  1536. package/dist/utilities/isURLAllowed.spec.js +0 -78
  1537. package/dist/utilities/isURLAllowed.spec.js.map +0 -1
  1538. package/dist/utilities/isolateObjectProperty.spec.js +0 -120
  1539. package/dist/utilities/isolateObjectProperty.spec.js.map +0 -1
  1540. package/dist/utilities/mergeLocalizedData.spec.js +0 -1108
  1541. package/dist/utilities/mergeLocalizedData.spec.js.map +0 -1
  1542. package/dist/utilities/nextJsDevReloadStrategy.spec.js +0 -123
  1543. package/dist/utilities/nextJsDevReloadStrategy.spec.js.map +0 -1
  1544. package/dist/utilities/optionsAreEqual.spec.js +0 -319
  1545. package/dist/utilities/optionsAreEqual.spec.js.map +0 -1
  1546. package/dist/utilities/parseParams/index.spec.js +0 -384
  1547. package/dist/utilities/parseParams/index.spec.js.map +0 -1
  1548. package/dist/utilities/profiling.spec.js +0 -53
  1549. package/dist/utilities/profiling.spec.js.map +0 -1
  1550. package/dist/utilities/sanitizePermissions.spec.js +0 -1639
  1551. package/dist/utilities/sanitizePermissions.spec.js.map +0 -1
  1552. package/dist/utilities/sanitizeUserDataForEmail.spec.js +0 -134
  1553. package/dist/utilities/sanitizeUserDataForEmail.spec.js.map +0 -1
  1554. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.spec.js +0 -117
  1555. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.spec.js.map +0 -1
  1556. package/dist/utilities/telemetry/index.spec.js +0 -43
  1557. package/dist/utilities/telemetry/index.spec.js.map +0 -1
  1558. package/dist/utilities/traverseFields.spec.js +0 -165
  1559. package/dist/utilities/traverseFields.spec.js.map +0 -1
  1560. package/dist/utilities/validateTimezones.spec.js +0 -493
  1561. package/dist/utilities/validateTimezones.spec.js.map +0 -1
  1562. package/dist/versions/drafts/appendVersionToQueryKey.spec.js +0 -28
  1563. package/dist/versions/drafts/appendVersionToQueryKey.spec.js.map +0 -1
  1564. /package/dist/uploads/{image-resizing/generateImageSizeFilename.d.ts → generateImageSizeFilename.d.ts} +0 -0
  1565. /package/dist/uploads/{image-resizing/generateImageSizeFilename.js → generateImageSizeFilename.js} +0 -0
  1566. /package/dist/uploads/{image-resizing/parseFilename.d.ts → parseFilename.d.ts} +0 -0
  1567. /package/dist/uploads/{image-resizing/parseFilename.js → parseFilename.js} +0 -0
package/bin.js CHANGED
@@ -21,7 +21,7 @@ if (disableTranspile) {
21
21
  await bin()
22
22
  }
23
23
 
24
- void start()
24
+ await start()
25
25
  } else {
26
26
  const filename = fileURLToPath(import.meta.url)
27
27
  const dirname = path.dirname(filename)
@@ -29,17 +29,6 @@ if (disableTranspile) {
29
29
 
30
30
  if (!useSwc) {
31
31
  const start = async () => {
32
- // tsx 4.22.4 uses Node's synchronous `module.registerHooks` API when it is available
33
- // (Node v23.5+). On those versions that code path leaks tsx's internal `?namespace=...`
34
- // query string onto resolved specifiers — including Node built-ins like `node:crypto` —
35
- // which Node then tries to open as a file, failing with ENOENT. Removing `registerHooks`
36
- // forces tsx to fall back to its older async `module.register()` worker path, which does
37
- // not have this bug. See https://github.com/payloadcms/payload/issues/16949
38
- const nodeModule = await import('node:module')
39
- if (typeof nodeModule.default.registerHooks === 'function') {
40
- nodeModule.default.registerHooks = undefined
41
- }
42
-
43
32
  // Use tsx
44
33
  let tsImport = (await import('tsx/esm/api')).tsImport
45
34
 
@@ -47,7 +36,7 @@ if (disableTranspile) {
47
36
  await bin()
48
37
  }
49
38
 
50
- void start()
39
+ await start()
51
40
  } else if (useSwc) {
52
41
  const { register } = await import('node:module')
53
42
 
@@ -64,6 +53,6 @@ if (disableTranspile) {
64
53
  await bin()
65
54
  }
66
55
 
67
- void start()
56
+ await start()
68
57
  }
69
58
  }
@@ -6,7 +6,7 @@ import type { ValidationFieldError } from '../errors/ValidationError.js';
6
6
  import type { FieldAffectingData, RichTextField, RichTextFieldClient, Validate } from '../fields/config/types.js';
7
7
  import type { SanitizedGlobalConfig } from '../globals/config/types.js';
8
8
  import type { RequestContext, TypedFallbackLocale } from '../index.js';
9
- import type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js';
9
+ import type { BeforeValidateOperation, FieldOperation, JsonObject, PayloadRequest, PopulateType } from '../types/index.js';
10
10
  import type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js';
11
11
  import type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js';
12
12
  import type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js';
@@ -41,7 +41,7 @@ export type AfterChangeRichTextHookArgs<TData extends TypeWithID = any, TValue =
41
41
  };
42
42
  export type BeforeValidateRichTextHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
43
43
  /** A string relating to which operation the field type is currently executing within. */
44
- operation: 'create' | 'update';
44
+ operation: BeforeValidateOperation;
45
45
  overrideAccess?: boolean;
46
46
  /** The sibling data of the document before changes being applied. */
47
47
  previousSiblingDoc?: TSiblingData;
@@ -64,7 +64,7 @@ export type BeforeChangeRichTextHookArgs<TData extends TypeWithID = any, TValue
64
64
  /** Only available in `beforeChange` field hooks */
65
65
  mergeLocaleActions?: (() => Promise<void> | void)[];
66
66
  /** A string relating to which operation the field type is currently executing within. */
67
- operation?: 'create' | 'delete' | 'read' | 'update';
67
+ operation?: FieldOperation;
68
68
  overrideAccess: boolean;
69
69
  /** The sibling data of the document before changes being applied. */
70
70
  previousSiblingDoc?: TSiblingData;
@@ -116,6 +116,15 @@ export type RichTextHooks = {
116
116
  beforeValidate?: BeforeValidateRichTextHook[];
117
117
  };
118
118
  type RichTextAdapterBase<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = {
119
+ /** Convert between stored editor data and Markdown using the editor's configured features. */
120
+ converters?: {
121
+ fromMarkdown?: (args: {
122
+ markdown: string;
123
+ }) => Value;
124
+ toMarkdown?: (args: {
125
+ data: Value;
126
+ }) => string;
127
+ };
119
128
  /**
120
129
  * Provide a function that can be used to add items to the import map. This is useful for
121
130
  * making modules available to the client.
@@ -167,6 +176,14 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
167
176
  field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
168
177
  isRequired: boolean;
169
178
  } & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions' | 'variant'>) => JSONSchema4;
179
+ /** Editors configured for specific uses, initialized independently from this editor. */
180
+ presets?: {
181
+ /**
182
+ * Editor to use for LLM instructions collection, with both Markdown converters.
183
+ * This provider should select its own features without inheriting unrestricted root features.
184
+ */
185
+ llmInstructions?: MarkdownRichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>;
186
+ };
170
187
  /**
171
188
  * Provide validation function for the richText field. This function is run the same way
172
189
  * as other field validation functions.
@@ -200,5 +217,10 @@ export type RichTextAdapterProvider<Value extends object = object, AdapterProps
200
217
  isRoot?: boolean;
201
218
  parentIsLocalized: boolean;
202
219
  }) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
220
+ /** A rich-text adapter that supports conversion to and from Markdown. */
221
+ export type MarkdownRichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldProperties = any> = {
222
+ converters: Required<NonNullable<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>['converters']>>;
223
+ } & RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
224
+ export type MarkdownRichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = (args: Parameters<RichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>>[0]) => MarkdownRichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
203
225
  export {};
204
226
  //# sourceMappingURL=RichText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/admin/RichText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACT,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACjF,OAAO,KAAK,E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,EAC7B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CAAC,EACH,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,EAAE;IACD,MAAM,EAAE,eAAe,CAAA;IACvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KAAK,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAEhE,yEAAyE;AACzE,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,MAAM,GAAG,GAAG,EAC1B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,GAAG,IACxB;IACF,UAAU,EAAE,QAAQ,CAClB,WAAW,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,YAAY,CAAC,CAAC,CACtF,CAAA;CACF,GAAG,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAE9D,MAAM,MAAM,+BAA+B,CACzC,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CACF,IAAI,EAAE,UAAU,CAAC,uBAAuB,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,KACpF,uBAAuB,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n jsonSchema?: (\n args: {\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n isRequired: boolean\n } & Pick<\n FieldsToJSONSchemaArgs,\n | 'collectionIDFieldTypes'\n | 'config'\n | 'i18n'\n | 'interfaceNameDefinitions'\n | 'typeStringDefinitions'\n | 'variant'\n >,\n ) => JSONSchema4\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GA8SrD,WAkBgE"}
1
+ {"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { I18n } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { ImportMapGenerators, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext, TypedFallbackLocale } from '../index.js'\nimport type {\n BeforeValidateOperation,\n FieldOperation,\n JsonObject,\n PayloadRequest,\n PopulateType,\n} from '../types/index.js'\nimport type { FieldsToJSONSchemaArgs } from '../utilities/configToJSONSchema.js'\nimport type { RichTextFieldClientProps, RichTextFieldServerProps } from './fields/RichText.js'\nimport type { FieldDiffClientProps, FieldDiffServerProps, FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TValue = any,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: TypedFallbackLocale\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeValidateRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: BeforeValidateOperation\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /**\n * Built up field label\n *\n * @example \"Group Field > Tab Field > Rich Text Field\"\n */\n fieldLabelPath: string\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void> | void)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: FieldOperation\n overrideAccess: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TSiblingData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n indexPath: number[]\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n parentIsLocalized: boolean\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\n\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n /** Convert between stored editor data and Markdown using the editor's configured features. */\n converters?: {\n fromMarkdown?: (args: { markdown: string }) => Value\n toMarkdown?: (args: { data: Value }) => string\n }\n /**\n * Provide a function that can be used to add items to the import map. This is useful for\n * making modules available to the client.\n */\n generateImportMap?: ImportMapGenerators[0]\n /**\n * Provide a function that can be used to add items to the schema map. This is useful for\n * richtext sub-fields the server needs to \"know\" about in order to do things like calculate form state.\n *\n * This function is run within `buildFieldSchemaMap`.\n */\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n parentIsLocalized: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n /**\n * Return the JSON schema for the field value. The JSON schema is read by\n * `json-schema-to-typescript` which is used to generate types for this richtext field\n * payload-types.ts)\n */\n jsonSchema?: (\n args: {\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n isRequired: boolean\n } & Pick<\n FieldsToJSONSchemaArgs,\n | 'collectionIDFieldTypes'\n | 'config'\n | 'i18n'\n | 'interfaceNameDefinitions'\n | 'typeStringDefinitions'\n | 'variant'\n >,\n ) => JSONSchema4\n /** Editors configured for specific uses, initialized independently from this editor. */\n presets?: {\n /**\n * Editor to use for LLM instructions collection, with both Markdown converters.\n * This provider should select its own features without inheriting unrestricted root features.\n */\n llmInstructions?: MarkdownRichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>\n }\n /**\n * Provide validation function for the richText field. This function is run the same way\n * as other field validation functions.\n */\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n /**\n * Component that will be displayed in the list view. Can be typed as\n * `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.\n */\n CellComponent: PayloadComponent<never>\n /**\n * Component that will be displayed in the version diff view.\n * If not provided, richtext content will be diffed as JSON.\n */\n DiffComponent?: PayloadComponent<\n FieldDiffServerProps<RichTextField, RichTextFieldClient>,\n FieldDiffClientProps<RichTextFieldClient>\n >\n /**\n * Component that will be displayed in the edit view.\n */\n FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the top-level `editor` property\n * of the Payload Config.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) => RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n\n/** A rich-text adapter that supports conversion to and from Markdown. */\nexport type MarkdownRichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n converters: Required<\n NonNullable<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>['converters']>\n >\n} & RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n\nexport type MarkdownRichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = (\n args: Parameters<RichTextAdapterProvider<Value, AdapterProps, ExtraFieldProperties>>[0],\n) => MarkdownRichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAAA,qDAAqD,GAgWrD,WAMuE"}
@@ -1,9 +1,9 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
2
  import type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js';
3
3
  import type { ArrayFieldValidation } from '../../fields/validations.js';
4
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
6
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
4
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
5
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
6
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
7
7
  type ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>;
8
8
  type ArrayFieldBaseClientProps = {
9
9
  readonly validate?: ArrayFieldValidation;
@@ -11,15 +11,13 @@ type ArrayFieldBaseClientProps = {
11
11
  type ArrayFieldBaseServerProps = Pick<FieldPaths, 'path'>;
12
12
  export type ArrayFieldClientProps = ArrayFieldBaseClientProps & ClientFieldBase<ArrayFieldClientWithoutType>;
13
13
  export type ArrayFieldServerProps = ArrayFieldBaseServerProps & ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>;
14
- export type ArrayFieldServerComponent = FieldServerComponent<ArrayField, ArrayFieldClientWithoutType, ArrayFieldBaseServerProps>;
15
- export type ArrayFieldClientComponent = FieldClientComponent<ArrayFieldClientWithoutType, ArrayFieldBaseClientProps>;
16
- export type ArrayFieldLabelServerComponent = FieldLabelServerComponent<ArrayField, ArrayFieldClientWithoutType>;
17
- export type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>;
18
- export type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField, ArrayFieldClientWithoutType>;
19
- export type ArrayFieldDescriptionClientComponent = FieldDescriptionClientComponent<ArrayFieldClientWithoutType>;
20
- export type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField, ArrayFieldClientWithoutType>;
21
- export type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>;
22
- export type ArrayFieldDiffServerComponent = FieldDiffServerComponent<ArrayField, ArrayFieldClient>;
23
- export type ArrayFieldDiffClientComponent = FieldDiffClientComponent<ArrayFieldClient>;
14
+ export type ArrayFieldLabelServerProps = FieldLabelServerProps<ArrayField, ArrayFieldClientWithoutType>;
15
+ export type ArrayFieldLabelClientProps = FieldLabelClientProps<ArrayFieldClientWithoutType>;
16
+ export type ArrayFieldDescriptionServerProps = FieldDescriptionServerProps<ArrayField, ArrayFieldClientWithoutType>;
17
+ export type ArrayFieldDescriptionClientProps = FieldDescriptionClientProps<ArrayFieldClientWithoutType>;
18
+ export type ArrayFieldErrorServerProps = FieldErrorServerProps<ArrayField, ArrayFieldClientWithoutType>;
19
+ export type ArrayFieldErrorClientProps = FieldErrorClientProps<ArrayFieldClientWithoutType>;
20
+ export type ArrayFieldDiffServerProps = FieldDiffServerProps<ArrayField, ArrayFieldClient>;
21
+ export type ArrayFieldDiffClientProps = FieldDiffClientProps<ArrayFieldClient>;
24
22
  export {};
25
23
  //# sourceMappingURL=Array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Array.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,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,2BAA2B,GAAG,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;AAEzE,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,UAAU,CAAA;AAEd,KAAK,yBAAyB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;AAEzD,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GAC3D,eAAe,CAAC,2BAA2B,CAAC,CAAA;AAE9C,MAAM,MAAM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"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 ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\ntype ArrayFieldBaseClientProps = {\n readonly validate?: ArrayFieldValidation\n} & FieldPaths\n\ntype ArrayFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type ArrayFieldClientProps = ArrayFieldBaseClientProps &\n ClientFieldBase<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerProps = ArrayFieldBaseServerProps &\n ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerComponent = FieldServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType,\n ArrayFieldBaseServerProps\n>\n\nexport type ArrayFieldClientComponent = FieldClientComponent<\n ArrayFieldClientWithoutType,\n ArrayFieldBaseClientProps\n>\n\nexport type ArrayFieldLabelServerComponent = FieldLabelServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerComponent = FieldErrorServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDiffServerComponent = FieldDiffServerComponent<ArrayField, ArrayFieldClient>\nexport type ArrayFieldDiffClientComponent = FieldDiffClientComponent<ArrayFieldClient>\n"],"names":[],"mappings":"AAmEA,WAAsF"}
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 { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\ntype ArrayFieldBaseClientProps = {\n readonly validate?: ArrayFieldValidation\n} & FieldPaths\n\ntype ArrayFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type ArrayFieldClientProps = ArrayFieldBaseClientProps &\n ClientFieldBase<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerProps = ArrayFieldBaseServerProps &\n ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>\nexport type ArrayFieldLabelServerProps = FieldLabelServerProps<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldLabelClientProps = FieldLabelClientProps<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerProps = FieldDescriptionServerProps<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldDescriptionClientProps =\n FieldDescriptionClientProps<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerProps = FieldErrorServerProps<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldErrorClientProps = FieldErrorClientProps<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDiffServerProps = FieldDiffServerProps<ArrayField, ArrayFieldClient>\nexport type ArrayFieldDiffClientProps = FieldDiffClientProps<ArrayFieldClient>\n"],"names":[],"mappings":"AAiDA,WAA8E"}
@@ -1,10 +1,9 @@
1
- import type React from 'react';
2
1
  import type { MarkOptional } from 'ts-essentials';
3
2
  import type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js';
4
3
  import type { BlocksFieldValidation } from '../../fields/validations.js';
5
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
6
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
7
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
4
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
5
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
6
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
8
7
  type BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>;
9
8
  type BlocksFieldBaseClientProps = {
10
9
  readonly validate?: BlocksFieldValidation;
@@ -12,22 +11,20 @@ type BlocksFieldBaseClientProps = {
12
11
  type BlocksFieldBaseServerProps = Pick<FieldPaths, 'path'>;
13
12
  export type BlocksFieldClientProps = BlocksFieldBaseClientProps & ClientFieldBase<BlocksFieldClientWithoutType>;
14
13
  export type BlocksFieldServerProps = BlocksFieldBaseServerProps & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>;
15
- export type BlocksFieldServerComponent = FieldServerComponent<BlocksField, BlocksFieldClientWithoutType, BlocksFieldBaseServerProps>;
16
- export type BlocksFieldClientComponent = FieldClientComponent<BlocksFieldClientWithoutType, BlocksFieldBaseClientProps>;
17
- export type BlocksFieldLabelServerComponent = FieldLabelServerComponent<BlocksField, BlocksFieldClientWithoutType>;
18
- export type BlocksFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>;
14
+ export type BlocksFieldLabelServerProps = FieldLabelServerProps<BlocksField, BlocksFieldClientWithoutType>;
15
+ export type BlocksFieldLabelClientProps = FieldLabelClientProps<BlocksFieldClientWithoutType>;
19
16
  type BlockRowLabelBase = {
20
17
  blockType: string;
21
18
  rowLabel: string;
22
19
  rowNumber: number;
23
20
  };
24
- export type BlockRowLabelClientComponent = React.ComponentType<BlockRowLabelBase & ClientFieldBase<BlocksFieldClientWithoutType>>;
25
- export type BlockRowLabelServerComponent = React.ComponentType<BlockRowLabelBase & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>>;
26
- export type BlocksFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlocksField, BlocksFieldClientWithoutType>;
27
- export type BlocksFieldDescriptionClientComponent = FieldDescriptionClientComponent<BlocksFieldClientWithoutType>;
28
- export type BlocksFieldErrorServerComponent = FieldErrorServerComponent<BlocksField, BlocksFieldClientWithoutType>;
29
- export type BlocksFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>;
30
- export type BlocksFieldDiffServerComponent = FieldDiffServerComponent<BlocksField, BlocksFieldClient>;
31
- export type BlocksFieldDiffClientComponent = FieldDiffClientComponent<BlocksFieldClient>;
21
+ export type BlockRowLabelClientProps = BlockRowLabelBase & ClientFieldBase<BlocksFieldClientWithoutType>;
22
+ export type BlockRowLabelServerProps = BlockRowLabelBase & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>;
23
+ export type BlocksFieldDescriptionServerProps = FieldDescriptionServerProps<BlocksField, BlocksFieldClientWithoutType>;
24
+ export type BlocksFieldDescriptionClientProps = FieldDescriptionClientProps<BlocksFieldClientWithoutType>;
25
+ export type BlocksFieldErrorServerProps = FieldErrorServerProps<BlocksField, BlocksFieldClientWithoutType>;
26
+ export type BlocksFieldErrorClientProps = FieldErrorClientProps<BlocksFieldClientWithoutType>;
27
+ export type BlocksFieldDiffServerProps = FieldDiffServerProps<BlocksField, BlocksFieldClient>;
28
+ export type BlocksFieldDiffClientProps = FieldDiffClientProps<BlocksFieldClient>;
32
29
  export {};
33
30
  //# sourceMappingURL=Blocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,4BAA4B,GAAG,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;AAE3E,KAAK,0BAA0B,GAAG;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;CAC1C,GAAG,UAAU,CAAA;AAEd,KAAK,0BAA0B,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;AAE1D,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAC7D,eAAe,CAAC,4BAA4B,CAAC,CAAA;AAE/C,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAC7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AiB,GACtD,eAAe,CAAC,4BAA4B,CAAC,CAAA;AAE/C,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,GACtD,eAAe,CAAC,WAAW,EAAE,4BAA4B,CAAC,CAAA;AAE5D,MAAM,MAAM,iCAAiC,GAAG,2BAA2B,CACzE,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC3C,2BAA2B,CAAC,4BAA4B,CAAC,CAAA;AAE3D,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAC7D,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,4BAA4B,CAAC,CAAA;AAE7F,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAA;AAE7F,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js'\nimport type { BlocksFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>\n\ntype BlocksFieldBaseClientProps = {\n readonly validate?: BlocksFieldValidation\n} & FieldPaths\n\ntype BlocksFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type BlocksFieldClientProps = BlocksFieldBaseClientProps &\n ClientFieldBase<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerProps = BlocksFieldBaseServerProps &\n ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerComponent = FieldServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType,\n BlocksFieldBaseServerProps\n>\n\nexport type BlocksFieldClientComponent = FieldClientComponent<\n BlocksFieldClientWithoutType,\n BlocksFieldBaseClientProps\n>\n\nexport type BlocksFieldLabelServerComponent = FieldLabelServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldLabelClientComponent =\n FieldLabelClientComponent<BlocksFieldClientWithoutType>\n\ntype BlockRowLabelBase = {\n blockType: string\n rowLabel: string\n rowNumber: number\n}\n\nexport type BlockRowLabelClientComponent = React.ComponentType<\n BlockRowLabelBase & ClientFieldBase<BlocksFieldClientWithoutType>\n>\n\nexport type BlockRowLabelServerComponent = React.ComponentType<\n BlockRowLabelBase & ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\n>\n\nexport type BlocksFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldErrorServerComponent = FieldErrorServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldErrorClientComponent =\n FieldErrorClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldDiffServerComponent = FieldDiffServerComponent<\n BlocksField,\n BlocksFieldClient\n>\n\nexport type BlocksFieldDiffClientComponent = FieldDiffClientComponent<BlocksFieldClient>\n"],"names":[],"mappings":"AA0FA,WAAwF"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js'\nimport type { BlocksFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>\n\ntype BlocksFieldBaseClientProps = {\n readonly validate?: BlocksFieldValidation\n} & FieldPaths\n\ntype BlocksFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type BlocksFieldClientProps = BlocksFieldBaseClientProps &\n ClientFieldBase<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerProps = BlocksFieldBaseServerProps &\n ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\nexport type BlocksFieldLabelServerProps = FieldLabelServerProps<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldLabelClientProps = FieldLabelClientProps<BlocksFieldClientWithoutType>\n\ntype BlockRowLabelBase = {\n blockType: string\n rowLabel: string\n rowNumber: number\n}\n\nexport type BlockRowLabelClientProps = BlockRowLabelBase &\n ClientFieldBase<BlocksFieldClientWithoutType>\n\nexport type BlockRowLabelServerProps = BlockRowLabelBase &\n ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\n\nexport type BlocksFieldDescriptionServerProps = FieldDescriptionServerProps<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldDescriptionClientProps =\n FieldDescriptionClientProps<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldErrorServerProps = FieldErrorServerProps<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldErrorClientProps = FieldErrorClientProps<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldDiffServerProps = FieldDiffServerProps<BlocksField, BlocksFieldClient>\n\nexport type BlocksFieldDiffClientProps = FieldDiffClientProps<BlocksFieldClient>\n"],"names":[],"mappings":"AAgEA,WAAgF"}
@@ -1,9 +1,9 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
2
  import type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js';
3
3
  import type { CheckboxFieldValidation } from '../../fields/validations.js';
4
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
6
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
4
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
5
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
6
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
7
7
  type CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>;
8
8
  type CheckboxFieldBaseClientProps = {
9
9
  readonly checked?: boolean;
@@ -17,15 +17,13 @@ type CheckboxFieldBaseClientProps = {
17
17
  type CheckboxFieldBaseServerProps = Pick<FieldPaths, 'path'>;
18
18
  export type CheckboxFieldClientProps = CheckboxFieldBaseClientProps & ClientFieldBase<CheckboxFieldClientWithoutType>;
19
19
  export type CheckboxFieldServerProps = CheckboxFieldBaseServerProps & ServerFieldBase<CheckboxField, CheckboxFieldClientWithoutType>;
20
- export type CheckboxFieldServerComponent = FieldServerComponent<CheckboxField, CheckboxFieldClientWithoutType, CheckboxFieldBaseServerProps>;
21
- export type CheckboxFieldClientComponent = FieldClientComponent<CheckboxFieldClientWithoutType, CheckboxFieldBaseClientProps>;
22
- export type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
23
- export type CheckboxFieldLabelClientComponent = FieldLabelClientComponent<CheckboxFieldClientWithoutType>;
24
- export type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
25
- export type CheckboxFieldDescriptionClientComponent = FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>;
26
- export type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
27
- export type CheckboxFieldErrorClientComponent = FieldErrorClientComponent<CheckboxFieldClientWithoutType>;
28
- export type CheckboxFieldDiffServerComponent = FieldDiffServerComponent<CheckboxField, CheckboxFieldClient>;
29
- export type CheckboxFieldDiffClientComponent = FieldDiffClientComponent<CheckboxFieldClient>;
20
+ export type CheckboxFieldLabelServerProps = FieldLabelServerProps<CheckboxField, CheckboxFieldClientWithoutType>;
21
+ export type CheckboxFieldLabelClientProps = FieldLabelClientProps<CheckboxFieldClientWithoutType>;
22
+ export type CheckboxFieldDescriptionServerProps = FieldDescriptionServerProps<CheckboxField, CheckboxFieldClientWithoutType>;
23
+ export type CheckboxFieldDescriptionClientProps = FieldDescriptionClientProps<CheckboxFieldClientWithoutType>;
24
+ export type CheckboxFieldErrorServerProps = FieldErrorServerProps<CheckboxField, CheckboxFieldClientWithoutType>;
25
+ export type CheckboxFieldErrorClientProps = FieldErrorClientProps<CheckboxFieldClientWithoutType>;
26
+ export type CheckboxFieldDiffServerProps = FieldDiffServerProps<CheckboxField, CheckboxFieldClient>;
27
+ export type CheckboxFieldDiffClientProps = FieldDiffClientProps<CheckboxFieldClient>;
30
28
  export {};
31
29
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +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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4B,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["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 ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>\n\ntype CheckboxFieldBaseClientProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly path: string\n readonly validate?: CheckboxFieldValidation\n}\n\ntype CheckboxFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CheckboxFieldClientProps = CheckboxFieldBaseClientProps &\n ClientFieldBase<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldServerProps = CheckboxFieldBaseServerProps &\n ServerFieldBase<CheckboxField, CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldServerComponent = FieldServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType,\n CheckboxFieldBaseServerProps\n>\n\nexport type CheckboxFieldClientComponent = FieldClientComponent<\n CheckboxFieldClientWithoutType,\n CheckboxFieldBaseClientProps\n>\n\nexport type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldLabelClientComponent =\n FieldLabelClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldErrorClientComponent =\n FieldErrorClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDiffServerComponent = FieldDiffServerComponent<\n CheckboxField,\n CheckboxFieldClient\n>\n\nexport type CheckboxFieldDiffClientComponent = FieldDiffClientComponent<CheckboxFieldClient>\n"],"names":[],"mappings":"AAiFA,WAA4F"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["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 { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>\n\ntype CheckboxFieldBaseClientProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly path: string\n readonly validate?: CheckboxFieldValidation\n}\n\ntype CheckboxFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CheckboxFieldClientProps = CheckboxFieldBaseClientProps &\n ClientFieldBase<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldServerProps = CheckboxFieldBaseServerProps &\n ServerFieldBase<CheckboxField, CheckboxFieldClientWithoutType>\nexport type CheckboxFieldLabelServerProps = FieldLabelServerProps<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldLabelClientProps = FieldLabelClientProps<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDescriptionServerProps = FieldDescriptionServerProps<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldDescriptionClientProps =\n FieldDescriptionClientProps<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldErrorServerProps = FieldErrorServerProps<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldErrorClientProps = FieldErrorClientProps<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDiffServerProps = FieldDiffServerProps<CheckboxField, CheckboxFieldClient>\n\nexport type CheckboxFieldDiffClientProps = FieldDiffClientProps<CheckboxFieldClient>\n"],"names":[],"mappings":"AA0DA,WAAoF"}
@@ -2,9 +2,9 @@ import type { EditorProps } from '@monaco-editor/react';
2
2
  import type { MarkOptional } from 'ts-essentials';
3
3
  import type { CodeField, CodeFieldClient } from '../../fields/config/types.js';
4
4
  import type { CodeFieldValidation } from '../../fields/validations.js';
5
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
6
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
7
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
5
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
6
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
7
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
8
8
  type CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>;
9
9
  type CodeFieldBaseClientProps = {
10
10
  readonly autoComplete?: string;
@@ -15,15 +15,13 @@ type CodeFieldBaseClientProps = {
15
15
  type CodeFieldBaseServerProps = Pick<FieldPaths, 'path'>;
16
16
  export type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> & CodeFieldBaseClientProps;
17
17
  export type CodeFieldServerProps = CodeFieldBaseServerProps & ServerFieldBase<CodeField, CodeFieldClientWithoutType>;
18
- export type CodeFieldServerComponent = FieldServerComponent<CodeField, CodeFieldClientWithoutType, CodeFieldBaseServerProps>;
19
- export type CodeFieldClientComponent = FieldClientComponent<CodeFieldClientWithoutType, CodeFieldBaseClientProps>;
20
- export type CodeFieldLabelServerComponent = FieldLabelServerComponent<CodeField, CodeFieldClientWithoutType>;
21
- export type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>;
22
- export type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField, CodeFieldClientWithoutType>;
23
- export type CodeFieldDescriptionClientComponent = FieldDescriptionClientComponent<CodeFieldClientWithoutType>;
24
- export type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField, CodeFieldClientWithoutType>;
25
- export type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>;
26
- export type CodeFieldDiffServerComponent = FieldDiffServerComponent<CodeField, CodeFieldClient>;
27
- export type CodeFieldDiffClientComponent = FieldDiffClientComponent<CodeFieldClient>;
18
+ export type CodeFieldLabelServerProps = FieldLabelServerProps<CodeField, CodeFieldClientWithoutType>;
19
+ export type CodeFieldLabelClientProps = FieldLabelClientProps<CodeFieldClientWithoutType>;
20
+ export type CodeFieldDescriptionServerProps = FieldDescriptionServerProps<CodeField, CodeFieldClientWithoutType>;
21
+ export type CodeFieldDescriptionClientProps = FieldDescriptionClientProps<CodeFieldClientWithoutType>;
22
+ export type CodeFieldErrorServerProps = FieldErrorServerProps<CodeField, CodeFieldClientWithoutType>;
23
+ export type CodeFieldErrorClientProps = FieldErrorClientProps<CodeFieldClientWithoutType>;
24
+ export type CodeFieldDiffServerProps = FieldDiffServerProps<CodeField, CodeFieldClient>;
25
+ export type CodeFieldDiffClientProps = FieldDiffClientProps<CodeFieldClient>;
28
26
  export {};
29
27
  //# sourceMappingURL=Code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,0BAA0B,GAAG,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;AAEvE,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAED,KAAK,wBAAwB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;AAExD,MAAM,MAAM,oBAAoB,GAAG,eAA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AAyB,GAAG,qBAAqB,CAAC,0BAA0B,CAAC,CAAA;AAEzF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;AAEvF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { EditorProps } from '@monaco-editor/react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>\n\ntype CodeFieldBaseClientProps = {\n readonly autoComplete?: string\n readonly onMount?: EditorProps['onMount']\n readonly path: string\n readonly validate?: CodeFieldValidation\n}\n\ntype CodeFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> &\n CodeFieldBaseClientProps\n\nexport type CodeFieldServerProps = CodeFieldBaseServerProps &\n ServerFieldBase<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldServerComponent = FieldServerComponent<\n CodeField,\n CodeFieldClientWithoutType,\n CodeFieldBaseServerProps\n>\n\nexport type CodeFieldClientComponent = FieldClientComponent<\n CodeFieldClientWithoutType,\n CodeFieldBaseClientProps\n>\n\nexport type CodeFieldLabelServerComponent = FieldLabelServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorServerComponent = FieldErrorServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldDiffServerComponent = FieldDiffServerComponent<CodeField, CodeFieldClient>\n\nexport type CodeFieldDiffClientComponent = FieldDiffClientComponent<CodeFieldClient>\n"],"names":[],"mappings":"AA0EA,WAAoF"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { EditorProps } from '@monaco-editor/react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>\n\ntype CodeFieldBaseClientProps = {\n readonly autoComplete?: string\n readonly onMount?: EditorProps['onMount']\n readonly path: string\n readonly validate?: CodeFieldValidation\n}\n\ntype CodeFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> &\n CodeFieldBaseClientProps\n\nexport type CodeFieldServerProps = CodeFieldBaseServerProps &\n ServerFieldBase<CodeField, CodeFieldClientWithoutType>\nexport type CodeFieldLabelServerProps = FieldLabelServerProps<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldLabelClientProps = FieldLabelClientProps<CodeFieldClientWithoutType>\n\nexport type CodeFieldDescriptionServerProps = FieldDescriptionServerProps<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldDescriptionClientProps =\n FieldDescriptionClientProps<CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorServerProps = FieldErrorServerProps<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorClientProps = FieldErrorClientProps<CodeFieldClientWithoutType>\n\nexport type CodeFieldDiffServerProps = FieldDiffServerProps<CodeField, CodeFieldClient>\n\nexport type CodeFieldDiffClientProps = FieldDiffClientProps<CodeFieldClient>\n"],"names":[],"mappings":"AAkDA,WAA4E"}
@@ -1,21 +1,19 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
2
  import type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js';
3
- import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
4
- import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
5
- import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
3
+ import type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js';
4
+ import type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js';
5
+ import type { FieldDescriptionClientProps, FieldDescriptionServerProps, FieldDiffClientProps, FieldDiffServerProps, FieldLabelClientProps, FieldLabelServerProps } from '../types.js';
6
6
  type CollapsibleFieldBaseClientProps = FieldPaths;
7
7
  type CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>;
8
8
  export type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> & CollapsibleFieldBaseClientProps;
9
9
  export type CollapsibleFieldServerProps = ServerFieldBase<CollapsibleField, CollapsibleFieldClientWithoutType>;
10
- export type CollapsibleFieldServerComponent = FieldServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
11
- export type CollapsibleFieldClientComponent = FieldClientComponent<CollapsibleFieldClientWithoutType, CollapsibleFieldBaseClientProps>;
12
- export type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
13
- export type CollapsibleFieldLabelClientComponent = FieldLabelClientComponent<CollapsibleFieldClientWithoutType>;
14
- export type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
15
- export type CollapsibleFieldDescriptionClientComponent = FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>;
16
- export type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
17
- export type CollapsibleFieldErrorClientComponent = FieldErrorClientComponent<CollapsibleFieldClientWithoutType>;
18
- export type CollapsibleFieldDiffServerComponent = FieldDiffServerComponent<CollapsibleField, CollapsibleFieldClient>;
19
- export type CollapsibleFieldDiffClientComponent = FieldDiffClientComponent<CollapsibleFieldClient>;
10
+ export type CollapsibleFieldLabelServerProps = FieldLabelServerProps<CollapsibleField, CollapsibleFieldClientWithoutType>;
11
+ export type CollapsibleFieldLabelClientProps = FieldLabelClientProps<CollapsibleFieldClientWithoutType>;
12
+ export type CollapsibleFieldDescriptionServerProps = FieldDescriptionServerProps<CollapsibleField, CollapsibleFieldClientWithoutType>;
13
+ export type CollapsibleFieldDescriptionClientProps = FieldDescriptionClientProps<CollapsibleFieldClientWithoutType>;
14
+ export type CollapsibleFieldErrorServerProps = FieldErrorServerProps<CollapsibleField, CollapsibleFieldClientWithoutType>;
15
+ export type CollapsibleFieldErrorClientProps = FieldErrorClientProps<CollapsibleFieldClientWithoutType>;
16
+ export type CollapsibleFieldDiffServerProps = FieldDiffServerProps<CollapsibleField, CollapsibleFieldClient>;
17
+ export type CollapsibleFieldDiffClientProps = FieldDiffClientProps<CollapsibleFieldClient>;
20
18
  export {};
21
19
  //# sourceMappingURL=Collapsible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Collapsible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,+BAA+B,GAAG,UAAU,CAAA;AAEjD,KAAK,iCAAiC,GAAG,YAAY,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAA;AAErF,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,iCAAiC,CAAC,GAC1F,+BAA+B,CAAA;AAEjC,MAAM,MAAM,2BAA2B,GAAG,eAAe,CACvD,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAChE,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAChE,iCAAiC,EACjC,+BAA+B,CAChC,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG,yBAAyB,CAC1E,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,oCAAoC,GAC9C,yBAAyB,CAAC,iCAAiC,CAAC,CAAA;AAE9D,MAAM,MAAM,0CAA0C,GAAG,+BAA+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AAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,gCAAgC,GAC1C,qBAAqB,CAAC,iCAAiC,CAAC,CAAA;AAE1D,MAAM,MAAM,sCAAsC,GAAG,2BAA2B,CAC9E,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,sCAAsC,GAChD,2BAA2B,CAAC,iCAAiC,CAAC,CAAA;AAEhE,MAAM,MAAM,gCAAgC,GAAG,qBAAqB,CAClE,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,gCAAgC,GAC1C,qBAAqB,CAAC,iCAAiC,CAAC,CAAA;AAE1D,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAChE,gBAAgB,EAChB,sBAAsB,CACvB,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CollapsibleFieldBaseClientProps = FieldPaths\n\ntype CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>\n\nexport type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> &\n CollapsibleFieldBaseClientProps\n\nexport type CollapsibleFieldServerProps = ServerFieldBase<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldServerComponent = FieldServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldClientComponent = FieldClientComponent<\n CollapsibleFieldClientWithoutType,\n CollapsibleFieldBaseClientProps\n>\n\nexport type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldLabelClientComponent =\n FieldLabelClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldErrorClientComponent =\n FieldErrorClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDiffServerComponent = FieldDiffServerComponent<\n CollapsibleField,\n CollapsibleFieldClient\n>\n\nexport type CollapsibleFieldDiffClientComponent = FieldDiffClientComponent<CollapsibleFieldClient>\n"],"names":[],"mappings":"AAuEA,WAAkG"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from '../forms/Error.js'\nimport type { ClientFieldBase, FieldPaths, ServerFieldBase } from '../forms/Field.js'\nimport type {\n FieldDescriptionClientProps,\n FieldDescriptionServerProps,\n FieldDiffClientProps,\n FieldDiffServerProps,\n FieldLabelClientProps,\n FieldLabelServerProps,\n} from '../types.js'\n\ntype CollapsibleFieldBaseClientProps = FieldPaths\n\ntype CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>\n\nexport type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> &\n CollapsibleFieldBaseClientProps\n\nexport type CollapsibleFieldServerProps = ServerFieldBase<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\nexport type CollapsibleFieldLabelServerProps = FieldLabelServerProps<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldLabelClientProps =\n FieldLabelClientProps<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDescriptionServerProps = FieldDescriptionServerProps<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldDescriptionClientProps =\n FieldDescriptionClientProps<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldErrorServerProps = FieldErrorServerProps<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldErrorClientProps =\n FieldErrorClientProps<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDiffServerProps = FieldDiffServerProps<\n CollapsibleField,\n CollapsibleFieldClient\n>\n\nexport type CollapsibleFieldDiffClientProps = FieldDiffClientProps<CollapsibleFieldClient>\n"],"names":[],"mappings":"AAsDA,WAA0F"}