@payloadcms/next 3.0.0-beta.3 → 3.0.0-beta.30

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 (365) hide show
  1. package/dist/cjs/withPayload.cjs +2 -1
  2. package/dist/cjs/withPayload.cjs.map +1 -1
  3. package/dist/exports/routes.d.ts +1 -1
  4. package/dist/exports/routes.d.ts.map +1 -1
  5. package/dist/exports/routes.js +1 -1
  6. package/dist/exports/routes.js.map +1 -1
  7. package/dist/exports/utilities.d.ts +7 -1
  8. package/dist/exports/utilities.d.ts.map +1 -1
  9. package/dist/exports/utilities.js +7 -1
  10. package/dist/exports/utilities.js.map +1 -1
  11. package/dist/{next-fileupload → fetchAPI-multipart}/fileFactory.d.ts +2 -2
  12. package/dist/fetchAPI-multipart/fileFactory.d.ts.map +1 -0
  13. package/dist/fetchAPI-multipart/fileFactory.js.map +1 -0
  14. package/dist/{next-fileupload → fetchAPI-multipart}/handlers.d.ts +2 -2
  15. package/dist/fetchAPI-multipart/handlers.d.ts.map +1 -0
  16. package/dist/fetchAPI-multipart/handlers.js.map +1 -0
  17. package/dist/{next-fileupload → fetchAPI-multipart}/index.d.ts +8 -8
  18. package/dist/fetchAPI-multipart/index.d.ts.map +1 -0
  19. package/dist/{next-fileupload → fetchAPI-multipart}/index.js +1 -1
  20. package/dist/fetchAPI-multipart/index.js.map +1 -0
  21. package/dist/fetchAPI-multipart/isEligibleRequest.d.ts.map +1 -0
  22. package/dist/{next-fileupload → fetchAPI-multipart}/isEligibleRequest.js +1 -1
  23. package/dist/fetchAPI-multipart/isEligibleRequest.js.map +1 -0
  24. package/dist/fetchAPI-multipart/processMultipart.d.ts +8 -0
  25. package/dist/fetchAPI-multipart/processMultipart.d.ts.map +1 -0
  26. package/dist/{next-fileupload → fetchAPI-multipart}/processMultipart.js +29 -6
  27. package/dist/fetchAPI-multipart/processMultipart.js.map +1 -0
  28. package/dist/fetchAPI-multipart/processNested.d.ts.map +1 -0
  29. package/dist/{next-fileupload → fetchAPI-multipart}/processNested.js +2 -1
  30. package/dist/fetchAPI-multipart/processNested.js.map +1 -0
  31. package/dist/fetchAPI-multipart/uploadTimer.d.ts.map +1 -0
  32. package/dist/fetchAPI-multipart/uploadTimer.js.map +1 -0
  33. package/dist/{next-fileupload → fetchAPI-multipart}/utilities.d.ts +4 -4
  34. package/dist/fetchAPI-multipart/utilities.d.ts.map +1 -0
  35. package/dist/{next-fileupload → fetchAPI-multipart}/utilities.js +4 -4
  36. package/dist/fetchAPI-multipart/utilities.js.map +1 -0
  37. package/dist/fetchAPI-stream-file/index.d.ts.map +1 -0
  38. package/dist/fetchAPI-stream-file/index.js.map +1 -0
  39. package/dist/layouts/Root/index.d.ts.map +1 -1
  40. package/dist/layouts/Root/index.js +23 -1
  41. package/dist/layouts/Root/index.js.map +1 -1
  42. package/dist/prod/styles.css +1 -1
  43. package/dist/routes/graphql/handler.d.ts.map +1 -1
  44. package/dist/routes/graphql/handler.js +22 -10
  45. package/dist/routes/graphql/handler.js.map +1 -1
  46. package/dist/routes/index.d.ts +1 -1
  47. package/dist/routes/index.d.ts.map +1 -1
  48. package/dist/routes/index.js +1 -1
  49. package/dist/routes/index.js.map +1 -1
  50. package/dist/routes/rest/auth/access.d.ts.map +1 -1
  51. package/dist/routes/rest/auth/access.js +5 -0
  52. package/dist/routes/rest/auth/access.js.map +1 -1
  53. package/dist/routes/rest/auth/forgotPassword.d.ts.map +1 -1
  54. package/dist/routes/rest/auth/forgotPassword.js +7 -2
  55. package/dist/routes/rest/auth/forgotPassword.js.map +1 -1
  56. package/dist/routes/rest/auth/init.d.ts.map +1 -1
  57. package/dist/routes/rest/auth/init.js +6 -0
  58. package/dist/routes/rest/auth/init.js.map +1 -1
  59. package/dist/routes/rest/auth/login.d.ts.map +1 -1
  60. package/dist/routes/rest/auth/login.js +8 -5
  61. package/dist/routes/rest/auth/login.js.map +1 -1
  62. package/dist/routes/rest/auth/logout.d.ts.map +1 -1
  63. package/dist/routes/rest/auth/logout.js +12 -7
  64. package/dist/routes/rest/auth/logout.js.map +1 -1
  65. package/dist/routes/rest/auth/me.d.ts.map +1 -1
  66. package/dist/routes/rest/auth/me.js +5 -0
  67. package/dist/routes/rest/auth/me.js.map +1 -1
  68. package/dist/routes/rest/auth/refresh.d.ts.map +1 -1
  69. package/dist/routes/rest/auth/refresh.js +11 -7
  70. package/dist/routes/rest/auth/refresh.js.map +1 -1
  71. package/dist/routes/rest/auth/registerFirstUser.d.ts.map +1 -1
  72. package/dist/routes/rest/auth/registerFirstUser.js +8 -5
  73. package/dist/routes/rest/auth/registerFirstUser.js.map +1 -1
  74. package/dist/routes/rest/auth/resetPassword.d.ts.map +1 -1
  75. package/dist/routes/rest/auth/resetPassword.js +8 -5
  76. package/dist/routes/rest/auth/resetPassword.js.map +1 -1
  77. package/dist/routes/rest/auth/unlock.d.ts.map +1 -1
  78. package/dist/routes/rest/auth/unlock.js +7 -2
  79. package/dist/routes/rest/auth/unlock.js.map +1 -1
  80. package/dist/routes/rest/auth/verifyEmail.d.ts.map +1 -1
  81. package/dist/routes/rest/auth/verifyEmail.js +7 -2
  82. package/dist/routes/rest/auth/verifyEmail.js.map +1 -1
  83. package/dist/routes/rest/buildFormState.d.ts +3 -3
  84. package/dist/routes/rest/buildFormState.d.ts.map +1 -1
  85. package/dist/routes/rest/buildFormState.js +42 -7
  86. package/dist/routes/rest/buildFormState.js.map +1 -1
  87. package/dist/routes/rest/collections/count.d.ts +3 -0
  88. package/dist/routes/rest/collections/count.d.ts.map +1 -0
  89. package/dist/routes/rest/collections/count.js +15 -0
  90. package/dist/routes/rest/collections/count.js.map +1 -0
  91. package/dist/routes/rest/collections/create.d.ts.map +1 -1
  92. package/dist/routes/rest/collections/create.js +5 -0
  93. package/dist/routes/rest/collections/create.js.map +1 -1
  94. package/dist/routes/rest/collections/delete.d.ts.map +1 -1
  95. package/dist/routes/rest/collections/delete.js +7 -0
  96. package/dist/routes/rest/collections/delete.js.map +1 -1
  97. package/dist/routes/rest/collections/deleteByID.d.ts.map +1 -1
  98. package/dist/routes/rest/collections/deleteByID.js +14 -1
  99. package/dist/routes/rest/collections/deleteByID.js.map +1 -1
  100. package/dist/routes/rest/collections/docAccess.d.ts.map +1 -1
  101. package/dist/routes/rest/collections/docAccess.js +5 -0
  102. package/dist/routes/rest/collections/docAccess.js.map +1 -1
  103. package/dist/routes/rest/collections/duplicate.d.ts.map +1 -1
  104. package/dist/routes/rest/collections/duplicate.js +12 -1
  105. package/dist/routes/rest/collections/duplicate.js.map +1 -1
  106. package/dist/routes/rest/collections/find.d.ts.map +1 -1
  107. package/dist/routes/rest/collections/find.js +5 -0
  108. package/dist/routes/rest/collections/find.js.map +1 -1
  109. package/dist/routes/rest/collections/findByID.d.ts.map +1 -1
  110. package/dist/routes/rest/collections/findByID.js +12 -1
  111. package/dist/routes/rest/collections/findByID.js.map +1 -1
  112. package/dist/routes/rest/collections/findVersionByID.d.ts.map +1 -1
  113. package/dist/routes/rest/collections/findVersionByID.js +12 -1
  114. package/dist/routes/rest/collections/findVersionByID.js.map +1 -1
  115. package/dist/routes/rest/collections/findVersions.d.ts.map +1 -1
  116. package/dist/routes/rest/collections/findVersions.js +5 -0
  117. package/dist/routes/rest/collections/findVersions.js.map +1 -1
  118. package/dist/routes/rest/collections/preview.d.ts.map +1 -1
  119. package/dist/routes/rest/collections/preview.js +11 -2
  120. package/dist/routes/rest/collections/preview.js.map +1 -1
  121. package/dist/routes/rest/collections/restoreVersion.d.ts.map +1 -1
  122. package/dist/routes/rest/collections/restoreVersion.js +12 -1
  123. package/dist/routes/rest/collections/restoreVersion.js.map +1 -1
  124. package/dist/routes/rest/collections/update.d.ts.map +1 -1
  125. package/dist/routes/rest/collections/update.js +7 -0
  126. package/dist/routes/rest/collections/update.js.map +1 -1
  127. package/dist/routes/rest/collections/updateByID.d.ts.map +1 -1
  128. package/dist/routes/rest/collections/updateByID.js +12 -1
  129. package/dist/routes/rest/collections/updateByID.js.map +1 -1
  130. package/dist/routes/rest/files/checkFileAccess.d.ts +3 -3
  131. package/dist/routes/rest/files/checkFileAccess.d.ts.map +1 -1
  132. package/dist/routes/rest/files/checkFileAccess.js +1 -0
  133. package/dist/routes/rest/files/checkFileAccess.js.map +1 -1
  134. package/dist/routes/rest/files/getFile.d.ts +2 -2
  135. package/dist/routes/rest/files/getFile.d.ts.map +1 -1
  136. package/dist/routes/rest/files/getFile.js +19 -10
  137. package/dist/routes/rest/files/getFile.js.map +1 -1
  138. package/dist/routes/rest/files/getFileTypeFallback.d.ts +7 -0
  139. package/dist/routes/rest/files/getFileTypeFallback.d.ts.map +1 -0
  140. package/dist/routes/rest/files/getFileTypeFallback.js +21 -0
  141. package/dist/routes/rest/files/getFileTypeFallback.js.map +1 -0
  142. package/dist/routes/rest/globals/docAccess.d.ts.map +1 -1
  143. package/dist/routes/rest/globals/docAccess.js +5 -0
  144. package/dist/routes/rest/globals/docAccess.js.map +1 -1
  145. package/dist/routes/rest/globals/findOne.d.ts.map +1 -1
  146. package/dist/routes/rest/globals/findOne.js +5 -0
  147. package/dist/routes/rest/globals/findOne.js.map +1 -1
  148. package/dist/routes/rest/globals/findVersionByID.d.ts.map +1 -1
  149. package/dist/routes/rest/globals/findVersionByID.js +5 -0
  150. package/dist/routes/rest/globals/findVersionByID.js.map +1 -1
  151. package/dist/routes/rest/globals/findVersions.d.ts.map +1 -1
  152. package/dist/routes/rest/globals/findVersions.js +5 -0
  153. package/dist/routes/rest/globals/findVersions.js.map +1 -1
  154. package/dist/routes/rest/globals/preview.d.ts.map +1 -1
  155. package/dist/routes/rest/globals/preview.js +11 -2
  156. package/dist/routes/rest/globals/preview.js.map +1 -1
  157. package/dist/routes/rest/globals/restoreVersion.d.ts.map +1 -1
  158. package/dist/routes/rest/globals/restoreVersion.js +5 -0
  159. package/dist/routes/rest/globals/restoreVersion.js.map +1 -1
  160. package/dist/routes/rest/globals/update.d.ts.map +1 -1
  161. package/dist/routes/rest/globals/update.js +5 -0
  162. package/dist/routes/rest/globals/update.js.map +1 -1
  163. package/dist/routes/rest/index.d.ts +1 -0
  164. package/dist/routes/rest/index.d.ts.map +1 -1
  165. package/dist/routes/rest/index.js +324 -213
  166. package/dist/routes/rest/index.js.map +1 -1
  167. package/dist/routes/rest/routeError.d.ts +5 -4
  168. package/dist/routes/rest/routeError.d.ts.map +1 -1
  169. package/dist/routes/rest/routeError.js +25 -11
  170. package/dist/routes/rest/routeError.js.map +1 -1
  171. package/dist/routes/rest/types.d.ts +7 -7
  172. package/dist/routes/rest/types.d.ts.map +1 -1
  173. package/dist/routes/rest/types.js.map +1 -1
  174. package/dist/routes/rest/utilities/sanitizeCollectionID.d.ts +9 -0
  175. package/dist/routes/rest/utilities/sanitizeCollectionID.d.ts.map +1 -0
  176. package/dist/routes/rest/utilities/sanitizeCollectionID.js +13 -0
  177. package/dist/routes/rest/utilities/sanitizeCollectionID.js.map +1 -0
  178. package/dist/scss/app.scss +2 -3
  179. package/dist/scss/vars.scss +0 -7
  180. package/dist/utilities/addDataAndFileToRequest.d.ts +11 -0
  181. package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -0
  182. package/dist/utilities/addDataAndFileToRequest.js +74 -0
  183. package/dist/utilities/addDataAndFileToRequest.js.map +1 -0
  184. package/dist/utilities/addLocalesToRequest.d.ts +20 -0
  185. package/dist/utilities/addLocalesToRequest.d.ts.map +1 -0
  186. package/dist/utilities/addLocalesToRequest.js +44 -0
  187. package/dist/utilities/addLocalesToRequest.js.map +1 -0
  188. package/dist/utilities/buildFieldSchemaMap/index.d.ts +2 -2
  189. package/dist/utilities/buildFieldSchemaMap/index.d.ts.map +1 -1
  190. package/dist/utilities/buildFieldSchemaMap/index.js.map +1 -1
  191. package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts.map +1 -1
  192. package/dist/utilities/buildFieldSchemaMap/traverseFields.js +3 -0
  193. package/dist/utilities/buildFieldSchemaMap/traverseFields.js.map +1 -1
  194. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  195. package/dist/utilities/createPayloadRequest.js +15 -28
  196. package/dist/utilities/createPayloadRequest.js.map +1 -1
  197. package/dist/utilities/getDataAndFile.d.ts +2 -2
  198. package/dist/utilities/getDataAndFile.d.ts.map +1 -1
  199. package/dist/utilities/getDataAndFile.js +27 -43
  200. package/dist/utilities/getDataAndFile.js.map +1 -1
  201. package/dist/utilities/getPayloadHMR.d.ts +2 -1
  202. package/dist/utilities/getPayloadHMR.d.ts.map +1 -1
  203. package/dist/utilities/getPayloadHMR.js +22 -18
  204. package/dist/utilities/getPayloadHMR.js.map +1 -1
  205. package/dist/utilities/getRequestLanguage.d.ts +1 -1
  206. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  207. package/dist/utilities/getRequestLanguage.js +3 -4
  208. package/dist/utilities/getRequestLanguage.js.map +1 -1
  209. package/dist/utilities/headersWithCors.d.ts +8 -0
  210. package/dist/utilities/headersWithCors.d.ts.map +1 -0
  211. package/dist/utilities/headersWithCors.js +17 -0
  212. package/dist/utilities/headersWithCors.js.map +1 -0
  213. package/dist/utilities/initPage/handleAdminPage.d.ts +13 -0
  214. package/dist/utilities/initPage/handleAdminPage.d.ts.map +1 -0
  215. package/dist/utilities/initPage/handleAdminPage.js +35 -0
  216. package/dist/utilities/initPage/handleAdminPage.js.map +1 -0
  217. package/dist/utilities/initPage/handleAuthRedirect.d.ts +9 -0
  218. package/dist/utilities/initPage/handleAuthRedirect.d.ts.map +1 -0
  219. package/dist/utilities/initPage/handleAuthRedirect.js +26 -0
  220. package/dist/utilities/initPage/handleAuthRedirect.js.map +1 -0
  221. package/dist/utilities/initPage/index.d.ts +4 -0
  222. package/dist/utilities/initPage/index.d.ts.map +1 -0
  223. package/dist/utilities/{initPage.js → initPage/index.js} +22 -31
  224. package/dist/utilities/initPage/index.js.map +1 -0
  225. package/dist/utilities/initPage/shared.d.ts +4 -0
  226. package/dist/utilities/initPage/shared.d.ts.map +1 -0
  227. package/dist/utilities/initPage/shared.js +17 -0
  228. package/dist/utilities/initPage/shared.js.map +1 -0
  229. package/dist/utilities/initPage/types.d.ts +24 -0
  230. package/dist/utilities/initPage/types.d.ts.map +1 -0
  231. package/dist/utilities/initPage/types.js +3 -0
  232. package/dist/utilities/initPage/types.js.map +1 -0
  233. package/dist/views/API/index.client.js +2 -2
  234. package/dist/views/API/index.client.js.map +1 -1
  235. package/dist/views/Account/index.d.ts.map +1 -1
  236. package/dist/views/Account/index.js +2 -1
  237. package/dist/views/Account/index.js.map +1 -1
  238. package/dist/views/CreateFirstUser/index.client.d.ts +3 -3
  239. package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -1
  240. package/dist/views/CreateFirstUser/index.client.js +48 -6
  241. package/dist/views/CreateFirstUser/index.client.js.map +1 -1
  242. package/dist/views/CreateFirstUser/index.d.ts.map +1 -1
  243. package/dist/views/CreateFirstUser/index.js +9 -20
  244. package/dist/views/CreateFirstUser/index.js.map +1 -1
  245. package/dist/views/CreateFirstUser/index.scss +2 -12
  246. package/dist/views/Document/index.d.ts.map +1 -1
  247. package/dist/views/Document/index.js +2 -1
  248. package/dist/views/Document/index.js.map +1 -1
  249. package/dist/views/Edit/Default/Auth/APIKey.d.ts +1 -0
  250. package/dist/views/Edit/Default/Auth/APIKey.d.ts.map +1 -1
  251. package/dist/views/Edit/Default/Auth/APIKey.js +13 -6
  252. package/dist/views/Edit/Default/Auth/APIKey.js.map +1 -1
  253. package/dist/views/Edit/Default/Auth/index.js +2 -1
  254. package/dist/views/Edit/Default/Auth/index.js.map +1 -1
  255. package/dist/views/Edit/Default/{SetStepNav → SetDocumentStepNav}/index.d.ts +1 -1
  256. package/dist/views/Edit/Default/SetDocumentStepNav/index.d.ts.map +1 -0
  257. package/dist/views/Edit/Default/{SetStepNav → SetDocumentStepNav}/index.js +12 -5
  258. package/dist/views/Edit/Default/SetDocumentStepNav/index.js.map +1 -0
  259. package/dist/views/Edit/Default/index.d.ts.map +1 -1
  260. package/dist/views/Edit/Default/index.js +6 -5
  261. package/dist/views/Edit/Default/index.js.map +1 -1
  262. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts +3 -0
  263. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +1 -0
  264. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +58 -0
  265. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +1 -0
  266. package/dist/views/ForgotPassword/index.d.ts.map +1 -1
  267. package/dist/views/ForgotPassword/index.js +3 -39
  268. package/dist/views/ForgotPassword/index.js.map +1 -1
  269. package/dist/views/List/index.js +2 -2
  270. package/dist/views/List/index.js.map +1 -1
  271. package/dist/views/LivePreview/Preview/index.d.ts.map +1 -1
  272. package/dist/views/LivePreview/Preview/index.js +23 -0
  273. package/dist/views/LivePreview/Preview/index.js.map +1 -1
  274. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +1 -1
  275. package/dist/views/LivePreview/Toolbar/Controls/index.js +6 -4
  276. package/dist/views/LivePreview/Toolbar/Controls/index.js.map +1 -1
  277. package/dist/views/LivePreview/index.client.js +2 -2
  278. package/dist/views/LivePreview/index.client.js.map +1 -1
  279. package/dist/views/Login/LoginForm/index.d.ts.map +1 -1
  280. package/dist/views/Login/LoginForm/index.js +32 -2
  281. package/dist/views/Login/LoginForm/index.js.map +1 -1
  282. package/dist/views/Login/index.d.ts.map +1 -1
  283. package/dist/views/Login/index.js +14 -7
  284. package/dist/views/Login/index.js.map +1 -1
  285. package/dist/views/Logout/LogoutClient.d.ts.map +1 -1
  286. package/dist/views/Logout/LogoutClient.js +1 -2
  287. package/dist/views/Logout/LogoutClient.js.map +1 -1
  288. package/dist/views/NotFound/index.d.ts.map +1 -1
  289. package/dist/views/NotFound/index.js +5 -3
  290. package/dist/views/NotFound/index.js.map +1 -1
  291. package/dist/views/ResetPassword/index.client.d.ts +7 -0
  292. package/dist/views/ResetPassword/index.client.d.ts.map +1 -0
  293. package/dist/views/ResetPassword/index.client.js +83 -0
  294. package/dist/views/ResetPassword/index.client.js.map +1 -0
  295. package/dist/views/ResetPassword/index.d.ts.map +1 -1
  296. package/dist/views/ResetPassword/index.js +6 -31
  297. package/dist/views/ResetPassword/index.js.map +1 -1
  298. package/dist/views/ResetPassword/index.scss +2 -12
  299. package/dist/views/Root/getViewFromConfig.d.ts +1 -1
  300. package/dist/views/Root/getViewFromConfig.d.ts.map +1 -1
  301. package/dist/views/Root/getViewFromConfig.js.map +1 -1
  302. package/dist/views/Root/index.js +1 -1
  303. package/dist/views/Root/index.js.map +1 -1
  304. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +0 -2
  305. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -1
  306. package/dist/views/Version/Restore/index.d.ts.map +1 -1
  307. package/dist/views/Version/Restore/index.js +11 -8
  308. package/dist/views/Version/Restore/index.js.map +1 -1
  309. package/dist/views/Version/Restore/index.scss +4 -2
  310. package/dist/views/Versions/index.js +2 -2
  311. package/dist/views/Versions/index.js.map +1 -1
  312. package/dist/withPayload.d.ts.map +1 -1
  313. package/dist/withPayload.js +2 -1
  314. package/dist/withPayload.js.map +1 -1
  315. package/package.json +34 -33
  316. package/dist/next-fileupload/fileFactory.d.ts.map +0 -1
  317. package/dist/next-fileupload/fileFactory.js.map +0 -1
  318. package/dist/next-fileupload/handlers.d.ts.map +0 -1
  319. package/dist/next-fileupload/handlers.js.map +0 -1
  320. package/dist/next-fileupload/index.d.ts.map +0 -1
  321. package/dist/next-fileupload/index.js.map +0 -1
  322. package/dist/next-fileupload/isEligibleRequest.d.ts.map +0 -1
  323. package/dist/next-fileupload/isEligibleRequest.js.map +0 -1
  324. package/dist/next-fileupload/processMultipart.d.ts +0 -8
  325. package/dist/next-fileupload/processMultipart.d.ts.map +0 -1
  326. package/dist/next-fileupload/processMultipart.js.map +0 -1
  327. package/dist/next-fileupload/processNested.d.ts.map +0 -1
  328. package/dist/next-fileupload/processNested.js.map +0 -1
  329. package/dist/next-fileupload/uploadTimer.d.ts.map +0 -1
  330. package/dist/next-fileupload/uploadTimer.js.map +0 -1
  331. package/dist/next-fileupload/utilities.d.ts.map +0 -1
  332. package/dist/next-fileupload/utilities.js.map +0 -1
  333. package/dist/next-stream-file/index.d.ts.map +0 -1
  334. package/dist/next-stream-file/index.js.map +0 -1
  335. package/dist/prod/payload/SuisseIntl-Bold.woff +0 -0
  336. package/dist/prod/payload/SuisseIntl-Bold.woff2 +0 -0
  337. package/dist/prod/payload/SuisseIntl-Medium.woff +0 -0
  338. package/dist/prod/payload/SuisseIntl-Medium.woff2 +0 -0
  339. package/dist/prod/payload/SuisseIntl-SemiBold.woff +0 -0
  340. package/dist/prod/payload/SuisseIntl-SemiBold.woff2 +0 -0
  341. package/dist/prod/payload/SuisseIntl.woff +0 -0
  342. package/dist/prod/payload/SuisseIntl.woff2 +0 -0
  343. package/dist/prod/payload/merriweather-v30-latin-900.woff +0 -0
  344. package/dist/prod/payload/merriweather-v30-latin-900.woff2 +0 -0
  345. package/dist/prod/payload/merriweather-v30-latin-900italic.woff +0 -0
  346. package/dist/prod/payload/merriweather-v30-latin-900italic.woff2 +0 -0
  347. package/dist/prod/payload/merriweather-v30-latin-italic.woff +0 -0
  348. package/dist/prod/payload/merriweather-v30-latin-italic.woff2 +0 -0
  349. package/dist/prod/payload/merriweather-v30-latin-regular.woff +0 -0
  350. package/dist/prod/payload/merriweather-v30-latin-regular.woff2 +0 -0
  351. package/dist/scss/fonts.scss +0 -75
  352. package/dist/utilities/initPage.d.ts +0 -12
  353. package/dist/utilities/initPage.d.ts.map +0 -1
  354. package/dist/utilities/initPage.js.map +0 -1
  355. package/dist/views/Edit/Default/SetStepNav/index.d.ts.map +0 -1
  356. package/dist/views/Edit/Default/SetStepNav/index.js.map +0 -1
  357. package/src/index.js +0 -1
  358. /package/dist/{next-fileupload → fetchAPI-multipart}/fileFactory.js +0 -0
  359. /package/dist/{next-fileupload → fetchAPI-multipart}/handlers.js +0 -0
  360. /package/dist/{next-fileupload → fetchAPI-multipart}/isEligibleRequest.d.ts +0 -0
  361. /package/dist/{next-fileupload → fetchAPI-multipart}/processNested.d.ts +0 -0
  362. /package/dist/{next-fileupload → fetchAPI-multipart}/uploadTimer.d.ts +0 -0
  363. /package/dist/{next-fileupload → fetchAPI-multipart}/uploadTimer.js +0 -0
  364. /package/dist/{next-stream-file → fetchAPI-stream-file}/index.d.ts +0 -0
  365. /package/dist/{next-stream-file → fetchAPI-stream-file}/index.js +0 -0
