@payloadcms/next 4.0.0-internal.1f9ae9a → 4.0.0-internal.21320b5

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 (715) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/adapters/handleServerFunctions.d.ts +2 -0
  3. package/dist/adapters/handleServerFunctions.d.ts.map +1 -0
  4. package/dist/adapters/handleServerFunctions.js +15 -0
  5. package/dist/adapters/handleServerFunctions.js.map +1 -0
  6. package/dist/adapters/layout.d.ts +1 -1
  7. package/dist/adapters/layout.d.ts.map +1 -1
  8. package/dist/adapters/layout.js.map +1 -1
  9. package/dist/adapters/metadata.d.ts.map +1 -0
  10. package/dist/adapters/metadata.js +21 -0
  11. package/dist/adapters/metadata.js.map +1 -0
  12. package/dist/adapters/router.d.ts.map +1 -1
  13. package/dist/adapters/router.js +2 -1
  14. package/dist/adapters/router.js.map +1 -1
  15. package/dist/adapters/viewport.d.ts +4 -0
  16. package/dist/adapters/viewport.d.ts.map +1 -0
  17. package/dist/adapters/viewport.js +14 -0
  18. package/dist/adapters/viewport.js.map +1 -0
  19. package/dist/adapters/views.d.ts +16 -0
  20. package/dist/adapters/views.d.ts.map +1 -0
  21. package/dist/adapters/views.js +23 -0
  22. package/dist/adapters/views.js.map +1 -0
  23. package/dist/auth/login.d.ts +3 -18
  24. package/dist/auth/login.d.ts.map +1 -1
  25. package/dist/auth/login.js +6 -62
  26. package/dist/auth/login.js.map +1 -1
  27. package/dist/auth/logout.d.ts +2 -5
  28. package/dist/auth/logout.d.ts.map +1 -1
  29. package/dist/auth/logout.js +6 -47
  30. package/dist/auth/logout.js.map +1 -1
  31. package/dist/auth/refresh.d.ts +2 -4
  32. package/dist/auth/refresh.d.ts.map +1 -1
  33. package/dist/auth/refresh.js +6 -51
  34. package/dist/auth/refresh.js.map +1 -1
  35. package/dist/cjs/withPayload.cjs +8 -10
  36. package/dist/cjs/withPayload.cjs.map +3 -3
  37. package/dist/config.d.ts.map +1 -1
  38. package/dist/exports/css.d.ts +3 -0
  39. package/dist/exports/css.d.ts.map +1 -0
  40. package/dist/exports/css.js +3 -0
  41. package/dist/exports/css.js.map +1 -0
  42. package/dist/exports/layouts.d.ts +2 -1
  43. package/dist/exports/layouts.d.ts.map +1 -1
  44. package/dist/exports/layouts.js +2 -1
  45. package/dist/exports/layouts.js.map +1 -1
  46. package/dist/exports/utilities.d.ts +0 -3
  47. package/dist/exports/utilities.d.ts.map +1 -1
  48. package/dist/exports/utilities.js +0 -2
  49. package/dist/exports/utilities.js.map +1 -1
  50. package/dist/exports/views.d.ts +2 -9
  51. package/dist/exports/views.d.ts.map +1 -1
  52. package/dist/exports/views.js +2 -9
  53. package/dist/exports/views.js.map +1 -1
  54. package/dist/index.d.ts +1 -1
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/prod/styles.css +1 -1
  57. package/dist/routes/graphql/handler.d.ts.map +1 -1
  58. package/dist/routes/graphql/handler.js +8 -3
  59. package/dist/routes/graphql/handler.js.map +1 -1
  60. package/dist/routes/graphql/playground.d.ts.map +1 -1
  61. package/dist/routes/rest/index.d.ts +8 -26
  62. package/dist/routes/rest/index.d.ts.map +1 -1
  63. package/dist/utilities/getNextRequestI18n.d.ts.map +1 -1
  64. package/dist/withPayload/withPayload.d.ts +13 -2
  65. package/dist/withPayload/withPayload.d.ts.map +1 -1
  66. package/dist/withPayload/withPayload.js +8 -10
  67. package/dist/withPayload/withPayload.js.map +1 -1
  68. package/dist/withPayload/withPayload.spec.js +16 -0
  69. package/dist/withPayload/withPayload.spec.js.map +1 -1
  70. package/dist/withPayload/withPayload.utils.d.ts +34 -12
  71. package/dist/withPayload/withPayload.utils.d.ts.map +1 -1
  72. package/package.json +9 -9
  73. package/dist/utilities/getExistingAuthToken.d.ts +0 -7
  74. package/dist/utilities/getExistingAuthToken.d.ts.map +0 -1
  75. package/dist/utilities/getExistingAuthToken.js +0 -6
  76. package/dist/utilities/getExistingAuthToken.js.map +0 -1
  77. package/dist/utilities/getHierarchyAncestry.d.ts +0 -24
  78. package/dist/utilities/getHierarchyAncestry.d.ts.map +0 -1
  79. package/dist/utilities/getHierarchyAncestry.js +0 -103
  80. package/dist/utilities/getHierarchyAncestry.js.map +0 -1
  81. package/dist/utilities/getPayloadHMR.d.ts +0 -11
  82. package/dist/utilities/getPayloadHMR.d.ts.map +0 -1
  83. package/dist/utilities/getPayloadHMR.js +0 -15
  84. package/dist/utilities/getPayloadHMR.js.map +0 -1
  85. package/dist/utilities/getRouteWithoutAdmin.d.ts +0 -5
  86. package/dist/utilities/getRouteWithoutAdmin.d.ts.map +0 -1
  87. package/dist/utilities/getRouteWithoutAdmin.js +0 -7
  88. package/dist/utilities/getRouteWithoutAdmin.js.map +0 -1
  89. package/dist/utilities/handleAuthRedirect.d.ts +0 -12
  90. package/dist/utilities/handleAuthRedirect.d.ts.map +0 -1
  91. package/dist/utilities/handleAuthRedirect.js +0 -41
  92. package/dist/utilities/handleAuthRedirect.js.map +0 -1
  93. package/dist/utilities/handleServerFunctions.d.ts +0 -3
  94. package/dist/utilities/handleServerFunctions.d.ts.map +0 -1
  95. package/dist/utilities/handleServerFunctions.js +0 -62
  96. package/dist/utilities/handleServerFunctions.js.map +0 -1
  97. package/dist/utilities/isCustomAdminView.d.ts +0 -10
  98. package/dist/utilities/isCustomAdminView.d.ts.map +0 -1
  99. package/dist/utilities/isCustomAdminView.js +0 -31
  100. package/dist/utilities/isCustomAdminView.js.map +0 -1
  101. package/dist/utilities/isCustomAdminView.spec.js +0 -90
  102. package/dist/utilities/isCustomAdminView.spec.js.map +0 -1
  103. package/dist/utilities/isPublicAdminRoute.d.ts +0 -7
  104. package/dist/utilities/isPublicAdminRoute.d.ts.map +0 -1
  105. package/dist/utilities/isPublicAdminRoute.js +0 -25
  106. package/dist/utilities/isPublicAdminRoute.js.map +0 -1
  107. package/dist/utilities/meta.d.ts +0 -6
  108. package/dist/utilities/meta.d.ts.map +0 -1
  109. package/dist/utilities/meta.js +0 -105
  110. package/dist/utilities/meta.js.map +0 -1
  111. package/dist/utilities/meta.spec.js +0 -83
  112. package/dist/utilities/meta.spec.js.map +0 -1
  113. package/dist/utilities/setPayloadAuthCookie.d.ts +0 -9
  114. package/dist/utilities/setPayloadAuthCookie.d.ts.map +0 -1
  115. package/dist/utilities/setPayloadAuthCookie.js +0 -27
  116. package/dist/utilities/setPayloadAuthCookie.js.map +0 -1
  117. package/dist/utilities/slugify.d.ts +0 -15
  118. package/dist/utilities/slugify.d.ts.map +0 -1
  119. package/dist/utilities/slugify.js +0 -47
  120. package/dist/utilities/slugify.js.map +0 -1
  121. package/dist/utilities/switchLanguageHandler.d.ts +0 -13
  122. package/dist/utilities/switchLanguageHandler.d.ts.map +0 -1
  123. package/dist/utilities/switchLanguageHandler.js +0 -16
  124. package/dist/utilities/switchLanguageHandler.js.map +0 -1
  125. package/dist/utilities/timestamp.d.ts +0 -2
  126. package/dist/utilities/timestamp.d.ts.map +0 -1
  127. package/dist/utilities/timestamp.js +0 -8
  128. package/dist/utilities/timestamp.js.map +0 -1
  129. package/dist/views/API/LocaleSelector/index.d.ts +0 -9
  130. package/dist/views/API/LocaleSelector/index.d.ts.map +0 -1
  131. package/dist/views/API/LocaleSelector/index.js +0 -44
  132. package/dist/views/API/LocaleSelector/index.js.map +0 -1
  133. package/dist/views/API/index.client.d.ts +0 -4
  134. package/dist/views/API/index.client.d.ts.map +0 -1
  135. package/dist/views/API/index.client.js +0 -249
  136. package/dist/views/API/index.client.js.map +0 -1
  137. package/dist/views/API/index.css +0 -205
  138. package/dist/views/API/index.d.ts +0 -4
  139. package/dist/views/API/index.d.ts.map +0 -1
  140. package/dist/views/API/index.js +0 -7
  141. package/dist/views/API/index.js.map +0 -1
  142. package/dist/views/API/metadata.d.ts +0 -6
  143. package/dist/views/API/metadata.d.ts.map +0 -1
  144. package/dist/views/API/metadata.js +0 -29
  145. package/dist/views/API/metadata.js.map +0 -1
  146. package/dist/views/Account/ResetPreferences/index.d.ts +0 -5
  147. package/dist/views/Account/ResetPreferences/index.d.ts.map +0 -1
  148. package/dist/views/Account/ResetPreferences/index.js +0 -110
  149. package/dist/views/Account/ResetPreferences/index.js.map +0 -1
  150. package/dist/views/Account/Settings/LanguageSelector.d.ts +0 -6
  151. package/dist/views/Account/Settings/LanguageSelector.d.ts.map +0 -1
  152. package/dist/views/Account/Settings/LanguageSelector.js +0 -52
  153. package/dist/views/Account/Settings/LanguageSelector.js.map +0 -1
  154. package/dist/views/Account/Settings/index.css +0 -26
  155. package/dist/views/Account/Settings/index.d.ts +0 -13
  156. package/dist/views/Account/Settings/index.d.ts.map +0 -1
  157. package/dist/views/Account/Settings/index.js +0 -34
  158. package/dist/views/Account/Settings/index.js.map +0 -1
  159. package/dist/views/Account/ToggleHighContrast/index.d.ts +0 -3
  160. package/dist/views/Account/ToggleHighContrast/index.d.ts.map +0 -1
  161. package/dist/views/Account/ToggleHighContrast/index.js +0 -45
  162. package/dist/views/Account/ToggleHighContrast/index.js.map +0 -1
  163. package/dist/views/Account/ToggleTheme/index.d.ts +0 -3
  164. package/dist/views/Account/ToggleTheme/index.d.ts.map +0 -1
  165. package/dist/views/Account/ToggleTheme/index.js +0 -60
  166. package/dist/views/Account/ToggleTheme/index.js.map +0 -1
  167. package/dist/views/Account/index.client.d.ts +0 -3
  168. package/dist/views/Account/index.client.d.ts.map +0 -1
  169. package/dist/views/Account/index.client.js +0 -37
  170. package/dist/views/Account/index.client.js.map +0 -1
  171. package/dist/views/Account/index.d.ts +0 -4
  172. package/dist/views/Account/index.d.ts.map +0 -1
  173. package/dist/views/Account/index.js +0 -183
  174. package/dist/views/Account/index.js.map +0 -1
  175. package/dist/views/Account/metadata.d.ts +0 -3
  176. package/dist/views/Account/metadata.d.ts.map +0 -1
  177. package/dist/views/Account/metadata.js +0 -14
  178. package/dist/views/Account/metadata.js.map +0 -1
  179. package/dist/views/CollectionTrash/index.d.ts +0 -18
  180. package/dist/views/CollectionTrash/index.d.ts.map +0 -1
  181. package/dist/views/CollectionTrash/index.js +0 -21
  182. package/dist/views/CollectionTrash/index.js.map +0 -1
  183. package/dist/views/CollectionTrash/metadata.d.ts +0 -7
  184. package/dist/views/CollectionTrash/metadata.d.ts.map +0 -1
  185. package/dist/views/CollectionTrash/metadata.js +0 -25
  186. package/dist/views/CollectionTrash/metadata.js.map +0 -1
  187. package/dist/views/CreateFirstUser/index.client.d.ts +0 -10
  188. package/dist/views/CreateFirstUser/index.client.d.ts.map +0 -1
  189. package/dist/views/CreateFirstUser/index.client.js +0 -119
  190. package/dist/views/CreateFirstUser/index.client.js.map +0 -1
  191. package/dist/views/CreateFirstUser/index.css +0 -69
  192. package/dist/views/CreateFirstUser/index.d.ts +0 -5
  193. package/dist/views/CreateFirstUser/index.d.ts.map +0 -1
  194. package/dist/views/CreateFirstUser/index.js +0 -92
  195. package/dist/views/CreateFirstUser/index.js.map +0 -1
  196. package/dist/views/CreateFirstUser/metadata.d.ts +0 -3
  197. package/dist/views/CreateFirstUser/metadata.d.ts.map +0 -1
  198. package/dist/views/CreateFirstUser/metadata.js +0 -14
  199. package/dist/views/CreateFirstUser/metadata.js.map +0 -1
  200. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts +0 -19
  201. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts.map +0 -1
  202. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +0 -209
  203. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +0 -1
  204. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts +0 -11
  205. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts.map +0 -1
  206. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js +0 -131
  207. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js.map +0 -1
  208. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts +0 -8
  209. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts.map +0 -1
  210. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js +0 -78
  211. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js.map +0 -1
  212. package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts +0 -22
  213. package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts.map +0 -1
  214. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +0 -440
  215. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +0 -1
  216. package/dist/views/Dashboard/Default/ModularDashboard/index.css +0 -299
  217. package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts +0 -5
  218. package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts.map +0 -1
  219. package/dist/views/Dashboard/Default/ModularDashboard/index.js +0 -72
  220. package/dist/views/Dashboard/Default/ModularDashboard/index.js.map +0 -1
  221. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts +0 -15
  222. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts.map +0 -1
  223. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js +0 -106
  224. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js.map +0 -1
  225. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts +0 -12
  226. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts.map +0 -1
  227. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js +0 -65
  228. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js.map +0 -1
  229. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts +0 -21
  230. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts.map +0 -1
  231. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +0 -80
  232. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +0 -1
  233. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts +0 -21
  234. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts.map +0 -1
  235. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js +0 -188
  236. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js.map +0 -1
  237. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts +0 -7
  238. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts.map +0 -1
  239. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js +0 -38
  240. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js.map +0 -1
  241. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts +0 -4
  242. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts.map +0 -1
  243. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js +0 -21
  244. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js.map +0 -1
  245. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts +0 -4
  246. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts.map +0 -1
  247. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js +0 -10
  248. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js.map +0 -1
  249. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts +0 -23
  250. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts.map +0 -1
  251. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js +0 -103
  252. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js.map +0 -1
  253. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts +0 -2
  254. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts.map +0 -1
  255. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js +0 -269
  256. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js.map +0 -1
  257. package/dist/views/Dashboard/Default/index.d.ts +0 -21
  258. package/dist/views/Dashboard/Default/index.d.ts.map +0 -1
  259. package/dist/views/Dashboard/Default/index.js +0 -55
  260. package/dist/views/Dashboard/Default/index.js.map +0 -1
  261. package/dist/views/Dashboard/index.d.ts +0 -4
  262. package/dist/views/Dashboard/index.d.ts.map +0 -1
  263. package/dist/views/Dashboard/index.js +0 -51
  264. package/dist/views/Dashboard/index.js.map +0 -1
  265. package/dist/views/Dashboard/metadata.d.ts +0 -3
  266. package/dist/views/Dashboard/metadata.d.ts.map +0 -1
  267. package/dist/views/Dashboard/metadata.js +0 -16
  268. package/dist/views/Dashboard/metadata.js.map +0 -1
  269. package/dist/views/Document/getCustomDocumentViewByKey.d.ts +0 -3
  270. package/dist/views/Document/getCustomDocumentViewByKey.d.ts.map +0 -1
  271. package/dist/views/Document/getCustomDocumentViewByKey.js +0 -4
  272. package/dist/views/Document/getCustomDocumentViewByKey.js.map +0 -1
  273. package/dist/views/Document/getCustomViewByRoute.d.ts +0 -10
  274. package/dist/views/Document/getCustomViewByRoute.d.ts.map +0 -1
  275. package/dist/views/Document/getCustomViewByRoute.js +0 -35
  276. package/dist/views/Document/getCustomViewByRoute.js.map +0 -1
  277. package/dist/views/Document/getDocPreferences.d.ts +0 -11
  278. package/dist/views/Document/getDocPreferences.d.ts.map +0 -1
  279. package/dist/views/Document/getDocPreferences.js +0 -45
  280. package/dist/views/Document/getDocPreferences.js.map +0 -1
  281. package/dist/views/Document/getDocumentData.d.ts +0 -14
  282. package/dist/views/Document/getDocumentData.d.ts.map +0 -1
  283. package/dist/views/Document/getDocumentData.js +0 -60
  284. package/dist/views/Document/getDocumentData.js.map +0 -1
  285. package/dist/views/Document/getDocumentPermissions.d.ts +0 -18
  286. package/dist/views/Document/getDocumentPermissions.d.ts.map +0 -1
  287. package/dist/views/Document/getDocumentPermissions.js +0 -124
  288. package/dist/views/Document/getDocumentPermissions.js.map +0 -1
  289. package/dist/views/Document/getDocumentView.d.ts +0 -18
  290. package/dist/views/Document/getDocumentView.d.ts.map +0 -1
  291. package/dist/views/Document/getDocumentView.js +0 -304
  292. package/dist/views/Document/getDocumentView.js.map +0 -1
  293. package/dist/views/Document/getIsLocked.d.ts +0 -16
  294. package/dist/views/Document/getIsLocked.d.ts.map +0 -1
  295. package/dist/views/Document/getIsLocked.js +0 -79
  296. package/dist/views/Document/getIsLocked.js.map +0 -1
  297. package/dist/views/Document/getMetaBySegment.d.ts +0 -11
  298. package/dist/views/Document/getMetaBySegment.d.ts.map +0 -1
  299. package/dist/views/Document/getMetaBySegment.js +0 -150
  300. package/dist/views/Document/getMetaBySegment.js.map +0 -1
  301. package/dist/views/Document/getVersions.d.ts +0 -26
  302. package/dist/views/Document/getVersions.d.ts.map +0 -1
  303. package/dist/views/Document/getVersions.js +0 -230
  304. package/dist/views/Document/getVersions.js.map +0 -1
  305. package/dist/views/Document/handleServerFunction.d.ts +0 -3
  306. package/dist/views/Document/handleServerFunction.d.ts.map +0 -1
  307. package/dist/views/Document/handleServerFunction.js +0 -134
  308. package/dist/views/Document/handleServerFunction.js.map +0 -1
  309. package/dist/views/Document/index.d.ts +0 -25
  310. package/dist/views/Document/index.d.ts.map +0 -1
  311. package/dist/views/Document/index.js +0 -397
  312. package/dist/views/Document/index.js.map +0 -1
  313. package/dist/views/Document/metadata.d.ts +0 -3
  314. package/dist/views/Document/metadata.d.ts.map +0 -1
  315. package/dist/views/Document/metadata.js +0 -3
  316. package/dist/views/Document/metadata.js.map +0 -1
  317. package/dist/views/Document/renderDocumentSlots.d.ts +0 -15
  318. package/dist/views/Document/renderDocumentSlots.d.ts.map +0 -1
  319. package/dist/views/Document/renderDocumentSlots.js +0 -178
  320. package/dist/views/Document/renderDocumentSlots.js.map +0 -1
  321. package/dist/views/Edit/index.d.ts +0 -4
  322. package/dist/views/Edit/index.d.ts.map +0 -1
  323. package/dist/views/Edit/index.js +0 -11
  324. package/dist/views/Edit/index.js.map +0 -1
  325. package/dist/views/Edit/metadata.d.ts +0 -6
  326. package/dist/views/Edit/metadata.d.ts.map +0 -1
  327. package/dist/views/Edit/metadata.js +0 -52
  328. package/dist/views/Edit/metadata.js.map +0 -1
  329. package/dist/views/ForgotPassword/ForgotPasswordForm/index.css +0 -36
  330. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts +0 -4
  331. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +0 -1
  332. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +0 -189
  333. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +0 -1
  334. package/dist/views/ForgotPassword/index.css +0 -21
  335. package/dist/views/ForgotPassword/index.d.ts +0 -6
  336. package/dist/views/ForgotPassword/index.d.ts.map +0 -1
  337. package/dist/views/ForgotPassword/index.js +0 -75
  338. package/dist/views/ForgotPassword/index.js.map +0 -1
  339. package/dist/views/ForgotPassword/metadata.d.ts +0 -3
  340. package/dist/views/ForgotPassword/metadata.d.ts.map +0 -1
  341. package/dist/views/ForgotPassword/metadata.js +0 -14
  342. package/dist/views/ForgotPassword/metadata.js.map +0 -1
  343. package/dist/views/Hierarchy/index.d.ts +0 -18
  344. package/dist/views/Hierarchy/index.d.ts.map +0 -1
  345. package/dist/views/Hierarchy/index.js +0 -20
  346. package/dist/views/Hierarchy/index.js.map +0 -1
  347. package/dist/views/List/createSerializableValue.d.ts +0 -2
  348. package/dist/views/List/createSerializableValue.d.ts.map +0 -1
  349. package/dist/views/List/createSerializableValue.js +0 -14
  350. package/dist/views/List/createSerializableValue.js.map +0 -1
  351. package/dist/views/List/enrichDocsWithVersionStatus.d.ts +0 -14
  352. package/dist/views/List/enrichDocsWithVersionStatus.d.ts.map +0 -1
  353. package/dist/views/List/enrichDocsWithVersionStatus.js +0 -96
  354. package/dist/views/List/enrichDocsWithVersionStatus.js.map +0 -1
  355. package/dist/views/List/extractRelationshipDisplayValue.d.ts +0 -3
  356. package/dist/views/List/extractRelationshipDisplayValue.d.ts.map +0 -1
  357. package/dist/views/List/extractRelationshipDisplayValue.js +0 -17
  358. package/dist/views/List/extractRelationshipDisplayValue.js.map +0 -1
  359. package/dist/views/List/extractValueOrRelationshipID.d.ts +0 -2
  360. package/dist/views/List/extractValueOrRelationshipID.d.ts.map +0 -1
  361. package/dist/views/List/extractValueOrRelationshipID.js +0 -19
  362. package/dist/views/List/extractValueOrRelationshipID.js.map +0 -1
  363. package/dist/views/List/handleGroupBy.d.ts +0 -24
  364. package/dist/views/List/handleGroupBy.d.ts.map +0 -1
  365. package/dist/views/List/handleGroupBy.js +0 -168
  366. package/dist/views/List/handleGroupBy.js.map +0 -1
  367. package/dist/views/List/handleHierarchy.d.ts +0 -18
  368. package/dist/views/List/handleHierarchy.d.ts.map +0 -1
  369. package/dist/views/List/handleHierarchy.js +0 -259
  370. package/dist/views/List/handleHierarchy.js.map +0 -1
  371. package/dist/views/List/handleServerFunction.d.ts +0 -4
  372. package/dist/views/List/handleServerFunction.d.ts.map +0 -1
  373. package/dist/views/List/handleServerFunction.js +0 -131
  374. package/dist/views/List/handleServerFunction.js.map +0 -1
  375. package/dist/views/List/index.css +0 -3
  376. package/dist/views/List/index.d.ts +0 -43
  377. package/dist/views/List/index.d.ts.map +0 -1
  378. package/dist/views/List/index.js +0 -445
  379. package/dist/views/List/index.js.map +0 -1
  380. package/dist/views/List/metadata.d.ts +0 -7
  381. package/dist/views/List/metadata.d.ts.map +0 -1
  382. package/dist/views/List/metadata.js +0 -24
  383. package/dist/views/List/metadata.js.map +0 -1
  384. package/dist/views/List/renderListViewSlots.d.ts +0 -12
  385. package/dist/views/List/renderListViewSlots.d.ts.map +0 -1
  386. package/dist/views/List/renderListViewSlots.js +0 -81
  387. package/dist/views/List/renderListViewSlots.js.map +0 -1
  388. package/dist/views/List/resolveAllFilterOptions.d.ts +0 -8
  389. package/dist/views/List/resolveAllFilterOptions.d.ts.map +0 -1
  390. package/dist/views/List/resolveAllFilterOptions.js +0 -49
  391. package/dist/views/List/resolveAllFilterOptions.js.map +0 -1
  392. package/dist/views/List/transformColumnsToSelect.d.ts +0 -3
  393. package/dist/views/List/transformColumnsToSelect.d.ts.map +0 -1
  394. package/dist/views/List/transformColumnsToSelect.js +0 -11
  395. package/dist/views/List/transformColumnsToSelect.js.map +0 -1
  396. package/dist/views/Login/LoginField/index.d.ts +0 -9
  397. package/dist/views/Login/LoginField/index.d.ts.map +0 -1
  398. package/dist/views/Login/LoginField/index.js +0 -98
  399. package/dist/views/Login/LoginField/index.js.map +0 -1
  400. package/dist/views/Login/LoginForm/index.css +0 -48
  401. package/dist/views/Login/LoginForm/index.d.ts +0 -11
  402. package/dist/views/Login/LoginForm/index.d.ts.map +0 -1
  403. package/dist/views/Login/LoginForm/index.js +0 -184
  404. package/dist/views/Login/LoginForm/index.js.map +0 -1
  405. package/dist/views/Login/index.css +0 -8
  406. package/dist/views/Login/index.d.ts +0 -6
  407. package/dist/views/Login/index.d.ts.map +0 -1
  408. package/dist/views/Login/index.js +0 -98
  409. package/dist/views/Login/index.js.map +0 -1
  410. package/dist/views/Login/metadata.d.ts +0 -3
  411. package/dist/views/Login/metadata.d.ts.map +0 -1
  412. package/dist/views/Login/metadata.js +0 -14
  413. package/dist/views/Login/metadata.js.map +0 -1
  414. package/dist/views/Logout/LogoutClient.d.ts +0 -18
  415. package/dist/views/Logout/LogoutClient.d.ts.map +0 -1
  416. package/dist/views/Logout/LogoutClient.js +0 -140
  417. package/dist/views/Logout/LogoutClient.js.map +0 -1
  418. package/dist/views/Logout/index.d.ts +0 -8
  419. package/dist/views/Logout/index.d.ts.map +0 -1
  420. package/dist/views/Logout/index.js +0 -36
  421. package/dist/views/Logout/index.js.map +0 -1
  422. package/dist/views/Logout/metadata.d.ts +0 -3
  423. package/dist/views/Logout/metadata.d.ts.map +0 -1
  424. package/dist/views/Logout/metadata.js +0 -13
  425. package/dist/views/Logout/metadata.js.map +0 -1
  426. package/dist/views/NotFound/index.client.d.ts +0 -4
  427. package/dist/views/NotFound/index.client.d.ts.map +0 -1
  428. package/dist/views/NotFound/index.client.js +0 -71
  429. package/dist/views/NotFound/index.client.js.map +0 -1
  430. package/dist/views/NotFound/index.css +0 -47
  431. package/dist/views/NotFound/index.d.ts +0 -21
  432. package/dist/views/NotFound/index.d.ts.map +0 -1
  433. package/dist/views/NotFound/index.js +0 -88
  434. package/dist/views/NotFound/index.js.map +0 -1
  435. package/dist/views/NotFound/metadata.d.ts +0 -8
  436. package/dist/views/NotFound/metadata.d.ts.map +0 -1
  437. package/dist/views/NotFound/metadata.js +0 -11
  438. package/dist/views/NotFound/metadata.js.map +0 -1
  439. package/dist/views/ResetPassword/ResetPasswordForm/index.css +0 -36
  440. package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts +0 -8
  441. package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts.map +0 -1
  442. package/dist/views/ResetPassword/ResetPasswordForm/index.js +0 -124
  443. package/dist/views/ResetPassword/ResetPasswordForm/index.js.map +0 -1
  444. package/dist/views/ResetPassword/index.css +0 -27
  445. package/dist/views/ResetPassword/index.d.ts +0 -6
  446. package/dist/views/ResetPassword/index.d.ts.map +0 -1
  447. package/dist/views/ResetPassword/index.js +0 -84
  448. package/dist/views/ResetPassword/index.js.map +0 -1
  449. package/dist/views/ResetPassword/metadata.d.ts +0 -3
  450. package/dist/views/ResetPassword/metadata.d.ts.map +0 -1
  451. package/dist/views/ResetPassword/metadata.js +0 -14
  452. package/dist/views/ResetPassword/metadata.js.map +0 -1
  453. package/dist/views/Root/attachViewActions.d.ts +0 -10
  454. package/dist/views/Root/attachViewActions.d.ts.map +0 -1
  455. package/dist/views/Root/attachViewActions.js +0 -27
  456. package/dist/views/Root/attachViewActions.js.map +0 -1
  457. package/dist/views/Root/generateCustomViewMetadata.d.ts +0 -11
  458. package/dist/views/Root/generateCustomViewMetadata.d.ts.map +0 -1
  459. package/dist/views/Root/generateCustomViewMetadata.js +0 -25
  460. package/dist/views/Root/generateCustomViewMetadata.js.map +0 -1
  461. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts +0 -12
  462. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +0 -1
  463. package/dist/views/Root/getCustomCollectionViewByRoute.js +0 -48
  464. package/dist/views/Root/getCustomCollectionViewByRoute.js.map +0 -1
  465. package/dist/views/Root/getCustomCollectionViewByRoute.spec.js +0 -168
  466. package/dist/views/Root/getCustomCollectionViewByRoute.spec.js.map +0 -1
  467. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts +0 -12
  468. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +0 -1
  469. package/dist/views/Root/getCustomGlobalViewByRoute.js +0 -46
  470. package/dist/views/Root/getCustomGlobalViewByRoute.js.map +0 -1
  471. package/dist/views/Root/getCustomViewByKey.d.ts +0 -10
  472. package/dist/views/Root/getCustomViewByKey.d.ts.map +0 -1
  473. package/dist/views/Root/getCustomViewByKey.js +0 -16
  474. package/dist/views/Root/getCustomViewByKey.js.map +0 -1
  475. package/dist/views/Root/getCustomViewByRoute.d.ts +0 -11
  476. package/dist/views/Root/getCustomViewByRoute.d.ts.map +0 -1
  477. package/dist/views/Root/getCustomViewByRoute.js +0 -48
  478. package/dist/views/Root/getCustomViewByRoute.js.map +0 -1
  479. package/dist/views/Root/getDocumentViewInfo.d.ts +0 -6
  480. package/dist/views/Root/getDocumentViewInfo.d.ts.map +0 -1
  481. package/dist/views/Root/getDocumentViewInfo.js +0 -28
  482. package/dist/views/Root/getDocumentViewInfo.js.map +0 -1
  483. package/dist/views/Root/getRouteData.d.ts +0 -45
  484. package/dist/views/Root/getRouteData.d.ts.map +0 -1
  485. package/dist/views/Root/getRouteData.js +0 -349
  486. package/dist/views/Root/getRouteData.js.map +0 -1
  487. package/dist/views/Root/index.d.ts +0 -23
  488. package/dist/views/Root/index.d.ts.map +0 -1
  489. package/dist/views/Root/index.js +0 -298
  490. package/dist/views/Root/index.js.map +0 -1
  491. package/dist/views/Root/isPathMatchingRoute.d.ts +0 -8
  492. package/dist/views/Root/isPathMatchingRoute.d.ts.map +0 -1
  493. package/dist/views/Root/isPathMatchingRoute.js +0 -33
  494. package/dist/views/Root/isPathMatchingRoute.js.map +0 -1
  495. package/dist/views/Root/isPathMatchingRoute.spec.js +0 -178
  496. package/dist/views/Root/isPathMatchingRoute.spec.js.map +0 -1
  497. package/dist/views/Root/metadata.d.ts.map +0 -1
  498. package/dist/views/Root/metadata.js +0 -173
  499. package/dist/views/Root/metadata.js.map +0 -1
  500. package/dist/views/Unauthorized/index.css +0 -44
  501. package/dist/views/Unauthorized/index.d.ts +0 -6
  502. package/dist/views/Unauthorized/index.d.ts.map +0 -1
  503. package/dist/views/Unauthorized/index.js +0 -33
  504. package/dist/views/Unauthorized/index.js.map +0 -1
  505. package/dist/views/Unauthorized/metadata.d.ts +0 -3
  506. package/dist/views/Unauthorized/metadata.d.ts.map +0 -1
  507. package/dist/views/Unauthorized/metadata.js +0 -14
  508. package/dist/views/Unauthorized/metadata.js.map +0 -1
  509. package/dist/views/Verify/index.client.d.ts +0 -7
  510. package/dist/views/Verify/index.client.d.ts.map +0 -1
  511. package/dist/views/Verify/index.client.js +0 -50
  512. package/dist/views/Verify/index.client.js.map +0 -1
  513. package/dist/views/Verify/index.d.ts +0 -6
  514. package/dist/views/Verify/index.d.ts.map +0 -1
  515. package/dist/views/Verify/index.js +0 -72
  516. package/dist/views/Verify/index.js.map +0 -1
  517. package/dist/views/Verify/metadata.d.ts +0 -3
  518. package/dist/views/Verify/metadata.d.ts.map +0 -1
  519. package/dist/views/Verify/metadata.js +0 -14
  520. package/dist/views/Verify/metadata.js.map +0 -1
  521. package/dist/views/Version/Default/SelectedLocalesContext.d.ts +0 -7
  522. package/dist/views/Version/Default/SelectedLocalesContext.d.ts.map +0 -1
  523. package/dist/views/Version/Default/SelectedLocalesContext.js +0 -8
  524. package/dist/views/Version/Default/SelectedLocalesContext.js.map +0 -1
  525. package/dist/views/Version/Default/SetStepNav.d.ts +0 -11
  526. package/dist/views/Version/Default/SetStepNav.d.ts.map +0 -1
  527. package/dist/views/Version/Default/SetStepNav.js +0 -135
  528. package/dist/views/Version/Default/SetStepNav.js.map +0 -1
  529. package/dist/views/Version/Default/index.css +0 -227
  530. package/dist/views/Version/Default/index.d.ts +0 -5
  531. package/dist/views/Version/Default/index.d.ts.map +0 -1
  532. package/dist/views/Version/Default/index.js +0 -255
  533. package/dist/views/Version/Default/index.js.map +0 -1
  534. package/dist/views/Version/Default/types.d.ts +0 -23
  535. package/dist/views/Version/Default/types.d.ts.map +0 -1
  536. package/dist/views/Version/Default/types.js +0 -2
  537. package/dist/views/Version/Default/types.js.map +0 -1
  538. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.css +0 -64
  539. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts +0 -27
  540. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts.map +0 -1
  541. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +0 -136
  542. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +0 -1
  543. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts +0 -12
  544. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +0 -1
  545. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +0 -80
  546. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +0 -1
  547. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts +0 -31
  548. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +0 -1
  549. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +0 -439
  550. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +0 -1
  551. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.css +0 -97
  552. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts +0 -4
  553. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts.map +0 -1
  554. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js +0 -91
  555. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js.map +0 -1
  556. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts +0 -3
  557. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts.map +0 -1
  558. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +0 -61
  559. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +0 -1
  560. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.css +0 -29
  561. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts +0 -4
  562. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts.map +0 -1
  563. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js +0 -83
  564. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js.map +0 -1
  565. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.css +0 -5
  566. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts +0 -4
  567. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts.map +0 -1
  568. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +0 -66
  569. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +0 -1
  570. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.css +0 -40
  571. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +0 -5
  572. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +0 -1
  573. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -126
  574. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +0 -1
  575. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts +0 -10
  576. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts.map +0 -1
  577. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js +0 -67
  578. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js.map +0 -1
  579. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.css +0 -213
  580. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +0 -21
  581. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
  582. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -238
  583. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +0 -1
  584. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts +0 -3
  585. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts.map +0 -1
  586. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +0 -17
  587. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +0 -1
  588. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.css +0 -4
  589. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +0 -4
  590. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +0 -1
  591. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +0 -94
  592. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +0 -1
  593. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.css +0 -6
  594. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +0 -4
  595. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +0 -1
  596. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -158
  597. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +0 -1
  598. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.css +0 -4
  599. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +0 -4
  600. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +0 -1
  601. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +0 -109
  602. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +0 -1
  603. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.css +0 -188
  604. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts +0 -33
  605. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts.map +0 -1
  606. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js +0 -262
  607. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js.map +0 -1
  608. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +0 -3
  609. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
  610. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +0 -36
  611. package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +0 -1
  612. package/dist/views/Version/RenderFieldsToDiff/index.css +0 -24
  613. package/dist/views/Version/RenderFieldsToDiff/index.d.ts +0 -3
  614. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +0 -1
  615. package/dist/views/Version/RenderFieldsToDiff/index.js +0 -13
  616. package/dist/views/Version/RenderFieldsToDiff/index.js.map +0 -1
  617. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts +0 -25
  618. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +0 -1
  619. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +0 -242
  620. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +0 -1
  621. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js +0 -861
  622. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js.map +0 -1
  623. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts +0 -2
  624. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts.map +0 -1
  625. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js +0 -4
  626. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js.map +0 -1
  627. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js +0 -47
  628. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js.map +0 -1
  629. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +0 -19
  630. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +0 -1
  631. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +0 -45
  632. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +0 -1
  633. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +0 -135
  634. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +0 -1
  635. package/dist/views/Version/Restore/index.css +0 -26
  636. package/dist/views/Version/Restore/index.d.ts +0 -16
  637. package/dist/views/Version/Restore/index.d.ts.map +0 -1
  638. package/dist/views/Version/Restore/index.js +0 -106
  639. package/dist/views/Version/Restore/index.js.map +0 -1
  640. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts +0 -3
  641. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts.map +0 -1
  642. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js +0 -56
  643. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js.map +0 -1
  644. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts +0 -33
  645. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts.map +0 -1
  646. package/dist/views/Version/SelectComparison/VersionDrawer/index.js +0 -239
  647. package/dist/views/Version/SelectComparison/VersionDrawer/index.js.map +0 -1
  648. package/dist/views/Version/SelectComparison/index.d.ts +0 -5
  649. package/dist/views/Version/SelectComparison/index.d.ts.map +0 -1
  650. package/dist/views/Version/SelectComparison/index.js +0 -57
  651. package/dist/views/Version/SelectComparison/index.js.map +0 -1
  652. package/dist/views/Version/SelectComparison/types.d.ts +0 -26
  653. package/dist/views/Version/SelectComparison/types.d.ts.map +0 -1
  654. package/dist/views/Version/SelectComparison/types.js +0 -2
  655. package/dist/views/Version/SelectComparison/types.js.map +0 -1
  656. package/dist/views/Version/SelectLocales/index.d.ts +0 -12
  657. package/dist/views/Version/SelectLocales/index.d.ts.map +0 -1
  658. package/dist/views/Version/SelectLocales/index.js +0 -39
  659. package/dist/views/Version/SelectLocales/index.js.map +0 -1
  660. package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts +0 -31
  661. package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts.map +0 -1
  662. package/dist/views/Version/VersionPillLabel/VersionPillLabel.js +0 -122
  663. package/dist/views/Version/VersionPillLabel/VersionPillLabel.js.map +0 -1
  664. package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts +0 -37
  665. package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts.map +0 -1
  666. package/dist/views/Version/VersionPillLabel/getVersionLabel.js +0 -43
  667. package/dist/views/Version/VersionPillLabel/getVersionLabel.js.map +0 -1
  668. package/dist/views/Version/VersionPillLabel/index.css +0 -31
  669. package/dist/views/Version/fetchVersions.d.ts +0 -42
  670. package/dist/views/Version/fetchVersions.d.ts.map +0 -1
  671. package/dist/views/Version/fetchVersions.js +0 -151
  672. package/dist/views/Version/fetchVersions.js.map +0 -1
  673. package/dist/views/Version/index.d.ts +0 -4
  674. package/dist/views/Version/index.d.ts.map +0 -1
  675. package/dist/views/Version/index.js +0 -352
  676. package/dist/views/Version/index.js.map +0 -1
  677. package/dist/views/Version/metadata.d.ts +0 -6
  678. package/dist/views/Version/metadata.d.ts.map +0 -1
  679. package/dist/views/Version/metadata.js +0 -58
  680. package/dist/views/Version/metadata.js.map +0 -1
  681. package/dist/views/Versions/buildColumns.d.ts +0 -16
  682. package/dist/views/Versions/buildColumns.d.ts.map +0 -1
  683. package/dist/views/Versions/buildColumns.js +0 -88
  684. package/dist/views/Versions/buildColumns.js.map +0 -1
  685. package/dist/views/Versions/cells/AutosaveCell/index.css +0 -7
  686. package/dist/views/Versions/cells/AutosaveCell/index.d.ts +0 -21
  687. package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +0 -1
  688. package/dist/views/Versions/cells/AutosaveCell/index.js +0 -45
  689. package/dist/views/Versions/cells/AutosaveCell/index.js.map +0 -1
  690. package/dist/views/Versions/cells/CreatedAt/index.d.ts +0 -13
  691. package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +0 -1
  692. package/dist/views/Versions/cells/CreatedAt/index.js +0 -60
  693. package/dist/views/Versions/cells/CreatedAt/index.js.map +0 -1
  694. package/dist/views/Versions/cells/ID/index.d.ts +0 -5
  695. package/dist/views/Versions/cells/ID/index.d.ts.map +0 -1
  696. package/dist/views/Versions/cells/ID/index.js +0 -12
  697. package/dist/views/Versions/cells/ID/index.js.map +0 -1
  698. package/dist/views/Versions/index.client.d.ts +0 -9
  699. package/dist/views/Versions/index.client.d.ts.map +0 -1
  700. package/dist/views/Versions/index.client.js +0 -73
  701. package/dist/views/Versions/index.client.js.map +0 -1
  702. package/dist/views/Versions/index.css +0 -85
  703. package/dist/views/Versions/index.d.ts +0 -5
  704. package/dist/views/Versions/index.d.ts.map +0 -1
  705. package/dist/views/Versions/index.js +0 -178
  706. package/dist/views/Versions/index.js.map +0 -1
  707. package/dist/views/Versions/metadata.d.ts +0 -6
  708. package/dist/views/Versions/metadata.d.ts.map +0 -1
  709. package/dist/views/Versions/metadata.js +0 -51
  710. package/dist/views/Versions/metadata.js.map +0 -1
  711. package/dist/views/Versions/types.d.ts +0 -17
  712. package/dist/views/Versions/types.d.ts.map +0 -1
  713. package/dist/views/Versions/types.js +0 -2
  714. package/dist/views/Versions/types.js.map +0 -1
  715. /package/dist/{views/Root → adapters}/metadata.d.ts +0 -0
