@payloadcms/next 3.0.0-alpha.5 → 3.0.0-alpha.50

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 (1106) hide show
  1. package/dist/config.js +2 -12
  2. package/dist/config.js.map +1 -0
  3. package/dist/elements/LeaveWithoutSaving/index.js +25 -76
  4. package/dist/elements/LeaveWithoutSaving/index.js.map +1 -0
  5. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +11 -29
  6. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js.map +1 -0
  7. package/dist/exports/layouts.d.ts +2 -0
  8. package/dist/exports/layouts.d.ts.map +1 -0
  9. package/dist/exports/layouts.js +3 -0
  10. package/dist/exports/layouts.js.map +1 -0
  11. package/dist/exports/routes.d.ts +3 -0
  12. package/dist/exports/routes.d.ts.map +1 -0
  13. package/dist/exports/routes.js +4 -0
  14. package/dist/exports/routes.js.map +1 -0
  15. package/dist/exports/utilities.d.ts +2 -0
  16. package/dist/exports/utilities.d.ts.map +1 -0
  17. package/dist/exports/utilities.js +3 -0
  18. package/dist/exports/utilities.js.map +1 -0
  19. package/dist/exports/views.d.ts +4 -0
  20. package/dist/exports/views.d.ts.map +1 -0
  21. package/dist/exports/views.js +5 -0
  22. package/dist/exports/views.js.map +1 -0
  23. package/dist/index.js +2 -3
  24. package/dist/index.js.map +1 -0
  25. package/dist/layouts/Root/index.d.ts.map +1 -1
  26. package/dist/layouts/Root/index.js +39 -55
  27. package/dist/layouts/Root/index.js.map +1 -0
  28. package/dist/next-fileupload/fileFactory.d.ts +2 -2
  29. package/dist/next-fileupload/fileFactory.d.ts.map +1 -1
  30. package/dist/next-fileupload/fileFactory.js +9 -19
  31. package/dist/next-fileupload/fileFactory.js.map +1 -0
  32. package/dist/next-fileupload/handlers.d.ts +2 -2
  33. package/dist/next-fileupload/handlers.d.ts.map +1 -1
  34. package/dist/next-fileupload/handlers.js +25 -89
  35. package/dist/next-fileupload/handlers.js.map +1 -0
  36. package/dist/next-fileupload/index.d.ts +1 -1
  37. package/dist/next-fileupload/index.js +10 -25
  38. package/dist/next-fileupload/index.js.map +1 -0
  39. package/dist/next-fileupload/isEligibleRequest.js +2 -12
  40. package/dist/next-fileupload/isEligibleRequest.js.map +1 -0
  41. package/dist/next-fileupload/processMultipart.d.ts +1 -1
  42. package/dist/next-fileupload/processMultipart.d.ts.map +1 -1
  43. package/dist/next-fileupload/processMultipart.js +33 -46
  44. package/dist/next-fileupload/processMultipart.js.map +1 -0
  45. package/dist/next-fileupload/processNested.js +4 -14
  46. package/dist/next-fileupload/processNested.js.map +1 -0
  47. package/dist/next-fileupload/uploadTimer.js +2 -12
  48. package/dist/next-fileupload/uploadTimer.js.map +1 -0
  49. package/dist/next-fileupload/utilities.d.ts +1 -1
  50. package/dist/next-fileupload/utilities.d.ts.map +1 -1
  51. package/dist/next-fileupload/utilities.js +31 -76
  52. package/dist/next-fileupload/utilities.js.map +1 -0
  53. package/dist/next-stream-file/index.d.ts +4 -0
  54. package/dist/next-stream-file/index.d.ts.map +1 -1
  55. package/dist/next-stream-file/index.js +6 -21
  56. package/dist/next-stream-file/index.js.map +1 -0
  57. package/dist/prod/payload/SuisseIntl-Bold.woff +0 -0
  58. package/dist/prod/payload/SuisseIntl-Bold.woff2 +0 -0
  59. package/dist/prod/payload/SuisseIntl-Medium.woff +0 -0
  60. package/dist/prod/payload/SuisseIntl-Medium.woff2 +0 -0
  61. package/dist/prod/payload/SuisseIntl-SemiBold.woff +0 -0
  62. package/dist/prod/payload/SuisseIntl-SemiBold.woff2 +0 -0
  63. package/dist/prod/payload/SuisseIntl.woff +0 -0
  64. package/dist/prod/payload/SuisseIntl.woff2 +0 -0
  65. package/dist/prod/payload/favicon.svg +15 -0
  66. package/dist/prod/payload/merriweather-v30-latin-900.woff +0 -0
  67. package/dist/prod/payload/merriweather-v30-latin-900.woff2 +0 -0
  68. package/dist/prod/payload/merriweather-v30-latin-900italic.woff +0 -0
  69. package/dist/prod/payload/merriweather-v30-latin-900italic.woff2 +0 -0
  70. package/dist/prod/payload/merriweather-v30-latin-italic.woff +0 -0
  71. package/dist/prod/payload/merriweather-v30-latin-italic.woff2 +0 -0
  72. package/dist/prod/payload/merriweather-v30-latin-regular.woff +0 -0
  73. package/dist/prod/payload/merriweather-v30-latin-regular.woff2 +0 -0
  74. package/dist/prod/payload/og-image.png +0 -0
  75. package/dist/prod/styles.css +1 -0
  76. package/dist/routes/graphql/handler.d.ts.map +1 -1
  77. package/dist/routes/graphql/handler.js +19 -36
  78. package/dist/routes/graphql/handler.js.map +1 -0
  79. package/dist/routes/graphql/index.d.ts +2 -2
  80. package/dist/routes/graphql/index.d.ts.map +1 -1
  81. package/dist/routes/graphql/index.js +3 -21
  82. package/dist/routes/graphql/index.js.map +1 -0
  83. package/dist/routes/graphql/playground.js +6 -16
  84. package/dist/routes/graphql/playground.js.map +1 -0
  85. package/dist/routes/index.d.ts +2 -3
  86. package/dist/routes/index.d.ts.map +1 -1
  87. package/dist/routes/index.js +3 -37
  88. package/dist/routes/index.js.map +1 -0
  89. package/dist/routes/rest/auth/access.d.ts +1 -1
  90. package/dist/routes/rest/auth/access.d.ts.map +1 -1
  91. package/dist/routes/rest/auth/access.js +6 -21
  92. package/dist/routes/rest/auth/access.js.map +1 -0
  93. package/dist/routes/rest/auth/forgotPassword.d.ts +1 -1
  94. package/dist/routes/rest/auth/forgotPassword.d.ts.map +1 -1
  95. package/dist/routes/rest/auth/forgotPassword.js +6 -21
  96. package/dist/routes/rest/auth/forgotPassword.js.map +1 -0
  97. package/dist/routes/rest/auth/init.d.ts +1 -1
  98. package/dist/routes/rest/auth/init.d.ts.map +1 -1
  99. package/dist/routes/rest/auth/init.js +4 -14
  100. package/dist/routes/rest/auth/init.js.map +1 -0
  101. package/dist/routes/rest/auth/login.d.ts +1 -1
  102. package/dist/routes/rest/auth/login.d.ts.map +1 -1
  103. package/dist/routes/rest/auth/login.js +10 -25
  104. package/dist/routes/rest/auth/login.js.map +1 -0
  105. package/dist/routes/rest/auth/logout.d.ts +1 -1
  106. package/dist/routes/rest/auth/logout.d.ts.map +1 -1
  107. package/dist/routes/rest/auth/logout.js +9 -24
  108. package/dist/routes/rest/auth/logout.js.map +1 -0
  109. package/dist/routes/rest/auth/me.d.ts +1 -1
  110. package/dist/routes/rest/auth/me.d.ts.map +1 -1
  111. package/dist/routes/rest/auth/me.js +8 -23
  112. package/dist/routes/rest/auth/me.js.map +1 -0
  113. package/dist/routes/rest/auth/refresh.d.ts +1 -1
  114. package/dist/routes/rest/auth/refresh.d.ts.map +1 -1
  115. package/dist/routes/rest/auth/refresh.js +11 -25
  116. package/dist/routes/rest/auth/refresh.js.map +1 -0
  117. package/dist/routes/rest/auth/registerFirstUser.d.ts +1 -1
  118. package/dist/routes/rest/auth/registerFirstUser.d.ts.map +1 -1
  119. package/dist/routes/rest/auth/registerFirstUser.js +12 -25
  120. package/dist/routes/rest/auth/registerFirstUser.js.map +1 -0
  121. package/dist/routes/rest/auth/resetPassword.d.ts +1 -1
  122. package/dist/routes/rest/auth/resetPassword.d.ts.map +1 -1
  123. package/dist/routes/rest/auth/resetPassword.js +8 -23
  124. package/dist/routes/rest/auth/resetPassword.js.map +1 -0
  125. package/dist/routes/rest/auth/unlock.d.ts +1 -1
  126. package/dist/routes/rest/auth/unlock.d.ts.map +1 -1
  127. package/dist/routes/rest/auth/unlock.js +6 -21
  128. package/dist/routes/rest/auth/unlock.js.map +1 -0
  129. package/dist/routes/rest/auth/verifyEmail.d.ts +1 -1
  130. package/dist/routes/rest/auth/verifyEmail.d.ts.map +1 -1
  131. package/dist/routes/rest/auth/verifyEmail.js +6 -21
  132. package/dist/routes/rest/auth/verifyEmail.js.map +1 -0
  133. package/dist/routes/rest/buildFormState.d.ts +1 -1
  134. package/dist/routes/rest/buildFormState.d.ts.map +1 -1
  135. package/dist/routes/rest/buildFormState.js +141 -79
  136. package/dist/routes/rest/buildFormState.js.map +1 -0
  137. package/dist/routes/rest/checkEndpoints.d.ts.map +1 -1
  138. package/dist/routes/rest/checkEndpoints.js +4 -19
  139. package/dist/routes/rest/checkEndpoints.js.map +1 -0
  140. package/dist/routes/rest/collections/create.d.ts +1 -1
  141. package/dist/routes/rest/collections/create.d.ts.map +1 -1
  142. package/dist/routes/rest/collections/create.js +10 -24
  143. package/dist/routes/rest/collections/create.js.map +1 -0
  144. package/dist/routes/rest/collections/delete.d.ts +1 -1
  145. package/dist/routes/rest/collections/delete.d.ts.map +1 -1
  146. package/dist/routes/rest/collections/delete.js +13 -31
  147. package/dist/routes/rest/collections/delete.js.map +1 -0
  148. package/dist/routes/rest/collections/deleteByID.d.ts +1 -1
  149. package/dist/routes/rest/collections/deleteByID.d.ts.map +1 -1
  150. package/dist/routes/rest/collections/deleteByID.js +9 -24
  151. package/dist/routes/rest/collections/deleteByID.js.map +1 -0
  152. package/dist/routes/rest/collections/docAccess.d.ts +1 -1
  153. package/dist/routes/rest/collections/docAccess.d.ts.map +1 -1
  154. package/dist/routes/rest/collections/docAccess.js +6 -21
  155. package/dist/routes/rest/collections/docAccess.js.map +1 -0
  156. package/dist/routes/rest/collections/duplicate.d.ts +3 -0
  157. package/dist/routes/rest/collections/duplicate.d.ts.map +1 -0
  158. package/dist/routes/rest/collections/duplicate.js +28 -0
  159. package/dist/routes/rest/collections/duplicate.js.map +1 -0
  160. package/dist/routes/rest/collections/find.d.ts +1 -1
  161. package/dist/routes/rest/collections/find.d.ts.map +1 -1
  162. package/dist/routes/rest/collections/find.js +11 -29
  163. package/dist/routes/rest/collections/find.js.map +1 -0
  164. package/dist/routes/rest/collections/findByID.d.ts +1 -1
  165. package/dist/routes/rest/collections/findByID.d.ts.map +1 -1
  166. package/dist/routes/rest/collections/findByID.js +8 -23
  167. package/dist/routes/rest/collections/findByID.js.map +1 -0
  168. package/dist/routes/rest/collections/findVersionByID.d.ts +1 -1
  169. package/dist/routes/rest/collections/findVersionByID.d.ts.map +1 -1
  170. package/dist/routes/rest/collections/findVersionByID.js +8 -23
  171. package/dist/routes/rest/collections/findVersionByID.js.map +1 -0
  172. package/dist/routes/rest/collections/findVersions.d.ts +1 -1
  173. package/dist/routes/rest/collections/findVersions.d.ts.map +1 -1
  174. package/dist/routes/rest/collections/findVersions.js +11 -29
  175. package/dist/routes/rest/collections/findVersions.js.map +1 -0
  176. package/dist/routes/rest/collections/preview.d.ts +3 -0
  177. package/dist/routes/rest/collections/preview.d.ts.map +1 -0
  178. package/dist/routes/rest/collections/preview.js +36 -0
  179. package/dist/routes/rest/collections/preview.js.map +1 -0
  180. package/dist/routes/rest/collections/restoreVersion.d.ts +1 -1
  181. package/dist/routes/rest/collections/restoreVersion.d.ts.map +1 -1
  182. package/dist/routes/rest/collections/restoreVersion.js +8 -23
  183. package/dist/routes/rest/collections/restoreVersion.js.map +1 -0
  184. package/dist/routes/rest/collections/update.d.ts +1 -1
  185. package/dist/routes/rest/collections/update.d.ts.map +1 -1
  186. package/dist/routes/rest/collections/update.js +13 -31
  187. package/dist/routes/rest/collections/update.js.map +1 -0
  188. package/dist/routes/rest/collections/updateByID.d.ts +1 -1
  189. package/dist/routes/rest/collections/updateByID.d.ts.map +1 -1
  190. package/dist/routes/rest/collections/updateByID.js +8 -23
  191. package/dist/routes/rest/collections/updateByID.js.map +1 -0
  192. package/dist/routes/rest/files/checkFileAccess.d.ts +7 -0
  193. package/dist/routes/rest/files/checkFileAccess.d.ts.map +1 -0
  194. package/dist/routes/rest/files/checkFileAccess.js +50 -0
  195. package/dist/routes/rest/files/checkFileAccess.js.map +1 -0
  196. package/dist/routes/rest/files/getFile.d.ts +9 -0
  197. package/dist/routes/rest/files/getFile.d.ts.map +1 -0
  198. package/dist/routes/rest/files/getFile.js +52 -0
  199. package/dist/routes/rest/files/getFile.js.map +1 -0
  200. package/dist/routes/rest/globals/docAccess.d.ts +1 -1
  201. package/dist/routes/rest/globals/docAccess.d.ts.map +1 -1
  202. package/dist/routes/rest/globals/docAccess.js +6 -21
  203. package/dist/routes/rest/globals/docAccess.js.map +1 -0
  204. package/dist/routes/rest/globals/findOne.d.ts +1 -1
  205. package/dist/routes/rest/globals/findOne.d.ts.map +1 -1
  206. package/dist/routes/rest/globals/findOne.js +10 -25
  207. package/dist/routes/rest/globals/findOne.js.map +1 -0
  208. package/dist/routes/rest/globals/findVersionByID.d.ts +1 -1
  209. package/dist/routes/rest/globals/findVersionByID.d.ts.map +1 -1
  210. package/dist/routes/rest/globals/findVersionByID.js +8 -23
  211. package/dist/routes/rest/globals/findVersionByID.js.map +1 -0
  212. package/dist/routes/rest/globals/findVersions.d.ts +1 -1
  213. package/dist/routes/rest/globals/findVersions.d.ts.map +1 -1
  214. package/dist/routes/rest/globals/findVersions.js +11 -29
  215. package/dist/routes/rest/globals/findVersions.js.map +1 -0
  216. package/dist/routes/rest/globals/preview.d.ts +3 -0
  217. package/dist/routes/rest/globals/preview.d.ts.map +1 -0
  218. package/dist/routes/rest/globals/preview.js +35 -0
  219. package/dist/routes/rest/globals/preview.js.map +1 -0
  220. package/dist/routes/rest/globals/restoreVersion.d.ts +1 -1
  221. package/dist/routes/rest/globals/restoreVersion.d.ts.map +1 -1
  222. package/dist/routes/rest/globals/restoreVersion.js +8 -23
  223. package/dist/routes/rest/globals/restoreVersion.js.map +1 -0
  224. package/dist/routes/rest/globals/update.d.ts +1 -1
  225. package/dist/routes/rest/globals/update.d.ts.map +1 -1
  226. package/dist/routes/rest/globals/update.js +10 -25
  227. package/dist/routes/rest/globals/update.js.map +1 -0
  228. package/dist/routes/rest/index.d.ts.map +1 -1
  229. package/dist/routes/rest/index.js +129 -122
  230. package/dist/routes/rest/index.js.map +1 -0
  231. package/dist/routes/rest/routeError.d.ts +13 -0
  232. package/dist/routes/rest/routeError.d.ts.map +1 -0
  233. package/dist/routes/rest/routeError.js +93 -0
  234. package/dist/routes/rest/routeError.js.map +1 -0
  235. package/dist/routes/rest/types.js +2 -5
  236. package/dist/routes/rest/types.js.map +1 -0
  237. package/dist/scss/app.scss +2 -2
  238. package/dist/utilities/auth.d.ts +6 -4
  239. package/dist/utilities/auth.d.ts.map +1 -1
  240. package/dist/utilities/auth.js +7 -22
  241. package/dist/utilities/auth.js.map +1 -0
  242. package/dist/utilities/buildFieldSchemaMap/index.d.ts +4 -0
  243. package/dist/utilities/buildFieldSchemaMap/index.d.ts.map +1 -0
  244. package/dist/utilities/buildFieldSchemaMap/index.js +26 -0
  245. package/dist/utilities/buildFieldSchemaMap/index.js.map +1 -0
  246. package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts +12 -0
  247. package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts.map +1 -0
  248. package/dist/utilities/buildFieldSchemaMap/traverseFields.js +67 -0
  249. package/dist/utilities/buildFieldSchemaMap/traverseFields.js.map +1 -0
  250. package/dist/utilities/buildFieldSchemaMap/types.d.ts +3 -0
  251. package/dist/utilities/buildFieldSchemaMap/types.d.ts.map +1 -0
  252. package/dist/utilities/buildFieldSchemaMap/types.js +3 -0
  253. package/dist/utilities/buildFieldSchemaMap/types.js.map +1 -0
  254. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  255. package/dist/utilities/createPayloadRequest.js +30 -31
  256. package/dist/utilities/createPayloadRequest.js.map +1 -0
  257. package/dist/utilities/getDataAndFile.js +6 -16
  258. package/dist/utilities/getDataAndFile.js.map +1 -0
  259. package/dist/utilities/getNextI18n.d.ts +1 -1
  260. package/dist/utilities/getNextI18n.d.ts.map +1 -1
  261. package/dist/utilities/getNextI18n.js +11 -23
  262. package/dist/utilities/getNextI18n.js.map +1 -0
  263. package/dist/utilities/getPayloadHMR.d.ts +4 -0
  264. package/dist/utilities/getPayloadHMR.d.ts.map +1 -0
  265. package/dist/utilities/getPayloadHMR.js +75 -0
  266. package/dist/utilities/getPayloadHMR.js.map +1 -0
  267. package/dist/utilities/getRequestLanguage.d.ts +4 -2
  268. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  269. package/dist/utilities/getRequestLanguage.js +6 -16
  270. package/dist/utilities/getRequestLanguage.js.map +1 -0
  271. package/dist/utilities/getRequestLocales.js +2 -12
  272. package/dist/utilities/getRequestLocales.js.map +1 -0
  273. package/dist/utilities/initPage.d.ts +8 -17
  274. package/dist/utilities/initPage.d.ts.map +1 -1
  275. package/dist/utilities/initPage.js +66 -46
  276. package/dist/utilities/initPage.js.map +1 -0
  277. package/dist/utilities/meta.js +5 -15
  278. package/dist/utilities/meta.js.map +1 -0
  279. package/dist/utilities/timestamp.d.ts +2 -0
  280. package/dist/utilities/timestamp.d.ts.map +1 -0
  281. package/dist/utilities/timestamp.js +7 -0
  282. package/dist/utilities/timestamp.js.map +1 -0
  283. package/dist/views/API/RenderJSON/index.d.ts.map +1 -0
  284. package/dist/views/API/RenderJSON/index.js +90 -0
  285. package/dist/views/API/RenderJSON/index.js.map +1 -0
  286. package/dist/views/API/index.client.d.ts +4 -0
  287. package/dist/views/API/index.client.d.ts.map +1 -0
  288. package/dist/views/API/index.client.js +187 -0
  289. package/dist/views/API/index.client.js.map +1 -0
  290. package/dist/views/API/index.d.ts +3 -0
  291. package/dist/views/API/index.d.ts.map +1 -0
  292. package/dist/views/API/index.js +7 -0
  293. package/dist/views/API/index.js.map +1 -0
  294. package/dist/views/API/meta.d.ts +3 -0
  295. package/dist/views/API/meta.d.ts.map +1 -0
  296. package/dist/views/API/meta.js +11 -0
  297. package/dist/views/API/meta.js.map +1 -0
  298. package/dist/views/Account/Settings/index.d.ts.map +1 -0
  299. package/dist/views/Account/Settings/index.js +31 -0
  300. package/dist/views/Account/Settings/index.js.map +1 -0
  301. package/dist/views/Account/ToggleTheme/index.d.ts.map +1 -0
  302. package/dist/views/Account/ToggleTheme/index.js +36 -0
  303. package/dist/views/Account/ToggleTheme/index.js.map +1 -0
  304. package/dist/views/Account/index.d.ts +5 -0
  305. package/dist/views/Account/index.d.ts.map +1 -0
  306. package/dist/views/Account/index.js +56 -0
  307. package/dist/views/Account/index.js.map +1 -0
  308. package/dist/views/Account/meta.d.ts +3 -0
  309. package/dist/views/Account/meta.d.ts.map +1 -0
  310. package/dist/views/Account/meta.js +11 -0
  311. package/dist/views/Account/meta.js.map +1 -0
  312. package/dist/views/CreateFirstUser/index.client.d.ts +7 -0
  313. package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -0
  314. package/dist/views/CreateFirstUser/index.client.js +22 -0
  315. package/dist/views/CreateFirstUser/index.client.js.map +1 -0
  316. package/dist/views/CreateFirstUser/index.d.ts +6 -0
  317. package/dist/views/CreateFirstUser/index.d.ts.map +1 -0
  318. package/dist/views/CreateFirstUser/index.js +53 -0
  319. package/dist/views/CreateFirstUser/index.js.map +1 -0
  320. package/dist/views/CreateFirstUser/meta.d.ts +3 -0
  321. package/dist/views/CreateFirstUser/meta.d.ts.map +1 -0
  322. package/dist/views/CreateFirstUser/meta.js +11 -0
  323. package/dist/views/CreateFirstUser/meta.js.map +1 -0
  324. package/dist/views/Dashboard/Default/index.client.d.ts +10 -0
  325. package/dist/views/Dashboard/Default/index.client.d.ts.map +1 -0
  326. package/dist/views/Dashboard/Default/index.client.js +103 -0
  327. package/dist/views/Dashboard/Default/index.client.js.map +1 -0
  328. package/dist/views/Dashboard/Default/index.d.ts +12 -0
  329. package/dist/views/Dashboard/Default/index.d.ts.map +1 -0
  330. package/dist/views/Dashboard/Default/index.js +28 -0
  331. package/dist/views/Dashboard/Default/index.js.map +1 -0
  332. package/dist/views/Dashboard/index.d.ts +5 -0
  333. package/dist/views/Dashboard/index.d.ts.map +1 -0
  334. package/dist/views/Dashboard/index.js +27 -0
  335. package/dist/views/Dashboard/index.js.map +1 -0
  336. package/dist/views/Dashboard/meta.d.ts +3 -0
  337. package/dist/views/Dashboard/meta.d.ts.map +1 -0
  338. package/dist/views/Dashboard/meta.js +11 -0
  339. package/dist/views/Dashboard/meta.js.map +1 -0
  340. package/dist/views/Document/getCustomViewByKey.d.ts +4 -0
  341. package/dist/views/Document/getCustomViewByKey.d.ts.map +1 -0
  342. package/dist/views/Document/getCustomViewByKey.js +5 -0
  343. package/dist/views/Document/getCustomViewByKey.js.map +1 -0
  344. package/dist/views/Document/getCustomViewByRoute.d.ts +8 -0
  345. package/dist/views/Document/getCustomViewByRoute.d.ts.map +1 -0
  346. package/dist/views/Document/getCustomViewByRoute.js +22 -0
  347. package/dist/views/Document/getCustomViewByRoute.js.map +1 -0
  348. package/dist/views/Document/getMetaBySegment.d.ts +10 -0
  349. package/dist/views/Document/getMetaBySegment.d.ts.map +1 -0
  350. package/dist/views/Document/getMetaBySegment.js +77 -0
  351. package/dist/views/Document/getMetaBySegment.js.map +1 -0
  352. package/dist/views/Document/getViewsFromConfig.d.ts +18 -0
  353. package/dist/views/Document/getViewsFromConfig.d.ts.map +1 -0
  354. package/dist/views/Document/getViewsFromConfig.js +241 -0
  355. package/dist/views/Document/getViewsFromConfig.js.map +1 -0
  356. package/dist/views/Document/index.d.ts +6 -0
  357. package/dist/views/Document/index.d.ts.map +1 -0
  358. package/dist/views/Document/index.js +162 -0
  359. package/dist/views/Document/index.js.map +1 -0
  360. package/dist/views/Document/meta.d.ts +3 -0
  361. package/dist/views/Document/meta.d.ts.map +1 -0
  362. package/dist/views/Document/meta.js +4 -0
  363. package/dist/views/Document/meta.js.map +1 -0
  364. package/dist/views/Edit/Default/Auth/APIKey.d.ts +5 -0
  365. package/dist/views/Edit/Default/Auth/APIKey.d.ts.map +1 -0
  366. package/dist/views/Edit/Default/Auth/APIKey.js +99 -0
  367. package/dist/views/Edit/Default/Auth/APIKey.js.map +1 -0
  368. package/dist/views/Edit/Default/Auth/index.d.ts +5 -0
  369. package/dist/views/Edit/Default/Auth/index.d.ts.map +1 -0
  370. package/dist/views/Edit/Default/Auth/index.js +129 -0
  371. package/dist/views/Edit/Default/Auth/index.js.map +1 -0
  372. package/dist/views/Edit/Default/Auth/types.d.ts.map +1 -0
  373. package/dist/views/Edit/Default/Auth/types.js +3 -0
  374. package/dist/views/Edit/Default/Auth/types.js.map +1 -0
  375. package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts +9 -0
  376. package/dist/views/Edit/Default/SetDocumentTitle/index.d.ts.map +1 -0
  377. package/dist/views/Edit/Default/SetDocumentTitle/index.js +38 -0
  378. package/dist/views/Edit/Default/SetDocumentTitle/index.js.map +1 -0
  379. package/dist/views/Edit/Default/SetStepNav/index.d.ts +12 -0
  380. package/dist/views/Edit/Default/SetStepNav/index.d.ts.map +1 -0
  381. package/dist/views/Edit/Default/SetStepNav/index.js +64 -0
  382. package/dist/views/Edit/Default/SetStepNav/index.js.map +1 -0
  383. package/dist/views/Edit/Default/index.d.ts.map +1 -0
  384. package/dist/views/Edit/Default/index.js +194 -0
  385. package/dist/views/Edit/Default/index.js.map +1 -0
  386. package/dist/views/Edit/Default/types.d.ts.map +1 -0
  387. package/dist/views/Edit/Default/types.js +3 -0
  388. package/dist/views/Edit/Default/types.js.map +1 -0
  389. package/dist/views/Edit/index.client.d.ts +3 -0
  390. package/dist/views/Edit/index.client.d.ts.map +1 -0
  391. package/dist/views/Edit/index.client.js +23 -0
  392. package/dist/views/Edit/index.client.js.map +1 -0
  393. package/dist/views/Edit/index.d.ts +3 -0
  394. package/dist/views/Edit/index.d.ts.map +1 -0
  395. package/dist/views/Edit/index.js +7 -0
  396. package/dist/views/Edit/index.js.map +1 -0
  397. package/dist/views/Edit/meta.d.ts +3 -0
  398. package/dist/views/Edit/meta.d.ts.map +1 -0
  399. package/dist/views/Edit/meta.js +26 -0
  400. package/dist/views/Edit/meta.js.map +1 -0
  401. package/dist/views/Edit/sanitizeEditViewProps.d.ts +3 -0
  402. package/dist/views/Edit/sanitizeEditViewProps.d.ts.map +1 -0
  403. package/dist/views/Edit/sanitizeEditViewProps.js +11 -0
  404. package/dist/views/Edit/sanitizeEditViewProps.js.map +1 -0
  405. package/dist/views/ForgotPassword/index.d.ts +6 -0
  406. package/dist/views/ForgotPassword/index.d.ts.map +1 -0
  407. package/dist/views/ForgotPassword/index.js +69 -0
  408. package/dist/views/ForgotPassword/index.js.map +1 -0
  409. package/dist/views/ForgotPassword/meta.d.ts +3 -0
  410. package/dist/views/ForgotPassword/meta.d.ts.map +1 -0
  411. package/dist/views/ForgotPassword/meta.js +11 -0
  412. package/dist/views/ForgotPassword/meta.js.map +1 -0
  413. package/dist/views/List/Default/index.d.ts.map +1 -0
  414. package/dist/views/List/Default/index.js +149 -0
  415. package/dist/views/List/Default/index.js.map +1 -0
  416. package/dist/views/List/Default/types.d.ts +15 -0
  417. package/dist/views/List/Default/types.d.ts.map +1 -0
  418. package/dist/views/List/Default/types.js +3 -0
  419. package/dist/views/List/Default/types.js.map +1 -0
  420. package/dist/views/List/index.d.ts +5 -0
  421. package/dist/views/List/index.d.ts.map +1 -0
  422. package/dist/views/List/index.js +104 -0
  423. package/dist/views/List/index.js.map +1 -0
  424. package/dist/views/List/meta.d.ts +7 -0
  425. package/dist/views/List/meta.d.ts.map +1 -0
  426. package/dist/views/List/meta.js +19 -0
  427. package/dist/views/List/meta.js.map +1 -0
  428. package/dist/views/LivePreview/Context/collisionDetection.d.ts.map +1 -0
  429. package/dist/views/LivePreview/Context/collisionDetection.js +26 -0
  430. package/dist/views/LivePreview/Context/collisionDetection.js.map +1 -0
  431. package/dist/views/LivePreview/Context/context.d.ts +50 -0
  432. package/dist/views/LivePreview/Context/context.d.ts.map +1 -0
  433. package/dist/views/LivePreview/Context/context.js +40 -0
  434. package/dist/views/LivePreview/Context/context.js.map +1 -0
  435. package/dist/views/LivePreview/Context/index.d.ts +20 -0
  436. package/dist/views/LivePreview/Context/index.d.ts.map +1 -0
  437. package/dist/views/LivePreview/Context/index.js +153 -0
  438. package/dist/views/LivePreview/Context/index.js.map +1 -0
  439. package/dist/views/LivePreview/Context/sizeReducer.d.ts.map +1 -0
  440. package/dist/views/LivePreview/Context/sizeReducer.js +31 -0
  441. package/dist/views/LivePreview/Context/sizeReducer.js.map +1 -0
  442. package/dist/views/LivePreview/Device/index.d.ts.map +1 -0
  443. package/dist/views/LivePreview/Device/index.js +51 -0
  444. package/dist/views/LivePreview/Device/index.js.map +1 -0
  445. package/dist/views/LivePreview/DeviceContainer/index.d.ts.map +1 -0
  446. package/dist/views/LivePreview/DeviceContainer/index.js +29 -0
  447. package/dist/views/LivePreview/DeviceContainer/index.js.map +1 -0
  448. package/dist/views/LivePreview/IFrame/index.d.ts.map +1 -0
  449. package/dist/views/LivePreview/IFrame/index.js +22 -0
  450. package/dist/views/LivePreview/IFrame/index.js.map +1 -0
  451. package/dist/views/LivePreview/Preview/index.d.ts +5 -0
  452. package/dist/views/LivePreview/Preview/index.d.ts.map +1 -0
  453. package/dist/views/LivePreview/Preview/index.js +78 -0
  454. package/dist/views/LivePreview/Preview/index.js.map +1 -0
  455. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts +5 -0
  456. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +1 -0
  457. package/dist/views/LivePreview/Toolbar/Controls/index.js +83 -0
  458. package/dist/views/LivePreview/Toolbar/Controls/index.js.map +1 -0
  459. package/dist/views/LivePreview/Toolbar/SizeInput/index.d.ts.map +1 -0
  460. package/dist/views/LivePreview/Toolbar/SizeInput/index.js +60 -0
  461. package/dist/views/LivePreview/Toolbar/SizeInput/index.js.map +1 -0
  462. package/dist/views/LivePreview/Toolbar/index.d.ts +7 -0
  463. package/dist/views/LivePreview/Toolbar/index.d.ts.map +1 -0
  464. package/dist/views/LivePreview/Toolbar/index.js +49 -0
  465. package/dist/views/LivePreview/Toolbar/index.js.map +1 -0
  466. package/dist/views/LivePreview/ToolbarArea/index.d.ts.map +1 -0
  467. package/dist/views/LivePreview/ToolbarArea/index.js +16 -0
  468. package/dist/views/LivePreview/ToolbarArea/index.js.map +1 -0
  469. package/dist/views/LivePreview/index.client.d.ts +10 -0
  470. package/dist/views/LivePreview/index.client.d.ts.map +1 -0
  471. package/dist/views/LivePreview/index.client.js +170 -0
  472. package/dist/views/LivePreview/index.client.js.map +1 -0
  473. package/dist/views/LivePreview/index.d.ts +4 -0
  474. package/dist/views/LivePreview/index.d.ts.map +1 -0
  475. package/dist/views/LivePreview/index.js +43 -0
  476. package/dist/views/LivePreview/index.js.map +1 -0
  477. package/dist/views/LivePreview/meta.d.ts +3 -0
  478. package/dist/views/LivePreview/meta.d.ts.map +1 -0
  479. package/dist/views/LivePreview/meta.js +26 -0
  480. package/dist/views/LivePreview/meta.js.map +1 -0
  481. package/dist/views/LivePreview/usePopupWindow.d.ts.map +1 -0
  482. package/dist/views/LivePreview/usePopupWindow.js +102 -0
  483. package/dist/views/LivePreview/usePopupWindow.js.map +1 -0
  484. package/dist/views/Login/LoginForm/index.d.ts.map +1 -0
  485. package/dist/views/Login/LoginForm/index.js +58 -0
  486. package/dist/views/Login/LoginForm/index.js.map +1 -0
  487. package/dist/views/Login/index.d.ts +7 -0
  488. package/dist/views/Login/index.d.ts.map +1 -0
  489. package/dist/views/Login/index.js +28 -0
  490. package/dist/views/Login/index.js.map +1 -0
  491. package/dist/views/Login/index.scss +8 -0
  492. package/dist/views/Login/meta.d.ts +3 -0
  493. package/dist/views/Login/meta.d.ts.map +1 -0
  494. package/dist/views/Login/meta.js +11 -0
  495. package/dist/views/Login/meta.js.map +1 -0
  496. package/dist/views/Logout/LogoutClient.d.ts.map +1 -0
  497. package/dist/views/Logout/LogoutClient.js +34 -0
  498. package/dist/views/Logout/LogoutClient.js.map +1 -0
  499. package/dist/views/Logout/index.d.ts +9 -0
  500. package/dist/views/Logout/index.d.ts.map +1 -0
  501. package/dist/views/Logout/index.js +25 -0
  502. package/dist/views/Logout/index.js.map +1 -0
  503. package/dist/views/Logout/meta.d.ts +3 -0
  504. package/dist/views/Logout/meta.d.ts.map +1 -0
  505. package/dist/views/Logout/meta.js +11 -0
  506. package/dist/views/Logout/meta.js.map +1 -0
  507. package/dist/views/NotFound/index.client.d.ts +6 -0
  508. package/dist/views/NotFound/index.client.d.ts.map +1 -0
  509. package/dist/views/NotFound/index.client.js +41 -0
  510. package/dist/views/NotFound/index.client.js.map +1 -0
  511. package/dist/views/NotFound/index.d.ts +28 -0
  512. package/dist/views/NotFound/index.d.ts.map +1 -0
  513. package/dist/views/NotFound/index.js +27 -0
  514. package/dist/views/NotFound/index.js.map +1 -0
  515. package/dist/views/NotFound/index.scss +37 -0
  516. package/dist/views/NotFound/meta.d.ts +8 -0
  517. package/dist/views/NotFound/meta.d.ts.map +1 -0
  518. package/dist/views/NotFound/meta.js +11 -0
  519. package/dist/views/NotFound/meta.js.map +1 -0
  520. package/dist/views/ResetPassword/index.d.ts +7 -0
  521. package/dist/views/ResetPassword/index.d.ts.map +1 -0
  522. package/dist/views/ResetPassword/index.js +69 -0
  523. package/dist/views/ResetPassword/index.js.map +1 -0
  524. package/dist/views/ResetPassword/meta.d.ts +3 -0
  525. package/dist/views/ResetPassword/meta.d.ts.map +1 -0
  526. package/dist/views/ResetPassword/meta.js +11 -0
  527. package/dist/views/ResetPassword/meta.js.map +1 -0
  528. package/dist/views/Root/getCustomViewByRoute.d.ts +6 -0
  529. package/dist/views/Root/getCustomViewByRoute.d.ts.map +1 -0
  530. package/dist/views/Root/getCustomViewByRoute.js +19 -0
  531. package/dist/views/Root/getCustomViewByRoute.js.map +1 -0
  532. package/dist/views/Root/getViewFromConfig.d.ts +18 -0
  533. package/dist/views/Root/getViewFromConfig.d.ts.map +1 -0
  534. package/dist/views/Root/getViewFromConfig.js +138 -0
  535. package/dist/views/Root/getViewFromConfig.js.map +1 -0
  536. package/dist/views/Root/index.d.ts +22 -0
  537. package/dist/views/Root/index.d.ts.map +1 -0
  538. package/dist/views/Root/index.js +51 -0
  539. package/dist/views/Root/index.js.map +1 -0
  540. package/dist/views/Root/isPathMatchingRoute.d.ts +8 -0
  541. package/dist/views/Root/isPathMatchingRoute.d.ts.map +1 -0
  542. package/dist/views/Root/isPathMatchingRoute.js +16 -0
  543. package/dist/views/Root/isPathMatchingRoute.js.map +1 -0
  544. package/dist/views/Root/meta.d.ts +14 -0
  545. package/dist/views/Root/meta.d.ts.map +1 -0
  546. package/dist/views/Root/meta.js +159 -0
  547. package/dist/views/Root/meta.js.map +1 -0
  548. package/dist/views/Unauthorized/index.d.ts +4 -0
  549. package/dist/views/Unauthorized/index.d.ts.map +1 -0
  550. package/dist/views/Unauthorized/index.js +18 -0
  551. package/dist/views/Unauthorized/index.js.map +1 -0
  552. package/dist/views/Unauthorized/meta.d.ts +3 -0
  553. package/dist/views/Unauthorized/meta.d.ts.map +1 -0
  554. package/dist/views/Unauthorized/meta.js +11 -0
  555. package/dist/views/Unauthorized/meta.js.map +1 -0
  556. package/dist/views/Verify/index.d.ts +7 -0
  557. package/dist/views/Verify/index.d.ts.map +1 -0
  558. package/dist/views/Verify/index.js +32 -0
  559. package/dist/views/Verify/index.js.map +1 -0
  560. package/dist/views/Verify/meta.d.ts +3 -0
  561. package/dist/views/Verify/meta.d.ts.map +1 -0
  562. package/dist/views/Verify/meta.js +11 -0
  563. package/dist/views/Verify/meta.js.map +1 -0
  564. package/dist/views/Version/Default/SetStepNav.d.ts +14 -0
  565. package/dist/views/Version/Default/SetStepNav.d.ts.map +1 -0
  566. package/dist/views/Version/Default/SetStepNav.js +92 -0
  567. package/dist/views/Version/Default/SetStepNav.js.map +1 -0
  568. package/dist/views/Version/Default/index.d.ts +5 -0
  569. package/dist/views/Version/Default/index.d.ts.map +1 -0
  570. package/dist/views/Version/Default/index.js +111 -0
  571. package/dist/views/Version/Default/index.js.map +1 -0
  572. package/dist/views/Version/Default/types.d.ts +19 -0
  573. package/dist/views/Version/Default/types.d.ts.map +1 -0
  574. package/dist/views/Version/Default/types.js +3 -0
  575. package/dist/views/Version/Default/types.js.map +1 -0
  576. package/dist/views/Version/RenderFieldsToDiff/Label/index.d.ts.map +1 -0
  577. package/dist/views/Version/RenderFieldsToDiff/Label/index.js +8 -0
  578. package/dist/views/Version/RenderFieldsToDiff/Label/index.js.map +1 -0
  579. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +6 -0
  580. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -0
  581. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +64 -0
  582. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -0
  583. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +6 -0
  584. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +1 -0
  585. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js +28 -0
  586. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js.map +1 -0
  587. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +6 -0
  588. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -0
  589. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +74 -0
  590. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -0
  591. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +1 -0
  592. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +17 -0
  593. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js.map +1 -0
  594. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +10 -0
  595. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -0
  596. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +38 -0
  597. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -0
  598. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +9 -0
  599. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -0
  600. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +39 -0
  601. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -0
  602. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +1 -0
  603. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +17 -0
  604. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js.map +1 -0
  605. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +6 -0
  606. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -0
  607. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +30 -0
  608. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -0
  609. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.d.ts.map +1 -0
  610. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js +8 -0
  611. package/dist/views/Version/RenderFieldsToDiff/fields/diffMethods.js.map +1 -0
  612. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +60 -0
  613. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -0
  614. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +29 -0
  615. package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -0
  616. package/dist/views/Version/RenderFieldsToDiff/fields/styles.d.ts.map +1 -0
  617. package/dist/views/Version/RenderFieldsToDiff/fields/styles.js +28 -0
  618. package/dist/views/Version/RenderFieldsToDiff/fields/styles.js.map +1 -0
  619. package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts +21 -0
  620. package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts.map +1 -0
  621. package/dist/views/Version/RenderFieldsToDiff/fields/types.js +3 -0
  622. package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +1 -0
  623. package/dist/views/Version/RenderFieldsToDiff/index.d.ts +6 -0
  624. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -0
  625. package/dist/views/Version/RenderFieldsToDiff/index.js +100 -0
  626. package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -0
  627. package/dist/views/Version/RenderFieldsToDiff/types.d.ts +20 -0
  628. package/dist/views/Version/RenderFieldsToDiff/types.d.ts.map +1 -0
  629. package/dist/views/Version/RenderFieldsToDiff/types.js +3 -0
  630. package/dist/views/Version/RenderFieldsToDiff/types.js.map +1 -0
  631. package/dist/views/Version/Restore/index.d.ts +6 -0
  632. package/dist/views/Version/Restore/index.d.ts.map +1 -0
  633. package/dist/views/Version/Restore/index.js +74 -0
  634. package/dist/views/Version/Restore/index.js.map +1 -0
  635. package/dist/views/Version/Restore/types.d.ts +11 -0
  636. package/dist/views/Version/Restore/types.d.ts.map +1 -0
  637. package/dist/views/Version/Restore/types.js +3 -0
  638. package/dist/views/Version/Restore/types.js.map +1 -0
  639. package/dist/views/Version/SelectComparison/index.d.ts +5 -0
  640. package/dist/views/Version/SelectComparison/index.d.ts.map +1 -0
  641. package/dist/views/Version/SelectComparison/index.js +126 -0
  642. package/dist/views/Version/SelectComparison/index.js.map +1 -0
  643. package/dist/views/Version/SelectComparison/types.d.ts +27 -0
  644. package/dist/views/Version/SelectComparison/types.d.ts.map +1 -0
  645. package/dist/views/Version/SelectComparison/types.js +3 -0
  646. package/dist/views/Version/SelectComparison/types.js.map +1 -0
  647. package/dist/views/Version/SelectLocales/index.d.ts +5 -0
  648. package/dist/views/Version/SelectLocales/index.d.ts.map +1 -0
  649. package/dist/views/Version/SelectLocales/index.js +33 -0
  650. package/dist/views/Version/SelectLocales/index.js.map +1 -0
  651. package/dist/views/Version/SelectLocales/types.d.ts +7 -0
  652. package/dist/views/Version/SelectLocales/types.d.ts.map +1 -0
  653. package/dist/views/Version/SelectLocales/types.js +3 -0
  654. package/dist/views/Version/SelectLocales/types.js.map +1 -0
  655. package/dist/views/Version/index.d.ts +3 -0
  656. package/dist/views/Version/index.d.ts.map +1 -0
  657. package/dist/views/Version/index.js +102 -0
  658. package/dist/views/Version/index.js.map +1 -0
  659. package/dist/views/Version/meta.d.ts +3 -0
  660. package/dist/views/Version/meta.d.ts.map +1 -0
  661. package/dist/views/Version/meta.js +37 -0
  662. package/dist/views/Version/meta.js.map +1 -0
  663. package/dist/views/Version/shared.d.ts.map +1 -0
  664. package/dist/views/Version/shared.js +10 -0
  665. package/dist/views/Version/shared.js.map +1 -0
  666. package/dist/views/Versions/buildColumns.d.ts +11 -0
  667. package/dist/views/Versions/buildColumns.d.ts.map +1 -0
  668. package/dist/views/Versions/buildColumns.js +63 -0
  669. package/dist/views/Versions/buildColumns.js.map +1 -0
  670. package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +1 -0
  671. package/dist/views/Versions/cells/AutosaveCell/index.js +14 -0
  672. package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -0
  673. package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +1 -0
  674. package/dist/views/Versions/cells/CreatedAt/index.js +22 -0
  675. package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -0
  676. package/dist/views/Versions/cells/ID/index.d.ts.map +1 -0
  677. package/dist/views/Versions/cells/ID/index.js +9 -0
  678. package/dist/views/Versions/cells/ID/index.js.map +1 -0
  679. package/dist/views/Versions/index.client.d.ts +10 -0
  680. package/dist/views/Versions/index.client.d.ts.map +1 -0
  681. package/dist/views/Versions/index.client.js +57 -0
  682. package/dist/views/Versions/index.client.js.map +1 -0
  683. package/dist/views/Versions/index.d.ts +5 -0
  684. package/dist/views/Versions/index.d.ts.map +1 -0
  685. package/dist/views/Versions/index.js +93 -0
  686. package/dist/views/Versions/index.js.map +1 -0
  687. package/dist/views/Versions/meta.d.ts +3 -0
  688. package/dist/views/Versions/meta.d.ts.map +1 -0
  689. package/dist/views/Versions/meta.js +33 -0
  690. package/dist/views/Versions/meta.js.map +1 -0
  691. package/dist/views/Versions/types.d.ts.map +1 -0
  692. package/dist/views/Versions/types.js +3 -0
  693. package/dist/views/Versions/types.js.map +1 -0
  694. package/dist/webpackEntry.d.ts +5 -0
  695. package/dist/webpackEntry.d.ts.map +1 -0
  696. package/dist/webpackEntry.js +6 -0
  697. package/dist/webpackEntry.js.map +1 -0
  698. package/dist/withPayload.d.ts +2 -1
  699. package/dist/withPayload.d.ts.map +1 -1
  700. package/dist/withPayload.js +3 -8
  701. package/dist/withPayload.js.map +1 -0
  702. package/package.json +45 -40
  703. package/src/index.js +1 -0
  704. package/dist/bin/index.d.ts +0 -2
  705. package/dist/bin/index.d.ts.map +0 -1
  706. package/dist/bin/index.js +0 -37
  707. package/dist/bin/install.d.ts +0 -4
  708. package/dist/bin/install.d.ts.map +0 -1
  709. package/dist/bin/install.js +0 -77
  710. package/dist/exports/index.d.ts +0 -2
  711. package/dist/exports/index.d.ts.map +0 -1
  712. package/dist/exports/index.js +0 -13
  713. package/dist/graphql/registerSchema.d.ts +0 -2
  714. package/dist/graphql/registerSchema.d.ts.map +0 -1
  715. package/dist/graphql/registerSchema.js +0 -3
  716. package/dist/index.d.ts +0 -2
  717. package/dist/index.d.ts.map +0 -1
  718. package/dist/layouts/Admin/index.d.ts +0 -12
  719. package/dist/layouts/Admin/index.d.ts.map +0 -1
  720. package/dist/layouts/Admin/index.js +0 -44
  721. package/dist/layouts/Document/index.d.ts +0 -14
  722. package/dist/layouts/Document/index.d.ts.map +0 -1
  723. package/dist/layouts/Document/index.js +0 -82
  724. package/dist/pages/API/RenderJSON/index.d.ts.map +0 -1
  725. package/dist/pages/API/RenderJSON/index.js +0 -142
  726. package/dist/pages/API/index.client.d.ts +0 -5
  727. package/dist/pages/API/index.client.d.ts.map +0 -1
  728. package/dist/pages/API/index.client.js +0 -241
  729. package/dist/pages/API/index.d.ts +0 -4
  730. package/dist/pages/API/index.d.ts.map +0 -1
  731. package/dist/pages/API/index.js +0 -27
  732. package/dist/pages/API/meta.d.ts +0 -3
  733. package/dist/pages/API/meta.d.ts.map +0 -1
  734. package/dist/pages/API/meta.js +0 -21
  735. package/dist/pages/Account/Settings/index.d.ts.map +0 -1
  736. package/dist/pages/Account/Settings/index.js +0 -45
  737. package/dist/pages/Account/ToggleTheme/index.d.ts.map +0 -1
  738. package/dist/pages/Account/ToggleTheme/index.js +0 -85
  739. package/dist/pages/Account/index.d.ts +0 -13
  740. package/dist/pages/Account/index.d.ts.map +0 -1
  741. package/dist/pages/Account/index.js +0 -171
  742. package/dist/pages/CreateFirstUser/index.client.d.ts +0 -5
  743. package/dist/pages/CreateFirstUser/index.client.d.ts.map +0 -1
  744. package/dist/pages/CreateFirstUser/index.client.js +0 -29
  745. package/dist/pages/CreateFirstUser/index.d.ts +0 -11
  746. package/dist/pages/CreateFirstUser/index.d.ts.map +0 -1
  747. package/dist/pages/CreateFirstUser/index.js +0 -91
  748. package/dist/pages/Dashboard/Default/index.client.d.ts +0 -8
  749. package/dist/pages/Dashboard/Default/index.client.d.ts.map +0 -1
  750. package/dist/pages/Dashboard/Default/index.client.js +0 -154
  751. package/dist/pages/Dashboard/Default/index.d.ts +0 -11
  752. package/dist/pages/Dashboard/Default/index.d.ts.map +0 -1
  753. package/dist/pages/Dashboard/Default/index.js +0 -44
  754. package/dist/pages/Dashboard/index.d.ts +0 -13
  755. package/dist/pages/Dashboard/index.d.ts.map +0 -1
  756. package/dist/pages/Dashboard/index.js +0 -128
  757. package/dist/pages/Document/getCustomViewByKey.d.ts +0 -4
  758. package/dist/pages/Document/getCustomViewByKey.d.ts.map +0 -1
  759. package/dist/pages/Document/getCustomViewByKey.js +0 -15
  760. package/dist/pages/Document/getCustomViewByPath.d.ts +0 -4
  761. package/dist/pages/Document/getCustomViewByPath.d.ts.map +0 -1
  762. package/dist/pages/Document/getCustomViewByPath.js +0 -26
  763. package/dist/pages/Document/getMetaBySegment.d.ts +0 -20
  764. package/dist/pages/Document/getMetaBySegment.d.ts.map +0 -1
  765. package/dist/pages/Document/getMetaBySegment.js +0 -124
  766. package/dist/pages/Document/getViewsFromConfig.d.ts +0 -15
  767. package/dist/pages/Document/getViewsFromConfig.d.ts.map +0 -1
  768. package/dist/pages/Document/getViewsFromConfig.js +0 -163
  769. package/dist/pages/Document/index.d.ts +0 -23
  770. package/dist/pages/Document/index.d.ts.map +0 -1
  771. package/dist/pages/Document/index.js +0 -237
  772. package/dist/pages/Edit/Default/Auth/APIKey.d.ts +0 -6
  773. package/dist/pages/Edit/Default/Auth/APIKey.d.ts.map +0 -1
  774. package/dist/pages/Edit/Default/Auth/APIKey.js +0 -140
  775. package/dist/pages/Edit/Default/Auth/index.d.ts +0 -6
  776. package/dist/pages/Edit/Default/Auth/index.d.ts.map +0 -1
  777. package/dist/pages/Edit/Default/Auth/index.js +0 -180
  778. package/dist/pages/Edit/Default/Auth/types.d.ts.map +0 -1
  779. package/dist/pages/Edit/Default/Auth/types.js +0 -6
  780. package/dist/pages/Edit/Default/RenderCustomView.d.ts +0 -2
  781. package/dist/pages/Edit/Default/RenderCustomView.d.ts.map +0 -1
  782. package/dist/pages/Edit/Default/RenderCustomView.js +0 -3
  783. package/dist/pages/Edit/Default/SetDocumentTitle/index.d.ts +0 -8
  784. package/dist/pages/Edit/Default/SetDocumentTitle/index.d.ts.map +0 -1
  785. package/dist/pages/Edit/Default/SetDocumentTitle/index.js +0 -50
  786. package/dist/pages/Edit/Default/SetStepNav/index.d.ts +0 -13
  787. package/dist/pages/Edit/Default/SetStepNav/index.d.ts.map +0 -1
  788. package/dist/pages/Edit/Default/SetStepNav/index.js +0 -70
  789. package/dist/pages/Edit/Default/index.d.ts.map +0 -1
  790. package/dist/pages/Edit/Default/index.js +0 -202
  791. package/dist/pages/Edit/Default/types.d.ts.map +0 -1
  792. package/dist/pages/Edit/Default/types.js +0 -6
  793. package/dist/pages/Edit/index.client.d.ts +0 -4
  794. package/dist/pages/Edit/index.client.d.ts.map +0 -1
  795. package/dist/pages/Edit/index.client.js +0 -99
  796. package/dist/pages/Edit/index.d.ts +0 -4
  797. package/dist/pages/Edit/index.d.ts.map +0 -1
  798. package/dist/pages/Edit/index.js +0 -27
  799. package/dist/pages/Edit/meta.d.ts +0 -3
  800. package/dist/pages/Edit/meta.d.ts.map +0 -1
  801. package/dist/pages/Edit/meta.js +0 -36
  802. package/dist/pages/Edit/sanitizeEditViewProps.d.ts +0 -4
  803. package/dist/pages/Edit/sanitizeEditViewProps.d.ts.map +0 -1
  804. package/dist/pages/Edit/sanitizeEditViewProps.js +0 -24
  805. package/dist/pages/Edit/types.d.js +0 -7
  806. package/dist/pages/Edit/types.d.ts +0 -37
  807. package/dist/pages/Edit/types.d.ts.map +0 -1
  808. package/dist/pages/Edit/types.js +0 -6
  809. package/dist/pages/ForgotPassword/index.d.ts +0 -10
  810. package/dist/pages/ForgotPassword/index.d.ts.map +0 -1
  811. package/dist/pages/ForgotPassword/index.js +0 -101
  812. package/dist/pages/List/Default/Cell/cellTypes.spec.js +0 -234
  813. package/dist/pages/List/Default/Cell/fields/Array/index.d.ts +0 -7
  814. package/dist/pages/List/Default/Cell/fields/Array/index.d.ts.map +0 -1
  815. package/dist/pages/List/Default/Cell/fields/Array/index.js +0 -27
  816. package/dist/pages/List/Default/Cell/fields/Blocks/index.d.ts +0 -8
  817. package/dist/pages/List/Default/Cell/fields/Blocks/index.d.ts.map +0 -1
  818. package/dist/pages/List/Default/Cell/fields/Blocks/index.js +0 -45
  819. package/dist/pages/List/Default/Cell/fields/Checkbox/index.d.ts +0 -5
  820. package/dist/pages/List/Default/Cell/fields/Checkbox/index.d.ts.map +0 -1
  821. package/dist/pages/List/Default/Cell/fields/Checkbox/index.js +0 -23
  822. package/dist/pages/List/Default/Cell/fields/Checkbox/index.scss +0 -22
  823. package/dist/pages/List/Default/Cell/fields/Code/index.d.ts +0 -8
  824. package/dist/pages/List/Default/Cell/fields/Code/index.d.ts.map +0 -1
  825. package/dist/pages/List/Default/Cell/fields/Code/index.js +0 -29
  826. package/dist/pages/List/Default/Cell/fields/Code/index.scss +0 -27
  827. package/dist/pages/List/Default/Cell/fields/Date/index.d.ts +0 -7
  828. package/dist/pages/List/Default/Cell/fields/Date/index.d.ts.map +0 -1
  829. package/dist/pages/List/Default/Cell/fields/Date/index.js +0 -26
  830. package/dist/pages/List/Default/Cell/fields/File/index.d.ts +0 -7
  831. package/dist/pages/List/Default/Cell/fields/File/index.d.ts.map +0 -1
  832. package/dist/pages/List/Default/Cell/fields/File/index.js +0 -39
  833. package/dist/pages/List/Default/Cell/fields/File/index.scss +0 -23
  834. package/dist/pages/List/Default/Cell/fields/JSON/index.d.ts +0 -5
  835. package/dist/pages/List/Default/Cell/fields/JSON/index.d.ts.map +0 -1
  836. package/dist/pages/List/Default/Cell/fields/JSON/index.js +0 -26
  837. package/dist/pages/List/Default/Cell/fields/JSON/index.scss +0 -22
  838. package/dist/pages/List/Default/Cell/fields/Relationship/index.d.ts +0 -9
  839. package/dist/pages/List/Default/Cell/fields/Relationship/index.d.ts.map +0 -1
  840. package/dist/pages/List/Default/Cell/fields/Relationship/index.js +0 -121
  841. package/dist/pages/List/Default/Cell/fields/Relationship/index.scss +0 -3
  842. package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts +0 -2
  843. package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts.map +0 -1
  844. package/dist/pages/List/Default/Cell/fields/Richtext/index.js +0 -3
  845. package/dist/pages/List/Default/Cell/fields/Select/index.d.ts +0 -7
  846. package/dist/pages/List/Default/Cell/fields/Select/index.d.ts.map +0 -1
  847. package/dist/pages/List/Default/Cell/fields/Select/index.js +0 -40
  848. package/dist/pages/List/Default/Cell/fields/Textarea/index.d.ts +0 -4
  849. package/dist/pages/List/Default/Cell/fields/Textarea/index.d.ts.map +0 -1
  850. package/dist/pages/List/Default/Cell/fields/Textarea/index.js +0 -23
  851. package/dist/pages/List/Default/Cell/fields/index.d.ts +0 -17
  852. package/dist/pages/List/Default/Cell/fields/index.d.ts.map +0 -1
  853. package/dist/pages/List/Default/Cell/fields/index.js +0 -36
  854. package/dist/pages/List/Default/Cell/index.d.ts +0 -4
  855. package/dist/pages/List/Default/Cell/index.d.ts.map +0 -1
  856. package/dist/pages/List/Default/Cell/index.js +0 -89
  857. package/dist/pages/List/Default/RelationshipProvider/index.d.ts +0 -20
  858. package/dist/pages/List/Default/RelationshipProvider/index.d.ts.map +0 -1
  859. package/dist/pages/List/Default/RelationshipProvider/index.js +0 -153
  860. package/dist/pages/List/Default/RelationshipProvider/reducer.d.ts +0 -19
  861. package/dist/pages/List/Default/RelationshipProvider/reducer.d.ts.map +0 -1
  862. package/dist/pages/List/Default/RelationshipProvider/reducer.js +0 -55
  863. package/dist/pages/List/Default/index.d.ts.map +0 -1
  864. package/dist/pages/List/Default/index.js +0 -174
  865. package/dist/pages/List/Default/types.d.ts +0 -14
  866. package/dist/pages/List/Default/types.d.ts.map +0 -1
  867. package/dist/pages/List/Default/types.js +0 -6
  868. package/dist/pages/List/index.d.ts +0 -18
  869. package/dist/pages/List/index.d.ts.map +0 -1
  870. package/dist/pages/List/index.js +0 -158
  871. package/dist/pages/LivePreview/Context/collisionDetection.d.ts.map +0 -1
  872. package/dist/pages/LivePreview/Context/collisionDetection.js +0 -34
  873. package/dist/pages/LivePreview/Context/context.d.ts +0 -50
  874. package/dist/pages/LivePreview/Context/context.d.ts.map +0 -1
  875. package/dist/pages/LivePreview/Context/context.js +0 -58
  876. package/dist/pages/LivePreview/Context/index.d.ts +0 -18
  877. package/dist/pages/LivePreview/Context/index.d.ts.map +0 -1
  878. package/dist/pages/LivePreview/Context/index.js +0 -208
  879. package/dist/pages/LivePreview/Context/sizeReducer.d.ts.map +0 -1
  880. package/dist/pages/LivePreview/Context/sizeReducer.js +0 -41
  881. package/dist/pages/LivePreview/Device/index.d.ts.map +0 -1
  882. package/dist/pages/LivePreview/Device/index.js +0 -102
  883. package/dist/pages/LivePreview/DeviceContainer/index.d.ts.map +0 -1
  884. package/dist/pages/LivePreview/DeviceContainer/index.js +0 -44
  885. package/dist/pages/LivePreview/IFrame/index.d.ts.map +0 -1
  886. package/dist/pages/LivePreview/IFrame/index.js +0 -74
  887. package/dist/pages/LivePreview/Preview/index.d.ts +0 -5
  888. package/dist/pages/LivePreview/Preview/index.d.ts.map +0 -1
  889. package/dist/pages/LivePreview/Preview/index.js +0 -127
  890. package/dist/pages/LivePreview/Toolbar/Controls/index.d.ts +0 -5
  891. package/dist/pages/LivePreview/Toolbar/Controls/index.d.ts.map +0 -1
  892. package/dist/pages/LivePreview/Toolbar/Controls/index.js +0 -96
  893. package/dist/pages/LivePreview/Toolbar/SizeInput/index.d.ts.map +0 -1
  894. package/dist/pages/LivePreview/Toolbar/SizeInput/index.js +0 -112
  895. package/dist/pages/LivePreview/Toolbar/index.d.ts +0 -7
  896. package/dist/pages/LivePreview/Toolbar/index.d.ts.map +0 -1
  897. package/dist/pages/LivePreview/Toolbar/index.js +0 -65
  898. package/dist/pages/LivePreview/ToolbarArea/index.d.ts.map +0 -1
  899. package/dist/pages/LivePreview/ToolbarArea/index.js +0 -32
  900. package/dist/pages/LivePreview/index.client.d.ts +0 -11
  901. package/dist/pages/LivePreview/index.client.d.ts.map +0 -1
  902. package/dist/pages/LivePreview/index.client.js +0 -195
  903. package/dist/pages/LivePreview/index.d.ts +0 -5
  904. package/dist/pages/LivePreview/index.d.ts.map +0 -1
  905. package/dist/pages/LivePreview/index.js +0 -59
  906. package/dist/pages/LivePreview/meta.d.ts +0 -3
  907. package/dist/pages/LivePreview/meta.d.ts.map +0 -1
  908. package/dist/pages/LivePreview/meta.js +0 -36
  909. package/dist/pages/LivePreview/usePopupWindow.d.ts.map +0 -1
  910. package/dist/pages/LivePreview/usePopupWindow.js +0 -112
  911. package/dist/pages/Login/LoginForm/index.d.ts.map +0 -1
  912. package/dist/pages/Login/LoginForm/index.js +0 -67
  913. package/dist/pages/Login/index.d.ts +0 -14
  914. package/dist/pages/Login/index.d.ts.map +0 -1
  915. package/dist/pages/Login/index.js +0 -108
  916. package/dist/pages/Login/index.scss +0 -38
  917. package/dist/pages/Logout/LogoutClient.d.ts.map +0 -1
  918. package/dist/pages/Logout/LogoutClient.js +0 -88
  919. package/dist/pages/Logout/index.d.ts +0 -16
  920. package/dist/pages/Logout/index.d.ts.map +0 -1
  921. package/dist/pages/Logout/index.js +0 -61
  922. package/dist/pages/NotFound/index.d.ts +0 -7
  923. package/dist/pages/NotFound/index.d.ts.map +0 -1
  924. package/dist/pages/NotFound/index.js +0 -48
  925. package/dist/pages/NotFound/index.scss +0 -36
  926. package/dist/pages/ResetPassword/index.d.ts +0 -12
  927. package/dist/pages/ResetPassword/index.d.ts.map +0 -1
  928. package/dist/pages/ResetPassword/index.js +0 -99
  929. package/dist/pages/Root/index.d.ts +0 -5
  930. package/dist/pages/Root/index.d.ts.map +0 -1
  931. package/dist/pages/Root/index.js +0 -17
  932. package/dist/pages/Unauthorized/UnauthorizedClient.d.ts +0 -5
  933. package/dist/pages/Unauthorized/UnauthorizedClient.d.ts.map +0 -1
  934. package/dist/pages/Unauthorized/UnauthorizedClient.js +0 -27
  935. package/dist/pages/Unauthorized/index.d.ts +0 -10
  936. package/dist/pages/Unauthorized/index.d.ts.map +0 -1
  937. package/dist/pages/Unauthorized/index.js +0 -51
  938. package/dist/pages/Verify/index.d.ts +0 -13
  939. package/dist/pages/Verify/index.d.ts.map +0 -1
  940. package/dist/pages/Verify/index.js +0 -90
  941. package/dist/pages/Version/Default/SetStepNav.d.ts +0 -13
  942. package/dist/pages/Version/Default/SetStepNav.d.ts.map +0 -1
  943. package/dist/pages/Version/Default/SetStepNav.js +0 -92
  944. package/dist/pages/Version/Default/index.d.ts +0 -5
  945. package/dist/pages/Version/Default/index.d.ts.map +0 -1
  946. package/dist/pages/Version/Default/index.js +0 -157
  947. package/dist/pages/Version/Default/types.d.ts +0 -24
  948. package/dist/pages/Version/Default/types.d.ts.map +0 -1
  949. package/dist/pages/Version/Default/types.js +0 -6
  950. package/dist/pages/Version/RenderFieldsToDiff/Label/index.d.ts.map +0 -1
  951. package/dist/pages/Version/RenderFieldsToDiff/Label/index.js +0 -24
  952. package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +0 -6
  953. package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +0 -1
  954. package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -80
  955. package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +0 -6
  956. package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +0 -1
  957. package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.js +0 -44
  958. package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +0 -6
  959. package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
  960. package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -89
  961. package/dist/pages/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +0 -1
  962. package/dist/pages/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +0 -72
  963. package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.d.ts +0 -6
  964. package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +0 -1
  965. package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.js +0 -54
  966. package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +0 -5
  967. package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +0 -1
  968. package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -54
  969. package/dist/pages/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +0 -1
  970. package/dist/pages/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +0 -72
  971. package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.d.ts +0 -6
  972. package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +0 -1
  973. package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.js +0 -46
  974. package/dist/pages/Version/RenderFieldsToDiff/fields/diffMethods.d.ts.map +0 -1
  975. package/dist/pages/Version/RenderFieldsToDiff/fields/diffMethods.js +0 -18
  976. package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts +0 -25
  977. package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
  978. package/dist/pages/Version/RenderFieldsToDiff/fields/index.js +0 -44
  979. package/dist/pages/Version/RenderFieldsToDiff/fields/styles.d.ts.map +0 -1
  980. package/dist/pages/Version/RenderFieldsToDiff/fields/styles.js +0 -38
  981. package/dist/pages/Version/RenderFieldsToDiff/fields/types.d.ts +0 -21
  982. package/dist/pages/Version/RenderFieldsToDiff/fields/types.d.ts.map +0 -1
  983. package/dist/pages/Version/RenderFieldsToDiff/fields/types.js +0 -6
  984. package/dist/pages/Version/RenderFieldsToDiff/index.d.ts +0 -6
  985. package/dist/pages/Version/RenderFieldsToDiff/index.d.ts.map +0 -1
  986. package/dist/pages/Version/RenderFieldsToDiff/index.js +0 -115
  987. package/dist/pages/Version/RenderFieldsToDiff/types.d.ts +0 -20
  988. package/dist/pages/Version/RenderFieldsToDiff/types.d.ts.map +0 -1
  989. package/dist/pages/Version/RenderFieldsToDiff/types.js +0 -6
  990. package/dist/pages/Version/Restore/index.d.ts +0 -6
  991. package/dist/pages/Version/Restore/index.d.ts.map +0 -1
  992. package/dist/pages/Version/Restore/index.js +0 -121
  993. package/dist/pages/Version/Restore/types.d.ts +0 -11
  994. package/dist/pages/Version/Restore/types.d.ts.map +0 -1
  995. package/dist/pages/Version/Restore/types.js +0 -6
  996. package/dist/pages/Version/SelectComparison/index.d.ts +0 -5
  997. package/dist/pages/Version/SelectComparison/index.d.ts.map +0 -1
  998. package/dist/pages/Version/SelectComparison/index.js +0 -167
  999. package/dist/pages/Version/SelectComparison/types.d.ts +0 -27
  1000. package/dist/pages/Version/SelectComparison/types.d.ts.map +0 -1
  1001. package/dist/pages/Version/SelectComparison/types.js +0 -6
  1002. package/dist/pages/Version/SelectLocales/index.d.ts +0 -5
  1003. package/dist/pages/Version/SelectLocales/index.d.ts.map +0 -1
  1004. package/dist/pages/Version/SelectLocales/index.js +0 -47
  1005. package/dist/pages/Version/SelectLocales/types.d.ts +0 -7
  1006. package/dist/pages/Version/SelectLocales/types.d.ts.map +0 -1
  1007. package/dist/pages/Version/SelectLocales/types.js +0 -6
  1008. package/dist/pages/Version/index.d.ts +0 -4
  1009. package/dist/pages/Version/index.d.ts.map +0 -1
  1010. package/dist/pages/Version/index.js +0 -111
  1011. package/dist/pages/Version/meta.d.ts +0 -3
  1012. package/dist/pages/Version/meta.d.ts.map +0 -1
  1013. package/dist/pages/Version/meta.js +0 -47
  1014. package/dist/pages/Version/shared.d.ts.map +0 -1
  1015. package/dist/pages/Version/shared.js +0 -28
  1016. package/dist/pages/Versions/buildColumns.d.ts +0 -11
  1017. package/dist/pages/Versions/buildColumns.d.ts.map +0 -1
  1018. package/dist/pages/Versions/buildColumns.js +0 -69
  1019. package/dist/pages/Versions/cells/AutosaveCell/index.d.ts.map +0 -1
  1020. package/dist/pages/Versions/cells/AutosaveCell/index.js +0 -63
  1021. package/dist/pages/Versions/cells/CreatedAt/index.d.ts.map +0 -1
  1022. package/dist/pages/Versions/cells/CreatedAt/index.js +0 -33
  1023. package/dist/pages/Versions/cells/ID/index.d.ts.map +0 -1
  1024. package/dist/pages/Versions/cells/ID/index.js +0 -60
  1025. package/dist/pages/Versions/index.client.d.ts +0 -15
  1026. package/dist/pages/Versions/index.client.d.ts.map +0 -1
  1027. package/dist/pages/Versions/index.client.js +0 -142
  1028. package/dist/pages/Versions/index.d.ts +0 -6
  1029. package/dist/pages/Versions/index.d.ts.map +0 -1
  1030. package/dist/pages/Versions/index.js +0 -125
  1031. package/dist/pages/Versions/meta.d.ts +0 -3
  1032. package/dist/pages/Versions/meta.d.ts.map +0 -1
  1033. package/dist/pages/Versions/meta.js +0 -43
  1034. package/dist/pages/Versions/types.d.ts.map +0 -1
  1035. package/dist/pages/Versions/types.js +0 -6
  1036. package/dist/routes/rest/RouteError.d.ts +0 -13
  1037. package/dist/routes/rest/RouteError.d.ts.map +0 -1
  1038. package/dist/routes/rest/RouteError.js +0 -104
  1039. package/dist/routes/rest/[collection]/file/[filename]/route.d.ts +0 -8
  1040. package/dist/routes/rest/[collection]/file/[filename]/route.d.ts.map +0 -1
  1041. package/dist/routes/rest/[collection]/file/[filename]/route.js +0 -116
  1042. package/dist/utilities/createClientConfig.d.ts +0 -5
  1043. package/dist/utilities/createClientConfig.d.ts.map +0 -1
  1044. package/dist/utilities/createClientConfig.js +0 -120
  1045. package/dist/utilities/getNextT.d.ts +0 -7
  1046. package/dist/utilities/getNextT.d.ts.map +0 -1
  1047. package/dist/utilities/getNextT.js +0 -28
  1048. package/src/index.ts +0 -1
  1049. /package/dist/{pages → views}/API/RenderJSON/index.d.ts +0 -0
  1050. /package/dist/{pages → views}/API/RenderJSON/index.scss +0 -0
  1051. /package/dist/{pages → views}/API/index.scss +0 -0
  1052. /package/dist/{pages → views}/Account/Settings/index.d.ts +0 -0
  1053. /package/dist/{pages → views}/Account/Settings/index.scss +0 -0
  1054. /package/dist/{pages → views}/Account/ToggleTheme/index.d.ts +0 -0
  1055. /package/dist/{pages → views}/CreateFirstUser/index.scss +0 -0
  1056. /package/dist/{pages → views}/Dashboard/Default/index.scss +0 -0
  1057. /package/dist/{pages → views}/Edit/Default/Auth/index.scss +0 -0
  1058. /package/dist/{pages → views}/Edit/Default/Auth/types.d.ts +0 -0
  1059. /package/dist/{pages → views}/Edit/Default/index.d.ts +0 -0
  1060. /package/dist/{pages → views}/Edit/Default/index.scss +0 -0
  1061. /package/dist/{pages → views}/Edit/Default/types.d.ts +0 -0
  1062. /package/dist/{pages → views}/List/Default/index.d.ts +0 -0
  1063. /package/dist/{pages → views}/List/Default/index.scss +0 -0
  1064. /package/dist/{pages → views}/LivePreview/Context/collisionDetection.d.ts +0 -0
  1065. /package/dist/{pages → views}/LivePreview/Context/sizeReducer.d.ts +0 -0
  1066. /package/dist/{pages → views}/LivePreview/Device/index.d.ts +0 -0
  1067. /package/dist/{pages → views}/LivePreview/DeviceContainer/index.d.ts +0 -0
  1068. /package/dist/{pages → views}/LivePreview/IFrame/index.d.ts +0 -0
  1069. /package/dist/{pages → views}/LivePreview/IFrame/index.scss +0 -0
  1070. /package/dist/{pages → views}/LivePreview/Preview/index.scss +0 -0
  1071. /package/dist/{pages → views}/LivePreview/Toolbar/Controls/index.scss +0 -0
  1072. /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.d.ts +0 -0
  1073. /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.scss +0 -0
  1074. /package/dist/{pages → views}/LivePreview/Toolbar/index.scss +0 -0
  1075. /package/dist/{pages → views}/LivePreview/ToolbarArea/index.d.ts +0 -0
  1076. /package/dist/{pages → views}/LivePreview/ToolbarArea/index.scss +0 -0
  1077. /package/dist/{pages → views}/LivePreview/index.scss +0 -0
  1078. /package/dist/{pages → views}/LivePreview/usePopupWindow.d.ts +0 -0
  1079. /package/dist/{pages → views}/Login/LoginForm/index.d.ts +0 -0
  1080. /package/dist/{pages → views}/Login/LoginForm/index.scss +0 -0
  1081. /package/dist/{pages → views}/Logout/LogoutClient.d.ts +0 -0
  1082. /package/dist/{pages → views}/Logout/index.scss +0 -0
  1083. /package/dist/{pages → views}/ResetPassword/index.scss +0 -0
  1084. /package/dist/{pages → views}/Verify/index.scss +0 -0
  1085. /package/dist/{pages → views}/Version/Default/index.scss +0 -0
  1086. /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.d.ts +0 -0
  1087. /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.scss +0 -0
  1088. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.scss +0 -0
  1089. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.scss +0 -0
  1090. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Relationship/index.scss +0 -0
  1091. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts +0 -0
  1092. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.scss +0 -0
  1093. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts +0 -0
  1094. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.scss +0 -0
  1095. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.d.ts +0 -0
  1096. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.d.ts +0 -0
  1097. /package/dist/{pages → views}/Version/RenderFieldsToDiff/index.scss +0 -0
  1098. /package/dist/{pages → views}/Version/Restore/index.scss +0 -0
  1099. /package/dist/{pages → views}/Version/SelectComparison/index.scss +0 -0
  1100. /package/dist/{pages → views}/Version/SelectLocales/index.scss +0 -0
  1101. /package/dist/{pages → views}/Version/shared.d.ts +0 -0
  1102. /package/dist/{pages → views}/Versions/cells/AutosaveCell/index.d.ts +0 -0
  1103. /package/dist/{pages → views}/Versions/cells/CreatedAt/index.d.ts +0 -0
  1104. /package/dist/{pages → views}/Versions/cells/ID/index.d.ts +0 -0
  1105. /package/dist/{pages → views}/Versions/index.scss +0 -0
  1106. /package/dist/{pages → views}/Versions/types.d.ts +0 -0
