@payloadcms/next 3.0.0-alpha.8 → 3.0.0-beta.1

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 (806) hide show
  1. package/dist/cjs/withPayload.cjs +87 -0
  2. package/dist/cjs/withPayload.cjs.map +1 -0
  3. package/dist/config.js +2 -12
  4. package/dist/config.js.map +1 -0
  5. package/dist/elements/LeaveWithoutSaving/index.js +25 -76
  6. package/dist/elements/LeaveWithoutSaving/index.js.map +1 -0
  7. package/dist/elements/LeaveWithoutSaving/usePreventLeave.d.ts.map +1 -1
  8. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +11 -29
  9. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +1 -0
  10. package/dist/exports/layouts.d.ts +2 -0
  11. package/dist/exports/layouts.d.ts.map +1 -0
  12. package/dist/exports/layouts.js +3 -0
  13. package/dist/exports/layouts.js.map +1 -0
  14. package/dist/exports/routes.d.ts +3 -0
  15. package/dist/exports/routes.d.ts.map +1 -0
  16. package/dist/exports/routes.js +4 -0
  17. package/dist/exports/routes.js.map +1 -0
  18. package/dist/exports/utilities.d.ts +3 -0
  19. package/dist/exports/utilities.d.ts.map +1 -0
  20. package/dist/exports/utilities.js +4 -0
  21. package/dist/exports/utilities.js.map +1 -0
  22. package/dist/exports/views.d.ts +4 -0
  23. package/dist/exports/views.d.ts.map +1 -0
  24. package/dist/exports/views.js +5 -0
  25. package/dist/exports/views.js.map +1 -0
  26. package/dist/index.js +3 -35
  27. package/dist/index.js.map +1 -0
  28. package/dist/layouts/Root/index.d.ts.map +1 -1
  29. package/dist/layouts/Root/index.js +62 -77
  30. package/dist/layouts/Root/index.js.map +1 -0
  31. package/dist/next-fileupload/fileFactory.d.ts +2 -2
  32. package/dist/next-fileupload/fileFactory.d.ts.map +1 -1
  33. package/dist/next-fileupload/fileFactory.js +9 -19
  34. package/dist/next-fileupload/fileFactory.js.map +1 -0
  35. package/dist/next-fileupload/handlers.d.ts +2 -2
  36. package/dist/next-fileupload/handlers.d.ts.map +1 -1
  37. package/dist/next-fileupload/handlers.js +25 -89
  38. package/dist/next-fileupload/handlers.js.map +1 -0
  39. package/dist/next-fileupload/index.d.ts +1 -1
  40. package/dist/next-fileupload/index.js +10 -25
  41. package/dist/next-fileupload/index.js.map +1 -0
  42. package/dist/next-fileupload/isEligibleRequest.js +2 -12
  43. package/dist/next-fileupload/isEligibleRequest.js.map +1 -0
  44. package/dist/next-fileupload/processMultipart.d.ts +1 -1
  45. package/dist/next-fileupload/processMultipart.d.ts.map +1 -1
  46. package/dist/next-fileupload/processMultipart.js +33 -46
  47. package/dist/next-fileupload/processMultipart.js.map +1 -0
  48. package/dist/next-fileupload/processNested.js +4 -14
  49. package/dist/next-fileupload/processNested.js.map +1 -0
  50. package/dist/next-fileupload/uploadTimer.js +2 -12
  51. package/dist/next-fileupload/uploadTimer.js.map +1 -0
  52. package/dist/next-fileupload/utilities.d.ts +1 -1
  53. package/dist/next-fileupload/utilities.d.ts.map +1 -1
  54. package/dist/next-fileupload/utilities.js +31 -76
  55. package/dist/next-fileupload/utilities.js.map +1 -0
  56. package/dist/next-stream-file/index.d.ts +4 -0
  57. package/dist/next-stream-file/index.d.ts.map +1 -1
  58. package/dist/next-stream-file/index.js +6 -21
  59. package/dist/next-stream-file/index.js.map +1 -0
  60. package/dist/prod/payload/favicon.svg +15 -0
  61. package/dist/prod/payload/og-image.png +0 -0
  62. package/dist/prod/styles.css +1 -0
  63. package/dist/routes/graphql/handler.d.ts.map +1 -1
  64. package/dist/routes/graphql/handler.js +19 -36
  65. package/dist/routes/graphql/handler.js.map +1 -0
  66. package/dist/routes/graphql/index.d.ts +2 -2
  67. package/dist/routes/graphql/index.d.ts.map +1 -1
  68. package/dist/routes/graphql/index.js +3 -21
  69. package/dist/routes/graphql/index.js.map +1 -0
  70. package/dist/routes/graphql/playground.js +6 -16
  71. package/dist/routes/graphql/playground.js.map +1 -0
  72. package/dist/routes/index.d.ts +2 -3
  73. package/dist/routes/index.d.ts.map +1 -1
  74. package/dist/routes/index.js +3 -37
  75. package/dist/routes/index.js.map +1 -0
  76. package/dist/routes/rest/auth/access.d.ts +1 -1
  77. package/dist/routes/rest/auth/access.d.ts.map +1 -1
  78. package/dist/routes/rest/auth/access.js +6 -21
  79. package/dist/routes/rest/auth/access.js.map +1 -0
  80. package/dist/routes/rest/auth/forgotPassword.d.ts +1 -1
  81. package/dist/routes/rest/auth/forgotPassword.d.ts.map +1 -1
  82. package/dist/routes/rest/auth/forgotPassword.js +6 -21
  83. package/dist/routes/rest/auth/forgotPassword.js.map +1 -0
  84. package/dist/routes/rest/auth/init.d.ts +1 -1
  85. package/dist/routes/rest/auth/init.d.ts.map +1 -1
  86. package/dist/routes/rest/auth/init.js +4 -14
  87. package/dist/routes/rest/auth/init.js.map +1 -0
  88. package/dist/routes/rest/auth/login.d.ts +1 -1
  89. package/dist/routes/rest/auth/login.d.ts.map +1 -1
  90. package/dist/routes/rest/auth/login.js +10 -25
  91. package/dist/routes/rest/auth/login.js.map +1 -0
  92. package/dist/routes/rest/auth/logout.d.ts +1 -1
  93. package/dist/routes/rest/auth/logout.d.ts.map +1 -1
  94. package/dist/routes/rest/auth/logout.js +9 -24
  95. package/dist/routes/rest/auth/logout.js.map +1 -0
  96. package/dist/routes/rest/auth/me.d.ts +1 -1
  97. package/dist/routes/rest/auth/me.d.ts.map +1 -1
  98. package/dist/routes/rest/auth/me.js +8 -23
  99. package/dist/routes/rest/auth/me.js.map +1 -0
  100. package/dist/routes/rest/auth/refresh.d.ts +1 -1
  101. package/dist/routes/rest/auth/refresh.d.ts.map +1 -1
  102. package/dist/routes/rest/auth/refresh.js +11 -25
  103. package/dist/routes/rest/auth/refresh.js.map +1 -0
  104. package/dist/routes/rest/auth/registerFirstUser.d.ts +1 -1
  105. package/dist/routes/rest/auth/registerFirstUser.d.ts.map +1 -1
  106. package/dist/routes/rest/auth/registerFirstUser.js +12 -25
  107. package/dist/routes/rest/auth/registerFirstUser.js.map +1 -0
  108. package/dist/routes/rest/auth/resetPassword.d.ts +1 -1
  109. package/dist/routes/rest/auth/resetPassword.d.ts.map +1 -1
  110. package/dist/routes/rest/auth/resetPassword.js +8 -23
  111. package/dist/routes/rest/auth/resetPassword.js.map +1 -0
  112. package/dist/routes/rest/auth/unlock.d.ts +1 -1
  113. package/dist/routes/rest/auth/unlock.d.ts.map +1 -1
  114. package/dist/routes/rest/auth/unlock.js +6 -21
  115. package/dist/routes/rest/auth/unlock.js.map +1 -0
  116. package/dist/routes/rest/auth/verifyEmail.d.ts +1 -1
  117. package/dist/routes/rest/auth/verifyEmail.d.ts.map +1 -1
  118. package/dist/routes/rest/auth/verifyEmail.js +6 -21
  119. package/dist/routes/rest/auth/verifyEmail.js.map +1 -0
  120. package/dist/routes/rest/buildFormState.d.ts +3 -3
  121. package/dist/routes/rest/buildFormState.d.ts.map +1 -1
  122. package/dist/routes/rest/buildFormState.js +143 -79
  123. package/dist/routes/rest/buildFormState.js.map +1 -0
  124. package/dist/routes/rest/checkEndpoints.d.ts.map +1 -1
  125. package/dist/routes/rest/checkEndpoints.js +4 -19
  126. package/dist/routes/rest/checkEndpoints.js.map +1 -0
  127. package/dist/routes/rest/collections/create.d.ts +1 -1
  128. package/dist/routes/rest/collections/create.d.ts.map +1 -1
  129. package/dist/routes/rest/collections/create.js +10 -24
  130. package/dist/routes/rest/collections/create.js.map +1 -0
  131. package/dist/routes/rest/collections/delete.d.ts +1 -1
  132. package/dist/routes/rest/collections/delete.d.ts.map +1 -1
  133. package/dist/routes/rest/collections/delete.js +13 -31
  134. package/dist/routes/rest/collections/delete.js.map +1 -0
  135. package/dist/routes/rest/collections/deleteByID.d.ts +1 -1
  136. package/dist/routes/rest/collections/deleteByID.d.ts.map +1 -1
  137. package/dist/routes/rest/collections/deleteByID.js +9 -24
  138. package/dist/routes/rest/collections/deleteByID.js.map +1 -0
  139. package/dist/routes/rest/collections/docAccess.d.ts +1 -1
  140. package/dist/routes/rest/collections/docAccess.d.ts.map +1 -1
  141. package/dist/routes/rest/collections/docAccess.js +6 -21
  142. package/dist/routes/rest/collections/docAccess.js.map +1 -0
  143. package/dist/routes/rest/collections/duplicate.d.ts +3 -0
  144. package/dist/routes/rest/collections/duplicate.d.ts.map +1 -0
  145. package/dist/routes/rest/collections/duplicate.js +28 -0
  146. package/dist/routes/rest/collections/duplicate.js.map +1 -0
  147. package/dist/routes/rest/collections/find.d.ts +1 -1
  148. package/dist/routes/rest/collections/find.d.ts.map +1 -1
  149. package/dist/routes/rest/collections/find.js +11 -29
  150. package/dist/routes/rest/collections/find.js.map +1 -0
  151. package/dist/routes/rest/collections/findByID.d.ts +1 -1
  152. package/dist/routes/rest/collections/findByID.d.ts.map +1 -1
  153. package/dist/routes/rest/collections/findByID.js +8 -23
  154. package/dist/routes/rest/collections/findByID.js.map +1 -0
  155. package/dist/routes/rest/collections/findVersionByID.d.ts +1 -1
  156. package/dist/routes/rest/collections/findVersionByID.d.ts.map +1 -1
  157. package/dist/routes/rest/collections/findVersionByID.js +8 -23
  158. package/dist/routes/rest/collections/findVersionByID.js.map +1 -0
  159. package/dist/routes/rest/collections/findVersions.d.ts +1 -1
  160. package/dist/routes/rest/collections/findVersions.d.ts.map +1 -1
  161. package/dist/routes/rest/collections/findVersions.js +11 -29
  162. package/dist/routes/rest/collections/findVersions.js.map +1 -0
  163. package/dist/routes/rest/collections/preview.d.ts +3 -0
  164. package/dist/routes/rest/collections/preview.d.ts.map +1 -0
  165. package/dist/routes/rest/collections/preview.js +36 -0
  166. package/dist/routes/rest/collections/preview.js.map +1 -0
  167. package/dist/routes/rest/collections/restoreVersion.d.ts +1 -1
  168. package/dist/routes/rest/collections/restoreVersion.d.ts.map +1 -1
  169. package/dist/routes/rest/collections/restoreVersion.js +8 -23
  170. package/dist/routes/rest/collections/restoreVersion.js.map +1 -0
  171. package/dist/routes/rest/collections/update.d.ts +1 -1
  172. package/dist/routes/rest/collections/update.d.ts.map +1 -1
  173. package/dist/routes/rest/collections/update.js +13 -31
  174. package/dist/routes/rest/collections/update.js.map +1 -0
  175. package/dist/routes/rest/collections/updateByID.d.ts +1 -1
  176. package/dist/routes/rest/collections/updateByID.d.ts.map +1 -1
  177. package/dist/routes/rest/collections/updateByID.js +8 -23
  178. package/dist/routes/rest/collections/updateByID.js.map +1 -0
  179. package/dist/routes/rest/files/checkFileAccess.d.ts +7 -0
  180. package/dist/routes/rest/files/checkFileAccess.d.ts.map +1 -0
  181. package/dist/routes/rest/files/checkFileAccess.js +50 -0
  182. package/dist/routes/rest/files/checkFileAccess.js.map +1 -0
  183. package/dist/routes/rest/files/getFile.d.ts +9 -0
  184. package/dist/routes/rest/files/getFile.d.ts.map +1 -0
  185. package/dist/routes/rest/files/getFile.js +52 -0
  186. package/dist/routes/rest/files/getFile.js.map +1 -0
  187. package/dist/routes/rest/globals/docAccess.d.ts +1 -1
  188. package/dist/routes/rest/globals/docAccess.d.ts.map +1 -1
  189. package/dist/routes/rest/globals/docAccess.js +6 -21
  190. package/dist/routes/rest/globals/docAccess.js.map +1 -0
  191. package/dist/routes/rest/globals/findOne.d.ts +1 -1
  192. package/dist/routes/rest/globals/findOne.d.ts.map +1 -1
  193. package/dist/routes/rest/globals/findOne.js +10 -25
  194. package/dist/routes/rest/globals/findOne.js.map +1 -0
  195. package/dist/routes/rest/globals/findVersionByID.d.ts +1 -1
  196. package/dist/routes/rest/globals/findVersionByID.d.ts.map +1 -1
  197. package/dist/routes/rest/globals/findVersionByID.js +8 -23
  198. package/dist/routes/rest/globals/findVersionByID.js.map +1 -0
  199. package/dist/routes/rest/globals/findVersions.d.ts +1 -1
  200. package/dist/routes/rest/globals/findVersions.d.ts.map +1 -1
  201. package/dist/routes/rest/globals/findVersions.js +11 -29
  202. package/dist/routes/rest/globals/findVersions.js.map +1 -0
  203. package/dist/routes/rest/globals/preview.d.ts +3 -0
  204. package/dist/routes/rest/globals/preview.d.ts.map +1 -0
  205. package/dist/routes/rest/globals/preview.js +35 -0
  206. package/dist/routes/rest/globals/preview.js.map +1 -0
  207. package/dist/routes/rest/globals/restoreVersion.d.ts +1 -1
  208. package/dist/routes/rest/globals/restoreVersion.d.ts.map +1 -1
  209. package/dist/routes/rest/globals/restoreVersion.js +8 -23
  210. package/dist/routes/rest/globals/restoreVersion.js.map +1 -0
  211. package/dist/routes/rest/globals/update.d.ts +1 -1
  212. package/dist/routes/rest/globals/update.d.ts.map +1 -1
  213. package/dist/routes/rest/globals/update.js +10 -25
  214. package/dist/routes/rest/globals/update.js.map +1 -0
  215. package/dist/routes/rest/index.d.ts.map +1 -1
  216. package/dist/routes/rest/index.js +129 -122
  217. package/dist/routes/rest/index.js.map +1 -0
  218. package/dist/routes/rest/{RouteError.d.ts → routeError.d.ts} +3 -3
  219. package/dist/routes/rest/routeError.d.ts.map +1 -0
  220. package/dist/routes/rest/routeError.js +93 -0
  221. package/dist/routes/rest/routeError.js.map +1 -0
  222. package/dist/routes/rest/types.js +2 -5
  223. package/dist/routes/rest/types.js.map +1 -0
  224. package/dist/scss/app.scss +2 -2
  225. package/dist/utilities/buildFieldSchemaMap/index.d.ts +4 -0
  226. package/dist/utilities/buildFieldSchemaMap/index.d.ts.map +1 -0
  227. package/dist/utilities/buildFieldSchemaMap/index.js +28 -0
  228. package/dist/utilities/buildFieldSchemaMap/index.js.map +1 -0
  229. package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts +14 -0
  230. package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts.map +1 -0
  231. package/dist/utilities/buildFieldSchemaMap/traverseFields.js +72 -0
  232. package/dist/utilities/buildFieldSchemaMap/traverseFields.js.map +1 -0
  233. package/dist/utilities/buildFieldSchemaMap/types.d.ts +3 -0
  234. package/dist/utilities/buildFieldSchemaMap/types.d.ts.map +1 -0
  235. package/dist/utilities/buildFieldSchemaMap/types.js +3 -0
  236. package/dist/utilities/buildFieldSchemaMap/types.js.map +1 -0
  237. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  238. package/dist/utilities/createPayloadRequest.js +29 -32
  239. package/dist/utilities/createPayloadRequest.js.map +1 -0
  240. package/dist/utilities/getDataAndFile.js +6 -16
  241. package/dist/utilities/getDataAndFile.js.map +1 -0
  242. package/dist/utilities/getNextRequestI18n.d.ts +11 -0
  243. package/dist/utilities/getNextRequestI18n.d.ts.map +1 -0
  244. package/dist/utilities/getNextRequestI18n.js +18 -0
  245. package/dist/utilities/getNextRequestI18n.js.map +1 -0
  246. package/dist/utilities/getPayloadHMR.d.ts +4 -0
  247. package/dist/utilities/getPayloadHMR.d.ts.map +1 -0
  248. package/dist/utilities/getPayloadHMR.js +75 -0
  249. package/dist/utilities/getPayloadHMR.js.map +1 -0
  250. package/dist/utilities/getRequestLanguage.d.ts +6 -3
  251. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  252. package/dist/utilities/getRequestLanguage.js +14 -16
  253. package/dist/utilities/getRequestLanguage.js.map +1 -0
  254. package/dist/utilities/getRequestLocales.js +2 -12
  255. package/dist/utilities/getRequestLocales.js.map +1 -0
  256. package/dist/utilities/initPage.d.ts +4 -16
  257. package/dist/utilities/initPage.d.ts.map +1 -1
  258. package/dist/utilities/initPage.js +70 -54
  259. package/dist/utilities/initPage.js.map +1 -0
  260. package/dist/utilities/meta.js +5 -15
  261. package/dist/utilities/meta.js.map +1 -0
  262. package/dist/utilities/timestamp.d.ts +2 -0
  263. package/dist/utilities/timestamp.d.ts.map +1 -0
  264. package/dist/utilities/timestamp.js +7 -0
  265. package/dist/utilities/timestamp.js.map +1 -0
  266. package/dist/views/API/RenderJSON/index.js +17 -69
  267. package/dist/views/API/RenderJSON/index.js.map +1 -0
  268. package/dist/views/API/index.client.d.ts +1 -2
  269. package/dist/views/API/index.client.d.ts.map +1 -1
  270. package/dist/views/API/index.client.js +58 -106
  271. package/dist/views/API/index.client.js.map +1 -0
  272. package/dist/views/API/index.d.ts +2 -3
  273. package/dist/views/API/index.d.ts.map +1 -1
  274. package/dist/views/API/index.js +5 -25
  275. package/dist/views/API/index.js.map +1 -0
  276. package/dist/views/API/meta.d.ts +1 -1
  277. package/dist/views/API/meta.d.ts.map +1 -1
  278. package/dist/views/API/meta.js +4 -14
  279. package/dist/views/API/meta.js.map +1 -0
  280. package/dist/views/Account/Settings/index.d.ts.map +1 -1
  281. package/dist/views/Account/Settings/index.js +16 -30
  282. package/dist/views/Account/Settings/index.js.map +1 -0
  283. package/dist/views/Account/ToggleTheme/index.js +10 -59
  284. package/dist/views/Account/ToggleTheme/index.js.map +1 -0
  285. package/dist/views/Account/index.d.ts +3 -12
  286. package/dist/views/Account/index.d.ts.map +1 -1
  287. package/dist/views/Account/index.js +43 -152
  288. package/dist/views/Account/index.js.map +1 -0
  289. package/dist/views/Account/meta.d.ts +3 -0
  290. package/dist/views/Account/meta.d.ts.map +1 -0
  291. package/dist/views/Account/meta.js +11 -0
  292. package/dist/views/Account/meta.js.map +1 -0
  293. package/dist/views/CreateFirstUser/index.client.d.ts +2 -0
  294. package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -1
  295. package/dist/views/CreateFirstUser/index.client.js +15 -22
  296. package/dist/views/CreateFirstUser/index.client.js.map +1 -0
  297. package/dist/views/CreateFirstUser/index.d.ts +3 -17
  298. package/dist/views/CreateFirstUser/index.d.ts.map +1 -1
  299. package/dist/views/CreateFirstUser/index.js +23 -64
  300. package/dist/views/CreateFirstUser/index.js.map +1 -0
  301. package/dist/views/CreateFirstUser/meta.d.ts +3 -0
  302. package/dist/views/CreateFirstUser/meta.d.ts.map +1 -0
  303. package/dist/views/CreateFirstUser/meta.js +11 -0
  304. package/dist/views/CreateFirstUser/meta.js.map +1 -0
  305. package/dist/views/Dashboard/Default/index.client.d.ts +4 -2
  306. package/dist/views/Dashboard/Default/index.client.d.ts.map +1 -1
  307. package/dist/views/Dashboard/Default/index.client.js +35 -82
  308. package/dist/views/Dashboard/Default/index.client.js.map +1 -0
  309. package/dist/views/Dashboard/Default/index.d.ts +4 -3
  310. package/dist/views/Dashboard/Default/index.d.ts.map +1 -1
  311. package/dist/views/Dashboard/Default/index.js +17 -31
  312. package/dist/views/Dashboard/Default/index.js.map +1 -0
  313. package/dist/views/Dashboard/index.d.ts +3 -14
  314. package/dist/views/Dashboard/index.d.ts.map +1 -1
  315. package/dist/views/Dashboard/index.js +18 -113
  316. package/dist/views/Dashboard/index.js.map +1 -0
  317. package/dist/views/Dashboard/meta.d.ts +3 -0
  318. package/dist/views/Dashboard/meta.d.ts.map +1 -0
  319. package/dist/views/Dashboard/meta.js +11 -0
  320. package/dist/views/Dashboard/meta.js.map +1 -0
  321. package/dist/views/Document/getCustomViewByKey.d.ts +2 -2
  322. package/dist/views/Document/getCustomViewByKey.d.ts.map +1 -1
  323. package/dist/views/Document/getCustomViewByKey.js +2 -12
  324. package/dist/views/Document/getCustomViewByKey.js.map +1 -0
  325. package/dist/views/Document/getCustomViewByRoute.d.ts +8 -0
  326. package/dist/views/Document/getCustomViewByRoute.d.ts.map +1 -0
  327. package/dist/views/Document/getCustomViewByRoute.js +22 -0
  328. package/dist/views/Document/getCustomViewByRoute.js.map +1 -0
  329. package/dist/views/Document/getMetaBySegment.d.ts +6 -16
  330. package/dist/views/Document/getMetaBySegment.d.ts.map +1 -1
  331. package/dist/views/Document/getMetaBySegment.js +39 -86
  332. package/dist/views/Document/getMetaBySegment.js.map +1 -0
  333. package/dist/views/Document/getViewsFromConfig.d.ts +12 -9
  334. package/dist/views/Document/getViewsFromConfig.d.ts.map +1 -1
  335. package/dist/views/Document/getViewsFromConfig.js +198 -121
  336. package/dist/views/Document/getViewsFromConfig.js.map +1 -0
  337. package/dist/views/Document/index.d.ts +4 -22
  338. package/dist/views/Document/index.d.ts.map +1 -1
  339. package/dist/views/Document/index.js +115 -192
  340. package/dist/views/Document/index.js.map +1 -0
  341. package/dist/views/Document/meta.d.ts +3 -0
  342. package/dist/views/Document/meta.d.ts.map +1 -0
  343. package/dist/views/Document/meta.js +4 -0
  344. package/dist/views/Document/meta.js.map +1 -0
  345. package/dist/views/Edit/Default/Auth/APIKey.d.ts +1 -2
  346. package/dist/views/Edit/Default/Auth/APIKey.d.ts.map +1 -1
  347. package/dist/views/Edit/Default/Auth/APIKey.js +37 -78
  348. package/dist/views/Edit/Default/Auth/APIKey.js.map +1 -0
  349. package/dist/views/Edit/Default/Auth/index.d.ts +2 -3
  350. package/dist/views/Edit/Default/Auth/index.d.ts.map +1 -1
  351. package/dist/views/Edit/Default/Auth/index.js +42 -93
  352. package/dist/views/Edit/Default/Auth/index.js.map +1 -0
  353. package/dist/views/Edit/Default/Auth/types.js +2 -5
  354. package/dist/views/Edit/Default/Auth/types.js.map +1 -0
  355. package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts +5 -4
  356. package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts.map +1 -1
  357. package/dist/views/Edit/Default/SetDocumentTitle/index.js +27 -39
  358. package/dist/views/Edit/Default/SetDocumentTitle/index.js.map +1 -0
  359. package/dist/views/Edit/Default/SetStepNav/index.d.ts +1 -2
  360. package/dist/views/Edit/Default/SetStepNav/index.d.ts.map +1 -1
  361. package/dist/views/Edit/Default/SetStepNav/index.js +17 -23
  362. package/dist/views/Edit/Default/SetStepNav/index.js.map +1 -0
  363. package/dist/views/Edit/Default/index.d.ts.map +1 -1
  364. package/dist/views/Edit/Default/index.js +109 -109
  365. package/dist/views/Edit/Default/index.js.map +1 -0
  366. package/dist/views/Edit/Default/types.js +2 -5
  367. package/dist/views/Edit/Default/types.js.map +1 -0
  368. package/dist/views/Edit/index.client.d.ts +1 -2
  369. package/dist/views/Edit/index.client.d.ts.map +1 -1
  370. package/dist/views/Edit/index.client.js +11 -94
  371. package/dist/views/Edit/index.client.js.map +1 -0
  372. package/dist/views/Edit/index.d.ts +2 -3
  373. package/dist/views/Edit/index.d.ts.map +1 -1
  374. package/dist/views/Edit/index.js +5 -25
  375. package/dist/views/Edit/index.js.map +1 -0
  376. package/dist/views/Edit/meta.d.ts +1 -1
  377. package/dist/views/Edit/meta.d.ts.map +1 -1
  378. package/dist/views/Edit/meta.js +11 -21
  379. package/dist/views/Edit/meta.js.map +1 -0
  380. package/dist/views/Edit/sanitizeEditViewProps.d.ts +1 -2
  381. package/dist/views/Edit/sanitizeEditViewProps.d.ts.map +1 -1
  382. package/dist/views/Edit/sanitizeEditViewProps.js +5 -18
  383. package/dist/views/Edit/sanitizeEditViewProps.js.map +1 -0
  384. package/dist/views/ForgotPassword/index.d.ts +4 -12
  385. package/dist/views/ForgotPassword/index.d.ts.map +1 -1
  386. package/dist/views/ForgotPassword/index.js +27 -91
  387. package/dist/views/ForgotPassword/index.js.map +1 -0
  388. package/dist/views/ForgotPassword/meta.d.ts +3 -0
  389. package/dist/views/ForgotPassword/meta.d.ts.map +1 -0
  390. package/dist/views/ForgotPassword/meta.js +11 -0
  391. package/dist/views/ForgotPassword/meta.js.map +1 -0
  392. package/dist/views/List/Default/index.d.ts.map +1 -1
  393. package/dist/views/List/Default/index.js +80 -109
  394. package/dist/views/List/Default/index.js.map +1 -0
  395. package/dist/views/List/Default/types.d.ts +3 -2
  396. package/dist/views/List/Default/types.d.ts.map +1 -1
  397. package/dist/views/List/Default/types.js +2 -5
  398. package/dist/views/List/Default/types.js.map +1 -0
  399. package/dist/views/List/index.d.ts +3 -20
  400. package/dist/views/List/index.d.ts.map +1 -1
  401. package/dist/views/List/index.js +69 -114
  402. package/dist/views/List/index.js.map +1 -0
  403. package/dist/views/List/meta.d.ts +7 -0
  404. package/dist/views/List/meta.d.ts.map +1 -0
  405. package/dist/views/List/meta.js +19 -0
  406. package/dist/views/List/meta.js.map +1 -0
  407. package/dist/views/LivePreview/Context/collisionDetection.js +6 -14
  408. package/dist/views/LivePreview/Context/collisionDetection.js.map +1 -0
  409. package/dist/views/LivePreview/Context/context.d.ts +2 -2
  410. package/dist/views/LivePreview/Context/context.d.ts.map +1 -1
  411. package/dist/views/LivePreview/Context/context.js +4 -22
  412. package/dist/views/LivePreview/Context/context.js.map +1 -0
  413. package/dist/views/LivePreview/Context/index.d.ts +5 -3
  414. package/dist/views/LivePreview/Context/index.d.ts.map +1 -1
  415. package/dist/views/LivePreview/Context/index.js +38 -93
  416. package/dist/views/LivePreview/Context/index.js.map +1 -0
  417. package/dist/views/LivePreview/Context/sizeReducer.js +2 -12
  418. package/dist/views/LivePreview/Context/sizeReducer.js.map +1 -0
  419. package/dist/views/LivePreview/Device/index.js +10 -61
  420. package/dist/views/LivePreview/Device/index.js.map +1 -0
  421. package/dist/views/LivePreview/DeviceContainer/index.js +6 -21
  422. package/dist/views/LivePreview/DeviceContainer/index.js.map +1 -0
  423. package/dist/views/LivePreview/IFrame/index.d.ts +4 -3
  424. package/dist/views/LivePreview/IFrame/index.d.ts.map +1 -1
  425. package/dist/views/LivePreview/IFrame/index.js +6 -58
  426. package/dist/views/LivePreview/IFrame/index.js.map +1 -0
  427. package/dist/views/LivePreview/Preview/index.d.ts +1 -1
  428. package/dist/views/LivePreview/Preview/index.d.ts.map +1 -1
  429. package/dist/views/LivePreview/Preview/index.js +23 -72
  430. package/dist/views/LivePreview/Preview/index.js.map +1 -0
  431. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts +1 -1
  432. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +1 -1
  433. package/dist/views/LivePreview/Toolbar/Controls/index.js +24 -37
  434. package/dist/views/LivePreview/Toolbar/Controls/index.js.map +1 -0
  435. package/dist/views/LivePreview/Toolbar/SizeInput/index.js +9 -61
  436. package/dist/views/LivePreview/Toolbar/SizeInput/index.js.map +1 -0
  437. package/dist/views/LivePreview/Toolbar/index.d.ts +1 -1
  438. package/dist/views/LivePreview/Toolbar/index.d.ts.map +1 -1
  439. package/dist/views/LivePreview/Toolbar/index.js +16 -32
  440. package/dist/views/LivePreview/Toolbar/index.js.map +1 -0
  441. package/dist/views/LivePreview/ToolbarArea/index.js +6 -22
  442. package/dist/views/LivePreview/ToolbarArea/index.js.map +1 -0
  443. package/dist/views/LivePreview/index.client.d.ts +2 -3
  444. package/dist/views/LivePreview/index.client.d.ts.map +1 -1
  445. package/dist/views/LivePreview/index.client.js +83 -106
  446. package/dist/views/LivePreview/index.client.js.map +1 -0
  447. package/dist/views/LivePreview/index.d.ts +2 -2
  448. package/dist/views/LivePreview/index.d.ts.map +1 -1
  449. package/dist/views/LivePreview/index.js +34 -30
  450. package/dist/views/LivePreview/index.js.map +1 -0
  451. package/dist/views/LivePreview/meta.d.ts +1 -1
  452. package/dist/views/LivePreview/meta.d.ts.map +1 -1
  453. package/dist/views/LivePreview/meta.js +11 -21
  454. package/dist/views/LivePreview/meta.js.map +1 -0
  455. package/dist/views/LivePreview/usePopupWindow.d.ts.map +1 -1
  456. package/dist/views/LivePreview/usePopupWindow.js +11 -21
  457. package/dist/views/LivePreview/usePopupWindow.js.map +1 -0
  458. package/dist/views/Login/LoginForm/index.d.ts.map +1 -1
  459. package/dist/views/Login/LoginForm/index.js +22 -36
  460. package/dist/views/Login/LoginForm/index.js.map +1 -0
  461. package/dist/views/Login/index.d.ts +4 -15
  462. package/dist/views/Login/index.d.ts.map +1 -1
  463. package/dist/views/Login/index.js +16 -88
  464. package/dist/views/Login/index.js.map +1 -0
  465. package/dist/views/Login/meta.d.ts +3 -0
  466. package/dist/views/Login/meta.d.ts.map +1 -0
  467. package/dist/views/Login/meta.js +11 -0
  468. package/dist/views/Login/meta.js.map +1 -0
  469. package/dist/views/Logout/LogoutClient.d.ts.map +1 -1
  470. package/dist/views/Logout/LogoutClient.js +15 -69
  471. package/dist/views/Logout/LogoutClient.js.map +1 -0
  472. package/dist/views/Logout/index.d.ts +5 -17
  473. package/dist/views/Logout/index.d.ts.map +1 -1
  474. package/dist/views/Logout/index.js +12 -53
  475. package/dist/views/Logout/index.js.map +1 -0
  476. package/dist/views/Logout/meta.d.ts +3 -0
  477. package/dist/views/Logout/meta.d.ts.map +1 -0
  478. package/dist/views/Logout/meta.js +11 -0
  479. package/dist/views/Logout/meta.js.map +1 -0
  480. package/dist/views/NotFound/index.client.d.ts +6 -0
  481. package/dist/views/NotFound/index.client.d.ts.map +1 -0
  482. package/dist/views/NotFound/index.client.js +41 -0
  483. package/dist/views/NotFound/index.client.js.map +1 -0
  484. package/dist/views/NotFound/index.d.ts +26 -5
  485. package/dist/views/NotFound/index.d.ts.map +1 -1
  486. package/dist/views/NotFound/index.js +34 -45
  487. package/dist/views/NotFound/index.js.map +1 -0
  488. package/dist/views/NotFound/index.scss +1 -0
  489. package/dist/views/NotFound/meta.d.ts +8 -0
  490. package/dist/views/NotFound/meta.d.ts.map +1 -0
  491. package/dist/views/NotFound/meta.js +11 -0
  492. package/dist/views/NotFound/meta.js.map +1 -0
  493. package/dist/views/ResetPassword/index.d.ts +4 -17
  494. package/dist/views/ResetPassword/index.d.ts.map +1 -1
  495. package/dist/views/ResetPassword/index.js +34 -62
  496. package/dist/views/ResetPassword/index.js.map +1 -0
  497. package/dist/views/ResetPassword/meta.d.ts +3 -0
  498. package/dist/views/ResetPassword/meta.d.ts.map +1 -0
  499. package/dist/views/ResetPassword/meta.js +11 -0
  500. package/dist/views/ResetPassword/meta.js.map +1 -0
  501. package/dist/views/Root/getCustomViewByRoute.d.ts +6 -0
  502. package/dist/views/Root/getCustomViewByRoute.d.ts.map +1 -0
  503. package/dist/views/Root/getCustomViewByRoute.js +19 -0
  504. package/dist/views/Root/getCustomViewByRoute.js.map +1 -0
  505. package/dist/views/Root/getViewFromConfig.d.ts +18 -0
  506. package/dist/views/Root/getViewFromConfig.d.ts.map +1 -0
  507. package/dist/views/Root/getViewFromConfig.js +138 -0
  508. package/dist/views/Root/getViewFromConfig.js.map +1 -0
  509. package/dist/views/Root/index.d.ts +13 -6
  510. package/dist/views/Root/index.d.ts.map +1 -1
  511. package/dist/views/Root/index.js +43 -226
  512. package/dist/views/Root/index.js.map +1 -0
  513. package/dist/views/Root/isPathMatchingRoute.d.ts +8 -0
  514. package/dist/views/Root/isPathMatchingRoute.d.ts.map +1 -0
  515. package/dist/views/Root/isPathMatchingRoute.js +16 -0
  516. package/dist/views/Root/isPathMatchingRoute.js.map +1 -0
  517. package/dist/views/Root/meta.d.ts +14 -0
  518. package/dist/views/Root/meta.d.ts.map +1 -0
  519. package/dist/views/Root/meta.js +159 -0
  520. package/dist/views/Root/meta.js.map +1 -0
  521. package/dist/views/Unauthorized/index.d.ts +4 -11
  522. package/dist/views/Unauthorized/index.d.ts.map +1 -1
  523. package/dist/views/Unauthorized/index.js +18 -42
  524. package/dist/views/Unauthorized/index.js.map +1 -0
  525. package/dist/views/Unauthorized/index.scss +36 -0
  526. package/dist/views/Unauthorized/meta.d.ts +3 -0
  527. package/dist/views/Unauthorized/meta.d.ts.map +1 -0
  528. package/dist/views/Unauthorized/meta.js +11 -0
  529. package/dist/views/Unauthorized/meta.js.map +1 -0
  530. package/dist/views/Verify/index.d.ts +4 -17
  531. package/dist/views/Verify/index.d.ts.map +1 -1
  532. package/dist/views/Verify/index.js +14 -55
  533. package/dist/views/Verify/index.js.map +1 -0
  534. package/dist/views/Verify/meta.d.ts +3 -0
  535. package/dist/views/Verify/meta.d.ts.map +1 -0
  536. package/dist/views/Verify/meta.js +11 -0
  537. package/dist/views/Verify/meta.js.map +1 -0
  538. package/dist/views/Version/Default/SetStepNav.d.ts +4 -3
  539. package/dist/views/Version/Default/SetStepNav.d.ts.map +1 -1
  540. package/dist/views/Version/Default/SetStepNav.js +36 -28
  541. package/dist/views/Version/Default/SetStepNav.js.map +1 -0
  542. package/dist/views/Version/Default/index.d.ts +1 -1
  543. package/dist/views/Version/Default/index.d.ts.map +1 -1
  544. package/dist/views/Version/Default/index.js +53 -93
  545. package/dist/views/Version/Default/index.js.map +1 -0
  546. package/dist/views/Version/Default/types.d.ts +4 -9
  547. package/dist/views/Version/Default/types.d.ts.map +1 -1
  548. package/dist/views/Version/Default/types.js +2 -5
  549. package/dist/views/Version/Default/types.js.map +1 -0
  550. package/dist/views/Version/RenderFieldsToDiff/Label/index.js +4 -20
  551. package/dist/views/Version/RenderFieldsToDiff/Label/index.js.map +1 -0
  552. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +1 -1
  553. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -1
  554. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +31 -47
  555. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -0
  556. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +1 -1
  557. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +1 -1
  558. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js +10 -26
  559. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js.map +1 -0
  560. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +1 -1
  561. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -1
  562. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +20 -35
  563. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -0
  564. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +1 -1
  565. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +7 -62
  566. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js.map +1 -0
  567. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +6 -2
  568. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -1
  569. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +16 -31
  570. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -0
  571. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +6 -2
  572. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -1
  573. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +11 -26
  574. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -0
  575. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +1 -1
  576. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +7 -62
  577. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js.map +1 -0
  578. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +1 -1
  579. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -1
  580. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +11 -27
  581. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -0
  582. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js +2 -12
  583. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js.map +1 -0
  584. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +54 -19
  585. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -1
  586. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +25 -40
  587. package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -0
  588. package/dist/views/Version/RenderFieldsToDiff/fields/styles.js +2 -12
  589. package/dist/views/Version/RenderFieldsToDiff/fields/styles.js.map +1 -0
  590. package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts +1 -1
  591. package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts.map +1 -1
  592. package/dist/views/Version/RenderFieldsToDiff/fields/types.js +2 -5
  593. package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +1 -0
  594. package/dist/views/Version/RenderFieldsToDiff/index.d.ts +1 -1
  595. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
  596. package/dist/views/Version/RenderFieldsToDiff/index.js +28 -43
  597. package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -0
  598. package/dist/views/Version/RenderFieldsToDiff/types.d.ts +2 -2
  599. package/dist/views/Version/RenderFieldsToDiff/types.d.ts.map +1 -1
  600. package/dist/views/Version/RenderFieldsToDiff/types.js +2 -5
  601. package/dist/views/Version/RenderFieldsToDiff/types.js.map +1 -0
  602. package/dist/views/Version/Restore/index.d.ts +1 -1
  603. package/dist/views/Version/Restore/index.d.ts.map +1 -1
  604. package/dist/views/Version/Restore/index.js +24 -71
  605. package/dist/views/Version/Restore/index.js.map +1 -0
  606. package/dist/views/Version/Restore/types.d.ts +1 -1
  607. package/dist/views/Version/Restore/types.d.ts.map +1 -1
  608. package/dist/views/Version/Restore/types.js +2 -5
  609. package/dist/views/Version/Restore/types.js.map +1 -0
  610. package/dist/views/Version/SelectComparison/index.d.ts +1 -1
  611. package/dist/views/Version/SelectComparison/index.d.ts.map +1 -1
  612. package/dist/views/Version/SelectComparison/index.js +53 -90
  613. package/dist/views/Version/SelectComparison/index.js.map +1 -0
  614. package/dist/views/Version/SelectComparison/types.d.ts +1 -1
  615. package/dist/views/Version/SelectComparison/types.d.ts.map +1 -1
  616. package/dist/views/Version/SelectComparison/types.js +2 -5
  617. package/dist/views/Version/SelectComparison/types.js.map +1 -0
  618. package/dist/views/Version/SelectLocales/index.d.ts +1 -1
  619. package/dist/views/Version/SelectLocales/index.d.ts.map +1 -1
  620. package/dist/views/Version/SelectLocales/index.js +11 -25
  621. package/dist/views/Version/SelectLocales/index.js.map +1 -0
  622. package/dist/views/Version/SelectLocales/types.d.ts +4 -4
  623. package/dist/views/Version/SelectLocales/types.d.ts.map +1 -1
  624. package/dist/views/Version/SelectLocales/types.js +2 -5
  625. package/dist/views/Version/SelectLocales/types.js.map +1 -0
  626. package/dist/views/Version/index.d.ts +2 -2
  627. package/dist/views/Version/index.d.ts.map +1 -1
  628. package/dist/views/Version/index.js +35 -42
  629. package/dist/views/Version/index.js.map +1 -0
  630. package/dist/views/Version/meta.d.ts +1 -1
  631. package/dist/views/Version/meta.d.ts.map +1 -1
  632. package/dist/views/Version/meta.js +13 -19
  633. package/dist/views/Version/meta.js.map +1 -0
  634. package/dist/views/Version/shared.js +3 -21
  635. package/dist/views/Version/shared.js.map +1 -0
  636. package/dist/views/Versions/buildColumns.d.ts +2 -2
  637. package/dist/views/Versions/buildColumns.d.ts.map +1 -1
  638. package/dist/views/Versions/buildColumns.js +36 -42
  639. package/dist/views/Versions/buildColumns.js.map +1 -0
  640. package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +1 -1
  641. package/dist/views/Versions/cells/AutosaveCell/index.js +10 -59
  642. package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -0
  643. package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +1 -1
  644. package/dist/views/Versions/cells/CreatedAt/index.js +18 -25
  645. package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -0
  646. package/dist/views/Versions/cells/ID/index.js +6 -57
  647. package/dist/views/Versions/cells/ID/index.js.map +1 -0
  648. package/dist/views/Versions/index.client.d.ts +1 -6
  649. package/dist/views/Versions/index.client.d.ts.map +1 -1
  650. package/dist/views/Versions/index.client.js +31 -117
  651. package/dist/views/Versions/index.client.js.map +1 -0
  652. package/dist/views/Versions/index.d.ts +2 -3
  653. package/dist/views/Versions/index.d.ts.map +1 -1
  654. package/dist/views/Versions/index.js +40 -72
  655. package/dist/views/Versions/index.js.map +1 -0
  656. package/dist/views/Versions/meta.d.ts +1 -1
  657. package/dist/views/Versions/meta.d.ts.map +1 -1
  658. package/dist/views/Versions/meta.js +7 -17
  659. package/dist/views/Versions/meta.js.map +1 -0
  660. package/dist/views/Versions/types.js +2 -5
  661. package/dist/views/Versions/types.js.map +1 -0
  662. package/dist/webpackEntry.d.ts +5 -0
  663. package/dist/webpackEntry.d.ts.map +1 -0
  664. package/dist/webpackEntry.js +6 -0
  665. package/dist/webpackEntry.js.map +1 -0
  666. package/dist/withPayload.d.ts +7 -2
  667. package/dist/withPayload.d.ts.map +1 -1
  668. package/dist/withPayload.js +7 -8
  669. package/dist/withPayload.js.map +1 -0
  670. package/package.json +38 -53
  671. package/src/index.js +1 -0
  672. package/dist/295bdb5117ce718dc7ce.woff2 +0 -1
  673. package/dist/3dec23c585a4abb5db73.woff +0 -1
  674. package/dist/542802f243f0fcaf55b3.woff2 +0 -1
  675. package/dist/5e5b3593b8911609ead8.woff +0 -1
  676. package/dist/64ee2a3127da82b7ea68.woff2 +0 -1
  677. package/dist/67a3a8f8301a0429df2d.woff +0 -1
  678. package/dist/8d0dc94a123c04b123f0.woff +0 -1
  679. package/dist/94db87589768ca1eec3c.woff2 +0 -1
  680. package/dist/997a8ea7da8ec3068210.woff2 +0 -1
  681. package/dist/9ab00e972f6f94ca3ff4.woff +0 -1
  682. package/dist/ab1f8b95d9d1911a4a3e.woff +0 -1
  683. package/dist/ba5a15d71add74a81bb9.woff +0 -1
  684. package/dist/bd2c036744af4b004ea6.woff2 +0 -1
  685. package/dist/bin/index.d.ts +0 -2
  686. package/dist/bin/index.d.ts.map +0 -1
  687. package/dist/bin/index.js +0 -37
  688. package/dist/bin/install.d.ts +0 -4
  689. package/dist/bin/install.d.ts.map +0 -1
  690. package/dist/bin/install.js +0 -77
  691. package/dist/cc56c782af93204aba75.woff +0 -1
  692. package/dist/d377d6e20b542fe3b375.woff2 +0 -1
  693. package/dist/e415ace668b22ac52c65.woff2 +0 -1
  694. package/dist/exports/index.d.ts +0 -2
  695. package/dist/exports/index.d.ts.map +0 -1
  696. package/dist/exports/index.js +0 -13
  697. package/dist/graphql/registerSchema.d.ts +0 -2
  698. package/dist/graphql/registerSchema.d.ts.map +0 -1
  699. package/dist/graphql/registerSchema.js +0 -3
  700. package/dist/index.d.ts +0 -7
  701. package/dist/index.d.ts.map +0 -1
  702. package/dist/layouts/Admin/index.d.ts +0 -12
  703. package/dist/layouts/Admin/index.d.ts.map +0 -1
  704. package/dist/layouts/Admin/index.js +0 -44
  705. package/dist/layouts/Document/index.d.ts +0 -14
  706. package/dist/layouts/Document/index.d.ts.map +0 -1
  707. package/dist/layouts/Document/index.js +0 -82
  708. package/dist/routes/rest/RouteError.d.ts.map +0 -1
  709. package/dist/routes/rest/RouteError.js +0 -104
  710. package/dist/routes/rest/[collection]/file/[filename]/route.d.ts +0 -8
  711. package/dist/routes/rest/[collection]/file/[filename]/route.d.ts.map +0 -1
  712. package/dist/routes/rest/[collection]/file/[filename]/route.js +0 -116
  713. package/dist/styles.css +0 -1
  714. package/dist/utilities/auth.d.ts +0 -10
  715. package/dist/utilities/auth.d.ts.map +0 -1
  716. package/dist/utilities/auth.js +0 -42
  717. package/dist/utilities/createClientConfig.d.ts +0 -5
  718. package/dist/utilities/createClientConfig.d.ts.map +0 -1
  719. package/dist/utilities/createClientConfig.js +0 -120
  720. package/dist/utilities/getNextI18n.d.ts +0 -7
  721. package/dist/utilities/getNextI18n.d.ts.map +0 -1
  722. package/dist/utilities/getNextI18n.js +0 -28
  723. package/dist/utilities/getNextT.d.ts +0 -7
  724. package/dist/utilities/getNextT.d.ts.map +0 -1
  725. package/dist/utilities/getNextT.js +0 -28
  726. package/dist/views/Document/getCustomViewByPath.d.ts +0 -4
  727. package/dist/views/Document/getCustomViewByPath.d.ts.map +0 -1
  728. package/dist/views/Document/getCustomViewByPath.js +0 -26
  729. package/dist/views/Edit/Default/RenderCustomView.d.ts +0 -2
  730. package/dist/views/Edit/Default/RenderCustomView.d.ts.map +0 -1
  731. package/dist/views/Edit/Default/RenderCustomView.js +0 -3
  732. package/dist/views/Edit/types.d.js +0 -7
  733. package/dist/views/Edit/types.d.ts +0 -32
  734. package/dist/views/Edit/types.d.ts.map +0 -1
  735. package/dist/views/Edit/types.js +0 -6
  736. package/dist/views/List/Default/Cell/cellTypes.spec.js +0 -234
  737. package/dist/views/List/Default/Cell/fields/Array/index.d.ts +0 -7
  738. package/dist/views/List/Default/Cell/fields/Array/index.d.ts.map +0 -1
  739. package/dist/views/List/Default/Cell/fields/Array/index.js +0 -27
  740. package/dist/views/List/Default/Cell/fields/Blocks/index.d.ts +0 -8
  741. package/dist/views/List/Default/Cell/fields/Blocks/index.d.ts.map +0 -1
  742. package/dist/views/List/Default/Cell/fields/Blocks/index.js +0 -45
  743. package/dist/views/List/Default/Cell/fields/Checkbox/index.d.ts +0 -5
  744. package/dist/views/List/Default/Cell/fields/Checkbox/index.d.ts.map +0 -1
  745. package/dist/views/List/Default/Cell/fields/Checkbox/index.js +0 -23
  746. package/dist/views/List/Default/Cell/fields/Checkbox/index.scss +0 -22
  747. package/dist/views/List/Default/Cell/fields/Code/index.d.ts +0 -8
  748. package/dist/views/List/Default/Cell/fields/Code/index.d.ts.map +0 -1
  749. package/dist/views/List/Default/Cell/fields/Code/index.js +0 -29
  750. package/dist/views/List/Default/Cell/fields/Code/index.scss +0 -27
  751. package/dist/views/List/Default/Cell/fields/Date/index.d.ts +0 -7
  752. package/dist/views/List/Default/Cell/fields/Date/index.d.ts.map +0 -1
  753. package/dist/views/List/Default/Cell/fields/Date/index.js +0 -26
  754. package/dist/views/List/Default/Cell/fields/File/index.d.ts +0 -7
  755. package/dist/views/List/Default/Cell/fields/File/index.d.ts.map +0 -1
  756. package/dist/views/List/Default/Cell/fields/File/index.js +0 -39
  757. package/dist/views/List/Default/Cell/fields/File/index.scss +0 -23
  758. package/dist/views/List/Default/Cell/fields/JSON/index.d.ts +0 -5
  759. package/dist/views/List/Default/Cell/fields/JSON/index.d.ts.map +0 -1
  760. package/dist/views/List/Default/Cell/fields/JSON/index.js +0 -26
  761. package/dist/views/List/Default/Cell/fields/JSON/index.scss +0 -22
  762. package/dist/views/List/Default/Cell/fields/Relationship/index.d.ts +0 -9
  763. package/dist/views/List/Default/Cell/fields/Relationship/index.d.ts.map +0 -1
  764. package/dist/views/List/Default/Cell/fields/Relationship/index.js +0 -121
  765. package/dist/views/List/Default/Cell/fields/Relationship/index.scss +0 -3
  766. package/dist/views/List/Default/Cell/fields/Richtext/index.d.ts +0 -2
  767. package/dist/views/List/Default/Cell/fields/Richtext/index.d.ts.map +0 -1
  768. package/dist/views/List/Default/Cell/fields/Richtext/index.js +0 -3
  769. package/dist/views/List/Default/Cell/fields/Select/index.d.ts +0 -7
  770. package/dist/views/List/Default/Cell/fields/Select/index.d.ts.map +0 -1
  771. package/dist/views/List/Default/Cell/fields/Select/index.js +0 -40
  772. package/dist/views/List/Default/Cell/fields/Textarea/index.d.ts +0 -4
  773. package/dist/views/List/Default/Cell/fields/Textarea/index.d.ts.map +0 -1
  774. package/dist/views/List/Default/Cell/fields/Textarea/index.js +0 -23
  775. package/dist/views/List/Default/Cell/fields/index.d.ts +0 -17
  776. package/dist/views/List/Default/Cell/fields/index.d.ts.map +0 -1
  777. package/dist/views/List/Default/Cell/fields/index.js +0 -36
  778. package/dist/views/List/Default/Cell/index.d.ts +0 -4
  779. package/dist/views/List/Default/Cell/index.d.ts.map +0 -1
  780. package/dist/views/List/Default/Cell/index.js +0 -89
  781. package/dist/views/List/Default/RelationshipProvider/index.d.ts +0 -20
  782. package/dist/views/List/Default/RelationshipProvider/index.d.ts.map +0 -1
  783. package/dist/views/List/Default/RelationshipProvider/index.js +0 -153
  784. package/dist/views/List/Default/RelationshipProvider/reducer.d.ts +0 -19
  785. package/dist/views/List/Default/RelationshipProvider/reducer.d.ts.map +0 -1
  786. package/dist/views/List/Default/RelationshipProvider/reducer.js +0 -55
  787. package/dist/views/Unauthorized/UnauthorizedClient.d.ts +0 -5
  788. package/dist/views/Unauthorized/UnauthorizedClient.d.ts.map +0 -1
  789. package/dist/views/Unauthorized/UnauthorizedClient.js +0 -27
  790. package/src/index.ts +0 -6
  791. /package/dist/{static/SuisseIntl-Bold.2211c494.woff → prod/payload/SuisseIntl-Bold.woff} +0 -0
  792. /package/dist/{static/SuisseIntl-Bold.9c7dfd00.woff2 → prod/payload/SuisseIntl-Bold.woff2} +0 -0
  793. /package/dist/{static/SuisseIntl-Medium.d7aeda9e.woff → prod/payload/SuisseIntl-Medium.woff} +0 -0
  794. /package/dist/{static/SuisseIntl-Medium.5b718d97.woff2 → prod/payload/SuisseIntl-Medium.woff2} +0 -0
  795. /package/dist/{static/SuisseIntl-SemiBold.e7caa9e1.woff → prod/payload/SuisseIntl-SemiBold.woff} +0 -0
  796. /package/dist/{static/SuisseIntl-SemiBold.40ad7515.woff2 → prod/payload/SuisseIntl-SemiBold.woff2} +0 -0
  797. /package/dist/{static/SuisseIntl.8b4ddd0d.woff → prod/payload/SuisseIntl.woff} +0 -0
  798. /package/dist/{static/SuisseIntl.51922ceb.woff2 → prod/payload/SuisseIntl.woff2} +0 -0
  799. /package/dist/{static/merriweather-v30-latin-900.efe8f6a3.woff → prod/payload/merriweather-v30-latin-900.woff} +0 -0
  800. /package/dist/{static/merriweather-v30-latin-900.52244336.woff2 → prod/payload/merriweather-v30-latin-900.woff2} +0 -0
  801. /package/dist/{static/merriweather-v30-latin-900italic.78b8935f.woff → prod/payload/merriweather-v30-latin-900italic.woff} +0 -0
  802. /package/dist/{static/merriweather-v30-latin-900italic.f53bb8d4.woff2 → prod/payload/merriweather-v30-latin-900italic.woff2} +0 -0
  803. /package/dist/{static/merriweather-v30-latin-italic.8f612153.woff → prod/payload/merriweather-v30-latin-italic.woff} +0 -0
  804. /package/dist/{static/merriweather-v30-latin-italic.a1cfdc5b.woff2 → prod/payload/merriweather-v30-latin-italic.woff2} +0 -0
  805. /package/dist/{static/merriweather-v30-latin-regular.787999a6.woff → prod/payload/merriweather-v30-latin-regular.woff} +0 -0
  806. /package/dist/{static/merriweather-v30-latin-regular.e009f214.woff2 → prod/payload/merriweather-v30-latin-regular.woff2} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/me.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD,eAAO,MAAM,EAAE,EAAE,sBAsBhB,CAAA"}