@@ -1,83 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- import { generateMetadata } from './meta.js';
3
- describe('generateMetadata', () => {
4
- it('should handle a string title with titleSuffix', async () => {
5
- const result = await generateMetadata({
6
- serverURL: 'http://localhost:3000',
7
- title: 'Dashboard',
8
- titleSuffix: '- My CMS'
9
- });
10
- expect(result.title).toBe('Dashboard - My CMS');
11
- });
12
- it('should apply titleSuffix to default and template fields of a TemplateString title object', async () => {
13
- const result = await generateMetadata({
14
- serverURL: 'http://localhost:3000',
15
- title: {
16
- default: 'Dashboard',
17
- template: '%s | Dashboard'
18
- },
19
- titleSuffix: '- My CMS'
20
- });
21
- expect(typeof result.title).toBe('object');
22
- expect(result.title.default).toBe('Dashboard - My CMS');
23
- expect(result.title.template).toBe('%s | Dashboard - My CMS');
24
- });
25
- it('should use the TemplateString default for ogTitle when title is a TemplateString object', async () => {
26
- const result = await generateMetadata({
27
- serverURL: 'http://localhost:3000',
28
- title: {
29
- default: 'My CMS',
30
- template: '%s | My CMS'
31
- },
32
- titleSuffix: '- Payload'
33
- });
34
- // OG title must be a plain string — extract from TemplateString.default and append titleSuffix
35
- expect(result.openGraph?.title).toBe('My CMS - Payload');
36
- });
37
- it('should use the TemplateString absolute for ogTitle when title has absolute property', async () => {
38
- const result = await generateMetadata({
39
- serverURL: 'http://localhost:3000',
40
- title: {
41
- absolute: 'My CMS Absolute'
42
- },
43
- titleSuffix: '- Payload'
44
- });
45
- expect(result.openGraph?.title).toBe('My CMS Absolute - Payload');
46
- });
47
- it('should apply titleSuffix to the absolute field of a TemplateString title object', async () => {
48
- const result = await generateMetadata({
49
- serverURL: 'http://localhost:3000',
50
- title: {
51
- absolute: 'My CMS Absolute'
52
- },
53
- titleSuffix: '- Payload'
54
- });
55
- expect(typeof result.title).toBe('object');
56
- expect(result.title.absolute).toBe('My CMS Absolute - Payload');
57
- });
58
- it('should use openGraph.title string over incomingMetadata.title for ogTitle', async () => {
59
- const result = await generateMetadata({
60
- serverURL: 'http://localhost:3000',
61
- title: 'My CMS',
62
- titleSuffix: '- Payload',
63
- openGraph: {
64
- title: 'Custom OG Title'
65
- }
66
- });
67
- expect(result.openGraph?.title).toBe('Custom OG Title');
68
- });
69
- it('should return undefined for metaTitle when no title and no titleSuffix are set', async () => {
70
- const result = await generateMetadata({
71
- serverURL: 'http://localhost:3000'
72
- });
73
- expect(result.title).toBeUndefined();
74
- });
75
- it('should return just the title when no titleSuffix is set', async () => {
76
- const result = await generateMetadata({
77
- serverURL: 'http://localhost:3000',
78
- title: 'My CMS'
79
- });
80
- expect(result.title).toBe('My CMS');
81
- });
82
- });
83
- //# sourceMappingURL=meta.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.spec.js","names":["describe","expect","it","generateMetadata","result","serverURL","title","titleSuffix","toBe","default","template","openGraph","absolute","toBeUndefined"],"sources":["../../src/utilities/meta.spec.ts"],"sourcesContent":["import { describe, expect, it } from 'vitest'\n\nimport { generateMetadata } from './meta.js'\n\ndescribe('generateMetadata', () => {\n it('should handle a string title with titleSuffix', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: 'Dashboard',\n titleSuffix: '- My CMS',\n })\n\n expect(result.title).toBe('Dashboard - My CMS')\n })\n\n it('should apply titleSuffix to default and template fields of a TemplateString title object', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { default: 'Dashboard', template: '%s | Dashboard' },\n titleSuffix: '- My CMS',\n })\n\n expect(typeof result.title).toBe('object')\n expect((result.title as { default: string; template: string }).default).toBe(\n 'Dashboard - My CMS',\n )\n expect((result.title as { default: string; template: string }).template).toBe(\n '%s | Dashboard - My CMS',\n )\n })\n\n it('should use the TemplateString default for ogTitle when title is a TemplateString object', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { default: 'My CMS', template: '%s | My CMS' },\n titleSuffix: '- Payload',\n })\n\n // OG title must be a plain string — extract from TemplateString.default and append titleSuffix\n expect(result.openGraph?.title).toBe('My CMS - Payload')\n })\n\n it('should use the TemplateString absolute for ogTitle when title has absolute property', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { absolute: 'My CMS Absolute' },\n titleSuffix: '- Payload',\n })\n\n expect(result.openGraph?.title).toBe('My CMS Absolute - Payload')\n })\n\n it('should apply titleSuffix to the absolute field of a TemplateString title object', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: { absolute: 'My CMS Absolute' },\n titleSuffix: '- Payload',\n })\n\n expect(typeof result.title).toBe('object')\n expect((result.title as { absolute: string }).absolute).toBe('My CMS Absolute - Payload')\n })\n\n it('should use openGraph.title string over incomingMetadata.title for ogTitle', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: 'My CMS',\n titleSuffix: '- Payload',\n openGraph: { title: 'Custom OG Title' },\n })\n\n expect(result.openGraph?.title).toBe('Custom OG Title')\n })\n\n it('should return undefined for metaTitle when no title and no titleSuffix are set', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n })\n\n expect(result.title).toBeUndefined()\n })\n\n it('should return just the title when no titleSuffix is set', async () => {\n const result = await generateMetadata({\n serverURL: 'http://localhost:3000',\n title: 'My CMS',\n })\n\n expect(result.title).toBe('My CMS')\n })\n})\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ;AAErC,SAASC,gBAAgB,QAAQ;AAEjCH,QAAA,CAAS,oBAAoB;EAC3BE,EAAA,CAAG,iDAAiD;IAClD,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;MACPC,WAAA,EAAa;IACf;IAEAN,MAAA,CAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;EAC5B;EAEAN,EAAA,CAAG,4FAA4F;IAC7F,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEG,OAAA,EAAS;QAAaC,QAAA,EAAU;MAAiB;MAC1DH,WAAA,EAAa;IACf;IAEAN,MAAA,CAAO,OAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;IACjCP,MAAA,CAAOG,MAAC,CAAOE,KAAK,CAA2CG,OAAO,EAAED,IAAI,CAC1E;IAEFP,MAAA,CAAOG,MAAC,CAAOE,KAAK,CAA2CI,QAAQ,EAAEF,IAAI,CAC3E;EAEJ;EAEAN,EAAA,CAAG,2FAA2F;IAC5F,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEG,OAAA,EAAS;QAAUC,QAAA,EAAU;MAAc;MACpDH,WAAA,EAAa;IACf;IAEA;IACAN,MAAA,CAAOG,MAAA,CAAOO,SAAS,EAAEL,KAAA,EAAOE,IAAI,CAAC;EACvC;EAEAN,EAAA,CAAG,uFAAuF;IACxF,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEM,QAAA,EAAU;MAAkB;MACrCL,WAAA,EAAa;IACf;IAEAN,MAAA,CAAOG,MAAA,CAAOO,SAAS,EAAEL,KAAA,EAAOE,IAAI,CAAC;EACvC;EAEAN,EAAA,CAAG,mFAAmF;IACpF,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;QAAEM,QAAA,EAAU;MAAkB;MACrCL,WAAA,EAAa;IACf;IAEAN,MAAA,CAAO,OAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;IACjCP,MAAA,CAAOG,MAAC,CAAOE,KAAK,CAA0BM,QAAQ,EAAEJ,IAAI,CAAC;EAC/D;EAEAN,EAAA,CAAG,6EAA6E;IAC9E,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;MACPC,WAAA,EAAa;MACbI,SAAA,EAAW;QAAEL,KAAA,EAAO;MAAkB;IACxC;IAEAL,MAAA,CAAOG,MAAA,CAAOO,SAAS,EAAEL,KAAA,EAAOE,IAAI,CAAC;EACvC;EAEAN,EAAA,CAAG,kFAAkF;IACnF,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;IACb;IAEAJ,MAAA,CAAOG,MAAA,CAAOE,KAAK,EAAEO,aAAa;EACpC;EAEAX,EAAA,CAAG,2DAA2D;IAC5D,MAAME,MAAA,GAAS,MAAMD,gBAAA,CAAiB;MACpCE,SAAA,EAAW;MACXC,KAAA,EAAO;IACT;IAEAL,MAAA,CAAOG,MAAA,CAAOE,KAAK,EAAEE,IAAI,CAAC;EAC5B;AACF","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import type { Auth } from 'payload';
2
- type SetPayloadAuthCookieArgs = {
3
- authConfig: Auth;
4
- cookiePrefix: string;
5
- token: string;
6
- };
7
- export declare function setPayloadAuthCookie({ authConfig, cookiePrefix, token, }: SetPayloadAuthCookieArgs): Promise<void>;
8
- export {};
9
- //# sourceMappingURL=setPayloadAuthCookie.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setPayloadAuthCookie.d.ts","sourceRoot":"","sources":["../../src/utilities/setPayloadAuthCookie.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAKnC,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,IAAI,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,wBAAsB,oBAAoB,CAAC,EACzC,UAAU,EACV,YAAY,EACZ,KAAK,GACN,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0B1C"}
@@ -1,27 +0,0 @@
1
- import { cookies as getCookies } from 'next/headers.js';
2
- import { generatePayloadCookie } from 'payload';
3
- export async function setPayloadAuthCookie({
4
- authConfig,
5
- cookiePrefix,
6
- token
7
- }) {
8
- const cookies = await getCookies();
9
- const cookieExpiration = authConfig.tokenExpiration ? new Date(Date.now() + authConfig.tokenExpiration) : undefined;
10
- const payloadCookie = generatePayloadCookie({
11
- collectionAuthConfig: authConfig,
12
- cookiePrefix,
13
- expires: cookieExpiration,
14
- returnCookieAsObject: true,
15
- token
16
- });
17
- if (payloadCookie.value) {
18
- cookies.set(payloadCookie.name, payloadCookie.value, {
19
- domain: authConfig.cookies.domain,
20
- expires: payloadCookie.expires ? new Date(payloadCookie.expires) : undefined,
21
- httpOnly: true,
22
- sameSite: typeof authConfig.cookies.sameSite === 'string' ? authConfig.cookies.sameSite.toLowerCase() : 'lax',
23
- secure: authConfig.cookies.secure || false
24
- });
25
- }
26
- }
27
- //# sourceMappingURL=setPayloadAuthCookie.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setPayloadAuthCookie.js","names":["cookies","getCookies","generatePayloadCookie","setPayloadAuthCookie","authConfig","cookiePrefix","token","cookieExpiration","tokenExpiration","Date","now","undefined","payloadCookie","collectionAuthConfig","expires","returnCookieAsObject","value","set","name","domain","httpOnly","sameSite","toLowerCase","secure"],"sources":["../../src/utilities/setPayloadAuthCookie.ts"],"sourcesContent":["import type { Auth } from 'payload'\n\nimport { cookies as getCookies } from 'next/headers.js'\nimport { generatePayloadCookie } from 'payload'\n\ntype SetPayloadAuthCookieArgs = {\n authConfig: Auth\n cookiePrefix: string\n token: string\n}\n\nexport async function setPayloadAuthCookie({\n authConfig,\n cookiePrefix,\n token,\n}: SetPayloadAuthCookieArgs): Promise<void> {\n const cookies = await getCookies()\n\n const cookieExpiration = authConfig.tokenExpiration\n ? new Date(Date.now() + authConfig.tokenExpiration)\n : undefined\n\n const payloadCookie = generatePayloadCookie({\n collectionAuthConfig: authConfig,\n cookiePrefix,\n expires: cookieExpiration,\n returnCookieAsObject: true,\n token,\n })\n\n if (payloadCookie.value) {\n cookies.set(payloadCookie.name, payloadCookie.value, {\n domain: authConfig.cookies.domain,\n expires: payloadCookie.expires ? new Date(payloadCookie.expires) : undefined,\n httpOnly: true,\n sameSite: (typeof authConfig.cookies.sameSite === 'string'\n ? authConfig.cookies.sameSite.toLowerCase()\n : 'lax') as 'lax' | 'none' | 'strict',\n secure: authConfig.cookies.secure || false,\n })\n }\n}\n"],"mappings":"AAEA,SAASA,OAAA,IAAWC,UAAU,QAAQ;AACtC,SAASC,qBAAqB,QAAQ;AAQtC,OAAO,eAAeC,qBAAqB;EACzCC,UAAU;EACVC,YAAY;EACZC;AAAK,CACoB;EACzB,MAAMN,OAAA,GAAU,MAAMC,UAAA;EAEtB,MAAMM,gBAAA,GAAmBH,UAAA,CAAWI,eAAe,GAC/C,IAAIC,IAAA,CAAKA,IAAA,CAAKC,GAAG,KAAKN,UAAA,CAAWI,eAAe,IAChDG,SAAA;EAEJ,MAAMC,aAAA,GAAgBV,qBAAA,CAAsB;IAC1CW,oBAAA,EAAsBT,UAAA;IACtBC,YAAA;IACAS,OAAA,EAASP,gBAAA;IACTQ,oBAAA,EAAsB;IACtBT;EACF;EAEA,IAAIM,aAAA,CAAcI,KAAK,EAAE;IACvBhB,OAAA,CAAQiB,GAAG,CAACL,aAAA,CAAcM,IAAI,EAAEN,aAAA,CAAcI,KAAK,EAAE;MACnDG,MAAA,EAAQf,UAAA,CAAWJ,OAAO,CAACmB,MAAM;MACjCL,OAAA,EAASF,aAAA,CAAcE,OAAO,GAAG,IAAIL,IAAA,CAAKG,aAAA,CAAcE,OAAO,IAAIH,SAAA;MACnES,QAAA,EAAU;MACVC,QAAA,EAAW,OAAOjB,UAAA,CAAWJ,OAAO,CAACqB,QAAQ,KAAK,WAC9CjB,UAAA,CAAWJ,OAAO,CAACqB,QAAQ,CAACC,WAAW,KACvC;MACJC,MAAA,EAAQnB,UAAA,CAAWJ,OAAO,CAACuB,MAAM,IAAI;IACvC;EACF;AACF","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- import type { Slugify } from 'payload/shared';
2
- import { type ServerFunction, type SlugifyServerFunctionArgs } from 'payload';
3
- /**
4
- * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.
5
- * This is a server function that is used to invoke the user's custom slugify function from the client.
6
- * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.
7
- * - Not through props
8
- * - Not from a server function defined within a server component (see below)
9
- * When a server function contains non-serializable data within its closure, it gets passed through the boundary (and breaks).
10
- * The only way to pass server functions to the client (that contain non-serializable data) is if it is globally defined.
11
- * But we also cannot define this function alongside the server component, as we will not have access to their custom slugify function.
12
- * See `ServerFunctionsProvider` for more details.
13
- */
14
- export declare const slugifyHandler: ServerFunction<SlugifyServerFunctionArgs, Promise<ReturnType<Slugify>>>;
15
- //# sourceMappingURL=slugify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slugify.d.ts","sourceRoot":"","sources":["../../src/utilities/slugify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAE/B,MAAM,SAAS,CAAA;AAGhB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,EAAE,cAAc,CACzC,yBAAyB,EACzB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAiC7B,CAAA"}
@@ -1,47 +0,0 @@
1
- import { flattenAllFields, getFieldByPath, UnauthorizedError } from 'payload';
2
- import { slugify as defaultSlugify } from 'payload/shared';
3
- /**
4
- * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.
5
- * This is a server function that is used to invoke the user's custom slugify function from the client.
6
- * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.
7
- * - Not through props
8
- * - Not from a server function defined within a server component (see below)
9
- * When a server function contains non-serializable data within its closure, it gets passed through the boundary (and breaks).
10
- * The only way to pass server functions to the client (that contain non-serializable data) is if it is globally defined.
11
- * But we also cannot define this function alongside the server component, as we will not have access to their custom slugify function.
12
- * See `ServerFunctionsProvider` for more details.
13
- */
14
- export const slugifyHandler = async args => {
15
- const {
16
- collectionSlug,
17
- data,
18
- globalSlug,
19
- path,
20
- req,
21
- valueToSlugify
22
- } = args;
23
- if (!req.user) {
24
- throw new UnauthorizedError();
25
- }
26
- const docConfig = collectionSlug ? req.payload.collections[collectionSlug]?.config : globalSlug ? req.payload.config.globals.find(g => g.slug === globalSlug) : null;
27
- if (!docConfig) {
28
- throw new Error();
29
- }
30
- const {
31
- field
32
- } = getFieldByPath({
33
- config: req.payload.config,
34
- fields: flattenAllFields({
35
- fields: docConfig.fields
36
- }),
37
- path
38
- });
39
- const customSlugify = typeof field?.custom?.slugify === 'function' ? field.custom.slugify : undefined;
40
- const result = customSlugify ? await customSlugify({
41
- data,
42
- req,
43
- valueToSlugify
44
- }) : defaultSlugify(valueToSlugify);
45
- return result;
46
- };
47
- //# sourceMappingURL=slugify.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slugify.js","names":["flattenAllFields","getFieldByPath","UnauthorizedError","slugify","defaultSlugify","slugifyHandler","args","collectionSlug","data","globalSlug","path","req","valueToSlugify","user","docConfig","payload","collections","config","globals","find","g","slug","Error","field","fields","customSlugify","custom","undefined","result"],"sources":["../../src/utilities/slugify.ts"],"sourcesContent":["import type { Slugify } from 'payload/shared'\n\nimport {\n flattenAllFields,\n getFieldByPath,\n type ServerFunction,\n type SlugifyServerFunctionArgs,\n UnauthorizedError,\n} from 'payload'\nimport { slugify as defaultSlugify } from 'payload/shared'\n\n/**\n * This server function is directly related to the {@link https://payloadcms.com/docs/fields/text#slug-field | Slug Field}.\n * This is a server function that is used to invoke the user's custom slugify function from the client.\n * This pattern is required, as there is no other way for us to pass their function across the client-server boundary.\n * - Not through props\n * - Not from a server function defined within a server component (see below)\n * When a server function contains non-serializable data within its closure, it gets passed through the boundary (and breaks).\n * The only way to pass server functions to the client (that contain non-serializable data) is if it is globally defined.\n * But we also cannot define this function alongside the server component, as we will not have access to their custom slugify function.\n * See `ServerFunctionsProvider` for more details.\n */\nexport const slugifyHandler: ServerFunction<\n SlugifyServerFunctionArgs,\n Promise<ReturnType<Slugify>>\n> = async (args) => {\n const { collectionSlug, data, globalSlug, path, req, valueToSlugify } = args\n\n if (!req.user) {\n throw new UnauthorizedError()\n }\n\n const docConfig = collectionSlug\n ? req.payload.collections[collectionSlug]?.config\n : globalSlug\n ? req.payload.config.globals.find((g) => g.slug === globalSlug)\n : null\n\n if (!docConfig) {\n throw new Error()\n }\n\n const { field } = getFieldByPath({\n config: req.payload.config,\n fields: flattenAllFields({ fields: docConfig.fields }),\n path,\n })\n\n const customSlugify = (\n typeof field?.custom?.slugify === 'function' ? field.custom.slugify : undefined\n ) as Slugify\n\n const result = customSlugify\n ? await customSlugify({ data, req, valueToSlugify })\n : defaultSlugify(valueToSlugify)\n\n return result\n}\n"],"mappings":"AAEA,SACEA,gBAAgB,EAChBC,cAAc,EAGdC,iBAAiB,QACZ;AACP,SAASC,OAAA,IAAWC,cAAc,QAAQ;AAE1C;;;;;;;;;;;AAWA,OAAO,MAAMC,cAAA,GAGT,MAAOC,IAAA;EACT,MAAM;IAAEC,cAAc;IAAEC,IAAI;IAAEC,UAAU;IAAEC,IAAI;IAAEC,GAAG;IAAEC;EAAc,CAAE,GAAGN,IAAA;EAExE,IAAI,CAACK,GAAA,CAAIE,IAAI,EAAE;IACb,MAAM,IAAIX,iBAAA;EACZ;EAEA,MAAMY,SAAA,GAAYP,cAAA,GACdI,GAAA,CAAII,OAAO,CAACC,WAAW,CAACT,cAAA,CAAe,EAAEU,MAAA,GACzCR,UAAA,GACEE,GAAA,CAAII,OAAO,CAACE,MAAM,CAACC,OAAO,CAACC,IAAI,CAAEC,CAAA,IAAMA,CAAA,CAAEC,IAAI,KAAKZ,UAAA,IAClD;EAEN,IAAI,CAACK,SAAA,EAAW;IACd,MAAM,IAAIQ,KAAA;EACZ;EAEA,MAAM;IAAEC;EAAK,CAAE,GAAGtB,cAAA,CAAe;IAC/BgB,MAAA,EAAQN,GAAA,CAAII,OAAO,CAACE,MAAM;IAC1BO,MAAA,EAAQxB,gBAAA,CAAiB;MAAEwB,MAAA,EAAQV,SAAA,CAAUU;IAAO;IACpDd;EACF;EAEA,MAAMe,aAAA,GACJ,OAAOF,KAAA,EAAOG,MAAA,EAAQvB,OAAA,KAAY,aAAaoB,KAAA,CAAMG,MAAM,CAACvB,OAAO,GAAGwB,SAAA;EAGxE,MAAMC,MAAA,GAASH,aAAA,GACX,MAAMA,aAAA,CAAc;IAAEjB,IAAA;IAAMG,GAAA;IAAKC;EAAe,KAChDR,cAAA,CAAeQ,cAAA;EAEnB,OAAOgB,MAAA;AACT","ignoreList":[]}
@@ -1,13 +0,0 @@
1
- import type { ServerFunction } from 'payload';
2
- type SwitchLanguageArgs = {
3
- lang: string;
4
- };
5
- /**
6
- * Server-function dispatched from {@link TranslationProvider} when the user switches
7
- * the admin language. Writes the language cookie via the request's `ServerAdapter`,
8
- * which avoids closing over framework-specific bindings in a client-callable server
9
- * action (see `slugifyHandler` JSDoc for the broader pattern).
10
- */
11
- export declare const switchLanguageHandler: ServerFunction<SwitchLanguageArgs, Promise<void>>;
12
- export {};
13
- //# sourceMappingURL=switchLanguageHandler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"switchLanguageHandler.d.ts","sourceRoot":"","sources":["../../src/utilities/switchLanguageHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,CAUnF,CAAA"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Server-function dispatched from {@link TranslationProvider} when the user switches
3
- * the admin language. Writes the language cookie via the request's `ServerAdapter`,
4
- * which avoids closing over framework-specific bindings in a client-callable server
5
- * action (see `slugifyHandler` JSDoc for the broader pattern).
6
- */export const switchLanguageHandler = async ({
7
- lang,
8
- req
9
- }) => {
10
- const cookieName = `${req.payload.config.cookiePrefix || 'payload'}-lng`;
11
- await req.server.setCookie(cookieName, lang, {
12
- maxAge: 60 * 60 * 24 * 365,
13
- path: '/'
14
- });
15
- };
16
- //# sourceMappingURL=switchLanguageHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"switchLanguageHandler.js","names":["switchLanguageHandler","lang","req","cookieName","payload","config","cookiePrefix","server","setCookie","maxAge","path"],"sources":["../../src/utilities/switchLanguageHandler.ts"],"sourcesContent":["import type { ServerFunction } from 'payload'\n\ntype SwitchLanguageArgs = {\n lang: string\n}\n\n/**\n * Server-function dispatched from {@link TranslationProvider} when the user switches\n * the admin language. Writes the language cookie via the request's `ServerAdapter`,\n * which avoids closing over framework-specific bindings in a client-callable server\n * action (see `slugifyHandler` JSDoc for the broader pattern).\n */\nexport const switchLanguageHandler: ServerFunction<SwitchLanguageArgs, Promise<void>> = async ({\n lang,\n req,\n}) => {\n const cookieName = `${req.payload.config.cookiePrefix || 'payload'}-lng`\n\n await req.server.setCookie(cookieName, lang, {\n maxAge: 60 * 60 * 24 * 365,\n path: '/',\n })\n}\n"],"mappings":"AAMA;;;;;GAMA,OAAO,MAAMA,qBAAA,GAA2E,MAAAA,CAAO;EAC7FC,IAAI;EACJC;AAAG,CACJ;EACC,MAAMC,UAAA,GAAa,GAAGD,GAAA,CAAIE,OAAO,CAACC,MAAM,CAACC,YAAY,IAAI,eAAe;EAExE,MAAMJ,GAAA,CAAIK,MAAM,CAACC,SAAS,CAACL,UAAA,EAAYF,IAAA,EAAM;IAC3CQ,MAAA,EAAQ,KAAK,KAAK,KAAK;IACvBC,IAAA,EAAM;EACR;AACF","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export declare const timestamp: (label: string) => void;
2
- //# sourceMappingURL=timestamp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../src/utilities/timestamp.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,SAMtC,CAAA"}
@@ -1,8 +0,0 @@
1
- export const timestamp = label => {
2
- if (!process.env.PAYLOAD_TIME) {
3
- process.env.PAYLOAD_TIME = String(new Date().getTime());
4
- }
5
- const now = new Date();
6
- console.log(`[${now.getTime() - Number(process.env.PAYLOAD_TIME)}ms] ${label}`);
7
- };
8
- //# sourceMappingURL=timestamp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timestamp.js","names":["timestamp","label","process","env","PAYLOAD_TIME","String","Date","getTime","now","console","log","Number"],"sources":["../../src/utilities/timestamp.ts"],"sourcesContent":["export const timestamp = (label: string) => {\n if (!process.env.PAYLOAD_TIME) {\n process.env.PAYLOAD_TIME = String(new Date().getTime())\n }\n const now = new Date()\n console.log(`[${now.getTime() - Number(process.env.PAYLOAD_TIME)}ms] ${label}`)\n}\n"],"mappings":"AAAA,OAAO,MAAMA,SAAA,GAAaC,KAAA;EACxB,IAAI,CAACC,OAAA,CAAQC,GAAG,CAACC,YAAY,EAAE;IAC7BF,OAAA,CAAQC,GAAG,CAACC,YAAY,GAAGC,MAAA,CAAO,IAAIC,IAAA,GAAOC,OAAO;EACtD;EACA,MAAMC,GAAA,GAAM,IAAIF,IAAA;EAChBG,OAAA,CAAQC,GAAG,CAAC,IAAIF,GAAA,CAAID,OAAO,KAAKI,MAAA,CAAOT,OAAA,CAAQC,GAAG,CAACC,YAAY,QAAQH,KAAA,EAAO;AAChF","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export declare const LocaleSelector: React.FC<{
3
- readonly localeOptions: {
4
- label: Record<string, string> | string;
5
- value: string;
6
- }[];
7
- readonly onChange: (value: string) => void;
8
- }>;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/API/LocaleSelector/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE;QACtB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;QACtC,KAAK,EAAE,MAAM,CAAA;KACd,EAAE,CAAA;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C,CAcA,CAAA"}
@@ -1,44 +0,0 @@
1
- 'use client';
2
-
3
- import { c as _c } from "react/compiler-runtime";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { SelectField, useTranslation } from '@payloadcms/ui';
6
- import React from 'react';
7
- export const LocaleSelector = t0 => {
8
- const $ = _c(6);
9
- const {
10
- localeOptions,
11
- onChange
12
- } = t0;
13
- const {
14
- t
15
- } = useTranslation();
16
- let t1;
17
- if ($[0] !== localeOptions || $[1] !== onChange || $[2] !== t) {
18
- let t2;
19
- if ($[4] !== onChange) {
20
- t2 = value => onChange(value);
21
- $[4] = onChange;
22
- $[5] = t2;
23
- } else {
24
- t2 = $[5];
25
- }
26
- t1 = _jsx(SelectField, {
27
- field: {
28
- name: "locale",
29
- label: t("general:locale"),
30
- options: localeOptions
31
- },
32
- onChange: t2,
33
- path: "locale"
34
- });
35
- $[0] = localeOptions;
36
- $[1] = onChange;
37
- $[2] = t;
38
- $[3] = t1;
39
- } else {
40
- t1 = $[3];
41
- }
42
- return t1;
43
- };
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["c","_c","SelectField","useTranslation","React","LocaleSelector","t0","$","localeOptions","onChange","t","t1","t2","value","_jsx","field","name","label","options","path"],"sources":["../../../../src/views/API/LocaleSelector/index.tsx"],"sourcesContent":["'use client'\nimport { SelectField, useTranslation } from '@payloadcms/ui'\nimport React from 'react'\n\nexport const LocaleSelector: React.FC<{\n readonly localeOptions: {\n label: Record<string, string> | string\n value: string\n }[]\n readonly onChange: (value: string) => void\n}> = ({ localeOptions, onChange }) => {\n const { t } = useTranslation()\n\n return (\n <SelectField\n field={{\n name: 'locale',\n label: t('general:locale'),\n options: localeOptions,\n }}\n onChange={(value: string) => onChange(value)}\n path=\"locale\"\n />\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AACA,SAASC,WAAW,EAAEC,cAAc,QAAQ;AAC5C,OAAOC,KAAA,MAAW;AAElB,OAAO,MAAMC,cAAA,GAMRC,EAAA;EAAA,MAAAC,CAAA,GAAAN,EAAA;EAAC;IAAAO,aAAA;IAAAC;EAAA,IAAAH,EAA2B;EAC/B;IAAAI;EAAA,IAAcP,cAAA;EAAA,IAAAQ,EAAA;EAAA,IAAAJ,CAAA,QAAAC,aAAA,IAAAD,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,CAAA;IAAA,IAAAE,EAAA;IAAA,IAAAL,CAAA,QAAAE,QAAA;MASAG,EAAA,GAAAC,KAAA,IAAmBJ,QAAA,CAASI,KAAA;MAAAN,CAAA,MAAAE,QAAA;MAAAF,CAAA,MAAAK,EAAA;IAAA;MAAAA,EAAA,GAAAL,CAAA;IAAA;IANxCI,EAAA,GAAAG,IAAA,CAAAZ,WAAA;MAAAa,KAAA;QAAAC,IAAA,EAEU;QAAAC,KAAA,EACCP,CAAA,CAAE;QAAAQ,OAAA,EACAV;MAAA;MAAAC,QAAA,EAEDG,EAA4B;MAAAO,IAAA,EACjC;IAAA,C;;;;;;;;SAPPR,E;CAUJ","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- import './index.css';
2
- import * as React from 'react';
3
- export declare const APIViewClient: React.FC;
4
- //# sourceMappingURL=index.client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../../src/views/API/index.client.tsx"],"names":[],"mappings":"AAoBA,OAAO,aAAa,CAAA;AAGpB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAkPjC,CAAA"}
@@ -1,249 +0,0 @@
1
- 'use client';
2
-
3
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
- import { Button, CheckboxField, CodeEditorLazy, ExternalLinkIcon, Form, MinimizeMaximizeIcon, NumberField, SetDocumentStepNav, TextInput, toast, useConfig, useDocumentInfo, useLocale, useTranslation } from '@payloadcms/ui';
5
- import { useSearchParams } from 'next/navigation.js';
6
- import { formatAdminURL, hasDraftsEnabled } from 'payload/shared';
7
- import * as React from 'react';
8
- import { LocaleSelector } from './LocaleSelector/index.js';
9
- const baseClass = 'query-inspector';
10
- export const APIViewClient = () => {
11
- const {
12
- id,
13
- collectionSlug,
14
- globalSlug,
15
- initialData,
16
- isTrashed
17
- } = useDocumentInfo();
18
- const searchParams = useSearchParams();
19
- const {
20
- i18n,
21
- t
22
- } = useTranslation();
23
- const {
24
- code
25
- } = useLocale();
26
- const {
27
- config: {
28
- defaultDepth,
29
- localization,
30
- routes: {
31
- api: apiRoute
32
- },
33
- serverURL
34
- },
35
- getEntityConfig
36
- } = useConfig();
37
- const collectionConfig = getEntityConfig({
38
- collectionSlug
39
- });
40
- const globalConfig = getEntityConfig({
41
- globalSlug
42
- });
43
- const localeOptions = localization && localization.locales.map(locale => ({
44
- label: locale.label,
45
- value: locale.code
46
- }));
47
- let draftsEnabled = false;
48
- let docEndpoint = undefined;
49
- if (collectionConfig) {
50
- draftsEnabled = hasDraftsEnabled(collectionConfig);
51
- docEndpoint = `/${collectionSlug}/${id}`;
52
- }
53
- if (globalConfig) {
54
- draftsEnabled = hasDraftsEnabled(globalConfig);
55
- docEndpoint = `/globals/${globalSlug}`;
56
- }
57
- const [data, setData] = React.useState(initialData);
58
- const [draft, setDraft] = React.useState(searchParams.get('draft') === 'true');
59
- const [locale_0, setLocale] = React.useState(searchParams?.get('locale') || code);
60
- const [depth, setDepth] = React.useState(searchParams.get('depth') || defaultDepth.toString());
61
- const [authenticated, setAuthenticated] = React.useState(true);
62
- const [fullscreen, setFullscreen] = React.useState(false);
63
- const [origin, setOrigin] = React.useState(serverURL || '');
64
- const jsonString = React.useMemo(() => data === undefined ? '' : JSON.stringify(data, null, 2), [data]);
65
- // readOnly editors never fire onChange, so bump a counter to re-fit height on data change
66
- const [recalculatedHeightAt, setRecalculatedHeightAt] = React.useState(0);
67
- React.useEffect(() => {
68
- setRecalculatedHeightAt(count => count + 1);
69
- }, [jsonString]);
70
- // Set the origin to the window.location.origin in useEffect to avoid hydration errors
71
- React.useEffect(() => {
72
- if (!serverURL) {
73
- setOrigin(window.location.origin);
74
- }
75
- }, [serverURL]);
76
- const trashParam = typeof initialData?.deletedAt === 'string';
77
- const params = new URLSearchParams({
78
- depth,
79
- draft: String(draft),
80
- locale: locale_0,
81
- trash: trashParam ? 'true' : 'false'
82
- }).toString();
83
- const fetchURL = formatAdminURL({
84
- apiRoute,
85
- path: `${docEndpoint}?${params}`,
86
- serverURL: origin
87
- });
88
- React.useEffect(() => {
89
- const fetchData = async () => {
90
- try {
91
- const res = await fetch(fetchURL, {
92
- credentials: authenticated ? 'include' : 'omit',
93
- headers: {
94
- 'Accept-Language': i18n.language
95
- },
96
- method: 'GET'
97
- });
98
- try {
99
- const json = await res.json();
100
- setData(json);
101
- } catch (error_0) {
102
- toast.error('Error parsing response');
103
- console.error(error_0); // eslint-disable-line no-console
104
- }
105
- } catch (error) {
106
- toast.error('Error making request');
107
- console.error(error); // eslint-disable-line no-console
108
- }
109
- };
110
- void fetchData();
111
- }, [i18n.language, fetchURL, authenticated]);
112
- return /*#__PURE__*/_jsxs("div", {
113
- className: [baseClass, fullscreen && `${baseClass}--fullscreen`].filter(Boolean).join(' '),
114
- children: [/*#__PURE__*/_jsx(SetDocumentStepNav, {
115
- collectionSlug: collectionSlug,
116
- globalLabel: globalConfig?.label,
117
- globalSlug: globalSlug,
118
- id: id,
119
- isTrashed: isTrashed,
120
- pluralLabel: collectionConfig ? collectionConfig?.labels?.plural : undefined,
121
- useAsTitle: collectionConfig ? collectionConfig?.admin?.useAsTitle : undefined,
122
- view: "API"
123
- }), /*#__PURE__*/_jsxs("div", {
124
- className: `${baseClass}__content`,
125
- children: [/*#__PURE__*/_jsx("div", {
126
- className: `${baseClass}__configuration`,
127
- children: /*#__PURE__*/_jsx(Form, {
128
- initialState: {
129
- authenticated: {
130
- initialValue: authenticated || false,
131
- valid: true,
132
- value: authenticated || false
133
- },
134
- depth: {
135
- initialValue: Number(depth || 0),
136
- valid: true,
137
- value: Number(depth || 0)
138
- },
139
- draft: {
140
- initialValue: draft || false,
141
- valid: true,
142
- value: draft || false
143
- },
144
- locale: {
145
- initialValue: locale_0,
146
- valid: true,
147
- value: locale_0
148
- }
149
- },
150
- children: /*#__PURE__*/_jsxs("div", {
151
- className: `${baseClass}__form-fields`,
152
- children: [localeOptions && /*#__PURE__*/_jsx(LocaleSelector, {
153
- localeOptions: localeOptions,
154
- onChange: setLocale
155
- }), /*#__PURE__*/_jsx(NumberField, {
156
- field: {
157
- name: 'depth',
158
- admin: {
159
- step: 1
160
- },
161
- label: t('general:depth'),
162
- max: 10,
163
- min: 0
164
- },
165
- onChange: value => setDepth(value?.toString()),
166
- path: "depth"
167
- }), draftsEnabled && /*#__PURE__*/_jsx(CheckboxField, {
168
- field: {
169
- name: 'draft',
170
- label: t('version:draft')
171
- },
172
- onChange: () => setDraft(!draft),
173
- path: "draft"
174
- }), /*#__PURE__*/_jsx(CheckboxField, {
175
- field: {
176
- name: 'authenticated',
177
- label: t('authentication:authenticated')
178
- },
179
- onChange: () => setAuthenticated(!authenticated),
180
- path: "authenticated"
181
- })]
182
- })
183
- })
184
- }), /*#__PURE__*/_jsxs("div", {
185
- className: `${baseClass}__results-wrapper`,
186
- children: [/*#__PURE__*/_jsxs("div", {
187
- className: `${baseClass}__results-bar`,
188
- children: [/*#__PURE__*/_jsx("div", {
189
- className: `${baseClass}__api-url-field`,
190
- children: /*#__PURE__*/_jsx(TextInput, {
191
- className: `${baseClass}__api-url-input`,
192
- htmlAttributes: {
193
- 'aria-label': 'API URL',
194
- readOnly: true
195
- },
196
- path: "api-url",
197
- readOnly: false,
198
- value: fetchURL
199
- })
200
- }), /*#__PURE__*/_jsxs("div", {
201
- className: `${baseClass}__results-bar-actions`,
202
- children: [/*#__PURE__*/_jsx(Button, {
203
- "aria-label": t('general:openInNewWindow'),
204
- buttonStyle: "secondary",
205
- className: `${baseClass}__api-url-open-button`,
206
- el: "anchor",
207
- icon: /*#__PURE__*/_jsx(ExternalLinkIcon, {
208
- size: 16
209
- }),
210
- margin: false,
211
- newTab: true,
212
- size: "large",
213
- url: fetchURL
214
- }), /*#__PURE__*/_jsx(Button, {
215
- "aria-label": "toggle fullscreen",
216
- buttonStyle: "secondary",
217
- className: `${baseClass}__toggle-fullscreen-button`,
218
- icon: /*#__PURE__*/_jsx(MinimizeMaximizeIcon, {
219
- isMinimized: !fullscreen
220
- }),
221
- margin: false,
222
- onClick: () => setFullscreen(!fullscreen),
223
- size: "large"
224
- })]
225
- })]
226
- }), /*#__PURE__*/_jsx("div", {
227
- className: `${baseClass}__results`,
228
- children: /*#__PURE__*/_jsx(CodeEditorLazy, {
229
- defaultLanguage: "json",
230
- height: "100%",
231
- options: {
232
- fixedOverflowWidgets: true,
233
- folding: true,
234
- lineNumbers: 'on',
235
- stickyScroll: {
236
- enabled: false
237
- },
238
- wordWrap: 'off'
239
- },
240
- readOnly: true,
241
- recalculatedHeightAt: recalculatedHeightAt,
242
- value: jsonString
243
- })
244
- })]
245
- })]
246
- })]
247
- });
248
- };
249
- //# sourceMappingURL=index.client.js.map