@@ -1,154 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DefaultDashboardClient", {
7
- enumerable: true,
8
- get: function() {
9
- return DefaultDashboardClient;
10
- }
11
- });
12
- const _translations = require("@payloadcms/translations");
13
- const _ui = require("@payloadcms/ui");
14
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
15
- require("./index.scss");
16
- function _getRequireWildcardCache(nodeInterop) {
17
- if (typeof WeakMap !== "function") return null;
18
- var cacheBabelInterop = new WeakMap();
19
- var cacheNodeInterop = new WeakMap();
20
- return (_getRequireWildcardCache = function(nodeInterop) {
21
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
22
- })(nodeInterop);
23
- }
24
- function _interop_require_wildcard(obj, nodeInterop) {
25
- if (!nodeInterop && obj && obj.__esModule) {
26
- return obj;
27
- }
28
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
29
- return {
30
- default: obj
31
- };
32
- }
33
- var cache = _getRequireWildcardCache(nodeInterop);
34
- if (cache && cache.has(obj)) {
35
- return cache.get(obj);
36
- }
37
- var newObj = {
38
- __proto__: null
39
- };
40
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
41
- for(var key in obj){
42
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
43
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
44
- if (desc && (desc.get || desc.set)) {
45
- Object.defineProperty(newObj, key, desc);
46
- } else {
47
- newObj[key] = obj[key];
48
- }
49
- }
50
- }
51
- newObj.default = obj;
52
- if (cache) {
53
- cache.set(obj, newObj);
54
- }
55
- return newObj;
56
- }
57
- const baseClass = 'dashboard';
58
- const DefaultDashboardClient = ({ Link, visibleCollections, visibleGlobals })=>{
59
- const config = (0, _ui.useConfig)();
60
- const { collections: collectionsConfig, globals: globalsConfig, routes: { admin } } = config;
61
- const { setViewActions } = (0, _ui.useActions)();
62
- (0, _react.useEffect)(()=>{
63
- setViewActions([]);
64
- }, [
65
- setViewActions
66
- ]);
67
- const { permissions, user } = (0, _ui.useAuth)();
68
- const { i18n, t } = (0, _ui.useTranslation)();
69
- const [groups, setGroups] = (0, _react.useState)([]);
70
- (0, _react.useEffect)(()=>{
71
- const collections = collectionsConfig.filter((collection)=>permissions?.collections?.[collection.slug]?.read?.permission && visibleCollections.includes(collection.slug));
72
- const globals = globalsConfig.filter((global)=>permissions?.globals?.[global.slug]?.read?.permission && visibleGlobals.includes(global.slug));
73
- setGroups((0, _ui.groupNavItems)([
74
- ...collections.map((collection)=>{
75
- const entityToGroup = {
76
- type: _ui.EntityType.collection,
77
- entity: collection
78
- };
79
- return entityToGroup;
80
- }) ?? [],
81
- ...globals.map((global)=>{
82
- const entityToGroup = {
83
- type: _ui.EntityType.global,
84
- entity: global
85
- };
86
- return entityToGroup;
87
- }) ?? []
88
- ], permissions, i18n));
89
- }, [
90
- permissions,
91
- user,
92
- i18n,
93
- visibleCollections,
94
- visibleGlobals,
95
- collectionsConfig,
96
- globalsConfig
97
- ]);
98
- return /*#__PURE__*/ _react.default.createElement(_react.Fragment, null, groups.map(({ entities, label }, groupIndex)=>{
99
- return /*#__PURE__*/ _react.default.createElement("div", {
100
- className: `${baseClass}__group`,
101
- key: groupIndex
102
- }, /*#__PURE__*/ _react.default.createElement("h2", {
103
- className: `${baseClass}__label`
104
- }, label), /*#__PURE__*/ _react.default.createElement("ul", {
105
- className: `${baseClass}__card-list`
106
- }, entities.map(({ type, entity }, entityIndex)=>{
107
- let title;
108
- let buttonAriaLabel;
109
- let createHREF;
110
- let href;
111
- let hasCreatePermission;
112
- if (type === _ui.EntityType.collection) {
113
- title = (0, _translations.getTranslation)(entity.labels.plural, i18n);
114
- buttonAriaLabel = t('general:showAllLabel', {
115
- label: title
116
- });
117
- href = `${admin}/collections/${entity.slug}`;
118
- createHREF = `${admin}/collections/${entity.slug}/create`;
119
- hasCreatePermission = permissions?.collections?.[entity.slug]?.create?.permission;
120
- }
121
- if (type === _ui.EntityType.global) {
122
- title = (0, _translations.getTranslation)(entity.label, i18n);
123
- buttonAriaLabel = t('general:editLabel', {
124
- label: (0, _translations.getTranslation)(entity.label, i18n)
125
- });
126
- href = `${admin}/globals/${entity.slug}`;
127
- }
128
- return /*#__PURE__*/ _react.default.createElement("li", {
129
- key: entityIndex
130
- }, /*#__PURE__*/ _react.default.createElement(_ui.Card, {
131
- Link: Link,
132
- actions: hasCreatePermission && type === _ui.EntityType.collection ? /*#__PURE__*/ _react.default.createElement(_ui.Button, {
133
- Link: Link,
134
- "aria-label": t('general:createNewLabel', {
135
- label: (0, _translations.getTranslation)(entity.labels.singular, i18n)
136
- }),
137
- buttonStyle: "icon-label",
138
- el: "link",
139
- icon: "plus",
140
- iconStyle: "with-border",
141
- round: true,
142
- to: createHREF
143
- }) : undefined,
144
- buttonAriaLabel: buttonAriaLabel,
145
- href: href,
146
- id: `card-${entity.slug}`,
147
- title: title,
148
- titleAs: "h3"
149
- }));
150
- })));
151
- }));
152
- };
153
-
154
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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1xuICAgICAgICAgICAgY29uc3QgZW50aXR5VG9Hcm91cDogRW50aXR5VG9Hcm91cCA9IHtcbiAgICAgICAgICAgICAgdHlwZTogRW50aXR5VHlwZS5jb2xsZWN0aW9uLFxuICAgICAgICAgICAgICBlbnRpdHk6IGNvbGxlY3Rpb24sXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHJldHVybiBlbnRpdHlUb0dyb3VwXG4gICAgICAgICAgfSkgPz8gW10pLFxuICAgICAgICAgIC4uLihnbG9iYWxzLm1hcCgoZ2xvYmFsKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBlbnRpdHlUb0dyb3VwOiBFbnRpdHlUb0dyb3VwID0ge1xuICAgICAgICAgICAgICB0eXBlOiBFbnRpdHlUeXBlLmdsb2JhbCxcbiAgICAgICAgICAgICAgZW50aXR5OiBnbG9iYWwsXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHJldHVybiBlbnRpdHlUb0dyb3VwXG4gICAgICAgICAgfSkgPz8gW10pLFxuICAgICAgICBdLFxuICAgICAgICBwZXJtaXNzaW9ucyxcbiAgICAgICAgaTE4bixcbiAgICAgICksXG4gICAgKVxuICB9LCBbXG4gICAgcGVybWlzc2lvbnMsXG4gICAgdXNlcixcbiAgICBpMThuLFxuICAgIHZpc2libGVDb2xsZWN0aW9ucyxcbiAgICB2aXNpYmxlR2xvYmFscyxcbiAgICBjb2xsZWN0aW9uc0NvbmZpZyxcbiAgICBnbG9iYWxzQ29uZmlnLFxuICBdKVxuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2dyb3Vwcy5tYXAoKHsgZW50aXRpZXMsIGxhYmVsIH0sIGdyb3VwSW5kZXgpID0+IHtcbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7YmFzZUNsYXNzfV9fZ3JvdXBgfSBrZXk9e2dyb3VwSW5kZXh9PlxuICAgICAgICAgICAgPGgyIGNsYXNzTm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ICAgICAgICAgICAgIGlmICh0eXBlID09PSBFbnRpdHlUeXBlLmdsb2JhbCkge1xuICAgICAgICAgICAgICAgICAgdGl0bGUgPSBnZXRUcmFuc2xhdGlvbihlbnRpdHkubGFiZWwsIGkxOG4pXG4gICAgICAgICAgICAgICAgICBidXR0b25BcmlhTGFiZWwgPSB0KCdnZW5lcmFsOmVkaXRMYWJlbCcsIHtcbiAgICAgICAgICAgICAgICAgICAgbGFiZWw6IGdldFRyYW5zbGF0aW9uKGVudGl0eS5sYWJlbCwgaTE4biksXG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgaHJlZiA9IGAke2FkbWlufS9nbG9iYWxzLyR7ZW50aXR5LnNsdWd9YFxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgICAgICA8bGkga2V5PXtlbnRpdHlJbmRleH0+XG4gICAgICAgICAgICAgICAgICAgIDxDYXJkXG4gICAgICAgICAgICAgICAgICAgICAgTGluaz17TGlua31cbiAgICAgICAgICAgICAgICAgICAgICBhY3Rpb25zPXtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhhc0NyZWF0ZVBlcm1pc3Npb24gJiYgdHlwZSA9PT0gRW50aXR5VHlwZS5jb2xsZWN0aW9uID8gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICA8QnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgTGluaz17TGlua31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcmlhLWxhYmVsPXt0KCdnZW5lcmFsOmNyZWF0ZU5ld0xhYmVsJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IGdldFRyYW5zbGF0aW9uKGVudGl0eS5sYWJlbHMuc2luZ3VsYXIsIGkxOG4pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ1dHRvblN0eWxlPVwiaWNvbi1sYWJlbFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWw9XCJsaW5rXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uPVwicGx1c1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvblN0eWxlPVwid2l0aC1ib3JkZXJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdW5kXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG89e2NyZWF0ZUhSRUZ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICApIDogdW5kZWZpbmVkXG4gICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIGJ1dHRvbkFyaWFMYWJlbD17YnV0dG9uQXJpYUxhYmVsfVxuICAgICAgICAgICAgICAgICAgICAgIGhyZWY9e2hyZWZ9XG4gICAgICAgICAgICAgICAgICAgICAgaWQ9e2BjYXJkLSR7ZW50aXR5LnNsdWd9YH1cbiAgICAgICAgICAgICAgICAgICAgICB0aXRsZT17dGl0bGV9XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGVBcz1cImgzXCJcbiAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgIDwvbGk+XG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICB9KX1cbiAgICAgICAgICAgIDwvdWw+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIClcbiAgICAgIH0pfVxuICAgIDwvRnJhZ21lbnQ+XG4gIClcbn1cbiJdLCJuYW1lcyI6WyJEZWZhdWx0RGFzaGJvYXJkQ2xpZW50IiwiYmFzZUNsYXNzIiwiTGluayIsInZpc2libGVDb2xsZWN0aW9ucyIsInZpc2libGVHbG9iYWxzIiwiY29uZmlnIiwidXNlQ29uZmlnIiwiY29sbGVjdGlvbnMiLCJjb2xsZWN0aW9uc0NvbmZpZyIsImdsb2JhbHMiLCJnbG9iYWxz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c7b0JBQ0hDLE1BQUs7b0JBQ0xDLFdBQVU7b0JBQ1ZDLE9BQUFBO29CQUNBQyxJQUFJbEI7cUJBRUptQjtnQkFFTnBCLGlCQUFpQkE7Z0JBQ2pCRSxNQUFNQTtnQkFDTm1CLElBQUksQ0FBQyxLQUFLLEVBQUVqQyxPQUFPVixJQUFJLENBQUMsQ0FBQztnQkFDekJxQixPQUFPQTtnQkFDUHVCLFNBQVE7O1FBSWhCO0lBSVI7QUFHTiJ9
@@ -1,11 +0,0 @@
1
- import type { SanitizedConfig } from 'payload/types';
2
- import React from 'react';
3
- import './index.scss';
4
- export type DashboardProps = {
5
- Link: React.ComponentType<any>;
6
- config: SanitizedConfig;
7
- visibleCollections: string[];
8
- visibleGlobals: string[];
9
- };
10
- export declare const DefaultDashboard: React.FC<DashboardProps>;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Dashboard/Default/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,cAAc,CAAA;AAIrB,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;IAC9B,MAAM,EAAE,eAAe,CAAA;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkCrD,CAAA"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "DefaultDashboard", {
6
- enumerable: true,
7
- get: function() {
8
- return DefaultDashboard;
9
- }
10
- });
11
- const _ui = require("@payloadcms/ui");
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _indexclient = require("./index.client");
14
- require("./index.scss");
15
- function _interop_require_default(obj) {
16
- return obj && obj.__esModule ? obj : {
17
- default: obj
18
- };
19
- }
20
- const baseClass = 'dashboard';
21
- const DefaultDashboard = (props)=>{
22
- const { Link, config: { admin: { components: { afterDashboard, beforeDashboard } } }, visibleCollections, visibleGlobals } = props;
23
- // const { setViewActions } = useActions()
24
- // useEffect(() => {
25
- // setViewActions([])
26
- // }, [setViewActions])
27
- return /*#__PURE__*/ _react.default.createElement("div", {
28
- className: baseClass
29
- }, /*#__PURE__*/ _react.default.createElement(_ui.SetStepNav, {
30
- nav: []
31
- }), /*#__PURE__*/ _react.default.createElement(_ui.Gutter, {
32
- className: `${baseClass}__wrap`
33
- }, Array.isArray(beforeDashboard) && beforeDashboard.map((Component, i)=>/*#__PURE__*/ _react.default.createElement(Component, {
34
- key: i
35
- })), /*#__PURE__*/ _react.default.createElement(_indexclient.DefaultDashboardClient, {
36
- Link: Link,
37
- visibleCollections: visibleCollections,
38
- visibleGlobals: visibleGlobals
39
- }), Array.isArray(afterDashboard) && afterDashboard.map((Component, i)=>/*#__PURE__*/ _react.default.createElement(Component, {
40
- key: i
41
- }))));
42
- };
43
-
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWdlcy9EYXNoYm9hcmQvRGVmYXVsdC9pbmRleC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBHdXR0ZXIsIFNldFN0ZXBOYXYgfSBmcm9tICdAcGF5bG9hZGNtcy91aSdcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcblxuaW1wb3J0IHsgRGVmYXVsdERhc2hib2FyZENsaWVudCB9IGZyb20gJy4vaW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xFQUFFQyxlQUFlLEVBQUUsRUFDaEQsRUFDRixFQUNEQyxrQkFBa0IsRUFDbEJDLGNBQWMsRUFDZixHQUFHUjtJQUVKLDBDQUEwQztJQUUxQyxvQkFBb0I7SUFDcEIsdUJBQXVCO0lBQ3ZCLHVCQUF1QjtJQUV2QixxQkFDRSw2QkFBQ1M7UUFBSUMsV0FBV1g7cUJBQ2QsNkJBQUNZLGNBQVU7UUFBQ0MsS0FBSyxFQUFFO3NCQUNuQiw2QkFBQ0MsVUFBTTtRQUFDSCxXQUFXLENBQUMsRUFBRVgsVUFBVSxNQUFNLENBQUM7T0FDcENlLE1BQU1DLE9BQU8sQ0FBQ1Qsb0JBQ2JBLGdCQUFnQlUsR0FBRyxDQUFDLENBQUNDLFdBQVdDLGtCQUFNLDZCQUFDRDtZQUFVRSxLQUFLRDsyQkFDeEQsNkJBQUNFLG1DQUFzQjtRQUNyQm5CLE1BQU1BO1FBQ05NLG9CQUFvQkE7UUFDcEJDLGdCQUFnQkE7UUFFakJNLE1BQU1DLE9BQU8sQ0FBQ1YsbUJBQ2JBLGVBQWVXLEdBQUcsQ0FBQyxDQUFDQyxXQUFXQyxrQkFBTSw2QkFBQ0Q7WUFBVUUsS0FBS0Q7O0FBSS9EIn0=
@@ -1,13 +0,0 @@
1
- import type { Metadata } from 'next';
2
- import type { SanitizedConfig } from 'payload/types';
3
- import React from 'react';
4
- export declare const generateMetadata: ({ config: configPromise, }: {
5
- config: Promise<SanitizedConfig>;
6
- }) => Promise<Metadata>;
7
- export declare const Dashboard: ({ config: configPromise, searchParams, }: {
8
- config: Promise<SanitizedConfig>;
9
- searchParams: {
10
- [key: string]: string | string[];
11
- };
12
- }) => Promise<React.JSX.Element>;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/Dashboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAKpD,OAAO,KAAmB,MAAM,OAAO,CAAA;AASvC,eAAO,MAAM,gBAAgB,+BAE1B;IACD,MAAM,EAAE,QAAQ,eAAe,CAAC,CAAA;CACjC,KAAG,QAAQ,QAAQ,CAanB,CAAA;AAED,eAAO,MAAM,SAAS;YAIZ,QAAQ,eAAe,CAAC;;;;gCAkDjC,CAAA"}
@@ -1,128 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- Dashboard: function() {
13
- return Dashboard;
14
- },
15
- generateMetadata: function() {
16
- return generateMetadata;
17
- }
18
- });
19
- const _ui = require("@payloadcms/ui");
20
- const _link = /*#__PURE__*/ _interop_require_default(require("next/link"));
21
- const _utilities = require("payload/utilities");
22
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
23
- const _getNextI18n = require("../../utilities/getNextI18n");
24
- const _initPage = require("../../utilities/initPage");
25
- const _meta = require("../../utilities/meta");
26
- const _Default = require("./Default");
27
- function _interop_require_default(obj) {
28
- return obj && obj.__esModule ? obj : {
29
- default: obj
30
- };
31
- }
32
- function _getRequireWildcardCache(nodeInterop) {
33
- if (typeof WeakMap !== "function") return null;
34
- var cacheBabelInterop = new WeakMap();
35
- var cacheNodeInterop = new WeakMap();
36
- return (_getRequireWildcardCache = function(nodeInterop) {
37
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
38
- })(nodeInterop);
39
- }
40
- function _interop_require_wildcard(obj, nodeInterop) {
41
- if (!nodeInterop && obj && obj.__esModule) {
42
- return obj;
43
- }
44
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
45
- return {
46
- default: obj
47
- };
48
- }
49
- var cache = _getRequireWildcardCache(nodeInterop);
50
- if (cache && cache.has(obj)) {
51
- return cache.get(obj);
52
- }
53
- var newObj = {
54
- __proto__: null
55
- };
56
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
57
- for(var key in obj){
58
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
59
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
60
- if (desc && (desc.get || desc.set)) {
61
- Object.defineProperty(newObj, key, desc);
62
- } else {
63
- newObj[key] = obj[key];
64
- }
65
- }
66
- }
67
- newObj.default = obj;
68
- if (cache) {
69
- cache.set(obj, newObj);
70
- }
71
- return newObj;
72
- }
73
- const generateMetadata = async ({ config: configPromise })=>{
74
- const config = await configPromise;
75
- const { t } = await (0, _getNextI18n.getNextI18n)({
76
- config
77
- });
78
- return (0, _meta.meta)({
79
- config,
80
- description: `${t('general:dashboard')} Payload`,
81
- keywords: `${t('general:dashboard')}, Payload`,
82
- title: t('general:dashboard')
83
- });
84
- };
85
- const Dashboard = async ({ config: configPromise, searchParams })=>{
86
- const { permissions, req } = await (0, _initPage.initPage)({
87
- config: configPromise,
88
- redirectUnauthenticatedUser: true,
89
- route: '',
90
- searchParams
91
- });
92
- const { payload: { config }, user } = req;
93
- const CustomDashboardComponent = config.admin.components?.views?.Dashboard;
94
- const visibleCollections = config.collections.reduce((acc, collection)=>{
95
- if (!(0, _utilities.isEntityHidden)({
96
- hidden: collection.admin.hidden,
97
- user
98
- })) {
99
- acc.push(collection.slug);
100
- }
101
- return acc;
102
- }, []);
103
- const visibleGlobals = config.globals.reduce((acc, global)=>{
104
- if (!(0, _utilities.isEntityHidden)({
105
- hidden: global.admin.hidden,
106
- user
107
- })) {
108
- acc.push(global.slug);
109
- }
110
- return acc;
111
- }, []);
112
- const componentProps = {
113
- Link: _link.default,
114
- config,
115
- visibleCollections,
116
- visibleGlobals
117
- };
118
- return /*#__PURE__*/ _react.default.createElement(_react.Fragment, null, /*#__PURE__*/ _react.default.createElement(_ui.HydrateClientUser, {
119
- permissions: permissions,
120
- user: user
121
- }), /*#__PURE__*/ _react.default.createElement(_ui.RenderCustomComponent, {
122
- CustomComponent: typeof CustomDashboardComponent === 'function' ? CustomDashboardComponent : undefined,
123
- DefaultComponent: _Default.DefaultDashboard,
124
- componentProps: componentProps
125
- }));
126
- };
127
-
128
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWdlcy9EYXNoYm9hcmQvaW5kZXgudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTWV0YWRhdGEgfSBmcm9tICduZXh0J1xuaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBIeWRyYXRlQ2xpZW50VXNlciwgUmVuZGVyQ3VzdG9tQ29tcG9uZW50IH0gZnJvbSAnQHBheWxvYWRjbXMvdWknXG5pbXBvcnQgTGluayBmcm9tICduZXh0L2xpbmsnXG5pbXBvcnQgeyBpc0VudGl0eUhpZGRlbiB9IGZyb20gJ3BheWxvYWQvdXRpbGl0aWVzJ1xuaW1wb3J0IFJlYWN0LCB7IEZyYWdtZW50IH0gZnJvbSAncmVhY3QnXG5cbmltcG9ydCB0eXBlIHsgRGFzaGJvYXJkUHJvcHMgfSBmcm9tICcuL0RlZmF1bHQnXG5cbmltcG9ydCB7IGdldE5leHRJMThuIH0gZnJvbSAnLi4vLi4vdXRpbGl0aWVzL2dldE5leHRJMThuJ1xuaW1wb3J0IHsgaW5pdFBhZ2UgfSBmcm9tICcuLi8uLi91dGlsaXRpZXMvaW5pdFBhZ2UnXG5pbXBvcnQgeyBtZXRhIH0gZnJvbSAnLi4vLi4vdXRpbGl0aWVzL21ldGEnXG5pbXBvcnQgeyBEZWZhdWx0RGFzaGJvYXJkIH0gZnJvbSAnLi9EZWZhdWx0J1xuXG5leHBvcnQgY29uc3QgZ2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BQUtDO1FBQ25FLElBQUksQ0FBQ0MsSUFBQUEseUJBQWMsRUFBQztZQUFFQyxRQUFRRixXQUFXUCxLQUFLLENBQUNTLE1BQU07WUFBRVg7UUFBSyxJQUFJO1lBQzlEUSxJQUFJSSxJQUFJLENBQUNILFdBQVdJLElBQUk7UUFDMUI7UUFDQSxPQUFPTDtJQUNULEdBQUcsRUFBRTtJQUVMLE1BQU1NLGlCQUEyQjdCLE9BQU84QixPQUFPLENBQUNSLE1BQU0sQ0FBQyxDQUFDQyxLQUFLUTtRQUMzRCxJQUFJLENBQUNOLElBQUFBLHlCQUFjLEVBQUM7WUFBRUMsUUFBUUssT0FBT2QsS0FBSyxDQUFDUyxNQUFNO1lBQUVYO1FBQUssSUFBSTtZQUMxRFEsSUFBSUksSUFBSSxDQUFDSSxPQUFPSCxJQUFJO1FBQ3RCO1FBQ0EsT0FBT0w7SUFDVCxHQUFHLEVBQUU7SUFFTCxNQUFNUyxpQkFBaUM7UUFDckNDLE1BQUFBLGFBQUk7UUFDSmpDO1FBQ0FvQjtRQUNBUztJQUNGO0lBRUEscUJBQ0UsNkJBQUNLLGVBQVEsc0JBQ1AsNkJBQUNDLHFCQUFpQjtRQUFDMUIsYUFBYUE7UUFBYU0sTUFBTUE7c0JBQ25ELDZCQUFDcUIseUJBQXFCO1FBQ3BCQyxpQkFDRSxPQUFPckIsNkJBQTZCLGFBQWFBLDJCQUEyQnNCO1FBRTlFQyxrQkFBa0JDLHlCQUFnQjtRQUNsQ1IsZ0JBQWdCQTs7QUFJeEIifQ==
@@ -1,4 +0,0 @@
1
- import type { AdminViewComponent } from 'payload/config';
2
- import type { SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload/types';
3
- export declare const getCustomViewByKey: (views: SanitizedCollectionConfig['admin']['components']['views'] | SanitizedGlobalConfig['admin']['components']['views'], customViewKey: string) => AdminViewComponent;
4
- //# sourceMappingURL=getCustomViewByKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCustomViewByKey.d.ts","sourceRoot":"","sources":["../../../src/pages/Document/getCustomViewByKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErF,eAAO,MAAM,kBAAkB,UAEzB,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,iBAC1C,MAAM,KACpB,kBAaF,CAAA"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "getCustomViewByKey", {
6
- enumerable: true,
7
- get: function() {
8
- return getCustomViewByKey;
9
- }
10
- });
11
- const getCustomViewByKey = (views, customViewKey)=>{
12
- return typeof views?.Edit === 'function' ? views?.Edit : typeof views?.Edit === 'object' && views?.Edit?.[customViewKey] && typeof views?.Edit?.[customViewKey] === 'function' ? views?.Edit?.[customViewKey] : views?.Edit?.[customViewKey] ? typeof views?.Edit?.[customViewKey] === 'object' && 'Component' in views?.Edit?.[customViewKey] && typeof views?.Edit?.[customViewKey].Component === 'function' && views?.Edit?.[customViewKey].Component : null;
13
- };
14
-
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWdlcy9Eb2N1bWVudC9nZXRDdXN0b21WaWV3QnlLZXkudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQWRtaW5WaWV3Q29tcG9uZW50IH0gZnJvbSAncGF5bG9hZC9jb25maWcnXG5pbXBvcnQgdHlwZSB7IFNhbml0aXplZENvbGxlY3Rpb25Db25maWcsIFNhbml0aXplZEdsb2JhbENvbmZpZyB9IGZyb20gJ3Bhe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Vmlld0J5S2V5Iiwidmlld3MiLCJjdXN0b21WaWV3S2V5IiwiRWRpdCIsIkNvbXBvbmVudCJdLCJtYXBwaW5ncyI6Ijs7OzsrQkFHYUE7OztlQUFBQTs7O0FBQU4sTUFBTUEscUJBQXFCLENBQ2hDQyxPQUdBQztJQUVBLE9BQU8sT0FBT0QsT0FBT0UsU0FBUyxhQUMxQkYsT0FBT0UsT0FDUCxPQUFPRixPQUFPRSxTQUFTLFlBQ3JCRixPQUFPRSxNQUFNLENBQUNELGNBQWMsSUFDNUIsT0FBT0QsT0FBT0UsTUFBTSxDQUFDRCxjQUFjLEtBQUssYUFDeENELE9BQU9FLE1BQU0sQ0FBQ0QsY0FBYyxHQUM1QkQsT0FBT0UsTUFBTSxDQUFDRCxjQUFjLEdBQzFCLE9BQU9ELE9BQU9FLE1BQU0sQ0FBQ0QsY0FBYyxLQUFLLFlBQ3hDLGVBQWVELE9BQU9FLE1BQU0sQ0FBQ0QsY0FBYyxJQUMzQyxPQUFPRCxPQUFPRSxNQUFNLENBQUNELGNBQWMsQ0FBQ0UsY0FBYyxjQUNsREgsT0FBT0UsTUFBTSxDQUFDRCxjQUFjLENBQUNFLFlBQzdCO0FBQ1YifQ==
@@ -1,4 +0,0 @@
1
- import type { AdminViewComponent } from 'payload/config';
2
- import type { SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload/types';
3
- export declare const getCustomViewByPath: (views: SanitizedCollectionConfig['admin']['components']['views'] | SanitizedGlobalConfig['admin']['components']['views'], path: string) => AdminViewComponent;
4
- //# sourceMappingURL=getCustomViewByPath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCustomViewByPath.d.ts","sourceRoot":"","sources":["../../../src/pages/Document/getCustomViewByPath.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErF,eAAO,MAAM,mBAAmB,UAE1B,yBAAyB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GACzD,qBAAqB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,QACnD,MAAM,KACX,kBAeF,CAAA"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "getCustomViewByPath", {
6
- enumerable: true,
7
- get: function() {
8
- return getCustomViewByPath;
9
- }
10
- });
11
- const getCustomViewByPath = (views, path)=>{
12
- if (typeof views?.Edit === 'object' && typeof views?.Edit !== 'function') {
13
- const foundViewConfig = Object.entries(views.Edit).find(([, view])=>{
14
- if (typeof view === 'object' && typeof view !== 'function' && 'path' in view) {
15
- return view.path === path;
16
- }
17
- return false;
18
- })?.[1];
19
- if (foundViewConfig && 'Component' in foundViewConfig) {
20
- return foundViewConfig.Component;
21
- }
22
- }
23
- return null;
24
- };
25
-
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWdlcy9Eb2N1bWVudC9nZXRDdXN0b21WaWV3QnlQYXRoLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEFkbWluVmlld0NvbXBvbmVudCB9IGZyb20gJ3BheWxvYWQvY29uZmlnJ1xuaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnLCBTYW5pdGl6ZWRHbG9iYWxDb25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5leHBvcnQgY29uc3QgZ2V0Q3VzdG9tVmlld0J5UGF0aCA9IChcbiAgdmlld3M6XG4gICAgfCBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnWydhZG1pbiddWydjb21wb25lbnRzJ11bJ3ZpZXdzJ11cbiAgICB8IFNhb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yxDQUFDTCxNQUFNRSxJQUFJLEVBQUVJLElBQUksQ0FBQyxDQUFDLEdBQUdDLEtBQUs7WUFDL0QsSUFBSSxPQUFPQSxTQUFTLFlBQVksT0FBT0EsU0FBUyxjQUFjLFVBQVVBLE1BQU07Z0JBQzVFLE9BQU9BLEtBQUtOLElBQUksS0FBS0E7WUFDdkI7WUFDQSxPQUFPO1FBQ1QsSUFBSSxDQUFDLEVBQUU7UUFFUCxJQUFJRSxtQkFBbUIsZUFBZUEsaUJBQWlCO1lBQ3JELE9BQU9BLGdCQUFnQkssU0FBUztRQUNsQztJQUNGO0lBRUEsT0FBTztBQUNUIn0=
@@ -1,20 +0,0 @@
1
- /// <reference types="node" />
2
- import type { I18n } from '@payloadcms/translations';
3
- import type { Metadata } from 'next';
4
- import type { SanitizedCollectionConfig, SanitizedConfig, SanitizedGlobalConfig } from 'payload/types';
5
- export type GenerateEditViewMetadata = (args: {
6
- collectionConfig?: SanitizedCollectionConfig;
7
- config: SanitizedConfig;
8
- globalConfig?: SanitizedGlobalConfig;
9
- i18n: I18n;
10
- isEditing: boolean;
11
- }) => Promise<Metadata>;
12
- export declare const getMetaBySegment: ({ config: configPromise, params, }: {
13
- config: Promise<SanitizedConfig>;
14
- params: {
15
- collection?: string;
16
- global?: string;
17
- segments: string[];
18
- };
19
- }) => Promise<Metadata>;
20
- //# sourceMappingURL=getMetaBySegment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMetaBySegment.d.ts","sourceRoot":"","sources":["../../../src/pages/Document/getMetaBySegment.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AACpC,OAAO,KAAK,EACV,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACtB,MAAM,eAAe,CAAA;AAKtB,MAAM,MAAM,wBAAwB,GAAG,CAAC,IAAI,EAAE;IAC5C,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;IAC5C,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,IAAI,EAAE,IAAI,CAAA;IACV,SAAS,EAAE,OAAO,CAAA;CACnB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEvB,eAAO,MAAM,gBAAgB;YAInB,QAAQ,eAAe,CAAC;YACxB;QACN,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,EAAE,CAAA;KACnB;MACC,QAAQ,QAAQ,CA2FnB,CAAA"}
@@ -1,124 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "getMetaBySegment", {
6
- enumerable: true,
7
- get: function() {
8
- return getMetaBySegment;
9
- }
10
- });
11
- const _getNextI18nts = require("../../utilities/getNextI18n.ts");
12
- const _metats = require("../../utilities/meta.ts");
13
- function _getRequireWildcardCache(nodeInterop) {
14
- if (typeof WeakMap !== "function") return null;
15
- var cacheBabelInterop = new WeakMap();
16
- var cacheNodeInterop = new WeakMap();
17
- return (_getRequireWildcardCache = function(nodeInterop) {
18
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
19
- })(nodeInterop);
20
- }
21
- function _interop_require_wildcard(obj, nodeInterop) {
22
- if (!nodeInterop && obj && obj.__esModule) {
23
- return obj;
24
- }
25
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
26
- return {
27
- default: obj
28
- };
29
- }
30
- var cache = _getRequireWildcardCache(nodeInterop);
31
- if (cache && cache.has(obj)) {
32
- return cache.get(obj);
33
- }
34
- var newObj = {
35
- __proto__: null
36
- };
37
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
38
- for(var key in obj){
39
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
40
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
41
- if (desc && (desc.get || desc.set)) {
42
- Object.defineProperty(newObj, key, desc);
43
- } else {
44
- newObj[key] = obj[key];
45
- }
46
- }
47
- }
48
- newObj.default = obj;
49
- if (cache) {
50
- cache.set(obj, newObj);
51
- }
52
- return newObj;
53
- }
54
- const getMetaBySegment = async ({ config: configPromise, params })=>{
55
- const config = await configPromise;
56
- let fn = null;
57
- const isEditing = Boolean(params.collection && params.segments?.length > 0 && params.segments[0] !== 'create');
58
- if (params.collection && params?.segments?.length) {
59
- // `/:id`
60
- if (params.segments.length === 1) {
61
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Edit/meta.ts"))).then((mod)=>mod.generateMetadata);
62
- }
63
- // `/:id/api`
64
- if (params.segments.length === 2 && params.segments[1] === 'api') {
65
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../API/meta.ts"))).then((mod)=>mod.generateMetadata);
66
- }
67
- // `/:id/preview`
68
- if (params.segments.length === 2 && params.segments[1] === 'preview') {
69
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../LivePreview/meta.ts"))).then((mod)=>mod.generateMetadata);
70
- }
71
- // `/:id/versions`
72
- if (params.segments.length === 2 && params.segments[1] === 'versions') {
73
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Versions/meta.ts"))).then((mod)=>mod.generateMetadata);
74
- }
75
- // `/:id/versions/:version`
76
- if (params.segments.length === 3 && params.segments[1] === 'versions') {
77
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Version/meta.ts"))).then((mod)=>mod.generateMetadata);
78
- }
79
- }
80
- if (params.global) {
81
- // `/:slug`
82
- if (!params.segments?.length) {
83
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Edit/meta.ts"))).then((mod)=>mod.generateMetadata);
84
- }
85
- // `/:slug/api`
86
- if (params.segments?.length === 1 && params.segments[0] === 'api') {
87
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../API/meta.ts"))).then((mod)=>mod.generateMetadata);
88
- }
89
- // `/:slug/preview`
90
- if (params.segments?.length === 1 && params.segments[0] === 'preview') {
91
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../LivePreview/meta.ts"))).then((mod)=>mod.generateMetadata);
92
- }
93
- // `/:slug/versions`
94
- if (params.segments?.length === 1 && params.segments[0] === 'versions') {
95
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Versions/meta.ts"))).then((mod)=>mod.generateMetadata);
96
- }
97
- // `/:slug/versions/:version`
98
- if (params.segments?.length === 2 && params.segments[0] === 'versions') {
99
- fn = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../Version/meta.ts"))).then((mod)=>mod.generateMetadata);
100
- }
101
- }
102
- const i18n = await (0, _getNextI18nts.getNextI18n)({
103
- config
104
- });
105
- const collectionConfig = params.collection ? config?.collections?.find((collection)=>collection.slug === params.collection) : null;
106
- const globalConfig = params.global ? config?.globals?.find((global)=>global.slug === params.global) : null;
107
- if (typeof fn === 'function') {
108
- return fn({
109
- collectionConfig,
110
- config,
111
- globalConfig,
112
- i18n,
113
- isEditing
114
- });
115
- }
116
- return (0, _metats.meta)({
117
- config,
118
- description: '',
119
- keywords: '',
120
- title: ''
121
- });
122
- };
123
-
124
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWdlcy9Eb2N1bWVudC9nZXRNZXRhQnlTZWdtZW50LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEkxOG4gfSBmcm9tICdAcGF5bG9hZGNtcy90cmFuc2xhdGlvbnMnXG5pbXBvcnQgdHlwZSB7IE1ldGFkYXRhIH0gZnJvbSAnbmV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