@payloadcms/next 3.0.0-beta.61 → 3.0.0-beta.62

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 (866) hide show
  1. package/dist/prod/styles.css +1 -1
  2. package/dist/views/Edit/Default/Auth/index.scss +17 -2
  3. package/dist/views/Version/SelectComparison/index.scss +1 -1
  4. package/package.json +6 -6
  5. package/dist/config.d.ts +0 -4
  6. package/dist/config.d.ts.map +0 -1
  7. package/dist/config.js +0 -3
  8. package/dist/config.js.map +0 -1
  9. package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.d.ts +0 -5
  10. package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.d.ts.map +0 -1
  11. package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js +0 -13
  12. package/dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js.map +0 -1
  13. package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.d.ts +0 -13
  14. package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.d.ts.map +0 -1
  15. package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js +0 -43
  16. package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js.map +0 -1
  17. package/dist/elements/DocumentHeader/Tabs/Tab/index.d.ts +0 -6
  18. package/dist/elements/DocumentHeader/Tabs/Tab/index.d.ts.map +0 -1
  19. package/dist/elements/DocumentHeader/Tabs/Tab/index.js +0 -58
  20. package/dist/elements/DocumentHeader/Tabs/Tab/index.js.map +0 -1
  21. package/dist/elements/DocumentHeader/Tabs/getCustomViews.d.ts +0 -6
  22. package/dist/elements/DocumentHeader/Tabs/getCustomViews.d.ts.map +0 -1
  23. package/dist/elements/DocumentHeader/Tabs/getCustomViews.js +0 -38
  24. package/dist/elements/DocumentHeader/Tabs/getCustomViews.js.map +0 -1
  25. package/dist/elements/DocumentHeader/Tabs/getViewConfig.d.ts +0 -7
  26. package/dist/elements/DocumentHeader/Tabs/getViewConfig.d.ts.map +0 -1
  27. package/dist/elements/DocumentHeader/Tabs/getViewConfig.js +0 -14
  28. package/dist/elements/DocumentHeader/Tabs/getViewConfig.js.map +0 -1
  29. package/dist/elements/DocumentHeader/Tabs/index.d.ts +0 -12
  30. package/dist/elements/DocumentHeader/Tabs/index.d.ts.map +0 -1
  31. package/dist/elements/DocumentHeader/Tabs/index.js +0 -81
  32. package/dist/elements/DocumentHeader/Tabs/index.js.map +0 -1
  33. package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.d.ts +0 -3
  34. package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.d.ts.map +0 -1
  35. package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.js +0 -23
  36. package/dist/elements/DocumentHeader/Tabs/tabs/VersionsPill/index.js.map +0 -1
  37. package/dist/elements/DocumentHeader/Tabs/tabs/index.d.ts +0 -7
  38. package/dist/elements/DocumentHeader/Tabs/tabs/index.d.ts.map +0 -1
  39. package/dist/elements/DocumentHeader/Tabs/tabs/index.js +0 -57
  40. package/dist/elements/DocumentHeader/Tabs/tabs/index.js.map +0 -1
  41. package/dist/elements/DocumentHeader/index.d.ts +0 -14
  42. package/dist/elements/DocumentHeader/index.d.ts.map +0 -1
  43. package/dist/elements/DocumentHeader/index.js +0 -30
  44. package/dist/elements/DocumentHeader/index.js.map +0 -1
  45. package/dist/elements/LeaveWithoutSaving/index.d.ts +0 -4
  46. package/dist/elements/LeaveWithoutSaving/index.d.ts.map +0 -1
  47. package/dist/elements/LeaveWithoutSaving/index.js +0 -86
  48. package/dist/elements/LeaveWithoutSaving/index.js.map +0 -1
  49. package/dist/elements/LeaveWithoutSaving/usePreventLeave.d.ts +0 -8
  50. package/dist/elements/LeaveWithoutSaving/usePreventLeave.d.ts.map +0 -1
  51. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +0 -114
  52. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +0 -1
  53. package/dist/elements/Logo/index.d.ts +0 -4
  54. package/dist/elements/Logo/index.d.ts.map +0 -1
  55. package/dist/elements/Logo/index.js +0 -24
  56. package/dist/elements/Logo/index.js.map +0 -1
  57. package/dist/elements/Nav/NavHamburger/index.d.ts +0 -5
  58. package/dist/elements/Nav/NavHamburger/index.d.ts.map +0 -1
  59. package/dist/elements/Nav/NavHamburger/index.js +0 -20
  60. package/dist/elements/Nav/NavHamburger/index.js.map +0 -1
  61. package/dist/elements/Nav/NavWrapper/index.d.ts +0 -7
  62. package/dist/elements/Nav/NavWrapper/index.d.ts.map +0 -1
  63. package/dist/elements/Nav/NavWrapper/index.js +0 -21
  64. package/dist/elements/Nav/NavWrapper/index.js.map +0 -1
  65. package/dist/elements/Nav/index.client.d.ts +0 -3
  66. package/dist/elements/Nav/index.client.d.ts.map +0 -1
  67. package/dist/elements/Nav/index.client.js +0 -79
  68. package/dist/elements/Nav/index.client.js.map +0 -1
  69. package/dist/elements/Nav/index.d.ts +0 -6
  70. package/dist/elements/Nav/index.d.ts.map +0 -1
  71. package/dist/elements/Nav/index.js +0 -67
  72. package/dist/elements/Nav/index.js.map +0 -1
  73. package/dist/exports/layouts.d.ts +0 -2
  74. package/dist/exports/layouts.d.ts.map +0 -1
  75. package/dist/exports/layouts.js +0 -3
  76. package/dist/exports/layouts.js.map +0 -1
  77. package/dist/exports/routes.d.ts +0 -3
  78. package/dist/exports/routes.d.ts.map +0 -1
  79. package/dist/exports/routes.js +0 -4
  80. package/dist/exports/routes.js.map +0 -1
  81. package/dist/exports/templates.d.ts +0 -3
  82. package/dist/exports/templates.d.ts.map +0 -1
  83. package/dist/exports/templates.js +0 -4
  84. package/dist/exports/templates.js.map +0 -1
  85. package/dist/exports/utilities.d.ts +0 -7
  86. package/dist/exports/utilities.d.ts.map +0 -1
  87. package/dist/exports/utilities.js +0 -8
  88. package/dist/exports/utilities.js.map +0 -1
  89. package/dist/exports/views.d.ts +0 -5
  90. package/dist/exports/views.d.ts.map +0 -1
  91. package/dist/exports/views.js +0 -6
  92. package/dist/exports/views.js.map +0 -1
  93. package/dist/fetchAPI-multipart/fileFactory.d.ts +0 -15
  94. package/dist/fetchAPI-multipart/fileFactory.d.ts.map +0 -1
  95. package/dist/fetchAPI-multipart/fileFactory.js +0 -43
  96. package/dist/fetchAPI-multipart/fileFactory.js.map +0 -1
  97. package/dist/fetchAPI-multipart/handlers.d.ts +0 -14
  98. package/dist/fetchAPI-multipart/handlers.d.ts.map +0 -1
  99. package/dist/fetchAPI-multipart/handlers.js +0 -86
  100. package/dist/fetchAPI-multipart/handlers.js.map +0 -1
  101. package/dist/fetchAPI-multipart/index.d.ts +0 -132
  102. package/dist/fetchAPI-multipart/index.d.ts.map +0 -1
  103. package/dist/fetchAPI-multipart/index.js +0 -41
  104. package/dist/fetchAPI-multipart/index.js.map +0 -1
  105. package/dist/fetchAPI-multipart/isEligibleRequest.d.ts +0 -2
  106. package/dist/fetchAPI-multipart/isEligibleRequest.d.ts.map +0 -1
  107. package/dist/fetchAPI-multipart/isEligibleRequest.js +0 -26
  108. package/dist/fetchAPI-multipart/isEligibleRequest.js.map +0 -1
  109. package/dist/fetchAPI-multipart/processMultipart.d.ts +0 -8
  110. package/dist/fetchAPI-multipart/processMultipart.d.ts.map +0 -1
  111. package/dist/fetchAPI-multipart/processMultipart.js +0 -162
  112. package/dist/fetchAPI-multipart/processMultipart.js.map +0 -1
  113. package/dist/fetchAPI-multipart/processNested.d.ts +0 -2
  114. package/dist/fetchAPI-multipart/processNested.d.ts.map +0 -1
  115. package/dist/fetchAPI-multipart/processNested.js +0 -25
  116. package/dist/fetchAPI-multipart/processNested.js.map +0 -1
  117. package/dist/fetchAPI-multipart/uploadTimer.d.ts +0 -7
  118. package/dist/fetchAPI-multipart/uploadTimer.d.ts.map +0 -1
  119. package/dist/fetchAPI-multipart/uploadTimer.js +0 -19
  120. package/dist/fetchAPI-multipart/uploadTimer.js.map +0 -1
  121. package/dist/fetchAPI-multipart/utilities.d.ts +0 -65
  122. package/dist/fetchAPI-multipart/utilities.d.ts.map +0 -1
  123. package/dist/fetchAPI-multipart/utilities.js +0 -207
  124. package/dist/fetchAPI-multipart/utilities.js.map +0 -1
  125. package/dist/fetchAPI-stream-file/index.d.ts +0 -5
  126. package/dist/fetchAPI-stream-file/index.d.ts.map +0 -1
  127. package/dist/fetchAPI-stream-file/index.js +0 -25
  128. package/dist/fetchAPI-stream-file/index.js.map +0 -1
  129. package/dist/index.js +0 -3
  130. package/dist/index.js.map +0 -1
  131. package/dist/layouts/Root/index.d.ts +0 -12
  132. package/dist/layouts/Root/index.d.ts.map +0 -1
  133. package/dist/layouts/Root/index.js +0 -112
  134. package/dist/layouts/Root/index.js.map +0 -1
  135. package/dist/routes/graphql/handler.d.ts +0 -4
  136. package/dist/routes/graphql/handler.d.ts.map +0 -1
  137. package/dist/routes/graphql/handler.js +0 -122
  138. package/dist/routes/graphql/handler.js.map +0 -1
  139. package/dist/routes/graphql/index.d.ts +0 -3
  140. package/dist/routes/graphql/index.d.ts.map +0 -1
  141. package/dist/routes/graphql/index.js +0 -4
  142. package/dist/routes/graphql/index.js.map +0 -1
  143. package/dist/routes/graphql/playground.d.ts +0 -3
  144. package/dist/routes/graphql/playground.d.ts.map +0 -1
  145. package/dist/routes/graphql/playground.js +0 -27
  146. package/dist/routes/graphql/playground.js.map +0 -1
  147. package/dist/routes/index.d.ts +0 -3
  148. package/dist/routes/index.d.ts.map +0 -1
  149. package/dist/routes/index.js +0 -4
  150. package/dist/routes/index.js.map +0 -1
  151. package/dist/routes/rest/auth/access.d.ts +0 -3
  152. package/dist/routes/rest/auth/access.d.ts.map +0 -1
  153. package/dist/routes/rest/auth/access.js +0 -27
  154. package/dist/routes/rest/auth/access.js.map +0 -1
  155. package/dist/routes/rest/auth/forgotPassword.d.ts +0 -3
  156. package/dist/routes/rest/auth/forgotPassword.d.ts.map +0 -1
  157. package/dist/routes/rest/auth/forgotPassword.js +0 -30
  158. package/dist/routes/rest/auth/forgotPassword.js.map +0 -1
  159. package/dist/routes/rest/auth/init.d.ts +0 -3
  160. package/dist/routes/rest/auth/init.d.ts.map +0 -1
  161. package/dist/routes/rest/auth/init.js +0 -18
  162. package/dist/routes/rest/auth/init.js.map +0 -1
  163. package/dist/routes/rest/auth/login.d.ts +0 -3
  164. package/dist/routes/rest/auth/login.d.ts.map +0 -1
  165. package/dist/routes/rest/auth/login.js +0 -44
  166. package/dist/routes/rest/auth/login.js.map +0 -1
  167. package/dist/routes/rest/auth/logout.d.ts +0 -3
  168. package/dist/routes/rest/auth/logout.d.ts.map +0 -1
  169. package/dist/routes/rest/auth/logout.js +0 -35
  170. package/dist/routes/rest/auth/logout.js.map +0 -1
  171. package/dist/routes/rest/auth/me.d.ts +0 -3
  172. package/dist/routes/rest/auth/me.d.ts.map +0 -1
  173. package/dist/routes/rest/auth/me.js +0 -26
  174. package/dist/routes/rest/auth/me.js.map +0 -1
  175. package/dist/routes/rest/auth/refresh.d.ts +0 -3
  176. package/dist/routes/rest/auth/refresh.d.ts.map +0 -1
  177. package/dist/routes/rest/auth/refresh.js +0 -34
  178. package/dist/routes/rest/auth/refresh.js.map +0 -1
  179. package/dist/routes/rest/auth/registerFirstUser.d.ts +0 -3
  180. package/dist/routes/rest/auth/registerFirstUser.d.ts.map +0 -1
  181. package/dist/routes/rest/auth/registerFirstUser.js +0 -43
  182. package/dist/routes/rest/auth/registerFirstUser.js.map +0 -1
  183. package/dist/routes/rest/auth/resetPassword.d.ts +0 -3
  184. package/dist/routes/rest/auth/resetPassword.d.ts.map +0 -1
  185. package/dist/routes/rest/auth/resetPassword.js +0 -38
  186. package/dist/routes/rest/auth/resetPassword.js.map +0 -1
  187. package/dist/routes/rest/auth/unlock.d.ts +0 -3
  188. package/dist/routes/rest/auth/unlock.d.ts.map +0 -1
  189. package/dist/routes/rest/auth/unlock.js +0 -24
  190. package/dist/routes/rest/auth/unlock.js.map +0 -1
  191. package/dist/routes/rest/auth/verifyEmail.d.ts +0 -3
  192. package/dist/routes/rest/auth/verifyEmail.d.ts.map +0 -1
  193. package/dist/routes/rest/auth/verifyEmail.js +0 -22
  194. package/dist/routes/rest/auth/verifyEmail.js.map +0 -1
  195. package/dist/routes/rest/buildFormState.d.ts +0 -5
  196. package/dist/routes/rest/buildFormState.d.ts.map +0 -1
  197. package/dist/routes/rest/buildFormState.js +0 -45
  198. package/dist/routes/rest/buildFormState.js.map +0 -1
  199. package/dist/routes/rest/checkEndpoints.d.ts +0 -5
  200. package/dist/routes/rest/checkEndpoints.d.ts.map +0 -1
  201. package/dist/routes/rest/checkEndpoints.js +0 -12
  202. package/dist/routes/rest/checkEndpoints.js.map +0 -1
  203. package/dist/routes/rest/collections/count.d.ts +0 -3
  204. package/dist/routes/rest/collections/count.d.ts.map +0 -1
  205. package/dist/routes/rest/collections/count.js +0 -15
  206. package/dist/routes/rest/collections/count.js.map +0 -1
  207. package/dist/routes/rest/collections/create.d.ts +0 -3
  208. package/dist/routes/rest/collections/create.d.ts.map +0 -1
  209. package/dist/routes/rest/collections/create.js +0 -33
  210. package/dist/routes/rest/collections/create.js.map +0 -1
  211. package/dist/routes/rest/collections/delete.d.ts +0 -3
  212. package/dist/routes/rest/collections/delete.d.ts.map +0 -1
  213. package/dist/routes/rest/collections/delete.js +0 -46
  214. package/dist/routes/rest/collections/delete.js.map +0 -1
  215. package/dist/routes/rest/collections/deleteByID.d.ts +0 -3
  216. package/dist/routes/rest/collections/deleteByID.d.ts.map +0 -1
  217. package/dist/routes/rest/collections/deleteByID.js +0 -41
  218. package/dist/routes/rest/collections/deleteByID.js.map +0 -1
  219. package/dist/routes/rest/collections/docAccess.d.ts +0 -3
  220. package/dist/routes/rest/collections/docAccess.d.ts.map +0 -1
  221. package/dist/routes/rest/collections/docAccess.js +0 -19
  222. package/dist/routes/rest/collections/docAccess.js.map +0 -1
  223. package/dist/routes/rest/collections/duplicate.d.ts +0 -3
  224. package/dist/routes/rest/collections/duplicate.d.ts.map +0 -1
  225. package/dist/routes/rest/collections/duplicate.js +0 -39
  226. package/dist/routes/rest/collections/duplicate.js.map +0 -1
  227. package/dist/routes/rest/collections/find.d.ts +0 -3
  228. package/dist/routes/rest/collections/find.d.ts.map +0 -1
  229. package/dist/routes/rest/collections/find.js +0 -26
  230. package/dist/routes/rest/collections/find.js.map +0 -1
  231. package/dist/routes/rest/collections/findByID.d.ts +0 -3
  232. package/dist/routes/rest/collections/findByID.d.ts.map +0 -1
  233. package/dist/routes/rest/collections/findByID.js +0 -30
  234. package/dist/routes/rest/collections/findByID.js.map +0 -1
  235. package/dist/routes/rest/collections/findVersionByID.d.ts +0 -3
  236. package/dist/routes/rest/collections/findVersionByID.d.ts.map +0 -1
  237. package/dist/routes/rest/collections/findVersionByID.js +0 -29
  238. package/dist/routes/rest/collections/findVersionByID.js.map +0 -1
  239. package/dist/routes/rest/collections/findVersions.d.ts +0 -3
  240. package/dist/routes/rest/collections/findVersions.d.ts.map +0 -1
  241. package/dist/routes/rest/collections/findVersions.js +0 -25
  242. package/dist/routes/rest/collections/findVersions.js.map +0 -1
  243. package/dist/routes/rest/collections/preview.d.ts +0 -3
  244. package/dist/routes/rest/collections/preview.d.ts.map +0 -1
  245. package/dist/routes/rest/collections/preview.js +0 -44
  246. package/dist/routes/rest/collections/preview.js.map +0 -1
  247. package/dist/routes/rest/collections/restoreVersion.d.ts +0 -3
  248. package/dist/routes/rest/collections/restoreVersion.d.ts.map +0 -1
  249. package/dist/routes/rest/collections/restoreVersion.js +0 -32
  250. package/dist/routes/rest/collections/restoreVersion.js.map +0 -1
  251. package/dist/routes/rest/collections/update.d.ts +0 -3
  252. package/dist/routes/rest/collections/update.d.ts.map +0 -1
  253. package/dist/routes/rest/collections/update.js +0 -48
  254. package/dist/routes/rest/collections/update.js.map +0 -1
  255. package/dist/routes/rest/collections/updateByID.d.ts +0 -3
  256. package/dist/routes/rest/collections/updateByID.d.ts.map +0 -1
  257. package/dist/routes/rest/collections/updateByID.js +0 -40
  258. package/dist/routes/rest/collections/updateByID.js.map +0 -1
  259. package/dist/routes/rest/files/checkFileAccess.d.ts +0 -7
  260. package/dist/routes/rest/files/checkFileAccess.d.ts.map +0 -1
  261. package/dist/routes/rest/files/checkFileAccess.js +0 -50
  262. package/dist/routes/rest/files/checkFileAccess.js.map +0 -1
  263. package/dist/routes/rest/files/getFile.d.ts +0 -9
  264. package/dist/routes/rest/files/getFile.d.ts.map +0 -1
  265. package/dist/routes/rest/files/getFile.js +0 -63
  266. package/dist/routes/rest/files/getFile.js.map +0 -1
  267. package/dist/routes/rest/files/getFileTypeFallback.d.ts +0 -7
  268. package/dist/routes/rest/files/getFileTypeFallback.d.ts.map +0 -1
  269. package/dist/routes/rest/files/getFileTypeFallback.js +0 -21
  270. package/dist/routes/rest/files/getFileTypeFallback.js.map +0 -1
  271. package/dist/routes/rest/globals/docAccess.d.ts +0 -3
  272. package/dist/routes/rest/globals/docAccess.d.ts.map +0 -1
  273. package/dist/routes/rest/globals/docAccess.js +0 -18
  274. package/dist/routes/rest/globals/docAccess.js.map +0 -1
  275. package/dist/routes/rest/globals/findOne.d.ts +0 -3
  276. package/dist/routes/rest/globals/findOne.d.ts.map +0 -1
  277. package/dist/routes/rest/globals/findOne.js +0 -24
  278. package/dist/routes/rest/globals/findOne.js.map +0 -1
  279. package/dist/routes/rest/globals/findVersionByID.d.ts +0 -3
  280. package/dist/routes/rest/globals/findVersionByID.d.ts.map +0 -1
  281. package/dist/routes/rest/globals/findVersionByID.js +0 -23
  282. package/dist/routes/rest/globals/findVersionByID.js.map +0 -1
  283. package/dist/routes/rest/globals/findVersions.d.ts +0 -3
  284. package/dist/routes/rest/globals/findVersions.d.ts.map +0 -1
  285. package/dist/routes/rest/globals/findVersions.js +0 -25
  286. package/dist/routes/rest/globals/findVersions.js.map +0 -1
  287. package/dist/routes/rest/globals/preview.d.ts +0 -3
  288. package/dist/routes/rest/globals/preview.d.ts.map +0 -1
  289. package/dist/routes/rest/globals/preview.js +0 -43
  290. package/dist/routes/rest/globals/preview.js.map +0 -1
  291. package/dist/routes/rest/globals/restoreVersion.d.ts +0 -3
  292. package/dist/routes/rest/globals/restoreVersion.d.ts.map +0 -1
  293. package/dist/routes/rest/globals/restoreVersion.js +0 -26
  294. package/dist/routes/rest/globals/restoreVersion.js.map +0 -1
  295. package/dist/routes/rest/globals/update.d.ts +0 -3
  296. package/dist/routes/rest/globals/update.d.ts.map +0 -1
  297. package/dist/routes/rest/globals/update.js +0 -34
  298. package/dist/routes/rest/globals/update.js.map +0 -1
  299. package/dist/routes/rest/index.d.ts +0 -23
  300. package/dist/routes/rest/index.d.ts.map +0 -1
  301. package/dist/routes/rest/index.js +0 -679
  302. package/dist/routes/rest/index.js.map +0 -1
  303. package/dist/routes/rest/og/image.d.ts +0 -9
  304. package/dist/routes/rest/og/image.d.ts.map +0 -1
  305. package/dist/routes/rest/og/image.js +0 -79
  306. package/dist/routes/rest/og/image.js.map +0 -1
  307. package/dist/routes/rest/og/index.d.ts +0 -11
  308. package/dist/routes/rest/og/index.d.ts.map +0 -1
  309. package/dist/routes/rest/og/index.js +0 -73
  310. package/dist/routes/rest/og/index.js.map +0 -1
  311. package/dist/routes/rest/routeError.d.ts +0 -14
  312. package/dist/routes/rest/routeError.d.ts.map +0 -1
  313. package/dist/routes/rest/routeError.js +0 -107
  314. package/dist/routes/rest/routeError.js.map +0 -1
  315. package/dist/routes/rest/types.d.ts +0 -23
  316. package/dist/routes/rest/types.d.ts.map +0 -1
  317. package/dist/routes/rest/types.js +0 -3
  318. package/dist/routes/rest/types.js.map +0 -1
  319. package/dist/routes/rest/utilities/sanitizeCollectionID.d.ts +0 -9
  320. package/dist/routes/rest/utilities/sanitizeCollectionID.d.ts.map +0 -1
  321. package/dist/routes/rest/utilities/sanitizeCollectionID.js +0 -13
  322. package/dist/routes/rest/utilities/sanitizeCollectionID.js.map +0 -1
  323. package/dist/templates/Default/NavHamburger/index.d.ts +0 -3
  324. package/dist/templates/Default/NavHamburger/index.d.ts.map +0 -1
  325. package/dist/templates/Default/NavHamburger/index.js +0 -13
  326. package/dist/templates/Default/NavHamburger/index.js.map +0 -1
  327. package/dist/templates/Default/Wrapper/index.d.ts +0 -8
  328. package/dist/templates/Default/Wrapper/index.d.ts.map +0 -1
  329. package/dist/templates/Default/Wrapper/index.js +0 -18
  330. package/dist/templates/Default/Wrapper/index.js.map +0 -1
  331. package/dist/templates/Default/index.d.ts +0 -10
  332. package/dist/templates/Default/index.d.ts.map +0 -1
  333. package/dist/templates/Default/index.js +0 -66
  334. package/dist/templates/Default/index.js.map +0 -1
  335. package/dist/templates/Minimal/index.d.ts +0 -10
  336. package/dist/templates/Minimal/index.d.ts.map +0 -1
  337. package/dist/templates/Minimal/index.js +0 -21
  338. package/dist/templates/Minimal/index.js.map +0 -1
  339. package/dist/utilities/addDataAndFileToRequest.d.ts +0 -8
  340. package/dist/utilities/addDataAndFileToRequest.d.ts.map +0 -1
  341. package/dist/utilities/addDataAndFileToRequest.js +0 -42
  342. package/dist/utilities/addDataAndFileToRequest.js.map +0 -1
  343. package/dist/utilities/addLocalesToRequest.d.ts +0 -17
  344. package/dist/utilities/addLocalesToRequest.d.ts.map +0 -1
  345. package/dist/utilities/addLocalesToRequest.js +0 -43
  346. package/dist/utilities/addLocalesToRequest.js.map +0 -1
  347. package/dist/utilities/createPayloadRequest.d.ts +0 -11
  348. package/dist/utilities/createPayloadRequest.d.ts.map +0 -1
  349. package/dist/utilities/createPayloadRequest.js +0 -81
  350. package/dist/utilities/createPayloadRequest.js.map +0 -1
  351. package/dist/utilities/getNextRequestI18n.d.ts +0 -11
  352. package/dist/utilities/getNextRequestI18n.d.ts.map +0 -1
  353. package/dist/utilities/getNextRequestI18n.js +0 -18
  354. package/dist/utilities/getNextRequestI18n.js.map +0 -1
  355. package/dist/utilities/getPayloadHMR.d.ts +0 -4
  356. package/dist/utilities/getPayloadHMR.d.ts.map +0 -1
  357. package/dist/utilities/getPayloadHMR.js +0 -94
  358. package/dist/utilities/getPayloadHMR.js.map +0 -1
  359. package/dist/utilities/getRequestLanguage.d.ts +0 -12
  360. package/dist/utilities/getRequestLanguage.d.ts.map +0 -1
  361. package/dist/utilities/getRequestLanguage.js +0 -16
  362. package/dist/utilities/getRequestLanguage.js.map +0 -1
  363. package/dist/utilities/getRequestLocales.d.ts +0 -12
  364. package/dist/utilities/getRequestLocales.d.ts.map +0 -1
  365. package/dist/utilities/getRequestLocales.js +0 -28
  366. package/dist/utilities/getRequestLocales.js.map +0 -1
  367. package/dist/utilities/getRequestTheme.d.ts +0 -11
  368. package/dist/utilities/getRequestTheme.d.ts.map +0 -1
  369. package/dist/utilities/getRequestTheme.js +0 -19
  370. package/dist/utilities/getRequestTheme.js.map +0 -1
  371. package/dist/utilities/headersWithCors.d.ts +0 -8
  372. package/dist/utilities/headersWithCors.d.ts.map +0 -1
  373. package/dist/utilities/headersWithCors.js +0 -17
  374. package/dist/utilities/headersWithCors.js.map +0 -1
  375. package/dist/utilities/initPage/handleAdminPage.d.ts +0 -12
  376. package/dist/utilities/initPage/handleAdminPage.d.ts.map +0 -1
  377. package/dist/utilities/initPage/handleAdminPage.js +0 -35
  378. package/dist/utilities/initPage/handleAdminPage.js.map +0 -1
  379. package/dist/utilities/initPage/handleAuthRedirect.d.ts +0 -9
  380. package/dist/utilities/initPage/handleAuthRedirect.d.ts.map +0 -1
  381. package/dist/utilities/initPage/handleAuthRedirect.js +0 -27
  382. package/dist/utilities/initPage/handleAuthRedirect.js.map +0 -1
  383. package/dist/utilities/initPage/index.d.ts +0 -4
  384. package/dist/utilities/initPage/index.d.ts.map +0 -1
  385. package/dist/utilities/initPage/index.js +0 -133
  386. package/dist/utilities/initPage/index.js.map +0 -1
  387. package/dist/utilities/initPage/shared.d.ts +0 -4
  388. package/dist/utilities/initPage/shared.d.ts.map +0 -1
  389. package/dist/utilities/initPage/shared.js +0 -19
  390. package/dist/utilities/initPage/shared.js.map +0 -1
  391. package/dist/utilities/initPage/types.d.ts +0 -24
  392. package/dist/utilities/initPage/types.d.ts.map +0 -1
  393. package/dist/utilities/initPage/types.js +0 -3
  394. package/dist/utilities/initPage/types.js.map +0 -1
  395. package/dist/utilities/mergeHeaders.d.ts +0 -2
  396. package/dist/utilities/mergeHeaders.d.ts.map +0 -1
  397. package/dist/utilities/mergeHeaders.js +0 -37
  398. package/dist/utilities/mergeHeaders.js.map +0 -1
  399. package/dist/utilities/meta.d.ts +0 -5
  400. package/dist/utilities/meta.d.ts.map +0 -1
  401. package/dist/utilities/meta.js +0 -73
  402. package/dist/utilities/meta.js.map +0 -1
  403. package/dist/utilities/timestamp.d.ts +0 -2
  404. package/dist/utilities/timestamp.d.ts.map +0 -1
  405. package/dist/utilities/timestamp.js +0 -7
  406. package/dist/utilities/timestamp.js.map +0 -1
  407. package/dist/views/API/LocaleSelector/index.d.ts +0 -9
  408. package/dist/views/API/LocaleSelector/index.d.ts.map +0 -1
  409. package/dist/views/API/LocaleSelector/index.js +0 -15
  410. package/dist/views/API/LocaleSelector/index.js.map +0 -1
  411. package/dist/views/API/RenderJSON/index.d.ts +0 -12
  412. package/dist/views/API/RenderJSON/index.d.ts.map +0 -1
  413. package/dist/views/API/RenderJSON/index.js +0 -122
  414. package/dist/views/API/RenderJSON/index.js.map +0 -1
  415. package/dist/views/API/index.client.d.ts +0 -4
  416. package/dist/views/API/index.client.d.ts.map +0 -1
  417. package/dist/views/API/index.client.js +0 -208
  418. package/dist/views/API/index.client.js.map +0 -1
  419. package/dist/views/API/index.d.ts +0 -3
  420. package/dist/views/API/index.d.ts.map +0 -1
  421. package/dist/views/API/index.js +0 -8
  422. package/dist/views/API/index.js.map +0 -1
  423. package/dist/views/API/meta.d.ts +0 -3
  424. package/dist/views/API/meta.d.ts.map +0 -1
  425. package/dist/views/API/meta.js +0 -18
  426. package/dist/views/API/meta.js.map +0 -1
  427. package/dist/views/Account/Settings/LanguageSelector.d.ts +0 -6
  428. package/dist/views/Account/Settings/LanguageSelector.d.ts.map +0 -1
  429. package/dist/views/Account/Settings/LanguageSelector.js +0 -19
  430. package/dist/views/Account/Settings/LanguageSelector.js.map +0 -1
  431. package/dist/views/Account/Settings/index.d.ts +0 -10
  432. package/dist/views/Account/Settings/index.d.ts.map +0 -1
  433. package/dist/views/Account/Settings/index.js +0 -35
  434. package/dist/views/Account/Settings/index.js.map +0 -1
  435. package/dist/views/Account/ToggleTheme/index.d.ts +0 -3
  436. package/dist/views/Account/ToggleTheme/index.d.ts.map +0 -1
  437. package/dist/views/Account/ToggleTheme/index.js +0 -35
  438. package/dist/views/Account/ToggleTheme/index.js.map +0 -1
  439. package/dist/views/Account/index.d.ts +0 -5
  440. package/dist/views/Account/index.d.ts.map +0 -1
  441. package/dist/views/Account/index.js +0 -90
  442. package/dist/views/Account/index.js.map +0 -1
  443. package/dist/views/Account/meta.d.ts +0 -3
  444. package/dist/views/Account/meta.d.ts.map +0 -1
  445. package/dist/views/Account/meta.js +0 -10
  446. package/dist/views/Account/meta.js.map +0 -1
  447. package/dist/views/CreateFirstUser/index.client.d.ts +0 -7
  448. package/dist/views/CreateFirstUser/index.client.d.ts.map +0 -1
  449. package/dist/views/CreateFirstUser/index.client.js +0 -66
  450. package/dist/views/CreateFirstUser/index.client.js.map +0 -1
  451. package/dist/views/CreateFirstUser/index.d.ts +0 -6
  452. package/dist/views/CreateFirstUser/index.d.ts.map +0 -1
  453. package/dist/views/CreateFirstUser/index.js +0 -53
  454. package/dist/views/CreateFirstUser/index.js.map +0 -1
  455. package/dist/views/CreateFirstUser/meta.d.ts +0 -3
  456. package/dist/views/CreateFirstUser/meta.d.ts.map +0 -1
  457. package/dist/views/CreateFirstUser/meta.js +0 -10
  458. package/dist/views/CreateFirstUser/meta.js.map +0 -1
  459. package/dist/views/Dashboard/Default/index.d.ts +0 -12
  460. package/dist/views/Dashboard/Default/index.d.ts.map +0 -1
  461. package/dist/views/Dashboard/Default/index.js +0 -121
  462. package/dist/views/Dashboard/Default/index.js.map +0 -1
  463. package/dist/views/Dashboard/index.d.ts +0 -5
  464. package/dist/views/Dashboard/index.d.ts.map +0 -1
  465. package/dist/views/Dashboard/index.js +0 -66
  466. package/dist/views/Dashboard/index.js.map +0 -1
  467. package/dist/views/Dashboard/meta.d.ts +0 -3
  468. package/dist/views/Dashboard/meta.d.ts.map +0 -1
  469. package/dist/views/Dashboard/meta.js +0 -14
  470. package/dist/views/Dashboard/meta.js.map +0 -1
  471. package/dist/views/Document/getCustomViewByKey.d.ts +0 -3
  472. package/dist/views/Document/getCustomViewByKey.d.ts.map +0 -1
  473. package/dist/views/Document/getCustomViewByKey.js +0 -6
  474. package/dist/views/Document/getCustomViewByKey.js.map +0 -1
  475. package/dist/views/Document/getCustomViewByRoute.d.ts +0 -7
  476. package/dist/views/Document/getCustomViewByRoute.d.ts.map +0 -1
  477. package/dist/views/Document/getCustomViewByRoute.js +0 -22
  478. package/dist/views/Document/getCustomViewByRoute.js.map +0 -1
  479. package/dist/views/Document/getDocumentData.d.ts +0 -9
  480. package/dist/views/Document/getDocumentData.d.ts.map +0 -1
  481. package/dist/views/Document/getDocumentData.js +0 -31
  482. package/dist/views/Document/getDocumentData.js.map +0 -1
  483. package/dist/views/Document/getDocumentPermissions.d.ts +0 -13
  484. package/dist/views/Document/getDocumentPermissions.d.ts.map +0 -1
  485. package/dist/views/Document/getDocumentPermissions.js +0 -82
  486. package/dist/views/Document/getDocumentPermissions.js.map +0 -1
  487. package/dist/views/Document/getMetaBySegment.d.ts +0 -9
  488. package/dist/views/Document/getMetaBySegment.d.ts.map +0 -1
  489. package/dist/views/Document/getMetaBySegment.js +0 -77
  490. package/dist/views/Document/getMetaBySegment.js.map +0 -1
  491. package/dist/views/Document/getViewsFromConfig.d.ts +0 -16
  492. package/dist/views/Document/getViewsFromConfig.d.ts.map +0 -1
  493. package/dist/views/Document/getViewsFromConfig.js +0 -242
  494. package/dist/views/Document/getViewsFromConfig.js.map +0 -1
  495. package/dist/views/Document/index.d.ts +0 -6
  496. package/dist/views/Document/index.d.ts.map +0 -1
  497. package/dist/views/Document/index.js +0 -188
  498. package/dist/views/Document/index.js.map +0 -1
  499. package/dist/views/Document/meta.d.ts +0 -3
  500. package/dist/views/Document/meta.d.ts.map +0 -1
  501. package/dist/views/Document/meta.js +0 -4
  502. package/dist/views/Document/meta.js.map +0 -1
  503. package/dist/views/Edit/Default/Auth/APIKey.d.ts +0 -6
  504. package/dist/views/Edit/Default/Auth/APIKey.d.ts.map +0 -1
  505. package/dist/views/Edit/Default/Auth/APIKey.js +0 -116
  506. package/dist/views/Edit/Default/Auth/APIKey.js.map +0 -1
  507. package/dist/views/Edit/Default/Auth/index.d.ts +0 -5
  508. package/dist/views/Edit/Default/Auth/index.d.ts.map +0 -1
  509. package/dist/views/Edit/Default/Auth/index.js +0 -161
  510. package/dist/views/Edit/Default/Auth/index.js.map +0 -1
  511. package/dist/views/Edit/Default/Auth/types.d.ts +0 -14
  512. package/dist/views/Edit/Default/Auth/types.d.ts.map +0 -1
  513. package/dist/views/Edit/Default/Auth/types.js +0 -3
  514. package/dist/views/Edit/Default/Auth/types.js.map +0 -1
  515. package/dist/views/Edit/Default/SetDocumentStepNav/index.d.ts +0 -11
  516. package/dist/views/Edit/Default/SetDocumentStepNav/index.d.ts.map +0 -1
  517. package/dist/views/Edit/Default/SetDocumentStepNav/index.js +0 -69
  518. package/dist/views/Edit/Default/SetDocumentStepNav/index.js.map +0 -1
  519. package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts +0 -8
  520. package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts.map +0 -1
  521. package/dist/views/Edit/Default/SetDocumentTitle/index.js +0 -36
  522. package/dist/views/Edit/Default/SetDocumentTitle/index.js.map +0 -1
  523. package/dist/views/Edit/Default/index.d.ts +0 -4
  524. package/dist/views/Edit/Default/index.d.ts.map +0 -1
  525. package/dist/views/Edit/Default/index.js +0 -198
  526. package/dist/views/Edit/Default/index.js.map +0 -1
  527. package/dist/views/Edit/Default/types.d.ts +0 -6
  528. package/dist/views/Edit/Default/types.d.ts.map +0 -1
  529. package/dist/views/Edit/Default/types.js +0 -3
  530. package/dist/views/Edit/Default/types.js.map +0 -1
  531. package/dist/views/Edit/index.client.d.ts +0 -3
  532. package/dist/views/Edit/index.client.d.ts.map +0 -1
  533. package/dist/views/Edit/index.client.js +0 -25
  534. package/dist/views/Edit/index.client.js.map +0 -1
  535. package/dist/views/Edit/index.d.ts +0 -3
  536. package/dist/views/Edit/index.d.ts.map +0 -1
  537. package/dist/views/Edit/index.js +0 -8
  538. package/dist/views/Edit/index.js.map +0 -1
  539. package/dist/views/Edit/meta.d.ts +0 -3
  540. package/dist/views/Edit/meta.d.ts.map +0 -1
  541. package/dist/views/Edit/meta.js +0 -28
  542. package/dist/views/Edit/meta.js.map +0 -1
  543. package/dist/views/Edit/sanitizeEditViewProps.d.ts +0 -3
  544. package/dist/views/Edit/sanitizeEditViewProps.d.ts.map +0 -1
  545. package/dist/views/Edit/sanitizeEditViewProps.js +0 -11
  546. package/dist/views/Edit/sanitizeEditViewProps.js.map +0 -1
  547. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts +0 -3
  548. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +0 -1
  549. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +0 -104
  550. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +0 -1
  551. package/dist/views/ForgotPassword/index.d.ts +0 -6
  552. package/dist/views/ForgotPassword/index.d.ts.map +0 -1
  553. package/dist/views/ForgotPassword/index.js +0 -52
  554. package/dist/views/ForgotPassword/index.js.map +0 -1
  555. package/dist/views/ForgotPassword/meta.d.ts +0 -3
  556. package/dist/views/ForgotPassword/meta.d.ts.map +0 -1
  557. package/dist/views/ForgotPassword/meta.js +0 -10
  558. package/dist/views/ForgotPassword/meta.js.map +0 -1
  559. package/dist/views/List/Default/index.d.ts +0 -4
  560. package/dist/views/List/Default/index.d.ts.map +0 -1
  561. package/dist/views/List/Default/index.js +0 -200
  562. package/dist/views/List/Default/index.js.map +0 -1
  563. package/dist/views/List/Default/types.d.ts +0 -15
  564. package/dist/views/List/Default/types.d.ts.map +0 -1
  565. package/dist/views/List/Default/types.js +0 -3
  566. package/dist/views/List/Default/types.js.map +0 -1
  567. package/dist/views/List/index.d.ts +0 -5
  568. package/dist/views/List/index.d.ts.map +0 -1
  569. package/dist/views/List/index.js +0 -126
  570. package/dist/views/List/index.js.map +0 -1
  571. package/dist/views/List/meta.d.ts +0 -7
  572. package/dist/views/List/meta.d.ts.map +0 -1
  573. package/dist/views/List/meta.js +0 -21
  574. package/dist/views/List/meta.js.map +0 -1
  575. package/dist/views/LivePreview/Context/collisionDetection.d.ts +0 -3
  576. package/dist/views/LivePreview/Context/collisionDetection.d.ts.map +0 -1
  577. package/dist/views/LivePreview/Context/collisionDetection.js +0 -26
  578. package/dist/views/LivePreview/Context/collisionDetection.js.map +0 -1
  579. package/dist/views/LivePreview/Context/context.d.ts +0 -50
  580. package/dist/views/LivePreview/Context/context.d.ts.map +0 -1
  581. package/dist/views/LivePreview/Context/context.js +0 -40
  582. package/dist/views/LivePreview/Context/context.js.map +0 -1
  583. package/dist/views/LivePreview/Context/index.d.ts +0 -19
  584. package/dist/views/LivePreview/Context/index.d.ts.map +0 -1
  585. package/dist/views/LivePreview/Context/index.js +0 -156
  586. package/dist/views/LivePreview/Context/index.js.map +0 -1
  587. package/dist/views/LivePreview/Context/sizeReducer.d.ts +0 -20
  588. package/dist/views/LivePreview/Context/sizeReducer.d.ts.map +0 -1
  589. package/dist/views/LivePreview/Context/sizeReducer.js +0 -31
  590. package/dist/views/LivePreview/Context/sizeReducer.js.map +0 -1
  591. package/dist/views/LivePreview/Device/index.d.ts +0 -5
  592. package/dist/views/LivePreview/Device/index.d.ts.map +0 -1
  593. package/dist/views/LivePreview/Device/index.js +0 -81
  594. package/dist/views/LivePreview/Device/index.js.map +0 -1
  595. package/dist/views/LivePreview/DeviceContainer/index.d.ts +0 -5
  596. package/dist/views/LivePreview/DeviceContainer/index.d.ts.map +0 -1
  597. package/dist/views/LivePreview/DeviceContainer/index.js +0 -31
  598. package/dist/views/LivePreview/DeviceContainer/index.js.map +0 -1
  599. package/dist/views/LivePreview/IFrame/index.d.ts +0 -9
  600. package/dist/views/LivePreview/IFrame/index.d.ts.map +0 -1
  601. package/dist/views/LivePreview/IFrame/index.js +0 -23
  602. package/dist/views/LivePreview/IFrame/index.js.map +0 -1
  603. package/dist/views/LivePreview/Preview/index.d.ts +0 -5
  604. package/dist/views/LivePreview/Preview/index.d.ts.map +0 -1
  605. package/dist/views/LivePreview/Preview/index.js +0 -110
  606. package/dist/views/LivePreview/Preview/index.js.map +0 -1
  607. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts +0 -5
  608. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +0 -1
  609. package/dist/views/LivePreview/Toolbar/Controls/index.js +0 -129
  610. package/dist/views/LivePreview/Toolbar/Controls/index.js.map +0 -1
  611. package/dist/views/LivePreview/Toolbar/SizeInput/index.d.ts +0 -6
  612. package/dist/views/LivePreview/Toolbar/SizeInput/index.d.ts.map +0 -1
  613. package/dist/views/LivePreview/Toolbar/SizeInput/index.js +0 -61
  614. package/dist/views/LivePreview/Toolbar/SizeInput/index.js.map +0 -1
  615. package/dist/views/LivePreview/Toolbar/index.d.ts +0 -7
  616. package/dist/views/LivePreview/Toolbar/index.d.ts.map +0 -1
  617. package/dist/views/LivePreview/Toolbar/index.js +0 -64
  618. package/dist/views/LivePreview/Toolbar/index.js.map +0 -1
  619. package/dist/views/LivePreview/ToolbarArea/index.d.ts +0 -6
  620. package/dist/views/LivePreview/ToolbarArea/index.d.ts.map +0 -1
  621. package/dist/views/LivePreview/ToolbarArea/index.js +0 -18
  622. package/dist/views/LivePreview/ToolbarArea/index.js.map +0 -1
  623. package/dist/views/LivePreview/index.client.d.ts +0 -9
  624. package/dist/views/LivePreview/index.client.d.ts.map +0 -1
  625. package/dist/views/LivePreview/index.client.js +0 -195
  626. package/dist/views/LivePreview/index.client.js.map +0 -1
  627. package/dist/views/LivePreview/index.d.ts +0 -4
  628. package/dist/views/LivePreview/index.d.ts.map +0 -1
  629. package/dist/views/LivePreview/index.js +0 -66
  630. package/dist/views/LivePreview/index.js.map +0 -1
  631. package/dist/views/LivePreview/meta.d.ts +0 -3
  632. package/dist/views/LivePreview/meta.d.ts.map +0 -1
  633. package/dist/views/LivePreview/meta.js +0 -10
  634. package/dist/views/LivePreview/meta.js.map +0 -1
  635. package/dist/views/LivePreview/usePopupWindow.d.ts +0 -19
  636. package/dist/views/LivePreview/usePopupWindow.d.ts.map +0 -1
  637. package/dist/views/LivePreview/usePopupWindow.js +0 -102
  638. package/dist/views/LivePreview/usePopupWindow.js.map +0 -1
  639. package/dist/views/Login/LoginForm/index.d.ts +0 -8
  640. package/dist/views/Login/LoginForm/index.d.ts.map +0 -1
  641. package/dist/views/Login/LoginForm/index.js +0 -122
  642. package/dist/views/Login/LoginForm/index.js.map +0 -1
  643. package/dist/views/Login/index.d.ts +0 -7
  644. package/dist/views/Login/index.d.ts.map +0 -1
  645. package/dist/views/Login/index.js +0 -64
  646. package/dist/views/Login/index.js.map +0 -1
  647. package/dist/views/Login/meta.d.ts +0 -3
  648. package/dist/views/Login/meta.d.ts.map +0 -1
  649. package/dist/views/Login/meta.js +0 -10
  650. package/dist/views/Login/meta.js.map +0 -1
  651. package/dist/views/Logout/LogoutClient.d.ts +0 -7
  652. package/dist/views/Logout/LogoutClient.d.ts.map +0 -1
  653. package/dist/views/Logout/LogoutClient.js +0 -45
  654. package/dist/views/Logout/LogoutClient.js.map +0 -1
  655. package/dist/views/Logout/index.d.ts +0 -9
  656. package/dist/views/Logout/index.d.ts.map +0 -1
  657. package/dist/views/Logout/index.js +0 -24
  658. package/dist/views/Logout/index.js.map +0 -1
  659. package/dist/views/Logout/meta.d.ts +0 -3
  660. package/dist/views/Logout/meta.d.ts.map +0 -1
  661. package/dist/views/Logout/meta.js +0 -9
  662. package/dist/views/Logout/meta.js.map +0 -1
  663. package/dist/views/NotFound/index.client.d.ts +0 -6
  664. package/dist/views/NotFound/index.client.d.ts.map +0 -1
  665. package/dist/views/NotFound/index.client.js +0 -49
  666. package/dist/views/NotFound/index.client.js.map +0 -1
  667. package/dist/views/NotFound/index.d.ts +0 -28
  668. package/dist/views/NotFound/index.d.ts.map +0 -1
  669. package/dist/views/NotFound/index.js +0 -52
  670. package/dist/views/NotFound/index.js.map +0 -1
  671. package/dist/views/NotFound/meta.d.ts +0 -8
  672. package/dist/views/NotFound/meta.d.ts.map +0 -1
  673. package/dist/views/NotFound/meta.js +0 -9
  674. package/dist/views/NotFound/meta.js.map +0 -1
  675. package/dist/views/ResetPassword/index.client.d.ts +0 -7
  676. package/dist/views/ResetPassword/index.client.d.ts.map +0 -1
  677. package/dist/views/ResetPassword/index.client.js +0 -81
  678. package/dist/views/ResetPassword/index.client.js.map +0 -1
  679. package/dist/views/ResetPassword/index.d.ts +0 -7
  680. package/dist/views/ResetPassword/index.d.ts.map +0 -1
  681. package/dist/views/ResetPassword/index.js +0 -64
  682. package/dist/views/ResetPassword/index.js.map +0 -1
  683. package/dist/views/ResetPassword/meta.d.ts +0 -3
  684. package/dist/views/ResetPassword/meta.d.ts.map +0 -1
  685. package/dist/views/ResetPassword/meta.js +0 -10
  686. package/dist/views/ResetPassword/meta.js.map +0 -1
  687. package/dist/views/Root/getCustomViewByRoute.d.ts +0 -6
  688. package/dist/views/Root/getCustomViewByRoute.d.ts.map +0 -1
  689. package/dist/views/Root/getCustomViewByRoute.js +0 -19
  690. package/dist/views/Root/getCustomViewByRoute.js.map +0 -1
  691. package/dist/views/Root/getViewFromConfig.d.ts +0 -17
  692. package/dist/views/Root/getViewFromConfig.d.ts.map +0 -1
  693. package/dist/views/Root/getViewFromConfig.js +0 -155
  694. package/dist/views/Root/getViewFromConfig.js.map +0 -1
  695. package/dist/views/Root/index.d.ts +0 -23
  696. package/dist/views/Root/index.d.ts.map +0 -1
  697. package/dist/views/Root/index.js +0 -82
  698. package/dist/views/Root/index.js.map +0 -1
  699. package/dist/views/Root/isPathMatchingRoute.d.ts +0 -8
  700. package/dist/views/Root/isPathMatchingRoute.d.ts.map +0 -1
  701. package/dist/views/Root/isPathMatchingRoute.js +0 -16
  702. package/dist/views/Root/isPathMatchingRoute.js.map +0 -1
  703. package/dist/views/Root/meta.d.ts +0 -14
  704. package/dist/views/Root/meta.d.ts.map +0 -1
  705. package/dist/views/Root/meta.js +0 -140
  706. package/dist/views/Root/meta.js.map +0 -1
  707. package/dist/views/Unauthorized/index.d.ts +0 -5
  708. package/dist/views/Unauthorized/index.d.ts.map +0 -1
  709. package/dist/views/Unauthorized/index.js +0 -30
  710. package/dist/views/Unauthorized/index.js.map +0 -1
  711. package/dist/views/Unauthorized/meta.d.ts +0 -3
  712. package/dist/views/Unauthorized/meta.d.ts.map +0 -1
  713. package/dist/views/Unauthorized/meta.js +0 -10
  714. package/dist/views/Unauthorized/meta.js.map +0 -1
  715. package/dist/views/Verify/index.d.ts +0 -7
  716. package/dist/views/Verify/index.d.ts.map +0 -1
  717. package/dist/views/Verify/index.js +0 -47
  718. package/dist/views/Verify/index.js.map +0 -1
  719. package/dist/views/Verify/meta.d.ts +0 -3
  720. package/dist/views/Verify/meta.d.ts.map +0 -1
  721. package/dist/views/Verify/meta.js +0 -10
  722. package/dist/views/Verify/meta.js.map +0 -1
  723. package/dist/views/Version/Default/SetStepNav.d.ts +0 -14
  724. package/dist/views/Version/Default/SetStepNav.d.ts.map +0 -1
  725. package/dist/views/Version/Default/SetStepNav.js +0 -97
  726. package/dist/views/Version/Default/SetStepNav.js.map +0 -1
  727. package/dist/views/Version/Default/index.d.ts +0 -5
  728. package/dist/views/Version/Default/index.d.ts.map +0 -1
  729. package/dist/views/Version/Default/index.js +0 -135
  730. package/dist/views/Version/Default/index.js.map +0 -1
  731. package/dist/views/Version/Default/types.d.ts +0 -17
  732. package/dist/views/Version/Default/types.d.ts.map +0 -1
  733. package/dist/views/Version/Default/types.js +0 -3
  734. package/dist/views/Version/Default/types.js.map +0 -1
  735. package/dist/views/Version/RenderFieldsToDiff/Label/index.d.ts +0 -7
  736. package/dist/views/Version/RenderFieldsToDiff/Label/index.d.ts.map +0 -1
  737. package/dist/views/Version/RenderFieldsToDiff/Label/index.js +0 -10
  738. package/dist/views/Version/RenderFieldsToDiff/Label/index.js.map +0 -1
  739. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +0 -6
  740. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +0 -1
  741. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -79
  742. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +0 -1
  743. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +0 -6
  744. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +0 -1
  745. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js +0 -40
  746. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js.map +0 -1
  747. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +0 -6
  748. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
  749. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -85
  750. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +0 -1
  751. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts +0 -9
  752. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +0 -1
  753. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +0 -18
  754. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js.map +0 -1
  755. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +0 -10
  756. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +0 -1
  757. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +0 -50
  758. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +0 -1
  759. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +0 -8
  760. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +0 -1
  761. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -40
  762. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +0 -1
  763. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts +0 -9
  764. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +0 -1
  765. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +0 -18
  766. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js.map +0 -1
  767. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +0 -6
  768. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +0 -1
  769. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +0 -41
  770. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +0 -1
  771. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.d.ts +0 -7
  772. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.d.ts.map +0 -1
  773. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js +0 -8
  774. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js.map +0 -1
  775. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +0 -30
  776. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
  777. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +0 -29
  778. package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +0 -1
  779. package/dist/views/Version/RenderFieldsToDiff/fields/styles.d.ts +0 -27
  780. package/dist/views/Version/RenderFieldsToDiff/fields/styles.d.ts.map +0 -1
  781. package/dist/views/Version/RenderFieldsToDiff/fields/styles.js +0 -28
  782. package/dist/views/Version/RenderFieldsToDiff/fields/styles.js.map +0 -1
  783. package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts +0 -21
  784. package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts.map +0 -1
  785. package/dist/views/Version/RenderFieldsToDiff/fields/types.js +0 -3
  786. package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +0 -1
  787. package/dist/views/Version/RenderFieldsToDiff/index.d.ts +0 -6
  788. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +0 -1
  789. package/dist/views/Version/RenderFieldsToDiff/index.js +0 -103
  790. package/dist/views/Version/RenderFieldsToDiff/index.js.map +0 -1
  791. package/dist/views/Version/RenderFieldsToDiff/types.d.ts +0 -20
  792. package/dist/views/Version/RenderFieldsToDiff/types.d.ts.map +0 -1
  793. package/dist/views/Version/RenderFieldsToDiff/types.js +0 -3
  794. package/dist/views/Version/RenderFieldsToDiff/types.js.map +0 -1
  795. package/dist/views/Version/Restore/index.d.ts +0 -6
  796. package/dist/views/Version/Restore/index.d.ts.map +0 -1
  797. package/dist/views/Version/Restore/index.js +0 -93
  798. package/dist/views/Version/Restore/index.js.map +0 -1
  799. package/dist/views/Version/Restore/types.d.ts +0 -11
  800. package/dist/views/Version/Restore/types.d.ts.map +0 -1
  801. package/dist/views/Version/Restore/types.js +0 -3
  802. package/dist/views/Version/Restore/types.js.map +0 -1
  803. package/dist/views/Version/SelectComparison/index.d.ts +0 -5
  804. package/dist/views/Version/SelectComparison/index.d.ts.map +0 -1
  805. package/dist/views/Version/SelectComparison/index.js +0 -134
  806. package/dist/views/Version/SelectComparison/index.js.map +0 -1
  807. package/dist/views/Version/SelectComparison/types.d.ts +0 -26
  808. package/dist/views/Version/SelectComparison/types.d.ts.map +0 -1
  809. package/dist/views/Version/SelectComparison/types.js +0 -3
  810. package/dist/views/Version/SelectComparison/types.js.map +0 -1
  811. package/dist/views/Version/SelectLocales/index.d.ts +0 -5
  812. package/dist/views/Version/SelectLocales/index.d.ts.map +0 -1
  813. package/dist/views/Version/SelectLocales/index.js +0 -38
  814. package/dist/views/Version/SelectLocales/index.js.map +0 -1
  815. package/dist/views/Version/SelectLocales/types.d.ts +0 -7
  816. package/dist/views/Version/SelectLocales/types.d.ts.map +0 -1
  817. package/dist/views/Version/SelectLocales/types.js +0 -3
  818. package/dist/views/Version/SelectLocales/types.js.map +0 -1
  819. package/dist/views/Version/index.d.ts +0 -3
  820. package/dist/views/Version/index.d.ts.map +0 -1
  821. package/dist/views/Version/index.js +0 -109
  822. package/dist/views/Version/index.js.map +0 -1
  823. package/dist/views/Version/meta.d.ts +0 -3
  824. package/dist/views/Version/meta.d.ts.map +0 -1
  825. package/dist/views/Version/meta.js +0 -44
  826. package/dist/views/Version/meta.js.map +0 -1
  827. package/dist/views/Version/shared.d.ts +0 -9
  828. package/dist/views/Version/shared.d.ts.map +0 -1
  829. package/dist/views/Version/shared.js +0 -10
  830. package/dist/views/Version/shared.js.map +0 -1
  831. package/dist/views/Versions/buildColumns.d.ts +0 -11
  832. package/dist/views/Versions/buildColumns.d.ts.map +0 -1
  833. package/dist/views/Versions/buildColumns.js +0 -64
  834. package/dist/views/Versions/buildColumns.js.map +0 -1
  835. package/dist/views/Versions/cells/AutosaveCell/index.d.ts +0 -3
  836. package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +0 -1
  837. package/dist/views/Versions/cells/AutosaveCell/index.js +0 -34
  838. package/dist/views/Versions/cells/AutosaveCell/index.js.map +0 -1
  839. package/dist/views/Versions/cells/CreatedAt/index.d.ts +0 -9
  840. package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +0 -1
  841. package/dist/views/Versions/cells/CreatedAt/index.js +0 -26
  842. package/dist/views/Versions/cells/CreatedAt/index.js.map +0 -1
  843. package/dist/views/Versions/cells/ID/index.d.ts +0 -3
  844. package/dist/views/Versions/cells/ID/index.d.ts.map +0 -1
  845. package/dist/views/Versions/cells/ID/index.js +0 -12
  846. package/dist/views/Versions/cells/ID/index.js.map +0 -1
  847. package/dist/views/Versions/index.client.d.ts +0 -10
  848. package/dist/views/Versions/index.client.d.ts.map +0 -1
  849. package/dist/views/Versions/index.client.js +0 -81
  850. package/dist/views/Versions/index.client.js.map +0 -1
  851. package/dist/views/Versions/index.d.ts +0 -5
  852. package/dist/views/Versions/index.d.ts.map +0 -1
  853. package/dist/views/Versions/index.js +0 -103
  854. package/dist/views/Versions/index.js.map +0 -1
  855. package/dist/views/Versions/meta.d.ts +0 -3
  856. package/dist/views/Versions/meta.d.ts.map +0 -1
  857. package/dist/views/Versions/meta.js +0 -37
  858. package/dist/views/Versions/meta.js.map +0 -1
  859. package/dist/views/Versions/types.d.ts +0 -17
  860. package/dist/views/Versions/types.d.ts.map +0 -1
  861. package/dist/views/Versions/types.js +0 -3
  862. package/dist/views/Versions/types.js.map +0 -1
  863. package/dist/withPayload.d.ts +0 -3
  864. package/dist/withPayload.d.ts.map +0 -1
  865. package/dist/withPayload.js +0 -119
  866. package/dist/withPayload.js.map +0 -1
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const me: CollectionRouteHandler;
3
- //# sourceMappingURL=me.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/me.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAIzD,eAAO,MAAM,EAAE,EAAE,sBA0BhB,CAAA"}
@@ -1,26 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { extractJWT, meOperation } from 'payload';
3
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
4
- export const me = async ({ collection, req })=>{
5
- const currentToken = extractJWT(req);
6
- const result = await meOperation({
7
- collection,
8
- currentToken,
9
- req
10
- });
11
- if (collection.config.auth.removeTokenFromResponses) {
12
- delete result.token;
13
- }
14
- return Response.json({
15
- ...result,
16
- message: req.t('authentication:account')
17
- }, {
18
- headers: headersWithCors({
19
- headers: new Headers(),
20
- req
21
- }),
22
- status: httpStatus.OK
23
- });
24
- };
25
-
26
- //# sourceMappingURL=me.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/auth/me.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { extractJWT, meOperation } from 'payload'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.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 headers: headersWithCors({\n headers: new Headers(),\n req,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","extractJWT","meOperation","headersWithCors","me","collection","req","currentToken","result","config","auth","removeTokenFromResponses","token","Response","json","message","t","headers","Headers","status","OK"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,UAAU,EAAEC,WAAW,QAAQ,UAAS;AAIjD,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,KAA6B,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IAClE,MAAMC,eAAeN,WAAWK;IAEhC,MAAME,SAAS,MAAMN,YAAY;QAC/BG;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,SAASd,gBAAgB;YACvBc,SAAS,IAAIC;YACbZ;QACF;QACAa,QAAQnB,WAAWoB,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const refresh: CollectionRouteHandler;
3
- //# sourceMappingURL=refresh.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/refresh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAIzD,eAAO,MAAM,OAAO,EAAE,sBAqCrB,CAAA"}
@@ -1,34 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { generatePayloadCookie, refreshOperation } from 'payload';
3
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
4
- export const refresh = async ({ collection, req })=>{
5
- const { t } = req;
6
- const headers = headersWithCors({
7
- headers: new Headers(),
8
- req
9
- });
10
- const result = await refreshOperation({
11
- collection,
12
- req
13
- });
14
- if (result.setCookie) {
15
- const cookie = generatePayloadCookie({
16
- collectionConfig: collection.config,
17
- payload: req.payload,
18
- token: result.refreshedToken
19
- });
20
- if (collection.config.auth.removeTokenFromResponses) {
21
- delete result.refreshedToken;
22
- }
23
- headers.set('Set-Cookie', cookie);
24
- }
25
- return Response.json({
26
- message: t('authentication:tokenRefreshSuccessful'),
27
- ...result
28
- }, {
29
- headers,
30
- status: httpStatus.OK
31
- });
32
- };
33
-
34
- //# sourceMappingURL=refresh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/auth/refresh.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { generatePayloadCookie, refreshOperation } from 'payload'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\n\nexport const refresh: CollectionRouteHandler = async ({ collection, req }) => {\n const { t } = req\n\n const headers = headersWithCors({\n headers: new Headers(),\n req,\n })\n\n const result = await refreshOperation({\n collection,\n req,\n })\n\n if (result.setCookie) {\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 headers.set('Set-Cookie', cookie)\n }\n\n return Response.json(\n {\n message: t('authentication:tokenRefreshSuccessful'),\n ...result,\n },\n {\n headers,\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","generatePayloadCookie","refreshOperation","headersWithCors","refresh","collection","req","t","headers","Headers","result","setCookie","cookie","collectionConfig","config","payload","token","refreshedToken","auth","removeTokenFromResponses","set","Response","json","message","status","OK"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,qBAAqB,EAAEC,gBAAgB,QAAQ,UAAS;AAIjE,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,UAAkC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACvE,MAAM,EAAEC,CAAC,EAAE,GAAGD;IAEd,MAAME,UAAUL,gBAAgB;QAC9BK,SAAS,IAAIC;QACbH;IACF;IAEA,MAAMI,SAAS,MAAMR,iBAAiB;QACpCG;QACAC;IACF;IAEA,IAAII,OAAOC,SAAS,EAAE;QACpB,MAAMC,SAASX,sBAAsB;YACnCY,kBAAkBR,WAAWS,MAAM;YACnCC,SAAST,IAAIS,OAAO;YACpBC,OAAON,OAAOO,cAAc;QAC9B;QAEA,IAAIZ,WAAWS,MAAM,CAACI,IAAI,CAACC,wBAAwB,EAAE;YACnD,OAAOT,OAAOO,cAAc;QAC9B;QAEAT,QAAQY,GAAG,CAAC,cAAcR;IAC5B;IAEA,OAAOS,SAASC,IAAI,CAClB;QACEC,SAAShB,EAAE;QACX,GAAGG,MAAM;IACX,GACA;QACEF;QACAgB,QAAQxB,WAAWyB,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const registerFirstUser: CollectionRouteHandler;
3
- //# sourceMappingURL=registerFirstUser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registerFirstUser.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/registerFirstUser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAIzD,eAAO,MAAM,iBAAiB,EAAE,sBA6C/B,CAAA"}
@@ -1,43 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { generatePayloadCookie, registerFirstUserOperation } from 'payload';
3
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
4
- export const registerFirstUser = async ({ collection, req })=>{
5
- const { data, t } = req;
6
- const authData = collection.config.auth?.loginWithUsername ? {
7
- email: typeof req.data?.email === 'string' ? req.data.email : '',
8
- password: typeof req.data?.password === 'string' ? req.data.password : '',
9
- username: typeof req.data?.username === 'string' ? req.data.username : ''
10
- } : {
11
- email: typeof req.data?.email === 'string' ? req.data.email : '',
12
- password: typeof req.data?.password === 'string' ? req.data.password : ''
13
- };
14
- const result = await registerFirstUserOperation({
15
- collection,
16
- data: {
17
- ...data,
18
- ...authData
19
- },
20
- req
21
- });
22
- const cookie = generatePayloadCookie({
23
- collectionConfig: collection.config,
24
- payload: req.payload,
25
- token: result.token
26
- });
27
- return Response.json({
28
- exp: result.exp,
29
- message: t('authentication:successfullyRegisteredFirstUser'),
30
- token: result.token,
31
- user: result.user
32
- }, {
33
- headers: headersWithCors({
34
- headers: new Headers({
35
- 'Set-Cookie': cookie
36
- }),
37
- req
38
- }),
39
- status: httpStatus.OK
40
- });
41
- };
42
-
43
- //# sourceMappingURL=registerFirstUser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/auth/registerFirstUser.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { generatePayloadCookie, registerFirstUserOperation } from 'payload'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\n\nexport const registerFirstUser: CollectionRouteHandler = async ({ collection, req }) => {\n const { data, t } = req\n const authData = collection.config.auth?.loginWithUsername\n ? {\n email: typeof req.data?.email === 'string' ? req.data.email : '',\n password: typeof req.data?.password === 'string' ? req.data.password : '',\n username: typeof req.data?.username === 'string' ? req.data.username : '',\n }\n : {\n email: typeof req.data?.email === 'string' ? req.data.email : '',\n password: typeof req.data?.password === 'string' ? req.data.password : '',\n }\n\n const result = await registerFirstUserOperation({\n collection,\n data: {\n ...data,\n ...authData,\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 message: t('authentication:successfullyRegisteredFirstUser'),\n token: result.token,\n user: result.user,\n },\n {\n headers: headersWithCors({\n headers: new Headers({\n 'Set-Cookie': cookie,\n }),\n req,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","generatePayloadCookie","registerFirstUserOperation","headersWithCors","registerFirstUser","collection","req","data","t","authData","config","auth","loginWithUsername","email","password","username","result","cookie","collectionConfig","payload","token","Response","json","exp","message","user","headers","Headers","status","OK"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,qBAAqB,EAAEC,0BAA0B,QAAQ,UAAS;AAI3E,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,oBAA4C,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACjF,MAAM,EAAEC,IAAI,EAAEC,CAAC,EAAE,GAAGF;IACpB,MAAMG,WAAWJ,WAAWK,MAAM,CAACC,IAAI,EAAEC,oBACrC;QACEC,OAAO,OAAOP,IAAIC,IAAI,EAAEM,UAAU,WAAWP,IAAIC,IAAI,CAACM,KAAK,GAAG;QAC9DC,UAAU,OAAOR,IAAIC,IAAI,EAAEO,aAAa,WAAWR,IAAIC,IAAI,CAACO,QAAQ,GAAG;QACvEC,UAAU,OAAOT,IAAIC,IAAI,EAAEQ,aAAa,WAAWT,IAAIC,IAAI,CAACQ,QAAQ,GAAG;IACzE,IACA;QACEF,OAAO,OAAOP,IAAIC,IAAI,EAAEM,UAAU,WAAWP,IAAIC,IAAI,CAACM,KAAK,GAAG;QAC9DC,UAAU,OAAOR,IAAIC,IAAI,EAAEO,aAAa,WAAWR,IAAIC,IAAI,CAACO,QAAQ,GAAG;IACzE;IAEJ,MAAME,SAAS,MAAMd,2BAA2B;QAC9CG;QACAE,MAAM;YACJ,GAAGA,IAAI;YACP,GAAGE,QAAQ;QACb;QACAH;IACF;IAEA,MAAMW,SAAShB,sBAAsB;QACnCiB,kBAAkBb,WAAWK,MAAM;QACnCS,SAASb,IAAIa,OAAO;QACpBC,OAAOJ,OAAOI,KAAK;IACrB;IAEA,OAAOC,SAASC,IAAI,CAClB;QACEC,KAAKP,OAAOO,GAAG;QACfC,SAAShB,EAAE;QACXY,OAAOJ,OAAOI,KAAK;QACnBK,MAAMT,OAAOS,IAAI;IACnB,GACA;QACEC,SAASvB,gBAAgB;YACvBuB,SAAS,IAAIC,QAAQ;gBACnB,cAAcV;YAChB;YACAX;QACF;QACAsB,QAAQ5B,WAAW6B,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const resetPassword: CollectionRouteHandler;
3
- //# sourceMappingURL=resetPassword.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resetPassword.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/auth/resetPassword.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAIzD,eAAO,MAAM,aAAa,EAAE,sBAuC3B,CAAA"}
@@ -1,38 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { generatePayloadCookie, resetPasswordOperation } from 'payload';
3
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
4
- export const resetPassword = async ({ collection, req })=>{
5
- const { searchParams, t } = req;
6
- const depth = searchParams.get('depth');
7
- const result = await resetPasswordOperation({
8
- collection,
9
- data: {
10
- password: typeof req.data?.password === 'string' ? req.data.password : '',
11
- token: typeof req.data?.token === 'string' ? req.data.token : ''
12
- },
13
- depth: depth ? Number(depth) : undefined,
14
- req
15
- });
16
- const cookie = generatePayloadCookie({
17
- collectionConfig: collection.config,
18
- payload: req.payload,
19
- token: result.token
20
- });
21
- if (collection.config.auth.removeTokenFromResponses) {
22
- delete result.token;
23
- }
24
- return Response.json({
25
- message: t('authentication:passwordResetSuccessfully'),
26
- ...result
27
- }, {
28
- headers: headersWithCors({
29
- headers: new Headers({
30
- 'Set-Cookie': cookie
31
- }),
32
- req
33
- }),
34
- status: httpStatus.OK
35
- });
36
- };
37
-
38
- //# sourceMappingURL=resetPassword.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/auth/resetPassword.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { generatePayloadCookie, resetPasswordOperation } from 'payload'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\n\nexport const resetPassword: CollectionRouteHandler = async ({ collection, req }) => {\n const { searchParams, t } = 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 message: t('authentication:passwordResetSuccessfully'),\n ...result,\n },\n {\n headers: headersWithCors({\n headers: new Headers({\n 'Set-Cookie': cookie,\n }),\n req,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","generatePayloadCookie","resetPasswordOperation","headersWithCors","resetPassword","collection","req","searchParams","t","depth","get","result","data","password","token","Number","undefined","cookie","collectionConfig","config","payload","auth","removeTokenFromResponses","Response","json","message","headers","Headers","status","OK"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,qBAAqB,EAAEC,sBAAsB,QAAQ,UAAS;AAIvE,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,gBAAwC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IAC7E,MAAM,EAAEC,YAAY,EAAEC,CAAC,EAAE,GAAGF;IAC5B,MAAMG,QAAQF,aAAaG,GAAG,CAAC;IAE/B,MAAMC,SAAS,MAAMT,uBAAuB;QAC1CG;QACAO,MAAM;YACJC,UAAU,OAAOP,IAAIM,IAAI,EAAEC,aAAa,WAAWP,IAAIM,IAAI,CAACC,QAAQ,GAAG;YACvEC,OAAO,OAAOR,IAAIM,IAAI,EAAEE,UAAU,WAAWR,IAAIM,IAAI,CAACE,KAAK,GAAG;QAChE;QACAL,OAAOA,QAAQM,OAAON,SAASO;QAC/BV;IACF;IAEA,MAAMW,SAAShB,sBAAsB;QACnCiB,kBAAkBb,WAAWc,MAAM;QACnCC,SAASd,IAAIc,OAAO;QACpBN,OAAOH,OAAOG,KAAK;IACrB;IAEA,IAAIT,WAAWc,MAAM,CAACE,IAAI,CAACC,wBAAwB,EAAE;QACnD,OAAOX,OAAOG,KAAK;IACrB;IAEA,OAAOS,SAASC,IAAI,CAClB;QACEC,SAASjB,EAAE;QACX,GAAGG,MAAM;IACX,GACA;QACEe,SAASvB,gBAAgB;YACvBuB,SAAS,IAAIC,QAAQ;gBACnB,cAAcV;YAChB;YACAX;QACF;QACAsB,QAAQ5B,WAAW6B,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const unlock: CollectionRouteHandler;
3
- //# sourceMappingURL=unlock.d.ts.map
@@ -1 +0,0 @@
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;AAIzD,eAAO,MAAM,MAAM,EAAE,sBAqBpB,CAAA"}
@@ -1,24 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { unlockOperation } from 'payload';
3
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
4
- export const unlock = async ({ collection, req })=>{
5
- const { t } = req;
6
- await unlockOperation({
7
- collection,
8
- data: {
9
- email: req.data.email
10
- },
11
- req
12
- });
13
- return Response.json({
14
- message: t('general:success')
15
- }, {
16
- headers: headersWithCors({
17
- headers: new Headers(),
18
- req
19
- }),
20
- status: httpStatus.OK
21
- });
22
- };
23
-
24
- //# sourceMappingURL=unlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/auth/unlock.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { unlockOperation } from 'payload'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\n\nexport const unlock: CollectionRouteHandler = async ({ collection, req }) => {\n const { t } = req\n\n await unlockOperation({\n collection,\n data: { email: req.data.email as string },\n req,\n })\n\n return Response.json(\n {\n message: t('general:success'),\n },\n {\n headers: headersWithCors({\n headers: new Headers(),\n req,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","unlockOperation","headersWithCors","unlock","collection","req","t","data","email","Response","json","message","headers","Headers","status","OK"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,eAAe,QAAQ,UAAS;AAIzC,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,SAAiC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACtE,MAAM,EAAEC,CAAC,EAAE,GAAGD;IAEd,MAAMJ,gBAAgB;QACpBG;QACAG,MAAM;YAAEC,OAAOH,IAAIE,IAAI,CAACC,KAAK;QAAW;QACxCH;IACF;IAEA,OAAOI,SAASC,IAAI,CAClB;QACEC,SAASL,EAAE;IACb,GACA;QACEM,SAASV,gBAAgB;YACvBU,SAAS,IAAIC;YACbR;QACF;QACAS,QAAQd,WAAWe,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandlerWithID } from '../types.js';
2
- export declare const verifyEmail: CollectionRouteHandlerWithID;
3
- //# sourceMappingURL=verifyEmail.d.ts.map
@@ -1 +0,0 @@
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;AAI/D,eAAO,MAAM,WAAW,EAAE,4BAoBzB,CAAA"}
@@ -1,22 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { verifyEmailOperation } from 'payload';
3
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
4
- export const verifyEmail = async ({ id, collection, req })=>{
5
- const { t } = req;
6
- await verifyEmailOperation({
7
- collection,
8
- req,
9
- token: id
10
- });
11
- return Response.json({
12
- message: t('authentication:accountVerified')
13
- }, {
14
- headers: headersWithCors({
15
- headers: new Headers(),
16
- req
17
- }),
18
- status: httpStatus.OK
19
- });
20
- };
21
-
22
- //# sourceMappingURL=verifyEmail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/auth/verifyEmail.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { verifyEmailOperation } from 'payload'\n\nimport type { CollectionRouteHandlerWithID } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\n\nexport const verifyEmail: CollectionRouteHandlerWithID = async ({ id, collection, req }) => {\n const { t } = req\n await verifyEmailOperation({\n collection,\n req,\n token: id,\n })\n\n return Response.json(\n {\n message: t('authentication:accountVerified'),\n },\n {\n headers: headersWithCors({\n headers: new Headers(),\n req,\n }),\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","verifyEmailOperation","headersWithCors","verifyEmail","id","collection","req","t","token","Response","json","message","headers","Headers","status","OK"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,oBAAoB,QAAQ,UAAS;AAI9C,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,cAA4C,OAAO,EAAEC,EAAE,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACrF,MAAM,EAAEC,CAAC,EAAE,GAAGD;IACd,MAAML,qBAAqB;QACzBI;QACAC;QACAE,OAAOJ;IACT;IAEA,OAAOK,SAASC,IAAI,CAClB;QACEC,SAASJ,EAAE;IACb,GACA;QACEK,SAASV,gBAAgB;YACvBU,SAAS,IAAIC;YACbP;QACF;QACAQ,QAAQd,WAAWe,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,5 +0,0 @@
1
- import type { PayloadRequest } from 'payload';
2
- export declare const buildFormState: ({ req }: {
3
- req: PayloadRequest;
4
- }) => Promise<Response>;
5
- //# sourceMappingURL=buildFormState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildFormState.d.ts","sourceRoot":"","sources":["../../../src/routes/rest/buildFormState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAQ7C,eAAO,MAAM,cAAc,YAAmB;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,sBAyCpE,CAAA"}
@@ -1,45 +0,0 @@
1
- import { buildFormState as buildFormStateFn } from '@payloadcms/ui/utilities/buildFormState';
2
- import httpStatus from 'http-status';
3
- import { headersWithCors } from '../../utilities/headersWithCors.js';
4
- import { routeError } from './routeError.js';
5
- export const buildFormState = async ({ req })=>{
6
- const headers = headersWithCors({
7
- headers: new Headers(),
8
- req
9
- });
10
- try {
11
- const result = await buildFormStateFn({
12
- req
13
- });
14
- return Response.json(result, {
15
- headers,
16
- status: httpStatus.OK
17
- });
18
- } catch (err) {
19
- if (err.message === 'Could not find field schema for given path') {
20
- return Response.json({
21
- message: err.message
22
- }, {
23
- headers,
24
- status: httpStatus.BAD_REQUEST
25
- });
26
- }
27
- if (err.message === 'Unauthorized') {
28
- return Response.json(null, {
29
- headers,
30
- status: httpStatus.UNAUTHORIZED
31
- });
32
- }
33
- req.payload.logger.error({
34
- err,
35
- msg: `There was an error building form state`
36
- });
37
- return routeError({
38
- config: req.payload.config,
39
- err,
40
- req
41
- });
42
- }
43
- };
44
-
45
- //# sourceMappingURL=buildFormState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/routes/rest/buildFormState.ts"],"sourcesContent":["import type { PayloadRequest } from 'payload'\n\nimport { buildFormState as buildFormStateFn } from '@payloadcms/ui/utilities/buildFormState'\nimport httpStatus from 'http-status'\n\nimport { headersWithCors } from '../../utilities/headersWithCors.js'\nimport { routeError } from './routeError.js'\n\nexport const buildFormState = async ({ req }: { req: PayloadRequest }) => {\n const headers = headersWithCors({\n headers: new Headers(),\n req,\n })\n\n try {\n const result = await buildFormStateFn({ req })\n\n return Response.json(result, {\n headers,\n status: httpStatus.OK,\n })\n } catch (err) {\n if (err.message === 'Could not find field schema for given path') {\n return Response.json(\n {\n message: err.message,\n },\n {\n headers,\n status: httpStatus.BAD_REQUEST,\n },\n )\n }\n\n if (err.message === 'Unauthorized') {\n return Response.json(null, {\n headers,\n status: httpStatus.UNAUTHORIZED,\n })\n }\n\n req.payload.logger.error({ err, msg: `There was an error building form state` })\n\n return routeError({\n config: req.payload.config,\n err,\n req,\n })\n }\n}\n"],"names":["buildFormState","buildFormStateFn","httpStatus","headersWithCors","routeError","req","headers","Headers","result","Response","json","status","OK","err","message","BAD_REQUEST","UNAUTHORIZED","payload","logger","error","msg","config"],"mappings":"AAEA,SAASA,kBAAkBC,gBAAgB,QAAQ,0CAAyC;AAC5F,OAAOC,gBAAgB,cAAa;AAEpC,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,UAAU,QAAQ,kBAAiB;AAE5C,OAAO,MAAMJ,iBAAiB,OAAO,EAAEK,GAAG,EAA2B;IACnE,MAAMC,UAAUH,gBAAgB;QAC9BG,SAAS,IAAIC;QACbF;IACF;IAEA,IAAI;QACF,MAAMG,SAAS,MAAMP,iBAAiB;YAAEI;QAAI;QAE5C,OAAOI,SAASC,IAAI,CAACF,QAAQ;YAC3BF;YACAK,QAAQT,WAAWU,EAAE;QACvB;IACF,EAAE,OAAOC,KAAK;QACZ,IAAIA,IAAIC,OAAO,KAAK,8CAA8C;YAChE,OAAOL,SAASC,IAAI,CAClB;gBACEI,SAASD,IAAIC,OAAO;YACtB,GACA;gBACER;gBACAK,QAAQT,WAAWa,WAAW;YAChC;QAEJ;QAEA,IAAIF,IAAIC,OAAO,KAAK,gBAAgB;YAClC,OAAOL,SAASC,IAAI,CAAC,MAAM;gBACzBJ;gBACAK,QAAQT,WAAWc,YAAY;YACjC;QACF;QAEAX,IAAIY,OAAO,CAACC,MAAM,CAACC,KAAK,CAAC;YAAEN;YAAKO,KAAK,CAAC,sCAAsC,CAAC;QAAC;QAE9E,OAAOhB,WAAW;YAChBiB,QAAQhB,IAAIY,OAAO,CAACI,MAAM;YAC1BR;YACAR;QACF;IACF;AACF,EAAC"}
@@ -1,5 +0,0 @@
1
- export declare const endpointsAreDisabled: ({ endpoints, request, }: {
2
- endpoints: false | unknown[];
3
- request: Partial<Request>;
4
- }) => Response;
5
- //# sourceMappingURL=checkEndpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkEndpoints.d.ts","sourceRoot":"","sources":["../../../src/routes/rest/checkEndpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,4BAG9B;IACD,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE,CAAA;IAC5B,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CAC1B,aAWA,CAAA"}
@@ -1,12 +0,0 @@
1
- import httpStatus from 'http-status';
2
- export const endpointsAreDisabled = ({ endpoints, request })=>{
3
- if (!endpoints) {
4
- return Response.json({
5
- message: `Cannot ${request.method.toUpperCase()} ${request.url}`
6
- }, {
7
- status: httpStatus.NOT_IMPLEMENTED
8
- });
9
- }
10
- };
11
-
12
- //# sourceMappingURL=checkEndpoints.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/routes/rest/checkEndpoints.ts"],"sourcesContent":["import httpStatus from 'http-status'\n\nexport const endpointsAreDisabled = ({\n endpoints,\n request,\n}: {\n endpoints: false | unknown[]\n request: Partial<Request>\n}) => {\n if (!endpoints) {\n return Response.json(\n {\n message: `Cannot ${request.method.toUpperCase()} ${request.url}`,\n },\n {\n status: httpStatus.NOT_IMPLEMENTED,\n },\n )\n }\n}\n"],"names":["httpStatus","endpointsAreDisabled","endpoints","request","Response","json","message","method","toUpperCase","url","status","NOT_IMPLEMENTED"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AAEpC,OAAO,MAAMC,uBAAuB,CAAC,EACnCC,SAAS,EACTC,OAAO,EAIR;IACC,IAAI,CAACD,WAAW;QACd,OAAOE,SAASC,IAAI,CAClB;YACEC,SAAS,CAAC,OAAO,EAAEH,QAAQI,MAAM,CAACC,WAAW,GAAG,CAAC,EAAEL,QAAQM,GAAG,CAAC,CAAC;QAClE,GACA;YACEC,QAAQV,WAAWW,eAAe;QACpC;IAEJ;AACF,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const count: CollectionRouteHandler;
3
- //# sourceMappingURL=count.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/collections/count.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,KAAK,EAAE,sBAcnB,CAAA"}
@@ -1,15 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { countOperation } from 'payload';
3
- export const count = async ({ collection, req })=>{
4
- const { where } = req.query;
5
- const result = await countOperation({
6
- collection,
7
- req,
8
- where
9
- });
10
- return Response.json(result, {
11
- status: httpStatus.OK
12
- });
13
- };
14
-
15
- //# sourceMappingURL=count.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/collections/count.ts"],"sourcesContent":["import type { Where } from 'payload'\n\nimport httpStatus from 'http-status'\nimport { countOperation } from 'payload'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nexport const count: CollectionRouteHandler = async ({ collection, req }) => {\n const { where } = req.query as {\n where?: Where\n }\n\n const result = await countOperation({\n collection,\n req,\n where,\n })\n\n return Response.json(result, {\n status: httpStatus.OK,\n })\n}\n"],"names":["httpStatus","countOperation","count","collection","req","where","query","result","Response","json","status","OK"],"mappings":"AAEA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,cAAc,QAAQ,UAAS;AAIxC,OAAO,MAAMC,QAAgC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACrE,MAAM,EAAEC,KAAK,EAAE,GAAGD,IAAIE,KAAK;IAI3B,MAAMC,SAAS,MAAMN,eAAe;QAClCE;QACAC;QACAC;IACF;IAEA,OAAOG,SAASC,IAAI,CAACF,QAAQ;QAC3BG,QAAQV,WAAWW,EAAE;IACvB;AACF,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const create: CollectionRouteHandler;
3
- //# sourceMappingURL=create.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/collections/create.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAIzD,eAAO,MAAM,MAAM,EAAE,sBA8BpB,CAAA"}
@@ -1,33 +0,0 @@
1
- import { getTranslation } from '@payloadcms/translations';
2
- import httpStatus from 'http-status';
3
- import { createOperation } from 'payload';
4
- import { isNumber } from 'payload/shared';
5
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
6
- export const create = async ({ collection, req })=>{
7
- const { searchParams } = req;
8
- const autosave = searchParams.get('autosave') === 'true';
9
- const draft = searchParams.get('draft') === 'true';
10
- const depth = searchParams.get('depth');
11
- const doc = await createOperation({
12
- autosave,
13
- collection,
14
- data: req.data,
15
- depth: isNumber(depth) ? depth : undefined,
16
- draft,
17
- req
18
- });
19
- return Response.json({
20
- doc,
21
- message: req.t('general:successfullyCreated', {
22
- label: getTranslation(collection.config.labels.singular, req.i18n)
23
- })
24
- }, {
25
- headers: headersWithCors({
26
- headers: new Headers(),
27
- req
28
- }),
29
- status: httpStatus.CREATED
30
- });
31
- };
32
-
33
- //# sourceMappingURL=create.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/collections/create.ts"],"sourcesContent":["import { getTranslation } from '@payloadcms/translations'\nimport httpStatus from 'http-status'\nimport { createOperation } from 'payload'\nimport { isNumber } from 'payload/shared'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\n\nexport const create: CollectionRouteHandler = async ({ collection, req }) => {\n const { searchParams } = req\n const autosave = searchParams.get('autosave') === 'true'\n const draft = searchParams.get('draft') === 'true'\n const depth = searchParams.get('depth')\n\n const doc = await createOperation({\n autosave,\n collection,\n data: req.data,\n depth: isNumber(depth) ? depth : undefined,\n draft,\n req,\n })\n\n return Response.json(\n {\n doc,\n message: req.t('general:successfullyCreated', {\n label: getTranslation(collection.config.labels.singular, req.i18n),\n }),\n },\n {\n headers: headersWithCors({\n headers: new Headers(),\n req,\n }),\n status: httpStatus.CREATED,\n },\n )\n}\n"],"names":["getTranslation","httpStatus","createOperation","isNumber","headersWithCors","create","collection","req","searchParams","autosave","get","draft","depth","doc","data","undefined","Response","json","message","t","label","config","labels","singular","i18n","headers","Headers","status","CREATED"],"mappings":"AAAA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,gBAAgB,cAAa;AACpC,SAASC,eAAe,QAAQ,UAAS;AACzC,SAASC,QAAQ,QAAQ,iBAAgB;AAIzC,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,SAAiC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACtE,MAAM,EAAEC,YAAY,EAAE,GAAGD;IACzB,MAAME,WAAWD,aAAaE,GAAG,CAAC,gBAAgB;IAClD,MAAMC,QAAQH,aAAaE,GAAG,CAAC,aAAa;IAC5C,MAAME,QAAQJ,aAAaE,GAAG,CAAC;IAE/B,MAAMG,MAAM,MAAMX,gBAAgB;QAChCO;QACAH;QACAQ,MAAMP,IAAIO,IAAI;QACdF,OAAOT,SAASS,SAASA,QAAQG;QACjCJ;QACAJ;IACF;IAEA,OAAOS,SAASC,IAAI,CAClB;QACEJ;QACAK,SAASX,IAAIY,CAAC,CAAC,+BAA+B;YAC5CC,OAAOpB,eAAeM,WAAWe,MAAM,CAACC,MAAM,CAACC,QAAQ,EAAEhB,IAAIiB,IAAI;QACnE;IACF,GACA;QACEC,SAASrB,gBAAgB;YACvBqB,SAAS,IAAIC;YACbnB;QACF;QACAoB,QAAQ1B,WAAW2B,OAAO;IAC5B;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandler } from '../types.js';
2
- export declare const deleteDoc: CollectionRouteHandler;
3
- //# sourceMappingURL=delete.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/collections/delete.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAIzD,eAAO,MAAM,SAAS,EAAE,sBAyDvB,CAAA"}
@@ -1,46 +0,0 @@
1
- import { getTranslation } from '@payloadcms/translations';
2
- import httpStatus from 'http-status';
3
- import { deleteOperation } from 'payload';
4
- import { isNumber } from 'payload/shared';
5
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
6
- export const deleteDoc = async ({ collection, req })=>{
7
- const { depth, where } = req.query;
8
- const result = await deleteOperation({
9
- collection,
10
- depth: isNumber(depth) ? Number(depth) : undefined,
11
- req,
12
- where
13
- });
14
- const headers = headersWithCors({
15
- headers: new Headers(),
16
- req
17
- });
18
- if (result.errors.length === 0) {
19
- const message = req.t('general:deletedCountSuccessfully', {
20
- count: result.docs.length,
21
- label: getTranslation(collection.config.labels[result.docs.length > 1 ? 'plural' : 'singular'], req.i18n)
22
- });
23
- return Response.json({
24
- ...result,
25
- message
26
- }, {
27
- headers,
28
- status: httpStatus.OK
29
- });
30
- }
31
- const total = result.docs.length + result.errors.length;
32
- const message = req.t('error:unableToDeleteCount', {
33
- count: result.errors.length,
34
- label: getTranslation(collection.config.labels[total > 1 ? 'plural' : 'singular'], req.i18n),
35
- total
36
- });
37
- return Response.json({
38
- ...result,
39
- message
40
- }, {
41
- headers,
42
- status: httpStatus.BAD_REQUEST
43
- });
44
- };
45
-
46
- //# sourceMappingURL=delete.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/collections/delete.ts"],"sourcesContent":["import type { Where } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport httpStatus from 'http-status'\nimport { deleteOperation } from 'payload'\nimport { isNumber } from 'payload/shared'\n\nimport type { CollectionRouteHandler } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\n\nexport const deleteDoc: CollectionRouteHandler = async ({ collection, req }) => {\n const { depth, where } = req.query as {\n depth?: string\n where?: Where\n }\n\n const result = await deleteOperation({\n collection,\n depth: isNumber(depth) ? Number(depth) : undefined,\n req,\n where,\n })\n\n const headers = headersWithCors({\n headers: new Headers(),\n req,\n })\n\n if (result.errors.length === 0) {\n const message = req.t('general:deletedCountSuccessfully', {\n count: result.docs.length,\n label: getTranslation(\n collection.config.labels[result.docs.length > 1 ? 'plural' : 'singular'],\n req.i18n,\n ),\n })\n\n return Response.json(\n {\n ...result,\n message,\n },\n {\n headers,\n status: httpStatus.OK,\n },\n )\n }\n\n const total = result.docs.length + result.errors.length\n\n const message = req.t('error:unableToDeleteCount', {\n count: result.errors.length,\n label: getTranslation(collection.config.labels[total > 1 ? 'plural' : 'singular'], req.i18n),\n total,\n })\n\n return Response.json(\n {\n ...result,\n message,\n },\n {\n headers,\n status: httpStatus.BAD_REQUEST,\n },\n )\n}\n"],"names":["getTranslation","httpStatus","deleteOperation","isNumber","headersWithCors","deleteDoc","collection","req","depth","where","query","result","Number","undefined","headers","Headers","errors","length","message","t","count","docs","label","config","labels","i18n","Response","json","status","OK","total","BAD_REQUEST"],"mappings":"AAEA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,gBAAgB,cAAa;AACpC,SAASC,eAAe,QAAQ,UAAS;AACzC,SAASC,QAAQ,QAAQ,iBAAgB;AAIzC,SAASC,eAAe,QAAQ,wCAAuC;AAEvE,OAAO,MAAMC,YAAoC,OAAO,EAAEC,UAAU,EAAEC,GAAG,EAAE;IACzE,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGF,IAAIG,KAAK;IAKlC,MAAMC,SAAS,MAAMT,gBAAgB;QACnCI;QACAE,OAAOL,SAASK,SAASI,OAAOJ,SAASK;QACzCN;QACAE;IACF;IAEA,MAAMK,UAAUV,gBAAgB;QAC9BU,SAAS,IAAIC;QACbR;IACF;IAEA,IAAII,OAAOK,MAAM,CAACC,MAAM,KAAK,GAAG;QAC9B,MAAMC,UAAUX,IAAIY,CAAC,CAAC,oCAAoC;YACxDC,OAAOT,OAAOU,IAAI,CAACJ,MAAM;YACzBK,OAAOtB,eACLM,WAAWiB,MAAM,CAACC,MAAM,CAACb,OAAOU,IAAI,CAACJ,MAAM,GAAG,IAAI,WAAW,WAAW,EACxEV,IAAIkB,IAAI;QAEZ;QAEA,OAAOC,SAASC,IAAI,CAClB;YACE,GAAGhB,MAAM;YACTO;QACF,GACA;YACEJ;YACAc,QAAQ3B,WAAW4B,EAAE;QACvB;IAEJ;IAEA,MAAMC,QAAQnB,OAAOU,IAAI,CAACJ,MAAM,GAAGN,OAAOK,MAAM,CAACC,MAAM;IAEvD,MAAMC,UAAUX,IAAIY,CAAC,CAAC,6BAA6B;QACjDC,OAAOT,OAAOK,MAAM,CAACC,MAAM;QAC3BK,OAAOtB,eAAeM,WAAWiB,MAAM,CAACC,MAAM,CAACM,QAAQ,IAAI,WAAW,WAAW,EAAEvB,IAAIkB,IAAI;QAC3FK;IACF;IAEA,OAAOJ,SAASC,IAAI,CAClB;QACE,GAAGhB,MAAM;QACTO;IACF,GACA;QACEJ;QACAc,QAAQ3B,WAAW8B,WAAW;IAChC;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandlerWithID } from '../types.js';
2
- export declare const deleteByID: CollectionRouteHandlerWithID;
3
- //# sourceMappingURL=deleteByID.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteByID.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/collections/deleteByID.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAK/D,eAAO,MAAM,UAAU,EAAE,4BAgDxB,CAAA"}
@@ -1,41 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { deleteByIDOperation } from 'payload';
3
- import { isNumber } from 'payload/shared';
4
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
5
- import { sanitizeCollectionID } from '../utilities/sanitizeCollectionID.js';
6
- export const deleteByID = async ({ id: incomingID, collection, req })=>{
7
- const { searchParams } = req;
8
- const depth = searchParams.get('depth');
9
- const id = sanitizeCollectionID({
10
- id: incomingID,
11
- collectionSlug: collection.config.slug,
12
- payload: req.payload
13
- });
14
- const doc = await deleteByIDOperation({
15
- id,
16
- collection,
17
- depth: isNumber(depth) ? depth : undefined,
18
- req
19
- });
20
- const headers = headersWithCors({
21
- headers: new Headers(),
22
- req
23
- });
24
- if (!doc) {
25
- return Response.json({
26
- message: req.t('general:notFound')
27
- }, {
28
- headers,
29
- status: httpStatus.NOT_FOUND
30
- });
31
- }
32
- return Response.json({
33
- doc,
34
- message: req.t('general:deletedSuccessfully')
35
- }, {
36
- headers,
37
- status: httpStatus.OK
38
- });
39
- };
40
-
41
- //# sourceMappingURL=deleteByID.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/routes/rest/collections/deleteByID.ts"],"sourcesContent":["import httpStatus from 'http-status'\nimport { deleteByIDOperation } from 'payload'\nimport { isNumber } from 'payload/shared'\n\nimport type { CollectionRouteHandlerWithID } from '../types.js'\n\nimport { headersWithCors } from '../../../utilities/headersWithCors.js'\nimport { sanitizeCollectionID } from '../utilities/sanitizeCollectionID.js'\n\nexport const deleteByID: CollectionRouteHandlerWithID = async ({\n id: incomingID,\n collection,\n req,\n}) => {\n const { searchParams } = req\n const depth = searchParams.get('depth')\n\n const id = sanitizeCollectionID({\n id: incomingID,\n collectionSlug: collection.config.slug,\n payload: req.payload,\n })\n\n const doc = await deleteByIDOperation({\n id,\n collection,\n depth: isNumber(depth) ? depth : undefined,\n req,\n })\n\n const headers = headersWithCors({\n headers: new Headers(),\n req,\n })\n\n if (!doc) {\n return Response.json(\n {\n message: req.t('general:notFound'),\n },\n {\n headers,\n status: httpStatus.NOT_FOUND,\n },\n )\n }\n\n return Response.json(\n {\n doc,\n message: req.t('general:deletedSuccessfully'),\n },\n {\n headers,\n status: httpStatus.OK,\n },\n )\n}\n"],"names":["httpStatus","deleteByIDOperation","isNumber","headersWithCors","sanitizeCollectionID","deleteByID","id","incomingID","collection","req","searchParams","depth","get","collectionSlug","config","slug","payload","doc","undefined","headers","Headers","Response","json","message","t","status","NOT_FOUND","OK"],"mappings":"AAAA,OAAOA,gBAAgB,cAAa;AACpC,SAASC,mBAAmB,QAAQ,UAAS;AAC7C,SAASC,QAAQ,QAAQ,iBAAgB;AAIzC,SAASC,eAAe,QAAQ,wCAAuC;AACvE,SAASC,oBAAoB,QAAQ,uCAAsC;AAE3E,OAAO,MAAMC,aAA2C,OAAO,EAC7DC,IAAIC,UAAU,EACdC,UAAU,EACVC,GAAG,EACJ;IACC,MAAM,EAAEC,YAAY,EAAE,GAAGD;IACzB,MAAME,QAAQD,aAAaE,GAAG,CAAC;IAE/B,MAAMN,KAAKF,qBAAqB;QAC9BE,IAAIC;QACJM,gBAAgBL,WAAWM,MAAM,CAACC,IAAI;QACtCC,SAASP,IAAIO,OAAO;IACtB;IAEA,MAAMC,MAAM,MAAMhB,oBAAoB;QACpCK;QACAE;QACAG,OAAOT,SAASS,SAASA,QAAQO;QACjCT;IACF;IAEA,MAAMU,UAAUhB,gBAAgB;QAC9BgB,SAAS,IAAIC;QACbX;IACF;IAEA,IAAI,CAACQ,KAAK;QACR,OAAOI,SAASC,IAAI,CAClB;YACEC,SAASd,IAAIe,CAAC,CAAC;QACjB,GACA;YACEL;YACAM,QAAQzB,WAAW0B,SAAS;QAC9B;IAEJ;IAEA,OAAOL,SAASC,IAAI,CAClB;QACEL;QACAM,SAASd,IAAIe,CAAC,CAAC;IACjB,GACA;QACEL;QACAM,QAAQzB,WAAW2B,EAAE;IACvB;AAEJ,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CollectionRouteHandlerWithID } from '../types.js';
2
- export declare const docAccess: CollectionRouteHandlerWithID;
3
- //# sourceMappingURL=docAccess.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docAccess.d.ts","sourceRoot":"","sources":["../../../../src/routes/rest/collections/docAccess.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAI/D,eAAO,MAAM,SAAS,EAAE,4BAcvB,CAAA"}
@@ -1,19 +0,0 @@
1
- import httpStatus from 'http-status';
2
- import { docAccessOperation } from 'payload';
3
- import { headersWithCors } from '../../../utilities/headersWithCors.js';
4
- export const docAccess = async ({ id, collection, req })=>{
5
- const result = await docAccessOperation({
6
- id,
7
- collection,
8
- req
9
- });
10
- return Response.json(result, {
11
- headers: headersWithCors({
12
- headers: new Headers(),
13
- req
14
- }),
15
- status: httpStatus.OK
16
- });
17
- };
18
-
19
- //# sourceMappingURL=docAccess.js.map