@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.
- package/LICENSE.md +1 -1
- package/dist/adapters/handleServerFunctions.d.ts +2 -0
- package/dist/adapters/handleServerFunctions.d.ts.map +1 -0
- package/dist/adapters/handleServerFunctions.js +15 -0
- package/dist/adapters/handleServerFunctions.js.map +1 -0
- package/dist/adapters/layout.d.ts +1 -1
- package/dist/adapters/layout.d.ts.map +1 -1
- package/dist/adapters/layout.js.map +1 -1
- package/dist/adapters/metadata.d.ts.map +1 -0
- package/dist/adapters/metadata.js +21 -0
- package/dist/adapters/metadata.js.map +1 -0
- package/dist/adapters/router.d.ts.map +1 -1
- package/dist/adapters/router.js +2 -1
- package/dist/adapters/router.js.map +1 -1
- package/dist/adapters/viewport.d.ts +4 -0
- package/dist/adapters/viewport.d.ts.map +1 -0
- package/dist/adapters/viewport.js +14 -0
- package/dist/adapters/viewport.js.map +1 -0
- package/dist/adapters/views.d.ts +16 -0
- package/dist/adapters/views.d.ts.map +1 -0
- package/dist/adapters/views.js +23 -0
- package/dist/adapters/views.js.map +1 -0
- package/dist/auth/login.d.ts +3 -18
- package/dist/auth/login.d.ts.map +1 -1
- package/dist/auth/login.js +6 -62
- package/dist/auth/login.js.map +1 -1
- package/dist/auth/logout.d.ts +2 -5
- package/dist/auth/logout.d.ts.map +1 -1
- package/dist/auth/logout.js +6 -47
- package/dist/auth/logout.js.map +1 -1
- package/dist/auth/refresh.d.ts +2 -4
- package/dist/auth/refresh.d.ts.map +1 -1
- package/dist/auth/refresh.js +6 -51
- package/dist/auth/refresh.js.map +1 -1
- package/dist/cjs/withPayload.cjs +8 -10
- package/dist/cjs/withPayload.cjs.map +3 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/exports/css.d.ts +3 -0
- package/dist/exports/css.d.ts.map +1 -0
- package/dist/exports/css.js +3 -0
- package/dist/exports/css.js.map +1 -0
- package/dist/exports/layouts.d.ts +2 -1
- package/dist/exports/layouts.d.ts.map +1 -1
- package/dist/exports/layouts.js +2 -1
- package/dist/exports/layouts.js.map +1 -1
- package/dist/exports/utilities.d.ts +0 -3
- package/dist/exports/utilities.d.ts.map +1 -1
- package/dist/exports/utilities.js +0 -2
- package/dist/exports/utilities.js.map +1 -1
- package/dist/exports/views.d.ts +2 -9
- package/dist/exports/views.d.ts.map +1 -1
- package/dist/exports/views.js +2 -9
- package/dist/exports/views.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/prod/styles.css +1 -1
- package/dist/routes/graphql/handler.d.ts.map +1 -1
- package/dist/routes/graphql/handler.js +8 -3
- package/dist/routes/graphql/handler.js.map +1 -1
- package/dist/routes/graphql/playground.d.ts.map +1 -1
- package/dist/routes/rest/index.d.ts +8 -26
- package/dist/routes/rest/index.d.ts.map +1 -1
- package/dist/utilities/getNextRequestI18n.d.ts.map +1 -1
- package/dist/withPayload/withPayload.d.ts +13 -2
- package/dist/withPayload/withPayload.d.ts.map +1 -1
- package/dist/withPayload/withPayload.js +8 -10
- package/dist/withPayload/withPayload.js.map +1 -1
- package/dist/withPayload/withPayload.spec.js +16 -0
- package/dist/withPayload/withPayload.spec.js.map +1 -1
- package/dist/withPayload/withPayload.utils.d.ts +34 -12
- package/dist/withPayload/withPayload.utils.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/utilities/getExistingAuthToken.d.ts +0 -7
- package/dist/utilities/getExistingAuthToken.d.ts.map +0 -1
- package/dist/utilities/getExistingAuthToken.js +0 -6
- package/dist/utilities/getExistingAuthToken.js.map +0 -1
- package/dist/utilities/getHierarchyAncestry.d.ts +0 -24
- package/dist/utilities/getHierarchyAncestry.d.ts.map +0 -1
- package/dist/utilities/getHierarchyAncestry.js +0 -103
- package/dist/utilities/getHierarchyAncestry.js.map +0 -1
- package/dist/utilities/getPayloadHMR.d.ts +0 -11
- package/dist/utilities/getPayloadHMR.d.ts.map +0 -1
- package/dist/utilities/getPayloadHMR.js +0 -15
- package/dist/utilities/getPayloadHMR.js.map +0 -1
- package/dist/utilities/getRouteWithoutAdmin.d.ts +0 -5
- package/dist/utilities/getRouteWithoutAdmin.d.ts.map +0 -1
- package/dist/utilities/getRouteWithoutAdmin.js +0 -7
- package/dist/utilities/getRouteWithoutAdmin.js.map +0 -1
- package/dist/utilities/handleAuthRedirect.d.ts +0 -12
- package/dist/utilities/handleAuthRedirect.d.ts.map +0 -1
- package/dist/utilities/handleAuthRedirect.js +0 -41
- package/dist/utilities/handleAuthRedirect.js.map +0 -1
- package/dist/utilities/handleServerFunctions.d.ts +0 -3
- package/dist/utilities/handleServerFunctions.d.ts.map +0 -1
- package/dist/utilities/handleServerFunctions.js +0 -62
- package/dist/utilities/handleServerFunctions.js.map +0 -1
- package/dist/utilities/isCustomAdminView.d.ts +0 -10
- package/dist/utilities/isCustomAdminView.d.ts.map +0 -1
- package/dist/utilities/isCustomAdminView.js +0 -31
- package/dist/utilities/isCustomAdminView.js.map +0 -1
- package/dist/utilities/isCustomAdminView.spec.js +0 -90
- package/dist/utilities/isCustomAdminView.spec.js.map +0 -1
- package/dist/utilities/isPublicAdminRoute.d.ts +0 -7
- package/dist/utilities/isPublicAdminRoute.d.ts.map +0 -1
- package/dist/utilities/isPublicAdminRoute.js +0 -25
- package/dist/utilities/isPublicAdminRoute.js.map +0 -1
- package/dist/utilities/meta.d.ts +0 -6
- package/dist/utilities/meta.d.ts.map +0 -1
- package/dist/utilities/meta.js +0 -105
- package/dist/utilities/meta.js.map +0 -1
- package/dist/utilities/meta.spec.js +0 -83
- package/dist/utilities/meta.spec.js.map +0 -1
- package/dist/utilities/setPayloadAuthCookie.d.ts +0 -9
- package/dist/utilities/setPayloadAuthCookie.d.ts.map +0 -1
- package/dist/utilities/setPayloadAuthCookie.js +0 -27
- package/dist/utilities/setPayloadAuthCookie.js.map +0 -1
- package/dist/utilities/slugify.d.ts +0 -15
- package/dist/utilities/slugify.d.ts.map +0 -1
- package/dist/utilities/slugify.js +0 -47
- package/dist/utilities/slugify.js.map +0 -1
- package/dist/utilities/switchLanguageHandler.d.ts +0 -13
- package/dist/utilities/switchLanguageHandler.d.ts.map +0 -1
- package/dist/utilities/switchLanguageHandler.js +0 -16
- package/dist/utilities/switchLanguageHandler.js.map +0 -1
- package/dist/utilities/timestamp.d.ts +0 -2
- package/dist/utilities/timestamp.d.ts.map +0 -1
- package/dist/utilities/timestamp.js +0 -8
- package/dist/utilities/timestamp.js.map +0 -1
- package/dist/views/API/LocaleSelector/index.d.ts +0 -9
- package/dist/views/API/LocaleSelector/index.d.ts.map +0 -1
- package/dist/views/API/LocaleSelector/index.js +0 -44
- package/dist/views/API/LocaleSelector/index.js.map +0 -1
- package/dist/views/API/index.client.d.ts +0 -4
- package/dist/views/API/index.client.d.ts.map +0 -1
- package/dist/views/API/index.client.js +0 -249
- package/dist/views/API/index.client.js.map +0 -1
- package/dist/views/API/index.css +0 -205
- package/dist/views/API/index.d.ts +0 -4
- package/dist/views/API/index.d.ts.map +0 -1
- package/dist/views/API/index.js +0 -7
- package/dist/views/API/index.js.map +0 -1
- package/dist/views/API/metadata.d.ts +0 -6
- package/dist/views/API/metadata.d.ts.map +0 -1
- package/dist/views/API/metadata.js +0 -29
- package/dist/views/API/metadata.js.map +0 -1
- package/dist/views/Account/ResetPreferences/index.d.ts +0 -5
- package/dist/views/Account/ResetPreferences/index.d.ts.map +0 -1
- package/dist/views/Account/ResetPreferences/index.js +0 -110
- package/dist/views/Account/ResetPreferences/index.js.map +0 -1
- package/dist/views/Account/Settings/LanguageSelector.d.ts +0 -6
- package/dist/views/Account/Settings/LanguageSelector.d.ts.map +0 -1
- package/dist/views/Account/Settings/LanguageSelector.js +0 -52
- package/dist/views/Account/Settings/LanguageSelector.js.map +0 -1
- package/dist/views/Account/Settings/index.css +0 -26
- package/dist/views/Account/Settings/index.d.ts +0 -13
- package/dist/views/Account/Settings/index.d.ts.map +0 -1
- package/dist/views/Account/Settings/index.js +0 -34
- package/dist/views/Account/Settings/index.js.map +0 -1
- package/dist/views/Account/ToggleHighContrast/index.d.ts +0 -3
- package/dist/views/Account/ToggleHighContrast/index.d.ts.map +0 -1
- package/dist/views/Account/ToggleHighContrast/index.js +0 -45
- package/dist/views/Account/ToggleHighContrast/index.js.map +0 -1
- package/dist/views/Account/ToggleTheme/index.d.ts +0 -3
- package/dist/views/Account/ToggleTheme/index.d.ts.map +0 -1
- package/dist/views/Account/ToggleTheme/index.js +0 -60
- package/dist/views/Account/ToggleTheme/index.js.map +0 -1
- package/dist/views/Account/index.client.d.ts +0 -3
- package/dist/views/Account/index.client.d.ts.map +0 -1
- package/dist/views/Account/index.client.js +0 -37
- package/dist/views/Account/index.client.js.map +0 -1
- package/dist/views/Account/index.d.ts +0 -4
- package/dist/views/Account/index.d.ts.map +0 -1
- package/dist/views/Account/index.js +0 -183
- package/dist/views/Account/index.js.map +0 -1
- package/dist/views/Account/metadata.d.ts +0 -3
- package/dist/views/Account/metadata.d.ts.map +0 -1
- package/dist/views/Account/metadata.js +0 -14
- package/dist/views/Account/metadata.js.map +0 -1
- package/dist/views/CollectionTrash/index.d.ts +0 -18
- package/dist/views/CollectionTrash/index.d.ts.map +0 -1
- package/dist/views/CollectionTrash/index.js +0 -21
- package/dist/views/CollectionTrash/index.js.map +0 -1
- package/dist/views/CollectionTrash/metadata.d.ts +0 -7
- package/dist/views/CollectionTrash/metadata.d.ts.map +0 -1
- package/dist/views/CollectionTrash/metadata.js +0 -25
- package/dist/views/CollectionTrash/metadata.js.map +0 -1
- package/dist/views/CreateFirstUser/index.client.d.ts +0 -10
- package/dist/views/CreateFirstUser/index.client.d.ts.map +0 -1
- package/dist/views/CreateFirstUser/index.client.js +0 -119
- package/dist/views/CreateFirstUser/index.client.js.map +0 -1
- package/dist/views/CreateFirstUser/index.css +0 -69
- package/dist/views/CreateFirstUser/index.d.ts +0 -5
- package/dist/views/CreateFirstUser/index.d.ts.map +0 -1
- package/dist/views/CreateFirstUser/index.js +0 -92
- package/dist/views/CreateFirstUser/index.js.map +0 -1
- package/dist/views/CreateFirstUser/metadata.d.ts +0 -3
- package/dist/views/CreateFirstUser/metadata.d.ts.map +0 -1
- package/dist/views/CreateFirstUser/metadata.js +0 -14
- package/dist/views/CreateFirstUser/metadata.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts +0 -19
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +0 -209
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts +0 -11
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js +0 -131
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts +0 -8
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js +0 -78
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts +0 -22
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +0 -440
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.css +0 -299
- package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts +0 -5
- package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.js +0 -72
- package/dist/views/Dashboard/Default/ModularDashboard/index.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts +0 -15
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js +0 -106
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts +0 -12
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js +0 -65
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts +0 -21
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +0 -80
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts +0 -21
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js +0 -188
- package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts +0 -7
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js +0 -38
- package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts +0 -4
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js +0 -21
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts +0 -4
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js +0 -10
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts +0 -23
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js +0 -103
- package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts +0 -2
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js +0 -269
- package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js.map +0 -1
- package/dist/views/Dashboard/Default/index.d.ts +0 -21
- package/dist/views/Dashboard/Default/index.d.ts.map +0 -1
- package/dist/views/Dashboard/Default/index.js +0 -55
- package/dist/views/Dashboard/Default/index.js.map +0 -1
- package/dist/views/Dashboard/index.d.ts +0 -4
- package/dist/views/Dashboard/index.d.ts.map +0 -1
- package/dist/views/Dashboard/index.js +0 -51
- package/dist/views/Dashboard/index.js.map +0 -1
- package/dist/views/Dashboard/metadata.d.ts +0 -3
- package/dist/views/Dashboard/metadata.d.ts.map +0 -1
- package/dist/views/Dashboard/metadata.js +0 -16
- package/dist/views/Dashboard/metadata.js.map +0 -1
- package/dist/views/Document/getCustomDocumentViewByKey.d.ts +0 -3
- package/dist/views/Document/getCustomDocumentViewByKey.d.ts.map +0 -1
- package/dist/views/Document/getCustomDocumentViewByKey.js +0 -4
- package/dist/views/Document/getCustomDocumentViewByKey.js.map +0 -1
- package/dist/views/Document/getCustomViewByRoute.d.ts +0 -10
- package/dist/views/Document/getCustomViewByRoute.d.ts.map +0 -1
- package/dist/views/Document/getCustomViewByRoute.js +0 -35
- package/dist/views/Document/getCustomViewByRoute.js.map +0 -1
- package/dist/views/Document/getDocPreferences.d.ts +0 -11
- package/dist/views/Document/getDocPreferences.d.ts.map +0 -1
- package/dist/views/Document/getDocPreferences.js +0 -45
- package/dist/views/Document/getDocPreferences.js.map +0 -1
- package/dist/views/Document/getDocumentData.d.ts +0 -14
- package/dist/views/Document/getDocumentData.d.ts.map +0 -1
- package/dist/views/Document/getDocumentData.js +0 -60
- package/dist/views/Document/getDocumentData.js.map +0 -1
- package/dist/views/Document/getDocumentPermissions.d.ts +0 -18
- package/dist/views/Document/getDocumentPermissions.d.ts.map +0 -1
- package/dist/views/Document/getDocumentPermissions.js +0 -124
- package/dist/views/Document/getDocumentPermissions.js.map +0 -1
- package/dist/views/Document/getDocumentView.d.ts +0 -18
- package/dist/views/Document/getDocumentView.d.ts.map +0 -1
- package/dist/views/Document/getDocumentView.js +0 -304
- package/dist/views/Document/getDocumentView.js.map +0 -1
- package/dist/views/Document/getIsLocked.d.ts +0 -16
- package/dist/views/Document/getIsLocked.d.ts.map +0 -1
- package/dist/views/Document/getIsLocked.js +0 -79
- package/dist/views/Document/getIsLocked.js.map +0 -1
- package/dist/views/Document/getMetaBySegment.d.ts +0 -11
- package/dist/views/Document/getMetaBySegment.d.ts.map +0 -1
- package/dist/views/Document/getMetaBySegment.js +0 -150
- package/dist/views/Document/getMetaBySegment.js.map +0 -1
- package/dist/views/Document/getVersions.d.ts +0 -26
- package/dist/views/Document/getVersions.d.ts.map +0 -1
- package/dist/views/Document/getVersions.js +0 -230
- package/dist/views/Document/getVersions.js.map +0 -1
- package/dist/views/Document/handleServerFunction.d.ts +0 -3
- package/dist/views/Document/handleServerFunction.d.ts.map +0 -1
- package/dist/views/Document/handleServerFunction.js +0 -134
- package/dist/views/Document/handleServerFunction.js.map +0 -1
- package/dist/views/Document/index.d.ts +0 -25
- package/dist/views/Document/index.d.ts.map +0 -1
- package/dist/views/Document/index.js +0 -397
- package/dist/views/Document/index.js.map +0 -1
- package/dist/views/Document/metadata.d.ts +0 -3
- package/dist/views/Document/metadata.d.ts.map +0 -1
- package/dist/views/Document/metadata.js +0 -3
- package/dist/views/Document/metadata.js.map +0 -1
- package/dist/views/Document/renderDocumentSlots.d.ts +0 -15
- package/dist/views/Document/renderDocumentSlots.d.ts.map +0 -1
- package/dist/views/Document/renderDocumentSlots.js +0 -178
- package/dist/views/Document/renderDocumentSlots.js.map +0 -1
- package/dist/views/Edit/index.d.ts +0 -4
- package/dist/views/Edit/index.d.ts.map +0 -1
- package/dist/views/Edit/index.js +0 -11
- package/dist/views/Edit/index.js.map +0 -1
- package/dist/views/Edit/metadata.d.ts +0 -6
- package/dist/views/Edit/metadata.d.ts.map +0 -1
- package/dist/views/Edit/metadata.js +0 -52
- package/dist/views/Edit/metadata.js.map +0 -1
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.css +0 -36
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts +0 -4
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +0 -1
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +0 -189
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +0 -1
- package/dist/views/ForgotPassword/index.css +0 -21
- package/dist/views/ForgotPassword/index.d.ts +0 -6
- package/dist/views/ForgotPassword/index.d.ts.map +0 -1
- package/dist/views/ForgotPassword/index.js +0 -75
- package/dist/views/ForgotPassword/index.js.map +0 -1
- package/dist/views/ForgotPassword/metadata.d.ts +0 -3
- package/dist/views/ForgotPassword/metadata.d.ts.map +0 -1
- package/dist/views/ForgotPassword/metadata.js +0 -14
- package/dist/views/ForgotPassword/metadata.js.map +0 -1
- package/dist/views/Hierarchy/index.d.ts +0 -18
- package/dist/views/Hierarchy/index.d.ts.map +0 -1
- package/dist/views/Hierarchy/index.js +0 -20
- package/dist/views/Hierarchy/index.js.map +0 -1
- package/dist/views/List/createSerializableValue.d.ts +0 -2
- package/dist/views/List/createSerializableValue.d.ts.map +0 -1
- package/dist/views/List/createSerializableValue.js +0 -14
- package/dist/views/List/createSerializableValue.js.map +0 -1
- package/dist/views/List/enrichDocsWithVersionStatus.d.ts +0 -14
- package/dist/views/List/enrichDocsWithVersionStatus.d.ts.map +0 -1
- package/dist/views/List/enrichDocsWithVersionStatus.js +0 -96
- package/dist/views/List/enrichDocsWithVersionStatus.js.map +0 -1
- package/dist/views/List/extractRelationshipDisplayValue.d.ts +0 -3
- package/dist/views/List/extractRelationshipDisplayValue.d.ts.map +0 -1
- package/dist/views/List/extractRelationshipDisplayValue.js +0 -17
- package/dist/views/List/extractRelationshipDisplayValue.js.map +0 -1
- package/dist/views/List/extractValueOrRelationshipID.d.ts +0 -2
- package/dist/views/List/extractValueOrRelationshipID.d.ts.map +0 -1
- package/dist/views/List/extractValueOrRelationshipID.js +0 -19
- package/dist/views/List/extractValueOrRelationshipID.js.map +0 -1
- package/dist/views/List/handleGroupBy.d.ts +0 -24
- package/dist/views/List/handleGroupBy.d.ts.map +0 -1
- package/dist/views/List/handleGroupBy.js +0 -168
- package/dist/views/List/handleGroupBy.js.map +0 -1
- package/dist/views/List/handleHierarchy.d.ts +0 -18
- package/dist/views/List/handleHierarchy.d.ts.map +0 -1
- package/dist/views/List/handleHierarchy.js +0 -259
- package/dist/views/List/handleHierarchy.js.map +0 -1
- package/dist/views/List/handleServerFunction.d.ts +0 -4
- package/dist/views/List/handleServerFunction.d.ts.map +0 -1
- package/dist/views/List/handleServerFunction.js +0 -131
- package/dist/views/List/handleServerFunction.js.map +0 -1
- package/dist/views/List/index.css +0 -3
- package/dist/views/List/index.d.ts +0 -43
- package/dist/views/List/index.d.ts.map +0 -1
- package/dist/views/List/index.js +0 -445
- package/dist/views/List/index.js.map +0 -1
- package/dist/views/List/metadata.d.ts +0 -7
- package/dist/views/List/metadata.d.ts.map +0 -1
- package/dist/views/List/metadata.js +0 -24
- package/dist/views/List/metadata.js.map +0 -1
- package/dist/views/List/renderListViewSlots.d.ts +0 -12
- package/dist/views/List/renderListViewSlots.d.ts.map +0 -1
- package/dist/views/List/renderListViewSlots.js +0 -81
- package/dist/views/List/renderListViewSlots.js.map +0 -1
- package/dist/views/List/resolveAllFilterOptions.d.ts +0 -8
- package/dist/views/List/resolveAllFilterOptions.d.ts.map +0 -1
- package/dist/views/List/resolveAllFilterOptions.js +0 -49
- package/dist/views/List/resolveAllFilterOptions.js.map +0 -1
- package/dist/views/List/transformColumnsToSelect.d.ts +0 -3
- package/dist/views/List/transformColumnsToSelect.d.ts.map +0 -1
- package/dist/views/List/transformColumnsToSelect.js +0 -11
- package/dist/views/List/transformColumnsToSelect.js.map +0 -1
- package/dist/views/Login/LoginField/index.d.ts +0 -9
- package/dist/views/Login/LoginField/index.d.ts.map +0 -1
- package/dist/views/Login/LoginField/index.js +0 -98
- package/dist/views/Login/LoginField/index.js.map +0 -1
- package/dist/views/Login/LoginForm/index.css +0 -48
- package/dist/views/Login/LoginForm/index.d.ts +0 -11
- package/dist/views/Login/LoginForm/index.d.ts.map +0 -1
- package/dist/views/Login/LoginForm/index.js +0 -184
- package/dist/views/Login/LoginForm/index.js.map +0 -1
- package/dist/views/Login/index.css +0 -8
- package/dist/views/Login/index.d.ts +0 -6
- package/dist/views/Login/index.d.ts.map +0 -1
- package/dist/views/Login/index.js +0 -98
- package/dist/views/Login/index.js.map +0 -1
- package/dist/views/Login/metadata.d.ts +0 -3
- package/dist/views/Login/metadata.d.ts.map +0 -1
- package/dist/views/Login/metadata.js +0 -14
- package/dist/views/Login/metadata.js.map +0 -1
- package/dist/views/Logout/LogoutClient.d.ts +0 -18
- package/dist/views/Logout/LogoutClient.d.ts.map +0 -1
- package/dist/views/Logout/LogoutClient.js +0 -140
- package/dist/views/Logout/LogoutClient.js.map +0 -1
- package/dist/views/Logout/index.d.ts +0 -8
- package/dist/views/Logout/index.d.ts.map +0 -1
- package/dist/views/Logout/index.js +0 -36
- package/dist/views/Logout/index.js.map +0 -1
- package/dist/views/Logout/metadata.d.ts +0 -3
- package/dist/views/Logout/metadata.d.ts.map +0 -1
- package/dist/views/Logout/metadata.js +0 -13
- package/dist/views/Logout/metadata.js.map +0 -1
- package/dist/views/NotFound/index.client.d.ts +0 -4
- package/dist/views/NotFound/index.client.d.ts.map +0 -1
- package/dist/views/NotFound/index.client.js +0 -71
- package/dist/views/NotFound/index.client.js.map +0 -1
- package/dist/views/NotFound/index.css +0 -47
- package/dist/views/NotFound/index.d.ts +0 -21
- package/dist/views/NotFound/index.d.ts.map +0 -1
- package/dist/views/NotFound/index.js +0 -88
- package/dist/views/NotFound/index.js.map +0 -1
- package/dist/views/NotFound/metadata.d.ts +0 -8
- package/dist/views/NotFound/metadata.d.ts.map +0 -1
- package/dist/views/NotFound/metadata.js +0 -11
- package/dist/views/NotFound/metadata.js.map +0 -1
- package/dist/views/ResetPassword/ResetPasswordForm/index.css +0 -36
- package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts +0 -8
- package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts.map +0 -1
- package/dist/views/ResetPassword/ResetPasswordForm/index.js +0 -124
- package/dist/views/ResetPassword/ResetPasswordForm/index.js.map +0 -1
- package/dist/views/ResetPassword/index.css +0 -27
- package/dist/views/ResetPassword/index.d.ts +0 -6
- package/dist/views/ResetPassword/index.d.ts.map +0 -1
- package/dist/views/ResetPassword/index.js +0 -84
- package/dist/views/ResetPassword/index.js.map +0 -1
- package/dist/views/ResetPassword/metadata.d.ts +0 -3
- package/dist/views/ResetPassword/metadata.d.ts.map +0 -1
- package/dist/views/ResetPassword/metadata.js +0 -14
- package/dist/views/ResetPassword/metadata.js.map +0 -1
- package/dist/views/Root/attachViewActions.d.ts +0 -10
- package/dist/views/Root/attachViewActions.d.ts.map +0 -1
- package/dist/views/Root/attachViewActions.js +0 -27
- package/dist/views/Root/attachViewActions.js.map +0 -1
- package/dist/views/Root/generateCustomViewMetadata.d.ts +0 -11
- package/dist/views/Root/generateCustomViewMetadata.d.ts.map +0 -1
- package/dist/views/Root/generateCustomViewMetadata.js +0 -25
- package/dist/views/Root/generateCustomViewMetadata.js.map +0 -1
- package/dist/views/Root/getCustomCollectionViewByRoute.d.ts +0 -12
- package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +0 -1
- package/dist/views/Root/getCustomCollectionViewByRoute.js +0 -48
- package/dist/views/Root/getCustomCollectionViewByRoute.js.map +0 -1
- package/dist/views/Root/getCustomCollectionViewByRoute.spec.js +0 -168
- package/dist/views/Root/getCustomCollectionViewByRoute.spec.js.map +0 -1
- package/dist/views/Root/getCustomGlobalViewByRoute.d.ts +0 -12
- package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +0 -1
- package/dist/views/Root/getCustomGlobalViewByRoute.js +0 -46
- package/dist/views/Root/getCustomGlobalViewByRoute.js.map +0 -1
- package/dist/views/Root/getCustomViewByKey.d.ts +0 -10
- package/dist/views/Root/getCustomViewByKey.d.ts.map +0 -1
- package/dist/views/Root/getCustomViewByKey.js +0 -16
- package/dist/views/Root/getCustomViewByKey.js.map +0 -1
- package/dist/views/Root/getCustomViewByRoute.d.ts +0 -11
- package/dist/views/Root/getCustomViewByRoute.d.ts.map +0 -1
- package/dist/views/Root/getCustomViewByRoute.js +0 -48
- package/dist/views/Root/getCustomViewByRoute.js.map +0 -1
- package/dist/views/Root/getDocumentViewInfo.d.ts +0 -6
- package/dist/views/Root/getDocumentViewInfo.d.ts.map +0 -1
- package/dist/views/Root/getDocumentViewInfo.js +0 -28
- package/dist/views/Root/getDocumentViewInfo.js.map +0 -1
- package/dist/views/Root/getRouteData.d.ts +0 -45
- package/dist/views/Root/getRouteData.d.ts.map +0 -1
- package/dist/views/Root/getRouteData.js +0 -349
- package/dist/views/Root/getRouteData.js.map +0 -1
- package/dist/views/Root/index.d.ts +0 -23
- package/dist/views/Root/index.d.ts.map +0 -1
- package/dist/views/Root/index.js +0 -298
- package/dist/views/Root/index.js.map +0 -1
- package/dist/views/Root/isPathMatchingRoute.d.ts +0 -8
- package/dist/views/Root/isPathMatchingRoute.d.ts.map +0 -1
- package/dist/views/Root/isPathMatchingRoute.js +0 -33
- package/dist/views/Root/isPathMatchingRoute.js.map +0 -1
- package/dist/views/Root/isPathMatchingRoute.spec.js +0 -178
- package/dist/views/Root/isPathMatchingRoute.spec.js.map +0 -1
- package/dist/views/Root/metadata.d.ts.map +0 -1
- package/dist/views/Root/metadata.js +0 -173
- package/dist/views/Root/metadata.js.map +0 -1
- package/dist/views/Unauthorized/index.css +0 -44
- package/dist/views/Unauthorized/index.d.ts +0 -6
- package/dist/views/Unauthorized/index.d.ts.map +0 -1
- package/dist/views/Unauthorized/index.js +0 -33
- package/dist/views/Unauthorized/index.js.map +0 -1
- package/dist/views/Unauthorized/metadata.d.ts +0 -3
- package/dist/views/Unauthorized/metadata.d.ts.map +0 -1
- package/dist/views/Unauthorized/metadata.js +0 -14
- package/dist/views/Unauthorized/metadata.js.map +0 -1
- package/dist/views/Verify/index.client.d.ts +0 -7
- package/dist/views/Verify/index.client.d.ts.map +0 -1
- package/dist/views/Verify/index.client.js +0 -50
- package/dist/views/Verify/index.client.js.map +0 -1
- package/dist/views/Verify/index.d.ts +0 -6
- package/dist/views/Verify/index.d.ts.map +0 -1
- package/dist/views/Verify/index.js +0 -72
- package/dist/views/Verify/index.js.map +0 -1
- package/dist/views/Verify/metadata.d.ts +0 -3
- package/dist/views/Verify/metadata.d.ts.map +0 -1
- package/dist/views/Verify/metadata.js +0 -14
- package/dist/views/Verify/metadata.js.map +0 -1
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts +0 -7
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts.map +0 -1
- package/dist/views/Version/Default/SelectedLocalesContext.js +0 -8
- package/dist/views/Version/Default/SelectedLocalesContext.js.map +0 -1
- package/dist/views/Version/Default/SetStepNav.d.ts +0 -11
- package/dist/views/Version/Default/SetStepNav.d.ts.map +0 -1
- package/dist/views/Version/Default/SetStepNav.js +0 -135
- package/dist/views/Version/Default/SetStepNav.js.map +0 -1
- package/dist/views/Version/Default/index.css +0 -227
- package/dist/views/Version/Default/index.d.ts +0 -5
- package/dist/views/Version/Default/index.d.ts.map +0 -1
- package/dist/views/Version/Default/index.js +0 -255
- package/dist/views/Version/Default/index.js.map +0 -1
- package/dist/views/Version/Default/types.d.ts +0 -23
- package/dist/views/Version/Default/types.d.ts.map +0 -1
- package/dist/views/Version/Default/types.js +0 -2
- package/dist/views/Version/Default/types.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.css +0 -64
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts +0 -27
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +0 -136
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts +0 -12
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +0 -80
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts +0 -31
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +0 -439
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.css +0 -97
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js +0 -91
- package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts +0 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +0 -61
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.css +0 -29
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js +0 -83
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.css +0 -5
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +0 -66
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.css +0 -40
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +0 -5
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -126
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts +0 -10
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js +0 -67
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.css +0 -213
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +0 -21
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -238
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts +0 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +0 -17
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.css +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +0 -94
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.css +0 -6
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -158
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.css +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +0 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +0 -109
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.css +0 -188
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts +0 -33
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js +0 -262
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +0 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +0 -36
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/index.css +0 -24
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts +0 -3
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/index.js +0 -13
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts +0 -25
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +0 -242
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js +0 -861
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts +0 -2
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js +0 -4
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js +0 -47
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +0 -19
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +0 -45
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +0 -135
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +0 -1
- package/dist/views/Version/Restore/index.css +0 -26
- package/dist/views/Version/Restore/index.d.ts +0 -16
- package/dist/views/Version/Restore/index.d.ts.map +0 -1
- package/dist/views/Version/Restore/index.js +0 -106
- package/dist/views/Version/Restore/index.js.map +0 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts +0 -3
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts.map +0 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js +0 -56
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js.map +0 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts +0 -33
- package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts.map +0 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js +0 -239
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js.map +0 -1
- package/dist/views/Version/SelectComparison/index.d.ts +0 -5
- package/dist/views/Version/SelectComparison/index.d.ts.map +0 -1
- package/dist/views/Version/SelectComparison/index.js +0 -57
- package/dist/views/Version/SelectComparison/index.js.map +0 -1
- package/dist/views/Version/SelectComparison/types.d.ts +0 -26
- package/dist/views/Version/SelectComparison/types.d.ts.map +0 -1
- package/dist/views/Version/SelectComparison/types.js +0 -2
- package/dist/views/Version/SelectComparison/types.js.map +0 -1
- package/dist/views/Version/SelectLocales/index.d.ts +0 -12
- package/dist/views/Version/SelectLocales/index.d.ts.map +0 -1
- package/dist/views/Version/SelectLocales/index.js +0 -39
- package/dist/views/Version/SelectLocales/index.js.map +0 -1
- package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts +0 -31
- package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts.map +0 -1
- package/dist/views/Version/VersionPillLabel/VersionPillLabel.js +0 -122
- package/dist/views/Version/VersionPillLabel/VersionPillLabel.js.map +0 -1
- package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts +0 -37
- package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts.map +0 -1
- package/dist/views/Version/VersionPillLabel/getVersionLabel.js +0 -43
- package/dist/views/Version/VersionPillLabel/getVersionLabel.js.map +0 -1
- package/dist/views/Version/VersionPillLabel/index.css +0 -31
- package/dist/views/Version/fetchVersions.d.ts +0 -42
- package/dist/views/Version/fetchVersions.d.ts.map +0 -1
- package/dist/views/Version/fetchVersions.js +0 -151
- package/dist/views/Version/fetchVersions.js.map +0 -1
- package/dist/views/Version/index.d.ts +0 -4
- package/dist/views/Version/index.d.ts.map +0 -1
- package/dist/views/Version/index.js +0 -352
- package/dist/views/Version/index.js.map +0 -1
- package/dist/views/Version/metadata.d.ts +0 -6
- package/dist/views/Version/metadata.d.ts.map +0 -1
- package/dist/views/Version/metadata.js +0 -58
- package/dist/views/Version/metadata.js.map +0 -1
- package/dist/views/Versions/buildColumns.d.ts +0 -16
- package/dist/views/Versions/buildColumns.d.ts.map +0 -1
- package/dist/views/Versions/buildColumns.js +0 -88
- package/dist/views/Versions/buildColumns.js.map +0 -1
- package/dist/views/Versions/cells/AutosaveCell/index.css +0 -7
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts +0 -21
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +0 -1
- package/dist/views/Versions/cells/AutosaveCell/index.js +0 -45
- package/dist/views/Versions/cells/AutosaveCell/index.js.map +0 -1
- package/dist/views/Versions/cells/CreatedAt/index.d.ts +0 -13
- package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +0 -1
- package/dist/views/Versions/cells/CreatedAt/index.js +0 -60
- package/dist/views/Versions/cells/CreatedAt/index.js.map +0 -1
- package/dist/views/Versions/cells/ID/index.d.ts +0 -5
- package/dist/views/Versions/cells/ID/index.d.ts.map +0 -1
- package/dist/views/Versions/cells/ID/index.js +0 -12
- package/dist/views/Versions/cells/ID/index.js.map +0 -1
- package/dist/views/Versions/index.client.d.ts +0 -9
- package/dist/views/Versions/index.client.d.ts.map +0 -1
- package/dist/views/Versions/index.client.js +0 -73
- package/dist/views/Versions/index.client.js.map +0 -1
- package/dist/views/Versions/index.css +0 -85
- package/dist/views/Versions/index.d.ts +0 -5
- package/dist/views/Versions/index.d.ts.map +0 -1
- package/dist/views/Versions/index.js +0 -178
- package/dist/views/Versions/index.js.map +0 -1
- package/dist/views/Versions/metadata.d.ts +0 -6
- package/dist/views/Versions/metadata.d.ts.map +0 -1
- package/dist/views/Versions/metadata.js +0 -51
- package/dist/views/Versions/metadata.js.map +0 -1
- package/dist/views/Versions/types.d.ts +0 -17
- package/dist/views/Versions/types.d.ts.map +0 -1
- package/dist/views/Versions/types.js +0 -2
- package/dist/views/Versions/types.js.map +0 -1
- /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 +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 +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 +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
|