1
+ {"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/me.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,EAAE,EAAE,sBAsBhB,CAAA"}
@@ -1,24 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "me", {
6
- enumerable: true,
7
- get: function() {
8
- return me;
9
- }
10
- });
11
- const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
12
- const _auth = require("payload/auth");
13
- const _operations = require("payload/operations");
14
- function _interop_require_default(obj) {
15
- return obj && obj.__esModule ? obj : {
16
- default: obj
17
- };
18
- }
19
- const me = async ({ collection, req })=>{
20
- const currentToken = (0, _auth.extractJWT)(req);
21
- const result = await (0, _operations.meOperation)({
1
+ import httpStatus from 'http-status';
2
+ import { extractJWT } from 'payload/auth';
3
+ import { meOperation } from 'payload/operations';
4
+ export const me = async ({ collection, req })=>{
5
+ const currentToken = extractJWT(req);
6
+ const result = await meOperation({
22
7
  collection,
23
8
  currentToken,
24
9
  req
@@ -30,8 +15,8 @@ const me = async ({ collection, req })=>{
30
15
  ...result,
31
16
  message: req.t('authentication:account')
32
17
  }, {
33
- status: _httpstatus.default.OK
18
+ status: httpStatus.OK
34
19
  });
35
20
  };
36
21
 
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL21lLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBodHRwU3RhdHVzIGZyb20gJ2h0dHAtc3RhdHVzJ1xuaW1wb3J0IHsgZXh0cmFjdEpXVCB9IGZyb20gJ3BheWxvYWQvYXV0aCdcbmltcG9ydCB7IG1lT3BlcmF0aW9uIH0gZnJvbSAncGF5bG9hZC9vcGVyYXRpb25zJ1xuXG5pbXBvcnQgdHlwZSB7IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgfSBmcm9tICcuLi90eXBlcydcblxuZXhwb3J0IGNvbnN0IG1lOiBDb2xsZWN0aW9uUm91dGVIYW5kbGVyID0gYXN5bmMgKHsgY29sbGVjdGlvbiwgcm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xNQUFNLENBQUNDLElBQUksQ0FBQ0Msd0JBQXdCLEVBQUU7UUFDbkQsT0FBT0osT0FBT0ssS0FBSztJQUNyQjtJQUVBLE9BQU9DLFNBQVNDLElBQUksQ0FDbEI7UUFDRSxHQUFHUCxNQUFNO1FBQ1RRLFNBQVNYLElBQUlZLENBQUMsQ0FBQztJQUNqQixHQUNBO1FBQ0VDLFFBQVFDLG1CQUFVLENBQUNDLEVBQUU7SUFDdkI7QUFFSiJ9
22
+ //# sourceMappingURL=me.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/routes/rest/auth/me.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { extractJWT } from 'payload/auth'\nimport { meOperation } from 'payload/operations'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nexport const me: CollectionRouteHandler = async ({ collection, req }) => {\n const currentToken = extractJWT(req)\n\n const result = await meOperation({\n collection,\n currentToken,\n req,\n })\n\n if (collection.config.auth.removeTokenFromResponses) {\n delete result.token\n }\n\n return Response.json(\n {\n ...result,\n message: req.t('authentication:account'),\n },\n {\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","extractJWT","meOperation","me","collection","req","currentToken","result","config","auth","removeTokenFromResponses","token","Response","json","message","t","status","OK"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,UAAU,QAAQ,eAAc;AACzC,SAASC,WAAW,QAAQ,qBAAoB;AAIhD,OAAO,MAAMC,KAA6B,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IAClE,MAAMC,eAAeL,WAAWI;IAEhC,MAAME,SAAS,MAAML,YAAY;QAC/BE;QACAE;QACAD;IACF;IAEA,IAAID,WAAWI,MAAM,CAACC,IAAI,CAACC,wBAAwB,EAAE;QACnD,OAAOH,OAAOI,KAAK;IACrB;IAEA,OAAOC,SAASC,IAAI,CAClB;QACE,GAAGN,MAAM;QACTO,SAAST,IAAIU,CAAC,CAAC;IACjB,GACA;QACEC,QAAQhB,WAAWiB,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +1,3 @@
1
- import type { CollectionRouteHandler } from '../types';
1
+ import type { CollectionRouteHandler } from '../types.js';
2
2
  export declare const refresh: CollectionRouteHandler;
3
3
  //# sourceMappingURL=refresh.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/refresh.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD,eAAO,MAAM,OAAO,EAAE,sBA4CrB,CAAA"}
1
+ {"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/refresh.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,OAAO,EAAE,sBA4CrB,CAAA"}
@@ -1,37 +1,23 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "refresh", {
6
- enumerable: true,
7
- get: function() {
8
- return refresh;
9
- }
10
- });
11
- const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
12
- const _auth = require("payload/auth");
13
- const _operations = require("payload/operations");
14
- function _interop_require_default(obj) {
15
- return obj && obj.__esModule ? obj : {
16
- default: obj
17
- };
18
- }
19
- const refresh = async ({ collection, req })=>{
20
- const token = typeof req.data?.token === 'string' ? req.data.token : (0, _auth.extractJWT)(req);
1
+ import httpStatus from 'http-status';
2
+ import { extractJWT } from 'payload/auth';
3
+ import { generatePayloadCookie } from 'payload/auth';
4
+ import { refreshOperation } from 'payload/operations';
5
+ export const refresh = async ({ collection, req })=>{
6
+ const token = typeof req.data?.token === 'string' ? req.data.token : extractJWT(req);
21
7
  if (!token) {
22
8
  return Response.json({
23
9
  // TODO(translate)
24
10
  message: 'Token not provided.'
25
11
  }, {
26
- status: _httpstatus.default.UNAUTHORIZED
12
+ status: httpStatus.UNAUTHORIZED
27
13
  });
28
14
  }
29
- const result = await (0, _operations.refreshOperation)({
15
+ const result = await refreshOperation({
30
16
  collection,
31
17
  req,
32
18
  token
33
19
  });
34
- const cookie = (0, _auth.generatePayloadCookie)({
20
+ const cookie = generatePayloadCookie({
35
21
  collectionConfig: collection.config,
36
22
  payload: req.payload,
37
23
  token: result.refreshedToken
@@ -47,8 +33,8 @@ const refresh = async ({ collection, req })=>{
47
33
  headers: new Headers({
48
34
  'Set-Cookie': cookie
49
35
  }),
50
- status: _httpstatus.default.OK
36
+ status: httpStatus.OK
51
37
  });
52
38
  };
53
39
 
54
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3JlZnJlc2gudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGh0dHBTdGF0dXMgZnJvbSAnaHR0cC1zdGF0dXMnXG5pbXBvcnQgeyBleHRyYWN0SldUIH0gZnJvbSAncGF5bG9hZC9hdXRoJ1xuaW1wb3J0IHsgZ2VuZXJhdGVQYXlsb2FkQ29va2llIH0gZnJvbSAncGF5bG9hZC9hdXRoJ1xuaW1wb3J0IHsgcmVmcmVzaE9wZXJhdGlvbiB9IGZyb20gJ3BheWxvYWQvb3BlcmF0aW9ucydcblxuaW1wb3J0IHR5cGUgeyBDb2xsZWN0aW9uUm91dGVIYW5kbGVyIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmV4cG9ydCBjb25zdCByZWZyZXNoOiBDb2xsZWN0aW9uUm91dGVIYW5kbGVyID0gYXN5bmMgKHsgY29sbGVjdGlvbiwgcmVxIH0pID0+IHtcbiAgY29uc3QgdG9rZW4gPSB0eXBlb2YgcmVxLmRhdGE/LnRva2VuID09PSAnc3RyaW5nJyA/IHJlcS5kYXRhLnRva2VuIDogZXh0cm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9TLE9BQU9PLGNBQWM7SUFDOUI7SUFFQSxJQUFJbEIsV0FBV2dCLE1BQU0sQ0FBQ0csSUFBSSxDQUFDQyx3QkFBd0IsRUFBRTtRQUNuRCxPQUFPVCxPQUFPTyxjQUFjO0lBQzlCO0lBRUEsT0FBT2IsU0FBU0MsSUFBSSxDQUNsQjtRQUNFLGtCQUFrQjtRQUNsQkMsU0FBUztRQUNULEdBQUdJLE1BQU07SUFDWCxHQUNBO1FBQ0VVLFNBQVMsSUFBSUMsUUFBUTtZQUNuQixjQUFjVDtRQUNoQjtRQUNBTCxRQUFRQyxtQkFBVSxDQUFDYyxFQUFFO0lBQ3ZCO0FBRUoifQ==
40
+ //# sourceMappingURL=refresh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/routes/rest/auth/refresh.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { extractJWT } from 'payload/auth'\nimport { generatePayloadCookie } from 'payload/auth'\nimport { refreshOperation } from 'payload/operations'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nexport const refresh: CollectionRouteHandler = async ({ collection, req }) => {\n const token = typeof req.data?.token === 'string' ? req.data.token : extractJWT(req)\n\n if (!token) {\n return Response.json(\n {\n // TODO(translate)\n message: 'Token not provided.',\n },\n {\n status: httpStatus.UNAUTHORIZED,\n },\n )\n }\n\n const result = await refreshOperation({\n collection,\n req,\n token,\n })\n\n const cookie = generatePayloadCookie({\n collectionConfig: collection.config,\n payload: req.payload,\n token: result.refreshedToken,\n })\n\n if (collection.config.auth.removeTokenFromResponses) {\n delete result.refreshedToken\n }\n\n return Response.json(\n {\n // TODO(translate)\n message: 'Token refresh successful',\n ...result,\n },\n {\n headers: new Headers({\n 'Set-Cookie': cookie,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","extractJWT","generatePayloadCookie","refreshOperation","refresh","collection","req","token","data","Response","json","message","status","UNAUTHORIZED","result","cookie","collectionConfig","config","payload","refreshedToken","auth","removeTokenFromResponses","headers","Headers","OK"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,UAAU,QAAQ,eAAc;AACzC,SAASC,qBAAqB,QAAQ,eAAc;AACpD,SAASC,gBAAgB,QAAQ,qBAAoB;AAIrD,OAAO,MAAMC,UAAkC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACvE,MAAMC,QAAQ,OAAOD,IAAIE,IAAI,EAAED,UAAU,WAAWD,IAAIE,IAAI,CAACD,KAAK,GAAGN,WAAWK;IAEhF,IAAI,CAACC,OAAO;QACV,OAAOE,SAASC,IAAI,CAClB;YACE,kBAAkB;YAClBC,SAAS;QACX,GACA;YACEC,QAAQZ,WAAWa,YAAY;QACjC;IAEJ;IAEA,MAAMC,SAAS,MAAMX,iBAAiB;QACpCE;QACAC;QACAC;IACF;IAEA,MAAMQ,SAASb,sBAAsB;QACnCc,kBAAkBX,WAAWY,MAAM;QACnCC,SAASZ,IAAIY,OAAO;QACpBX,OAAOO,OAAOK,cAAc;IAC9B;IAEA,IAAId,WAAWY,MAAM,CAACG,IAAI,CAACC,wBAAwB,EAAE;QACnD,OAAOP,OAAOK,cAAc;IAC9B;IAEA,OAAOV,SAASC,IAAI,CAClB;QACE,kBAAkB;QAClBC,SAAS;QACT,GAAGG,MAAM;IACX,GACA;QACEQ,SAAS,IAAIC,QAAQ;YACnB,cAAcR;QAChB;QACAH,QAAQZ,WAAWwB,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +1,3 @@
1
- import type { CollectionRouteHandler } from '../types';
1
+ import type { CollectionRouteHandler } from '../types.js';
2
2
  export declare const registerFirstUser: CollectionRouteHandler;
3
3
  //# sourceMappingURL=registerFirstUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerFirstUser.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/registerFirstUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD,eAAO,MAAM,iBAAiB,EAAE,sBA+B/B,CAAA"}
1
+ {"version":3,"file":"registerFirstUser.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/registerFirstUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,iBAAiB,EAAE,sBAkC/B,CAAA"}
@@ -1,31 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "registerFirstUser", {
6
- enumerable: true,
7
- get: function() {
8
- return registerFirstUser;
9
- }
10
- });
11
- const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
12
- const _auth = require("payload/auth");
13
- const _operations = require("payload/operations");
14
- function _interop_require_default(obj) {
15
- return obj && obj.__esModule ? obj : {
16
- default: obj
17
- };
18
- }
19
- const registerFirstUser = async ({ collection, req })=>{
20
- const result = await (0, _operations.registerFirstUserOperation)({
1
+ import httpStatus from 'http-status';
2
+ import { generatePayloadCookie } from 'payload/auth';
3
+ import { registerFirstUserOperation } from 'payload/operations';
4
+ export const registerFirstUser = async ({ collection, req })=>{
5
+ const data = req.data;
6
+ const result = await registerFirstUserOperation({
21
7
  collection,
22
8
  data: {
23
- email: typeof req.data?.email === 'string' ? req.data.email : '',
24
- password: typeof req.data?.password === 'string' ? req.data.password : ''
9
+ ...data,
10
+ email: typeof data?.email === 'string' ? data.email : '',
11
+ password: typeof data?.password === 'string' ? data.password : ''
25
12
  },
26
13
  req
27
14
  });
28
- const cookie = (0, _auth.generatePayloadCookie)({
15
+ const cookie = generatePayloadCookie({
29
16
  collectionConfig: collection.config,
30
17
  payload: req.payload,
31
18
  token: result.token
@@ -40,8 +27,8 @@ const registerFirstUser = async ({ collection, req })=>{
40
27
  headers: new Headers({
41
28
  'Set-Cookie': cookie
42
29
  }),
43
- status: _httpstatus.default.OK
30
+ status: httpStatus.OK
44
31
  });
45
32
  };
46
33
 
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3JlZ2lzdGVyRmlyc3RVc2VyLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBodHRwU3RhdHVzIGZyb20gJ2h0dHAtc3RhdHVzJ1xuaW1wb3J0IHsgZ2VuZXJhdGVQYXlsb2FkQ29va2llIH0gZnJvbSAncGF5bG9hZC9hdXRoJ1xuaW1wb3J0IHsgcmVnaXN0ZXJGaXJzdFVzZXJPcGVyYXRpb24gfSBmcm9tICdwYXlsb2FkL29wZXJhdGlvbnMnXG5cbmltcG9ydCB0eXBlIHsgQ29sbGVjdGlvblJvdXRlSGFuZGxlciB9IGZyb20gJy4uL3R5cGVzJ1xuXG5leHBvcnQgY29uc3QgcmVnaXN0ZXJGaXJzdFVzZXI6IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgPSBhc3luYyAoeyBjb2xsZWN0aW9uLCByZXEgfSkgPT4ge1xuICBjb25zdCByZXN1bHQgPSBhd2FpdCByZWdpc3RlckZpcnN0VXNlck9wZXJhdGlvbih7XG4gICAgY29sbGVjdGlvbixcbiAgICBkYXRhOiB7XG4gICAgICBlbWFpbDogdHlwZW9mIHJlcS5kYXRhPy5lbWFpbCA9PT0gJ3N0cmluZycgPyByZXEuZGF0YS5lbWFpbCA6ICcnLFxuICAgICAgcGFzc3dvcmQ6IHR5cGVvZiByZXEuZGF0YT8ucGFzc3dvcmQgPT09ICdzdHJpbmcnID8gcmVxLmRhdGEucGFzc3dvcmQgOiAnJyxcbiAgICB9LFxuICAgIHJlcSxcbiAgfSlcblxuICBjb25zdCBjb29raWUgPSBnZW5lcmF0ZVBheWxvYWRDb29raWUoe1xuICAgIGNvbGxlY3Rpb25Db25maWc6IGNvbGxlY3Rpb24uY29uZ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UEsc0NBQTBCLEVBQUM7UUFDOUNIO1FBQ0FJLE1BQU07WUFDSkMsT0FBTyxPQUFPSixJQUFJRyxJQUFJLEVBQUVDLFVBQVUsV0FBV0osSUFBSUcsSUFBSSxDQUFDQyxLQUFLLEdBQUc7WUFDOURDLFVBQVUsT0FBT0wsSUFBSUcsSUFBSSxFQUFFRSxhQUFhLFdBQVdMLElBQUlHLElBQUksQ0FBQ0UsUUFBUSxHQUFHO1FBQ3pFO1FBQ0FMO0lBQ0Y7SUFFQSxNQUFNTSxTQUFTQyxJQUFBQSwyQkFBcUIsRUFBQztRQUNuQ0Msa0JBQWtCVCxXQUFXVSxNQUFNO1FBQ25DQyxTQUFTVixJQUFJVSxPQUFPO1FBQ3BCQyxPQUFPVixPQUFPVSxLQUFLO0lBQ3JCO0lBRUEsT0FBT0MsU0FBU0MsSUFBSSxDQUNsQjtRQUNFQyxLQUFLYixPQUFPYSxHQUFHO1FBQ2Ysa0JBQWtCO1FBQ2xCQyxTQUFTO1FBQ1RKLE9BQU9WLE9BQU9VLEtBQUs7UUFDbkJLLE1BQU1mLE9BQU9lLElBQUk7SUFDbkIsR0FDQTtRQUNFQyxTQUFTLElBQUlDLFFBQVE7WUFDbkIsY0FBY1o7UUFDaEI7UUFDQWEsUUFBUUMsbUJBQVUsQ0FBQ0MsRUFBRTtJQUN2QjtBQUVKIn0=
34
+ //# sourceMappingURL=registerFirstUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/routes/rest/auth/registerFirstUser.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { generatePayloadCookie } from 'payload/auth'\nimport { registerFirstUserOperation } from 'payload/operations'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nexport const registerFirstUser: CollectionRouteHandler = async ({ collection, req }) => {\n const data = req.data\n\n const result = await registerFirstUserOperation({\n collection,\n data: {\n ...data,\n email: typeof data?.email === 'string' ? data.email : '',\n password: typeof data?.password === 'string' ? data.password : '',\n },\n req,\n })\n\n const cookie = generatePayloadCookie({\n collectionConfig: collection.config,\n payload: req.payload,\n token: result.token,\n })\n\n return Response.json(\n {\n exp: result.exp,\n // TODO(translate)\n message: 'Successfully registered first user.',\n token: result.token,\n user: result.user,\n },\n {\n headers: new Headers({\n 'Set-Cookie': cookie,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","generatePayloadCookie","registerFirstUserOperation","registerFirstUser","collection","req","data","result","email","password","cookie","collectionConfig","config","payload","token","Response","json","exp","message","user","headers","Headers","status","OK"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,qBAAqB,QAAQ,eAAc;AACpD,SAASC,0BAA0B,QAAQ,qBAAoB;AAI/D,OAAO,MAAMC,oBAA4C,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACjF,MAAMC,OAAOD,IAAIC,IAAI;IAErB,MAAMC,SAAS,MAAML,2BAA2B;QAC9CE;QACAE,MAAM;YACJ,GAAGA,IAAI;YACPE,OAAO,OAAOF,MAAME,UAAU,WAAWF,KAAKE,KAAK,GAAG;YACtDC,UAAU,OAAOH,MAAMG,aAAa,WAAWH,KAAKG,QAAQ,GAAG;QACjE;QACAJ;IACF;IAEA,MAAMK,SAAST,sBAAsB;QACnCU,kBAAkBP,WAAWQ,MAAM;QACnCC,SAASR,IAAIQ,OAAO;QACpBC,OAAOP,OAAOO,KAAK;IACrB;IAEA,OAAOC,SAASC,IAAI,CAClB;QACEC,KAAKV,OAAOU,GAAG;QACf,kBAAkB;QAClBC,SAAS;QACTJ,OAAOP,OAAOO,KAAK;QACnBK,MAAMZ,OAAOY,IAAI;IACnB,GACA;QACEC,SAAS,IAAIC,QAAQ;YACnB,cAAcX;QAChB;QACAY,QAAQtB,WAAWuB,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +1,3 @@
1
- import type { CollectionRouteHandler } from '../types';
1
+ import type { CollectionRouteHandler } from '../types.js';
2
2
  export declare const resetPassword: CollectionRouteHandler;
3
3
  //# sourceMappingURL=resetPassword.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resetPassword.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/resetPassword.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD,eAAO,MAAM,aAAa,EAAE,sBAqC3B,CAAA"}
1
+ {"version":3,"file":"resetPassword.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/resetPassword.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,aAAa,EAAE,sBAqC3B,CAAA"}
@@ -1,25 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "resetPassword", {
6
- enumerable: true,
7
- get: function() {
8
- return resetPassword;
9
- }
10
- });
11
- const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
12
- const _auth = require("payload/auth");
13
- const _operations = require("payload/operations");
14
- function _interop_require_default(obj) {
15
- return obj && obj.__esModule ? obj : {
16
- default: obj
17
- };
18
- }
19
- const resetPassword = async ({ collection, req })=>{
1
+ import httpStatus from 'http-status';
2
+ import { generatePayloadCookie } from 'payload/auth';
3
+ import { resetPasswordOperation } from 'payload/operations';
4
+ export const resetPassword = async ({ collection, req })=>{
20
5
  const { searchParams } = req;
21
6
  const depth = searchParams.get('depth');
22
- const result = await (0, _operations.resetPasswordOperation)({
7
+ const result = await resetPasswordOperation({
23
8
  collection,
24
9
  data: {
25
10
  password: typeof req.data?.password === 'string' ? req.data.password : '',
@@ -28,7 +13,7 @@ const resetPassword = async ({ collection, req })=>{
28
13
  depth: depth ? Number(depth) : undefined,
29
14
  req
30
15
  });
31
- const cookie = (0, _auth.generatePayloadCookie)({
16
+ const cookie = generatePayloadCookie({
32
17
  collectionConfig: collection.config,
33
18
  payload: req.payload,
34
19
  token: result.token
@@ -44,8 +29,8 @@ const resetPassword = async ({ collection, req })=>{
44
29
  headers: new Headers({
45
30
  'Set-Cookie': cookie
46
31
  }),
47
- status: _httpstatus.default.OK
32
+ status: httpStatus.OK
48
33
  });
49
34
  };
50
35
 
51
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3Jlc2V0UGFzc3dvcmQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGh0dHBTdGF0dXMgZnJvbSAnaHR0cC1zdGF0dXMnXG5pbXBvcnQgeyBnZW5lcmF0ZVBheWxvYWRDb29raWUgfSBmcm9tICdwYXlsb2FkL2F1dGgnXG5pbXBvcnQgeyByZXNldFBhc3N3b3JkT3BlcmF0aW9uIH0gZnJvbSAncGF5bG9hZC9vcGVyYXRpb25zJ1xuXG5pbXBvcnQgdHlwZSB7IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgfSBmcm9tICcuLi90eXBlcydcblxuZXhwb3J0IGNvbnN0IHJlc2V0UGFzc3dvcmQ6IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgPSBhc3luYyAoeyBjb2xsZWN0aW9uLCByZXEgfSkgPT4ge1xuICBjb25zdCB7IHNlYXJjaFBhcmFtcyB9ID0gcmVxXG4gIGNvbnN0IGRlcHRoID0gc2VhcmNoUGFyYW1zLmdldCgnZGVwdGgnKVxuXG4gIGNvbnN0IHJlc3VsdCA9IGF3YWl0IHJlc2V0UGFzc3dvcmRPcGVyYXRpb24oe1xuICAgIGNvbGxlY3Rpb24sXG4gICAgZGF0YToge1xuICAgICAgcGFzc3dvcmQ6IHR5cGVvZiByZXEuZGF0YT8ucGFzc3dvcmQgPT09ICdzdHJpbmcnID8gcmVxLmRhdGEucGFzc3dvcmQgOiAnJyxcbiAgICAgIHRva2Vu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bEI7UUFDRSxrQkFBa0I7UUFDbEJDLFNBQVM7UUFDVCxHQUFHaEIsTUFBTTtJQUNYLEdBQ0E7UUFDRWlCLFNBQVMsSUFBSUMsUUFBUTtZQUNuQixjQUFjWDtRQUNoQjtRQUNBWSxRQUFRQyxtQkFBVSxDQUFDQyxFQUFFO0lBQ3ZCO0FBRUoifQ==
36
+ //# sourceMappingURL=resetPassword.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/routes/rest/auth/resetPassword.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { generatePayloadCookie } from 'payload/auth'\nimport { resetPasswordOperation } from 'payload/operations'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nexport const resetPassword: CollectionRouteHandler = async ({ collection, req }) => {\n const { searchParams } = req\n const depth = searchParams.get('depth')\n\n const result = await resetPasswordOperation({\n collection,\n data: {\n password: typeof req.data?.password === 'string' ? req.data.password : '',\n token: typeof req.data?.token === 'string' ? req.data.token : '',\n },\n depth: depth ? Number(depth) : undefined,\n req,\n })\n\n const cookie = generatePayloadCookie({\n collectionConfig: collection.config,\n payload: req.payload,\n token: result.token,\n })\n\n if (collection.config.auth.removeTokenFromResponses) {\n delete result.token\n }\n\n return Response.json(\n {\n // TODO(translate)\n message: 'Password reset successfully.',\n ...result,\n },\n {\n headers: new Headers({\n 'Set-Cookie': cookie,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","generatePayloadCookie","resetPasswordOperation","resetPassword","collection","req","searchParams","depth","get","result","data","password","token","Number","undefined","cookie","collectionConfig","config","payload","auth","removeTokenFromResponses","Response","json","message","headers","Headers","status","OK"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,qBAAqB,QAAQ,eAAc;AACpD,SAASC,sBAAsB,QAAQ,qBAAoB;AAI3D,OAAO,MAAMC,gBAAwC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IAC7E,MAAM,EAAEC,YAAY,EAAE,GAAGD;IACzB,MAAME,QAAQD,aAAaE,GAAG,CAAC;IAE/B,MAAMC,SAAS,MAAMP,uBAAuB;QAC1CE;QACAM,MAAM;YACJC,UAAU,OAAON,IAAIK,IAAI,EAAEC,aAAa,WAAWN,IAAIK,IAAI,CAACC,QAAQ,GAAG;YACvEC,OAAO,OAAOP,IAAIK,IAAI,EAAEE,UAAU,WAAWP,IAAIK,IAAI,CAACE,KAAK,GAAG;QAChE;QACAL,OAAOA,QAAQM,OAAON,SAASO;QAC/BT;IACF;IAEA,MAAMU,SAASd,sBAAsB;QACnCe,kBAAkBZ,WAAWa,MAAM;QACnCC,SAASb,IAAIa,OAAO;QACpBN,OAAOH,OAAOG,KAAK;IACrB;IAEA,IAAIR,WAAWa,MAAM,CAACE,IAAI,CAACC,wBAAwB,EAAE;QACnD,OAAOX,OAAOG,KAAK;IACrB;IAEA,OAAOS,SAASC,IAAI,CAClB;QACE,kBAAkB;QAClBC,SAAS;QACT,GAAGd,MAAM;IACX,GACA;QACEe,SAAS,IAAIC,QAAQ;YACnB,cAAcV;QAChB;QACAW,QAAQ1B,WAAW2B,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +1,3 @@
1
- import type { CollectionRouteHandler } from '../types';
1
+ import type { CollectionRouteHandler } from '../types.js';
2
2
  export declare const unlock: CollectionRouteHandler;
3
3
  //# sourceMappingURL=unlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unlock.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/unlock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD,eAAO,MAAM,MAAM,EAAE,sBAgBpB,CAAA"}
1
+ {"version":3,"file":"unlock.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/unlock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,MAAM,EAAE,sBAgBpB,CAAA"}
@@ -1,22 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "unlock", {
6
- enumerable: true,
7
- get: function() {
8
- return unlock;
9
- }
10
- });
11
- const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
12
- const _operations = require("payload/operations");
13
- function _interop_require_default(obj) {
14
- return obj && obj.__esModule ? obj : {
15
- default: obj
16
- };
17
- }
18
- const unlock = async ({ collection, req })=>{
19
- await (0, _operations.unlockOperation)({
1
+ import httpStatus from 'http-status';
2
+ import { unlockOperation } from 'payload/operations';
3
+ export const unlock = async ({ collection, req })=>{
4
+ await unlockOperation({
20
5
  collection,
21
6
  data: {
22
7
  email: req.data.email
@@ -27,8 +12,8 @@ const unlock = async ({ collection, req })=>{
27
12
  // TODO(translate)
28
13
  message: 'Success'
29
14
  }, {
30
- status: _httpstatus.default.OK
15
+ status: httpStatus.OK
31
16
  });
32
17
  };
33
18
 
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3VubG9jay50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgaHR0cFN0YXR1cyBmcm9tICdodHRwLXN0YXR1cydcbmltcG9ydCB7IHVubG9ja09wZXJhdGlvbiB9IGZyb20gJ3BheWxvYWQvb3BlcmF0aW9ucydcblxuaW1wb3J0IHR5cGUgeyBDb2xsZWN0aW9uUm91dGVIYW5kbGVyIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmV4cG9ydCBjb25zdCB1bmxvY2s6IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXIgPSBhc3luYyAoeyBjb2xsZWN0aW9uLCByZXEgfSkgPT4ge1xuICBhd2FpdCB1bmxvY2tPcGVyYXRpb24oe1xuICAgIGNvbGxlY3Rpb24sXG4gICAgZGF0YTogeyBlbWFpbDogcmVxLmRhdGEuZW1haWwgYXMgc3RyaW5nIH0sXG4gICAgcmVxLFxuICB9KVxuXG4gIHJldHVybiBSZXNwb25zZS5qc29uKFxuICAgIHtcbiAgICAgIC8vIFRPRE8odHJhbnNsYXRlKVxuICAgICAgbWVzc2FnZTogJ1N1Y2Nlc3MnLFxuICAgIH0sXG4gICAge1xuICAgICAgc3RhdHVzOiBodHRwU3RhdHVzLk9LLFxuICAgIH0sXG4gIClcbn1cbiJdLCJuYW1lcyI6WyJ1bmxvY2siLCJjb2xsZWN0aW9uIiwicmVxIiwidW5sb2NrT3BlcmF0aW9uIiwiZGF0YSIsImVtYWlsIiwiUmVzcG9uc2UiLCJqc29uIiwibWVzc2FnZSIsInN0YXR1cyIsImh0dHBTdGF0dXMiLCJPSyJdLCJtYXBwaW5ncyI6Ijs7OzsrQkFLYUE7OztlQUFBQTs7O21FQUxVOzRCQUNTOzs7Ozs7QUFJekIsTUFBTUEsU0FBaUMsT0FBTyxFQUFFQyxVQUFVLEVBQUVDLEdBQUcsRUFBRTtJQUN0RSxNQUFNQyxJQUFBQSwyQkFBZSxFQUFDO1FBQ3BCRjtRQUNBRyxNQUFNO1lBQUVDLE9BQU9ILElBQUlFLElBQUksQ0FBQ0MsS0FBSztRQUFXO1FBQ3hDSDtJQUNGO0lBRUEsT0FBT0ksU0FBU0MsSUFBSSxDQUNsQjtRQUNFLGtCQUFrQjtRQUNsQkMsU0FBUztJQUNYLEdBQ0E7UUFDRUMsUUFBUUMsbUJBQVUsQ0FBQ0MsRUFBRTtJQUN2QjtBQUVKIn0=
19
+ //# sourceMappingURL=unlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/routes/rest/auth/unlock.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { unlockOperation } from 'payload/operations'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nexport const unlock: CollectionRouteHandler = async ({ collection, req }) => {\n await unlockOperation({\n collection,\n data: { email: req.data.email as string },\n req,\n })\n\n return Response.json(\n {\n // TODO(translate)\n message: 'Success',\n },\n {\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","unlockOperation","unlock","collection","req","data","email","Response","json","message","status","OK"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,eAAe,QAAQ,qBAAoB;AAIpD,OAAO,MAAMC,SAAiC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACtE,MAAMH,gBAAgB;QACpBE;QACAE,MAAM;YAAEC,OAAOF,IAAIC,IAAI,CAACC,KAAK;QAAW;QACxCF;IACF;IAEA,OAAOG,SAASC,IAAI,CAClB;QACE,kBAAkB;QAClBC,SAAS;IACX,GACA;QACEC,QAAQV,WAAWW,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +1,3 @@
1
- import type { CollectionRouteHandlerWithID } from '../types';
1
+ import type { CollectionRouteHandlerWithID } from '../types.js';
2
2
  export declare const verifyEmail: CollectionRouteHandlerWithID;
3
3
  //# sourceMappingURL=verifyEmail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifyEmail.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/verifyEmail.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE5D,eAAO,MAAM,WAAW,EAAE,4BAgBzB,CAAA"}
1
+ {"version":3,"file":"verifyEmail.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/verifyEmail.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAE/D,eAAO,MAAM,WAAW,EAAE,4BAgBzB,CAAA"}
@@ -1,22 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "verifyEmail", {
6
- enumerable: true,
7
- get: function() {
8
- return verifyEmail;
9
- }
10
- });
11
- const _httpstatus = /*#__PURE__*/ _interop_require_default(require("http-status"));
12
- const _operations = require("payload/operations");
13
- function _interop_require_default(obj) {
14
- return obj && obj.__esModule ? obj : {
15
- default: obj
16
- };
17
- }
18
- const verifyEmail = async ({ id, collection, req })=>{
19
- await (0, _operations.verifyEmailOperation)({
1
+ import httpStatus from 'http-status';
2
+ import { verifyEmailOperation } from 'payload/operations';
3
+ export const verifyEmail = async ({ id, collection, req })=>{
4
+ await verifyEmailOperation({
20
5
  collection,
21
6
  req,
22
7
  token: id
@@ -25,8 +10,8 @@ const verifyEmail = async ({ id, collection, req })=>{
25
10
  // TODO(translate)
26
11
  message: 'Email verified successfully.'
27
12
  }, {
28
- status: _httpstatus.default.OK
13
+ status: httpStatus.OK
29
14
  });
30
15
  };
31
16
 
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yb3V0ZXMvcmVzdC9hdXRoL3ZlcmlmeUVtYWlsLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBodHRwU3RhdHVzIGZyb20gJ2h0dHAtc3RhdHVzJ1xuaW1wb3J0IHsgdmVyaWZ5RW1haWxPcGVyYXRpb24gfSBmcm9tICdwYXlsb2FkL29wZXJhdGlvbnMnXG5cbmltcG9ydCB0eXBlIHsgQ29sbGVjdGlvblJvdXRlSGFuZGxlcldpdGhJRCB9IGZyb20gJy4uL3R5cGVzJ1xuXG5leHBvcnQgY29uc3QgdmVyaWZ5RW1haWw6IENvbGxlY3Rpb25Sb3V0ZUhhbmRsZXJXaXRoSUQgPSBhc3luYyAoeyBpZCwgY29sbGVjdGlvbiwgcmVxIH0pID0+IHtcbiAgYXdhaXQgdmVyaWZ5RW1haWxPcGVyYXRpb24oe1xuICAgIGNvbGxlY3Rpb24sXG4gICAgcmVxLFxuICAgIHRva2VuOiBpZCxcbiAgfSlcblxuICByZXR1cm4gUmVzcG9uc2UuanNvbihcbiAgICB7XG4gICAgICAvLyBUT0RPKHRyYW5zbGF0ZSlcbiAgICAgIG1lc3NhZ2U6ICdFbWFpbCB2ZXJpZmllZCBzdWNjZXNzZnVsbHkuJyxcbiAgICB9LFxuICAgIHtcbiAgICAgIHN0YXR1czogaHR0cFN0YXR1cy5PSyxcbiAgICB9LFxuICApXG59XG4iXSwibmFtZXMiOlsidmVyaWZ5RW1haWwiLCJpZCIsImNvbGxlY3Rpb24iLCJyZXEiLCJ2ZXJpZnlFbWFpbE9wZXJhdGlvbiIsInRva2VuIiwiUmVzcG9uc2UiLCJqc29uIiwibWVzc2FnZSIsInN0YXR1cyIsImh0dHBTdGF0dXMiLCJPSyJdLCJtYXBwaW5ncyI6Ijs7OzsrQkFLYUE7OztlQUFBQTs7O21FQUxVOzRCQUNjOzs7Ozs7QUFJOUIsTUFBTUEsY0FBNEMsT0FBTyxFQUFFQyxFQUFFLEVBQUVDLFVBQVUsRUFBRUMsR0FBRyxFQUFFO0lBQ3JGLE1BQU1DLElBQUFBLGdDQUFvQixFQUFDO1FBQ3pCRjtRQUNBQztRQUNBRSxPQUFPSjtJQUNUO0lBRUEsT0FBT0ssU0FBU0MsSUFBSSxDQUNsQjtRQUNFLGtCQUFrQjtRQUNsQkMsU0FBUztJQUNYLEdBQ0E7UUFDRUMsUUFBUUMsbUJBQVUsQ0FBQ0MsRUFBRTtJQUN2QjtBQUVKIn0=
17
+ //# sourceMappingURL=verifyEmail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/routes/rest/auth/verifyEmail.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { verifyEmailOperation } from 'payload/operations'\n\nimport type { CollectionRouteHandlerWithID } from '../types.js'\n\nexport const verifyEmail: CollectionRouteHandlerWithID = async ({ id, collection, req }) => {\n await verifyEmailOperation({\n collection,\n req,\n token: id,\n })\n\n return Response.json(\n {\n // TODO(translate)\n message: 'Email verified successfully.',\n },\n {\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","verifyEmailOperation","verifyEmail","id","collection","req","token","Response","json","message","status","OK"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,oBAAoB,QAAQ,qBAAoB;AAIzD,OAAO,MAAMC,cAA4C,OAAO,EAAEC,EAAE,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACrF,MAAMJ,qBAAqB;QACzBG;QACAC;QACAC,OAAOH;IACT;IAEA,OAAOI,SAASC,IAAI,CAClB;QACE,kBAAkB;QAClBC,SAAS;IACX,GACA;QACEC,QAAQV,WAAWW,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,6 +1,6 @@
1
- import type { FieldSchemaMap } from '@payloadcms/ui';
2
- import type { PayloadRequest, SanitizedConfig } from 'payload/types';
3
- export declare const getFieldSchemaMap: (config: SanitizedConfig) => FieldSchemaMap;
1
+ import type { PayloadRequest } from 'payload/types';
2
+ import type { FieldSchemaMap } from '../../utilities/buildFieldSchemaMap/types.js';
3
+ export declare const getFieldSchemaMap: (req: PayloadRequest) => FieldSchemaMap;
4
4
  export declare const buildFormState: ({ req }: {
5
5
  req: PayloadRequest;
6
6
  }) => Promise<Response>;
@@ -1 +1 @@
1
- {"version":3,"file":"buildFormState.d.ts","sourceRoot":"","sources":["../../../src/routes/rest/buildFormState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,KAAK,EAA8B,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAYhG,eAAO,MAAM,iBAAiB,WAAY,eAAe,mBAQxD,CAAA;AAED,eAAO,MAAM,cAAc;SAA0B,cAAc;uBA4ElE,CAAA"}
1
+ {"version":3,"file":"buildFormState.d.ts","sourceRoot":"","sources":["../../../src/routes/rest/buildFormState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA8B,cAAc,EAAc,MAAM,eAAe,CAAA;AAM3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAWlF,eAAO,MAAM,iBAAiB,QAAS,cAAc,mBAQpD,CAAA;AAED,eAAO,MAAM,cAAc,YAAmB;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,sBA8KpE,CAAA"}