@@ -6,6 +6,7 @@ import { headers as getHeaders, cookies as nextCookies } from 'next/headers.js';
6
6
  import { parseCookies } from 'payload/auth';
7
7
  import { createClientConfig } from 'payload/config';
8
8
  import React from 'react';
9
+ import { getPayloadHMR } from '../../utilities/getPayloadHMR.js';
9
10
  import { getRequestLanguage } from '../../utilities/getRequestLanguage.js';
10
11
  import { DefaultEditView } from '../../views/Edit/Default/index.js';
11
12
  import { DefaultListView } from '../../views/List/Default/index.js';
@@ -13,6 +14,22 @@ export const metadata = {
13
14
  description: 'Generated by Next.js',
14
15
  title: 'Next.js'
15
16
  };
17
+ import { Merriweather } from 'next/font/google';
18
+ const merriweather = Merriweather({
19
+ display: 'swap',
20
+ style: [
21
+ 'normal',
22
+ 'italic'
23
+ ],
24
+ subsets: [
25
+ 'latin'
26
+ ],
27
+ variable: '--font-serif',
28
+ weight: [
29
+ '400',
30
+ '900'
31
+ ]
32
+ });
16
33
  export const RootLayout = async ({ children, config: configPromise })=>{
17
34
  const config = await configPromise;
18
35
  const headers = getHeaders();
@@ -22,6 +39,9 @@ export const RootLayout = async ({ children, config: configPromise })=>{
22
39
  cookies,
23
40
  headers
24
41
  });
42
+ const payload = await getPayloadHMR({
43
+ config
44
+ });
25
45
  const i18n = await initI18n({
26
46
  config: config.i18n,
27
47
  context: 'client',
@@ -55,9 +75,11 @@ export const RootLayout = async ({ children, config: configPromise })=>{
55
75
  DefaultListView,
56
76
  children,
57
77
  config,
58
- i18n
78
+ i18n,
79
+ payload
59
80
  });
60
81
  return /*#__PURE__*/ React.createElement("html", {
82
+ className: merriweather.variable,
61
83
  dir: dir,
62
84
  lang: languageCode
63
85
  }, /*#__PURE__*/ React.createElement("body", null, /*#__PURE__*/ React.createElement(RootProvider, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/layouts/Root/index.tsx"],"sourcesContent":["import type { AcceptedLanguages } from '@payloadcms/translations'\nimport type { SanitizedConfig } from 'payload/types'\n\nimport { rtlLanguages } from '@payloadcms/translations'\nimport { initI18n } from '@payloadcms/translations'\nimport { RootProvider } from '@payloadcms/ui/providers/Root'\nimport '@payloadcms/ui/scss/app.scss'\nimport { buildComponentMap } from '@payloadcms/ui/utilities/buildComponentMap'\nimport { headers as getHeaders, cookies as nextCookies } from 'next/headers.js'\nimport { parseCookies } from 'payload/auth'\nimport { createClientConfig } from 'payload/config'\nimport React from 'react'\nimport 'react-toastify/dist/ReactToastify.css'\n\nimport { getRequestLanguage } from '../../utilities/getRequestLanguage.js'\nimport { DefaultEditView } from '../../views/Edit/Default/index.js'\nimport { DefaultListView } from '../../views/List/Default/index.js'\n\nexport const metadata = {\n description: 'Generated by Next.js',\n title: 'Next.js',\n}\n\nexport const RootLayout = async ({\n children,\n config: configPromise,\n}: {\n children: React.ReactNode\n config: Promise<SanitizedConfig>\n}) => {\n const config = await configPromise\n\n const headers = getHeaders()\n const cookies = parseCookies(headers)\n\n const languageCode = getRequestLanguage({\n config,\n cookies,\n headers,\n })\n\n const i18n = await initI18n({ config: config.i18n, context: 'client', language: languageCode })\n const clientConfig = await createClientConfig({ config, t: i18n.t })\n\n const dir = (rtlLanguages as unknown as AcceptedLanguages[]).includes(languageCode)\n ? 'RTL'\n : 'LTR'\n\n const languageOptions = Object.entries(config.i18n.supportedLanguages || {}).reduce(\n (acc, [language, languageConfig]) => {\n if (Object.keys(config.i18n.supportedLanguages).includes(language)) {\n acc.push({\n label: languageConfig.translations.general.thisLanguage,\n value: language,\n })\n }\n\n return acc\n },\n [],\n )\n\n // eslint-disable-next-line @typescript-eslint/require-await\n async function switchLanguageServerAction(lang: string): Promise<void> {\n 'use server'\n nextCookies().set({\n name: `${config.cookiePrefix || 'payload'}-lng`,\n path: '/',\n value: lang,\n })\n }\n\n const { componentMap, wrappedChildren } = buildComponentMap({\n DefaultEditView,\n DefaultListView,\n children,\n config,\n i18n,\n })\n\n return (\n <html dir={dir} lang={languageCode}>\n <body>\n <RootProvider\n componentMap={componentMap}\n config={clientConfig}\n dateFNSKey={i18n.dateFNSKey}\n fallbackLang={clientConfig.i18n.fallbackLanguage}\n languageCode={languageCode}\n languageOptions={languageOptions}\n // eslint-disable-next-line react/jsx-no-bind\n switchLanguageServerAction={switchLanguageServerAction}\n translations={i18n.translations}\n >\n {wrappedChildren}\n </RootProvider>\n <div id=\"portal\" />\n </body>\n </html>\n )\n}\n"],"names":["rtlLanguages","initI18n","RootProvider","buildComponentMap","headers","getHeaders","cookies","nextCookies","parseCookies","createClientConfig","React","getRequestLanguage","DefaultEditView","DefaultListView","metadata","description","title","RootLayout","children","config","configPromise","languageCode","i18n","context","language","clientConfig","t","dir","includes","languageOptions","Object","entries","supportedLanguages","reduce","acc","languageConfig","keys","push","label","translations","general","thisLanguage","value","switchLanguageServerAction","lang","set","name","cookiePrefix","path","componentMap","wrappedChildren","html","body","dateFNSKey","fallbackLang","fallbackLanguage","div","id"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAGA,SAASA,YAAY,QAAQ,2BAA0B;AACvD,SAASC,QAAQ,QAAQ,2BAA0B;AACnD,SAASC,YAAY,QAAQ,gCAA+B;AAE5D,SAASC,iBAAiB,QAAQ,6CAA4C;AAC9E,SAASC,WAAWC,UAAU,EAAEC,WAAWC,WAAW,QAAQ,kBAAiB;AAC/E,SAASC,YAAY,QAAQ,eAAc;AAC3C,SAASC,kBAAkB,QAAQ,iBAAgB;AACnD,OAAOC,WAAW,QAAO;AAGzB,SAASC,kBAAkB,QAAQ,wCAAuC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AC6B;QAAKxB,KAAKA;QAAKiB,MAAMvB;qBACpB,oBAAC+B,4BACC,oBAAClD;QACC+C,cAAcA;QACd9B,QAAQM;QACR4B,YAAY/B,KAAK+B,UAAU;QAC3BC,cAAc7B,aAAaH,IAAI,CAACiC,gBAAgB;QAChDlC,cAAcA;QACdQ,iBAAiBA;QACjB,6CAA6C;QAC7Cc,4BAA4BA;QAC5BJ,cAAcjB,KAAKiB,YAAY;OAE9BW,gCAEH,oBAACM;QAAIC,IAAG;;AAIhB,EAAC"}
1
+ {"version":3,"sources":["../../../src/layouts/Root/index.tsx"],"sourcesContent":["import type { AcceptedLanguages } from '@payloadcms/translations'\nimport type { SanitizedConfig } from 'payload/types'\n\nimport { rtlLanguages } from '@payloadcms/translations'\nimport { initI18n } from '@payloadcms/translations'\nimport { RootProvider } from '@payloadcms/ui/providers/Root'\nimport '@payloadcms/ui/scss/app.scss'\nimport { buildComponentMap } from '@payloadcms/ui/utilities/buildComponentMap'\nimport { headers as getHeaders, cookies as nextCookies } from 'next/headers.js'\nimport { parseCookies } from 'payload/auth'\nimport { createClientConfig } from 'payload/config'\nimport React from 'react'\nimport 'react-toastify/dist/ReactToastify.css'\n\nimport { getPayloadHMR } from '../../utilities/getPayloadHMR.js'\nimport { getRequestLanguage } from '../../utilities/getRequestLanguage.js'\nimport { DefaultEditView } from '../../views/Edit/Default/index.js'\nimport { DefaultListView } from '../../views/List/Default/index.js'\n\nexport const metadata = {\n description: 'Generated by Next.js',\n title: 'Next.js',\n}\n\nimport { Merriweather } from 'next/font/google'\n\nconst merriweather = Merriweather({\n display: 'swap',\n style: ['normal', 'italic'],\n subsets: ['latin'],\n variable: '--font-serif',\n weight: ['400', '900'],\n})\n\nexport const RootLayout = async ({\n children,\n config: configPromise,\n}: {\n children: React.ReactNode\n config: Promise<SanitizedConfig>\n}) => {\n const config = await configPromise\n\n const headers = getHeaders()\n const cookies = parseCookies(headers)\n\n const languageCode = getRequestLanguage({\n config,\n cookies,\n headers,\n })\n\n const payload = await getPayloadHMR({ config })\n const i18n = await initI18n({ config: config.i18n, context: 'client', language: languageCode })\n const clientConfig = await createClientConfig({ config, t: i18n.t })\n\n const dir = (rtlLanguages as unknown as AcceptedLanguages[]).includes(languageCode)\n ? 'RTL'\n : 'LTR'\n\n const languageOptions = Object.entries(config.i18n.supportedLanguages || {}).reduce(\n (acc, [language, languageConfig]) => {\n if (Object.keys(config.i18n.supportedLanguages).includes(language)) {\n acc.push({\n label: languageConfig.translations.general.thisLanguage,\n value: language,\n })\n }\n\n return acc\n },\n [],\n )\n\n // eslint-disable-next-line @typescript-eslint/require-await\n async function switchLanguageServerAction(lang: string): Promise<void> {\n 'use server'\n nextCookies().set({\n name: `${config.cookiePrefix || 'payload'}-lng`,\n path: '/',\n value: lang,\n })\n }\n\n const { componentMap, wrappedChildren } = buildComponentMap({\n DefaultEditView,\n DefaultListView,\n children,\n config,\n i18n,\n payload,\n })\n\n return (\n <html className={merriweather.variable} dir={dir} lang={languageCode}>\n <body>\n <RootProvider\n componentMap={componentMap}\n config={clientConfig}\n dateFNSKey={i18n.dateFNSKey}\n fallbackLang={clientConfig.i18n.fallbackLanguage}\n languageCode={languageCode}\n languageOptions={languageOptions}\n // eslint-disable-next-line react/jsx-no-bind\n switchLanguageServerAction={switchLanguageServerAction}\n translations={i18n.translations}\n >\n {wrappedChildren}\n </RootProvider>\n <div id=\"portal\" />\n </body>\n </html>\n )\n}\n"],"names":["rtlLanguages","initI18n","RootProvider","buildComponentMap","headers","getHeaders","cookies","nextCookies","parseCookies","createClientConfig","React","getPayloadHMR","getRequestLanguage","DefaultEditView","DefaultListView","metadata","description","title","Merriweather","merriweather","display","style","subsets","variable","weight","RootLayout","children","config","configPromise","languageCode","payload","i18n","context","language","clientConfig","t","dir","includes","languageOptions","Object","entries","supportedLanguages","reduce","acc","languageConfig","keys","push","label","translations","general","thisLanguage","value","switchLanguageServerAction","lang","set","name","cookiePrefix","path","componentMap","wrappedChildren","html","className","body","dateFNSKey","fallback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